@statisticsfinland/pxvisualizer 1.1.2-t.0 → 1.1.3-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.
@@ -1,4 +1,4 @@
1
- import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,useEffect as a,useMemo as s,Component as o}from"react";import*as l from"highcharts";import c from"highcharts";import u from"decimal.js";import m from"highcharts/modules/accessibility.js";import d from"highcharts/modules/exporting.js";import p from"highcharts/modules/offline-exporting.js";import{strToU8 as h,zip as f}from"fflate";import{HighchartsReact as g}from"highcharts-react-official";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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),j=Symbol.for("react.client.reference");function V(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case b:switch(e=e.type){case x:case C:case S:case N:case P:return e;default:switch(e=e&&e.$$typeof){case A:case E:case T:case $:case k:return e;default:return t}}case w:return t}}}var I={ContextConsumer:k,ContextProvider:A,Element:b,ForwardRef:E,Fragment:x,Lazy:T,Memo:$,Portal:w,Profiler:C,StrictMode:S,Suspense:N,SuspenseList:P,isContextConsumer:function(e){return V(e)===k},isContextProvider:function(e){return V(e)===A},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b},isForwardRef:function(e){return V(e)===E},isFragment:function(e){return V(e)===x},isLazy:function(e){return V(e)===T},isMemo:function(e){return V(e)===$},isPortal:function(e){return V(e)===w},isProfiler:function(e){return V(e)===C},isStrictMode:function(e){return V(e)===S},isSuspense:function(e){return V(e)===N},isSuspenseList:function(e){return V(e)===P},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===C||e===S||e===N||e===P||e===M||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===$||e.$$typeof===A||e.$$typeof===k||e.$$typeof===E||e.$$typeof===j||void 0!==e.getModuleId)},typeOf:V},O=y(function(e,t){"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case a:case u:case m:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case d:case o:return e;default:return t}}case r:return t}}}var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");t.ContextConsumer=o,t.ContextProvider=l,t.Element=n,t.ForwardRef=c,t.Fragment=i,t.Lazy=p,t.Memo=d,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=u,t.SuspenseList=m,t.isContextConsumer=function(t){return e(t)===o},t.isContextProvider=function(t){return e(t)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(t){return e(t)===c},t.isFragment=function(t){return e(t)===i},t.isLazy=function(t){return e(t)===p},t.isMemo=function(t){return e(t)===d},t.isPortal=function(t){return e(t)===r},t.isProfiler=function(t){return e(t)===s},t.isStrictMode=function(t){return e(t)===a},t.isSuspense=function(t){return e(t)===u},t.isSuspenseList=function(t){return e(t)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===u||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===o||e.$$typeof===c||e.$$typeof===f||void 0!==e.getModuleId)},t.typeOf=e}()}),D=I,L=O,z=y(function(e){e.exports="production"===process.env.NODE_ENV?D:L});function R(e){function t(e,r,l,c,d){for(var p,h,f,g,w,S=0,C=0,k=0,A=0,E=0,j=0,I=f=p=0,D=0,L=0,z=0,R=0,_=l.length,G=_-1,q="",B="",F="",H="";D<_;){if(h=l.charCodeAt(D),D===G&&0!==C+A+k+S&&(0!==C&&(h=47===C?10:47),A=k=S=0,_++,G++),0===C+A+k+S){if(D===G&&(0<L&&(q=q.replace(m,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(D)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),f=1,R=++D;D<_;){switch(h=l.charCodeAt(D)){case 123:f++;break;case 125:f--;break;case 47:switch(h=l.charCodeAt(D+1)){case 42:case 47:e:{for(I=D+1;I<G;++I)switch(l.charCodeAt(I)){case 47:if(42===h&&42===l.charCodeAt(I-1)&&D+2!==I){D=I+1;break e}break;case 10:if(47===h){D=I+1;break e}}D=I}}break;case 91:h++;case 40:h++;case 34:case 39:for(;D++<G&&l.charCodeAt(D)!==h;);}if(0===f)break;D++}if(f=l.substring(R,D),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(q=q.replace(m,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=M}if(R=(f=t(r,L,f,h,d+1)).length,0<V&&(w=o(3,f,L=n(M,q,z),r,P,N,R,h,d,c),q=L.join(""),void 0!==w&&0===(R=(f=w.trim()).length)&&(h=0,f="")),0<R)switch(h){case 115:q=q.replace(x,s);case 100:case 109:case 45:f=q+"{"+f+"}";break;case 107:f=(q=q.replace(v,"$1 $2"))+"{"+f+"}",f=1===T||2===T&&a("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=q+f,112===c&&(B+=f,f="")}else f=""}else f=t(r,n(r,q,z),f,c,d+1);F+=f,f=z=L=I=p=0,q="",h=l.charCodeAt(++D);break;case 125:case 59:if(1<(R=(q=(0<L?q.replace(m,""):q).trim()).length))switch(0===I&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(R=(q=q.replace(" ",":")).length),0<V&&void 0!==(w=o(1,q,r,e,P,N,B.length,c,d,c))&&0===(R=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=q+l.charAt(D);break}default:58!==q.charCodeAt(R-1)&&(B+=i(q,p,h,q.charCodeAt(2)))}z=L=I=p=0,q="",h=l.charCodeAt(++D)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==c&&0<q.length&&(L=1,q+="\0"),0<V*O&&o(0,q,r,e,P,N,B.length,c,d,c),N=1,P++;break;case 59:case 125:if(0===C+A+k+S){N++;break}default:switch(N++,g=l.charAt(D),h){case 9:case 32:if(0===A+S+C)switch(E){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+S&&(L=z=1,g="\f"+g);break;case 108:if(0===A+C+S+$&&0<I)switch(D-I){case 2:112===E&&58===l.charCodeAt(D-3)&&($=E);case 8:111===j&&($=j)}break;case 58:0===A+C+S&&(I=D);break;case 44:0===C+k+A+S&&(L=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&&S++;break;case 93:0===A+C+k&&S--;break;case 41:0===A+C+S&&k--;break;case 40:0===A+C+S&&(0===p&&(2*E+3*j==533||(p=1)),k++);break;case 64:0===C+k+A+S+I+f&&(f=1);break;case 42:case 47:if(!(0<A+S+k))switch(C){case 0:switch(2*h+3*l.charCodeAt(D+1)){case 235:C=47;break;case 220:R=D,C=42}break;case 42:47===h&&42===E&&R+2!==D&&(33===l.charCodeAt(R+2)&&(B+=l.substring(R,D+1)),g="",C=0)}}0===C&&(q+=g)}j=E,E=h,D++}if(0<(R=B.length)){if(L=r,0<V&&void 0!==(w=o(2,B,L,e,P,N,R,c,d,c))&&0===(B=w).length)return H+B+F;if(B=L.join(",")+"{"+B+"}",0!=T*$){switch(2!==T||a(B,2)||($=0),$){case 111:B=B.replace(b,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}$=0}}return H+B+F}function n(e,t,n){var i=t.trim().split(f);t=i;var a=i.length,s=e.length;switch(s){case 0:case 1:var o=0;for(e=0===s?"":e[0]+" ";o<a;++o)t[o]=r(e,t[o],n).trim();break;default:var l=o=0;for(t=[];o<a;++o)for(var c=0;c<s;++c)t[l++]=r(e[c]+" ",i[o],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 i(e,t,n,r){var s=e+";",o=2*t+3*n+4*r;if(944===o){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===T||2===T&&a(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!a(s,1))return s;switch(o){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,o=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<o?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function a(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),I(2!==t?r:r.replace(k,"$1"),n,t)}function s(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,i,a,s,o,l,u){for(var m,d=0,p=t;d<V;++d)switch(m=j[d].call(c,e,p,n,r,i,a,s,o,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)&&(I=null,e?"function"!=typeof e?T=1:(T=2,I=e):T=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<V){var i=o(-1,n,r,r,P,N,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var a=t(M,r,n,0,0);return 0<V&&void 0!==(i=o(-2,a,r,r,P,N,a.length,0,0,0))&&(a=i),$=0,N=P=1,a}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}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,N=1,P=1,$=0,T=1,M=[],j=[],V=0,I=null,O=0;return c.use=function e(t){switch(t){case void 0:case null:V=j.length=0;break;default:if("function"==typeof t)j[V++]=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 _={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(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var q=/^((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|fetchpriority|fetchPriority|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 q.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),F="function"==typeof Symbol&&Symbol.for,H=F?Symbol.for("react.element"):60103,W=F?Symbol.for("react.portal"):60106,U=F?Symbol.for("react.fragment"):60107,Y=F?Symbol.for("react.strict_mode"):60108,Z=F?Symbol.for("react.profiler"):60114,X=F?Symbol.for("react.provider"):60109,K=F?Symbol.for("react.context"):60110,J=F?Symbol.for("react.async_mode"):60111,Q=F?Symbol.for("react.concurrent_mode"):60111,ee=F?Symbol.for("react.forward_ref"):60112,te=F?Symbol.for("react.suspense"):60113,ne=F?Symbol.for("react.suspense_list"):60120,re=F?Symbol.for("react.memo"):60115,ie=F?Symbol.for("react.lazy"):60116,ae=F?Symbol.for("react.block"):60121,se=F?Symbol.for("react.fundamental"):60117,oe=F?Symbol.for("react.responder"):60118,le=F?Symbol.for("react.scope"):60119;function ce(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case H:switch(e=e.type){case J:case Q:case U:case Z:case Y:case te:return e;default:switch(e=e&&e.$$typeof){case K:case ee:case ie:case re:case X:return e;default:return t}}case W:return t}}}function ue(e){return ce(e)===Q}var me={AsyncMode:J,ConcurrentMode:Q,ContextConsumer:K,ContextProvider:X,Element:H,ForwardRef:ee,Fragment:U,Lazy:ie,Memo:re,Portal:W,Profiler:Z,StrictMode:Y,Suspense:te,isAsyncMode:function(e){return ue(e)||ce(e)===J},isConcurrentMode:ue,isContextConsumer:function(e){return ce(e)===K},isContextProvider:function(e){return ce(e)===X},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===H},isForwardRef:function(e){return ce(e)===ee},isFragment:function(e){return ce(e)===U},isLazy:function(e){return ce(e)===ie},isMemo:function(e){return ce(e)===re},isPortal:function(e){return ce(e)===W},isProfiler:function(e){return ce(e)===Z},isStrictMode:function(e){return ce(e)===Y},isSuspense:function(e){return ce(e)===te},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===U||e===Q||e===Z||e===Y||e===te||e===ne||"object"==typeof e&&null!==e&&(e.$$typeof===ie||e.$$typeof===re||e.$$typeof===X||e.$$typeof===K||e.$$typeof===ee||e.$$typeof===se||e.$$typeof===oe||e.$$typeof===le||e.$$typeof===ae)},typeOf:ce},de=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,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=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 i:case s:case a:case d:return p;default:var g=p&&p.$$typeof;switch(g){case l:case m:case f:case h:case o:return g;default:return t}}case r:return t}}}var x=u,S=l,C=o,k=n,A=m,E=i,N=f,P=h,$=r,T=s,M=a,j=d,V=!1;function I(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=S,t.ContextProvider=C,t.Element=k,t.ForwardRef=A,t.Fragment=E,t.Lazy=N,t.Memo=P,t.Portal=$,t.Profiler=T,t.StrictMode=M,t.Suspense=j,t.isAsyncMode=function(e){return V||(V=!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.")),I(e)||w(e)===c},t.isConcurrentMode=I,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===o},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)===i},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)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===s||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===l||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),pe=y(function(e){e.exports="production"===process.env.NODE_ENV?me:de}),he={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ge={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ve={};function ye(e){return pe.isMemo(e)?ge:ve[e.$$typeof]||he}ve[pe.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ve[pe.Memo]=ge;var be=Object.defineProperty,we=Object.getOwnPropertyNames,xe=Object.getOwnPropertySymbols,Se=Object.getOwnPropertyDescriptor,Ce=Object.getPrototypeOf,ke=Object.prototype,Ae=function e(t,n,r){if("string"!=typeof n){if(ke){var i=Ce(n);i&&i!==ke&&e(t,i,r)}var a=we(n);xe&&(a=a.concat(xe(n)));for(var s=ye(t),o=ye(n),l=0;l<a.length;++l){var c=a[l];if(!(fe[c]||r&&r[c]||o&&o[c]||s&&s[c])){var u=Se(n,c);try{be(t,c,u)}catch(e){}}}}return t};function Ee(){return(Ee=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 Ne=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},Pe=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!z.typeOf(e)},$e=Object.freeze([]),Te=Object.freeze({});function Me(e){return"function"==typeof e}function je(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ve(e){return e&&"string"==typeof e.styledComponentId}var Ie="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Oe="undefined"!=typeof window&&"HTMLElement"in window,De=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)),Le={},ze="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 Re(){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 _e(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(Re.apply(void 0,[ze[e]].concat(n)).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,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,i=r;e>=i;)(i<<=1)<0&&_e(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),o=0,l=t.length;o<l;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},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 i=n;i<r;i++)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),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),qe=new Map,Be=new Map,Fe=1,He=function(e){if(qe.has(e))return qe.get(e);for(;Be.has(Fe);)Fe++;var t=Fe++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&_e(16,""+t),qe.set(e,t),Be.set(t,e),t},We=function(e){return Be.get(e)},Ue=function(e,t){t>=Fe&&(Fe=t+1),qe.set(e,t),Be.set(t,e)},Ye="style["+Ie+'][data-styled-version="5.3.11"]',Ze=new RegExp("^"+Ie+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Xe=function(e,t,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&e.registerName(t,r)},Ke=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var o=s.match(Ze);if(o){var l=0|parseInt(o[1],10),c=o[2];0!==l&&(Ue(c,l),Xe(e,c,o[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},Je=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ie))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(Ie,"active"),r.setAttribute("data-styled-version","5.3.11");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Qe=function(){function e(e){var t=this.element=Je(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 i=t[n];if(i.ownerNode===e)return i}_e(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}(),et=function(){function e(e){var t=this.element=Je(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}(),tt=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}(),nt=Oe,rt={isServer:!Oe,useCSSOMInjection:!De},it=function(){function e(e,t,n){void 0===e&&(e=Te),void 0===t&&(t={}),this.options=Ee({},rt,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Oe&&nt&&(nt=!1,function(e){for(var t=document.querySelectorAll(Ye),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(Ie)&&(Ke(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return He(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ee({},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,i=t.target,e=n?new tt(i):r?new Qe(i):new et(i),new Ge(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(He(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(He(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(He(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="",i=0;i<n;i++){var a=We(i);if(void 0!==a){var s=e.names.get(a),o=t.getGroup(i);if(s&&o&&s.size){var l=Ie+".g"+i+'[id="'+a+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+o+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),at=/(a)(d)/gi,st=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=st(t%52)+n;return(st(t%52)+n).replace(at,"$1-$2")}var lt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ct=function(e){return lt(5381,e)};function ut(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Me(n)&&!Ve(n))return!1}return!0}var mt=ct("5.3.11"),dt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ut(e),this.componentId=t,this.baseHash=lt(mt,t),this.baseStyle=n,it.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=Pt(this.rules,e,t,n).join(""),s=ot(lt(this.baseHash,a)>>>0);if(!t.hasNameForId(r,s)){var o=n(a,"."+s,void 0,r);t.insertRules(r,s,o)}i.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=lt(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=lt(c,d+m));else if(d){var p=Pt(d,e,t,n),h=Array.isArray(p)?p.join(""):p;c=lt(c,h+m),u+=h}}if(u){var f=ot(c>>>0);if(!t.hasNameForId(r,f)){var g=n(u,"."+f,void 0,r);t.insertRules(r,f,g)}i.push(f)}}return i.join(" ")},e}(),pt=/^\s*\/\/.*$/gm,ht=[":","[",".","#"],ft=e.createContext(),gt=e.createContext(),vt=new it,yt=function(){var e,t,n,r,i=Te.options,a=Te.plugins,s=void 0===a?$e:a,o=new R(void 0===i?Te:i),l=[],c=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,s,o,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(i[0]+r),"";default:return r+(0===m?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){l.push(e)}),u=function(n,i,a){return 0===i&&-1!==ht.indexOf(a[t.length])||a.match(r)?n:"."+e};function m(i,a,s,l){void 0===l&&(l="&");var c=i.replace(pt,""),u=a&&s?s+" "+a+" { "+c+" }":c;return e=l,t=a,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),o(s||!a?"":a,u)}return o.use([].concat(s,[function(e,r,i){2===e&&i.length&&i[0].lastIndexOf(t)>0&&(i[0]=i[0].replace(n,u))},c,function(e){if(-2===e){var t=l;return l=[],t}}])),m.hash=s.length?s.reduce(function(e,t){return t.name||_e(15),lt(e,t.name)},5381).toString():"",m}();function bt(){return n(ft)||vt}function wt(){return n(gt)||yt}var xt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=yt);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 _e(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=yt),this.name+e.hash},e}(),St=/([A-Z])/,Ct=/([A-Z])/g,kt=/^ms-/,At=function(e){return"-"+e.toLowerCase()};function Et(e){return St.test(e)?e.replace(Ct,At).replace(kt,"-ms-"):e}var Nt=function(e){return null==e||!1===e||""===e};function Pt(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],s=0,o=e.length;s<o;s+=1)""!==(i=Pt(e[s],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(Nt(e))return"";if(Ve(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&&z.isElement(l)&&console.warn(je(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."),Pt(l,t,n,r)}var c;return e instanceof xt?n?(e.inject(n,r),e.getName(r)):e:Pe(e)?function e(t,n){var r,i,a=[];for(var s in t)t.hasOwnProperty(s)&&!Nt(t[s])&&(Array.isArray(t[s])&&t[s].isCss||Me(t[s])?a.push(Et(s)+":",t[s],";"):Pe(t[s])?a.push.apply(a,e(t[s],s)):a.push(Et(s)+": "+(r=s,(null==(i=t[s])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in _||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString()}var $t=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Tt(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)||Pe(e)?$t(Pt(Ne($e,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:$t(Pt(Ne(e,n)))}var Mt=/invalid hook call/i,jt=new Set,Vt=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.",i=console.error;try{var a=!0;console.error=function(e){if(Mt.test(e))a=!1,jt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];i.apply(void 0,[e].concat(n))}},t(),a&&!jt.has(r)&&(console.warn(r),jt.add(r))}catch(e){Mt.test(e.message)&&jt.delete(r)}finally{console.error=i}}},It=function(e,t,n){return void 0===n&&(n=Te),e.theme!==n.theme&&e.theme||t||n.theme},Ot=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Dt=/(^-|-$)/g;function Lt(e){return e.replace(Ot,"-").replace(Dt,"")}var zt=function(e){return ot(ct(e)>>>0)};function Rt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var _t=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 qt(e,t,n){var r=e[n];_t(t)&&_t(r)?Bt(r,t):e[n]=t}function Bt(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 i=0,a=n;i<a.length;i++){var s=a[i];if(_t(s))for(var o in s)Gt(o)&&qt(e,s[o],o)}return e}var Ft=e.createContext(),Ht={};function Wt(t,r,a){var s=Ve(t),o=!Rt(t),l=r.attrs,c=void 0===l?$e:l,u=r.componentId,m=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Lt(e);Ht[n]=(Ht[n]||0)+1;var r=n+"-"+zt("5.3.11"+n+Ht[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):u,d=r.displayName,p=void 0===d?function(e){return Rt(e)?"styled."+e:"Styled("+je(e)+")"}(t):d,h=r.displayName&&r.componentId?Lt(r.displayName)+"-"+r.componentId:r.componentId||m,f=s&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;s&&t.shouldForwardProp&&(g=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,y=new dt(a,h,s?t.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,r,a){var s=e.attrs,o=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=Te);var r=Ee({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,a,s=e;for(t in Me(s)&&(s=s(r)),s)r[t]=i[t]="className"===t?(a=s[t],(n=i[t])&&a?n+" "+a:n||a):s[t]}),[r,i]}(It(t,n(Ft),l)||Te,t,s),h=p[1],f=function(e,t,n,r){var i=bt(),a=wt(),s=e.generateAndInjectStyles(t?Te:n,i,a);return"production"!==process.env.NODE_ENV&&!t&&r&&r(s),s}(o,a,p[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=Rt(v),b=h!==t?Ee({},t,{},h):t,w={};for(var x in b)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=b[x]:(u?u(x,B,v):!y||B(x))&&(w[x]=b[x]));return t.style&&h.style!==t.style&&(w.style=Ee({},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,i(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=s?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):$e,v.styledComponentId=h,v.target=s?t.target:t,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(r,["componentId"]),i=t&&t+"-"+(Rt(e)?e:Lt(je(e)));return Wt(e,Ee({},n,{attrs:f,componentId:i}),a)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?Bt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Vt(p,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){!r&&(n[i]=!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}}),o&&Ae(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Ut=function(e){return function e(t,n,r){if(void 0===r&&(r=Te),!z.isValidElementType(n))return _e(1,String(n));var i=function(){return t(n,r,Tt.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,Ee({},r,{},i))},i.attrs=function(i){return e(t,n,Ee({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Wt,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){Ut[e]=Ut(e)});var Yt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ut(e),it.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(Pt(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&it.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 Zt,Xt,Kt,Jt=Ut;!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"}(Zt||(Zt={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(Xt||(Xt={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(Kt||(Kt={}));const Qt={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 puuttuu",sv:"Data saknas",en:"Missing data"}},en={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."]}},tn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Qt,this.ArrayTranslations=en}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]))}},nn=tn.Translations,rn=tn.ArrayTranslations,an=tn.GetAllLanguages;function sn(e){tn.AddTranslations(e)}const on=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function ln(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const cn=["",".","..","...","....",".....","......","-"];function un(e,t,n,r=!1){if(null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function mn(e,t,n=!1){if(e)return n?nn.dataMissing[t]:cn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function dn(e,t){return function(){var n,r,i;const a=[];var s,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&a.push(`${null==(s=e.rowVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${this.point.name}`);const l=null!=(n=null==(r=this.point.options.custom)?void 0:r.precision)?n:0;return a.push(Cn(e,this,t,l)),null!=(i=this.point.options.custom)&&i.preliminary&&a.push(nn.preliminaryData[t]),a.join("<br/>")}}function pn(e,t){return function(n){var r,i,a;const s=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&s.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${kn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&s.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${kn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(Cn(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(nn.preliminaryData[t]),s.join(", ")}}function hn(e){return function(){return this.value.toLocaleString(e)}}const fn=e=>an().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():an()[0];function gn(e=null){const t=e&&e>=15?25:50;return function(){return bn(this.value,t)}}function vn(e){return function(){var t,n;if(!this.point.y)return"";const r=null!=(t=null==(n=this.point.options.custom)?void 0:n.precision)?t:0;return un(this.point.y,r,e,!0)}}function yn(){return function(){return bn(this.name,200)}}const bn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function wn(e,t){return function(){var n,r;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),a=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return i&&i.length>0&&this.series.name&&(o+=`${i}: ${this.point.x.toLocaleString(t)}<br />`),a&&a.length>0&&this.key&&(o+=`${a}: ${null==(l=this.point.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.point.index].map(e=>e[t]).join(", ")}`),null!=(r=this.point.options.custom)&&r.preliminary&&(o+=`<br />${nn.preliminaryData[t]}`),o}}function xn(e,t){return function(){var n,r,i;const a=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)a.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var s;e.colVarNames&&e.colVarNames.length>0&&this.point.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.point.name}`);const o=null!=(n=null==(r=this.point.options.custom)?void 0:r.precision)?n:0;return a.push(Cn(e,this,t,o)),null!=(i=this.point.options.custom)&&i.preliminary&&a.push(nn.preliminaryData[t]),a.join("<br/>")}}function Sn(e,t){const n=e.map(e=>e.unit).filter(ln);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 Cn(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===Zt.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==Zt.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==Zt.PercentVerticalBarChart?`${un(null!=(a=t.percentage)?a:null,1,n)}% (${i.toLocaleString(n)} ${Sn(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function kn(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]} ${rn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=rn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${nn.quarter[t]}`}console.log("Unsupported time pattern")}return e}const An=(e,t,n,r=!1)=>e.series.map((i,a)=>({index:r?e.series.length-1-a:a,animation:!1,type:t,name:i.rowNameGroup.map(e=>e[n]).join(", "),data:i.series.map((t,r)=>({y:t.value,name:e.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:t.preliminary,precision:t.precision}}))}));var En;function Nn(e,t,n){return function(){const r=function(e,t,n,r=new u(0)){var i;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):u.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const a=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const i=function(e){if(e.equals(0))return new u(0);const t=u.pow(10,u.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(a=i,a.equals(0)?0:a.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}(a):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}}(a)),i]),t;var a},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(u.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?i:new u(NaN):a[0][1]}(e,t,(n=>{const r=u.pow(10,u.log10(u.max(e.abs(),t.abs())).floor()),i=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(i,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),i=e.greaterThanOrEqualTo(0)?new u(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new u(0):t.div(r).ceil().mul(r);return Array.from({length:a.minus(i).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(i).toNumber())}}function Pn(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?Nn(new u(t),new u(n),new u(Math.pow(10,-r))):()=>[]}function $n(e){let t=null,n=null,r=0;return e[0].forEach((i,a)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[a].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),i.precision>r&&(r=i.precision)}),t&&n?Nn(new u(t),new u(n),new u(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(En||(En={}));const Tn=(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 Mn(e,t){if(t){const n=new Date(t);switch(e){case Kt.Irregular:case Kt.Week:return;case Kt.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case Kt.Quarter:case Kt.HalfYear:return;case Kt.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function jn(e,t){if(e.seriesType!==En.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!isNaN(parseFloat(e)));return e.seriesType===En.Ordinal&&r?Tn(e,t):{ordinal:e.seriesType==En.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case Kt.Week:return Vn(e,t);case Kt.Month:return In();case Kt.Quarter:return On(e,t);case Kt.HalfYear:return Dn(e,t);case Kt.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Vn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),In=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return c.dateFormat("%YM%m",Number(this.value))}}}),On=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Dn=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Ln=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:nn.thousandsSepAccessibility[e],credits:nn.credits[e],chartTypes:{barMultiple:nn.barMultiple[e],barSingle:nn.barSingle[e],columnMultiple:nn.columnMultiple[e],columnSingle:nn.columnSingle[e],lineSingle:nn.lineSingle[e],lineMultiple:nn.lineMultiple[e],pieSingle:nn.pieSingle[e],scatterSingle:nn.scatterSingle[e],scatterMultiple:nn.scatterMultiple[e],defaultSingle:nn.defaultSingle[e],defaultMultiple:nn.defaultMultiple[e]},defaultChartTitle:nn.defaultChartTitle[e],exporting:{chartMenuLabel:nn.chartMenuLabel[e],menuButtonLabel:nn.menuButtonLabel[e]},legend:{legendItem:nn.legendItem[e],legendLabel:nn.legendLabel[e],legendLabelNoTitle:nn.legendLabelNoTitle[e]},axis:{rangeCategories:nn.rangeCategories[e],rangeFromTo:nn.rangeFromTo[e],timeRangeDays:nn.timeRangeDays[e],timeRangeHours:nn.timeRangeHours[e],timeRangeMinutes:nn.timeRangeMinutes[e],timeRangeSeconds:nn.timeRangeSeconds[e],xAxisDescriptionPlural:nn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:nn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:nn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:nn.yAxisDescriptionSingular[e]},series:{summary:{bar:nn.seriesSummaryBar[e],barCombination:nn.seriesSummaryBarCombination[e],column:nn.seriesSummaryColumn[e],columnCombination:nn.seriesSummaryColumnCombination[e],default:nn.seriesSummaryDefault[e],defaultCombination:nn.seriesSummaryDefaultCombination[e],line:nn.seriesSummaryLine[e],lineCombination:nn.seriesSummaryLineCombination[e],pie:nn.seriesSummaryPie[e],pieCombination:nn.seriesSummaryPieCombination[e],scatter:nn.seriesSummaryScatter[e],scatterCombination:nn.seriesSummaryScatterCombination[e]},xAxisDescription:nn.xAxisDescription[e],yAxisDescription:nn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:nn.endOfChartMarker[e]},chartContainerLabel:nn.chartContainerLabel[e]},thousandsSep:nn.thousandsSep[e],decimalPoint:nn.decimalPoint[e],contextButtonTitle:nn.contextButtonTitle[e],downloadCSV:nn.downloadCSV[e],downloadPNG:nn.downloadPNG[e],downloadSVG:nn.downloadSVG[e],months:rn.months[e],shortMonths:rn.shortMonths[e],weekdays:rn.weekdays[e],loading:nn.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:hn(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}}}),zn=(e,t)=>({accessibility:{point:{descriptionFormatter:pn(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{text:`${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:dn(e,t)},yAxis:[Rn]}),Rn={plotLines:[{value:0,color:"#000",width:1}]},_n=(e,t)=>{var n;const r=null==(n=Ln(t).tooltip)?void 0:n.style;return{enabled:e.visualizationSettings.showDataPoints,style:r,formatter:vn(t)}},Gn=(e,t)=>v({},Rn,{tickPositioner:Pn(e.series.map(e=>e.series)),title:{text:Sn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),qn=(e,t)=>v({},zn(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:gn(e.columnNameGroups.length),style:{width:200}}}}),Bn=(e,t)=>v({},qn(e,t),{series:An(e,"bar",t,!0),legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30}}),Fn=(e,t)=>v({},zn(e,t),{chart:{type:"column"},xAxis:jn(e,t)}),Hn=(e,t)=>v({},Fn(e,t),{series:An(e,"column",t),yAxis:{softMin:0,softMax:0,title:{text:Sn(e.units,t)}}}),Wn=(e,t)=>v({},Fn(e,t),{series:An(e,"column",t,!0),legend:{enabled:!0,layout:"vertical"}}),Un=(e,t)=>{var n,r;return v({},zn(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){const e=r?` (${Math.round(this.percentage)}%)`:"";return bn(this.point.name,20)+e})}}},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:Sn(e.units,t),custom:{preliminary:n.preliminary,precision:n.precision}}))}))})},Yn=(e,t)=>{const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return v({},zn(e,t),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:v({},Rn,{min:-Math.abs(r),max:Math.abs(r),title:{text:Sn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),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,i)=>({y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:v({},_n)}},exporting:{enabled:!1}})},Zn=(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 `,Xn=(e,t)=>{switch(t.visualizationSettings.visualizationType){case Zt.LineChart:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},zn(e,t),{chart:{type:"line"},tooltip:{formatter:xn(e,t)},xAxis:v({},jn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:v({},Rn,{softMin:r,softMax:r,title:{text:Sn(e.units,t)}}),plotOptions:{line:{dataLabels:v({},_n(e,t)),marker:{enabled:!1}},series:Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:yn()},series:An(e,"line",t),exporting:{enabled:!1}})})(t,e);case Zt.VerticalBarChart:return((e,t)=>v({},Hn(e,t),{yAxis:v({},Rn,{softMin:0,softMax:0,title:{text:Sn(e.units,t)}}),plotOptions:{series:v({},Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},_n(e,t))})},exporting:{enabled:!1}}))(t,e);case Zt.HorizontalBarChart:return((e,t)=>v({},qn(e,t),{series:An(e,"bar",t),chart:{type:"bar",spacingBottom:60},yAxis:v({},Gn(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:v({},_n(e,t))}}}))(t,e);case Zt.GroupVerticalBarChart:return((e,t)=>v({},Hn(e,t),{plotOptions:{series:v({},Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},_n(e,t))})},legend:{enabled:!0,labelFormatter:yn()}}))(t,e);case Zt.GroupHorizontalBarChart:return((e,t)=>v({},qn(e,t),{series:An(e,"bar",t),yAxis:v({},Gn(e,t),{softMin:0,softMax:0}),legend:{enabled:!0,layout:"vertical",margin:30},plotOptions:{series:{dataLabels:v({},_n(e,t))}}}))(t,e);case Zt.StackedVerticalBarChart:return((e,t)=>v({},Wn(e,t),{yAxis:{softMin:0,softMax:0,title:{text:Sn(e.units,t)}},plotOptions:{column:{stacking:"normal",dataLabels:v({},_n(e,t))},series:Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}}))(t,e);case Zt.StackedHorizontalBarChart:return((e,t)=>v({},Bn(e,t),{yAxis:{softMin:0,softMax:0,tickPositioner:$n(e.series.map(e=>e.series)),title:{text:Sn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:v({},_n(e,t))}}}))(t,e);case Zt.PercentVerticalBarChart:return((e,t)=>v({},Wn(e,t),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent",dataLabels:v({},_n(e,t))},series:Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}}))(t,e);case Zt.PercentHorizontalBarChart:return((e,t)=>v({},Bn(e,t),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:v({},_n(e,t))}}}))(t,e);case Zt.PieChart:return Un(t,e);case Zt.PyramidChart:return Yn(t,e);case Zt.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},zn(e,t),{chart:{type:"scatter"},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:v({},Rn,{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:Zn(e.series,t),formatter:wn(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")}},Kn=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=Jn(i,r);if(i=t,a=v({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=Qn(i,n);if(i=t,a=v({},a,e),0===i.length)return a}return i.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(a[e]=t[n].type===Xt.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},Jn=(e,t)=>{const n=Object.keys(t),r={},i=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:i}},Qn=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>{const i=n.findIndex(t=>t===e);return i>-1?(r[e]=t[n[i]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},er=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},tr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function nr(e,t,n){return ir(rr(e,e.series[t].series,n),t)}function rr(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),i=r.map(t=>e.columnNameGroups[t]),a=e.series.map(e=>function(e,t){return v({},e,{series:t.map(t=>e.series[t])})}(e,r));return v({},e,{columnNameGroups:i,series:a})}function ir(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 ar(e,t){if(Object.keys(t).includes(e.code)){const n=e.values.filter(n=>t[e.code].includes(n.code));if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function sr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class or{constructor(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;const n=e.metaData,r=n.map(e=>e.values.length);this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},()=>[]),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===Xt.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===Xt.Time),this.indices=Array.from({length:n.length},()=>0),this.lastIndices=this.selectedViewMeta.map(e=>e.values.length-1),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(e=>e.values.length).reduce((e,t)=>e*t,1),this.dataIndex=0,this.setCurrentIndex()}initializeCoordinates(e){for(let n=0;n<this.selectedViewMeta.length;n++){var t;const r=this.variableOrder[n],i=this.selectedViewMeta[n].code,a=null==(t=e.find(e=>e.code===i))?void 0:t.values,s=this.selectedViewMeta.find(e=>e.code===i);this.coordinates[r]=s.values.map(e=>a.findIndex(t=>t===e))}}getViewSeries(){let e=0,t=[];const n=[];do{const r=this.createDataCell();t.push(r),e++,e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n}generateRowNameGroup(){return this.selectedViewMeta.slice(0,this.rowAmount).map((e,t)=>e.values[this.indices[this.variableOrder[t]]].name)}next(){for(let e=this.lastCoordinateIndex;e>=0;e--){const t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1}createDataCell(){var e,t;const n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r}getSelectedView(e,t){const n=e.metaData.map(e=>v({},e,{values:ar(e,t)})),r=sr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=sr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=sr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),s=a.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),o=a.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)&&!a.some(t=>t.code==e.code)),c=[...s,...r,...i,...o,...l];return this.rowLength=on(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+s.length,c}getVariableOrder(){const e=this.responseObj.metaData.map(e=>e.code),t=this.selectedViewMeta.map(t=>e.indexOf(t.code));return t}generateRCP(e){const t=Array.from({length:e.length});let n=1;for(let r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t}setCurrentIndex(){this.dataIndex=0;for(let e=0;e<=this.lastCoordinateIndex;e++){const t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}}getCurrentTimeValue(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]}}function lr(e,t){var n,r,i;const a=function(e,t,n){const{metaData:r,selectableVariableCodes:i}=e,a=function(e,t){return e.filter(e=>t.includes(e.code))}(r,i),s=function(e){const t=e.find(e=>e.type===Xt.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new or(e,t).getViewSeries(),r=sr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>ar(e,t));return{columnNameGroups:on(r).map(e=>e.map(e=>e.name)),series:n}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:dr(a,t,n),units:pr(s,t),sources:hr(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:nn.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:ur(e.columnVariableCodes,e.metaData),rowVarNames:ur(e.rowVariableCodes,e.metaData),selectableVarNames:ur(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:fr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),s=(null==(n=a.visualizationSettings)?void 0:n.visualizationType)===Zt.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===Zt.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return a;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>v({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return v({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(a);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 rr(e,n,t)}(a,tr);case"ascending":return nr(a,0,er);case"descending":return nr(a,0,tr);default:return s?(o=a,l=cr(a),c=mr(e),ir(rr(o,l.series[c].series,tr),c)):nr(a,mr(e),tr)}var o,l,c}function cr(e){const t=e.series.map(t=>v({},t,{series:t.series.map((t,n)=>{var r;const i=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,s={value:a,precision:1,preliminary:t.preliminary};return null===a&&(s.missingCode=t.missingCode),s})}));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 ur(e,t){return e.reduce((e,n)=>{var r;const i=null==(r=t.find(e=>e.code===n))?void 0:r.name;return i&&e.push(i),e},[])}function mr(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 dr(e,t,n){const r=[];return e.forEach(e=>{var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(n=>n.code===t[e.code][0]))?void 0:a.name)?i:{})}),r}function pr(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function hr(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter(ln):e.values.map(e=>n(e.contentComponent)).filter(ln)}function fr(e,t){var n;if(e.length>1||0===e.length)return En.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case Xt.Time:return En.Time;case Xt.Ordinal:return En.Ordinal;default:return En.Nominal}}const gr=(e,t,n,r=null)=>{const i=fn(n);"object"==typeof l&&(m(l),d(l),p(l)),l.setOptions(Ln(i));const a=lr(t,Kn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),s=Xn(i,a);return l.chart(e,s)};function vr(e,t,n,r,i,a,s){const o=document.getElementById(a);if(!o)throw new Error("No container with matching id found in the DOM tree");try{const a=function(e,t){var n,r;const i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){const n=function(e,t){const n=wr(e),r=[];for(let i=0;i<e[0].length;i++){const a=document.createElement("tr");for(let r=0;r<e.length;r+=n[i]){const s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[r][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){const e=document.createElement("td");e.setAttribute("colSpan",a.toString()),e.setAttribute("rowSpan",i.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),s.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=br(e);for(let i=0;i<e.length;i++){const a=document.createElement("tr");for(let n=0;n<e[i].rowNameGroup.length;n++)if(i%r[n]==0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[n][t],a.append(s)}for(const n of e[i].series){const e=document.createElement("td");e.textContent=null===n.value?mn(n.missingCode,t,!0):un(n.value,n.precision,t,!0),a.append(e)}n.push(a)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(n){const n=document.createElement("caption");if(n.textContent=e.header[t],e.subheaderValues.length>0){const r=e.subheaderValues.map(e=>e[t]).join(" | ");n.append(document.createElement("br"),r)}n.className="tableChart-caption",a.prepend(n)}if(o.append(a),r){const n=document.createElement("p"),r=Sn(e.units,t);n.append(`${nn.unit[t]}: ${r}`),o.append(n)}if(i){const n=document.createElement("p"),r=`${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),o.append(n)}if(s){const e=document.createElement("p");e.append(s),o.append(e)}}catch(e){console.error(e),o.replaceChildren();const n=document.createElement("h1");n.append(nn.graphCreationError[t]),o.append(n)}}const yr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),br=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&&yr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},wr=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&&yr(e[r][n],e[r+1][n]);r++)t[n]++;return t},xr=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")}`},Sr=(e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Zt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Zt.PercentVerticalBarChart)&&(e=cr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=","==nn.decimalPoint[t]?";":",",h="\n";let f=kr([`"${e.header[t]}"`],0,d,p,h);e.subheaderValues.length>0&&(f+=kr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,p,h));for(let n=0;n<u;n++)f+=kr(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?mn(e.missingCode,t):un(e.value,e.precision,t))),f+=kr(n,0,d,p,h)}),f+=kr([`"${nn.unit[t]}: ${Sn(e.units,t)}"`],0,d,p,h),f+=kr([`"${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,p),f},Cr=(e,t)=>({onClick:()=>{const n=Sr(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",xr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:nn.downloadCSV[t]});function kr(e,t,n,r,i=""){let a="";for(let i=0;i<n;i++)i>=t&&i<t+e.length&&(a+=e[i-t]),i<n-1&&(a+=r);return a+i}const Ar=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Er(e){const t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Er(t-1)+n}const Nr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook ${['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")}>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>`;function Pr(e,t,n){const r=Array(n);for(let i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}const $r=(e,t)=>({onClick:async()=>{const n=await Tr(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",xr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:nn.downloadXLSX[t]});async function Tr(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Zt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Zt.PercentVerticalBarChart)&&(e=cr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=[Pr([e.header[t]],0,d)];e.subheaderValues.length>0&&p.push(Pr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)p.push(Pr(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?mn(e.missingCode,t):Number(e.value.toFixed(e.precision)))),p.push(Pr(n,0,d))}),p.push(Pr([`${nn.unit[t]}: ${Sn(e.units,t)}`],0,d)),p.push(Pr([`${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),p})(e,t),r=(e=>{const t=function(e){const t=[];for(let n=1;n<=e;n++)t.push(`<col min="${n}" max="${n}" width="20"/>`);return t?`<cols>${t}</cols>`:""}(Math.max(...e.map(e=>e.length))),n=function(e){return e.map((e,t)=>{const n=e.map((e,n)=>function(e,t,n){return null===e?null:"string"==typeof e?`<c r="${Er(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"};return e.replace(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Er(t)}${n}"><v>${e}</v></c>`}(e,n,t+1)).filter(e=>null!==e).join("");return`<row r="${t+1}">${n}</row>`}).join("")}(e);return((e,t)=>`<?xml version="1.0" ?>\n<worksheet ${Ar.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":h(r),"workbook.xml":h(Nr),"_rels/workbook.xml.rels":h('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":h('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":h('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return new Promise((e,t)=>{f(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const Mr=["Bars","Times","Download","ExternalLink","Copy"],jr=({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 Vr,Ir,Or,Dr,Lr,zr,Rr,_r=e=>e;const Gr=Jt.button(Vr||(Vr=_r`
1
+ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,useEffect as a,useMemo as s,Component as o}from"react";import*as l from"highcharts";import c from"highcharts";import u from"decimal.js";import m from"highcharts/modules/accessibility.js";import d from"highcharts/modules/exporting.js";import p from"highcharts/modules/offline-exporting.js";import{strToU8 as h,zip as f}from"fflate";import{HighchartsReact as g}from"highcharts-react-official";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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),j=Symbol.for("react.client.reference");function V(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case b:switch(e=e.type){case x:case C:case S:case N:case P:return e;default:switch(e=e&&e.$$typeof){case A:case E:case T:case $:case k:return e;default:return t}}case w:return t}}}var I={ContextConsumer:k,ContextProvider:A,Element:b,ForwardRef:E,Fragment:x,Lazy:T,Memo:$,Portal:w,Profiler:C,StrictMode:S,Suspense:N,SuspenseList:P,isContextConsumer:function(e){return V(e)===k},isContextProvider:function(e){return V(e)===A},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b},isForwardRef:function(e){return V(e)===E},isFragment:function(e){return V(e)===x},isLazy:function(e){return V(e)===T},isMemo:function(e){return V(e)===$},isPortal:function(e){return V(e)===w},isProfiler:function(e){return V(e)===C},isStrictMode:function(e){return V(e)===S},isSuspense:function(e){return V(e)===N},isSuspenseList:function(e){return V(e)===P},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===C||e===S||e===N||e===P||e===M||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===$||e.$$typeof===A||e.$$typeof===k||e.$$typeof===E||e.$$typeof===j||void 0!==e.getModuleId)},typeOf:V},O=y(function(e,t){"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case a:case u:case m:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case d:case o:return e;default:return t}}case r:return t}}}var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");t.ContextConsumer=o,t.ContextProvider=l,t.Element=n,t.ForwardRef=c,t.Fragment=i,t.Lazy=p,t.Memo=d,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=u,t.SuspenseList=m,t.isContextConsumer=function(t){return e(t)===o},t.isContextProvider=function(t){return e(t)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(t){return e(t)===c},t.isFragment=function(t){return e(t)===i},t.isLazy=function(t){return e(t)===p},t.isMemo=function(t){return e(t)===d},t.isPortal=function(t){return e(t)===r},t.isProfiler=function(t){return e(t)===s},t.isStrictMode=function(t){return e(t)===a},t.isSuspense=function(t){return e(t)===u},t.isSuspenseList=function(t){return e(t)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===u||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===o||e.$$typeof===c||e.$$typeof===f||void 0!==e.getModuleId)},t.typeOf=e}()}),D=I,L=O,z=y(function(e){e.exports="production"===process.env.NODE_ENV?D:L});function R(e){function t(e,r,l,c,d){for(var p,h,f,g,w,S=0,C=0,k=0,A=0,E=0,j=0,I=f=p=0,D=0,L=0,z=0,R=0,_=l.length,G=_-1,q="",B="",F="",H="";D<_;){if(h=l.charCodeAt(D),D===G&&0!==C+A+k+S&&(0!==C&&(h=47===C?10:47),A=k=S=0,_++,G++),0===C+A+k+S){if(D===G&&(0<L&&(q=q.replace(m,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(D)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),f=1,R=++D;D<_;){switch(h=l.charCodeAt(D)){case 123:f++;break;case 125:f--;break;case 47:switch(h=l.charCodeAt(D+1)){case 42:case 47:e:{for(I=D+1;I<G;++I)switch(l.charCodeAt(I)){case 47:if(42===h&&42===l.charCodeAt(I-1)&&D+2!==I){D=I+1;break e}break;case 10:if(47===h){D=I+1;break e}}D=I}}break;case 91:h++;case 40:h++;case 34:case 39:for(;D++<G&&l.charCodeAt(D)!==h;);}if(0===f)break;D++}if(f=l.substring(R,D),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(q=q.replace(m,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=M}if(R=(f=t(r,L,f,h,d+1)).length,0<V&&(w=o(3,f,L=n(M,q,z),r,P,N,R,h,d,c),q=L.join(""),void 0!==w&&0===(R=(f=w.trim()).length)&&(h=0,f="")),0<R)switch(h){case 115:q=q.replace(x,s);case 100:case 109:case 45:f=q+"{"+f+"}";break;case 107:f=(q=q.replace(v,"$1 $2"))+"{"+f+"}",f=1===T||2===T&&a("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=q+f,112===c&&(B+=f,f="")}else f=""}else f=t(r,n(r,q,z),f,c,d+1);F+=f,f=z=L=I=p=0,q="",h=l.charCodeAt(++D);break;case 125:case 59:if(1<(R=(q=(0<L?q.replace(m,""):q).trim()).length))switch(0===I&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(R=(q=q.replace(" ",":")).length),0<V&&void 0!==(w=o(1,q,r,e,P,N,B.length,c,d,c))&&0===(R=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=q+l.charAt(D);break}default:58!==q.charCodeAt(R-1)&&(B+=i(q,p,h,q.charCodeAt(2)))}z=L=I=p=0,q="",h=l.charCodeAt(++D)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==c&&0<q.length&&(L=1,q+="\0"),0<V*O&&o(0,q,r,e,P,N,B.length,c,d,c),N=1,P++;break;case 59:case 125:if(0===C+A+k+S){N++;break}default:switch(N++,g=l.charAt(D),h){case 9:case 32:if(0===A+S+C)switch(E){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+S&&(L=z=1,g="\f"+g);break;case 108:if(0===A+C+S+$&&0<I)switch(D-I){case 2:112===E&&58===l.charCodeAt(D-3)&&($=E);case 8:111===j&&($=j)}break;case 58:0===A+C+S&&(I=D);break;case 44:0===C+k+A+S&&(L=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&&S++;break;case 93:0===A+C+k&&S--;break;case 41:0===A+C+S&&k--;break;case 40:0===A+C+S&&(0===p&&(2*E+3*j==533||(p=1)),k++);break;case 64:0===C+k+A+S+I+f&&(f=1);break;case 42:case 47:if(!(0<A+S+k))switch(C){case 0:switch(2*h+3*l.charCodeAt(D+1)){case 235:C=47;break;case 220:R=D,C=42}break;case 42:47===h&&42===E&&R+2!==D&&(33===l.charCodeAt(R+2)&&(B+=l.substring(R,D+1)),g="",C=0)}}0===C&&(q+=g)}j=E,E=h,D++}if(0<(R=B.length)){if(L=r,0<V&&void 0!==(w=o(2,B,L,e,P,N,R,c,d,c))&&0===(B=w).length)return H+B+F;if(B=L.join(",")+"{"+B+"}",0!=T*$){switch(2!==T||a(B,2)||($=0),$){case 111:B=B.replace(b,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}$=0}}return H+B+F}function n(e,t,n){var i=t.trim().split(f);t=i;var a=i.length,s=e.length;switch(s){case 0:case 1:var o=0;for(e=0===s?"":e[0]+" ";o<a;++o)t[o]=r(e,t[o],n).trim();break;default:var l=o=0;for(t=[];o<a;++o)for(var c=0;c<s;++c)t[l++]=r(e[c]+" ",i[o],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 i(e,t,n,r){var s=e+";",o=2*t+3*n+4*r;if(944===o){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===T||2===T&&a(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!a(s,1))return s;switch(o){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,o=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<o?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function a(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),I(2!==t?r:r.replace(k,"$1"),n,t)}function s(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,i,a,s,o,l,u){for(var m,d=0,p=t;d<V;++d)switch(m=j[d].call(c,e,p,n,r,i,a,s,o,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)&&(I=null,e?"function"!=typeof e?T=1:(T=2,I=e):T=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<V){var i=o(-1,n,r,r,P,N,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var a=t(M,r,n,0,0);return 0<V&&void 0!==(i=o(-2,a,r,r,P,N,a.length,0,0,0))&&(a=i),$=0,N=P=1,a}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}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,N=1,P=1,$=0,T=1,M=[],j=[],V=0,I=null,O=0;return c.use=function e(t){switch(t){case void 0:case null:V=j.length=0;break;default:if("function"==typeof t)j[V++]=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 _={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(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var q=/^((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|fetchpriority|fetchPriority|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 q.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),F="function"==typeof Symbol&&Symbol.for,H=F?Symbol.for("react.element"):60103,W=F?Symbol.for("react.portal"):60106,U=F?Symbol.for("react.fragment"):60107,Y=F?Symbol.for("react.strict_mode"):60108,Z=F?Symbol.for("react.profiler"):60114,X=F?Symbol.for("react.provider"):60109,K=F?Symbol.for("react.context"):60110,J=F?Symbol.for("react.async_mode"):60111,Q=F?Symbol.for("react.concurrent_mode"):60111,ee=F?Symbol.for("react.forward_ref"):60112,te=F?Symbol.for("react.suspense"):60113,ne=F?Symbol.for("react.suspense_list"):60120,re=F?Symbol.for("react.memo"):60115,ie=F?Symbol.for("react.lazy"):60116,ae=F?Symbol.for("react.block"):60121,se=F?Symbol.for("react.fundamental"):60117,oe=F?Symbol.for("react.responder"):60118,le=F?Symbol.for("react.scope"):60119;function ce(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case H:switch(e=e.type){case J:case Q:case U:case Z:case Y:case te:return e;default:switch(e=e&&e.$$typeof){case K:case ee:case ie:case re:case X:return e;default:return t}}case W:return t}}}function ue(e){return ce(e)===Q}var me={AsyncMode:J,ConcurrentMode:Q,ContextConsumer:K,ContextProvider:X,Element:H,ForwardRef:ee,Fragment:U,Lazy:ie,Memo:re,Portal:W,Profiler:Z,StrictMode:Y,Suspense:te,isAsyncMode:function(e){return ue(e)||ce(e)===J},isConcurrentMode:ue,isContextConsumer:function(e){return ce(e)===K},isContextProvider:function(e){return ce(e)===X},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===H},isForwardRef:function(e){return ce(e)===ee},isFragment:function(e){return ce(e)===U},isLazy:function(e){return ce(e)===ie},isMemo:function(e){return ce(e)===re},isPortal:function(e){return ce(e)===W},isProfiler:function(e){return ce(e)===Z},isStrictMode:function(e){return ce(e)===Y},isSuspense:function(e){return ce(e)===te},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===U||e===Q||e===Z||e===Y||e===te||e===ne||"object"==typeof e&&null!==e&&(e.$$typeof===ie||e.$$typeof===re||e.$$typeof===X||e.$$typeof===K||e.$$typeof===ee||e.$$typeof===se||e.$$typeof===oe||e.$$typeof===le||e.$$typeof===ae)},typeOf:ce},de=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,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=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 i:case s:case a:case d:return p;default:var g=p&&p.$$typeof;switch(g){case l:case m:case f:case h:case o:return g;default:return t}}case r:return t}}}var x=u,S=l,C=o,k=n,A=m,E=i,N=f,P=h,$=r,T=s,M=a,j=d,V=!1;function I(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=S,t.ContextProvider=C,t.Element=k,t.ForwardRef=A,t.Fragment=E,t.Lazy=N,t.Memo=P,t.Portal=$,t.Profiler=T,t.StrictMode=M,t.Suspense=j,t.isAsyncMode=function(e){return V||(V=!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.")),I(e)||w(e)===c},t.isConcurrentMode=I,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===o},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)===i},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)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===s||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===l||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),pe=y(function(e){e.exports="production"===process.env.NODE_ENV?me:de}),he={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ge={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ve={};function ye(e){return pe.isMemo(e)?ge:ve[e.$$typeof]||he}ve[pe.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ve[pe.Memo]=ge;var be=Object.defineProperty,we=Object.getOwnPropertyNames,xe=Object.getOwnPropertySymbols,Se=Object.getOwnPropertyDescriptor,Ce=Object.getPrototypeOf,ke=Object.prototype,Ae=function e(t,n,r){if("string"!=typeof n){if(ke){var i=Ce(n);i&&i!==ke&&e(t,i,r)}var a=we(n);xe&&(a=a.concat(xe(n)));for(var s=ye(t),o=ye(n),l=0;l<a.length;++l){var c=a[l];if(!(fe[c]||r&&r[c]||o&&o[c]||s&&s[c])){var u=Se(n,c);try{be(t,c,u)}catch(e){}}}}return t};function Ee(){return(Ee=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 Ne=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},Pe=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!z.typeOf(e)},$e=Object.freeze([]),Te=Object.freeze({});function Me(e){return"function"==typeof e}function je(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ve(e){return e&&"string"==typeof e.styledComponentId}var Ie="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Oe="undefined"!=typeof window&&"HTMLElement"in window,De=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)),Le={},ze="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 Re(){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 _e(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(Re.apply(void 0,[ze[e]].concat(n)).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,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,i=r;e>=i;)(i<<=1)<0&&_e(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),o=0,l=t.length;o<l;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},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 i=n;i<r;i++)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),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),qe=new Map,Be=new Map,Fe=1,He=function(e){if(qe.has(e))return qe.get(e);for(;Be.has(Fe);)Fe++;var t=Fe++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&_e(16,""+t),qe.set(e,t),Be.set(t,e),t},We=function(e){return Be.get(e)},Ue=function(e,t){t>=Fe&&(Fe=t+1),qe.set(e,t),Be.set(t,e)},Ye="style["+Ie+'][data-styled-version="5.3.11"]',Ze=new RegExp("^"+Ie+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Xe=function(e,t,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&e.registerName(t,r)},Ke=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var o=s.match(Ze);if(o){var l=0|parseInt(o[1],10),c=o[2];0!==l&&(Ue(c,l),Xe(e,c,o[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},Je=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ie))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(Ie,"active"),r.setAttribute("data-styled-version","5.3.11");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Qe=function(){function e(e){var t=this.element=Je(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 i=t[n];if(i.ownerNode===e)return i}_e(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}(),et=function(){function e(e){var t=this.element=Je(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}(),tt=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}(),nt=Oe,rt={isServer:!Oe,useCSSOMInjection:!De},it=function(){function e(e,t,n){void 0===e&&(e=Te),void 0===t&&(t={}),this.options=Ee({},rt,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Oe&&nt&&(nt=!1,function(e){for(var t=document.querySelectorAll(Ye),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(Ie)&&(Ke(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return He(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ee({},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,i=t.target,e=n?new tt(i):r?new Qe(i):new et(i),new Ge(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(He(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(He(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(He(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="",i=0;i<n;i++){var a=We(i);if(void 0!==a){var s=e.names.get(a),o=t.getGroup(i);if(s&&o&&s.size){var l=Ie+".g"+i+'[id="'+a+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+o+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),at=/(a)(d)/gi,st=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=st(t%52)+n;return(st(t%52)+n).replace(at,"$1-$2")}var lt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ct=function(e){return lt(5381,e)};function ut(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Me(n)&&!Ve(n))return!1}return!0}var mt=ct("5.3.11"),dt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ut(e),this.componentId=t,this.baseHash=lt(mt,t),this.baseStyle=n,it.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=Pt(this.rules,e,t,n).join(""),s=ot(lt(this.baseHash,a)>>>0);if(!t.hasNameForId(r,s)){var o=n(a,"."+s,void 0,r);t.insertRules(r,s,o)}i.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=lt(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=lt(c,d+m));else if(d){var p=Pt(d,e,t,n),h=Array.isArray(p)?p.join(""):p;c=lt(c,h+m),u+=h}}if(u){var f=ot(c>>>0);if(!t.hasNameForId(r,f)){var g=n(u,"."+f,void 0,r);t.insertRules(r,f,g)}i.push(f)}}return i.join(" ")},e}(),pt=/^\s*\/\/.*$/gm,ht=[":","[",".","#"],ft=e.createContext(),gt=e.createContext(),vt=new it,yt=function(){var e,t,n,r,i=Te.options,a=Te.plugins,s=void 0===a?$e:a,o=new R(void 0===i?Te:i),l=[],c=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,s,o,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(i[0]+r),"";default:return r+(0===m?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){l.push(e)}),u=function(n,i,a){return 0===i&&-1!==ht.indexOf(a[t.length])||a.match(r)?n:"."+e};function m(i,a,s,l){void 0===l&&(l="&");var c=i.replace(pt,""),u=a&&s?s+" "+a+" { "+c+" }":c;return e=l,t=a,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),o(s||!a?"":a,u)}return o.use([].concat(s,[function(e,r,i){2===e&&i.length&&i[0].lastIndexOf(t)>0&&(i[0]=i[0].replace(n,u))},c,function(e){if(-2===e){var t=l;return l=[],t}}])),m.hash=s.length?s.reduce(function(e,t){return t.name||_e(15),lt(e,t.name)},5381).toString():"",m}();function bt(){return n(ft)||vt}function wt(){return n(gt)||yt}var xt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=yt);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 _e(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=yt),this.name+e.hash},e}(),St=/([A-Z])/,Ct=/([A-Z])/g,kt=/^ms-/,At=function(e){return"-"+e.toLowerCase()};function Et(e){return St.test(e)?e.replace(Ct,At).replace(kt,"-ms-"):e}var Nt=function(e){return null==e||!1===e||""===e};function Pt(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],s=0,o=e.length;s<o;s+=1)""!==(i=Pt(e[s],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(Nt(e))return"";if(Ve(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&&z.isElement(l)&&console.warn(je(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."),Pt(l,t,n,r)}var c;return e instanceof xt?n?(e.inject(n,r),e.getName(r)):e:Pe(e)?function e(t,n){var r,i,a=[];for(var s in t)t.hasOwnProperty(s)&&!Nt(t[s])&&(Array.isArray(t[s])&&t[s].isCss||Me(t[s])?a.push(Et(s)+":",t[s],";"):Pe(t[s])?a.push.apply(a,e(t[s],s)):a.push(Et(s)+": "+(r=s,(null==(i=t[s])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in _||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString()}var $t=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Tt(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)||Pe(e)?$t(Pt(Ne($e,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:$t(Pt(Ne(e,n)))}var Mt=/invalid hook call/i,jt=new Set,Vt=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.",i=console.error;try{var a=!0;console.error=function(e){if(Mt.test(e))a=!1,jt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];i.apply(void 0,[e].concat(n))}},t(),a&&!jt.has(r)&&(console.warn(r),jt.add(r))}catch(e){Mt.test(e.message)&&jt.delete(r)}finally{console.error=i}}},It=function(e,t,n){return void 0===n&&(n=Te),e.theme!==n.theme&&e.theme||t||n.theme},Ot=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Dt=/(^-|-$)/g;function Lt(e){return e.replace(Ot,"-").replace(Dt,"")}var zt=function(e){return ot(ct(e)>>>0)};function Rt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var _t=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 qt(e,t,n){var r=e[n];_t(t)&&_t(r)?Bt(r,t):e[n]=t}function Bt(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 i=0,a=n;i<a.length;i++){var s=a[i];if(_t(s))for(var o in s)Gt(o)&&qt(e,s[o],o)}return e}var Ft=e.createContext(),Ht={};function Wt(t,r,a){var s=Ve(t),o=!Rt(t),l=r.attrs,c=void 0===l?$e:l,u=r.componentId,m=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Lt(e);Ht[n]=(Ht[n]||0)+1;var r=n+"-"+zt("5.3.11"+n+Ht[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):u,d=r.displayName,p=void 0===d?function(e){return Rt(e)?"styled."+e:"Styled("+je(e)+")"}(t):d,h=r.displayName&&r.componentId?Lt(r.displayName)+"-"+r.componentId:r.componentId||m,f=s&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;s&&t.shouldForwardProp&&(g=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,y=new dt(a,h,s?t.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,r,a){var s=e.attrs,o=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=Te);var r=Ee({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,a,s=e;for(t in Me(s)&&(s=s(r)),s)r[t]=i[t]="className"===t?(a=s[t],(n=i[t])&&a?n+" "+a:n||a):s[t]}),[r,i]}(It(t,n(Ft),l)||Te,t,s),h=p[1],f=function(e,t,n,r){var i=bt(),a=wt(),s=e.generateAndInjectStyles(t?Te:n,i,a);return"production"!==process.env.NODE_ENV&&!t&&r&&r(s),s}(o,a,p[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=Rt(v),b=h!==t?Ee({},t,{},h):t,w={};for(var x in b)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=b[x]:(u?u(x,B,v):!y||B(x))&&(w[x]=b[x]));return t.style&&h.style!==t.style&&(w.style=Ee({},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,i(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=s?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):$e,v.styledComponentId=h,v.target=s?t.target:t,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(r,["componentId"]),i=t&&t+"-"+(Rt(e)?e:Lt(je(e)));return Wt(e,Ee({},n,{attrs:f,componentId:i}),a)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?Bt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Vt(p,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){!r&&(n[i]=!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}}),o&&Ae(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Ut=function(e){return function e(t,n,r){if(void 0===r&&(r=Te),!z.isValidElementType(n))return _e(1,String(n));var i=function(){return t(n,r,Tt.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,Ee({},r,{},i))},i.attrs=function(i){return e(t,n,Ee({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Wt,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){Ut[e]=Ut(e)});var Yt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ut(e),it.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(Pt(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&it.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 Zt,Xt,Kt,Jt=Ut;!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"}(Zt||(Zt={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(Xt||(Xt={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(Kt||(Kt={}));const Qt={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 puuttuu",sv:"Data saknas",en:"Missing data"}},en={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."]}},tn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Qt,this.ArrayTranslations=en}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]))}},nn=tn.Translations,rn=tn.ArrayTranslations,an=tn.GetAllLanguages;function sn(e){tn.AddTranslations(e)}const on=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function ln(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const cn=["",".","..","...","....",".....","......","-"];function un(e,t,n,r=!1){if(null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function mn(e,t,n=!1){if(e)return n?nn.dataMissing[t]:cn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function dn(e,t){return function(){var n,r,i;const a=[];var s,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&a.push(`${null==(s=e.rowVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${this.name}`);const l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(Cn(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&a.push(nn.preliminaryData[t]),a.join("<br/>")}}function pn(e,t){return function(n){var r,i,a;const s=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&s.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${kn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&s.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${kn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(Cn(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(nn.preliminaryData[t]),s.join(", ")}}function hn(e){return function(){return this.value.toLocaleString(e)}}const fn=e=>an().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():an()[0];function gn(e=null){const t=e&&e>=15?25:50;return function(){return bn(this.value,t)}}function vn(e){return function(){var t,n;if(!this.y)return"";const r=null!=(t=null==(n=this.options.custom)?void 0:n.precision)?t:0;return un(this.y,r,e,!0)}}function yn(){return function(){return bn(this.name,200)}}const bn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function wn(e,t){return function(){var n,r;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),a=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return i&&i.length>0&&this.series.name&&(o+=`${i}: ${this.x.toLocaleString(t)}<br />`),a&&a.length>0&&this.key&&(o+=`${a}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${nn.preliminaryData[t]}`),o}}function xn(e,t){return function(){var n,r,i;const a=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)a.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var s;e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(Cn(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&a.push(nn.preliminaryData[t]),a.join("<br/>")}}function Sn(e,t){const n=e.map(e=>e.unit).filter(ln);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 Cn(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===Zt.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==Zt.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==Zt.PercentVerticalBarChart?`${un(null!=(a=t.percentage)?a:null,1,n)}% (${i.toLocaleString(n)} ${Sn(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function kn(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]} ${rn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=rn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${nn.quarter[t]}`}console.log("Unsupported time pattern")}return e}const An=(e,t,n,r=!1)=>e.series.map((i,a)=>({index:r?e.series.length-1-a:a,animation:!1,type:t,name:i.rowNameGroup.map(e=>e[n]).join(", "),data:i.series.map((t,r)=>({y:t.value,name:e.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:t.preliminary,precision:t.precision}}))}));var En;function Nn(e,t,n){return function(){const r=function(e,t,n,r=new u(0)){var i;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):u.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const a=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const i=function(e){if(e.equals(0))return new u(0);const t=u.pow(10,u.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(a=i,a.equals(0)?0:a.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}(a):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}}(a)),i]),t;var a},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(u.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?i:new u(NaN):a[0][1]}(e,t,(n=>{const r=u.pow(10,u.log10(u.max(e.abs(),t.abs())).floor()),i=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(i,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),i=e.greaterThanOrEqualTo(0)?new u(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new u(0):t.div(r).ceil().mul(r);return Array.from({length:a.minus(i).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(i).toNumber())}}function Pn(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?Nn(new u(t),new u(n),new u(Math.pow(10,-r))):()=>[]}function $n(e){let t=null,n=null,r=0;return e[0].forEach((i,a)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[a].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),i.precision>r&&(r=i.precision)}),t&&n?Nn(new u(t),new u(n),new u(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(En||(En={}));const Tn=(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 Mn(e,t){if(t){const n=new Date(t);switch(e){case Kt.Irregular:case Kt.Week:return;case Kt.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case Kt.Quarter:case Kt.HalfYear:return;case Kt.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function jn(e,t){if(e.seriesType!==En.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!isNaN(parseFloat(e)));return e.seriesType===En.Ordinal&&r?Tn(e,t):{ordinal:e.seriesType==En.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case Kt.Week:return Vn(e,t);case Kt.Month:return In();case Kt.Quarter:return On(e,t);case Kt.HalfYear:return Dn(e,t);case Kt.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Vn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),In=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return c.dateFormat("%YM%m",Number(this.value))}}}),On=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Dn=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Ln=(e,t)=>({accessibility:{point:{descriptionFormatter:pn(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{text:`${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:dn(e,t)},yAxis:[zn]}),zn={plotLines:[{value:0,color:"#000",width:1}]},Rn=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:vn(t)}),_n=(e,t)=>v({},zn,{tickPositioner:Pn(e.series.map(e=>e.series)),title:{text:Sn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),Gn=(e,t)=>v({},Ln(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:gn(e.columnNameGroups.length),style:{width:200}}}}),qn=(e,t)=>v({},Gn(e,t),{series:An(e,"bar",t,!0),legend:v({},Wn,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),Bn=(e,t)=>v({},Ln(e,t),{chart:{type:"column"},xAxis:jn(e,t)}),Fn=(e,t)=>v({},Bn(e,t),{series:An(e,"column",t),yAxis:{softMin:0,softMax:0,title:{text:Sn(e.units,t)}}}),Hn=(e,t)=>v({},Bn(e,t),{series:An(e,"column",t,!0),legend:v({},Wn,{enabled:!0,layout:"vertical"})}),Wn={itemHiddenStyle:{color:"black"}},Un=(e,t)=>{var n,r;return v({},Ln(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){var e;const t=r?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return bn(this.name,20)+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:Sn(e.units,t),custom:{preliminary:n.preliminary,precision:n.precision}}))}))})},Yn=(e,t)=>{const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return v({},Ln(e,t),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:v({},zn,{min:-Math.abs(r),max:Math.abs(r),title:{text:Sn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:v({},Wn,{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,i)=>({y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:v({},Rn(e,t))}},exporting:{enabled:!1}})},Zn=(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 `,Xn=(e,t)=>{switch(t.visualizationSettings.visualizationType){case Zt.LineChart:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},Ln(e,t),{chart:{type:"line"},tooltip:{formatter:xn(e,t)},xAxis:v({},jn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:v({},zn,{softMin:r,softMax:r,title:{text:Sn(e.units,t)}}),plotOptions:{line:{dataLabels:v({},Rn(e,t)),marker:{enabled:!1}},series:Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:v({},Wn,{enabled:e.series.length>1,labelFormatter:yn()}),series:An(e,"line",t),exporting:{enabled:!1}})})(t,e);case Zt.VerticalBarChart:return((e,t)=>v({},Fn(e,t),{yAxis:v({},zn,{softMin:0,softMax:0,title:{text:Sn(e.units,t)}}),plotOptions:{series:v({},Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},Rn(e,t))})},exporting:{enabled:!1}}))(t,e);case Zt.HorizontalBarChart:return((e,t)=>v({},Gn(e,t),{series:An(e,"bar",t),chart:{type:"bar",spacingBottom:60},yAxis:v({},_n(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:v({},Rn(e,t))}}}))(t,e);case Zt.GroupVerticalBarChart:return((e,t)=>v({},Fn(e,t),{plotOptions:{series:v({},Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},Rn(e,t))})},legend:v({},Wn,{enabled:!0,labelFormatter:yn()})}))(t,e);case Zt.GroupHorizontalBarChart:return((e,t)=>v({},Gn(e,t),{series:An(e,"bar",t),yAxis:v({},_n(e,t),{softMin:0,softMax:0}),legend:v({},Wn,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:v({},Rn(e,t))}}}))(t,e);case Zt.StackedVerticalBarChart:return((e,t)=>v({},Hn(e,t),{yAxis:{softMin:0,softMax:0,title:{text:Sn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:v({},Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},Rn(e,t))})}}))(t,e);case Zt.StackedHorizontalBarChart:return((e,t)=>v({},qn(e,t),{yAxis:{softMin:0,softMax:0,tickPositioner:$n(e.series.map(e=>e.series)),title:{text:Sn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:v({},Rn(e,t))}}}))(t,e);case Zt.PercentVerticalBarChart:return((e,t)=>v({},Hn(e,t),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:v({},Mn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},Rn(e,t))})}}))(t,e);case Zt.PercentHorizontalBarChart:return((e,t)=>v({},qn(e,t),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:v({},Rn(e,t))}}}))(t,e);case Zt.PieChart:return Un(t,e);case Zt.PyramidChart:return Yn(t,e);case Zt.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},Ln(e,t),{chart:{type:"scatter"},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:v({},zn,{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:Zn(e.series,t),formatter:wn(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")}},Kn=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=Jn(i,r);if(i=t,a=v({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=Qn(i,n);if(i=t,a=v({},a,e),0===i.length)return a}return i.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(a[e]=t[n].type===Xt.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},Jn=(e,t)=>{const n=Object.keys(t),r={},i=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:i}},Qn=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>{const i=n.findIndex(t=>t===e);return i>-1?(r[e]=t[n[i]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},er=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},tr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function nr(e,t,n){return ir(rr(e,e.series[t].series,n),t)}function rr(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),i=r.map(t=>e.columnNameGroups[t]),a=e.series.map(e=>function(e,t){return v({},e,{series:t.map(t=>e.series[t])})}(e,r));return v({},e,{columnNameGroups:i,series:a})}function ir(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 ar(e,t){if(Object.keys(t).includes(e.code)){const n=e.values.filter(n=>t[e.code].includes(n.code));if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function sr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class or{constructor(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;const n=e.metaData,r=n.map(e=>e.values.length);this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},()=>[]),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===Xt.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===Xt.Time),this.indices=Array.from({length:n.length},()=>0),this.lastIndices=this.selectedViewMeta.map(e=>e.values.length-1),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(e=>e.values.length).reduce((e,t)=>e*t,1),this.dataIndex=0,this.setCurrentIndex()}initializeCoordinates(e){for(let n=0;n<this.selectedViewMeta.length;n++){var t;const r=this.variableOrder[n],i=this.selectedViewMeta[n].code,a=null==(t=e.find(e=>e.code===i))?void 0:t.values,s=this.selectedViewMeta.find(e=>e.code===i);this.coordinates[r]=s.values.map(e=>a.findIndex(t=>t===e))}}getViewSeries(){let e=0,t=[];const n=[];do{const r=this.createDataCell();t.push(r),e++,e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n}generateRowNameGroup(){return this.selectedViewMeta.slice(0,this.rowAmount).map((e,t)=>e.values[this.indices[this.variableOrder[t]]].name)}next(){for(let e=this.lastCoordinateIndex;e>=0;e--){const t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1}createDataCell(){var e,t;const n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r}getSelectedView(e,t){const n=e.metaData.map(e=>v({},e,{values:ar(e,t)})),r=sr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=sr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=sr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),s=a.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),o=a.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)&&!a.some(t=>t.code==e.code)),c=[...s,...r,...i,...o,...l];return this.rowLength=on(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+s.length,c}getVariableOrder(){const e=this.responseObj.metaData.map(e=>e.code),t=this.selectedViewMeta.map(t=>e.indexOf(t.code));return t}generateRCP(e){const t=Array.from({length:e.length});let n=1;for(let r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t}setCurrentIndex(){this.dataIndex=0;for(let e=0;e<=this.lastCoordinateIndex;e++){const t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}}getCurrentTimeValue(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]}}function lr(e,t){var n,r,i;const a=function(e,t,n){const{metaData:r,selectableVariableCodes:i}=e,a=function(e,t){return e.filter(e=>t.includes(e.code))}(r,i),s=function(e){const t=e.find(e=>e.type===Xt.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new or(e,t).getViewSeries(),r=sr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>ar(e,t));return{columnNameGroups:on(r).map(e=>e.map(e=>e.name)),series:n}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:dr(a,t,n),units:pr(s,t),sources:hr(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:nn.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:ur(e.columnVariableCodes,e.metaData),rowVarNames:ur(e.rowVariableCodes,e.metaData),selectableVarNames:ur(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:fr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),s=(null==(n=a.visualizationSettings)?void 0:n.visualizationType)===Zt.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===Zt.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return a;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>v({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return v({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(a);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 rr(e,n,t)}(a,tr);case"ascending":return nr(a,0,er);case"descending":return nr(a,0,tr);default:return s?(o=a,l=cr(a),c=mr(e),ir(rr(o,l.series[c].series,tr),c)):nr(a,mr(e),tr)}var o,l,c}function cr(e){const t=e.series.map(t=>v({},t,{series:t.series.map((t,n)=>{var r;const i=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,s={value:a,precision:1,preliminary:t.preliminary};return null===a&&(s.missingCode=t.missingCode),s})}));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 ur(e,t){return e.reduce((e,n)=>{var r;const i=null==(r=t.find(e=>e.code===n))?void 0:r.name;return i&&e.push(i),e},[])}function mr(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 dr(e,t,n){const r=[];return e.forEach(e=>{var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(n=>n.code===t[e.code][0]))?void 0:a.name)?i:{})}),r}function pr(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function hr(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter(ln):e.values.map(e=>n(e.contentComponent)).filter(ln)}function fr(e,t){var n;if(e.length>1||0===e.length)return En.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case Xt.Time:return En.Time;case Xt.Ordinal:return En.Ordinal;default:return En.Nominal}}const gr=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:nn.thousandsSepAccessibility[e],credits:nn.credits[e],chartTypes:{barMultiple:nn.barMultiple[e],barSingle:nn.barSingle[e],columnMultiple:nn.columnMultiple[e],columnSingle:nn.columnSingle[e],lineSingle:nn.lineSingle[e],lineMultiple:nn.lineMultiple[e],pieSingle:nn.pieSingle[e],scatterSingle:nn.scatterSingle[e],scatterMultiple:nn.scatterMultiple[e],defaultSingle:nn.defaultSingle[e],defaultMultiple:nn.defaultMultiple[e]},defaultChartTitle:nn.defaultChartTitle[e],exporting:{chartMenuLabel:nn.chartMenuLabel[e],menuButtonLabel:nn.menuButtonLabel[e]},legend:{legendItem:nn.legendItem[e],legendLabel:nn.legendLabel[e],legendLabelNoTitle:nn.legendLabelNoTitle[e]},axis:{rangeCategories:nn.rangeCategories[e],rangeFromTo:nn.rangeFromTo[e],timeRangeDays:nn.timeRangeDays[e],timeRangeHours:nn.timeRangeHours[e],timeRangeMinutes:nn.timeRangeMinutes[e],timeRangeSeconds:nn.timeRangeSeconds[e],xAxisDescriptionPlural:nn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:nn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:nn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:nn.yAxisDescriptionSingular[e]},series:{summary:{bar:nn.seriesSummaryBar[e],barCombination:nn.seriesSummaryBarCombination[e],column:nn.seriesSummaryColumn[e],columnCombination:nn.seriesSummaryColumnCombination[e],default:nn.seriesSummaryDefault[e],defaultCombination:nn.seriesSummaryDefaultCombination[e],line:nn.seriesSummaryLine[e],lineCombination:nn.seriesSummaryLineCombination[e],pie:nn.seriesSummaryPie[e],pieCombination:nn.seriesSummaryPieCombination[e],scatter:nn.seriesSummaryScatter[e],scatterCombination:nn.seriesSummaryScatterCombination[e]},xAxisDescription:nn.xAxisDescription[e],yAxisDescription:nn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:nn.endOfChartMarker[e]},chartContainerLabel:nn.chartContainerLabel[e]},thousandsSep:nn.thousandsSep[e],decimalPoint:nn.decimalPoint[e],contextButtonTitle:nn.contextButtonTitle[e],downloadCSV:nn.downloadCSV[e],downloadPNG:nn.downloadPNG[e],downloadSVG:nn.downloadSVG[e],months:rn.months[e],shortMonths:rn.shortMonths[e],weekdays:rn.weekdays[e],loading:nn.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:hn(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}}}),vr=(e,t,n,r=null)=>{const i=fn(n);"object"==typeof l&&(m(l),d(l),p(l)),l.setOptions(gr(i));const a=lr(t,Kn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),s=Xn(i,a);return l.chart(e,s)};function yr(e,t,n,r,i,a,s){const o=document.getElementById(a);if(!o)throw new Error("No container with matching id found in the DOM tree");try{const a=function(e,t){var n,r;const i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){const n=function(e,t){const n=xr(e),r=[];for(let i=0;i<e[0].length;i++){const a=document.createElement("tr");for(let r=0;r<e.length;r+=n[i]){const s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[r][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){const e=document.createElement("td");e.setAttribute("colSpan",a.toString()),e.setAttribute("rowSpan",i.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),s.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=wr(e);for(let i=0;i<e.length;i++){const a=document.createElement("tr");for(let n=0;n<e[i].rowNameGroup.length;n++)if(i%r[n]==0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[n][t],a.append(s)}for(const n of e[i].series){const e=document.createElement("td");e.textContent=null===n.value?mn(n.missingCode,t,!0):un(n.value,n.precision,t,!0),a.append(e)}n.push(a)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(n){const n=document.createElement("caption");if(n.textContent=e.header[t],e.subheaderValues.length>0){const r=e.subheaderValues.map(e=>e[t]).join(" | ");n.append(document.createElement("br"),r)}n.className="tableChart-caption",a.prepend(n)}if(o.append(a),r){const n=document.createElement("p"),r=Sn(e.units,t);n.append(`${nn.unit[t]}: ${r}`),o.append(n)}if(i){const n=document.createElement("p"),r=`${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),o.append(n)}if(s){const e=document.createElement("p");e.append(s),o.append(e)}}catch(e){console.error(e),o.replaceChildren();const n=document.createElement("h1");n.append(nn.graphCreationError[t]),o.append(n)}}const br=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),wr=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&&br(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},xr=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&&br(e[r][n],e[r+1][n]);r++)t[n]++;return t},Sr=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,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Zt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Zt.PercentVerticalBarChart)&&(e=cr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=","==nn.decimalPoint[t]?";":",",h="\n";let f=Ar([`"${e.header[t]}"`],0,d,p,h);e.subheaderValues.length>0&&(f+=Ar([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,p,h));for(let n=0;n<u;n++)f+=Ar(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?mn(e.missingCode,t):un(e.value,e.precision,t))),f+=Ar(n,0,d,p,h)}),f+=Ar([`"${nn.unit[t]}: ${Sn(e.units,t)}"`],0,d,p,h),f+=Ar([`"${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,p),f},kr=(e,t)=>({onClick:()=>{const n=Cr(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",Sr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:nn.downloadCSV[t]});function Ar(e,t,n,r,i=""){let a="";for(let i=0;i<n;i++)i>=t&&i<t+e.length&&(a+=e[i-t]),i<n-1&&(a+=r);return a+i}const Er=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Nr(e){const t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Nr(t-1)+n}const Pr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook ${['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")}>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>`;function $r(e,t,n){const r=Array(n);for(let i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}const Tr=(e,t)=>({onClick:async()=>{const n=await Mr(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Sr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:nn.downloadXLSX[t]});async function Mr(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Zt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Zt.PercentVerticalBarChart)&&(e=cr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=[$r([e.header[t]],0,d)];e.subheaderValues.length>0&&p.push($r([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)p.push($r(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?mn(e.missingCode,t):Number(e.value.toFixed(e.precision)))),p.push($r(n,0,d))}),p.push($r([`${nn.unit[t]}: ${Sn(e.units,t)}`],0,d)),p.push($r([`${nn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),p})(e,t),r=(e=>{const t=function(e){const t=[];for(let n=1;n<=e;n++)t.push(`<col min="${n}" max="${n}" width="20"/>`);return t?`<cols>${t}</cols>`:""}(Math.max(...e.map(e=>e.length))),n=function(e){return e.map((e,t)=>{const n=e.map((e,n)=>function(e,t,n){return null===e?null:"string"==typeof e?`<c r="${Nr(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"};return e.replace(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Nr(t)}${n}"><v>${e}</v></c>`}(e,n,t+1)).filter(e=>null!==e).join("");return`<row r="${t+1}">${n}</row>`}).join("")}(e);return((e,t)=>`<?xml version="1.0" ?>\n<worksheet ${Er.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":h(r),"workbook.xml":h(Pr),"_rels/workbook.xml.rels":h('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":h('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":h('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return new Promise((e,t)=>{f(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const jr=["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 Ir,Or,Dr,Lr,zr,Rr,_r,Gr=e=>e;const qr=Jt.button(Ir||(Ir=Gr`
2
2
  background-color: transparent;
3
3
  text-align: left;
4
4
  border: none;
@@ -14,7 +14,7 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
14
14
  :hover {
15
15
  text-decoration: underline;
16
16
  }
17
- `)),qr=Jt.a(Ir||(Ir=_r`
17
+ `)),Br=Jt.a(Or||(Or=Gr`
18
18
  text-decoration: none;
19
19
  display: flex;
20
20
  align-items: center;
@@ -27,7 +27,7 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
27
27
  :hover {
28
28
  text-decoration: underline;
29
29
  }
30
- `)),Br=Jt.li(Or||(Or=_r`
30
+ `)),Fr=Jt.li(Dr||(Dr=Gr`
31
31
  border-top-right-radius: ${0};
32
32
  border-top-left-radius: ${0};
33
33
  border-bottom-right-radius: ${0};
@@ -36,7 +36,7 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
36
36
  :hover {
37
37
  background-color: #f2f2f2;
38
38
  }
39
- `),e=>e.$isFirst?"18px":"0px",e=>e.$isFirst?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$separator?"1px solid #bdbdbd":"0px"),Fr=Jt.div(Dr||(Dr=_r`
39
+ `),e=>e.$isFirst?"18px":"0px",e=>e.$isFirst?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$separator?"1px solid #bdbdbd":"0px"),Hr=Jt.div(Lr||(Lr=Gr`
40
40
  height: 100%;
41
41
  width: 100%;
42
42
  display: flex;
@@ -45,7 +45,7 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
45
45
  justify-content: left;
46
46
  align-items: center;
47
47
  justify-items: center;
48
- `)),Hr=Jt.div(Lr||(Lr=_r`
48
+ `)),Wr=Jt.div(zr||(zr=Gr`
49
49
  height: 1rem;
50
50
  width: 1rem;
51
51
  svg {
@@ -53,10 +53,10 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
53
53
  width: 1rem;
54
54
  fill: #1a3061;
55
55
  }
56
- `)),Wr=Jt.span(zr||(zr=_r`
56
+ `)),Ur=Jt.span(Rr||(Rr=Gr`
57
57
  margin-left: ${0};
58
58
  margin-right: ${0};
59
- `),e=>e.$hasPrefixIcon?"0.5rem":"0px",e=>e.$hasSuffixIcon?"0.5rem":"0px"),Ur=Jt.span(Rr||(Rr=_r`
59
+ `),e=>e.$hasPrefixIcon?"0.5rem":"0px",e=>e.$hasSuffixIcon?"0.5rem":"0px"),Yr=Jt.span(_r||(_r=Gr`
60
60
  clip: rect(0 0 0 0);
61
61
  clip-path: inset(50%);
62
62
  height: 1px;
@@ -64,10 +64,10 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
64
64
  position: absolute;
65
65
  white-space: nowrap;
66
66
  width: 1px;
67
- `)),Yr=({text:t,onClick:n,url:r,openNewTab:i,isExternal:a,prefixIcon:s,suffixIcon:o,locale:l,bottomSeparator:c=!1,isFirst:u=!1,isLast:m=!1})=>{let d,p;s&&(d="string"==typeof s&&Mr.includes(s)?e.createElement(jr,{inheritColor:!0,icon:s}):s),o&&(p="string"==typeof o&&Mr.includes(o)?e.createElement(jr,{inheritColor:!0,icon:o}):s);const h=e.createElement(Fr,null,d&&e.createElement(Hr,null,d),e.createElement(Wr,{$hasPrefixIcon:!!s,$hasSuffixIcon:!!o||a},t),o&&e.createElement(Hr,null,p),a&&e.createElement(e.Fragment,null,e.createElement(Ur,null,nn.externalLink[l]),e.createElement(Hr,null,e.createElement(jr,{inheritColor:!0,icon:"ExternalLink"}))));return r?e.createElement(Br,{$isFirst:u,$isLast:m,$separator:c},e.createElement(qr,{href:r,target:i?"_blank":void 0,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),e.target.click())},onClick:e=>{n&&n()}},h)):n?e.createElement(Br,{$isFirst:u,$isLast:m,$separator:c},e.createElement(Gr,{onClick:n},h)):e.createElement(e.Fragment,null)};let Zr,Xr,Kr,Jr,Qr,ei=e=>e;const ti=Jt.div(Zr||(Zr=ei`
67
+ `)),Zr=({text:t,onClick:n,url:r,openNewTab:i,isExternal:a,prefixIcon:s,suffixIcon:o,locale:l,bottomSeparator:c=!1,isFirst:u=!1,isLast:m=!1})=>{let d,p;s&&(d="string"==typeof s&&jr.includes(s)?e.createElement(Vr,{inheritColor:!0,icon:s}):s),o&&(p="string"==typeof o&&jr.includes(o)?e.createElement(Vr,{inheritColor:!0,icon:o}):s);const h=e.createElement(Hr,null,d&&e.createElement(Wr,null,d),e.createElement(Ur,{$hasPrefixIcon:!!s,$hasSuffixIcon:!!o||a},t),o&&e.createElement(Wr,null,p),a&&e.createElement(e.Fragment,null,e.createElement(Yr,null,nn.externalLink[l]),e.createElement(Wr,null,e.createElement(Vr,{inheritColor:!0,icon:"ExternalLink"}))));return r?e.createElement(Fr,{$isFirst:u,$isLast:m,$separator:c},e.createElement(Br,{href:r,target:i?"_blank":void 0,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),e.target.click())},onClick:e=>{n&&n()}},h)):n?e.createElement(Fr,{$isFirst:u,$isLast:m,$separator:c},e.createElement(qr,{onClick:n},h)):e.createElement(e.Fragment,null)};let Xr,Kr,Jr,Qr,ei,ti=e=>e;const ni=Jt.div(Xr||(Xr=ti`
68
68
  width: 2.5rem;
69
69
  height: 2.5rem;
70
- `)),ni=Jt.button(Xr||(Xr=ei`
70
+ `)),ri=Jt.button(Kr||(Kr=ti`
71
71
  width: 100%;
72
72
  height: 100%;
73
73
  svg {
@@ -77,11 +77,11 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
77
77
  background-color: transparent;
78
78
  border: none;
79
79
  cursor: pointer;
80
- `)),ri=Jt.div(Kr||(Kr=ei`
80
+ `)),ii=Jt.div(Jr||(Jr=ti`
81
81
  width: 100%;
82
82
  height: 0;
83
83
  position: relative;
84
- `)),ii=Jt.div(Jr||(Jr=ei`
84
+ `)),ai=Jt.div(Qr||(Qr=ti`
85
85
  display: flex;
86
86
  flex-flow: column;
87
87
  position: absolute;
@@ -90,11 +90,11 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
90
90
  top: 0.2rem;
91
91
  right: 0.2rem;
92
92
  border: 1px solid #bdbdbd;
93
- `)),ai=Jt.ul(Qr||(Qr=ei`
93
+ `)),si=Jt.ul(ei||(ei=ti`
94
94
  list-style-type: none;
95
95
  margin: 0;
96
96
  padding: 0;
97
- `));function si(e){const t=600,n=e.chart.chartWidth,r=e.chart.chartHeight;let i,a,s=Math.max(.5,Math.min(2,n/r));return s<1?(a=Math.max(t,Math.min(3e3,r)),i=a*s,i<t&&(i=t,a=i/s)):(i=Math.max(t,Math.min(3e3,n)),a=i/s,a<t&&(a=t,i=a*s)),{finalWidth:i,finalHeight:a}}const oi=({viewData:t,currentChartRef:n,tableToggle:r,menuItemDefinitions:i,locale:s,menuIconInheritColor:o=!1})=>{const[l,c]=e.useState(!1),u=e.useRef(null),m=e=>{var t;u.current&&l&&!u.current.contains(e.target)&&(c(!1),null==(t=g.current)||t.focus())};document.addEventListener("mousedown",m);const d=Cr(t,s),p=$r(t,s),h=null==i?void 0:i.map((t,n)=>"onClick"in t?e.createElement(Yr,{isFirst:0===n,bottomSeparator:n+1===i.length,locale:s,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,key:`customfmenuitem-${n}`,text:t.text,onClick:()=>v(t.onClick)}):"url"in t?e.createElement(Yr,{isFirst:0===n,bottomSeparator:n+1===i.length,locale:s,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,isExternal:t.isExternal,key:`customlmenuitem-${n}`,text:`${t.text}`,url:t.url,openNewTab:t.openNewTab,onClick:()=>v()}):void 0);a(()=>(document.addEventListener("mousedown",m),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",f)}),[l]);const f=e=>{var t;"Escape"===e.key&&(c(!1),null==(t=g.current)||t.focus())},g=e.useRef(null),v=e=>{var t;c(!1),null==(t=g.current)||t.focus(),e&&e()};return e.createElement(ti,{ref:u},e.createElement(ni,{ref:g,"aria-label":`${nn.chartMenuLabel[s]}`,"aria-expanded":l,onClick:()=>{c(!l)}},e.createElement(jr,{inheritColor:o,icon:l?"Times":"Bars"})),e.createElement(ri,null,l&&e.createElement(ii,null,e.createElement(ai,null,i&&h,e.createElement(Yr,{isFirst:!i,locale:s,prefixIcon:"Download",text:p.text,onClick:()=>v(p.onClick)}),e.createElement(Yr,{isLast:!n,bottomSeparator:!!n,locale:s,prefixIcon:"Download",text:d.text,onClick:()=>v(d.onClick)}),n&&e.createElement(e.Fragment,null,e.createElement(Yr,{locale:s,prefixIcon:"Download",text:nn.downloadSVG[s],onClick:()=>v(()=>n.chart.exportChartLocal({filename:`${xr(t.tableReferenceName)}`,type:"image/svg+xml",sourceWidth:si(n).finalWidth,sourceHeight:si(n).finalHeight,scale:1},{}))}),e.createElement(Yr,{isLast:!r,bottomSeparator:!!r,locale:s,prefixIcon:"Download",text:nn.downloadPNG[s],onClick:()=>v(()=>n.chart.exportChartLocal({filename:`${xr(t.tableReferenceName)}`,sourceWidth:si(n).finalWidth,sourceHeight:si(n).finalHeight,scale:1},{}))})),r&&e.createElement(Yr,{isLast:!0,locale:s,text:r.tableMode?nn.toggleTableModeOffText[s]:nn.toggleTableModeOnText[s],onClick:()=>v(r.toggleHandler)})))))},li=[];for(let e=0;e<256;++e)li.push((e+256).toString(16).slice(1));let ci;const ui=new Uint8Array(16);var mi={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const di=({view:t,locale:n,footnote:r,showTitles:i=!0,showUnits:a=!0,showSources:o=!0})=>{const l=s(()=>function(e){if(mi.randomUUID&&!e)return mi.randomUUID();const t=(e=e||{}).random??e.rng?.()??function(){if(!ci){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ci=crypto.getRandomValues.bind(crypto)}return ci(ui)}();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(li[e[t+0]]+li[e[t+1]]+li[e[t+2]]+li[e[t+3]]+"-"+li[e[t+4]]+li[e[t+5]]+"-"+li[e[t+6]]+li[e[t+7]]+"-"+li[e[t+8]]+li[e[t+9]]+"-"+li[e[t+10]]+li[e[t+11]]+li[e[t+12]]+li[e[t+13]]+li[e[t+14]]+li[e[t+15]]).toLowerCase()}(t)}(),[t,n]);return e.useEffect(()=>{var e;null==(e=document.getElementById(l))||e.replaceChildren(),vr(t,n,i,a,o,l,r)},[t,n,i,a,o,r]),e.createElement("div",{className:"tableChart",id:l})};let pi;const hi=function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),o=1;o<a;o++)s[o-1]=arguments[o];var l=Tt.apply(void 0,[i].concat(s)),c="sc-global-"+zt(JSON.stringify(l)),u=new Yt(l,c);function m(i){var a=bt(),s=wt(),o=n(Ft),m=t(a.allocateGSInstance(c)).current;return"production"!==process.env.NODE_ENV&&e.Children.count(i.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."),a.server&&d(m,i,a,o,s),r(function(){if(!a.server)return d(m,i,a,o,s),function(){return u.removeStyles(m,a)}},[m,i,a,o,s]),null}function d(e,t,n,r,i){if(u.isStatic)u.renderStyles(e,Le,n,i);else{var a=Ee({},t,{theme:It(t,r,m.defaultProps)});u.renderStyles(e,a,n,i)}}return"production"!==process.env.NODE_ENV&&Vt(c),e.memo(m)}(pi||(pi=(e=>e)`
97
+ `));function oi(e){const t=600,n=e.chart.chartWidth,r=e.chart.chartHeight;let i,a,s=Math.max(.5,Math.min(2,n/r));return s<1?(a=Math.max(t,Math.min(3e3,r)),i=a*s,i<t&&(i=t,a=i/s)):(i=Math.max(t,Math.min(3e3,n)),a=i/s,a<t&&(a=t,i=a*s)),{finalWidth:i,finalHeight:a}}const li=({viewData:t,currentChartRef:n,tableToggle:r,menuItemDefinitions:i,locale:s,menuIconInheritColor:o=!1})=>{const[l,c]=e.useState(!1),u=e.useRef(null),m=e=>{var t;u.current&&l&&!u.current.contains(e.target)&&(c(!1),null==(t=g.current)||t.focus())};document.addEventListener("mousedown",m);const d=kr(t,s),p=Tr(t,s),h=null==i?void 0:i.map((t,n)=>"onClick"in t?e.createElement(Zr,{isFirst:0===n,bottomSeparator:n+1===i.length,locale:s,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,key:`customfmenuitem-${n}`,text:t.text,onClick:()=>v(t.onClick)}):"url"in t?e.createElement(Zr,{isFirst:0===n,bottomSeparator:n+1===i.length,locale:s,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,isExternal:t.isExternal,key:`customlmenuitem-${n}`,text:`${t.text}`,url:t.url,openNewTab:t.openNewTab,onClick:()=>v()}):void 0);a(()=>(document.addEventListener("mousedown",m),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",f)}),[l]);const f=e=>{var t;"Escape"===e.key&&(c(!1),null==(t=g.current)||t.focus())},g=e.useRef(null),v=e=>{var t;c(!1),null==(t=g.current)||t.focus(),e&&e()};return e.createElement(ni,{ref:u},e.createElement(ri,{ref:g,"aria-label":`${nn.chartMenuLabel[s]}`,"aria-expanded":l,onClick:()=>{c(!l)}},e.createElement(Vr,{inheritColor:o,icon:l?"Times":"Bars"})),e.createElement(ii,null,l&&e.createElement(ai,null,e.createElement(si,null,i&&h,e.createElement(Zr,{isFirst:!i,locale:s,prefixIcon:"Download",text:p.text,onClick:()=>v(p.onClick)}),e.createElement(Zr,{isLast:!n,bottomSeparator:!!n,locale:s,prefixIcon:"Download",text:d.text,onClick:()=>v(d.onClick)}),n&&e.createElement(e.Fragment,null,e.createElement(Zr,{locale:s,prefixIcon:"Download",text:nn.downloadSVG[s],onClick:()=>v(()=>n.chart.exportChartLocal({filename:`${Sr(t.tableReferenceName)}`,type:"image/svg+xml",sourceWidth:oi(n).finalWidth,sourceHeight:oi(n).finalHeight,scale:1},{}))}),e.createElement(Zr,{isLast:!r,bottomSeparator:!!r,locale:s,prefixIcon:"Download",text:nn.downloadPNG[s],onClick:()=>v(()=>n.chart.exportChartLocal({filename:`${Sr(t.tableReferenceName)}`,sourceWidth:oi(n).finalWidth,sourceHeight:oi(n).finalHeight,scale:1},{}))})),r&&e.createElement(Zr,{isLast:!0,locale:s,text:r.tableMode?nn.toggleTableModeOffText[s]:nn.toggleTableModeOnText[s],onClick:()=>v(r.toggleHandler)})))))},ci=[];for(let e=0;e<256;++e)ci.push((e+256).toString(16).slice(1));let ui;const mi=new Uint8Array(16);var di={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const pi=({view:t,locale:n,footnote:r,showTitles:i=!0,showUnits:a=!0,showSources:o=!0})=>{const l=s(()=>function(e){if(di.randomUUID&&!e)return di.randomUUID();const t=(e=e||{}).random??e.rng?.()??function(){if(!ui){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ui=crypto.getRandomValues.bind(crypto)}return ui(mi)}();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(ci[e[t+0]]+ci[e[t+1]]+ci[e[t+2]]+ci[e[t+3]]+"-"+ci[e[t+4]]+ci[e[t+5]]+"-"+ci[e[t+6]]+ci[e[t+7]]+"-"+ci[e[t+8]]+ci[e[t+9]]+"-"+ci[e[t+10]]+ci[e[t+11]]+ci[e[t+12]]+ci[e[t+13]]+ci[e[t+14]]+ci[e[t+15]]).toLowerCase()}(t)}(),[t,n]);return e.useEffect(()=>{var e;null==(e=document.getElementById(l))||e.replaceChildren(),yr(t,n,i,a,o,l,r)},[t,n,i,a,o,r]),e.createElement("div",{className:"tableChart",id:l})};let hi;const fi=function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),o=1;o<a;o++)s[o-1]=arguments[o];var l=Tt.apply(void 0,[i].concat(s)),c="sc-global-"+zt(JSON.stringify(l)),u=new Yt(l,c);function m(i){var a=bt(),s=wt(),o=n(Ft),m=t(a.allocateGSInstance(c)).current;return"production"!==process.env.NODE_ENV&&e.Children.count(i.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."),a.server&&d(m,i,a,o,s),r(function(){if(!a.server)return d(m,i,a,o,s),function(){return u.removeStyles(m,a)}},[m,i,a,o,s]),null}function d(e,t,n,r,i){if(u.isStatic)u.renderStyles(e,Le,n,i);else{var a=Ee({},t,{theme:It(t,r,m.defaultProps)});u.renderStyles(e,a,n,i)}}return"production"!==process.env.NODE_ENV&&Vt(c),e.memo(m)}(hi||(hi=(e=>e)`
98
98
  /* @font-face {
99
99
  font-family: 'Barlow Semi Condensed';
100
100
  font-style: normal;
@@ -168,21 +168,21 @@ import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as i,us
168
168
  margin-bottom: 2rem;
169
169
  text-align: left;
170
170
  }
171
- `));let fi;const gi=Jt.div(fi||(fi=(e=>e)`
171
+ `));let gi;const vi=Jt.div(gi||(gi=(e=>e)`
172
172
  width: 100%;
173
173
  position: relative;
174
174
  font-family: 'Barlow Semi Condensed';
175
- `)),vi=({locale:t})=>e.createElement(gi,null,e.createElement("h1",null,nn.graphCreationError[t]));class yi 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 bi,wi,xi,Si,Ci=e=>e;const ki=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()}),m(c),d(c),p(c),c.setOptions(Ln(e)))},Ai=Jt.div(bi||(bi=Ci`
175
+ `)),yi=({locale:t})=>e.createElement(vi,null,e.createElement("h1",null,nn.graphCreationError[t]));class bi 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 wi,xi,Si,Ci,ki=e=>e;const Ai=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()}),c.setOptions(gr(e)))},Ei=Jt.div(wi||(wi=ki`
176
176
  width: 100%;
177
177
  position: relative;
178
- `)),Ei=Jt.div(wi||(wi=Ci`
178
+ `)),Ni=Jt.div(xi||(xi=ki`
179
179
  position: absolute;
180
180
  top: 0;
181
181
  right: 0;
182
182
  z-index: 1;
183
- `)),Ni=Jt.div(xi||(xi=Ci`
183
+ `)),Pi=Jt.div(Si||(Si=ki`
184
184
  display: ${0};
185
- `),e=>e.$tableMode?"none":"block"),Pi=Jt.div(Si||(Si=Ci`
185
+ `),e=>e.$tableMode?"none":"block"),$i=Jt.div(Ci||(Ci=ki`
186
186
  display: ${0};
187
- `),e=>e.$tableMode?"block":"none"),$i=({pxGraphData:t,footnote:n,locale:r,menuItemDefinitions:i,selectedVariableCodes:a=null,showContextMenu:o=!0,menuIconInheritColor:l=!1,showTableTitles:u,showTableUnits:m,showTableSources:d})=>{const p=fn(r);ki(p);const h=e.useRef(null),[f,v]=e.useState(h.current),[y,b]=e.useState(!1),[w,x]=e.useState(0),S=s(()=>{try{return Kn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,a)}catch(e){return console.error(e),{}}},[a,t]),C=s(()=>{try{return lr(t,S)}catch(e){return console.error(e),null}},[S,t]);let k;function A(){w!==window.innerWidth&&x(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(k),k=setTimeout(A,100)});const E=()=>{b(!y)};e.useEffect(()=>{h.current&&v(h.current)},[h.current]);try{if(C&&t.visualizationSettings.visualizationType!==Zt.Table){const t=Xn(p,C);return e.createElement(Ai,null,o&&e.createElement(Ei,null,e.createElement(oi,{menuItemDefinitions:i,viewData:C,currentChartRef:f,locale:p,tableToggle:{tableMode:y,toggleHandler:E},menuIconInheritColor:l})),e.createElement(Ni,{$tableMode:y},e.createElement(g,{ref:h,immutable:!0,highcharts:c,options:t})),e.createElement(Pi,{$tableMode:y},e.createElement(di,{showTitles:null==u||u,footnote:n,showUnits:!!m,showSources:!!d,view:C,locale:p})))}if(C&&t.visualizationSettings.visualizationType===Zt.Table)return e.createElement(Ai,null,o&&e.createElement(Ei,null,e.createElement(oi,{menuItemDefinitions:i,viewData:C,locale:p,menuIconInheritColor:l})),e.createElement(di,{showTitles:null!=u&&u,footnote:n,showUnits:!!m,showSources:!!d,view:C,locale:p}))}catch(t){return console.error(t),e.createElement(vi,{locale:p})}return e.createElement(vi,{locale:p})},Ti=t=>{const n=fn(t.locale);return e.createElement(yi,{fallback:e.createElement(vi,{locale:n})},e.createElement(hi,null),e.createElement($i,v({},t)))};export{sn as AddTranslations,oi as BurgerMenu,Ti as Chart,Kt as ETimeVariableInterval,Xt as EVariableType,Zt as EVisualizationType,yi as ErrorBoundary,hi as GlobalStyle,jr as Icon,Yr as MenuItem,Tr as buildMinimalXlsxBlobAsync,si as calculateExportDimensions,lr as convertPxGrafResponseToView,Xn as convertPxGraphDataToChartOptions,Ln as defaultTheme,gr as drawChart,Kn as extractSelectableVariableValues,Sr as generateCsv,vr as renderHtmlTable,Cr as viewToDownloadCSVOption,$r as viewToDownloadXLSOption};
187
+ `),e=>e.$tableMode?"block":"none"),Ti=({pxGraphData:t,footnote:n,locale:r,menuItemDefinitions:i,selectedVariableCodes:a=null,showContextMenu:o=!0,menuIconInheritColor:l=!1,showTableTitles:u,showTableUnits:m,showTableSources:d})=>{const p=fn(r);Ai(p);const h=e.useRef(null),[f,v]=e.useState(h.current),[y,b]=e.useState(!1),[w,x]=e.useState(0),S=s(()=>{try{return Kn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,a)}catch(e){return console.error(e),{}}},[a,t]),C=s(()=>{try{return lr(t,S)}catch(e){return console.error(e),null}},[S,t]);let k;function A(){w!==window.innerWidth&&x(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(k),k=setTimeout(A,100)});const E=()=>{b(!y)};e.useEffect(()=>{h.current&&v(h.current)},[h.current]);try{if(C&&t.visualizationSettings.visualizationType!==Zt.Table){const t=Xn(p,C);return e.createElement(Ei,null,o&&e.createElement(Ni,null,e.createElement(li,{menuItemDefinitions:i,viewData:C,currentChartRef:f,locale:p,tableToggle:{tableMode:y,toggleHandler:E},menuIconInheritColor:l})),e.createElement(Pi,{$tableMode:y},e.createElement(g,{ref:h,immutable:!0,highcharts:c,options:t})),e.createElement($i,{$tableMode:y},e.createElement(pi,{showTitles:null==u||u,footnote:n,showUnits:!!m,showSources:!!d,view:C,locale:p})))}if(C&&t.visualizationSettings.visualizationType===Zt.Table)return e.createElement(Ei,null,o&&e.createElement(Ni,null,e.createElement(li,{menuItemDefinitions:i,viewData:C,locale:p,menuIconInheritColor:l})),e.createElement(pi,{showTitles:null!=u&&u,footnote:n,showUnits:!!m,showSources:!!d,view:C,locale:p}))}catch(t){return console.error(t),e.createElement(yi,{locale:p})}return e.createElement(yi,{locale:p})},Mi=t=>{const n=fn(t.locale);return e.createElement(bi,{fallback:e.createElement(yi,{locale:n})},e.createElement(fi,null),e.createElement(Ti,v({},t)))};export{sn as AddTranslations,li as BurgerMenu,Mi as Chart,Kt as ETimeVariableInterval,Xt as EVariableType,Zt as EVisualizationType,bi as ErrorBoundary,fi as GlobalStyle,Vr as Icon,Zr as MenuItem,Mr as buildMinimalXlsxBlobAsync,oi as calculateExportDimensions,lr as convertPxGrafResponseToView,Xn as convertPxGraphDataToChartOptions,gr as defaultTheme,vr as drawChart,Kn as extractSelectableVariableValues,Cr as generateCsv,yr as renderHtmlTable,kr as viewToDownloadCSVOption,Tr as viewToDownloadXLSOption};
188
188
  //# sourceMappingURL=pxv.modern.js.map