@statisticsfinland/pxvisualizer 1.2.1-d.0 → 1.2.1-t.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +1 -1
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/pxv.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as t,useContext as n,useDebugValue as r,createElement as i,forwardRef as a,useId as s,useEffect as o,useMemo as l,Component as c}from"react";import*as u from"highcharts";import m from"highcharts";import d from"decimal.js";import"highcharts/modules/pattern-fill.js";import h from"highcharts/modules/accessibility.js";import p from"highcharts/modules/exporting.js";import f from"highcharts/modules/offline-exporting.js";import{strToU8 as g,zip as v}from"fflate";import{HighchartsReact as y}from"highcharts-react-official";function b(){return b=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},b.apply(null,arguments)}var w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w.apply(this,arguments)};function x(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var k=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,C=/* #__PURE__ */S(function(e){return k.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),N="-ms-",E="-moz-",M="-webkit-",A="comm",T="rule",P="decl",I="@keyframes",j=Math.abs,V=String.fromCharCode,$=Object.assign;function D(e){return e.trim()}function L(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function z(e,t,n){return e.indexOf(t,n)}function R(e,t){return 0|e.charCodeAt(t)}function G(e,t,n){return e.slice(t,n)}function q(e){return e.length}function B(e){return e.length}function F(e,t){return t.push(e),e}function _(e,t){return e.filter(function(e){return!L(e,t)})}var H=1,W=1,U=0,Y=0,Z=0,X="";function K(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:H,column:W,length:s,return:"",siblings:o}}function J(e,t){return $(K("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Q(e){for(;e.root;)e=J(e.root,{children:[e]});F(e,e.siblings)}function ee(){return Z=Y>0?R(X,--Y):0,W--,10===Z&&(W=1,H--),Z}function te(){return Z=Y<U?R(X,Y++):0,W++,10===Z&&(W=1,H++),Z}function ne(){return R(X,Y)}function re(){return Y}function ie(e,t){return G(X,e,t)}function ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function se(e){return D(ie(Y-1,ce(91===e?e+2:40===e?e+1:e)))}function oe(e){for(;(Z=ne())&&Z<33;)te();return ae(e)>2||ae(Z)>3?"":" "}function le(e,t){for(;--t&&te()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return ie(e,re()+(t<6&&32==ne()&&32==te()))}function ce(e){for(;te();)switch(Z){case e:return Y;case 34:case 39:34!==e&&39!==e&&ce(Z);break;case 40:41===e&&ce(e);break;case 92:te()}return Y}function ue(e,t){for(;te()&&e+Z!==57&&(e+Z!==84||47!==ne()););return"/*"+ie(t,Y-1)+"*"+V(47===e?e:te())}function me(e){for(;!ae(ne());)te();return ie(e,Y)}function de(e){return function(e){return X="",e}(he("",null,null,null,[""],e=function(e){return H=W=1,U=q(X=e),Y=0,[]}(e),0,[0],e))}function he(e,t,n,r,i,a,s,o,l){for(var c=0,u=0,m=s,d=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=a,S=r,k=b;g;)switch(p=y,y=te()){case 40:if(108!=p&&58==R(k,m-1)){-1!=z(k+=O(se(y),"&","&\f"),"&\f",j(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=se(y);break;case 9:case 10:case 13:case 32:k+=oe(p);break;case 92:k+=le(re()-1,7);continue;case 47:switch(ne()){case 42:case 47:F(fe(ue(te(),re()),t,n,l),l);break;default:k+="/"}break;case 123*f:o[c++]=q(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=O(k,/\f/g,"")),h>0&&q(k)-m&&F(h>32?ge(k+";",r,n,m-1,l):ge(O(k," ","")+";",r,n,m-2,l),l);break;case 59:k+=";";default:if(F(S=pe(k,t,n,c,u,i,o,b,w=[],x=[],m,a),a),123===y)if(0===u)he(k,t,S,S,w,a,m,o,x);else switch(99===d&&110===R(k,3)?100:d){case 100:case 108:case 109:case 115:he(e,S,S,r&&F(pe(e,S,S,0,0,i,o,b,i,w=[],m,x),x),i,x,m,o,r?w:x);break;default:he(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",m=s;break;case 58:m=1+q(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==ee())continue;switch(k+=V(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(q(k)-1)*v,v=1;break;case 64:45===ne()&&(k+=se(te())),d=ne(),u=m=q(b=k+=me(re())),y++;break;case 45:45===p&&2==q(k)&&(f=0)}}return a}function pe(e,t,n,r,i,a,s,o,l,c,u,m){for(var d=i-1,h=0===i?a:[""],p=B(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=G(e,d+1,d=j(g=s[f])),w=e;y<p;++y)(w=D(g>0?h[y]+" "+b:O(b,/&\f/g,h[y])))&&(l[v++]=w);return K(e,t,n,0===i?T:o,l,c,u,m)}function fe(e,t,n,r){return K(e,t,n,A,V(Z),G(e,2,-2),0,r)}function ge(e,t,n,r,i){return K(e,t,n,P,G(e,0,r),G(e,r+1,-1),r,i)}function ve(e,t,n){switch(function(e,t){return 45^R(e,0)?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 4789:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+E+e+N+e+e;case 5936:switch(R(e,t+11)){case 114:return M+e+N+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+N+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+N+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+N+e+e;case 6165:return M+e+N+"flex-"+e+e;case 5187:return M+e+O(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return M+e+N+"flex-item-"+O(e,/flex-|-self/g,"")+(L(e,/flex-|baseline/)?"":N+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return M+e+N+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+N+O(e,"shrink","negative")+e;case 5292:return M+e+N+O(e,"basis","preferred-size")+e;case 6060:return M+"box-"+O(e,"-grow","")+M+e+N+O(e,"grow","positive")+e;case 4554:return M+O(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!L(e,/flex-|baseline/))return N+"grid-column-align"+G(e,t)+e;break;case 2592:case 3360:return N+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,L(e.props,/grid-\w+-end/)})?~z(e+(n=n[t].value),"span",0)?e:N+O(e,"-start","")+e+N+"grid-row-span:"+(~z(n,"span",0)?L(n,/\d+/):+L(n,/\d+/)-+L(e,/\d+/))+";":N+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return L(e.props,/grid-\w+-start/)})?e:N+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(R(e,t+1)){case 109:if(45!==R(e,t+4))break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+E+(108==R(e,t+3)?"$3":"$2-$3"))+e;case 115:return~z(e,"stretch",0)?ve(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,s,o){return N+n+":"+r+o+(i?N+n+"-span:"+(a?s:+s-+r)+o:"")+e});case 4949:if(121===R(e,t+6))return O(e,":",":"+M)+e;break;case 6444:switch(R(e,45===R(e,14)?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(45===R(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+N+"$2box$3")+e;case 100:return O(e,":",":"+N)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function ye(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function be(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case P:return e.return=e.return||e.value;case A:return"";case I:return e.return=e.value+"{"+ye(e.children,r)+"}";case T:if(!q(e.value=e.props.join(",")))return""}return q(n=ye(e.children,r))?e.return=e.value+"{"+n+"}":""}function we(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case P:return void(e.return=ve(e.value,e.length,n));case I:return ye([J(e,{value:O(e.value,"@","@"+M)})],r);case T:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(L(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Q(J(e,{props:[O(t,/:(read-\w+)/,":-moz-$1")]})),Q(J(e,{props:[t]})),$(e,{props:_(n,r)});break;case"::placeholder":Q(J(e,{props:[O(t,/:(plac\w+)/,":"+M+"input-$1")]})),Q(J(e,{props:[O(t,/:(plac\w+)/,":-moz-$1")]})),Q(J(e,{props:[O(t,/:(plac\w+)/,N+"input-$1")]})),Q(J(e,{props:[t]})),$(e,{props:_(n,r)})}return""})}}var xe={animationIterationCount:1,aspectRatio: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},Se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ke="active",Ce="data-styled-version",Ne="6.1.17",Ee="/*!sc*/\n",Me="undefined"!=typeof window&&"HTMLElement"in window,Ae=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:"undefined"!=typeof process&&void 0!==process.env&&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),Te={},Pe=/invalid hook call/i,Ie=new Set,je=function(e,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(e).concat(r," has been created dynamically.\n")+"You 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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var s=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Pe.test(e)?(s=!1,Ie.delete(i)):a.apply(void 0,x([e],t,!1))},t(),s&&!Ie.has(i)&&(console.warn(i),Ie.add(i))}catch(e){Pe.test(e.message)&&Ie.delete(i)}finally{console.error=a}}},Ve=Object.freeze([]),$e=Object.freeze({});function De(e,t,n){return void 0===n&&(n=$e),e.theme!==n.theme&&e.theme||t||n.theme}var Le=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ze=/(^-|-$)/g;function Re(e){return e.replace(Oe,"-").replace(ze,"")}var Ge=/(a)(d)/gi,qe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Be(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qe(t%52)+n;return(qe(t%52)+n).replace(Ge,"$1-$2")}var Fe,_e=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},He=function(e){return _e(5381,e)};function We(e){return Be(He(e)>>>0)}function Ue(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ye(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ze="function"==typeof Symbol&&Symbol.for,Xe=Ze?Symbol.for("react.memo"):60115,Ke=Ze?Symbol.for("react.forward_ref"):60112,Je={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},et={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tt=((Fe={})[Ke]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fe[Xe]=et,Fe);function nt(e){return("type"in(t=e)&&t.type.$$typeof)===Xe?et:"$$typeof"in e?tt[e.$$typeof]:Je;var t}var rt=Object.defineProperty,it=Object.getOwnPropertyNames,at=Object.getOwnPropertySymbols,st=Object.getOwnPropertyDescriptor,ot=Object.getPrototypeOf,lt=Object.prototype;function ct(e,t,n){if("string"!=typeof t){if(lt){var r=ot(t);r&&r!==lt&&ct(e,r,n)}var i=it(t);at&&(i=i.concat(at(t)));for(var a=nt(e),s=nt(t),o=0;o<i.length;++o){var l=i[o];if(!(l in Qe||n&&n[l]||s&&l in s||a&&l in a)){var c=st(t,l);try{rt(e,l,c)}catch(e){}}}}return e}function ut(e){return"function"==typeof e}function mt(e){return"object"==typeof e&&"styledComponentId"in e}function dt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ht(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function pt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ft(e,t,n){if(void 0===n&&(n=!1),!n&&!pt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ft(e[r],t[r]);else if(pt(t))for(var r in t)e[r]=ft(e[r],t[r]);return e}function gt(e,t){Object.defineProperty(e,"toString",{value:t})}var vt="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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function bt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(yt.apply(void 0,x([vt[e]],t,!1)).trim())}var wt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw bt(16,"".concat(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=(a=0,t.length);a<o;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},e.prototype.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)}},e.prototype.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+="".concat(this.tag.getRule(a)).concat(Ee);return t},e}(),xt=1<<30,St=new Map,kt=new Map,Ct=1,Nt=function(e){if(St.has(e))return St.get(e);for(;kt.has(Ct);)Ct++;var t=Ct++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>xt))throw bt(16,"".concat(t));return St.set(e,t),kt.set(t,e),t},Et=function(e,t){Ct=t+1,St.set(e,t),kt.set(t,e)},Mt="style[".concat(Se,"][").concat(Ce,'="').concat(Ne,'"]'),At=new RegExp("^".concat(Se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Tt=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)},Pt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ee),i=[],a=0,s=r.length;a<s;a++){var o=r[a].trim();if(o){var l=o.match(At);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Et(u,c),Tt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(o)}}},It=function(e){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Se)!==ke&&(Pt(e,i),i.parentNode&&i.parentNode.removeChild(i))}},jt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Se,"]")));return t[t.length-1]}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(Se,ke),r.setAttribute(Ce,Ne);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Vt=function(){function e(e){this.element=jt(e),this.element.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}throw bt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),$t=function(){function e(e){this.element=jt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.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},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Dt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Lt=Me,Ot={isServer:!Me,useCSSOMInjection:!Ae},zt=function(){function e(e,t,n){void 0===e&&(e=$e),void 0===t&&(t={});var r=this;this.options=w(w({},Ot),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Me&&Lt&&(Lt=!1,It(this)),gt(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return kt.get(e)}(n);if(void 0===i)return"continue";var a=e.names.get(i),s=t.getGroup(n);if(void 0===a||!a.size||0===s.length)return"continue";var o="".concat(Se,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(s).concat(o,'{content:"').concat(l,'"}').concat(Ee)},a=0;a<n;a++)i(a);return r}(r)})}return e.registerId=function(e){return Nt(e)},e.prototype.rehydrate=function(){!this.server&&Me&&It(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(w(w({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Dt(n):t?new Vt(n):new $t(n)}(this.options),new wt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Nt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Nt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Rt=/&/g,Gt=/^\s*\/\/.*$/gm;function qt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=qt(e.children,t)),e})}var Bt=new zt,Ft=function(){var e,t,n,r=$e.options,i=void 0===r?$e:r,a=$e.plugins,s=void 0===a?Ve:a,o=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=s.slice();l.push(function(e){e.type===T&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Rt,t).replace(n,o))}),i.prefix&&l.push(we),l.push(be);var c=function(r,a,s,o){void 0===a&&(a=""),void 0===s&&(s=""),void 0===o&&(o="&"),e=o,t=a,n=new RegExp("\\".concat(t,"\\b"),"g");var c=r.replace(Gt,""),u=de(s||a?"".concat(s," ").concat(a," { ").concat(c," }"):c);i.namespace&&(u=qt(u,i.namespace));var m,d=[];return ye(u,function(e){var t=B(e);return function(n,r,i,a){for(var s="",o=0;o<t;o++)s+=e[o](n,r,i,a)||"";return s}}(l.concat((m=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&m(e)})))),d};return c.hash=s.length?s.reduce(function(e,t){return t.name||bt(15),_e(e,t.name)},5381).toString():"",c}(),_t=e.createContext({shouldForwardProp:void 0,styleSheet:Bt,stylis:Ft});function Ht(){return n(_t)}e.createContext(void 0);var Wt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ft);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,gt(this,function(){throw bt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ft),this.name+e.hash},e}(),Ut=function(e){return e>="A"&&e<="Z"};function Yt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ut(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Zt=function(e){return null==e||!1===e||""===e},Xt=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Zt(a)&&(Array.isArray(a)&&a.isCss||ut(a)?r.push("".concat(Yt(i),":"),a,";"):pt(a)?r.push.apply(r,x(x(["".concat(i," {")],Xt(a),!1),["}"],!1)):r.push("".concat(Yt(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in xe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Kt(e,t,n,r){if(Zt(e))return[];if(mt(e))return[".".concat(e.styledComponentId)];if(ut(e)){if(!ut(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof Wt||pt(i)||null===i||console.error("".concat(Ue(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.")),Kt(i,t,n,r)}var a;return e instanceof Wt?n?(e.inject(n,r),[e.getName(r)]):[e]:pt(e)?Xt(e):Array.isArray(e)?Array.prototype.concat.apply(Ve,e.map(function(e){return Kt(e,t,n,r)})):[e.toString()]}function Jt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ut(n)&&!mt(n))return!1}return!0}var Qt=He(Ne),en=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Jt(e),this.componentId=t,this.baseHash=_e(Qt,t),this.baseStyle=n,zt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=dt(r,this.staticRulesId);else{var i=ht(Kt(this.rules,e,t,n)),a=Be(_e(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=dt(r,a),this.staticRulesId=a}else{for(var o=_e(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(o=_e(o,u));else if(u){var m=ht(Kt(u,e,t,n));o=_e(o,m+c),l+=m}}if(l){var d=Be(o>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=dt(r,d)}}return r},e}(),tn=e.createContext(void 0),nn={},rn=new Set;function an(t,n,a){var s=mt(t),o=t,l=!Ye(t),c=n.attrs,u=void 0===c?Ve:c,m=n.componentId,d=void 0===m?function(e,t){var n="string"!=typeof e?"sc":Re(e);nn[n]=(nn[n]||0)+1;var r="".concat(n,"-").concat(We(Ne+n+nn[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):m,h=n.displayName,p=void 0===h?function(e){return Ye(e)?"styled.".concat(e):"Styled(".concat(Ue(e),")")}(t):h,f=n.displayName&&n.componentId?"".concat(Re(n.displayName),"-").concat(n.componentId):n.componentId||d,g=s&&o.attrs?o.attrs.concat(u).filter(Boolean):u,v=n.shouldForwardProp;if(s&&o.shouldForwardProp){var y=o.shouldForwardProp;if(n.shouldForwardProp){var b=n.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var x=new en(a,f,s?o.componentStyle:void 0);function S(t,n){return function(t,n,a){var s=t.attrs,o=t.componentStyle,l=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,m=t.target,d=e.useContext(tn),h=Ht(),p=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&r(u);var f=De(n,d,l)||$e,g=function(e,t,n){for(var r,i=w(w({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=ut(r=e[a])?r(i):r;for(var o in s)i[o]="className"===o?dt(i[o],s[o]):"style"===o?w(w({},i[o]),s[o]):s[o]}return t.className&&(i.className=dt(i.className,t.className)),i}(s,n,f),v=g.as||m,y={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===f||("forwardedAs"===b?y.as=g.forwardedAs:p&&!p(b,v)||(y[b]=g[b],p||"development"!==process.env.NODE_ENV||C(b)||rn.has(b)||!Le.has(v)||(rn.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var x=function(e,t){var n=Ht(),i=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r(i),i}(o,g);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(x);var S=dt(c,u);return x&&(S+=" "+x),g.className&&(S+=" "+g.className),y[Ye(v)&&!Le.has(v)?"class":"className"]=S,a&&(y.ref=a),i(v,y)}(k,t,n)}S.displayName=p;var k=e.forwardRef(S);return k.attrs=g,k.componentStyle=x,k.displayName=p,k.shouldForwardProp=v,k.foldedComponentIds=s?dt(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=f,k.target=s?o.target:t,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)ft(e,i[r],!0);return e}({},o.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(je(p,f),k.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider 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,f)),gt(k,function(){return".".concat(k.styledComponentId)}),l&&ct(k,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function sn(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}var on=function(e){return Object.assign(e,{isCss:!0})};function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ut(e)||pt(e))return on(Kt(sn(Ve,x([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Kt(r):on(Kt(sn(r,t)))}function cn(e,t,n){if(void 0===n&&(n=$e),!t)throw bt(1,t);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,ln.apply(void 0,x([r],i,!1)))};return r.attrs=function(r){return cn(e,t,w(w({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return cn(e,t,w(w({},n),r))},r}var un=function(e){return cn(an,e)},mn=un;Le.forEach(function(e){mn[e]=un(e)});var dn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Jt(e),zt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(ht(Kt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&zt.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");var hn,pn,fn,gn="__sc-".concat(Se,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[gn]||(window[gn]=0),1===window[gn]&&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[gn]+=1),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"}(hn||(hn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(pn||(pn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(fn||(fn={}));const vn={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"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"}},yn={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."]}},bn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=vn,this.ArrayTranslations=yn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=b({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=b({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},wn=bn.Translations,xn=bn.ArrayTranslations,Sn=bn.GetAllLanguages;function kn(e){bn.AddTranslations(e)}const Cn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Nn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const En=["",".","..","...","....",".....","......","-"];function Mn(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 An(e,t,n=!1){if(e)return n?wn.dataMissing[t]:En[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Tn(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(Gn(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&a.push(wn.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(", ")}: ${qn(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(", ")}: ${qn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(Gn(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(wn.preliminaryData[t]),s.join(", ")}}function In(e){return function(){return this.value.toLocaleString(e)}}const jn=e=>Sn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Sn()[0];function Vn(e=null){const t=e&&e>=15?25:50;return function(){return Ln(this.value,t)}}function $n(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 Mn(this.y,r,e,!0)}}function Dn(){return function(){return Ln(this.name,200)}}const Ln=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function On(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 />${wn.preliminaryData[t]}`),o}}function zn(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(Gn(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&a.push(wn.preliminaryData[t]),a.join("<br/>")}}function Rn(e,t){const n=e.map(e=>e.unit).filter(Nn);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 Gn(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===hn.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==hn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==hn.PercentVerticalBarChart?`${Mn(null!=(a=t.percentage)?a:null,1,n)}% (${i.toLocaleString(n)} ${Rn(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function qn(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]} ${xn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=xn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${wn.quarter[t]}`}console.log("Unsupported time pattern")}return e}var Bn;function Fn(e,t,n){return function(){const r=function(e,t,n,r=new d(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):d.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 d(0);const t=d.pow(10,d.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())})(d.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 d(NaN):a[0][1]}(e,t,(n=>{const r=d.pow(10,d.log10(d.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 d(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new d(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 _n(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?Fn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}function Hn(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?Fn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Bn||(Bn={}));const Wn=(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 Un(e,t){if(t){const n=new Date(t);switch(e){case fn.Irregular:case fn.Week:return;case fn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case fn.Quarter:case fn.HalfYear:return;case fn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Yn(e,t){if(e.seriesType!==Bn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!isNaN(parseFloat(e)));return e.seriesType===Bn.Ordinal&&r?Wn(e,t):{ordinal:e.seriesType==Bn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case fn.Week:return Zn(e,t);case fn.Month:return Xn();case fn.Quarter:return Kn(e,t);case fn.HalfYear:return Jn(e,t);case fn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Zn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),Xn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return m.dateFormat("%YM%m",Number(this.value))}}}),Kn=(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)})}},Jn=(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)})}},Qn=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],er=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function tr(e){return{color:{pattern:{backgroundColor:Qn[e%Qn.length],path:{stroke:"white",d:er[e%er.length],strokeWidth:2},width:10,height:10}}}}const nr=(e,t)=>e.series.map((n,r)=>b({},ar(n,e,t),{index:r,type:"line"})),rr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>b({},ar(i,e,t),r&&tr(a),{index:n?e.series.length-1-a:a,type:"bar"})),ir=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>b({},ar(i,e,t),r&&tr(a),{index:n?e.series.length-1-a:a,type:"column"}));function ar(e,t,n){return{animation:!1,name:e.rowNameGroup.map(e=>e[n]).join(", "),data:e.series.map((e,r)=>({y:e.value,name:t.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}))}}const sr=(e,t)=>({accessibility:{point:{descriptionFormatter:Pn(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{text:`${wn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:Tn(e,t)},yAxis:[or]}),or={plotLines:[{value:0,color:"#000",width:1}]},lr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:$n(t)}),cr=(e,t)=>b({},or,{tickPositioner:_n(e.series.map(e=>e.series)),title:{text:Rn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),ur=(e,t)=>b({},sr(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Vn(e.columnNameGroups.length),style:{width:200}}}}),mr=(e,t,n)=>b({},ur(e,t),{series:rr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:b({},fr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),dr=(e,t)=>b({},sr(e,t),{chart:{type:"column"},xAxis:Yn(e,t)}),hr=(e,t,n)=>b({},dr(e,t),{series:ir(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Rn(e.units,t)}}}),pr=(e,t,n)=>b({},dr(e,t),{series:ir(e,t,!0,null==n?void 0:n.accessibilityMode),legend:b({},fr,{enabled:!0,layout:"vertical"})}),fr={itemHiddenStyle:{color:"black"}},gr=(e,t,n)=>{var r,i;return b({},sr(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=i?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Ln(this.name,20)+t})}}},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,i)=>b({y:r.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),unit:Rn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&tr(i),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},vr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),i=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return b({},sr(e,t),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:b({},or,{min:-Math.abs(i),max:Math.abs(i),title:{text:Rn(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:b({},fr,{enabled:!0,margin:30}),series:e.series.map((r,i)=>b({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&tr(i),{data:r.series.map((n,r)=>({y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:b({},lr(e,t))}},exporting:{enabled:!1}})},yr=(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 `,br=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case hn.LineChart:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,a=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return b({},sr(e,t),{chart:{type:"line"},tooltip:{formatter:zn(e,t)},xAxis:b({},Yn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:b({},or,{softMin:i,softMax:i,title:{text:Rn(e.units,t)}}),plotOptions:{line:{dataLabels:b({},lr(e,t)),marker:a},series:Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:b({},fr,{enabled:e.series.length>1,labelFormatter:Dn()}),series:nr(e,t),exporting:{enabled:!1}})})(t,e,n);case hn.VerticalBarChart:return((e,t,n)=>b({},hr(e,t,n),{yAxis:b({},or,{softMin:0,softMax:0,title:{text:Rn(e.units,t)}}),plotOptions:{series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case hn.HorizontalBarChart:return((e,t,n)=>b({},ur(e,t),{series:rr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:b({},cr(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.GroupVerticalBarChart:return((e,t,n)=>b({},hr(e,t,n),{plotOptions:{series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})},legend:b({},fr,{enabled:!0,labelFormatter:Dn()})}))(t,e,n);case hn.GroupHorizontalBarChart:return((e,t,n)=>b({},ur(e,t),{series:rr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:b({},cr(e,t),{softMin:0,softMax:0}),legend:b({},fr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.StackedVerticalBarChart:return((e,t,n)=>b({},pr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Rn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})}}))(t,e,n);case hn.StackedHorizontalBarChart:return((e,t,n)=>b({},mr(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Hn(e.series.map(e=>e.series)),title:{text:Rn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.PercentVerticalBarChart:return((e,t,n)=>b({},pr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})}}))(t,e,n);case hn.PercentHorizontalBarChart:return((e,t,n)=>b({},mr(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.PieChart:return gr(t,e,n);case hn.PyramidChart:return vr(t,e,n);case hn.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return b({},sr(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:b({},or,{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:yr(e.series,t),formatter:On(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")}},wr=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=xr(i,r);if(i=t,a=b({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=Sr(i,n);if(i=t,a=b({},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===pn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},xr=(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}},Sr=(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}},kr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},Cr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Nr(e,t,n){return Mr(Er(e,e.series[t].series,n),t)}function Er(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 b({},e,{series:t.map(t=>e.series[t])})}(e,r));return b({},e,{columnNameGroups:i,series:a})}function Mr(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),b({},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 Tr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class Pr{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===pn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===pn.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=>b({},e,{values:Ar(e,t)})),r=Tr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=Tr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=Tr(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=Cn(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 Ir(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===pn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new Pr(e,t).getViewSeries(),r=Tr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Ar(e,t));return{columnNameGroups:Cn(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:Lr(s,t),sources:Or(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:wn.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:Vr(e.columnVariableCodes,e.metaData),rowVarNames:Vr(e.rowVariableCodes,e.metaData),selectableVarNames:Vr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:zr(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)===hn.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===hn.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=>b({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return b({},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 Er(e,n,t)}(a,Cr);case"ascending":return Nr(a,0,kr);case"descending":return Nr(a,0,Cr);default:return s?(o=a,l=jr(a),c=$r(e),Mr(Er(o,l.series[c].series,Cr),c)):Nr(a,$r(e),Cr)}var o,l,c}function jr(e){const t=e.series.map(t=>b({},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 b({},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 Vr(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 $r(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 Lr(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 Or(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter(Nn):e.values.map(e=>n(e.contentComponent)).filter(Nn)}function zr(e,t){var n;if(e.length>1||0===e.length)return Bn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case pn.Time:return Bn.Time;case pn.Ordinal:return Bn.Ordinal;default:return Bn.Nominal}}const Rr=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:wn.thousandsSepAccessibility[e],credits:wn.credits[e],chartTypes:{barMultiple:wn.barMultiple[e],barSingle:wn.barSingle[e],columnMultiple:wn.columnMultiple[e],columnSingle:wn.columnSingle[e],lineSingle:wn.lineSingle[e],lineMultiple:wn.lineMultiple[e],pieSingle:wn.pieSingle[e],scatterSingle:wn.scatterSingle[e],scatterMultiple:wn.scatterMultiple[e],defaultSingle:wn.defaultSingle[e],defaultMultiple:wn.defaultMultiple[e]},defaultChartTitle:wn.defaultChartTitle[e],exporting:{chartMenuLabel:wn.chartMenuLabel[e],menuButtonLabel:wn.menuButtonLabel[e]},legend:{legendItem:wn.legendItem[e],legendLabel:wn.legendLabel[e],legendLabelNoTitle:wn.legendLabelNoTitle[e]},axis:{rangeCategories:wn.rangeCategories[e],rangeFromTo:wn.rangeFromTo[e],timeRangeDays:wn.timeRangeDays[e],timeRangeHours:wn.timeRangeHours[e],timeRangeMinutes:wn.timeRangeMinutes[e],timeRangeSeconds:wn.timeRangeSeconds[e],xAxisDescriptionPlural:wn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:wn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:wn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:wn.yAxisDescriptionSingular[e]},series:{summary:{bar:wn.seriesSummaryBar[e],barCombination:wn.seriesSummaryBarCombination[e],column:wn.seriesSummaryColumn[e],columnCombination:wn.seriesSummaryColumnCombination[e],default:wn.seriesSummaryDefault[e],defaultCombination:wn.seriesSummaryDefaultCombination[e],line:wn.seriesSummaryLine[e],lineCombination:wn.seriesSummaryLineCombination[e],pie:wn.seriesSummaryPie[e],pieCombination:wn.seriesSummaryPieCombination[e],scatter:wn.seriesSummaryScatter[e],scatterCombination:wn.seriesSummaryScatterCombination[e]},xAxisDescription:wn.xAxisDescription[e],yAxisDescription:wn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:wn.endOfChartMarker[e]},chartContainerLabel:wn.chartContainerLabel[e]},thousandsSep:wn.thousandsSep[e],decimalPoint:wn.decimalPoint[e],contextButtonTitle:wn.contextButtonTitle[e],downloadCSV:wn.downloadCSV[e],downloadPNG:wn.downloadPNG[e],downloadSVG:wn.downloadSVG[e],months:xn.months[e],shortMonths:xn.shortMonths[e],weekdays:xn.weekdays[e],loading:wn.loading[e],numericSymbols:null},colors:Qn,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:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},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:In(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,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}),Gr=(e,t,n,r=null,i)=>{const a=jn(n);"object"==typeof u&&(h(u),p(u),f(u)),u.setOptions(Rr(a));const s=Ir(t,wr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=br(a,s,i);return u.chart(e,o)};function qr(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=_r(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=Fr(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?An(n.missingCode,t,!0):Mn(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=Rn(e.units,t);n.append(`${wn.unit[t]}: ${r}`),o.append(n)}if(i){const n=document.createElement("p"),r=`${wn.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(wn.graphCreationError[t]),o.append(n)}}const Br=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),Fr=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},_r=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},Hr=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")}`},Wr=(e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===hn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===hn.PercentVerticalBarChart)&&(e=jr(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,h=","==wn.decimalPoint[t]?";":",",p="\n";let f=Yr([`"${e.header[t]}"`],0,d,h,p);e.subheaderValues.length>0&&(f+=Yr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,h,p));for(let n=0;n<u;n++)f+=Yr(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,h,p);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?An(e.missingCode,t):Mn(e.value,e.precision,t))),f+=Yr(n,0,d,h,p)}),f+=Yr([`"${wn.unit[t]}: ${Rn(e.units,t)}"`],0,d,h,p),f+=Yr([`"${wn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,h),f},Ur=(e,t)=>({onClick:()=>{const n=Wr(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",Hr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:wn.downloadCSV[t]});function Yr(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 Zr=['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 Xr(e){const t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Xr(t-1)+n}const Kr=`<?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 Jr(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 Qr=(e,t)=>({onClick:async()=>{const n=await ei(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Hr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:wn.downloadXLSX[t]});async function ei(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===hn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===hn.PercentVerticalBarChart)&&(e=jr(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,h=[Jr([e.header[t]],0,d)];e.subheaderValues.length>0&&h.push(Jr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)h.push(Jr(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?An(e.missingCode,t):Number(e.value.toFixed(e.precision)))),h.push(Jr(n,0,d))}),h.push(Jr([`${wn.unit[t]}: ${Rn(e.units,t)}`],0,d)),h.push(Jr([`${wn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),h})(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="${Xr(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Xr(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 ${Zr.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":g(r),"workbook.xml":g(Kr),"_rels/workbook.xml.rels":g('<?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":g('<?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":g('<?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)=>{v(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const ti=["Bars","Times","Download","ExternalLink","Copy"],ni=({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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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 ri,ii,ai,si,oi,li,ci,ui=e=>e;const mi=mn(a((t,n)=>e.createElement("button",b({ref:n},t))))(ri||(ri=ui`
|
|
1
|
+
import e,{useRef as t,useContext as n,useDebugValue as r,createElement as i,forwardRef as a,useId as s,useEffect as o,useMemo as l,Component as c}from"react";import*as u from"highcharts";import m from"highcharts";import d from"decimal.js";import"highcharts/modules/pattern-fill.js";import h from"highcharts/modules/accessibility.js";import p from"highcharts/modules/exporting.js";import f from"highcharts/modules/offline-exporting.js";import{strToU8 as g,zip as v}from"fflate";import{HighchartsReact as y}from"highcharts-react-official";function b(){return b=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},b.apply(null,arguments)}var w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w.apply(this,arguments)};function x(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var k=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,C=/* #__PURE__ */S(function(e){return k.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),N="-ms-",E="-moz-",M="-webkit-",A="comm",T="rule",P="decl",I="@keyframes",j=Math.abs,V=String.fromCharCode,$=Object.assign;function D(e){return e.trim()}function L(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function z(e,t,n){return e.indexOf(t,n)}function R(e,t){return 0|e.charCodeAt(t)}function G(e,t,n){return e.slice(t,n)}function q(e){return e.length}function B(e){return e.length}function F(e,t){return t.push(e),e}function _(e,t){return e.filter(function(e){return!L(e,t)})}var H=1,W=1,U=0,Y=0,Z=0,X="";function K(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:H,column:W,length:s,return:"",siblings:o}}function J(e,t){return $(K("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Q(e){for(;e.root;)e=J(e.root,{children:[e]});F(e,e.siblings)}function ee(){return Z=Y>0?R(X,--Y):0,W--,10===Z&&(W=1,H--),Z}function te(){return Z=Y<U?R(X,Y++):0,W++,10===Z&&(W=1,H++),Z}function ne(){return R(X,Y)}function re(){return Y}function ie(e,t){return G(X,e,t)}function ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function se(e){return D(ie(Y-1,ce(91===e?e+2:40===e?e+1:e)))}function oe(e){for(;(Z=ne())&&Z<33;)te();return ae(e)>2||ae(Z)>3?"":" "}function le(e,t){for(;--t&&te()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return ie(e,re()+(t<6&&32==ne()&&32==te()))}function ce(e){for(;te();)switch(Z){case e:return Y;case 34:case 39:34!==e&&39!==e&&ce(Z);break;case 40:41===e&&ce(e);break;case 92:te()}return Y}function ue(e,t){for(;te()&&e+Z!==57&&(e+Z!==84||47!==ne()););return"/*"+ie(t,Y-1)+"*"+V(47===e?e:te())}function me(e){for(;!ae(ne());)te();return ie(e,Y)}function de(e){return function(e){return X="",e}(he("",null,null,null,[""],e=function(e){return H=W=1,U=q(X=e),Y=0,[]}(e),0,[0],e))}function he(e,t,n,r,i,a,s,o,l){for(var c=0,u=0,m=s,d=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=a,S=r,k=b;g;)switch(p=y,y=te()){case 40:if(108!=p&&58==R(k,m-1)){-1!=z(k+=O(se(y),"&","&\f"),"&\f",j(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=se(y);break;case 9:case 10:case 13:case 32:k+=oe(p);break;case 92:k+=le(re()-1,7);continue;case 47:switch(ne()){case 42:case 47:F(fe(ue(te(),re()),t,n,l),l);break;default:k+="/"}break;case 123*f:o[c++]=q(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=O(k,/\f/g,"")),h>0&&q(k)-m&&F(h>32?ge(k+";",r,n,m-1,l):ge(O(k," ","")+";",r,n,m-2,l),l);break;case 59:k+=";";default:if(F(S=pe(k,t,n,c,u,i,o,b,w=[],x=[],m,a),a),123===y)if(0===u)he(k,t,S,S,w,a,m,o,x);else switch(99===d&&110===R(k,3)?100:d){case 100:case 108:case 109:case 115:he(e,S,S,r&&F(pe(e,S,S,0,0,i,o,b,i,w=[],m,x),x),i,x,m,o,r?w:x);break;default:he(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",m=s;break;case 58:m=1+q(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==ee())continue;switch(k+=V(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(q(k)-1)*v,v=1;break;case 64:45===ne()&&(k+=se(te())),d=ne(),u=m=q(b=k+=me(re())),y++;break;case 45:45===p&&2==q(k)&&(f=0)}}return a}function pe(e,t,n,r,i,a,s,o,l,c,u,m){for(var d=i-1,h=0===i?a:[""],p=B(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=G(e,d+1,d=j(g=s[f])),w=e;y<p;++y)(w=D(g>0?h[y]+" "+b:O(b,/&\f/g,h[y])))&&(l[v++]=w);return K(e,t,n,0===i?T:o,l,c,u,m)}function fe(e,t,n,r){return K(e,t,n,A,V(Z),G(e,2,-2),0,r)}function ge(e,t,n,r,i){return K(e,t,n,P,G(e,0,r),G(e,r+1,-1),r,i)}function ve(e,t,n){switch(function(e,t){return 45^R(e,0)?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 4789:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+E+e+N+e+e;case 5936:switch(R(e,t+11)){case 114:return M+e+N+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+N+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+N+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+N+e+e;case 6165:return M+e+N+"flex-"+e+e;case 5187:return M+e+O(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return M+e+N+"flex-item-"+O(e,/flex-|-self/g,"")+(L(e,/flex-|baseline/)?"":N+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return M+e+N+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+N+O(e,"shrink","negative")+e;case 5292:return M+e+N+O(e,"basis","preferred-size")+e;case 6060:return M+"box-"+O(e,"-grow","")+M+e+N+O(e,"grow","positive")+e;case 4554:return M+O(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!L(e,/flex-|baseline/))return N+"grid-column-align"+G(e,t)+e;break;case 2592:case 3360:return N+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,L(e.props,/grid-\w+-end/)})?~z(e+(n=n[t].value),"span",0)?e:N+O(e,"-start","")+e+N+"grid-row-span:"+(~z(n,"span",0)?L(n,/\d+/):+L(n,/\d+/)-+L(e,/\d+/))+";":N+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return L(e.props,/grid-\w+-start/)})?e:N+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(R(e,t+1)){case 109:if(45!==R(e,t+4))break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+E+(108==R(e,t+3)?"$3":"$2-$3"))+e;case 115:return~z(e,"stretch",0)?ve(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,s,o){return N+n+":"+r+o+(i?N+n+"-span:"+(a?s:+s-+r)+o:"")+e});case 4949:if(121===R(e,t+6))return O(e,":",":"+M)+e;break;case 6444:switch(R(e,45===R(e,14)?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(45===R(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+N+"$2box$3")+e;case 100:return O(e,":",":"+N)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function ye(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function be(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case P:return e.return=e.return||e.value;case A:return"";case I:return e.return=e.value+"{"+ye(e.children,r)+"}";case T:if(!q(e.value=e.props.join(",")))return""}return q(n=ye(e.children,r))?e.return=e.value+"{"+n+"}":""}function we(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case P:return void(e.return=ve(e.value,e.length,n));case I:return ye([J(e,{value:O(e.value,"@","@"+M)})],r);case T:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(L(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Q(J(e,{props:[O(t,/:(read-\w+)/,":-moz-$1")]})),Q(J(e,{props:[t]})),$(e,{props:_(n,r)});break;case"::placeholder":Q(J(e,{props:[O(t,/:(plac\w+)/,":"+M+"input-$1")]})),Q(J(e,{props:[O(t,/:(plac\w+)/,":-moz-$1")]})),Q(J(e,{props:[O(t,/:(plac\w+)/,N+"input-$1")]})),Q(J(e,{props:[t]})),$(e,{props:_(n,r)})}return""})}}var xe={animationIterationCount:1,aspectRatio: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},Se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ke="active",Ce="data-styled-version",Ne="6.1.17",Ee="/*!sc*/\n",Me="undefined"!=typeof window&&"HTMLElement"in window,Ae=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:"undefined"!=typeof process&&void 0!==process.env&&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),Te={},Pe=/invalid hook call/i,Ie=new Set,je=function(e,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(e).concat(r," has been created dynamically.\n")+"You 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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var s=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Pe.test(e)?(s=!1,Ie.delete(i)):a.apply(void 0,x([e],t,!1))},t(),s&&!Ie.has(i)&&(console.warn(i),Ie.add(i))}catch(e){Pe.test(e.message)&&Ie.delete(i)}finally{console.error=a}}},Ve=Object.freeze([]),$e=Object.freeze({});function De(e,t,n){return void 0===n&&(n=$e),e.theme!==n.theme&&e.theme||t||n.theme}var Le=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ze=/(^-|-$)/g;function Re(e){return e.replace(Oe,"-").replace(ze,"")}var Ge=/(a)(d)/gi,qe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Be(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qe(t%52)+n;return(qe(t%52)+n).replace(Ge,"$1-$2")}var Fe,_e=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},He=function(e){return _e(5381,e)};function We(e){return Be(He(e)>>>0)}function Ue(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ye(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ze="function"==typeof Symbol&&Symbol.for,Xe=Ze?Symbol.for("react.memo"):60115,Ke=Ze?Symbol.for("react.forward_ref"):60112,Je={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},et={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tt=((Fe={})[Ke]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fe[Xe]=et,Fe);function nt(e){return("type"in(t=e)&&t.type.$$typeof)===Xe?et:"$$typeof"in e?tt[e.$$typeof]:Je;var t}var rt=Object.defineProperty,it=Object.getOwnPropertyNames,at=Object.getOwnPropertySymbols,st=Object.getOwnPropertyDescriptor,ot=Object.getPrototypeOf,lt=Object.prototype;function ct(e,t,n){if("string"!=typeof t){if(lt){var r=ot(t);r&&r!==lt&&ct(e,r,n)}var i=it(t);at&&(i=i.concat(at(t)));for(var a=nt(e),s=nt(t),o=0;o<i.length;++o){var l=i[o];if(!(l in Qe||n&&n[l]||s&&l in s||a&&l in a)){var c=st(t,l);try{rt(e,l,c)}catch(e){}}}}return e}function ut(e){return"function"==typeof e}function mt(e){return"object"==typeof e&&"styledComponentId"in e}function dt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ht(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function pt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ft(e,t,n){if(void 0===n&&(n=!1),!n&&!pt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ft(e[r],t[r]);else if(pt(t))for(var r in t)e[r]=ft(e[r],t[r]);return e}function gt(e,t){Object.defineProperty(e,"toString",{value:t})}var vt="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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function bt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(yt.apply(void 0,x([vt[e]],t,!1)).trim())}var wt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw bt(16,"".concat(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=(a=0,t.length);a<o;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},e.prototype.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)}},e.prototype.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+="".concat(this.tag.getRule(a)).concat(Ee);return t},e}(),xt=1<<30,St=new Map,kt=new Map,Ct=1,Nt=function(e){if(St.has(e))return St.get(e);for(;kt.has(Ct);)Ct++;var t=Ct++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>xt))throw bt(16,"".concat(t));return St.set(e,t),kt.set(t,e),t},Et=function(e,t){Ct=t+1,St.set(e,t),kt.set(t,e)},Mt="style[".concat(Se,"][").concat(Ce,'="').concat(Ne,'"]'),At=new RegExp("^".concat(Se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Tt=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)},Pt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ee),i=[],a=0,s=r.length;a<s;a++){var o=r[a].trim();if(o){var l=o.match(At);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Et(u,c),Tt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(o)}}},It=function(e){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Se)!==ke&&(Pt(e,i),i.parentNode&&i.parentNode.removeChild(i))}},jt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Se,"]")));return t[t.length-1]}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(Se,ke),r.setAttribute(Ce,Ne);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Vt=function(){function e(e){this.element=jt(e),this.element.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}throw bt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),$t=function(){function e(e){this.element=jt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.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},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Dt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Lt=Me,Ot={isServer:!Me,useCSSOMInjection:!Ae},zt=function(){function e(e,t,n){void 0===e&&(e=$e),void 0===t&&(t={});var r=this;this.options=w(w({},Ot),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Me&&Lt&&(Lt=!1,It(this)),gt(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return kt.get(e)}(n);if(void 0===i)return"continue";var a=e.names.get(i),s=t.getGroup(n);if(void 0===a||!a.size||0===s.length)return"continue";var o="".concat(Se,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(s).concat(o,'{content:"').concat(l,'"}').concat(Ee)},a=0;a<n;a++)i(a);return r}(r)})}return e.registerId=function(e){return Nt(e)},e.prototype.rehydrate=function(){!this.server&&Me&&It(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(w(w({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Dt(n):t?new Vt(n):new $t(n)}(this.options),new wt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Nt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Nt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Rt=/&/g,Gt=/^\s*\/\/.*$/gm;function qt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=qt(e.children,t)),e})}var Bt=new zt,Ft=function(){var e,t,n,r=$e.options,i=void 0===r?$e:r,a=$e.plugins,s=void 0===a?Ve:a,o=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=s.slice();l.push(function(e){e.type===T&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Rt,t).replace(n,o))}),i.prefix&&l.push(we),l.push(be);var c=function(r,a,s,o){void 0===a&&(a=""),void 0===s&&(s=""),void 0===o&&(o="&"),e=o,t=a,n=new RegExp("\\".concat(t,"\\b"),"g");var c=r.replace(Gt,""),u=de(s||a?"".concat(s," ").concat(a," { ").concat(c," }"):c);i.namespace&&(u=qt(u,i.namespace));var m,d=[];return ye(u,function(e){var t=B(e);return function(n,r,i,a){for(var s="",o=0;o<t;o++)s+=e[o](n,r,i,a)||"";return s}}(l.concat((m=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&m(e)})))),d};return c.hash=s.length?s.reduce(function(e,t){return t.name||bt(15),_e(e,t.name)},5381).toString():"",c}(),_t=e.createContext({shouldForwardProp:void 0,styleSheet:Bt,stylis:Ft});function Ht(){return n(_t)}e.createContext(void 0);var Wt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ft);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,gt(this,function(){throw bt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ft),this.name+e.hash},e}(),Ut=function(e){return e>="A"&&e<="Z"};function Yt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ut(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Zt=function(e){return null==e||!1===e||""===e},Xt=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Zt(a)&&(Array.isArray(a)&&a.isCss||ut(a)?r.push("".concat(Yt(i),":"),a,";"):pt(a)?r.push.apply(r,x(x(["".concat(i," {")],Xt(a),!1),["}"],!1)):r.push("".concat(Yt(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in xe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Kt(e,t,n,r){if(Zt(e))return[];if(mt(e))return[".".concat(e.styledComponentId)];if(ut(e)){if(!ut(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof Wt||pt(i)||null===i||console.error("".concat(Ue(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.")),Kt(i,t,n,r)}var a;return e instanceof Wt?n?(e.inject(n,r),[e.getName(r)]):[e]:pt(e)?Xt(e):Array.isArray(e)?Array.prototype.concat.apply(Ve,e.map(function(e){return Kt(e,t,n,r)})):[e.toString()]}function Jt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ut(n)&&!mt(n))return!1}return!0}var Qt=He(Ne),en=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Jt(e),this.componentId=t,this.baseHash=_e(Qt,t),this.baseStyle=n,zt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=dt(r,this.staticRulesId);else{var i=ht(Kt(this.rules,e,t,n)),a=Be(_e(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=dt(r,a),this.staticRulesId=a}else{for(var o=_e(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(o=_e(o,u));else if(u){var m=ht(Kt(u,e,t,n));o=_e(o,m+c),l+=m}}if(l){var d=Be(o>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=dt(r,d)}}return r},e}(),tn=e.createContext(void 0),nn={},rn=new Set;function an(t,n,a){var s=mt(t),o=t,l=!Ye(t),c=n.attrs,u=void 0===c?Ve:c,m=n.componentId,d=void 0===m?function(e,t){var n="string"!=typeof e?"sc":Re(e);nn[n]=(nn[n]||0)+1;var r="".concat(n,"-").concat(We(Ne+n+nn[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):m,h=n.displayName,p=void 0===h?function(e){return Ye(e)?"styled.".concat(e):"Styled(".concat(Ue(e),")")}(t):h,f=n.displayName&&n.componentId?"".concat(Re(n.displayName),"-").concat(n.componentId):n.componentId||d,g=s&&o.attrs?o.attrs.concat(u).filter(Boolean):u,v=n.shouldForwardProp;if(s&&o.shouldForwardProp){var y=o.shouldForwardProp;if(n.shouldForwardProp){var b=n.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var x=new en(a,f,s?o.componentStyle:void 0);function S(t,n){return function(t,n,a){var s=t.attrs,o=t.componentStyle,l=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,m=t.target,d=e.useContext(tn),h=Ht(),p=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&r(u);var f=De(n,d,l)||$e,g=function(e,t,n){for(var r,i=w(w({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=ut(r=e[a])?r(i):r;for(var o in s)i[o]="className"===o?dt(i[o],s[o]):"style"===o?w(w({},i[o]),s[o]):s[o]}return t.className&&(i.className=dt(i.className,t.className)),i}(s,n,f),v=g.as||m,y={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===f||("forwardedAs"===b?y.as=g.forwardedAs:p&&!p(b,v)||(y[b]=g[b],p||"development"!==process.env.NODE_ENV||C(b)||rn.has(b)||!Le.has(v)||(rn.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var x=function(e,t){var n=Ht(),i=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r(i),i}(o,g);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(x);var S=dt(c,u);return x&&(S+=" "+x),g.className&&(S+=" "+g.className),y[Ye(v)&&!Le.has(v)?"class":"className"]=S,a&&(y.ref=a),i(v,y)}(k,t,n)}S.displayName=p;var k=e.forwardRef(S);return k.attrs=g,k.componentStyle=x,k.displayName=p,k.shouldForwardProp=v,k.foldedComponentIds=s?dt(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=f,k.target=s?o.target:t,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)ft(e,i[r],!0);return e}({},o.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(je(p,f),k.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider 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,f)),gt(k,function(){return".".concat(k.styledComponentId)}),l&&ct(k,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function sn(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}var on=function(e){return Object.assign(e,{isCss:!0})};function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ut(e)||pt(e))return on(Kt(sn(Ve,x([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Kt(r):on(Kt(sn(r,t)))}function cn(e,t,n){if(void 0===n&&(n=$e),!t)throw bt(1,t);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,ln.apply(void 0,x([r],i,!1)))};return r.attrs=function(r){return cn(e,t,w(w({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return cn(e,t,w(w({},n),r))},r}var un=function(e){return cn(an,e)},mn=un;Le.forEach(function(e){mn[e]=un(e)});var dn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Jt(e),zt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(ht(Kt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&zt.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");var hn,pn,fn,gn="__sc-".concat(Se,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[gn]||(window[gn]=0),1===window[gn]&&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[gn]+=1),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"}(hn||(hn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(pn||(pn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(fn||(fn={}));const vn={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"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"}},yn={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."]}},bn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=vn,this.ArrayTranslations=yn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=b({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=b({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},wn=bn.Translations,xn=bn.ArrayTranslations,Sn=bn.GetAllLanguages;function kn(e){bn.AddTranslations(e)}const Cn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Nn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const En=["",".","..","...","....",".....","......","-"];function Mn(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 An(e,t,n=!1){if(e)return n?wn.dataMissing[t]:En[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Tn(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(Gn(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&a.push(wn.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(", ")}: ${qn(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(", ")}: ${qn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(Gn(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(wn.preliminaryData[t]),s.join(", ")}}function In(e){return function(){return this.value.toLocaleString(e)}}const jn=e=>Sn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Sn()[0];function Vn(e=null){const t=e&&e>=15?25:50;return function(){return Ln(this.value,t)}}function $n(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 Mn(this.y,r,e,!0)}}function Dn(){return function(){return Ln(this.name,200)}}const Ln=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function On(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 />${wn.preliminaryData[t]}`),o}}function zn(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(Gn(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&a.push(wn.preliminaryData[t]),a.join("<br/>")}}function Rn(e,t){const n=e.map(e=>e.unit).filter(Nn);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 Gn(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===hn.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==hn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==hn.PercentVerticalBarChart?`${Mn(null!=(a=t.percentage)?a:0,1,n)}% (${i.toLocaleString(n)} ${Rn(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function qn(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]} ${xn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=xn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${wn.quarter[t]}`}console.log("Unsupported time pattern")}return e}var Bn;function Fn(e,t,n){return function(){const r=function(e,t,n,r=new d(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):d.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 d(0);const t=d.pow(10,d.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())})(d.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 d(NaN):a[0][1]}(e,t,(n=>{const r=d.pow(10,d.log10(d.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 d(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new d(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 _n(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?Fn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}function Hn(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?Fn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Bn||(Bn={}));const Wn=(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 Un(e,t){if(t){const n=new Date(t);switch(e){case fn.Irregular:case fn.Week:return;case fn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case fn.Quarter:case fn.HalfYear:return;case fn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Yn(e,t){if(e.seriesType!==Bn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!isNaN(parseFloat(e)));return e.seriesType===Bn.Ordinal&&r?Wn(e,t):{ordinal:e.seriesType==Bn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case fn.Week:return Zn(e,t);case fn.Month:return Xn();case fn.Quarter:return Kn(e,t);case fn.HalfYear:return Jn(e,t);case fn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Zn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),Xn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return m.dateFormat("%YM%m",Number(this.value))}}}),Kn=(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)})}},Jn=(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)})}},Qn=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],er=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function tr(e){return{color:{pattern:{backgroundColor:Qn[e%Qn.length],path:{stroke:"white",d:er[e%er.length],strokeWidth:2},width:10,height:10}}}}const nr=(e,t)=>e.series.map((n,r)=>b({},ar(n,e,t),{index:r,type:"line"})),rr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>b({},ar(i,e,t),r&&tr(a),{index:n?e.series.length-1-a:a,type:"bar"})),ir=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>b({},ar(i,e,t),r&&tr(a),{index:n?e.series.length-1-a:a,type:"column"}));function ar(e,t,n){return{animation:!1,name:e.rowNameGroup.map(e=>e[n]).join(", "),data:e.series.map((e,r)=>({y:e.value,name:t.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}))}}const sr=(e,t)=>({accessibility:{point:{descriptionFormatter:Pn(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{text:`${wn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:Tn(e,t)},yAxis:[or]}),or={plotLines:[{value:0,color:"#000",width:1}]},lr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:$n(t)}),cr=(e,t)=>b({},or,{tickPositioner:_n(e.series.map(e=>e.series)),title:{text:Rn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),ur=(e,t)=>b({},sr(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Vn(e.columnNameGroups.length),style:{width:200}}}}),mr=(e,t,n)=>b({},ur(e,t),{series:rr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:b({},fr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),dr=(e,t)=>b({},sr(e,t),{chart:{type:"column"},xAxis:Yn(e,t)}),hr=(e,t,n)=>b({},dr(e,t),{series:ir(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Rn(e.units,t)}}}),pr=(e,t,n)=>b({},dr(e,t),{series:ir(e,t,!0,null==n?void 0:n.accessibilityMode),legend:b({},fr,{enabled:!0,layout:"vertical"})}),fr={itemHiddenStyle:{color:"black"}},gr=(e,t,n)=>{var r,i;return b({},sr(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=i?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Ln(this.name,20)+t})}}},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,i)=>b({y:r.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),unit:Rn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&tr(i),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},vr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),i=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return b({},sr(e,t),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:b({},or,{min:-Math.abs(i),max:Math.abs(i),title:{text:Rn(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:b({},fr,{enabled:!0,margin:30}),series:e.series.map((r,i)=>b({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&tr(i),{data:r.series.map((n,r)=>({y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:b({},lr(e,t))}},exporting:{enabled:!1}})},yr=(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 `,br=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case hn.LineChart:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,a=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return b({},sr(e,t),{chart:{type:"line"},tooltip:{formatter:zn(e,t)},xAxis:b({},Yn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:b({},or,{softMin:i,softMax:i,title:{text:Rn(e.units,t)}}),plotOptions:{line:{dataLabels:b({},lr(e,t)),marker:a},series:Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:b({},fr,{enabled:e.series.length>1,labelFormatter:Dn()}),series:nr(e,t),exporting:{enabled:!1}})})(t,e,n);case hn.VerticalBarChart:return((e,t,n)=>b({},hr(e,t,n),{yAxis:b({},or,{softMin:0,softMax:0,title:{text:Rn(e.units,t)}}),plotOptions:{series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case hn.HorizontalBarChart:return((e,t,n)=>b({},ur(e,t),{series:rr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:b({},cr(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.GroupVerticalBarChart:return((e,t,n)=>b({},hr(e,t,n),{plotOptions:{series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})},legend:b({},fr,{enabled:!0,labelFormatter:Dn()})}))(t,e,n);case hn.GroupHorizontalBarChart:return((e,t,n)=>b({},ur(e,t),{series:rr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:b({},cr(e,t),{softMin:0,softMax:0}),legend:b({},fr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.StackedVerticalBarChart:return((e,t,n)=>b({},pr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Rn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})}}))(t,e,n);case hn.StackedHorizontalBarChart:return((e,t,n)=>b({},mr(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Hn(e.series.map(e=>e.series)),title:{text:Rn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.PercentVerticalBarChart:return((e,t,n)=>b({},pr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:b({},Un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:b({},lr(e,t))})}}))(t,e,n);case hn.PercentHorizontalBarChart:return((e,t,n)=>b({},mr(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:b({},lr(e,t))}}}))(t,e,n);case hn.PieChart:return gr(t,e,n);case hn.PyramidChart:return vr(t,e,n);case hn.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return b({},sr(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:b({},or,{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:yr(e.series,t),formatter:On(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")}},wr=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=xr(i,r);if(i=t,a=b({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=Sr(i,n);if(i=t,a=b({},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===pn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},xr=(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}},Sr=(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}},kr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},Cr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Nr(e,t,n){return Mr(Er(e,e.series[t].series,n),t)}function Er(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 b({},e,{series:t.map(t=>e.series[t])})}(e,r));return b({},e,{columnNameGroups:i,series:a})}function Mr(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),b({},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 Tr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class Pr{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===pn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===pn.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=>b({},e,{values:Ar(e,t)})),r=Tr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=Tr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=Tr(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=Cn(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 Ir(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===pn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new Pr(e,t).getViewSeries(),r=Tr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Ar(e,t));return{columnNameGroups:Cn(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:Lr(s,t),sources:Or(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:wn.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:Vr(e.columnVariableCodes,e.metaData),rowVarNames:Vr(e.rowVariableCodes,e.metaData),selectableVarNames:Vr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:zr(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)===hn.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===hn.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=>b({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return b({},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 Er(e,n,t)}(a,Cr);case"ascending":return Nr(a,0,kr);case"descending":return Nr(a,0,Cr);default:return s?(o=a,l=jr(a),c=$r(e),Mr(Er(o,l.series[c].series,Cr),c)):Nr(a,$r(e),Cr)}var o,l,c}function jr(e){const t=e.series.map(t=>b({},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 b({},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 Vr(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 $r(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 Lr(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 Or(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter(Nn):e.values.map(e=>n(e.contentComponent)).filter(Nn)}function zr(e,t){var n;if(e.length>1||0===e.length)return Bn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case pn.Time:return Bn.Time;case pn.Ordinal:return Bn.Ordinal;default:return Bn.Nominal}}const Rr=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:wn.thousandsSepAccessibility[e],credits:wn.credits[e],chartTypes:{barMultiple:wn.barMultiple[e],barSingle:wn.barSingle[e],columnMultiple:wn.columnMultiple[e],columnSingle:wn.columnSingle[e],lineSingle:wn.lineSingle[e],lineMultiple:wn.lineMultiple[e],pieSingle:wn.pieSingle[e],scatterSingle:wn.scatterSingle[e],scatterMultiple:wn.scatterMultiple[e],defaultSingle:wn.defaultSingle[e],defaultMultiple:wn.defaultMultiple[e]},defaultChartTitle:wn.defaultChartTitle[e],exporting:{chartMenuLabel:wn.chartMenuLabel[e],menuButtonLabel:wn.menuButtonLabel[e]},legend:{legendItem:wn.legendItem[e],legendLabel:wn.legendLabel[e],legendLabelNoTitle:wn.legendLabelNoTitle[e]},axis:{rangeCategories:wn.rangeCategories[e],rangeFromTo:wn.rangeFromTo[e],timeRangeDays:wn.timeRangeDays[e],timeRangeHours:wn.timeRangeHours[e],timeRangeMinutes:wn.timeRangeMinutes[e],timeRangeSeconds:wn.timeRangeSeconds[e],xAxisDescriptionPlural:wn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:wn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:wn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:wn.yAxisDescriptionSingular[e]},series:{summary:{bar:wn.seriesSummaryBar[e],barCombination:wn.seriesSummaryBarCombination[e],column:wn.seriesSummaryColumn[e],columnCombination:wn.seriesSummaryColumnCombination[e],default:wn.seriesSummaryDefault[e],defaultCombination:wn.seriesSummaryDefaultCombination[e],line:wn.seriesSummaryLine[e],lineCombination:wn.seriesSummaryLineCombination[e],pie:wn.seriesSummaryPie[e],pieCombination:wn.seriesSummaryPieCombination[e],scatter:wn.seriesSummaryScatter[e],scatterCombination:wn.seriesSummaryScatterCombination[e]},xAxisDescription:wn.xAxisDescription[e],yAxisDescription:wn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:wn.endOfChartMarker[e]},chartContainerLabel:wn.chartContainerLabel[e]},thousandsSep:wn.thousandsSep[e],decimalPoint:wn.decimalPoint[e],contextButtonTitle:wn.contextButtonTitle[e],downloadCSV:wn.downloadCSV[e],downloadPNG:wn.downloadPNG[e],downloadSVG:wn.downloadSVG[e],months:xn.months[e],shortMonths:xn.shortMonths[e],weekdays:xn.weekdays[e],loading:wn.loading[e],numericSymbols:null},colors:Qn,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:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},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:In(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,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}),Gr=(e,t,n,r=null,i)=>{const a=jn(n);"object"==typeof u&&(h(u),p(u),f(u)),u.setOptions(Rr(a));const s=Ir(t,wr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=br(a,s,i);return u.chart(e,o)};function qr(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=_r(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=Fr(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?An(n.missingCode,t,!0):Mn(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=Rn(e.units,t);n.append(`${wn.unit[t]}: ${r}`),o.append(n)}if(i){const n=document.createElement("p"),r=`${wn.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(wn.graphCreationError[t]),o.append(n)}}const Br=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),Fr=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},_r=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},Hr=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")}`},Wr=(e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===hn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===hn.PercentVerticalBarChart)&&(e=jr(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,h=","==wn.decimalPoint[t]?";":",",p="\n";let f=Yr([`"${e.header[t]}"`],0,d,h,p);e.subheaderValues.length>0&&(f+=Yr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,h,p));for(let n=0;n<u;n++)f+=Yr(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,h,p);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?An(e.missingCode,t):Mn(e.value,e.precision,t))),f+=Yr(n,0,d,h,p)}),f+=Yr([`"${wn.unit[t]}: ${Rn(e.units,t)}"`],0,d,h,p),f+=Yr([`"${wn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,h),f},Ur=(e,t)=>({onClick:()=>{const n=Wr(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",Hr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:wn.downloadCSV[t]});function Yr(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 Zr=['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 Xr(e){const t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Xr(t-1)+n}const Kr=`<?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 Jr(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 Qr=(e,t)=>({onClick:async()=>{const n=await ei(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Hr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:wn.downloadXLSX[t]});async function ei(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===hn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===hn.PercentVerticalBarChart)&&(e=jr(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,h=[Jr([e.header[t]],0,d)];e.subheaderValues.length>0&&h.push(Jr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)h.push(Jr(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?An(e.missingCode,t):Number(e.value.toFixed(e.precision)))),h.push(Jr(n,0,d))}),h.push(Jr([`${wn.unit[t]}: ${Rn(e.units,t)}`],0,d)),h.push(Jr([`${wn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),h})(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="${Xr(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Xr(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 ${Zr.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":g(r),"workbook.xml":g(Kr),"_rels/workbook.xml.rels":g('<?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":g('<?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":g('<?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)=>{v(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const ti=["Bars","Times","Download","ExternalLink","Copy"],ni=({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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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",b({},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 ri,ii,ai,si,oi,li,ci,ui=e=>e;const mi=mn(a((t,n)=>e.createElement("button",b({ref:n},t))))(ri||(ri=ui`
|
|
2
2
|
background-color: transparent;
|
|
3
3
|
text-align: left;
|
|
4
4
|
border: none;
|