@statisticsfinland/pxvisualizer 1.4.13-d.0 → 1.4.13-d.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import e,{createElement as t,forwardRef as n,useId as r,useEffect as s,useMemo as i,Component as a}from"react";import*as o from"highcharts";import l from"highcharts";import c from"decimal.js";import{strToU8 as u,zip as d}from"fflate";import{HighchartsReact as m}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function h(){return h=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},h.apply(null,arguments)}function p(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|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)-.*))$/,g=/* #__PURE__ */p(function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),v="-ms-",y="-moz-",b="-webkit-",w="comm",x="rule",S="decl",k="@keyframes",C=Math.abs,N=String.fromCharCode,T=Object.assign;function A(e){return e.trim()}function M(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function $(e,t,n){return e.indexOf(t,n)}function P(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function V(e){return e.length}function I(e){return e.length}function O(e,t){return t.push(e),e}function D(e,t){return e.filter(function(e){return!M(e,t)})}var L=1,z=1,R=0,G=0,q=0,B="";function F(e,t,n,r,s,i,a,o){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:L,column:z,length:a,return:"",siblings:o}}function _(e,t){return T(F("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function H(e){for(;e.root;)e=_(e.root,{children:[e]});O(e,e.siblings)}function W(){return q=G>0?P(B,--G):0,z--,10===q&&(z=1,L--),q}function U(){return q=G<R?P(B,G++):0,z++,10===q&&(z=1,L++),q}function Y(){return P(B,G)}function Z(){return G}function K(e,t){return j(B,e,t)}function X(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 J(e){return A(K(G-1,te(91===e?e+2:40===e?e+1:e)))}function Q(e){for(;(q=Y())&&q<33;)U();return X(e)>2||X(q)>3?"":" "}function ee(e,t){for(;--t&&U()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return K(e,Z()+(t<6&&32==Y()&&32==U()))}function te(e){for(;U();)switch(q){case e:return G;case 34:case 39:34!==e&&39!==e&&te(q);break;case 40:41===e&&te(e);break;case 92:U()}return G}function ne(e,t){for(;U()&&e+q!==57&&(e+q!==84||47!==Y()););return"/*"+K(t,G-1)+"*"+N(47===e?e:U())}function re(e){for(;!X(Y());)U();return K(e,G)}function se(e){return function(e){return B="",e}(ie("",null,null,null,[""],e=function(e){return L=z=1,R=V(B=e),G=0,[]}(e),0,[0],e))}function ie(e,t,n,r,s,i,a,o,l){for(var c=0,u=0,d=a,m=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=s,x=i,S=r,k=b;g;)switch(p=y,y=U()){case 40:if(108!=p&&58==P(k,d-1)){-1!=$(k+=E(J(y),"&","&\f"),"&\f",C(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=J(y);break;case 9:case 10:case 13:case 32:k+=Q(p);break;case 92:k+=ee(Z()-1,7);continue;case 47:switch(Y()){case 42:case 47:O(oe(ne(U(),Z()),t,n,l),l),5!=X(p||1)&&5!=X(Y()||1)||!V(k)||" "===j(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*f:o[c++]=V(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=E(k,/\f/g,"")),h>0&&(V(k)-d||0===f&&47===p)&&O(h>32?le(k+";",r,n,d-1,l):le(E(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(O(S=ae(k,t,n,c,u,s,o,b,w=[],x=[],d,i),i),123===y)if(0===u)ie(k,t,S,S,w,i,d,o,x);else{switch(m){case 99:if(110===P(k,3))break;case 108:if(97===P(k,2))break;default:u=0;case 100:case 109:case 115:}u?ie(e,S,S,r&&O(ae(e,S,S,0,0,s,o,b,s,w=[],d,x),x),s,x,d,o,r?w:x):ie(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",d=a;break;case 58:d=1+V(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==W())continue;switch(k+=N(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(V(k)-1)*v,v=1;break;case 64:45===Y()&&(k+=J(U())),m=Y(),u=d=V(b=k+=re(Z())),y++;break;case 45:45===p&&2==V(k)&&(f=0)}}return i}function ae(e,t,n,r,s,i,a,o,l,c,u,d){for(var m=s-1,h=0===s?i:[""],p=I(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=j(e,m+1,m=C(g=a[f])),w=e;y<p;++y)(w=A(g>0?h[y]+" "+b:E(b,/&\f/g,h[y])))&&(l[v++]=w);return F(e,t,n,0===s?x:o,l,c,u,d)}function oe(e,t,n,r){return F(e,t,n,w,N(q),j(e,2,-2),0,r)}function le(e,t,n,r,s){return F(e,t,n,S,j(e,0,r),j(e,r+1,-1),r,s)}function ce(e,t,n){switch(function(e,t){return 45^P(e,0)?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}(e,t)){case 5103:return b+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return b+e+e;case 4855:return b+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+y+e+v+e+e;case 5936:switch(P(e,t+11)){case 114:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return b+e+v+e+e;case 6165:return b+e+v+"flex-"+e+e;case 5187:return b+e+E(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+v+"flex-$1$2")+e;case 5443:return b+e+v+"flex-item-"+E(e,/flex-|-self/g,"")+(M(e,/flex-|baseline/)?"":v+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return b+e+v+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return b+e+v+E(e,"shrink","negative")+e;case 5292:return b+e+v+E(e,"basis","preferred-size")+e;case 6060:return b+"box-"+E(e,"-grow","")+b+e+v+E(e,"grow","positive")+e;case 4554:return b+E(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+v+"flex-pack:$3"),/space-between/,"justify")+b+e+e;case 4200:if(!M(e,/flex-|baseline/))return v+"grid-column-align"+j(e,t)+e;break;case 2592:case 3360:return v+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,M(e.props,/grid-\w+-end/)})?~$(e+(n=n[t].value),"span",0)?e:v+E(e,"-start","")+e+v+"grid-row-span:"+(~$(n,"span",0)?M(n,/\d+/):+M(n,/\d+/)-+M(e,/\d+/))+";":v+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return M(e.props,/grid-\w+-start/)})?e:v+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,b+"$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(V(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+y+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$(e,"stretch",0)?ce(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,s,i,a,o){return v+n+":"+r+o+(s?v+n+"-span:"+(i?a:+a-+r)+o:"")+e});case 4949:if(121===P(e,t+6))return E(e,":",":"+b)+e;break;case 6444:switch(P(e,45===P(e,14)?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+b+(45===P(e,14)?"inline-":"")+"box$3$1"+b+"$2$3$1"+v+"$2box$3")+e;case 100:return E(e,":",":"+v)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function ue(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function de(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case S:return e.return=e.return||e.value;case w:return"";case k:return e.return=e.value+"{"+ue(e.children,r)+"}";case x:if(!V(e.value=e.props.join(",")))return""}return V(n=ue(e.children,r))?e.return=e.value+"{"+n+"}":""}function me(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case S:return void(e.return=ce(e.value,e.length,n));case k:return ue([_(e,{value:E(e.value,"@","@"+b)})],r);case x:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(M(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":H(_(e,{props:[E(t,/:(read-\w+)/,":-moz-$1")]})),H(_(e,{props:[t]})),T(e,{props:D(n,r)});break;case"::placeholder":H(_(e,{props:[E(t,/:(plac\w+)/,":"+b+"input-$1")]})),H(_(e,{props:[E(t,/:(plac\w+)/,":-moz-$1")]})),H(_(e,{props:[E(t,/:(plac\w+)/,v+"input-$1")]})),H(_(e,{props:[t]})),T(e,{props:D(n,r)})}return""})}}const he="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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n",18:"Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledComponent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n\n",19:"styled-components loaded its browser build in a React Server Components environment. This usually happens when a route renders on the server with the edge runtime, or when a server bundle resolves the package's browser build. Remove `export const runtime = 'edge'`, or set it to `'nodejs'`, on every route that renders styled-components on the server, and make sure server code resolves the package's server build.\n\n",20:"styled-components tried to create a `<style>` element on the server, where no `document` exists. This usually happens when a route renders on the server with the edge runtime, or when a server bundle resolves the package's browser build. Remove `export const runtime = 'edge'`, or set it to `'nodejs'`, on every route that renders styled-components on the server, and make sure server code resolves the package's server build.\n"}:{};function pe(e,...t){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#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(he[e],...t).trim())}var fe,ge;const ve="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ye="active",be="data-styled-version",we="6.6.0",xe="/*!sc*/\n",Se="undefined"!=typeof window&&"undefined"!=typeof document;if(!e.createContext)throw pe(19);function ke(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Ce=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(ge=null!==(fe=ke("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==fe?fe:ke("SC_DISABLE_SPEEDY"))&&void 0!==ge?ge:"undefined"!=typeof process&&void 0!==process.env&&"production"!==process.env.NODE_ENV),Ne={},Te=1<<30;let Ae=new Map,Me=new Map,Ee=1;const $e=e=>{if(Ae.has(e))return Ae.get(e);for(;Me.has(Ee);)Ee++;const t=Ee++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>Te))throw pe(16,`${t}`);return Ae.set(e,t),Me.set(t,e),t},Pe=e=>Me.get(e),je=(e,t)=>{Ee=t+1,Ae.set(e,t),Me.set(t,e)},Ve=/invalid hook call/i,Ie=new Set,Oe=(t,n)=>{if("production"!==process.env.NODE_ENV){const r=`The component ${t}${n?` with the id of "${n}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,s=console.error;try{let t=!0;console.error=(e,...n)=>{Ve.test(e)?(t=!1,Ie.delete(r)):s(e,...n)},"function"==typeof e.useState&&e.useState(null),t&&!Ie.has(r)&&(console.warn(r),Ie.add(r))}catch(t){Ve.test(t.message)&&Ie.delete(r)}finally{console.error=s}}},De=Object.freeze([]),Le=Object.freeze({});function ze(e,t,n=Le){return e.theme!==n.theme&&e.theme||t||n.theme}const Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ge=/(^-|-$)/g;function qe(e){return e.replace(Re,"-").replace(Ge,"")}const Be=/(a)(d)/gi,Fe=e=>String.fromCharCode(e+(e>25?39:97));function _e(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Fe(t%52)+n;return(Fe(t%52)+n).replace(Be,"$1-$2")}const He=5381,We=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},Ue=e=>We(He,e);function Ye(e){return _e(Ue(e)>>>0)}function Ze(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ke(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function Xe(e){return Ke(e)?`styled.${e}`:`Styled(${Ze(e)})`}const Je=Symbol.for("react.memo"),Qe=Symbol.for("react.forward_ref"),et={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},tt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={[Qe]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Je]:nt};function st(e){return("type"in(t=e)&&t.type.$$typeof)===Je?nt:"$$typeof"in e?rt[e.$$typeof]:et;var t}const it=Object.defineProperty,at=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,lt=Object.getOwnPropertyDescriptor,ct=Object.getPrototypeOf,ut=Object.prototype;function dt(e,t,n){if("string"!=typeof t){const r=ct(t);r&&r!==ut&&dt(e,r,n);const s=at(t).concat(ot(t)),i=st(e),a=st(t);for(let r=0;r<s.length;++r){const o=s[r];if(!(o in tt||n&&n[o]||a&&o in a||i&&o in i)){const n=lt(t,o);try{it(e,o,n)}catch(e){}}}}return e}function mt(e){return"function"==typeof e}const ht=Symbol.for("react.forward_ref");function pt(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===ht&&"styledComponentId"in e}function ft(e,t){return e&&t?e+" "+t:e||t||""}function gt(e,t){return e.join(t||"")}function vt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yt(e,t,n=!1){if(!n&&!vt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=yt(e[n],t[n]);else if(vt(t))for(const n in t)e[n]=yt(e[n],t[n]);return e}function bt(e,t){Object.defineProperty(e,"toString",{value:t})}const wt=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw pe(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let s=0,i=t.length;s<i;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n;for(let e=r;e<s;e++)t+=this.tag.getRule(e)+xe;return t}},xt=`style[${ve}][${be}="${we}"]`,St=new RegExp(`^${ve}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);let kt=!1;const Ct=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Nt=e=>{if(!e)return document;if(Ct(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Ct(t))return t}return document},Tt=(e,t,n)=>{const r=n.split(",");let s;for(let n=0,i=r.length;n<i;n++)(s=r[n])&&e.registerName(t,s)},At=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(xe),s=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(St);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(je(n,t),Tt(e,n,i[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Mt=e=>{const t=Nt(e.options.target);(e=>{if("production"!==process.env.NODE_ENV){if(kt)return;const t=e.querySelectorAll(`style[${ve}]`);for(let e=0,n=t.length;e<n;e++){if(t[e].getAttribute(ve)===ye)continue;const n=t[e].getAttribute(be);if(null!==n&&n!==we)return kt=!0,void console.warn(`Found server-rendered styles from styled-components ${n}, but this copy is ${we}. If both come from the same app, class names will not match and hydration will fail: make sure the server and the browser load the same version (run \`npm ls styled-components\` to find duplicates). Pages that intentionally host separate apps on different versions can ignore this.`)}}})(t);const n=t.querySelectorAll(xt);for(let t=0,r=n.length;t<r;t++){const r=n[t];r&&r.getAttribute(ve)!==ye&&(At(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let Et=!1;const $t=(e,t)=>{if("undefined"==typeof document)throw pe(20);const n=document.head,r=e||n,s=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${ve}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;s.setAttribute(ve,ye),s.setAttribute(be,we);const o=t||function(){if(!1!==Et)return Et;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Et=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Et=t.getAttribute("content")||void 0}return Et="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return o&&s.setAttribute("nonce",o),r.insertBefore(s,a),s},Pt=class{constructor(e,t){this.element=$t(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw pe(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},jt=class{constructor(e,t){this.element=$t(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Vt=Se;const It={isServer:!Se,useCSSOMInjection:!Ce};class Ot{static registerId(e){return $e(e)}constructor(e=Le,t={},n){this.options=Object.assign(Object.assign({},It),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Se&&Vt&&(Vt=!1,Mt(this)),bt(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let s=0;s<n;s++){const n=Pe(s);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(s);if(0===a.length)continue;const o=ve+".g"+s+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+o+'{content:"'+l+'"}'+xe}return r})(this))}rehydrate(){!this.server&&Se&&Mt(this)}reconstructWithOptions(e,t=!0){const n=new Ot(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Se&&e.target!==this.options.target&&Nt(this.options.target)!==Nt(e.target)&&Mt(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Pt(t,n):new jt(t,n))(this.options),new wt(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){$e(e),e.startsWith("sc-keyframes-")&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules($e(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup($e(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Dt=new WeakSet,Lt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function zt(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Lt||e.startsWith("--")?String(t).trim():t+"px"}const Rt=47;function Gt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const qt=Symbol.for("sc-keyframes");function Bt(e){return"object"==typeof e&&null!==e&&qt in e}function Ft(e){return mt(e)&&!(e.prototype&&e.prototype.isReactComponent)}const _t=e=>null==e||!1===e||""===e,Ht=Symbol.for("react.client.reference");function Wt(e){return e.$$typeof===Ht}function Ut(e){const t=e.$$id,n=(t&&t.includes("#")?t.split("#").pop():t)||e.name||"unknown";console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function Yt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!_t(r)&&(Array.isArray(r)&&Dt.has(r)||mt(r)?t.push(Gt(n)+":",r,";"):vt(r)?(t.push(n+" {"),Yt(r,t),t.push("}")):t.push(Gt(n)+": "+zt(n,r)+";"))}}function Zt(e,t,n,r,s=[]){if(_t(e))return s;const i=typeof e;if("string"===i)return s.push(e),s;if("function"===i){if(Wt(e))return"production"!==process.env.NODE_ENV&&Ut(e),s;if(Ft(e)&&t){const i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||Bt(i)||vt(i)||null===i||console.error(`${Ze(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),Zt(i,t,n,r,s)}return s.push(e),s}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Zt(e[i],t,n,r,s);return s}return pt(e)?(s.push(`.${e.styledComponentId}`),s):Bt(e)?(n?(e.inject(n,r),s.push(e.getName(r))):s.push(e),s):Wt(e)?("production"!==process.env.NODE_ENV&&Ut(e),s):vt(e)?e.toString!==Object.prototype.toString?(s.push(e.toString()),s):(Yt(e,s),s):(s.push(e.toString()),s)}const Kt=Ue(we);class Xt{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=We(Kt,t),this.baseStyle=n,Ot.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)s+=i;else if(i)if(Ft(i)){const r=i(e);"string"==typeof r?s+=r:null!=r&&!1!==r&&("production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||Bt(r)||vt(r)||console.error(`${Ze(i)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),s+=gt(Zt(r,e,t,n)))}else s+=gt(Zt(i,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let i=this.dynamicNameCache.get(e);if(!i){if(i=_e(We(We(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(s,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=ft(r,i)}}return r}}const Jt=/&/g;function Qt(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function en(e){const t=e.length;let n="",r=0,s=0,i=0,a=!1,o=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==Rt||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Rt&&(a=!1,l++);else if(34!==c&&39!==c||Qt(e,l)){if(0===i)if(123===c)s++;else if(125===c){if(s--,s<0){o=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,s=0,l=n-1,r=n;continue}0===s&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===s&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return o||0!==s||0!==i?(r<t&&0===s&&0===i&&(n+=e.substring(r)),n):e}function tn(e,t){const n=t+" ",r=","+n;for(let s=0;s<e.length;s++){const i=e[s];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&tn(i.children,t)}return e}const nn=new Ot,rn=function({options:e=Le,plugins:t=De}=Le){let n,r,s;const i=(e,t,s)=>s.startsWith(r)&&s.endsWith(r)&&s.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===x&&e.value.includes("&")&&(s||(s=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(Jt,r).replace(s,i))}),e.prefix&&a.push(me),a.push(de);let o=[];const l=function(e){var t=I(e);return function(n,r,s,i){for(var a="",o=0;o<t;o++)a+=e[o](n,r,s,i)||"";return a}}(a.concat((d=e=>o.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{n=c,r=i,s=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return en(e);const r=e.length;let s="",i=0,a=0,o=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||Qt(e,a))if(0===o)if(t===Rt&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Rt);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Rt)s+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===Rt&&a+1<r&&e.charCodeAt(a+1)===Rt){for(s+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===o?o=t:o===t&&(o=0),a++}return u?(i<r&&(s+=e.substring(i)),0===c?s:en(s)):0===c?e:en(e)}(t);let d=se(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=tn(d,e.namespace)),o=[],ue(d,l),o},u=e;var d;let m=He;for(let e=0;e<t.length;e++)t[e].name||pe(15),m=We(m,t[e].name);return(null==u?void 0:u.namespace)&&(m=We(m,u.namespace)),(null==u?void 0:u.prefix)&&(m=We(m,"p")),c.hash=m!==He?m.toString():"",c}(),sn=e.createContext({shouldForwardProp:void 0,styleSheet:nn,stylis:rn,stylisPlugins:void 0});function an(){return e.useContext(sn)}const on=e.createContext(void 0),ln={};function cn(e,t){const n="string"!=typeof e?"sc":qe(e);ln[n]=(ln[n]||0)+1;const r=n+"-"+Ye(we+n+ln[n]);return t?t+"-"+r:r}let un;function dn(n,r,s){const i=pt(n),a=n,o=!Ke(n),{attrs:l=De,componentId:c=cn(r.displayName,r.parentComponentId),displayName:u=Xe(n)}=r,d=r.displayName&&r.componentId?qe(r.displayName)+"-"+r.componentId:r.componentId||c,m=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:h}=r;if(i&&a.shouldForwardProp){const e=a.shouldForwardProp;if(r.shouldForwardProp){const t=r.shouldForwardProp;h=(n,r)=>e(n,r)&&t(n,r)}else h=e}const p=new Xt(s,d,i?a.componentStyle:void 0);function f(n,r){return function(n,r,s){const{attrs:i,componentStyle:a,defaultProps:o,foldedComponentIds:l,styledComponentId:c,target:u}=n,d=e.useContext(on),m=an(),h=n.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(c);const p=ze(r,d,o)||Le,[f,v]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let s=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=mt(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=ft(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(s||(s=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=ft(r.className,t.className)),[r,s]}(i,r,p),y=a.generateAndInjectStyles(f,m.styleSheet,m.stylis);"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(y),"production"!==process.env.NODE_ENV&&n.warnTooManyClasses&&n.warnTooManyClasses(y);const b=f.as||u,w=Ke(b),x=function(e,t,n,r,s,i){const a={};for(const o in e)"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[o]?"className"===o||s||null!==i&&-1!==i.indexOf(o)||r&&!r(o,t)||(a[o]=void 0):r&&!r(o,t)||(a[o]=e[o],r||"development"!==process.env.NODE_ENV||g(o)||(un||(un=new Set)).has(o)||!Ke(t)||t.includes("-")||(un.add(o),console.warn(`styled-components: it looks like an unknown prop "${o}" 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.)`))));return a}(f,b,p,h,w,v);let S=ft(l,c);return y&&(S+=" "+y),f.className&&(S+=" "+f.className),x[w&&b.includes("-")?"class":"className"]=S,s&&(x.ref=s),t(b,x)}(v,n,r)}f.displayName=u;let v=e.forwardRef(f);return v.attrs=m,v.componentStyle=p,v.displayName=u,v.shouldForwardProp=h,v.foldedComponentIds=i?ft(a.foldedComponentIds,a.styledComponentId):"",v.styledComponentId=d,v.target=i?a.target:n,Object.defineProperty(v,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)yt(e,n,!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Oe(u,d),v.warnTooManyClasses=((e,t)=>{let n={},r=!1;return s=>{!r&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),r=!0,n={})}})(u,d)),bt(v,()=>`.${v.styledComponentId}`),o&&dt(v,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}var mn=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function hn(e,t){const n=[e[0]];for(let r=0,s=t.length;r<s;r+=1)n.push(t[r],e[r+1]);return n}const pn=e=>(Dt.add(e),e);function fn(e,...t){if(mt(e)||vt(e))return pn(Zt(hn(De,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Zt(n):pn(Zt(hn(n,t)))}function gn(e,t,n=Le){if(!t)throw pe(1,t);const r=(r,...s)=>e(t,n,fn(r,...s));return r.attrs=r=>gn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>gn(e,t,Object.assign(Object.assign({},n),r)),r}const vn=e=>gn(dn,e),yn=vn;mn.forEach(e=>{yn[e]=vn(e)});class bn{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(mt(n)&&!pt(n))return!1}return!0}(e),Ot.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(s,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const s=gt(Zt(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(s,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}"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://styled-components.com/docs/basics#react-native");const wn=`__sc-${ve}__`;var xn,Sn,kn;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wn]||(window[wn]=0),1===window[wn]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[wn]+=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"}(xn||(xn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(Sn||(Sn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(kn||(kn={}));const Cn={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"},lastUpdated:{fi:"Päivitetty",sv:"Uppdaterad",en:"Updated"}},Nn={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},Tn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Cn,this.ArrayTranslations=Nn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=h({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=h({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},An=Tn.Translations,Mn=Tn.ArrayTranslations,En=Tn.GetAllLanguages;function $n(e){Tn.AddTranslations(e)}const Pn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function jn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const Vn=["",".","..","...","....",".....","......","-"];function In(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 On(e,t,n=!1){if(e)return n?An.dataMissing[t]:Vn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Dn(e,t){return function(){var n,r,s;const i=[];var a,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&i.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&i.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 i.push(Un(e,this,t,l)),null!=(s=this.options.custom)&&s.preliminary&&i.push(An.preliminaryData[t]),i.join("<br/>")}}function Ln(e,t){return function(n){var r,s,i;const a=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&a.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${Yn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&a.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${Yn(n.name,t)}`);const c=null!=(r=null==(s=n.options.custom)?void 0:s.precision)?r:0;return a.push(Un(e,n,t,c)),null!=(i=n.options.custom)&&i.preliminary&&a.push(An.preliminaryData[t]),a.join(", ")}}function zn(e){return function(){return this.value.toLocaleString(e)}}const Rn=e=>En().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():En()[0];function Gn(e=null){const t=e&&e>=15?25:50;return function(){return Fn(this.value,t)}}function qn(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 In(this.y,r,e,!0)}}function Bn(){return function(){return Fn(this.name,200)}}const Fn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function _n(e,t){return function(){var n,r;const s=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),i=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),a=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return s&&s.length>0&&this.series.name&&(o+=`${s}: ${this.x.toLocaleString(t)}<br />`),i&&i.length>0&&this.key&&(o+=`${i}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),a&&a.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${a}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${An.preliminaryData[t]}`),o}}function Hn(e,t){return function(){var n,r,s;const i=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)i.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var a;e.colVarNames&&e.colVarNames.length>0&&this.name&&i.push(`${null==(a=e.colVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return i.push(Un(e,this,t,o)),null!=(s=this.options.custom)&&s.preliminary&&i.push(An.preliminaryData[t]),i.join("<br/>")}}function Wn(e,t){const n=e.map(e=>e.unit).filter(jn);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 Un(e,t,n,r){if(null==t.y)return"";const s=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===xn.PyramidChart?Math.abs(s).toLocaleString(n):e.visualizationSettings.visualizationType==xn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==xn.PercentVerticalBarChart?`${In(null!=(i=t.percentage)?i:0,1,n)}% (${s.toLocaleString(n)} ${Wn(e.units,n)})`:null!=(a=s.toLocaleString(n))?a:"";var i,a}function Yn(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]} ${Mn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=Mn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${An.quarter[t]}`}console.log("Unsupported time pattern")}return e}function Zn(e,t){if(e)try{const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=Intl.DateTimeFormat("en"===t?"en-GB":t).format(n);return`${An.lastUpdated[t]}: ${r}`}catch(e){return void console.error("Error formatting date:",e)}}var Kn;function Xn(e,t,n){return function(){const r=function(e,t,n,r=new c(0)){var s;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):c.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const i=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const s=function(e){if(e.equals(0))return new c(0);const t=c.pow(10,c.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 s.greaterThanOrEqualTo(r)&&t.push([(i=s,i.equals(0)?0:i.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(i):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(i)),s]),t;var i},[]).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())})(c.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(s=i.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?s:new c(NaN):i[0][1]}(e,t,(n=>{const r=c.pow(10,c.log10(c.max(e.abs(),t.abs())).floor()),s=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(s,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),s=e.greaterThanOrEqualTo(0)?new c(0):e.div(r).floor().mul(r),i=t.lessThanOrEqualTo(0)?new c(0):t.div(r).ceil().mul(r);return Array.from({length:i.minus(s).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(s).toNumber())}}function Jn(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?Xn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}function Qn(e){let t=null,n=null,r=0;return e[0].forEach((s,i)=>{const a=e.reduce((e,t)=>{var n;return e+(null!=(n=t[i].value)?n:0)},0);a&&(!t||a<t)&&(t=a),a&&(!n||a>n)&&(n=a),s.precision>r&&(r=s.precision)}),t&&n?Xn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Kn||(Kn={}));const er=(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 tr(e,t){if(t){const n=new Date(t);switch(e){case kn.Irregular:case kn.Week:return;case kn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case kn.Quarter:case kn.HalfYear:return;case kn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function nr(e,t){if(e.seriesType!==Kn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!Number.isNaN(Number.parseFloat(e)));return e.seriesType===Kn.Ordinal&&r?er(e,t):{ordinal:e.seriesType==Kn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case kn.Week:return rr(e,t);case kn.Month:return sr();case kn.Quarter:return ir(e,t);case kn.HalfYear:return ar(e,t);case kn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const rr=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),sr=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return l.dateFormat("%YM%m",Number(this.value))}}}),ir=(e,t)=>{var n,r,s;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)),s=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,s),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},ar=(e,t)=>{var n,r,s;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)),s=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,s),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},or=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],lr=["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 cr(e){return{color:{pattern:{backgroundColor:or[e%or.length],path:{stroke:"white",d:lr[e%lr.length],strokeWidth:2},width:10,height:10}}}}const ur=(e,t)=>e.series.map((n,r)=>h({},hr(n,e,t),{index:r,type:"line"})),dr=(e,t,n=!1,r=!1)=>e.series.map((s,i)=>h({},hr(s,e,t),r&&cr(i),{colorIndex:i,index:n?e.series.length-1-i:i,type:"bar"})),mr=(e,t,n=!1,r=!1)=>e.series.map((s,i)=>h({},hr(s,e,t),r&&cr(i),{colorIndex:i,index:n?e.series.length-1-i:i,type:"column"}));function hr(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 pr=(e,t,n)=>{var r;const s=null==(r=null==n?void 0:n.showTitles)||r,i=An.source[t];let a=`${i}: ${e.sources.map(e=>e[t]).join(", ")}`;const o=(null==n?void 0:n.showLastUpdated)&&e.lastUpdated;if(o){const n=Zn(e.lastUpdated,t);n&&(a=`${n}<br>${i}: ${e.sources.map(e=>e[t]).join(", ")}`)}return{chart:{spacingBottom:o?50:30},accessibility:{point:{descriptionFormatter:Ln(e,t)}},title:{text:s?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{enabled:!1},caption:{text:a},tooltip:{formatter:Dn(e,t)},yAxis:[fr],lang:{accessibility:{chartContainerLabel:e.header[t]}}}},fr={plotLines:[{value:0,color:"#000",width:1}]},gr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:qn(t)}),vr=(e,t)=>h({},fr,{tickPositioner:Jn(e.series.map(e=>e.series)),title:{text:Wn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),yr=(e,t,n)=>h({},pr(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Gn(e.columnNameGroups.length),style:{width:200}}}}),br=(e,t,n)=>h({},yr(e,t,n),{series:dr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},kr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),wr=(e,t,n)=>h({},pr(e,t,n),{chart:{type:"column"},xAxis:nr(e,t)}),xr=(e,t,n)=>h({},wr(e,t,n),{series:mr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Wn(e.units,t)}}}),Sr=(e,t,n)=>h({},wr(e,t,n),{series:mr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},kr,{enabled:!0,layout:"vertical"})}),kr={itemHiddenStyle:{color:"black"}},Cr=(e,t,n)=>{var r,s;return h({},pr(e,t,n),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(s=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=s?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Fn(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,s)=>h({y:r.value,name:e.columnNameGroups[s].map(e=>e[t]).join(", "),unit:Wn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&cr(s),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},Nr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),s=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return h({},pr(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:h({},fr,{min:-Math.abs(s),max:Math.abs(s),title:{text:Wn(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:h({},kr,{enabled:!0,margin:30}),series:e.series.map((r,s)=>h({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&cr(s),{data:r.series.map((n,r)=>({y:0===s&&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:h({},gr(e,t))}},exporting:{enabled:!1}})},Tr=(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 `,Ar=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case xn.LineChart:return((e,t,n)=>{var r;const s=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,i=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return h({},pr(e,t,n),{chart:{type:"line"},tooltip:{formatter:Hn(e,t)},xAxis:h({},nr(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:h({},fr,{softMin:s,softMax:s,title:{text:Wn(e.units,t)}}),plotOptions:{line:{dataLabels:h({},gr(e,t)),marker:i},series:tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:h({},kr,{enabled:e.series.length>1,labelFormatter:Bn()}),series:ur(e,t),exporting:{enabled:!1}})})(t,e,n);case xn.VerticalBarChart:return((e,t,n)=>h({},xr(e,t,n),{yAxis:h({},fr,{softMin:0,softMax:0,title:{text:Wn(e.units,t)}}),plotOptions:{series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case xn.HorizontalBarChart:return((e,t,n)=>h({},yr(e,t,n),{series:dr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:h({},vr(e,t),{softMin:0,max:100}),caption:h({},yr(e,t,n).caption,{y:30}),legend:{enabled:!1},plotOptions:{series:{dataLabels:h({},gr(e,t))}}}))(t,e,n);case xn.GroupVerticalBarChart:return((e,t,n)=>h({},xr(e,t,n),{plotOptions:{series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})},legend:h({},kr,{enabled:!0,labelFormatter:Bn()})}))(t,e,n);case xn.GroupHorizontalBarChart:return((e,t,n)=>h({},yr(e,t,n),{series:dr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:h({},vr(e,t),{softMin:0,softMax:0}),legend:h({},kr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:h({},gr(e,t))}}}))(t,e,n);case xn.StackedVerticalBarChart:return((e,t,n)=>h({},Sr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Wn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})}}))(t,e,n);case xn.StackedHorizontalBarChart:return((e,t,n)=>h({},br(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Qn(e.series.map(e=>e.series)),title:{text:Wn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:h({},gr(e,t))}}}))(t,e,n);case xn.PercentVerticalBarChart:return((e,t,n)=>h({},Sr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})}}))(t,e,n);case xn.PercentHorizontalBarChart:return((e,t,n)=>h({},br(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:h({},gr(e,t))}}}))(t,e,n);case xn.PieChart:return Cr(t,e,n);case xn.PyramidChart:return Nr(t,e,n);case xn.ScatterPlot:return((e,t,n)=>{var r;const s=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return h({},pr(e,t,n),{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:h({},fr,{softMin:s,softMax:s,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,s;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(s=e.series[0].series[n].value)?s: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:Tr(e.series,t),formatter:_n(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e,n);default:throw new Error("Unsupported chart type")}},Mr=(e,t,n,r)=>{if(0===e.length)return{};let s=e,i={};if(r){const{parsedValues:e,updatedArray:t}=Er(s,r);if(s=t,i=h({},i,e),0===s.length)return i}if(n){const{parsedValues:e,updatedArray:t}=$r(s,n);if(s=t,i=h({},i,e),0===s.length)return i}return s.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(i[e]=t[n].type===Sn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),i},Er=(e,t)=>{const n=Object.keys(t),r={},s=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:s}},$r=(e,t)=>{const n=Object.keys(t),r={},s=e.map(e=>{const s=n.findIndex(t=>t===e);return s>-1?(r[e]=t[n[s]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:s}},Pr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},jr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Vr(e,t,n){return Or(Ir(e,e.series[t].series,n),t)}function Ir(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),s=r.map(t=>e.columnNameGroups[t]),i=e.series.map(e=>function(e,t){return h({},e,{series:t.map(t=>e.series[t])})}(e,r));return h({},e,{columnNameGroups:s,series:i})}function Or(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),h({},e,{series:n})}function Dr(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 Lr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class zr{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===Sn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===Sn.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],s=this.selectedViewMeta[n].code,i=null==(t=e.find(e=>e.code===s))?void 0:t.values,a=this.selectedViewMeta.find(e=>e.code===s);this.coordinates[r]=a.values.map(e=>i.indexOf(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=>h({},e,{values:Dr(e,t)})),r=Lr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),s=Lr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),i=Lr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),a=i.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!s.some(t=>t.code==e.code)),o=i.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!s.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),c=[...a,...r,...s,...o,...l];return this.rowLength=Pn(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+a.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 Rr(e,t){var n,r,s;const i=function(e,t,n){const{metaData:r,selectableVariableCodes:s}=e,i=function(e,t){return e.filter(e=>t.includes(e.code))}(r,s),a=function(e){const t=e.find(e=>e.type===Sn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new zr(e,t).getViewSeries(),r=Lr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Dr(e,t));return{columnNameGroups:Pn(r).map(e=>e.map(e=>e.name)),series:n}}(e,t),l=qr(e.selectableVariableCodes.filter(t=>n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)),r).concat(qr(e.rowVariableCodes,e.metaData)),c=function(e,t){let n;n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>jn(e,t,n)):e.values.map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>jn(e,t,n));const r=n.filter(e=>void 0!==e);if(0===r.length)return;if(1===r.length)return r[0];const s=r.map(e=>new Date(e)).reduce((e,t,n,r)=>t>r[e]?n:e,0);return r[s]}(a,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Fr(i,t,n),units:_r(a,t),sources:Hr(a,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:An.empty}),lastUpdated:c,columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:l,colVarNames:qr(e.columnVariableCodes,e.metaData),selectableVarNames:qr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Wr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),a=(null==(n=i.visualizationSettings)?void 0:n.visualizationType)===xn.PercentHorizontalBarChart||(null==(r=i.visualizationSettings)?void 0:r.visualizationType)===xn.PercentVerticalBarChart;switch(null==(s=e.visualizationSettings)?void 0:s.sorting){case null:case void 0:case"no_sorting":return i;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>h({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return h({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(i);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 Ir(e,n,t)}(i,jr);case"ascending":return Vr(i,0,Pr);case"descending":return Vr(i,0,jr);default:return a?(o=i,l=Gr(i),c=Br(e),Or(Ir(o,l.series[c].series,jr),c)):Vr(i,Br(e),jr)}var o,l,c}function Gr(e){const t=e.series.map(t=>h({},t,{series:t.series.map((t,n)=>{var r;const s=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),i=s&&0!==s?Math.round(100*(null!=(r=t.value)?r:0)/s*10)/10:null,a={value:i,precision:1,preliminary:t.preliminary};return null===i&&(a.missingCode=t.missingCode),a})}));return h({},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 qr(e,t){return e.reduce((e,n)=>{var r;const s=null==(r=t.find(e=>e.code===n))?void 0:r.name;return s&&e.push(s),e},[])}function Br(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 Fr(e,t,n){const r=[];return e.forEach(e=>{var s,i;1==n[e.code]&&r.push(null!=(s=null==(i=e.values.find(n=>n.code===t[e.code][0]))?void 0:i.name)?s:{})}),r}function _r(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Hr(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter((e,t,n)=>jn(e,t,n)):e.values.map(e=>n(e.contentComponent)).filter((e,t,n)=>jn(e,t,n))}function Wr(e,t){var n;if(e.length>1||0===e.length)return Kn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case Sn.Time:return Kn.Time;case Sn.Ordinal:return Kn.Ordinal;default:return Kn.Nominal}}const Ur=(e,t)=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!1,chartOptions:{chart:{style:{fontFamily:t||'"Barlow Semi Condensed", Verdana, sans-serif'}}}},lang:{accessibility:{thousandsSep:An.thousandsSepAccessibility[e],credits:An.credits[e],caption:An.credits[e],chartTypes:{barMultiple:An.barMultiple[e],barSingle:An.barSingle[e],columnMultiple:An.columnMultiple[e],columnSingle:An.columnSingle[e],lineSingle:An.lineSingle[e],lineMultiple:An.lineMultiple[e],pieSingle:An.pieSingle[e],scatterSingle:An.scatterSingle[e],scatterMultiple:An.scatterMultiple[e],defaultSingle:An.defaultSingle[e],defaultMultiple:An.defaultMultiple[e]},defaultChartTitle:An.defaultChartTitle[e],exporting:{chartMenuLabel:An.chartMenuLabel[e],menuButtonLabel:An.menuButtonLabel[e]},legend:{legendItem:An.legendItem[e],legendLabel:An.legendLabel[e],legendLabelNoTitle:An.legendLabelNoTitle[e]},axis:{rangeCategories:An.rangeCategories[e],rangeFromTo:An.rangeFromTo[e],timeRangeDays:An.timeRangeDays[e],timeRangeHours:An.timeRangeHours[e],timeRangeMinutes:An.timeRangeMinutes[e],timeRangeSeconds:An.timeRangeSeconds[e],xAxisDescriptionPlural:An.xAxisDescriptionPlural[e],xAxisDescriptionSingular:An.xAxisDescriptionSingular[e],yAxisDescriptionPlural:An.yAxisDescriptionPlural[e],yAxisDescriptionSingular:An.yAxisDescriptionSingular[e]},series:{summary:{bar:An.seriesSummaryBar[e],barCombination:An.seriesSummaryBarCombination[e],column:An.seriesSummaryColumn[e],columnCombination:An.seriesSummaryColumnCombination[e],default:An.seriesSummaryDefault[e],defaultCombination:An.seriesSummaryDefaultCombination[e],line:An.seriesSummaryLine[e],lineCombination:An.seriesSummaryLineCombination[e],pie:An.seriesSummaryPie[e],pieCombination:An.seriesSummaryPieCombination[e],scatter:An.seriesSummaryScatter[e],scatterCombination:An.seriesSummaryScatterCombination[e]},xAxisDescription:An.xAxisDescription[e],yAxisDescription:An.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:An.endOfChartMarker[e]},chartContainerLabel:An.chartContainerLabel[e]},thousandsSep:An.thousandsSep[e],decimalPoint:An.decimalPoint[e],contextButtonTitle:An.contextButtonTitle[e],downloadCSV:An.downloadCSV[e],downloadPNG:An.downloadPNG[e],downloadSVG:An.downloadSVG[e],months:Mn.months[e],shortMonths:Mn.shortMonths[e],weekdays:Mn.weekdays[e],loading:An.loading[e],numericSymbols:null},colors:or,palette:{colorScheme:"light"},chart:{style:{fontFamily:null!=t?t:'"Barlow Semi Condensed", Verdana, sans-serif'},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"},caption:{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:zn(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}}}),Yr=(e,t,n,r=null,s=void 0)=>{(()=>{if(void 0!==globalThis.window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}})();const i=Rn(n);o.setOptions(Ur(i,null==s?void 0:s.fontFamily));const a=Rr(t,Mr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),l=Ar(i,a,s);return o.chart(e,l)};function Zr(e,t,n,r,s){const i=document.getElementById(r);if(!i)throw new Error("No container with matching id found in the DOM tree");try{const a=function(e,t){var n,r;const s=null!=(n=e.columnNameGroups[0].length)?n:0,i=null!=(r=e.series[0].rowNameGroup.length)?r:0,a=Object.assign(document.createElement("table"),{tabIndex:0});if(s>0){const n=function(e,t){const n=Jr(e),r=[];for(let s=0;s<e[0].length;s++){const i=document.createElement("tr");for(let r=0;r<e.length;r+=n[s]){const a=document.createElement("th");a.setAttribute("colSpan",n[s].toString()),a.setAttribute("scope","col"),a.textContent=e[r][s][t],i.append(a)}r.push(i)}return r}(e.columnNameGroups,t);if(i>0){const e=document.createElement("td");e.setAttribute("colSpan",i.toString()),e.setAttribute("rowSpan",s.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),a.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=Xr(e);for(let s=0;s<e.length;s++){const i=document.createElement("tr");for(let n=0;n<e[s].rowNameGroup.length;n++)if(s%r[n]===0){const a=document.createElement("th");a.setAttribute("rowSpan",r[n].toString()),a.setAttribute("scope","row"),a.textContent=e[s].rowNameGroup[n][t],i.append(a)}for(const n of e[s].series){const e=document.createElement("td");e.textContent=null===n.value?On(n.missingCode,t,!0):In(n.value,n.precision,t,!0),i.append(e)}n.push(i)}return n}(e.series,t)),a.append(n)}return a}(e,t);if(n.showTitles){const n=`${r}-title`,s=document.createElement("p");if(s.id=n,s.textContent=e.header[t],s.className="tableChart-title",e.subheaderValues.length>0){const n=e.subheaderValues.map(e=>e[t]).join(" | ");s.append(document.createElement("br"),n)}a.setAttribute("aria-labelledby",n),i.append(s)}i.append(a);let o=!0;const l=e=>{const t=document.createElement("span");o||t.append(document.createElement("br")),t.append(e),i.append(t),o=!1};if(n.showUnits){const n=Wn(e.units,t);l(`${An.unit[t]}: ${n}`)}if(s&&l(s),n.showLastUpdated&&e.lastUpdated){const n=Zn(e.lastUpdated,t);n&&l(n)}n.showSources&&l(`${An.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`)}catch(e){console.error(e),i.replaceChildren();const n=document.createElement("h1");n.append(An.graphCreationError[t]),i.append(n)}}const Kr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),Xr=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&&Kr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Jr=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&&Kr(e[r][n],e[r+1][n]);r++)t[n]++;return t},Qr=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")}`},es=(e,t)=>{var n,r,s,i,a,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===xn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===xn.PercentVerticalBarChart)&&(e=Gr(e));const u=null!=(s=null==(i=e.columnNameGroups[0])?void 0:i.length)?s:0,d=null!=(a=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?a:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d,h=","==An.decimalPoint[t]?";":",",p="\n";let f=ns([`"${e.header[t]}"`],0,m,h,p);e.subheaderValues.length>0&&(f+=ns([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,m,h,p));for(let n=0;n<u;n++)f+=ns(e.columnNameGroups.map(e=>`"${e[n][t]}"`),d,m,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?On(e.missingCode,t):In(e.value,e.precision,t))),f+=ns(n,0,m,h,p)}),f+=ns([`"${An.unit[t]}: ${Wn(e.units,t)}"`],0,m,h,p),f+=ns([`"${An.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,m,h),f},ts=(e,t)=>({onClick:()=>{const n=es(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),s=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",s),i.setAttribute("download",Qr(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:An.downloadCSV[t]});function ns(e,t,n,r,s=""){let i="";for(let s=0;s<n;s++)s>=t&&s<t+e.length&&(i+=e[s-t]),s<n-1&&(i+=r);return i+s}const rs=['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 ss(e){const t=Math.floor(e/26),n=String.fromCodePoint(97+e%26).toUpperCase();return 0===t?n:ss(t-1)+n}const is=`<?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 as(e,t,n){const r=new Array(n);for(let s=0;s<n;s++)r[s]=s>=t&&s<t+e.length?e[s-t]:null;return r}const os=(e,t)=>({onClick:async()=>{const n=await ls(e,t),r=URL.createObjectURL(n),s=document.createElement("a");s.setAttribute("href",r),s.setAttribute("download",Qr(e.tableReferenceName)+".xlsx"),document.body.appendChild(s),s.click()},text:An.downloadXLSX[t]});async function ls(e,t){const n=((e,t)=>{var n,r,s,i,a,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===xn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===xn.PercentVerticalBarChart)&&(e=Gr(e));const u=null!=(s=null==(i=e.columnNameGroups[0])?void 0:i.length)?s:0,d=null!=(a=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?a:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d;return[as([e.header[t]],0,m),...e.subheaderValues.length>0?[as([e.subheaderValues.map(e=>e[t]).join(" | ")],0,m)]:[],...Array.from({length:u},(n,r)=>as(e.columnNameGroups.map(e=>e[r][t]),d,m)),...e.series.map(e=>{let n=[];return e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?On(e.missingCode,t):Number(e.value.toFixed(e.precision)))),as(n,0,m)}),as([`${An.unit[t]}: ${Wn(e.units,t)}`],0,m),as([`${An.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,m)]})(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="${ss(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"};return e.replaceAll(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${ss(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 ${rs.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),s={xl:{"worksheets/sheet1.xml":u(r),"workbook.xml":u(is),"_rels/workbook.xml.rels":u('<?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":u('<?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":u('<?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)=>{d(s,(n,r)=>{if(n)return t(n);const s=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(s)})})}const cs=["Bars","Times","Download","ExternalLink","Copy"],us=({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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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 ds,ms,hs,ps,fs,gs,vs,ys=e=>e;const bs=yn(n((t,n)=>e.createElement("button",h({},t,{ref:n,type:"button"}))))(ds||(ds=ys`
1
+ import e,{createElement as t,forwardRef as n,useId as r,useEffect as s,useMemo as i,Component as a}from"react";import*as o from"highcharts";import l from"highcharts";import c from"decimal.js";import{strToU8 as u,zip as d}from"fflate";import{HighchartsReact as m}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function h(){return h=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},h.apply(null,arguments)}function p(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|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)-.*))$/,g=/* #__PURE__ */p(function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),v="-ms-",y="-moz-",b="-webkit-",w="comm",x="rule",S="decl",k="@keyframes",C=Math.abs,N=String.fromCharCode,T=Object.assign;function A(e){return e.trim()}function M(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function $(e,t,n){return e.indexOf(t,n)}function P(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function V(e){return e.length}function I(e){return e.length}function O(e,t){return t.push(e),e}function D(e,t){return e.filter(function(e){return!M(e,t)})}var L=1,z=1,R=0,G=0,q=0,B="";function F(e,t,n,r,s,i,a,o){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:L,column:z,length:a,return:"",siblings:o}}function _(e,t){return T(F("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function H(e){for(;e.root;)e=_(e.root,{children:[e]});O(e,e.siblings)}function W(){return q=G>0?P(B,--G):0,z--,10===q&&(z=1,L--),q}function U(){return q=G<R?P(B,G++):0,z++,10===q&&(z=1,L++),q}function Y(){return P(B,G)}function Z(){return G}function K(e,t){return j(B,e,t)}function X(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 J(e){return A(K(G-1,te(91===e?e+2:40===e?e+1:e)))}function Q(e){for(;(q=Y())&&q<33;)U();return X(e)>2||X(q)>3?"":" "}function ee(e,t){for(;--t&&U()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return K(e,Z()+(t<6&&32==Y()&&32==U()))}function te(e){for(;U();)switch(q){case e:return G;case 34:case 39:34!==e&&39!==e&&te(q);break;case 40:41===e&&te(e);break;case 92:U()}return G}function ne(e,t){for(;U()&&e+q!==57&&(e+q!==84||47!==Y()););return"/*"+K(t,G-1)+"*"+N(47===e?e:U())}function re(e){for(;!X(Y());)U();return K(e,G)}function se(e){return function(e){return B="",e}(ie("",null,null,null,[""],e=function(e){return L=z=1,R=V(B=e),G=0,[]}(e),0,[0],e))}function ie(e,t,n,r,s,i,a,o,l){for(var c=0,u=0,d=a,m=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=s,x=i,S=r,k=b;g;)switch(p=y,y=U()){case 40:if(108!=p&&58==P(k,d-1)){-1!=$(k+=E(J(y),"&","&\f"),"&\f",C(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=J(y);break;case 9:case 10:case 13:case 32:k+=Q(p);break;case 92:k+=ee(Z()-1,7);continue;case 47:switch(Y()){case 42:case 47:O(oe(ne(U(),Z()),t,n,l),l),5!=X(p||1)&&5!=X(Y()||1)||!V(k)||" "===j(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*f:o[c++]=V(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=E(k,/\f/g,"")),h>0&&(V(k)-d||0===f&&47===p)&&O(h>32?le(k+";",r,n,d-1,l):le(E(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(O(S=ae(k,t,n,c,u,s,o,b,w=[],x=[],d,i),i),123===y)if(0===u)ie(k,t,S,S,w,i,d,o,x);else{switch(m){case 99:if(110===P(k,3))break;case 108:if(97===P(k,2))break;default:u=0;case 100:case 109:case 115:}u?ie(e,S,S,r&&O(ae(e,S,S,0,0,s,o,b,s,w=[],d,x),x),s,x,d,o,r?w:x):ie(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",d=a;break;case 58:d=1+V(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==W())continue;switch(k+=N(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(V(k)-1)*v,v=1;break;case 64:45===Y()&&(k+=J(U())),m=Y(),u=d=V(b=k+=re(Z())),y++;break;case 45:45===p&&2==V(k)&&(f=0)}}return i}function ae(e,t,n,r,s,i,a,o,l,c,u,d){for(var m=s-1,h=0===s?i:[""],p=I(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=j(e,m+1,m=C(g=a[f])),w=e;y<p;++y)(w=A(g>0?h[y]+" "+b:E(b,/&\f/g,h[y])))&&(l[v++]=w);return F(e,t,n,0===s?x:o,l,c,u,d)}function oe(e,t,n,r){return F(e,t,n,w,N(q),j(e,2,-2),0,r)}function le(e,t,n,r,s){return F(e,t,n,S,j(e,0,r),j(e,r+1,-1),r,s)}function ce(e,t,n){switch(function(e,t){return 45^P(e,0)?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}(e,t)){case 5103:return b+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return b+e+e;case 4855:return b+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+y+e+v+e+e;case 5936:switch(P(e,t+11)){case 114:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return b+e+v+e+e;case 6165:return b+e+v+"flex-"+e+e;case 5187:return b+e+E(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+v+"flex-$1$2")+e;case 5443:return b+e+v+"flex-item-"+E(e,/flex-|-self/g,"")+(M(e,/flex-|baseline/)?"":v+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return b+e+v+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return b+e+v+E(e,"shrink","negative")+e;case 5292:return b+e+v+E(e,"basis","preferred-size")+e;case 6060:return b+"box-"+E(e,"-grow","")+b+e+v+E(e,"grow","positive")+e;case 4554:return b+E(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+v+"flex-pack:$3"),/space-between/,"justify")+b+e+e;case 4200:if(!M(e,/flex-|baseline/))return v+"grid-column-align"+j(e,t)+e;break;case 2592:case 3360:return v+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,M(e.props,/grid-\w+-end/)})?~$(e+(n=n[t].value),"span",0)?e:v+E(e,"-start","")+e+v+"grid-row-span:"+(~$(n,"span",0)?M(n,/\d+/):+M(n,/\d+/)-+M(e,/\d+/))+";":v+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return M(e.props,/grid-\w+-start/)})?e:v+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,b+"$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(V(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+y+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$(e,"stretch",0)?ce(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,s,i,a,o){return v+n+":"+r+o+(s?v+n+"-span:"+(i?a:+a-+r)+o:"")+e});case 4949:if(121===P(e,t+6))return E(e,":",":"+b)+e;break;case 6444:switch(P(e,45===P(e,14)?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+b+(45===P(e,14)?"inline-":"")+"box$3$1"+b+"$2$3$1"+v+"$2box$3")+e;case 100:return E(e,":",":"+v)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function ue(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function de(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case S:return e.return=e.return||e.value;case w:return"";case k:return e.return=e.value+"{"+ue(e.children,r)+"}";case x:if(!V(e.value=e.props.join(",")))return""}return V(n=ue(e.children,r))?e.return=e.value+"{"+n+"}":""}function me(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case S:return void(e.return=ce(e.value,e.length,n));case k:return ue([_(e,{value:E(e.value,"@","@"+b)})],r);case x:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(M(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":H(_(e,{props:[E(t,/:(read-\w+)/,":-moz-$1")]})),H(_(e,{props:[t]})),T(e,{props:D(n,r)});break;case"::placeholder":H(_(e,{props:[E(t,/:(plac\w+)/,":"+b+"input-$1")]})),H(_(e,{props:[E(t,/:(plac\w+)/,":-moz-$1")]})),H(_(e,{props:[E(t,/:(plac\w+)/,v+"input-$1")]})),H(_(e,{props:[t]})),T(e,{props:D(n,r)})}return""})}}const he="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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n",18:"Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledComponent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n\n",19:"styled-components loaded its browser build in a React Server Components environment. This usually happens when a route renders on the server with the edge runtime, or when a server bundle resolves the package's browser build. Remove `export const runtime = 'edge'`, or set it to `'nodejs'`, on every route that renders styled-components on the server, and make sure server code resolves the package's server build.\n\n",20:"styled-components tried to create a `<style>` element on the server, where no `document` exists. This usually happens when a route renders on the server with the edge runtime, or when a server bundle resolves the package's browser build. Remove `export const runtime = 'edge'`, or set it to `'nodejs'`, on every route that renders styled-components on the server, and make sure server code resolves the package's server build.\n"}:{};function pe(e,...t){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#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(he[e],...t).trim())}var fe,ge;const ve="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ye="active",be="data-styled-version",we="6.6.0",xe="/*!sc*/\n",Se="undefined"!=typeof window&&"undefined"!=typeof document;if(!e.createContext)throw pe(19);function ke(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Ce=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(ge=null!==(fe=ke("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==fe?fe:ke("SC_DISABLE_SPEEDY"))&&void 0!==ge?ge:"undefined"!=typeof process&&void 0!==process.env&&"production"!==process.env.NODE_ENV),Ne={},Te=1<<30;let Ae=new Map,Me=new Map,Ee=1;const $e=e=>{if(Ae.has(e))return Ae.get(e);for(;Me.has(Ee);)Ee++;const t=Ee++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>Te))throw pe(16,`${t}`);return Ae.set(e,t),Me.set(t,e),t},Pe=e=>Me.get(e),je=(e,t)=>{Ee=t+1,Ae.set(e,t),Me.set(t,e)},Ve=/invalid hook call/i,Ie=new Set,Oe=(t,n)=>{if("production"!==process.env.NODE_ENV){const r=`The component ${t}${n?` with the id of "${n}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,s=console.error;try{let t=!0;console.error=(e,...n)=>{Ve.test(e)?(t=!1,Ie.delete(r)):s(e,...n)},"function"==typeof e.useState&&e.useState(null),t&&!Ie.has(r)&&(console.warn(r),Ie.add(r))}catch(t){Ve.test(t.message)&&Ie.delete(r)}finally{console.error=s}}},De=Object.freeze([]),Le=Object.freeze({});function ze(e,t,n=Le){return e.theme!==n.theme&&e.theme||t||n.theme}const Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ge=/(^-|-$)/g;function qe(e){return e.replace(Re,"-").replace(Ge,"")}const Be=/(a)(d)/gi,Fe=e=>String.fromCharCode(e+(e>25?39:97));function _e(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Fe(t%52)+n;return(Fe(t%52)+n).replace(Be,"$1-$2")}const He=5381,We=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},Ue=e=>We(He,e);function Ye(e){return _e(Ue(e)>>>0)}function Ze(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ke(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function Xe(e){return Ke(e)?`styled.${e}`:`Styled(${Ze(e)})`}const Je=Symbol.for("react.memo"),Qe=Symbol.for("react.forward_ref"),et={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},tt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={[Qe]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Je]:nt};function st(e){return("type"in(t=e)&&t.type.$$typeof)===Je?nt:"$$typeof"in e?rt[e.$$typeof]:et;var t}const it=Object.defineProperty,at=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,lt=Object.getOwnPropertyDescriptor,ct=Object.getPrototypeOf,ut=Object.prototype;function dt(e,t,n){if("string"!=typeof t){const r=ct(t);r&&r!==ut&&dt(e,r,n);const s=at(t).concat(ot(t)),i=st(e),a=st(t);for(let r=0;r<s.length;++r){const o=s[r];if(!(o in tt||n&&n[o]||a&&o in a||i&&o in i)){const n=lt(t,o);try{it(e,o,n)}catch(e){}}}}return e}function mt(e){return"function"==typeof e}const ht=Symbol.for("react.forward_ref");function pt(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===ht&&"styledComponentId"in e}function ft(e,t){return e&&t?e+" "+t:e||t||""}function gt(e,t){return e.join(t||"")}function vt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yt(e,t,n=!1){if(!n&&!vt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=yt(e[n],t[n]);else if(vt(t))for(const n in t)e[n]=yt(e[n],t[n]);return e}function bt(e,t){Object.defineProperty(e,"toString",{value:t})}const wt=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw pe(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let s=0,i=t.length;s<i;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n;for(let e=r;e<s;e++)t+=this.tag.getRule(e)+xe;return t}},xt=`style[${ve}][${be}="${we}"]`,St=new RegExp(`^${ve}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);let kt=!1;const Ct=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Nt=e=>{if(!e)return document;if(Ct(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Ct(t))return t}return document},Tt=(e,t,n)=>{const r=n.split(",");let s;for(let n=0,i=r.length;n<i;n++)(s=r[n])&&e.registerName(t,s)},At=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(xe),s=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(St);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(je(n,t),Tt(e,n,i[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Mt=e=>{const t=Nt(e.options.target);(e=>{if("production"!==process.env.NODE_ENV){if(kt)return;const t=e.querySelectorAll(`style[${ve}]`);for(let e=0,n=t.length;e<n;e++){if(t[e].getAttribute(ve)===ye)continue;const n=t[e].getAttribute(be);if(null!==n&&n!==we)return kt=!0,void console.warn(`Found server-rendered styles from styled-components ${n}, but this copy is ${we}. If both come from the same app, class names will not match and hydration will fail: make sure the server and the browser load the same version (run \`npm ls styled-components\` to find duplicates). Pages that intentionally host separate apps on different versions can ignore this.`)}}})(t);const n=t.querySelectorAll(xt);for(let t=0,r=n.length;t<r;t++){const r=n[t];r&&r.getAttribute(ve)!==ye&&(At(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let Et=!1;const $t=(e,t)=>{if("undefined"==typeof document)throw pe(20);const n=document.head,r=e||n,s=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${ve}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;s.setAttribute(ve,ye),s.setAttribute(be,we);const o=t||function(){if(!1!==Et)return Et;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Et=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Et=t.getAttribute("content")||void 0}return Et="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return o&&s.setAttribute("nonce",o),r.insertBefore(s,a),s},Pt=class{constructor(e,t){this.element=$t(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw pe(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},jt=class{constructor(e,t){this.element=$t(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Vt=Se;const It={isServer:!Se,useCSSOMInjection:!Ce};class Ot{static registerId(e){return $e(e)}constructor(e=Le,t={},n){this.options=Object.assign(Object.assign({},It),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Se&&Vt&&(Vt=!1,Mt(this)),bt(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let s=0;s<n;s++){const n=Pe(s);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(s);if(0===a.length)continue;const o=ve+".g"+s+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+o+'{content:"'+l+'"}'+xe}return r})(this))}rehydrate(){!this.server&&Se&&Mt(this)}reconstructWithOptions(e,t=!0){const n=new Ot(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Se&&e.target!==this.options.target&&Nt(this.options.target)!==Nt(e.target)&&Mt(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Pt(t,n):new jt(t,n))(this.options),new wt(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){$e(e),e.startsWith("sc-keyframes-")&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules($e(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup($e(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Dt=new WeakSet,Lt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function zt(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Lt||e.startsWith("--")?String(t).trim():t+"px"}const Rt=47;function Gt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const qt=Symbol.for("sc-keyframes");function Bt(e){return"object"==typeof e&&null!==e&&qt in e}function Ft(e){return mt(e)&&!(e.prototype&&e.prototype.isReactComponent)}const _t=e=>null==e||!1===e||""===e,Ht=Symbol.for("react.client.reference");function Wt(e){return e.$$typeof===Ht}function Ut(e){const t=e.$$id,n=(t&&t.includes("#")?t.split("#").pop():t)||e.name||"unknown";console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function Yt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!_t(r)&&(Array.isArray(r)&&Dt.has(r)||mt(r)?t.push(Gt(n)+":",r,";"):vt(r)?(t.push(n+" {"),Yt(r,t),t.push("}")):t.push(Gt(n)+": "+zt(n,r)+";"))}}function Zt(e,t,n,r,s=[]){if(_t(e))return s;const i=typeof e;if("string"===i)return s.push(e),s;if("function"===i){if(Wt(e))return"production"!==process.env.NODE_ENV&&Ut(e),s;if(Ft(e)&&t){const i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||Bt(i)||vt(i)||null===i||console.error(`${Ze(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),Zt(i,t,n,r,s)}return s.push(e),s}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Zt(e[i],t,n,r,s);return s}return pt(e)?(s.push(`.${e.styledComponentId}`),s):Bt(e)?(n?(e.inject(n,r),s.push(e.getName(r))):s.push(e),s):Wt(e)?("production"!==process.env.NODE_ENV&&Ut(e),s):vt(e)?e.toString!==Object.prototype.toString?(s.push(e.toString()),s):(Yt(e,s),s):(s.push(e.toString()),s)}const Kt=Ue(we);class Xt{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=We(Kt,t),this.baseStyle=n,Ot.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)s+=i;else if(i)if(Ft(i)){const r=i(e);"string"==typeof r?s+=r:null!=r&&!1!==r&&("production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||Bt(r)||vt(r)||console.error(`${Ze(i)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),s+=gt(Zt(r,e,t,n)))}else s+=gt(Zt(i,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let i=this.dynamicNameCache.get(e);if(!i){if(i=_e(We(We(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(s,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=ft(r,i)}}return r}}const Jt=/&/g;function Qt(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function en(e){const t=e.length;let n="",r=0,s=0,i=0,a=!1,o=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==Rt||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Rt&&(a=!1,l++);else if(34!==c&&39!==c||Qt(e,l)){if(0===i)if(123===c)s++;else if(125===c){if(s--,s<0){o=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,s=0,l=n-1,r=n;continue}0===s&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===s&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return o||0!==s||0!==i?(r<t&&0===s&&0===i&&(n+=e.substring(r)),n):e}function tn(e,t){const n=t+" ",r=","+n;for(let s=0;s<e.length;s++){const i=e[s];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&tn(i.children,t)}return e}const nn=new Ot,rn=function({options:e=Le,plugins:t=De}=Le){let n,r,s;const i=(e,t,s)=>s.startsWith(r)&&s.endsWith(r)&&s.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===x&&e.value.includes("&")&&(s||(s=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(Jt,r).replace(s,i))}),e.prefix&&a.push(me),a.push(de);let o=[];const l=function(e){var t=I(e);return function(n,r,s,i){for(var a="",o=0;o<t;o++)a+=e[o](n,r,s,i)||"";return a}}(a.concat((d=e=>o.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{n=c,r=i,s=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return en(e);const r=e.length;let s="",i=0,a=0,o=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||Qt(e,a))if(0===o)if(t===Rt&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Rt);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Rt)s+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===Rt&&a+1<r&&e.charCodeAt(a+1)===Rt){for(s+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===o?o=t:o===t&&(o=0),a++}return u?(i<r&&(s+=e.substring(i)),0===c?s:en(s)):0===c?e:en(e)}(t);let d=se(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=tn(d,e.namespace)),o=[],ue(d,l),o},u=e;var d;let m=He;for(let e=0;e<t.length;e++)t[e].name||pe(15),m=We(m,t[e].name);return(null==u?void 0:u.namespace)&&(m=We(m,u.namespace)),(null==u?void 0:u.prefix)&&(m=We(m,"p")),c.hash=m!==He?m.toString():"",c}(),sn=e.createContext({shouldForwardProp:void 0,styleSheet:nn,stylis:rn,stylisPlugins:void 0});function an(){return e.useContext(sn)}const on=e.createContext(void 0),ln={};function cn(e,t){const n="string"!=typeof e?"sc":qe(e);ln[n]=(ln[n]||0)+1;const r=n+"-"+Ye(we+n+ln[n]);return t?t+"-"+r:r}let un;function dn(n,r,s){const i=pt(n),a=n,o=!Ke(n),{attrs:l=De,componentId:c=cn(r.displayName,r.parentComponentId),displayName:u=Xe(n)}=r,d=r.displayName&&r.componentId?qe(r.displayName)+"-"+r.componentId:r.componentId||c,m=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:h}=r;if(i&&a.shouldForwardProp){const e=a.shouldForwardProp;if(r.shouldForwardProp){const t=r.shouldForwardProp;h=(n,r)=>e(n,r)&&t(n,r)}else h=e}const p=new Xt(s,d,i?a.componentStyle:void 0);function f(n,r){return function(n,r,s){const{attrs:i,componentStyle:a,defaultProps:o,foldedComponentIds:l,styledComponentId:c,target:u}=n,d=e.useContext(on),m=an(),h=n.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(c);const p=ze(r,d,o)||Le,[f,v]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let s=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=mt(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=ft(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(s||(s=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=ft(r.className,t.className)),[r,s]}(i,r,p),y=a.generateAndInjectStyles(f,m.styleSheet,m.stylis);"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(y),"production"!==process.env.NODE_ENV&&n.warnTooManyClasses&&n.warnTooManyClasses(y);const b=f.as||u,w=Ke(b),x=function(e,t,n,r,s,i){const a={};for(const o in e)"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[o]?"className"===o||s||null!==i&&-1!==i.indexOf(o)||r&&!r(o,t)||(a[o]=void 0):r&&!r(o,t)||(a[o]=e[o],r||"development"!==process.env.NODE_ENV||g(o)||(un||(un=new Set)).has(o)||!Ke(t)||t.includes("-")||(un.add(o),console.warn(`styled-components: it looks like an unknown prop "${o}" 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.)`))));return a}(f,b,p,h,w,v);let S=ft(l,c);return y&&(S+=" "+y),f.className&&(S+=" "+f.className),x[w&&b.includes("-")?"class":"className"]=S,s&&(x.ref=s),t(b,x)}(v,n,r)}f.displayName=u;let v=e.forwardRef(f);return v.attrs=m,v.componentStyle=p,v.displayName=u,v.shouldForwardProp=h,v.foldedComponentIds=i?ft(a.foldedComponentIds,a.styledComponentId):"",v.styledComponentId=d,v.target=i?a.target:n,Object.defineProperty(v,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)yt(e,n,!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Oe(u,d),v.warnTooManyClasses=((e,t)=>{let n={},r=!1;return s=>{!r&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),r=!0,n={})}})(u,d)),bt(v,()=>`.${v.styledComponentId}`),o&&dt(v,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}var mn=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function hn(e,t){const n=[e[0]];for(let r=0,s=t.length;r<s;r+=1)n.push(t[r],e[r+1]);return n}const pn=e=>(Dt.add(e),e);function fn(e,...t){if(mt(e)||vt(e))return pn(Zt(hn(De,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Zt(n):pn(Zt(hn(n,t)))}function gn(e,t,n=Le){if(!t)throw pe(1,t);const r=(r,...s)=>e(t,n,fn(r,...s));return r.attrs=r=>gn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>gn(e,t,Object.assign(Object.assign({},n),r)),r}const vn=e=>gn(dn,e),yn=vn;mn.forEach(e=>{yn[e]=vn(e)});class bn{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(mt(n)&&!pt(n))return!1}return!0}(e),Ot.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(s,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const s=gt(Zt(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(s,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}"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://styled-components.com/docs/basics#react-native");const wn=`__sc-${ve}__`;var xn,Sn,kn;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wn]||(window[wn]=0),1===window[wn]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[wn]+=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"}(xn||(xn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(Sn||(Sn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(kn||(kn={}));const Cn={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"},lastUpdated:{fi:"Päivitetty",sv:"Uppdaterad",en:"Updated"}},Nn={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},Tn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Cn,this.ArrayTranslations=Nn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=h({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=h({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},An=Tn.Translations,Mn=Tn.ArrayTranslations,En=Tn.GetAllLanguages;function $n(e){Tn.AddTranslations(e)}const Pn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function jn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const Vn=["",".","..","...","....",".....","......","-"];function In(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 On(e,t,n=!1){if(e)return n?An.dataMissing[t]:Vn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Dn(e,t){return function(){var n,r,s;const i=[];var a,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&i.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&i.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 i.push(Un(e,this,t,l)),null!=(s=this.options.custom)&&s.preliminary&&i.push(An.preliminaryData[t]),i.join("<br/>")}}function Ln(e,t){return function(n){var r,s,i;const a=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&a.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${Yn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&a.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${Yn(n.name,t)}`);const c=null!=(r=null==(s=n.options.custom)?void 0:s.precision)?r:0;return a.push(Un(e,n,t,c)),null!=(i=n.options.custom)&&i.preliminary&&a.push(An.preliminaryData[t]),a.join(", ")}}function zn(e){return function(){return this.value.toLocaleString(e)}}const Rn=e=>En().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():En()[0];function Gn(e=null){const t=e&&e>=15?25:50;return function(){return Fn(this.value,t)}}function qn(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 In(this.y,r,e,!0)}}function Bn(){return function(){return Fn(this.name,200)}}const Fn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function _n(e,t){return function(){var n,r;const s=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),i=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),a=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return s&&s.length>0&&this.series.name&&(o+=`${s}: ${this.x.toLocaleString(t)}<br />`),i&&i.length>0&&this.key&&(o+=`${i}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),a&&a.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${a}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${An.preliminaryData[t]}`),o}}function Hn(e,t){return function(){var n,r,s;const i=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)i.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var a;e.colVarNames&&e.colVarNames.length>0&&this.name&&i.push(`${null==(a=e.colVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return i.push(Un(e,this,t,o)),null!=(s=this.options.custom)&&s.preliminary&&i.push(An.preliminaryData[t]),i.join("<br/>")}}function Wn(e,t){const n=e.map(e=>e.unit).filter(jn);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 Un(e,t,n,r){if(null==t.y)return"";const s=In(t.y,r,n,!0);return e.visualizationSettings.visualizationType===xn.PyramidChart?In(Math.abs(t.y),r,n,!0):e.visualizationSettings.visualizationType==xn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==xn.PercentVerticalBarChart?`${In(null!=(i=t.percentage)?i:0,1,n)}% (${s} ${Wn(e.units,n)})`:s;var i}function Yn(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]} ${Mn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=Mn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${An.quarter[t]}`}console.log("Unsupported time pattern")}return e}function Zn(e,t){if(e)try{const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=Intl.DateTimeFormat("en"===t?"en-GB":t).format(n);return`${An.lastUpdated[t]}: ${r}`}catch(e){return void console.error("Error formatting date:",e)}}var Kn;function Xn(e,t,n){return function(){const r=function(e,t,n,r=new c(0)){var s;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):c.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const i=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const s=function(e){if(e.equals(0))return new c(0);const t=c.pow(10,c.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 s.greaterThanOrEqualTo(r)&&t.push([(i=s,i.equals(0)?0:i.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(i):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(i)),s]),t;var i},[]).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())})(c.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(s=i.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?s:new c(NaN):i[0][1]}(e,t,(n=>{const r=c.pow(10,c.log10(c.max(e.abs(),t.abs())).floor()),s=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(s,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),s=e.greaterThanOrEqualTo(0)?new c(0):e.div(r).floor().mul(r),i=t.lessThanOrEqualTo(0)?new c(0):t.div(r).ceil().mul(r);return Array.from({length:i.minus(s).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(s).toNumber())}}function Jn(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?Xn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}function Qn(e){let t=null,n=null,r=0;return e[0].forEach((s,i)=>{const a=e.reduce((e,t)=>{var n;return e+(null!=(n=t[i].value)?n:0)},0);a&&(!t||a<t)&&(t=a),a&&(!n||a>n)&&(n=a),s.precision>r&&(r=s.precision)}),t&&n?Xn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Kn||(Kn={}));const er=(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 tr(e,t){if(t){const n=new Date(t);switch(e){case kn.Irregular:case kn.Week:return;case kn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case kn.Quarter:case kn.HalfYear:return;case kn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function nr(e,t){if(e.seriesType!==Kn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!Number.isNaN(Number.parseFloat(e)));return e.seriesType===Kn.Ordinal&&r?er(e,t):{ordinal:e.seriesType==Kn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case kn.Week:return rr(e,t);case kn.Month:return sr();case kn.Quarter:return ir(e,t);case kn.HalfYear:return ar(e,t);case kn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const rr=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),sr=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return l.dateFormat("%YM%m",Number(this.value))}}}),ir=(e,t)=>{var n,r,s;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)),s=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,s),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},ar=(e,t)=>{var n,r,s;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)),s=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,s),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},or=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],lr=["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 cr(e){return{color:{pattern:{backgroundColor:or[e%or.length],path:{stroke:"white",d:lr[e%lr.length],strokeWidth:2},width:10,height:10}}}}const ur=(e,t)=>e.series.map((n,r)=>h({},hr(n,e,t),{index:r,type:"line"})),dr=(e,t,n=!1,r=!1)=>e.series.map((s,i)=>h({},hr(s,e,t),r&&cr(i),{colorIndex:i,index:n?e.series.length-1-i:i,type:"bar"})),mr=(e,t,n=!1,r=!1)=>e.series.map((s,i)=>h({},hr(s,e,t),r&&cr(i),{colorIndex:i,index:n?e.series.length-1-i:i,type:"column"}));function hr(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 pr=(e,t,n)=>{var r;const s=null==(r=null==n?void 0:n.showTitles)||r,i=An.source[t];let a=`${i}: ${e.sources.map(e=>e[t]).join(", ")}`;const o=(null==n?void 0:n.showLastUpdated)&&e.lastUpdated;if(o){const n=Zn(e.lastUpdated,t);n&&(a=`${n}<br>${i}: ${e.sources.map(e=>e[t]).join(", ")}`)}return{chart:{spacingBottom:o?50:30},accessibility:{point:{descriptionFormatter:Ln(e,t)}},title:{text:s?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{enabled:!1},caption:{text:a},tooltip:{formatter:Dn(e,t)},yAxis:[fr],lang:{accessibility:{chartContainerLabel:e.header[t]}}}},fr={plotLines:[{value:0,color:"#000",width:1}]},gr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:qn(t)}),vr=(e,t)=>h({},fr,{tickPositioner:Jn(e.series.map(e=>e.series)),title:{text:Wn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),yr=(e,t,n)=>h({},pr(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Gn(e.columnNameGroups.length),style:{width:200}}}}),br=(e,t,n)=>h({},yr(e,t,n),{series:dr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},kr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),wr=(e,t,n)=>h({},pr(e,t,n),{chart:{type:"column"},xAxis:nr(e,t)}),xr=(e,t,n)=>h({},wr(e,t,n),{series:mr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Wn(e.units,t)}}}),Sr=(e,t,n)=>h({},wr(e,t,n),{series:mr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},kr,{enabled:!0,layout:"vertical"})}),kr={itemHiddenStyle:{color:"black"}},Cr=(e,t,n)=>{var r,s;return h({},pr(e,t,n),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(s=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=s?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Fn(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,s)=>h({y:r.value,name:e.columnNameGroups[s].map(e=>e[t]).join(", "),unit:Wn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&cr(s),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},Nr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),s=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return h({},pr(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:h({},fr,{min:-Math.abs(s),max:Math.abs(s),title:{text:Wn(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:h({},kr,{enabled:!0,margin:30}),series:e.series.map((r,s)=>h({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&cr(s),{data:r.series.map((n,r)=>({y:0===s&&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:h({},gr(e,t))}},exporting:{enabled:!1}})},Tr=(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 `,Ar=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case xn.LineChart:return((e,t,n)=>{var r;const s=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,i=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return h({},pr(e,t,n),{chart:{type:"line"},tooltip:{formatter:Hn(e,t)},xAxis:h({},nr(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:h({},fr,{softMin:s,softMax:s,title:{text:Wn(e.units,t)}}),plotOptions:{line:{dataLabels:h({},gr(e,t)),marker:i},series:tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:h({},kr,{enabled:e.series.length>1,labelFormatter:Bn()}),series:ur(e,t),exporting:{enabled:!1}})})(t,e,n);case xn.VerticalBarChart:return((e,t,n)=>h({},xr(e,t,n),{yAxis:h({},fr,{softMin:0,softMax:0,title:{text:Wn(e.units,t)}}),plotOptions:{series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case xn.HorizontalBarChart:return((e,t,n)=>h({},yr(e,t,n),{series:dr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:h({},vr(e,t),{softMin:0,max:100}),caption:h({},yr(e,t,n).caption,{y:30}),legend:{enabled:!1},plotOptions:{series:{dataLabels:h({},gr(e,t))}}}))(t,e,n);case xn.GroupVerticalBarChart:return((e,t,n)=>h({},xr(e,t,n),{plotOptions:{series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})},legend:h({},kr,{enabled:!0,labelFormatter:Bn()})}))(t,e,n);case xn.GroupHorizontalBarChart:return((e,t,n)=>h({},yr(e,t,n),{series:dr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:h({},vr(e,t),{softMin:0,softMax:0}),legend:h({},kr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:h({},gr(e,t))}}}))(t,e,n);case xn.StackedVerticalBarChart:return((e,t,n)=>h({},Sr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Wn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})}}))(t,e,n);case xn.StackedHorizontalBarChart:return((e,t,n)=>h({},br(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Qn(e.series.map(e=>e.series)),title:{text:Wn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:h({},gr(e,t))}}}))(t,e,n);case xn.PercentVerticalBarChart:return((e,t,n)=>h({},Sr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:h({},tr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},gr(e,t))})}}))(t,e,n);case xn.PercentHorizontalBarChart:return((e,t,n)=>h({},br(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:h({},gr(e,t))}}}))(t,e,n);case xn.PieChart:return Cr(t,e,n);case xn.PyramidChart:return Nr(t,e,n);case xn.ScatterPlot:return((e,t,n)=>{var r;const s=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return h({},pr(e,t,n),{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:h({},fr,{softMin:s,softMax:s,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,s;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(s=e.series[0].series[n].value)?s: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:Tr(e.series,t),formatter:_n(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e,n);default:throw new Error("Unsupported chart type")}},Mr=(e,t,n,r)=>{if(0===e.length)return{};let s=e,i={};if(r){const{parsedValues:e,updatedArray:t}=Er(s,r);if(s=t,i=h({},i,e),0===s.length)return i}if(n){const{parsedValues:e,updatedArray:t}=$r(s,n);if(s=t,i=h({},i,e),0===s.length)return i}return s.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(i[e]=t[n].type===Sn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),i},Er=(e,t)=>{const n=Object.keys(t),r={},s=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:s}},$r=(e,t)=>{const n=Object.keys(t),r={},s=e.map(e=>{const s=n.findIndex(t=>t===e);return s>-1?(r[e]=t[n[s]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:s}},Pr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},jr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Vr(e,t,n){return Or(Ir(e,e.series[t].series,n),t)}function Ir(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),s=r.map(t=>e.columnNameGroups[t]),i=e.series.map(e=>function(e,t){return h({},e,{series:t.map(t=>e.series[t])})}(e,r));return h({},e,{columnNameGroups:s,series:i})}function Or(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),h({},e,{series:n})}function Dr(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 Lr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class zr{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===Sn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===Sn.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],s=this.selectedViewMeta[n].code,i=null==(t=e.find(e=>e.code===s))?void 0:t.values,a=this.selectedViewMeta.find(e=>e.code===s);this.coordinates[r]=a.values.map(e=>i.indexOf(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=>h({},e,{values:Dr(e,t)})),r=Lr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),s=Lr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),i=Lr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),a=i.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!s.some(t=>t.code==e.code)),o=i.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!s.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),c=[...a,...r,...s,...o,...l];return this.rowLength=Pn(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+a.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 Rr(e,t){var n,r,s;const i=function(e,t,n){const{metaData:r,selectableVariableCodes:s}=e,i=function(e,t){return e.filter(e=>t.includes(e.code))}(r,s),a=function(e){const t=e.find(e=>e.type===Sn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new zr(e,t).getViewSeries(),r=Lr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Dr(e,t));return{columnNameGroups:Pn(r).map(e=>e.map(e=>e.name)),series:n}}(e,t),l=qr(e.selectableVariableCodes.filter(t=>n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)),r).concat(qr(e.rowVariableCodes,e.metaData)),c=function(e,t){let n;n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>jn(e,t,n)):e.values.map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>jn(e,t,n));const r=n.filter(e=>void 0!==e);if(0===r.length)return;if(1===r.length)return r[0];const s=r.map(e=>new Date(e)).reduce((e,t,n,r)=>t>r[e]?n:e,0);return r[s]}(a,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Fr(i,t,n),units:_r(a,t),sources:Hr(a,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:An.empty}),lastUpdated:c,columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:l,colVarNames:qr(e.columnVariableCodes,e.metaData),selectableVarNames:qr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Wr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),a=(null==(n=i.visualizationSettings)?void 0:n.visualizationType)===xn.PercentHorizontalBarChart||(null==(r=i.visualizationSettings)?void 0:r.visualizationType)===xn.PercentVerticalBarChart;switch(null==(s=e.visualizationSettings)?void 0:s.sorting){case null:case void 0:case"no_sorting":return i;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>h({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return h({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(i);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 Ir(e,n,t)}(i,jr);case"ascending":return Vr(i,0,Pr);case"descending":return Vr(i,0,jr);default:return a?(o=i,l=Gr(i),c=Br(e),Or(Ir(o,l.series[c].series,jr),c)):Vr(i,Br(e),jr)}var o,l,c}function Gr(e){const t=e.series.map(t=>h({},t,{series:t.series.map((t,n)=>{var r;const s=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),i=s&&0!==s?Math.round(100*(null!=(r=t.value)?r:0)/s*10)/10:null,a={value:i,precision:1,preliminary:t.preliminary};return null===i&&(a.missingCode=t.missingCode),a})}));return h({},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 qr(e,t){return e.reduce((e,n)=>{var r;const s=null==(r=t.find(e=>e.code===n))?void 0:r.name;return s&&e.push(s),e},[])}function Br(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 Fr(e,t,n){const r=[];return e.forEach(e=>{var s,i;1==n[e.code]&&r.push(null!=(s=null==(i=e.values.find(n=>n.code===t[e.code][0]))?void 0:i.name)?s:{})}),r}function _r(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Hr(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter((e,t,n)=>jn(e,t,n)):e.values.map(e=>n(e.contentComponent)).filter((e,t,n)=>jn(e,t,n))}function Wr(e,t){var n;if(e.length>1||0===e.length)return Kn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case Sn.Time:return Kn.Time;case Sn.Ordinal:return Kn.Ordinal;default:return Kn.Nominal}}const Ur=(e,t)=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!1,chartOptions:{chart:{style:{fontFamily:t||'"Barlow Semi Condensed", Verdana, sans-serif'}}}},lang:{accessibility:{thousandsSep:An.thousandsSepAccessibility[e],credits:An.credits[e],caption:An.credits[e],chartTypes:{barMultiple:An.barMultiple[e],barSingle:An.barSingle[e],columnMultiple:An.columnMultiple[e],columnSingle:An.columnSingle[e],lineSingle:An.lineSingle[e],lineMultiple:An.lineMultiple[e],pieSingle:An.pieSingle[e],scatterSingle:An.scatterSingle[e],scatterMultiple:An.scatterMultiple[e],defaultSingle:An.defaultSingle[e],defaultMultiple:An.defaultMultiple[e]},defaultChartTitle:An.defaultChartTitle[e],exporting:{chartMenuLabel:An.chartMenuLabel[e],menuButtonLabel:An.menuButtonLabel[e]},legend:{legendItem:An.legendItem[e],legendLabel:An.legendLabel[e],legendLabelNoTitle:An.legendLabelNoTitle[e]},axis:{rangeCategories:An.rangeCategories[e],rangeFromTo:An.rangeFromTo[e],timeRangeDays:An.timeRangeDays[e],timeRangeHours:An.timeRangeHours[e],timeRangeMinutes:An.timeRangeMinutes[e],timeRangeSeconds:An.timeRangeSeconds[e],xAxisDescriptionPlural:An.xAxisDescriptionPlural[e],xAxisDescriptionSingular:An.xAxisDescriptionSingular[e],yAxisDescriptionPlural:An.yAxisDescriptionPlural[e],yAxisDescriptionSingular:An.yAxisDescriptionSingular[e]},series:{summary:{bar:An.seriesSummaryBar[e],barCombination:An.seriesSummaryBarCombination[e],column:An.seriesSummaryColumn[e],columnCombination:An.seriesSummaryColumnCombination[e],default:An.seriesSummaryDefault[e],defaultCombination:An.seriesSummaryDefaultCombination[e],line:An.seriesSummaryLine[e],lineCombination:An.seriesSummaryLineCombination[e],pie:An.seriesSummaryPie[e],pieCombination:An.seriesSummaryPieCombination[e],scatter:An.seriesSummaryScatter[e],scatterCombination:An.seriesSummaryScatterCombination[e]},xAxisDescription:An.xAxisDescription[e],yAxisDescription:An.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:An.endOfChartMarker[e]},chartContainerLabel:An.chartContainerLabel[e]},thousandsSep:An.thousandsSep[e],decimalPoint:An.decimalPoint[e],contextButtonTitle:An.contextButtonTitle[e],downloadCSV:An.downloadCSV[e],downloadPNG:An.downloadPNG[e],downloadSVG:An.downloadSVG[e],months:Mn.months[e],shortMonths:Mn.shortMonths[e],weekdays:Mn.weekdays[e],loading:An.loading[e],numericSymbols:null},colors:or,palette:{colorScheme:"light"},chart:{style:{fontFamily:null!=t?t:'"Barlow Semi Condensed", Verdana, sans-serif'},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"},caption:{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:zn(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}}}),Yr=(e,t,n,r=null,s=void 0)=>{(()=>{if(void 0!==globalThis.window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}})();const i=Rn(n);o.setOptions(Ur(i,null==s?void 0:s.fontFamily));const a=Rr(t,Mr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),l=Ar(i,a,s);return o.chart(e,l)};function Zr(e,t,n,r,s){const i=document.getElementById(r);if(!i)throw new Error("No container with matching id found in the DOM tree");try{const a=function(e,t){var n,r;const s=null!=(n=e.columnNameGroups[0].length)?n:0,i=null!=(r=e.series[0].rowNameGroup.length)?r:0,a=Object.assign(document.createElement("table"),{tabIndex:0});if(s>0){const n=function(e,t){const n=Jr(e),r=[];for(let s=0;s<e[0].length;s++){const i=document.createElement("tr");for(let r=0;r<e.length;r+=n[s]){const a=document.createElement("th");a.setAttribute("colSpan",n[s].toString()),a.setAttribute("scope","col"),a.textContent=e[r][s][t],i.append(a)}r.push(i)}return r}(e.columnNameGroups,t);if(i>0){const e=document.createElement("td");e.setAttribute("colSpan",i.toString()),e.setAttribute("rowSpan",s.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),a.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=Xr(e);for(let s=0;s<e.length;s++){const i=document.createElement("tr");for(let n=0;n<e[s].rowNameGroup.length;n++)if(s%r[n]===0){const a=document.createElement("th");a.setAttribute("rowSpan",r[n].toString()),a.setAttribute("scope","row"),a.textContent=e[s].rowNameGroup[n][t],i.append(a)}for(const n of e[s].series){const e=document.createElement("td");e.textContent=null===n.value?On(n.missingCode,t,!0):In(n.value,n.precision,t,!0),i.append(e)}n.push(i)}return n}(e.series,t)),a.append(n)}return a}(e,t);if(n.showTitles){const n=`${r}-title`,s=document.createElement("p");if(s.id=n,s.textContent=e.header[t],s.className="tableChart-title",e.subheaderValues.length>0){const n=e.subheaderValues.map(e=>e[t]).join(" | ");s.append(document.createElement("br"),n)}a.setAttribute("aria-labelledby",n),i.append(s)}i.append(a);let o=!0;const l=e=>{const t=document.createElement("span");o||t.append(document.createElement("br")),t.append(e),i.append(t),o=!1};if(n.showUnits){const n=Wn(e.units,t);l(`${An.unit[t]}: ${n}`)}if(s&&l(s),n.showLastUpdated&&e.lastUpdated){const n=Zn(e.lastUpdated,t);n&&l(n)}n.showSources&&l(`${An.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`)}catch(e){console.error(e),i.replaceChildren();const n=document.createElement("h1");n.append(An.graphCreationError[t]),i.append(n)}}const Kr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),Xr=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&&Kr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Jr=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&&Kr(e[r][n],e[r+1][n]);r++)t[n]++;return t},Qr=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")}`},es=(e,t)=>{var n,r,s,i,a,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===xn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===xn.PercentVerticalBarChart)&&(e=Gr(e));const u=null!=(s=null==(i=e.columnNameGroups[0])?void 0:i.length)?s:0,d=null!=(a=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?a:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d,h=","==An.decimalPoint[t]?";":",",p="\n";let f=ns([`"${e.header[t]}"`],0,m,h,p);e.subheaderValues.length>0&&(f+=ns([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,m,h,p));for(let n=0;n<u;n++)f+=ns(e.columnNameGroups.map(e=>`"${e[n][t]}"`),d,m,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?On(e.missingCode,t):In(e.value,e.precision,t))),f+=ns(n,0,m,h,p)}),f+=ns([`"${An.unit[t]}: ${Wn(e.units,t)}"`],0,m,h,p),f+=ns([`"${An.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,m,h),f},ts=(e,t)=>({onClick:()=>{const n=es(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),s=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",s),i.setAttribute("download",Qr(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:An.downloadCSV[t]});function ns(e,t,n,r,s=""){let i="";for(let s=0;s<n;s++)s>=t&&s<t+e.length&&(i+=e[s-t]),s<n-1&&(i+=r);return i+s}const rs=['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 ss(e){const t=Math.floor(e/26),n=String.fromCodePoint(97+e%26).toUpperCase();return 0===t?n:ss(t-1)+n}const is=`<?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 as(e,t,n){const r=new Array(n);for(let s=0;s<n;s++)r[s]=s>=t&&s<t+e.length?e[s-t]:null;return r}const os=(e,t)=>({onClick:async()=>{const n=await ls(e,t),r=URL.createObjectURL(n),s=document.createElement("a");s.setAttribute("href",r),s.setAttribute("download",Qr(e.tableReferenceName)+".xlsx"),document.body.appendChild(s),s.click()},text:An.downloadXLSX[t]});async function ls(e,t){const n=((e,t)=>{var n,r,s,i,a,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===xn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===xn.PercentVerticalBarChart)&&(e=Gr(e));const u=null!=(s=null==(i=e.columnNameGroups[0])?void 0:i.length)?s:0,d=null!=(a=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?a:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d;return[as([e.header[t]],0,m),...e.subheaderValues.length>0?[as([e.subheaderValues.map(e=>e[t]).join(" | ")],0,m)]:[],...Array.from({length:u},(n,r)=>as(e.columnNameGroups.map(e=>e[r][t]),d,m)),...e.series.map(e=>{let n=[];return e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?On(e.missingCode,t):Number(e.value.toFixed(e.precision)))),as(n,0,m)}),as([`${An.unit[t]}: ${Wn(e.units,t)}`],0,m),as([`${An.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,m)]})(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="${ss(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"};return e.replaceAll(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${ss(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 ${rs.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),s={xl:{"worksheets/sheet1.xml":u(r),"workbook.xml":u(is),"_rels/workbook.xml.rels":u('<?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":u('<?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":u('<?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)=>{d(s,(n,r)=>{if(n)return t(n);const s=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(s)})})}const cs=["Bars","Times","Download","ExternalLink","Copy"],us=({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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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 ds,ms,hs,ps,fs,gs,vs,ys=e=>e;const bs=yn(n((t,n)=>e.createElement("button",h({},t,{ref:n,type:"button"}))))(ds||(ds=ys`
2
2
  background-color: transparent;
3
3
  text-align: left;
4
4
  border: none;