@statisticsfinland/pxvisualizer 1.0.9 → 1.0.10-d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +19 -19
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/dist/types/core/chartOptions/Utility/formatters.d.ts +2 -1
- package/dist/types/core/conversion/seriesBuilder.d.ts +31 -0
- package/dist/types/core/conversion/seriesBuilderUtilities.d.ts +4 -0
- package/dist/types/core/conversion/viewUtils.d.ts +2 -2
- package/dist/types/core/types/view.d.ts +0 -3
- package/package.json +1 -1
package/dist/pxv.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("highcharts"),require("decimal.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/export-data.js"),require("highcharts/modules/offline-exporting.js"),require("fflate"),require("highcharts-react-official"),require("uuid")):"function"==typeof define&&define.amd?define(["exports","react","highcharts","decimal.js","highcharts/modules/accessibility.js","highcharts/modules/exporting.js","highcharts/modules/export-data.js","highcharts/modules/offline-exporting.js","fflate","highcharts-react-official","uuid"],t):t((e||self).pxvisualizer={},e.react,e.highcharts,e.Decimal,e.highchartsAccessibility,e.highchartsExporting,e.highchartsExportData,e.highchartsOfflineExporting,e.fflate,e.highchartsReactOfficial,e.uuid)}(this,function(e,t,n,r,a,i,o,s,l,u,c){function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var d=/*#__PURE__*/m(t),p=/*#__PURE__*/m(n),h=/*#__PURE__*/f(n),g=/*#__PURE__*/m(r),v=/*#__PURE__*/m(a),y=/*#__PURE__*/m(i),b=/*#__PURE__*/m(o),w=/*#__PURE__*/m(s);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function k(e,t){return t||(t=e.slice(0)),e.raw=t,e}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e){var t={exports:{}};return e(t,t.exports),t.exports}var T="function"==typeof Symbol&&Symbol.for,N=T?Symbol.for("react.element"):60103,P=T?Symbol.for("react.portal"):60106,j=T?Symbol.for("react.fragment"):60107,M=T?Symbol.for("react.strict_mode"):60108,V=T?Symbol.for("react.profiler"):60114,O=T?Symbol.for("react.provider"):60109,D=T?Symbol.for("react.context"):60110,I=T?Symbol.for("react.async_mode"):60111,z=T?Symbol.for("react.concurrent_mode"):60111,L=T?Symbol.for("react.forward_ref"):60112,R=T?Symbol.for("react.suspense"):60113,q=T?Symbol.for("react.suspense_list"):60120,G=T?Symbol.for("react.memo"):60115,_=T?Symbol.for("react.lazy"):60116,B=T?Symbol.for("react.block"):60121,$=T?Symbol.for("react.fundamental"):60117,F=T?Symbol.for("react.responder"):60118,H=T?Symbol.for("react.scope"):60119;function W(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case N:switch(e=e.type){case I:case z:case j:case V:case M:case R:return e;default:switch(e=e&&e.$$typeof){case D:case L:case _:case G:case O:return e;default:return t}}case P:return t}}}function U(e){return W(e)===z}var Y={AsyncMode:I,ConcurrentMode:z,ContextConsumer:D,ContextProvider:O,Element:N,ForwardRef:L,Fragment:j,Lazy:_,Memo:G,Portal:P,Profiler:V,StrictMode:M,Suspense:R,isAsyncMode:function(e){return U(e)||W(e)===I},isConcurrentMode:U,isContextConsumer:function(e){return W(e)===D},isContextProvider:function(e){return W(e)===O},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===N},isForwardRef:function(e){return W(e)===L},isFragment:function(e){return W(e)===j},isLazy:function(e){return W(e)===_},isMemo:function(e){return W(e)===G},isPortal:function(e){return W(e)===P},isProfiler:function(e){return W(e)===V},isStrictMode:function(e){return W(e)===M},isSuspense:function(e){return W(e)===R},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===j||e===z||e===V||e===M||e===R||e===q||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===G||e.$$typeof===O||e.$$typeof===D||e.$$typeof===L||e.$$typeof===$||e.$$typeof===F||e.$$typeof===H||e.$$typeof===B)},typeOf:W},X=A(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var d=e.type;switch(d){case u:case c:case a:case o:case i:case f:return d;default:var g=d&&d.$$typeof;switch(g){case l:case m:case h:case p:case s:return g;default:return t}}case r:return t}}}var x=c,S=l,k=s,C=n,E=m,A=a,T=h,N=p,P=r,j=o,M=i,V=f,O=!1;function D(e){return w(e)===c}t.AsyncMode=u,t.ConcurrentMode=x,t.ContextConsumer=S,t.ContextProvider=k,t.Element=C,t.ForwardRef=E,t.Fragment=A,t.Lazy=T,t.Memo=N,t.Portal=P,t.Profiler=j,t.StrictMode=M,t.Suspense=V,t.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||w(e)===u},t.isConcurrentMode=D,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===o||e===i||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),Z=A(function(e){e.exports="production"===process.env.NODE_ENV?Y:X});function K(e){function t(e,r,l,u,f){for(var d,p,h,g,w,S=0,k=0,C=0,E=0,A=0,V=0,D=h=d=0,z=0,L=0,R=0,q=0,G=l.length,_=G-1,B="",$="",F="",H="";z<G;){if(p=l.charCodeAt(z),z===_&&0!==k+E+C+S&&(0!==k&&(p=47===k?10:47),E=C=S=0,G++,_++),0===k+E+C+S){if(z===_&&(0<L&&(B=B.replace(m,"")),0<B.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(z)}p=59}switch(p){case 123:for(d=(B=B.trim()).charCodeAt(0),h=1,q=++z;z<G;){switch(p=l.charCodeAt(z)){case 123:h++;break;case 125:h--;break;case 47:switch(p=l.charCodeAt(z+1)){case 42:case 47:e:{for(D=z+1;D<_;++D)switch(l.charCodeAt(D)){case 47:if(42===p&&42===l.charCodeAt(D-1)&&z+2!==D){z=D+1;break e}break;case 10:if(47===p){z=D+1;break e}}z=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;z++<_&&l.charCodeAt(z)!==p;);}if(0===h)break;z++}if(h=l.substring(q,z),0===d&&(d=(B=B.replace(c,"").trim()).charCodeAt(0)),64===d){switch(0<L&&(B=B.replace(m,"")),p=B.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=M}if(q=(h=t(r,L,h,p,f+1)).length,0<O&&(w=s(3,h,L=n(M,B,R),r,N,T,q,p,f,u),B=L.join(""),void 0!==w&&0===(q=(h=w.trim()).length)&&(p=0,h="")),0<q)switch(p){case 115:B=B.replace(x,o);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(v,"$1 $2"))+"{"+h+"}",h=1===j||2===j&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(r,n(r,B,R),h,u,f+1);F+=h,h=R=L=D=d=0,B="",p=l.charCodeAt(++z);break;case 125:case 59:if(1<(q=(B=(0<L?B.replace(m,""):B).trim()).length))switch(0===D&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(q=(B=B.replace(" ",":")).length),0<O&&void 0!==(w=s(1,B,r,e,N,T,$.length,u,f,u))&&0===(q=(B=w.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),p=B.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){H+=B+l.charAt(z);break}default:58!==B.charCodeAt(q-1)&&($+=a(B,d,p,B.charCodeAt(2)))}R=L=D=d=0,B="",p=l.charCodeAt(++z)}}switch(p){case 13:case 10:47===k?k=0:0===1+d&&107!==u&&0<B.length&&(L=1,B+="\0"),0<O*I&&s(0,B,r,e,N,T,$.length,u,f,u),T=1,N++;break;case 59:case 125:if(0===k+E+C+S){T++;break}default:switch(T++,g=l.charAt(z),p){case 9:case 32:if(0===E+S+k)switch(A){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===E+k+S&&(L=R=1,g="\f"+g);break;case 108:if(0===E+k+S+P&&0<D)switch(z-D){case 2:112===A&&58===l.charCodeAt(z-3)&&(P=A);case 8:111===V&&(P=V)}break;case 58:0===E+k+S&&(D=z);break;case 44:0===k+C+E+S&&(L=1,g+="\r");break;case 34:case 39:0===k&&(E=E===p?0:0===E?p:E);break;case 91:0===E+k+C&&S++;break;case 93:0===E+k+C&&S--;break;case 41:0===E+k+S&&C--;break;case 40:0===E+k+S&&(0===d&&(2*A+3*V==533||(d=1)),C++);break;case 64:0===k+C+E+S+D+h&&(h=1);break;case 42:case 47:if(!(0<E+S+C))switch(k){case 0:switch(2*p+3*l.charCodeAt(z+1)){case 235:k=47;break;case 220:q=z,k=42}break;case 42:47===p&&42===A&&q+2!==z&&(33===l.charCodeAt(q+2)&&($+=l.substring(q,z+1)),g="",k=0)}}0===k&&(B+=g)}V=A,A=p,z++}if(0<(q=$.length)){if(L=r,0<O&&void 0!==(w=s(2,$,L,e,N,T,q,u,f,u))&&0===($=w).length)return H+$+F;if($=L.join(",")+"{"+$+"}",0!=j*P){switch(2!==j||i($,2)||(P=0),P){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}P=0}}return H+$+F}function n(e,t,n){var a=t.trim().split(h);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<o;++u)t[l++]=r(e[u]+" ",a[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(A,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return d.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(w,"tb");break;case 232:l=o.replace(w,"tb-rl");break;case 220:l=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(C,"$1"),n,t)}function o(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,a,i,o,s,l,c){for(var m,f=0,d=t;f<O;++f)switch(m=V[f].call(u,e,d,n,r,a,i,o,s,l,c)){case void 0:case!1:case!0:case null:break;default:d=m}if(d!==t)return d}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?j=1:(j=2,D=e):j=0),l}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<O){var a=s(-1,n,r,r,N,T,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var i=t(M,r,n,0,0);return 0<O&&void 0!==(a=s(-2,i,r,r,N,T,i.length,0,0,0))&&(i=a),P=0,T=N=1,i}var c=/^\0+/g,m=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,T=1,N=1,P=0,j=1,M=[],V=[],O=0,D=null,I=0;return u.use=function e(t){switch(t){case void 0:case null:O=V.length=0;break;default:if("function"==typeof t)V[O++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}var J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Q(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ee=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,te=/* #__PURE__ */Q(function(e){return ee.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={};function oe(e){return Z.isMemo(e)?ae:ie[e.$$typeof]||ne}ie[Z.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ie[Z.Memo]=ae;var se=Object.defineProperty,le=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,ce=Object.getOwnPropertyDescriptor,me=Object.getPrototypeOf,fe=Object.prototype,de=function e(t,n,r){if("string"!=typeof n){if(fe){var a=me(n);a&&a!==fe&&e(t,a,r)}var i=le(n);ue&&(i=i.concat(ue(n)));for(var o=oe(t),s=oe(n),l=0;l<i.length;++l){var u=i[l];if(!(re[u]||r&&r[u]||s&&s[u]||o&&o[u])){var c=ce(n,u);try{se(t,u,c)}catch(e){}}}}return t};function pe(){return(pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var he=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},ge=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Z.typeOf(e)},ve=Object.freeze([]),ye=Object.freeze({});function be(e){return"function"==typeof e}function we(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function xe(e){return e&&"string"==typeof e.styledComponentId}var Se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ke="undefined"!=typeof window&&"HTMLElement"in window,Ce=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),Ee={},Ae="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function Te(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function Ne(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(Te.apply(void 0,[Ae[e]].concat(n)).trim())}var Pe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&Ne(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i<a;i++)this.groupSizes[i]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),je=new Map,Me=new Map,Ve=1,Oe=function(e){if(je.has(e))return je.get(e);for(;Me.has(Ve);)Ve++;var t=Ve++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&Ne(16,""+t),je.set(e,t),Me.set(t,e),t},De=function(e){return Me.get(e)},Ie=function(e,t){t>=Ve&&(Ve=t+1),je.set(e,t),Me.set(t,e)},ze="style["+Se+'][data-styled-version="5.3.11"]',Le=new RegExp("^"+Se+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Re=function(e,t,n){for(var r,a=n.split(","),i=0,o=a.length;i<o;i++)(r=a[i])&&e.registerName(t,r)},qe=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],a=0,i=n.length;a<i;a++){var o=n[a].trim();if(o){var s=o.match(Le);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(Ie(u,l),Re(e,u,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(o)}}},Ge=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Se))return r}}(n),i=void 0!==a?a.nextSibling:null;r.setAttribute(Se,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,i),r},_e=function(){function e(e){var t=this.element=Ge(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}Ne(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Be=function(){function e(e){var t=this.element=Ge(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$e=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Fe=ke,He={isServer:!ke,useCSSOMInjection:!Ce},We=function(){function e(e,t,n){void 0===e&&(e=ye),void 0===t&&(t={}),this.options=pe({},He,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ke&&Fe&&(Fe=!1,function(e){for(var t=document.querySelectorAll(ze),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(Se)&&(qe(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Oe(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(pe({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new $e(a):r?new _e(a):new Be(a),new Pe(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Oe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Oe(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Oe(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var i=De(a);if(void 0!==i){var o=e.names.get(i),s=t.getGroup(a);if(o&&s&&o.size){var l=Se+".g"+a+'[id="'+i+'"]',u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Ue=/(a)(d)/gi,Ye=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ye(t%52)+n;return(Ye(t%52)+n).replace(Ue,"$1-$2")}var Ze=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ke=function(e){return Ze(5381,e)};function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(be(n)&&!xe(n))return!1}return!0}var Qe=Ke("5.3.11"),et=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=Ze(Qe,t),this.baseStyle=n,We.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var i=gt(this.rules,e,t,n).join(""),o=Xe(Ze(this.baseHash,i)>>>0);if(!t.hasNameForId(r,o)){var s=n(i,"."+o,void 0,r);t.insertRules(r,o,s)}a.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,u=Ze(this.baseHash,n.hash),c="",m=0;m<l;m++){var f=this.rules[m];if("string"==typeof f)c+=f,"production"!==process.env.NODE_ENV&&(u=Ze(u,f+m));else if(f){var d=gt(f,e,t,n),p=Array.isArray(d)?d.join(""):d;u=Ze(u,p+m),c+=p}}if(c){var h=Xe(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}a.push(h)}}return a.join(" ")},e}(),tt=/^\s*\/\/.*$/gm,nt=[":","[",".","#"],rt=d.default.createContext(),at=d.default.createContext(),it=new We,ot=function(e){var t,n,r,a,i=ye.options,o=ye.plugins,s=void 0===o?ve:o,l=new K(void 0===i?ye:i),u=[],c=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,i,o,s,l,u,c,m){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+r),"";default:return r+(0===m?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){u.push(e)}),m=function(e,r,i){return 0===r&&-1!==nt.indexOf(i[n.length])||i.match(a)?e:"."+t};function f(e,i,o,s){void 0===s&&(s="&");var u=e.replace(tt,""),c=i&&o?o+" "+i+" { "+u+" }":u;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),l(o||!i?"":i,c)}return l.use([].concat(s,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,m))},c,function(e){if(-2===e){var t=u;return u=[],t}}])),f.hash=s.length?s.reduce(function(e,t){return t.name||Ne(15),Ze(e,t.name)},5381).toString():"",f}();function st(){return t.useContext(rt)||it}function lt(){return t.useContext(at)||ot}var ut=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ot);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Ne(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ot),this.name+e.hash},e}(),ct=/([A-Z])/,mt=/([A-Z])/g,ft=/^ms-/,dt=function(e){return"-"+e.toLowerCase()};function pt(e){return ct.test(e)?e.replace(mt,dt).replace(ft,"-ms-"):e}var ht=function(e){return null==e||!1===e||""===e};function gt(e,t,n,r){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o<s;o+=1)""!==(a=gt(e[o],t,n,r))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}if(ht(e))return"";if(xe(e))return"."+e.styledComponentId;if(be(e)){if("function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&Z.isElement(l)&&console.warn(we(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),gt(l,t,n,r)}var u;return e instanceof ut?n?(e.inject(n,r),e.getName(r)):e:ge(e)?function e(t,n){var r,a,i=[];for(var o in t)t.hasOwnProperty(o)&&!ht(t[o])&&(Array.isArray(t[o])&&t[o].isCss||be(t[o])?i.push(pt(o)+":",t[o],";"):ge(t[o])?i.push.apply(i,e(t[o],o)):i.push(pt(o)+": "+(r=o,(null==(a=t[o])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in J||r.startsWith("--")?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var vt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return be(e)||ge(e)?vt(gt(he(ve,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:vt(gt(he(e,n)))}var bt=/invalid hook call/i,wt=new Set,xt=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){if(bt.test(e))i=!1,wt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];a.apply(void 0,[e].concat(n))}},t.useRef(),i&&!wt.has(r)&&(console.warn(r),wt.add(r))}catch(e){bt.test(e.message)&&wt.delete(r)}finally{console.error=a}}},St=function(e,t,n){return void 0===n&&(n=ye),e.theme!==n.theme&&e.theme||t||n.theme},kt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ct=/(^-|-$)/g;function Et(e){return e.replace(kt,"-").replace(Ct,"")}var At=function(e){return Xe(Ke(e)>>>0)};function Tt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Nt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function jt(e,t,n){var r=e[n];Nt(t)&&Nt(r)?Mt(r,t):e[n]=t}function Mt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=n;a<i.length;a++){var o=i[a];if(Nt(o))for(var s in o)Pt(s)&&jt(e,o[s],s)}return e}var Vt=d.default.createContext(),Ot={};function Dt(e,n,r){var a=xe(e),i=!Tt(e),o=n.attrs,s=void 0===o?ve:o,l=n.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Et(e);Ot[n]=(Ot[n]||0)+1;var r=n+"-"+At("5.3.11"+n+Ot[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):l,c=n.displayName,m=void 0===c?function(e){return Tt(e)?"styled."+e:"Styled("+we(e)+")"}(e):c,f=n.displayName&&n.componentId?Et(n.displayName)+"-"+n.componentId:n.componentId||u,p=a&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,h=n.shouldForwardProp;a&&e.shouldForwardProp&&(h=n.shouldForwardProp?function(t,r,a){return e.shouldForwardProp(t,r,a)&&n.shouldForwardProp(t,r,a)}:e.shouldForwardProp);var g,v=new et(r,f,a?e.componentStyle:void 0),y=v.isStatic&&0===s.length,b=function(e,n){return function(e,n,r,a){var i=e.attrs,o=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,m=e.target,f=function(e,t,n){void 0===e&&(e=ye);var r=pe({},t,{theme:e}),a={};return n.forEach(function(e){var t,n,i,o=e;for(t in be(o)&&(o=o(r)),o)r[t]=a[t]="className"===t?(i=o[t],(n=a[t])&&i?n+" "+i:n||i):o[t]}),[r,a]}(St(n,t.useContext(Vt),s)||ye,n,i),d=f[1],p=function(e,t,n,r){var a=st(),i=lt(),o=e.generateAndInjectStyles(t?ye:n,a,i);return"production"!==process.env.NODE_ENV&&!t&&r&&r(o),o}(o,a,f[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),h=r,g=d.$as||n.$as||d.as||n.as||m,v=Tt(g),y=d!==n?pe({},n,{},d):n,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(u?u(w,te,g):!v||te(w))&&(b[w]=y[w]));return n.style&&d.style!==n.style&&(b.style=pe({},n.style,{},d.style)),b.className=Array.prototype.concat(l,c,p!==c?p:null,n.className,d.className).filter(Boolean).join(" "),b.ref=h,t.createElement(g,b)}(g,e,n,y)};return b.displayName=m,(g=d.default.forwardRef(b)).attrs=p,g.componentStyle=v,g.displayName=m,g.shouldForwardProp=h,g.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ve,g.styledComponentId=f,g.target=a?e.target:e,g.withComponent=function(e){var t=n.componentId,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(n,["componentId"]),i=t&&t+"-"+(Tt(e)?e:Et(we(e)));return Dt(e,pe({},a,{attrs:p,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?Mt({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(xt(m,f),g.warnTooManyClasses=function(e,t){var n={},r=!1;return function(a){!r&&(n[a]=!0,Object.keys(n).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={})}}(m,f)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),i&&de(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var It=function(e){return function e(t,n,r){if(void 0===r&&(r=ye),!Z.isValidElementType(n))return Ne(1,String(n));var a=function(){return t(n,r,yt.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,pe({},r,{},a))},a.attrs=function(a){return e(t,n,pe({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Dt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){It[e]=It(e)});var zt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),We.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(gt(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&We.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Lt,Rt,qt,Gt=It;e.EVisualizationType=void 0,(Lt=e.EVisualizationType||(e.EVisualizationType={})).VerticalBarChart="VerticalBarChart",Lt.GroupVerticalBarChart="GroupVerticalBarChart",Lt.StackedVerticalBarChart="StackedVerticalBarChart",Lt.PercentVerticalBarChart="PercentVerticalBarChart",Lt.HorizontalBarChart="HorizontalBarChart",Lt.GroupHorizontalBarChart="GroupHorizontalBarChart",Lt.StackedHorizontalBarChart="StackedHorizontalBarChart",Lt.PercentHorizontalBarChart="PercentHorizontalBarChart",Lt.PyramidChart="PyramidChart",Lt.PieChart="PieChart",Lt.LineChart="LineChart",Lt.ScatterPlot="ScatterPlot",Lt.Table="Table",e.EVariableType=void 0,(Rt=e.EVariableType||(e.EVariableType={})).Unknown="N",Rt.Time="T",Rt.Ordinal="P",Rt.Geological="G",Rt.Content="C",Rt.OtherClassificatory="F",e.ETimeVariableInterval=void 0,(qt=e.ETimeVariableInterval||(e.ETimeVariableInterval={})).Week="Week",qt.Month="Month",qt.Quarter="Quarter",qt.HalfYear="HalfYear",qt.Year="Year",qt.Decade="Decade",qt.Irregular="Irregular";var _t={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},Bt={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."]}},$t=new(/*#__PURE__*/function(){function e(){var e=this;this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=function(){return Object.keys(e.Translations.empty)},this.Translations=_t,this.ArrayTranslations=Bt}return e.prototype.AddTranslations=function(e){for(var t in e.Translations)t in this.Translations&&(this.Translations[t]=x({},this.Translations[t],e.Translations[t]));for(var n in e.ArrayTranslations)n in this.ArrayTranslations&&(this.ArrayTranslations[n]=x({},this.ArrayTranslations[n],e.ArrayTranslations[n]))},e}()),Ft=$t.Translations,Ht=$t.ArrayTranslations,Wt=$t.GetAllLanguages,Ut=function(e){return e.reduce(function(e,t){return e.map(function(e){return t.map(function(t){return e.concat([t])})}).reduce(function(e,t){return e.concat(t)},[])},[[]])};function Yt(e,t,n){return n.findIndex(function(t){return JSON.stringify(t)===JSON.stringify(e)})===t}var Xt=["",".","..","...","....",".....","......","-"];function Zt(e,t,n,r){if(void 0===r&&(r=!1),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 Kt(e,t,n){if(void 0===n&&(n=!1),e)return n?Ft.dataMissing[t]:Xt[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Jt(e,t){return function(){var n,r,a,i,o,s=[];e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&s.push((null==(i=e.rowVarNames)?void 0:i.map(function(e){return e[t]}).join(", "))+": "+this.series.name),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&s.push((null==(o=e.colVarNames)?void 0:o.map(function(e){return e[t]}).join(", "))+": "+this.point.name);var l=null!=(n=null==(r=this.point.options.custom)?void 0:r.precision)?n:0;return s.push(un(e,this,t,l)),null!=(a=this.point.options.custom)&&a.preliminary&&s.push(Ft.preliminaryData[t]),s.join("<br/>")}}function Qt(e,t){return function(n){var r,a,i,o,s,l=[];e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&l.push((null==(o=e.rowVarNames)?void 0:o.map(function(e){return e[t]}).join(", "))+": "+cn(n.series.name,t)),e.colVarNames&&e.colVarNames.length>0&&n.name&&l.push((null==(s=e.colVarNames)?void 0:s.map(function(e){return e[t]}).join(", "))+": "+cn(n.name,t));var u=null!=(r=null==(a=n.options.custom)?void 0:a.precision)?r:0;return l.push(un(e,n,t,u)),null!=(i=n.options.custom)&&i.preliminary&&l.push(Ft.preliminaryData[t]),l.join(", ")}}function en(e){return function(){return this.value.toLocaleString(e)}}var tn=function(e){return Wt().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Wt()[0]};function nn(e){void 0===e&&(e=null);var t=e&&e>=15?25:50;return function(){return on(this.value,t)}}function rn(e){return function(){var t,n;if(!this.point.y)return"";var r=null!=(t=null==(n=this.point.options.custom)?void 0:n.precision)?t:0;return Zt(this.point.y,r,e,!0)}}function an(){return function(){return on(this.name,200)}}var on=function(e,t){void 0===t&&(t=50);var n=e.toString().length;return e.toString().slice(0,t).trim()+(n>t?"...":"")};function sn(e,t){return function(){var n,r,a,i=e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", "),o=e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(function(e){return e[t]}).join(", "),l="";return i&&i.length>0&&this.series.name&&(l+=i+": "+this.point.x.toLocaleString(t)+"<br />"),o&&o.length>0&&this.key&&(l+=o+": "+(null==(a=this.point.y)?void 0:a.toLocaleString(t))+"<br />"),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=s+": "+e.columnNameGroups[this.point.index].map(function(e){return e[t]}).join(", ")),null!=(r=this.point.options.custom)&&r.preliminary&&(l+="<br />"+Ft.preliminaryData[t]),l}}function ln(e,t){var n=e.map(function(e){return e.unit}).filter(Yt);if(1===n.length)return n[0][t];if(n.length>1)return e.map(function(e){return e.name[t]+": "+e.unit[t]}).join(", ");throw new Error("Missing required unit data")}function un(t,n,r,a){if(null==n.y)return"";var i,o,s=Number(n.y.toFixed(a));return t.visualizationSettings.visualizationType===e.EVisualizationType.PyramidChart?Math.abs(s).toLocaleString(r):t.visualizationSettings.visualizationType==e.EVisualizationType.PercentHorizontalBarChart||t.visualizationSettings.visualizationType==e.EVisualizationType.PercentVerticalBarChart?Zt(null!=(i=n.percentage)?i:null,a,r)+"% ("+s.toLocaleString(r)+" "+ln(t.units,r)+")":null!=(o=s.toLocaleString(r))?o:""}function cn(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){var n=e.split("*")[0];if(/^\d{4}M\d{1,2}$/.test(n)){var r=n.split("M");return r[0]+" "+Ht.months[t][Number(r[1])-1]}if(/^\d{4}Q\d{1,2}$/.test(n)){var a=n.split("Q");return a[0]+" "+function(e,t){var n=Ht.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?""+e+n[r]:e+"."}(a[1],t)+" "+Ft.quarter[t]}console.log("Unsupported time pattern")}return e}var mn,fn=function(e,t,n,r){return void 0===r&&(r=!1),e.series.map(function(a,i){return{index:r?e.series.length-1-i:i,animation:!1,type:t,name:a.rowNameGroup.map(function(e){return e[n]}).join(", "),data:a.series.map(function(t,r){return{y:t.value,name:e.columnNameGroups[r].map(function(e){return e[n]}).join(", "),custom:{preliminary:t.preliminary,precision:t.precision}}})}})};function dn(e,t,n){return function(){var r,a,i,o=function(e,t,n,r){var a;if(void 0===r&&(r=new g.default(0)),e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):g.default.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;var i=function(e){var t=Array.from({length:n},function(e,t){return n-t}).reduce(function(t,n){var a,i=function(e){if(e.equals(0))return new g.default(0);var t=g.default.pow(10,g.default.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(a=i,a.equals(0)?0:a.isInteger()?function(e){for(var t=0,n=5;t<50&&e.mod(n).equals(0)&&(t++,e.mod(n*=2).equals(0));)t++,n*=5;return t}(a):function(e){var t=e.toString();if(t.includes("e-")){var n=t.split("e-"),r=Number.parseInt(n[1]);return n[0].endsWith("5")?-2*r+1:-2*r}var a=t.split(".")[1];return a.endsWith("5")?-2*a.length+1:-2*a.length}(a)),i]),t},[]).sort(function(e,t){return t[0]-e[0]});return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(function(e,t){return e[1].minus(t[1]).toNumber()})}(g.default.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(a=i.map(function(e){return e[1]}).find(function(r){return e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)}))?a:new g.default(NaN):i[0][1]}(e,t,(r=this.chart.plotWidth,a=g.default.pow(10,g.default.log10(g.default.max(e.abs(),t.abs())).floor()),i=Math.ceil(r/(12*(a.toString().length+(e.isNeg()?1:0))+25)-1),Math.max(i,e.isNegative()&&t.isPositive()?2:1)),n),s=e.greaterThanOrEqualTo(0)?new g.default(0):e.div(o).floor().mul(o),l=t.lessThanOrEqualTo(0)?new g.default(0):t.div(o).ceil().mul(o);return Array.from({length:l.minus(s).div(o).plus(1).toNumber()},function(e,t){return o.mul(t).plus(s).toNumber()})}}function pn(t,n){if(n){var r=new Date(n);switch(t){case e.ETimeVariableInterval.Irregular:case e.ETimeVariableInterval.Week:return;case e.ETimeVariableInterval.Month:return{pointStart:r.getTime(),pointIntervalUnit:"month"};case e.ETimeVariableInterval.Quarter:case e.ETimeVariableInterval.HalfYear:return;case e.ETimeVariableInterval.Year:return{pointStart:r.getTime(),pointIntervalUnit:"year"}}}}function hn(t,n){if(t.seriesType!==mn.Time)return t.seriesType===mn.Ordinal?function(e,t){return{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),ordinal:!0,tickPositioner:(n=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),r=Math.max.apply(Math,e.columnNameGroups.map(function(e){return e.reduce(function(e,n){return(e>0?1:0)+e+n[t].length},0)})),function(){var e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},function(t,n){return n*e})})};var n,r}(t,n):{type:"category",categories:t.columnNameGroups.map(function(e){return e.map(function(e){return e[n]}).join(", ")}),labels:{autoRotation:[-45]}};switch(t.visualizationSettings.timeVariableIntervals){case e.ETimeVariableInterval.Week:return gn(t,n);case e.ETimeVariableInterval.Month:return vn();case e.ETimeVariableInterval.Quarter:return yn(t,n);case e.ETimeVariableInterval.HalfYear:return bn(t,n);case e.ETimeVariableInterval.Year:return{type:"datetime"};default:return{type:"category",categories:t.columnNameGroups.map(function(e){return e.map(function(e){return e[n]}).join(", ")})}}}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(mn||(mn={}));var gn=function(e,t){return{type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", ")}}}},vn=function(e,t){return{type:"datetime",ordinal:!1,labels:{formatter:function(){return p.default.dateFormat("%YM%m",Number(this.value))}}}},yn=function(e,t){var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var 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){var n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},bn=function(e,t){var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var 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){var n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},wn=function(e){return{accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:Ft.thousandsSepAccessibility[e],credits:Ft.credits[e],chartTypes:{barMultiple:Ft.barMultiple[e],barSingle:Ft.barSingle[e],columnMultiple:Ft.columnMultiple[e],columnSingle:Ft.columnSingle[e],lineSingle:Ft.lineSingle[e],lineMultiple:Ft.lineMultiple[e],pieSingle:Ft.pieSingle[e],scatterSingle:Ft.scatterSingle[e],scatterMultiple:Ft.scatterMultiple[e],defaultSingle:Ft.defaultSingle[e],defaultMultiple:Ft.defaultMultiple[e]},defaultChartTitle:Ft.defaultChartTitle[e],exporting:{chartMenuLabel:Ft.chartMenuLabel[e],menuButtonLabel:Ft.menuButtonLabel[e]},legend:{legendItem:Ft.legendItem[e],legendLabel:Ft.legendLabel[e],legendLabelNoTitle:Ft.legendLabelNoTitle[e]},axis:{rangeCategories:Ft.rangeCategories[e],rangeFromTo:Ft.rangeFromTo[e],timeRangeDays:Ft.timeRangeDays[e],timeRangeHours:Ft.timeRangeHours[e],timeRangeMinutes:Ft.timeRangeMinutes[e],timeRangeSeconds:Ft.timeRangeSeconds[e],xAxisDescriptionPlural:Ft.xAxisDescriptionPlural[e],xAxisDescriptionSingular:Ft.xAxisDescriptionSingular[e],yAxisDescriptionPlural:Ft.yAxisDescriptionPlural[e],yAxisDescriptionSingular:Ft.yAxisDescriptionSingular[e]},series:{summary:{bar:Ft.seriesSummaryBar[e],barCombination:Ft.seriesSummaryBarCombination[e],column:Ft.seriesSummaryColumn[e],columnCombination:Ft.seriesSummaryColumnCombination[e],default:Ft.seriesSummaryDefault[e],defaultCombination:Ft.seriesSummaryDefaultCombination[e],line:Ft.seriesSummaryLine[e],lineCombination:Ft.seriesSummaryLineCombination[e],pie:Ft.seriesSummaryPie[e],pieCombination:Ft.seriesSummaryPieCombination[e],scatter:Ft.seriesSummaryScatter[e],scatterCombination:Ft.seriesSummaryScatterCombination[e]},xAxisDescription:Ft.xAxisDescription[e],yAxisDescription:Ft.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:Ft.endOfChartMarker[e]},chartContainerLabel:Ft.chartContainerLabel[e]},thousandsSep:Ft.thousandsSep[e],decimalPoint:Ft.decimalPoint[e],contextButtonTitle:Ft.contextButtonTitle[e],downloadCSV:Ft.downloadCSV[e],downloadPNG:Ft.downloadPNG[e],downloadSVG:Ft.downloadSVG[e],months:Ht.months[e],shortMonths:Ht.shortMonths[e],weekdays:Ht.weekdays[e],loading:Ft.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:en(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}},xn=function(e,t){return{accessibility:{point:{descriptionFormatter:Qt(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},credits:{text:Ft.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:Jt(e,t)},yAxis:[Sn]}},Sn={plotLines:[{value:0,color:"#000",width:1}]},kn=function(e,t){var n,r=null==(n=wn(t).tooltip)?void 0:n.style;return{enabled:e.visualizationSettings.showDataPoints,style:r,formatter:rn(t)}},Cn=function(e,t){var n,r,a,i;return x({},Sn,{tickPositioner:(n=e.series.map(function(e){return e.series}),r=null,a=null,i=0,n.forEach(function(e){e.forEach(function(e){e.value&&(!r||e.value<r)&&(r=e.value),e.value&&(!a||e.value>a)&&(a=e.value),e.precision>i&&(i=e.precision)})}),r&&a?dn(new g.default(r),new g.default(a),new g.default(Math.pow(10,-i))):function(){return[]}),title:{text:ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}})},En=function(e,t){return x({},xn(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:nn(e.columnNameGroups.length),style:{width:200}}}})},An=function(e,t){return x({},En(e,t),{series:fn(e,"bar",t,!0),legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30}})},Tn=function(e,t){return x({},xn(e,t),{chart:{type:"column"},xAxis:hn(e,t)})},Nn=function(e,t){return x({},Tn(e,t),{series:fn(e,"column",t),yAxis:{softMin:0,softMax:0,title:{text:ln(e.units,t)}}})},Pn=function(e,t){return x({},Tn(e,t),{series:fn(e,"column",t,!0),legend:{enabled:!0,layout:"vertical"}})},jn=function(e,t){return"\n "+e[1].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.x}<br/>\n "+e[0].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.y}\n "},Mn=function(t,n){switch(n.visualizationSettings.visualizationType){case e.EVisualizationType.LineChart:return function(e,t){var n,r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return x({},xn(e,t),{chart:{type:"line"},xAxis:x({},hn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:x({},Sn,{softMin:r,softMax:r,title:{text:ln(e.units,t)}}),plotOptions:{line:{dataLabels:x({},kn(e,t)),marker:{enabled:!1}},series:pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:an()},series:fn(e,"line",t),exporting:{enabled:!1}})}(n,t);case e.EVisualizationType.VerticalBarChart:return function(e,t){return x({},Nn(e,t),{yAxis:x({},Sn,{softMin:0,softMax:0,title:{text:ln(e.units,t)}}),plotOptions:{series:x({},pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:x({},kn(e,t))})},exporting:{enabled:!1}})}(n,t);case e.EVisualizationType.HorizontalBarChart:return function(e,t){return x({},En(e,t),{series:fn(e,"bar",t),chart:{type:"bar",spacingBottom:60},yAxis:x({},Cn(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:x({},kn(e,t))}}})}(n,t);case e.EVisualizationType.GroupVerticalBarChart:return function(e,t){return x({},Nn(e,t),{plotOptions:{series:x({},pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:x({},kn(e,t))})},legend:{enabled:!0,labelFormatter:an()}})}(n,t);case e.EVisualizationType.GroupHorizontalBarChart:return function(e,t){return x({},En(e,t),{series:fn(e,"bar",t),yAxis:x({},Cn(e,t),{softMin:0,softMax:0}),legend:{enabled:!0,layout:"vertical",margin:30},plotOptions:{series:{dataLabels:x({},kn(e,t))}}})}(n,t);case e.EVisualizationType.StackedVerticalBarChart:return function(e,t){return x({},Pn(e,t),{yAxis:{softMin:0,softMax:0,title:{text:ln(e.units,t)}},plotOptions:{column:{stacking:"normal",dataLabels:x({},kn(e,t))},series:pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}})}(n,t);case e.EVisualizationType.StackedHorizontalBarChart:return function(e,t){return x({},An(e,t),{yAxis:{softMin:0,softMax:0,tickPositioner:(n=e.series.map(function(e){return e.series}),r=null,a=null,i=0,n[0].forEach(function(e,t){var o=n.reduce(function(e,n){var r;return e+(null!=(r=n[t].value)?r:0)},0);o&&(!r||o<r)&&(r=o),o&&(!a||o>a)&&(a=o),e.precision>i&&(i=e.precision)}),r&&a?dn(new g.default(r),new g.default(a),new g.default(Math.pow(10,-i))):function(){return[]}),title:{text:ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:x({},kn(e,t))}}});var n,r,a,i}(n,t);case e.EVisualizationType.PercentVerticalBarChart:return function(e,t){return x({},Pn(e,t),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent",dataLabels:x({},kn(e,t))},series:pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}})}(n,t);case e.EVisualizationType.PercentHorizontalBarChart:return function(e,t){return x({},An(e,t),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:x({},kn(e,t))}}})}(n,t);case e.EVisualizationType.PieChart:return function(e,t){var n,r;return x({},xn(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){var e=r?" ("+Math.round(this.percentage)+"%)":"";return on(this.point.name,20)+e})}}},series:e.series.map(function(n){return{animation:!1,type:"pie",name:n.rowNameGroup.map(function(e){return e[t]}).join(", "),data:n.series.map(function(n,r){return{y:n.value,name:e.columnNameGroups[r].map(function(e){return e[t]}).join(", "),unit:ln(e.units,t),custom:{preliminary:n.preliminary,precision:n.precision}}})}})})}(n,t);case e.EVisualizationType.PyramidChart:return function(e,t){var n=e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),r=Math.max.apply(Math,e.series.map(function(e){return Math.max.apply(Math,e.series.map(function(e){var t;return null!=(t=e.value)?t:0}))}));return x({},xn(e,t),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:x({},Sn,{min:-Math.abs(r),max:Math.abs(r),title:{text:ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:{enabled:!0,margin:30},series:e.series.map(function(n,r){return{animation:!1,type:"bar",name:n.rowNameGroup.map(function(e){return e[t]}).join(", "),data:n.series.map(function(n,a){return{y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[a].map(function(e){return e[t]}).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}})}}),plotOptions:{series:{stacking:"normal",dataLabels:x({},kn)}},exporting:{enabled:!1}})}(n,t);case e.EVisualizationType.ScatterPlot:return function(e,t){var n,r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return x({},xn(e,t),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:x({},Sn,{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map(function(t,n){var r,a;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(a=e.series[0].series[n].value)?a:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:jn(e.series,t),formatter:sn(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})}(n,t);default:throw new Error("Unsupported chart type")}},Vn=function(t,n,r,a){if(0===t.length)return{};var i=t,o={};if(a){var s=On(i,a);if(i=s.updatedArray,o=x({},o,s.parsedValues),0===i.length)return o}if(r){var l=Dn(i,r);if(i=l.updatedArray,o=x({},o,l.parsedValues),0===i.length)return o}return i.forEach(function(t){var r=n.findIndex(function(e){return e.code===t});r>-1&&(o[t]=n[r].type===e.EVariableType.Time?[n[r].values[n[r].values.length-1].code]:[n[r].values[0].code])}),o},On=function(e,t){var n=Object.keys(t),r={},a=e.map(function(e){return n.findIndex(function(t){return t===e})>-1&&t[e].length>0?(r[e]=t[e],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:a}},Dn=function(e,t){var n=Object.keys(t),r={},a=e.map(function(e){var a=n.findIndex(function(t){return t===e});return a>-1?(r[e]=t[n[a]],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:a}},In=function(e,t){var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},zn=function(e,t){var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Ln(e,t,n){return qn(Rn(e,e.series[t].series,n),t)}function Rn(e,t,n){var r=function(e,t){var n=[].concat(Array(e.length).keys());return n.sort(function(n,r){return t(e[n],e[r])}),n}(t,n),a=r.map(function(t){return e.columnNameGroups[t]}),i=e.series.map(function(e){return function(e,t){return x({},e,{series:t.map(function(t){return e.series[t]})})}(e,r)});return x({},e,{columnNameGroups:a,series:i})}function qn(e,t){var n=[];return n.push(e.series[t]),e.series.forEach(function(e,r){r!==t&&n.push(e)}),x({},e,{series:n})}function Gn(t,n){var r,a,i,o,s,l,u,c=null!=(r=t.visualizationSettings)&&r.multiselectableVariableCode?function(e,t){var n,r,a=null!=(n=null==(r=e.visualizationSettings)?void 0:r.multiselectableVariableCode)?n:"",i=Bn(t),o=Kn(t),s=t[a].map(function(t){var n,r,s,l=$n(e,x({},o,((n={})[a]=t,n)),i);return function(e,t){return x({},t,{series:t.series.map(function(t){return x({},t,{rowNameGroup:[e].concat(t.rowNameGroup)})})})}(null!=(r=null==(s=e.metaData.find(function(e){return e.code===a}))||null==(s=s.values.find(function(e){return e.code===t}))?void 0:s.name)?r:Ft.empty,l)});return function(e){return{header:e[0].header,tableReferenceName:e[0].tableReferenceName,subheaderValues:e[0].subheaderValues,units:e.reduce(function(e,t){return e.concat(t.units)},[]).filter(Yt),sources:e.reduce(function(e,t){return e.concat(t.sources)},[]).filter(Yt),colVarNames:e[0].colVarNames,rowVarNames:e[0].rowVarNames,selectableVarNames:e[0].selectableVarNames,columnNameGroups:e[0].columnNameGroups,series:e.reduce(function(e,t){return e.concat(t.series)},[]),visualizationSettings:e[0].visualizationSettings,seriesType:e[0].seriesType}}(s)}(t,n):$n(t,Kn(n),Bn(n)),m=(null==(a=c.visualizationSettings)?void 0:a.visualizationType)===e.EVisualizationType.PercentHorizontalBarChart||(null==(i=c.visualizationSettings)?void 0:i.visualizationType)===e.EVisualizationType.PercentVerticalBarChart;switch(null==(o=t.visualizationSettings)?void 0:o.sorting){case null:case void 0:case"no_sorting":return c;case"reversed":return function(e){var t=[].concat(e.series).reverse().map(function(e){return x({},e,{series:[].concat(e.series).reverse(),rowNameGroup:[].concat(e.rowNameGroup).reverse()})});return x({},e,{series:t,columnNameGroups:[].concat(e.columnNameGroups).reverse()})}(c);case"sum":return function(e,t){var n=e.columnNameGroups.map(function(t,n){return{value:e.series.map(function(e){return e.series[n]}).reduce(function(e,t){var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}});return Rn(e,n,t)}(c,zn);case"ascending":return Ln(c,0,In);case"descending":return Ln(c,0,zn);default:return m?(s=c,l=_n(c),u=Wn(t),qn(Rn(s,l.series[u].series,zn),u)):Ln(c,Wn(t),zn)}}function _n(e){var t=e.series.map(function(t){return x({},t,{series:t.series.map(function(t,n){var r,a=e.series.reduce(function(e,t){var r;return e+(null!=(r=t.series[n].value)?r:0)},0),i=a&&0!==a?Math.round(100*(null!=(r=t.value)?r:0)/a*10)/10:null,o={value:i,precision:1,preliminary:t.preliminary};return null===i&&(o.missingCode=t.missingCode),o})})});return x({},e,{units:e.units.map(function(e){return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce(function(e,t){return e[t]="%",e},{}))};var t}),series:t})}function Bn(e){var t={};return Object.entries(e).forEach(function(e){return t[e[0]]=e[1].length}),t}function $n(e,t,n){var r=e.metaData,a=Hn(r,e.selectableVariableCodes),i=Un(r),o=function(e,t){var n=Hn(e.metaData,e.selectableVariableCodes),r=e.metaData.filter(function(t){return e.rowVariableCodes.includes(t.code)}).filter(function(e){return e.values.length>1}).map(function(e){return e.values}),a=e.metaData.filter(function(t){return e.columnVariableCodes.includes(t.code)}).filter(function(e){return e.values.length>1}).map(function(e){return e.values}),i=Ut(a),o=Ut(r),s=function(e,t,n){for(var r=0,a=1,i=function(i){var o=e[i].values.findIndex(function(n){return n.code===t[e[i].code]});if(o<0)throw new Error("Provided selected value code can not be found from the metadata");r+=o*n*a,a*=e[i].values.length},o=e.length-1;o>=0;o--)i(o);return r}(n,t,function(e){var t=e.selectableVariableCodes;return e.metaData.filter(function(e){return!t.includes(e.code)}).map(function(e){return e.values.length}).reduce(function(e,t){return e*t},1)}(e)),l=function(e,t){var n,r,a,i,o=Un(e.metaData);return 1===o.values.length?null!=(n=null==(r=o.values[0].contentComponent)?void 0:r.numberOfDecimals)?n:null:e.selectableVariableCodes.includes(o.code)&&e.visualizationSettings.multiselectableVariableCode!==o.code&&null!=(a=null==(i=o.values.find(function(e){return e.code===t[o.code]}))||null==(i=i.contentComponent)?void 0:i.numberOfDecimals)?a:null}(e,t),u=0,c=o.map(function(t){var n,r,a=t.some(function(e){return Object.values(e.name)[0].trim().endsWith("*")}),o=null!=(n=null!=l?l:null==(r=t.find(function(e){return e.contentComponent}))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:null,c=i.map(function(t){var n,r,i={value:e.data[s+u],precision:null!=(n=null!=o?o:null==(r=t.find(function(e){return e.contentComponent}))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:0,preliminary:a||t.some(function(e){return Object.values(e.name)[0].trim().endsWith("*")})};return i.value||(i.missingCode=e.missingDataInfo[s+u]),u++,i});return{rowNameGroup:t.map(function(e){return e.name}),series:c}});return{columnNameGroups:i.map(function(e){return e.map(function(e){return e.name})}),series:c}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Yn(a,t,n),units:Xn(i,t),sources:Zn(i,t,function(e){var t;return null!=(t=null==e?void 0:e.source)?t:Ft.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:Fn(e.columnVariableCodes,e.metaData),rowVarNames:Fn(e.rowVariableCodes,e.metaData),selectableVarNames:Fn(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Jn(e.columnVariableCodes,e.metaData)}}function Fn(e,t){return e.reduce(function(e,n){var r,a=null==(r=t.find(function(e){return e.code===n}))?void 0:r.name;return a&&e.push(a),e},[])}function Hn(e,t){return e.filter(function(e){return t.includes(e.code)})}function Wn(e){var t=e.metaData.find(function(t){return t.code==e.rowVariableCodes[0]}),n=null==t?void 0:t.values.findIndex(function(t){var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Un(t){var n=t.find(function(t){return t.type===e.EVariableType.Content});if(n)return n;throw new Error("Content variable is not defined")}function Yn(e,t,n){var r=[];return e.forEach(function(e){var a,i;1==n[e.code]&&r.push(null!=(a=null==(i=e.values.find(function(n){return n.code===t[e.code]}))?void 0:i.name)?a:{})}),r}function Xn(e,t){var n=e.code in t?e.values.filter(function(n){return t[e.code]===n.code}):e.values;return n.reduce(function(e,t){return t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e},[])}function Zn(e,t,n){return e.code in t?e.values.filter(function(n){return t[e.code]===n.code}).map(function(e){return n(e.contentComponent)}).filter(Yt):e.values.map(function(e){return n(e.contentComponent)}).filter(Yt)}function Kn(e){var t={};return Object.entries(e).forEach(function(e){return t[e[0]]=e[1][0]}),t}function Jn(t,n){var r;if(t.length>1||0===t.length)return mn.Nominal;var a=null==(r=n.find(function(e){return e.code===t[0]}))?void 0:r.type;switch(a){case e.EVariableType.Time:return mn.Time;case e.EVariableType.Ordinal:return mn.Ordinal;default:return mn.Nominal}}function Qn(e,t,n,r,a,i,o){var s=document.getElementById(i);if(!s)throw new Error("No container with matching id found in the DOM tree");try{if(n){var l=document.createElement("span");if(l.classList.add("title"),l.append(e.header[t]),s.append(l),e.subheaderValues.length>0){var u=document.createElement("span");u.classList.add("subtitle"),u.append(e.subheaderValues.map(function(e){return e[t]}).join(" | ")),s.append(u)}}var c=function(e,t){var n,r,a=null!=(n=e.columnNameGroups[0].length)?n:0,i=null!=(r=e.series[0].rowNameGroup.length)?r:0,o=document.createElement("table");if(a>0){var s=function(e,t){for(var n=nr(e),r=[],a=0;a<e[0].length;a++){for(var i=document.createElement("tr"),o=0;o<e.length;o+=n[a]){var s=document.createElement("th");s.setAttribute("colSpan",n[a].toString()),s.setAttribute("scope","col"),s.textContent=e[o][a][t],i.append(s)}r.push(i)}return r}(e.columnNameGroups,t);if(i>0){var l=document.createElement("td");l.setAttribute("colSpan",i.toString()),l.setAttribute("rowSpan",a.toString()),s[0].prepend(l)}var u=document.createElement("thead");u.append.apply(u,s),o.append(u)}if(e.series.length>0){var c=document.createElement("tbody");c.append.apply(c,function(e,t){for(var n=[],r=tr(e),a=0;a<e.length;a++){for(var i=document.createElement("tr"),o=0;o<e[a].rowNameGroup.length;o++)if(a%r[o]==0){var s=document.createElement("th");s.setAttribute("rowSpan",r[o].toString()),s.setAttribute("scope","row"),s.textContent=e[a].rowNameGroup[o][t],i.append(s)}for(var l,u=E(e[a].series);!(l=u()).done;){var c=l.value,m=document.createElement("td");m.textContent=null===c.value?Kt(c.missingCode,t,!0):Zt(c.value,c.precision,t,!0),i.append(m)}n.push(i)}return n}(e.series,t)),o.append(c)}return o}(e,t);if(s.append(c),r){var m=document.createElement("p"),f=ln(e.units,t);m.append(Ft.unit[t]+": "+f),s.append(m)}if(a){var d=document.createElement("p"),p=Ft.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ");d.append(p),s.append(d)}if(o){var h=document.createElement("p");h.append(o),s.append(h)}}catch(e){console.error(e),s.replaceChildren();var g=document.createElement("h1");g.append(Ft.graphCreationError[t]),s.append(g)}}var er=function(e,t){return Object.keys(e).every(function(n){return e[n]==t[n]})},tr=function(e){if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];for(var t=Array(e[0].rowNameGroup.length).fill(1),n=0;n<e[0].rowNameGroup.length;n++)for(var r=0;r<e.length-1&&er(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},nr=function(e){if(!e||0===e.length)return[];for(var t=Array(e[0].length).fill(1),n=0;n<e[0].length;n++)for(var r=0;r<e.length-1&&er(e[r][n],e[r+1][n]);r++)t[n]++;return t},rr=function(e){var 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")},ar=function(t,n){var r,a,i,o,s,l,u,c;((null==(r=t.visualizationSettings)?void 0:r.visualizationType)===e.EVisualizationType.PercentHorizontalBarChart||(null==(a=t.visualizationSettings)?void 0:a.visualizationType)===e.EVisualizationType.PercentVerticalBarChart)&&(t=_n(t));var m=null!=(i=null==(o=t.columnNameGroups[0])?void 0:o.length)?i:0,f=null!=(s=null==(l=t.series[0])?void 0:l.rowNameGroup.length)?s:0,d=(null!=(u=null==(c=t.series[0])?void 0:c.series.length)?u:0)+f,p=","==Ft.decimalPoint[n]?";":",",h="\n",g=or(['"'+t.header[n]+'"'],0,d,p,h);t.subheaderValues.length>0&&(g+=or(['"'+t.subheaderValues.map(function(e){return e[n]}).join(" | ")+'"'],0,d,p,h));for(var v=function(e){g+=or(t.columnNameGroups.map(function(t){return'"'+t[e][n]+'"'}),f,d,p,h)},y=0;y<m;y++)v(y);return t.series.forEach(function(e){var t=[];e.rowNameGroup.length>0&&(t=e.rowNameGroup.map(function(e){return'"'+e[n]+'"'})),t=t.concat(e.series.map(function(e){return null===e.value?Kt(e.missingCode,n):Zt(e.value,e.precision,n)})),g+=or(t,0,d,p,h)}),g+=or(['"'+Ft.unit[n]+": "+ln(t.units,n)+'"'],0,d,p,h),g+=or(['"'+Ft.source[n]+": "+t.sources.map(function(e){return e[n]}).join(", ")+'"'],0,d,p)},ir=function(e,t){return{onClick:function(){var n=ar(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",rr(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:Ft.downloadCSV[t]}};function or(e,t,n,r,a){void 0===a&&(a="");for(var i="",o=0;o<n;o++)o>=t&&o<t+e.length&&(i+=e[o-t]),o<n-1&&(i+=r);return i+a}var sr=['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 lr(e){var t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:lr(t-1)+n}var ur='<?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 cr(e,t,n){for(var r=Array(n),a=0;a<n;a++)r[a]=a>=t&&a<t+e.length?e[a-t]:null;return r}var mr,fr,dr,pr,hr,gr,vr,yr,br,wr,xr,Sr,kr=function(t,n){try{var r=function(t,n){var r,a,i,o,s,l,u,c;((null==(r=t.visualizationSettings)?void 0:r.visualizationType)===e.EVisualizationType.PercentHorizontalBarChart||(null==(a=t.visualizationSettings)?void 0:a.visualizationType)===e.EVisualizationType.PercentVerticalBarChart)&&(t=_n(t));var m=null!=(i=null==(o=t.columnNameGroups[0])?void 0:o.length)?i:0,f=null!=(s=null==(l=t.series[0])?void 0:l.rowNameGroup.length)?s:0,d=(null!=(u=null==(c=t.series[0])?void 0:c.series.length)?u:0)+f,p=[cr([t.header[n]],0,d)];t.subheaderValues.length>0&&p.push(cr([t.subheaderValues.map(function(e){return e[n]}).join(" | ")],0,d));for(var h=function(e){p.push(cr(t.columnNameGroups.map(function(t){return t[e][n]}),f,d))},g=0;g<m;g++)h(g);return t.series.forEach(function(e){var t=[];e.rowNameGroup.length>0&&(t=e.rowNameGroup.map(function(e){return e[n]})),t=t.concat(e.series.map(function(e){return null===e.value?Kt(e.missingCode,n):Number(e.value.toFixed(e.precision))})),p.push(cr(t,0,d))}),p.push(cr([Ft.unit[n]+": "+ln(t.units,n)],0,d)),p.push(cr([Ft.source[n]+": "+t.sources.map(function(e){return e[n]}).join(", ")],0,d)),p}(t,n),a=function(e){var t=function(e){for(var t=[],n=1;n<=e;n++)t.push('<col min="'+n+'" max="'+n+'" width="20"/>');return t?"<cols>"+t+"</cols>":""}(Math.max.apply(Math,e.map(function(e){return e.length}))),n=function(e){return e.map(function(e,t){var n=e.map(function(e,n){return function(e,t,n){return null===e?null:"string"==typeof e?'<c r="'+lr(t)+n+'" t="inlineStr"><is><t>'+(r={"&":"&","<":"<",">":">",'"':""","'":"'"},e.replace(/[&<>"']/g,function(e){return r[e]})+"</t></is></c>"):'<c r="$'+lr(t)+n+'"><v>'+e+"</v></c>";var r}(e,n,t+1)}).filter(function(e){return null!==e}).join("");return'<row r="'+(t+1)+'">'+n+"</row>"}).join("")}(e);return function(e,t){return'<?xml version="1.0" ?>\n<worksheet '+sr.join(" ")+">\n "+e+"\n <sheetData>\n "+t+"\n </sheetData>\n</worksheet>"}(t,n)}(r),i={xl:{"worksheets/sheet1.xml":l.strToU8(a),"workbook.xml":l.strToU8(ur),"_rels/workbook.xml.rels":l.strToU8('<?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":l.strToU8('<?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":l.strToU8('<?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 Promise.resolve(new Promise(function(e,t){l.zip(i,function(n,r){if(n)return t(n);var a=new Blob([r.buffer],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(a)})}))}catch(e){return Promise.reject(e)}},Cr=function(e,t){return{onClick:function(){return Promise.resolve(kr(e,t)).then(function(t){var n=URL.createObjectURL(t),r=document.createElement("a");r.setAttribute("href",n),r.setAttribute("download",rr(e.tableReferenceName)+".xlsx"),document.body.appendChild(r),r.click()})},text:Ft.downloadXLSX[t]}},Er=["Bars","Times","Download","ExternalLink","Copy"],Ar=function(e){var t=e.icon,n=e.inheritColor,r=void 0!==n&&n;switch(t){case"Bars":return d.default.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"},d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return d.default.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"},d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return d.default.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"},d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return d.default.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"},d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return d.default.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"},d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return d.default.createElement("span",null,"No icon for ",t,d.default.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"},d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),d.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}},Tr=Gt.button(mr||(mr=k(['\n background-color: transparent;\n text-align: left;\n border: none;\n margin: 0;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n cursor: pointer;\n display: inline;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n min-width: 14rem;\n border-bottom: ',";\n color: #1a3061;\n min-height: 3rem;\n :hover {\n text-decoration: underline;\n }\n"])),function(e){return e.$separator?"1px solid #bdbdbd":"0px"}),Nr=Gt.a(fr||(fr=k(["\n text-decoration: none;\n :hover {\n text-decoration: underline;\n }\n"]))),Pr=Gt.li(dr||(dr=k(["\n border-top-right-radius: ",";\n border-top-left-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n :hover {\n background-color: #f2f2f2;\n }\n"])),function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"}),jr=Gt.div(pr||(pr=k(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: left;\n align-items: center;\n justify-items: center;\n"]))),Mr=Gt.div(hr||(hr=k(["\n height: 1rem;\n width: 1rem;\n svg {\n height: 1rem;\n width: 1rem;\n fill: #1a3061;\n }\n"]))),Vr=Gt.span(gr||(gr=k(["\n margin-left: ",";\n margin-right: ",";\n"])),function(e){return e.$hasPrefixIcon?"0.5rem":"0px"},function(e){return e.$hasSuffixIcon?"0.5rem":"0px"}),Or=Gt.span(vr||(vr=k(["\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"]))),Dr=function(e){var t,n,r=e.text,a=e.onClick,i=e.url,o=e.openNewTab,s=e.isExternal,l=e.prefixIcon,u=e.suffixIcon,c=e.locale,m=e.bottomSeparator,f=void 0!==m&&m,p=e.isFirst,h=void 0!==p&&p,g=e.isLast,v=void 0!==g&&g;l&&(t="string"==typeof l&&Er.includes(l)?d.default.createElement(Ar,{inheritColor:!0,icon:l}):l),u&&(n="string"==typeof u&&Er.includes(u)?d.default.createElement(Ar,{inheritColor:!0,icon:u}):l);var y=d.default.createElement(jr,null,t&&d.default.createElement(Mr,null,t),d.default.createElement(Vr,{$hasPrefixIcon:!!l,$hasSuffixIcon:!!u||s},r),u&&d.default.createElement(Mr,null,n),s&&d.default.createElement(d.default.Fragment,null,d.default.createElement(Or,null,Ft.externalLink[c]),d.default.createElement(Mr,null,d.default.createElement(Ar,{inheritColor:!0,icon:"ExternalLink"}))));return a?d.default.createElement(Pr,{$isFirst:h,$isLast:v},d.default.createElement(Tr,{$separator:f,onClick:function(){return a()}},y)):i?d.default.createElement(Pr,{$isFirst:h,$isLast:v},d.default.createElement(Nr,o?{href:i,target:"_blank"}:{href:i},d.default.createElement(Tr,{$separator:f},y))):d.default.createElement(d.default.Fragment,null)},Ir=Gt.div(yr||(yr=k(["\n width: 2.5rem;\n height: 2.5rem;\n"]))),zr=Gt.button(br||(br=k(["\n width: 100%;\n height: 100%;\n svg {\n height: 1.5rem;\n width: 1.5rem;\n }\n background-color: transparent;\n border: none;\n cursor: pointer;\n"]))),Lr=Gt.div(wr||(wr=k(["\n width: 100%;\n height: 0;\n position: relative;\n"]))),Rr=Gt.div(xr||(xr=k(["\n display: flex;\n flex-flow: column;\n position: absolute;\n background-color: #fff;\n border-radius: 18px;\n top: 0.2rem;\n right: 0.2rem;\n border: 1px solid #bdbdbd;\n"]))),qr=Gt.ul(Sr||(Sr=k(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n"])));function Gr(e){var t,n,r=600,a=e.chart.chartWidth,i=e.chart.chartHeight,o=Math.max(.5,Math.min(2,a/i));return o<1?(t=(n=Math.max(r,Math.min(3e3,i)))*o)<r&&(n=(t=r)/o):(n=(t=Math.max(r,Math.min(3e3,a)))/o)<r&&(t=(n=r)*o),{finalWidth:t,finalHeight:n}}var _r,Br,$r,Fr,Hr,Wr,Ur=function(e){var t=e.viewData,n=e.currentChartRef,r=e.tableToggle,a=e.menuItemDefinitions,i=e.locale,o=e.menuIconInheritColor,s=void 0!==o&&o,l=d.default.useState(!1),u=l[0],c=l[1],m=d.default.useRef(null);document.addEventListener("mousedown",function(e){m.current&&u&&!m.current.contains(e.target)&&c(!1)});var f=ir(t,i),p=Cr(t,i),h=null==a?void 0:a.map(function(e,t){return"onClick"in e?d.default.createElement(Dr,{isFirst:0===t,bottomSeparator:t+1===a.length,locale:i,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,key:"customfmenuitem-"+t,text:e.text,onClick:e.onClick}):"url"in e?d.default.createElement(Dr,{isFirst:0===t,bottomSeparator:t+1===a.length,locale:i,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,isExternal:e.isExternal,key:"customlmenuitem-"+t,text:""+e.text,url:e.url,openNewTab:e.openNewTab}):void 0});return d.default.createElement(Ir,{ref:m},d.default.createElement(zr,{"aria-label":""+Ft.chartMenuLabel[i],"aria-expanded":u,onClick:function(){c(!u)}},d.default.createElement(Ar,{inheritColor:s,icon:u?"Times":"Bars"})),d.default.createElement(Lr,null,u&&d.default.createElement(Rr,null,d.default.createElement(qr,null,a&&h,d.default.createElement(Dr,{isFirst:!a,locale:i,prefixIcon:"Download",text:p.text,onClick:function(){return p.onClick()}}),d.default.createElement(Dr,{isLast:!n,bottomSeparator:!!n,locale:i,prefixIcon:"Download",text:f.text,onClick:function(){return f.onClick()}}),n&&d.default.createElement(d.default.Fragment,null,d.default.createElement(Dr,{locale:i,prefixIcon:"Download",text:Ft.downloadSVG[i],onClick:function(){return n.chart.exportChartLocal({filename:""+rr(t.tableReferenceName),type:"image/svg+xml",sourceWidth:Gr(n).finalWidth,sourceHeight:Gr(n).finalHeight,scale:1},{})}}),d.default.createElement(Dr,{isLast:!r,bottomSeparator:!!r,locale:i,prefixIcon:"Download",text:Ft.downloadPNG[i],onClick:function(){return n.chart.exportChartLocal({filename:""+rr(t.tableReferenceName),sourceWidth:Gr(n).finalWidth,sourceHeight:Gr(n).finalHeight,scale:1},{})}})),r&&d.default.createElement(Dr,{isLast:!0,locale:i,text:r.tableMode?Ft.toggleTableModeOffText[i]:Ft.toggleTableModeOnText[i],onClick:function(){return r.toggleHandler()}})))))},Yr=function(e){var n=e.view,r=e.locale,a=e.footnote,i=e.showTitles,o=void 0===i||i,s=e.showUnits,l=void 0===s||s,u=e.showSources,m=void 0===u||u,f=t.useMemo(function(){return c.v4()},[n,r]);return d.default.useEffect(function(){var e;null==(e=document.getElementById(f))||e.replaceChildren(),Qn(n,r,o,l,m,f,a)},[n,r,o,l,m,a]),d.default.createElement("div",{className:"tableChart",id:f})},Xr=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];var i=yt.apply(void 0,[e].concat(r)),o="sc-global-"+At(JSON.stringify(i)),s=new zt(i,o);function l(e){var n=st(),r=lt(),a=t.useContext(Vt),l=t.useRef(n.allocateGSInstance(o)).current;return"production"!==process.env.NODE_ENV&&d.default.Children.count(e.children)&&console.warn("The global style component "+o+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&i.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),n.server&&u(l,e,n,a,r),t.useLayoutEffect(function(){if(!n.server)return u(l,e,n,a,r),function(){return s.removeStyles(l,n)}},[l,e,n,a,r]),null}function u(e,t,n,r,a){if(s.isStatic)s.renderStyles(e,Ee,n,a);else{var i=pe({},t,{theme:St(t,r,l.defaultProps)});s.renderStyles(e,i,n,a)}}return"production"!==process.env.NODE_ENV&&xt(o),d.default.memo(l)}(_r||(_r=k(["\n /* @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Medium.ttf) format('truetype');\n }\n\n @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Regular.ttf) format('truetype');\n } */\n\n .highcharts-root {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n }\n\n .highcharts-tooltip-container {\n z-index: 999 !important;\n }\n\n .tableChart {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n overflow-x: auto;\n padding-left: 20px;\n padding-top: 38px;\n padding-right: 20px;\n }\n\n .tableChart:has(.title) {\n padding-top: 14px;\n }\n\n .tableChart table,\n .tableChart th,\n .tableChart td {\n border: 1px solid black;\n }\n\n .tableChart .title {\n margin-top: 0;\n font-size: 1.25rem;\n font-weight: 500;\n margin-bottom: 0rem;\n width: 90%;\n display: block;\n }\n\n .tableChart .subtitle {\n font-size: 1.25rem;\n font-weight: 400;\n margin-bottom: 2rem;\n margin-top: 6px;\n width: 90%;\n display: block;\n }\n"]))),Zr=Gt.div(Br||(Br=k(["\n width: 100%;\n position: relative;\n font-family: 'Barlow Semi Condensed';\n"]))),Kr=function(e){return d.default.createElement(Zr,null,d.default.createElement("h1",null,Ft.graphCreationError[e.locale]))},Jr=/*#__PURE__*/function(e){function t(t){var n;return(n=e.call(this,t)||this).state={hasError:!1},n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,S(n,r),t.getDerivedStateFromError=function(){return{hasError:!0}};var a=t.prototype;return a.componentDidCatch=function(e,t){console.error(e,t.componentStack)},a.render=function(){return this.state.hasError?this.props.fallback:this.props.children},t}(t.Component),Qr=Gt.div($r||($r=k(["\n width: 100%;\n position: relative;\n"]))),ea=Gt.div(Fr||(Fr=k(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n"]))),ta=Gt.div(Hr||(Hr=k(["\n display: ",";\n"])),function(e){return e.$tableMode?"none":"block"}),na=Gt.div(Wr||(Wr=k(["\n display: ",";\n"])),function(e){return e.$tableMode?"block":"none"}),ra=function(n){var r,a=n.pxGraphData,i=n.footnote,o=n.menuItemDefinitions,s=n.selectedVariableCodes,l=void 0===s?null:s,c=n.showContextMenu,m=void 0===c||c,f=n.menuIconInheritColor,h=void 0!==f&&f,g=n.showTableTitles,x=n.showTableUnits,S=n.showTableSources,k=tn(n.locale);r=k,"object"==typeof p.default&&(p.default.wrap(p.default.SVGRenderer.prototype,"init",function(e){e.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),v.default(p.default),y.default(p.default),b.default(p.default),w.default(p.default),p.default.setOptions(wn(r)));var C,E=d.default.useRef(null),A=d.default.useState(E.current),T=A[0],N=A[1],P=d.default.useState(!1),j=P[0],M=P[1],V=d.default.useState(0),O=V[0],D=V[1],I=t.useMemo(function(){try{return Vn(a.selectableVariableCodes,a.metaData,a.visualizationSettings.defaultSelectableVariableCodes,l)}catch(e){return console.error(e),{}}},[l,a]),z=t.useMemo(function(){try{return Gn(a,I)}catch(e){return console.error(e),null}},[I,a]);function L(){O!==window.innerWidth&&D(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(C),C=setTimeout(L,100)}),d.default.useEffect(function(){E.current&&N(E.current)},[E.current]);try{if(z&&a.visualizationSettings.visualizationType!==e.EVisualizationType.Table){var R=Mn(k,z);return d.default.createElement(Qr,null,m&&d.default.createElement(ea,null,d.default.createElement(Ur,{menuItemDefinitions:o,viewData:z,currentChartRef:T,locale:k,tableToggle:{tableMode:j,toggleHandler:function(){M(!j)}},menuIconInheritColor:h})),d.default.createElement(ta,{$tableMode:j},d.default.createElement(u.HighchartsReact,{ref:E,immutable:!0,highcharts:p.default,options:R})),d.default.createElement(na,{$tableMode:j},d.default.createElement(Yr,{showTitles:null==g||g,footnote:i,showUnits:!!x,showSources:!!S,view:z,locale:k})))}if(z&&a.visualizationSettings.visualizationType===e.EVisualizationType.Table)return d.default.createElement(Qr,null,m&&d.default.createElement(ea,null,d.default.createElement(Ur,{menuItemDefinitions:o,viewData:z,locale:k,menuIconInheritColor:h})),d.default.createElement(Yr,{showTitles:null!=g&&g,footnote:i,showUnits:!!x,showSources:!!S,view:z,locale:k}))}catch(e){return console.error(e),d.default.createElement(Kr,{locale:k})}return d.default.createElement(Kr,{locale:k})};e.AddTranslations=function(e){$t.AddTranslations(e)},e.BurgerMenu=Ur,e.Chart=function(e){var t=tn(e.locale);return d.default.createElement(Jr,{fallback:d.default.createElement(Kr,{locale:t})},d.default.createElement(Xr,null),d.default.createElement(ra,x({},e)))},e.ErrorBoundary=Jr,e.GlobalStyle=Xr,e.Icon=Ar,e.MenuItem=Dr,e.buildMinimalXlsxBlobAsync=kr,e.calculateExportDimensions=Gr,e.convertPxGrafResponseToView=Gn,e.convertPxGraphDataToChartOptions=Mn,e.defaultTheme=wn,e.drawChart=function(e,t,n,r){void 0===r&&(r=null);var a=tn(n);"object"==typeof h&&(v.default(h),y.default(h),b.default(h),w.default(h)),h.setOptions(wn(a));var i=Gn(t,Vn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=Mn(a,i);return h.chart(e,o)},e.extractSelectableVariableValues=Vn,e.generateCsv=ar,e.renderHtmlTable=Qn,e.viewToDownloadCSVOption=ir,e.viewToDownloadXLSOption=Cr});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("highcharts"),require("decimal.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/export-data.js"),require("highcharts/modules/offline-exporting.js"),require("fflate"),require("highcharts-react-official"),require("uuid")):"function"==typeof define&&define.amd?define(["exports","react","highcharts","decimal.js","highcharts/modules/accessibility.js","highcharts/modules/exporting.js","highcharts/modules/export-data.js","highcharts/modules/offline-exporting.js","fflate","highcharts-react-official","uuid"],t):t((e||self).pxvisualizer={},e.react,e.highcharts,e.Decimal,e.highchartsAccessibility,e.highchartsExporting,e.highchartsExportData,e.highchartsOfflineExporting,e.fflate,e.highchartsReactOfficial,e.uuid)}(this,function(e,t,n,r,i,a,o,s,l,u,c){function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var m=/*#__PURE__*/d(t),p=/*#__PURE__*/d(n),h=/*#__PURE__*/f(n),g=/*#__PURE__*/d(r),v=/*#__PURE__*/d(i),y=/*#__PURE__*/d(a),b=/*#__PURE__*/d(o),w=/*#__PURE__*/d(s);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t){return t||(t=e.slice(0)),e.raw=t,e}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e){var t={exports:{}};return e(t,t.exports),t.exports}var A="function"==typeof Symbol&&Symbol.for,N=A?Symbol.for("react.element"):60103,V=A?Symbol.for("react.portal"):60106,P=A?Symbol.for("react.fragment"):60107,j=A?Symbol.for("react.strict_mode"):60108,M=A?Symbol.for("react.profiler"):60114,I=A?Symbol.for("react.provider"):60109,O=A?Symbol.for("react.context"):60110,D=A?Symbol.for("react.async_mode"):60111,z=A?Symbol.for("react.concurrent_mode"):60111,L=A?Symbol.for("react.forward_ref"):60112,R=A?Symbol.for("react.suspense"):60113,q=A?Symbol.for("react.suspense_list"):60120,G=A?Symbol.for("react.memo"):60115,_=A?Symbol.for("react.lazy"):60116,B=A?Symbol.for("react.block"):60121,$=A?Symbol.for("react.fundamental"):60117,F=A?Symbol.for("react.responder"):60118,H=A?Symbol.for("react.scope"):60119;function W(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case N:switch(e=e.type){case D:case z:case P:case M:case j:case R:return e;default:switch(e=e&&e.$$typeof){case O:case L:case _:case G:case I:return e;default:return t}}case V:return t}}}function U(e){return W(e)===z}var Y={AsyncMode:D,ConcurrentMode:z,ContextConsumer:O,ContextProvider:I,Element:N,ForwardRef:L,Fragment:P,Lazy:_,Memo:G,Portal:V,Profiler:M,StrictMode:j,Suspense:R,isAsyncMode:function(e){return U(e)||W(e)===D},isConcurrentMode:U,isContextConsumer:function(e){return W(e)===O},isContextProvider:function(e){return W(e)===I},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===N},isForwardRef:function(e){return W(e)===L},isFragment:function(e){return W(e)===P},isLazy:function(e){return W(e)===_},isMemo:function(e){return W(e)===G},isPortal:function(e){return W(e)===V},isProfiler:function(e){return W(e)===M},isStrictMode:function(e){return W(e)===j},isSuspense:function(e){return W(e)===R},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===P||e===z||e===M||e===j||e===R||e===q||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===G||e.$$typeof===I||e.$$typeof===O||e.$$typeof===L||e.$$typeof===$||e.$$typeof===F||e.$$typeof===H||e.$$typeof===B)},typeOf:W},X=T(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var m=e.type;switch(m){case u:case c:case i:case o:case a:case f:return m;default:var g=m&&m.$$typeof;switch(g){case l:case d:case h:case p:case s:return g;default:return t}}case r:return t}}}var x=c,S=l,C=s,k=n,E=d,T=i,A=h,N=p,V=r,P=o,j=a,M=f,I=!1;function O(e){return w(e)===c}t.AsyncMode=u,t.ConcurrentMode=x,t.ContextConsumer=S,t.ContextProvider=C,t.Element=k,t.ForwardRef=E,t.Fragment=T,t.Lazy=A,t.Memo=N,t.Portal=V,t.Profiler=P,t.StrictMode=j,t.Suspense=M,t.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||w(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===o||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),Z=T(function(e){e.exports="production"===process.env.NODE_ENV?Y:X});function K(e){function t(e,r,l,u,f){for(var m,p,h,g,w,S=0,C=0,k=0,E=0,T=0,M=0,O=h=m=0,z=0,L=0,R=0,q=0,G=l.length,_=G-1,B="",$="",F="",H="";z<G;){if(p=l.charCodeAt(z),z===_&&0!==C+E+k+S&&(0!==C&&(p=47===C?10:47),E=k=S=0,G++,_++),0===C+E+k+S){if(z===_&&(0<L&&(B=B.replace(d,"")),0<B.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(z)}p=59}switch(p){case 123:for(m=(B=B.trim()).charCodeAt(0),h=1,q=++z;z<G;){switch(p=l.charCodeAt(z)){case 123:h++;break;case 125:h--;break;case 47:switch(p=l.charCodeAt(z+1)){case 42:case 47:e:{for(O=z+1;O<_;++O)switch(l.charCodeAt(O)){case 47:if(42===p&&42===l.charCodeAt(O-1)&&z+2!==O){z=O+1;break e}break;case 10:if(47===p){z=O+1;break e}}z=O}}break;case 91:p++;case 40:p++;case 34:case 39:for(;z++<_&&l.charCodeAt(z)!==p;);}if(0===h)break;z++}if(h=l.substring(q,z),0===m&&(m=(B=B.replace(c,"").trim()).charCodeAt(0)),64===m){switch(0<L&&(B=B.replace(d,"")),p=B.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=j}if(q=(h=t(r,L,h,p,f+1)).length,0<I&&(w=s(3,h,L=n(j,B,R),r,N,A,q,p,f,u),B=L.join(""),void 0!==w&&0===(q=(h=w.trim()).length)&&(p=0,h="")),0<q)switch(p){case 115:B=B.replace(x,o);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(r,n(r,B,R),h,u,f+1);F+=h,h=R=L=O=m=0,B="",p=l.charCodeAt(++z);break;case 125:case 59:if(1<(q=(B=(0<L?B.replace(d,""):B).trim()).length))switch(0===O&&(m=B.charCodeAt(0),45===m||96<m&&123>m)&&(q=(B=B.replace(" ",":")).length),0<I&&void 0!==(w=s(1,B,r,e,N,A,$.length,u,f,u))&&0===(q=(B=w.trim()).length)&&(B="\0\0"),m=B.charCodeAt(0),p=B.charCodeAt(1),m){case 0:break;case 64:if(105===p||99===p){H+=B+l.charAt(z);break}default:58!==B.charCodeAt(q-1)&&($+=i(B,m,p,B.charCodeAt(2)))}R=L=O=m=0,B="",p=l.charCodeAt(++z)}}switch(p){case 13:case 10:47===C?C=0:0===1+m&&107!==u&&0<B.length&&(L=1,B+="\0"),0<I*D&&s(0,B,r,e,N,A,$.length,u,f,u),A=1,N++;break;case 59:case 125:if(0===C+E+k+S){A++;break}default:switch(A++,g=l.charAt(z),p){case 9:case 32:if(0===E+S+C)switch(T){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===E+C+S&&(L=R=1,g="\f"+g);break;case 108:if(0===E+C+S+V&&0<O)switch(z-O){case 2:112===T&&58===l.charCodeAt(z-3)&&(V=T);case 8:111===M&&(V=M)}break;case 58:0===E+C+S&&(O=z);break;case 44:0===C+k+E+S&&(L=1,g+="\r");break;case 34:case 39:0===C&&(E=E===p?0:0===E?p:E);break;case 91:0===E+C+k&&S++;break;case 93:0===E+C+k&&S--;break;case 41:0===E+C+S&&k--;break;case 40:0===E+C+S&&(0===m&&(2*T+3*M==533||(m=1)),k++);break;case 64:0===C+k+E+S+O+h&&(h=1);break;case 42:case 47:if(!(0<E+S+k))switch(C){case 0:switch(2*p+3*l.charCodeAt(z+1)){case 235:C=47;break;case 220:q=z,C=42}break;case 42:47===p&&42===T&&q+2!==z&&(33===l.charCodeAt(q+2)&&($+=l.substring(q,z+1)),g="",C=0)}}0===C&&(B+=g)}M=T,T=p,z++}if(0<(q=$.length)){if(L=r,0<I&&void 0!==(w=s(2,$,L,e,N,A,q,u,f,u))&&0===($=w).length)return H+$+F;if($=L.join(",")+"{"+$+"}",0!=P*V){switch(2!==P||a($,2)||(V=0),V){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}V=0}}return H+$+F}function n(e,t,n){var i=t.trim().split(h);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var u=0;u<o;++u)t[l++]=r(e[u]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===P||2===P&&a(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(T,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return m.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(w,"tb");break;case 232:l=o.replace(w,"tb-rl");break;case 220:l=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(C,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(C,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,a,o,s,l,c){for(var d,f=0,m=t;f<I;++f)switch(d=M[f].call(u,e,m,n,r,i,a,o,s,l,c)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?P=1:(P=2,O=e):P=0),l}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var i=s(-1,n,r,r,N,A,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var a=t(j,r,n,0,0);return 0<I&&void 0!==(i=s(-2,a,r,r,N,A,a.length,0,0,0))&&(a=i),V=0,A=N=1,a}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,m=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,A=1,N=1,V=0,P=1,j=[],M=[],I=0,O=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:I=M.length=0;break;default:if("function"==typeof t)M[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}var J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Q(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ee=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,te=/* #__PURE__ */Q(function(e){return ee.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ae={};function oe(e){return Z.isMemo(e)?ie:ae[e.$$typeof]||ne}ae[Z.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ae[Z.Memo]=ie;var se=Object.defineProperty,le=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,ce=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype,me=function e(t,n,r){if("string"!=typeof n){if(fe){var i=de(n);i&&i!==fe&&e(t,i,r)}var a=le(n);ue&&(a=a.concat(ue(n)));for(var o=oe(t),s=oe(n),l=0;l<a.length;++l){var u=a[l];if(!(re[u]||r&&r[u]||s&&s[u]||o&&o[u])){var c=ce(n,u);try{se(t,u,c)}catch(e){}}}}return t};function pe(){return(pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var he=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},ge=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Z.typeOf(e)},ve=Object.freeze([]),ye=Object.freeze({});function be(e){return"function"==typeof e}function we(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function xe(e){return e&&"string"==typeof e.styledComponentId}var Se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ce="undefined"!=typeof window&&"HTMLElement"in window,ke=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),Ee={},Te="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function Ae(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function Ne(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(Ae.apply(void 0,[Te[e]].concat(n)).trim())}var Ve=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&Ne(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),Pe=new Map,je=new Map,Me=1,Ie=function(e){if(Pe.has(e))return Pe.get(e);for(;je.has(Me);)Me++;var t=Me++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&Ne(16,""+t),Pe.set(e,t),je.set(t,e),t},Oe=function(e){return je.get(e)},De=function(e,t){t>=Me&&(Me=t+1),Pe.set(e,t),je.set(t,e)},ze="style["+Se+'][data-styled-version="5.3.11"]',Le=new RegExp("^"+Se+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Re=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},qe=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var s=o.match(Le);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(De(u,l),Re(e,u,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(o)}}},Ge=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Se))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(Se,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},_e=function(){function e(e){var t=this.element=Ge(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}Ne(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Be=function(){function e(e){var t=this.element=Ge(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$e=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Fe=Ce,He={isServer:!Ce,useCSSOMInjection:!ke},We=function(){function e(e,t,n){void 0===e&&(e=ye),void 0===t&&(t={}),this.options=pe({},He,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ce&&Fe&&(Fe=!1,function(e){for(var t=document.querySelectorAll(ze),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(Se)&&(qe(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Ie(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(pe({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new $e(i):r?new _e(i):new Be(i),new Ve(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ie(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ie(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ie(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=Oe(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(o&&s&&o.size){var l=Se+".g"+i+'[id="'+a+'"]',u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Ue=/(a)(d)/gi,Ye=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ye(t%52)+n;return(Ye(t%52)+n).replace(Ue,"$1-$2")}var Ze=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ke=function(e){return Ze(5381,e)};function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(be(n)&&!xe(n))return!1}return!0}var Qe=Ke("5.3.11"),et=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=Ze(Qe,t),this.baseStyle=n,We.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=gt(this.rules,e,t,n).join(""),o=Xe(Ze(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var s=n(a,"."+o,void 0,r);t.insertRules(r,o,s)}i.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,u=Ze(this.baseHash,n.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f,"production"!==process.env.NODE_ENV&&(u=Ze(u,f+d));else if(f){var m=gt(f,e,t,n),p=Array.isArray(m)?m.join(""):m;u=Ze(u,p+d),c+=p}}if(c){var h=Xe(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}i.push(h)}}return i.join(" ")},e}(),tt=/^\s*\/\/.*$/gm,nt=[":","[",".","#"],rt=m.default.createContext(),it=m.default.createContext(),at=new We,ot=function(e){var t,n,r,i,a=ye.options,o=ye.plugins,s=void 0===o?ve:o,l=new K(void 0===a?ye:a),u=[],c=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){u.push(e)}),d=function(e,r,a){return 0===r&&-1!==nt.indexOf(a[n.length])||a.match(i)?e:"."+t};function f(e,a,o,s){void 0===s&&(s="&");var u=e.replace(tt,""),c=a&&o?o+" "+a+" { "+u+" }":u;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),l(o||!a?"":a,c)}return l.use([].concat(s,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},c,function(e){if(-2===e){var t=u;return u=[],t}}])),f.hash=s.length?s.reduce(function(e,t){return t.name||Ne(15),Ze(e,t.name)},5381).toString():"",f}();function st(){return t.useContext(rt)||at}function lt(){return t.useContext(it)||ot}var ut=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ot);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Ne(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ot),this.name+e.hash},e}(),ct=/([A-Z])/,dt=/([A-Z])/g,ft=/^ms-/,mt=function(e){return"-"+e.toLowerCase()};function pt(e){return ct.test(e)?e.replace(dt,mt).replace(ft,"-ms-"):e}var ht=function(e){return null==e||!1===e||""===e};function gt(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o<s;o+=1)""!==(i=gt(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(ht(e))return"";if(xe(e))return"."+e.styledComponentId;if(be(e)){if("function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&Z.isElement(l)&&console.warn(we(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),gt(l,t,n,r)}var u;return e instanceof ut?n?(e.inject(n,r),e.getName(r)):e:ge(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!ht(t[o])&&(Array.isArray(t[o])&&t[o].isCss||be(t[o])?a.push(pt(o)+":",t[o],";"):ge(t[o])?a.push.apply(a,e(t[o],o)):a.push(pt(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in J||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString()}var vt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return be(e)||ge(e)?vt(gt(he(ve,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:vt(gt(he(e,n)))}var bt=/invalid hook call/i,wt=new Set,xt=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(e){if(bt.test(e))a=!1,wt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.apply(void 0,[e].concat(n))}},t.useRef(),a&&!wt.has(r)&&(console.warn(r),wt.add(r))}catch(e){bt.test(e.message)&&wt.delete(r)}finally{console.error=i}}},St=function(e,t,n){return void 0===n&&(n=ye),e.theme!==n.theme&&e.theme||t||n.theme},Ct=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,kt=/(^-|-$)/g;function Et(e){return e.replace(Ct,"-").replace(kt,"")}var Tt=function(e){return Xe(Ke(e)>>>0)};function At(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Nt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Vt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pt(e,t,n){var r=e[n];Nt(t)&&Nt(r)?jt(r,t):e[n]=t}function jt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Nt(o))for(var s in o)Vt(s)&&Pt(e,o[s],s)}return e}var Mt=m.default.createContext(),It={};function Ot(e,n,r){var i=xe(e),a=!At(e),o=n.attrs,s=void 0===o?ve:o,l=n.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Et(e);It[n]=(It[n]||0)+1;var r=n+"-"+Tt("5.3.11"+n+It[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):l,c=n.displayName,d=void 0===c?function(e){return At(e)?"styled."+e:"Styled("+we(e)+")"}(e):c,f=n.displayName&&n.componentId?Et(n.displayName)+"-"+n.componentId:n.componentId||u,p=i&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,h=n.shouldForwardProp;i&&e.shouldForwardProp&&(h=n.shouldForwardProp?function(t,r,i){return e.shouldForwardProp(t,r,i)&&n.shouldForwardProp(t,r,i)}:e.shouldForwardProp);var g,v=new et(r,f,i?e.componentStyle:void 0),y=v.isStatic&&0===s.length,b=function(e,n){return function(e,n,r,i){var a=e.attrs,o=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,d=e.target,f=function(e,t,n){void 0===e&&(e=ye);var r=pe({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,a,o=e;for(t in be(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(a=o[t],(n=i[t])&&a?n+" "+a:n||a):o[t]}),[r,i]}(St(n,t.useContext(Mt),s)||ye,n,a),m=f[1],p=function(e,t,n,r){var i=st(),a=lt(),o=e.generateAndInjectStyles(t?ye:n,i,a);return"production"!==process.env.NODE_ENV&&!t&&r&&r(o),o}(o,i,f[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),h=r,g=m.$as||n.$as||m.as||n.as||d,v=At(g),y=m!==n?pe({},n,{},m):n,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(u?u(w,te,g):!v||te(w))&&(b[w]=y[w]));return n.style&&m.style!==n.style&&(b.style=pe({},n.style,{},m.style)),b.className=Array.prototype.concat(l,c,p!==c?p:null,n.className,m.className).filter(Boolean).join(" "),b.ref=h,t.createElement(g,b)}(g,e,n,y)};return b.displayName=d,(g=m.default.forwardRef(b)).attrs=p,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=h,g.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ve,g.styledComponentId=f,g.target=i?e.target:e,g.withComponent=function(e){var t=n.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(n,["componentId"]),a=t&&t+"-"+(At(e)?e:Et(we(e)));return Ot(e,pe({},i,{attrs:p,componentId:a}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?jt({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(xt(d,f),g.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){!r&&(n[i]=!0,Object.keys(n).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={})}}(d,f)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&me(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Dt=function(e){return function e(t,n,r){if(void 0===r&&(r=ye),!Z.isValidElementType(n))return Ne(1,String(n));var i=function(){return t(n,r,yt.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,pe({},r,{},i))},i.attrs=function(i){return e(t,n,pe({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Ot,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Dt[e]=Dt(e)});var zt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),We.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(gt(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&We.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Lt,Rt,qt,Gt=Dt;e.EVisualizationType=void 0,(Lt=e.EVisualizationType||(e.EVisualizationType={})).VerticalBarChart="VerticalBarChart",Lt.GroupVerticalBarChart="GroupVerticalBarChart",Lt.StackedVerticalBarChart="StackedVerticalBarChart",Lt.PercentVerticalBarChart="PercentVerticalBarChart",Lt.HorizontalBarChart="HorizontalBarChart",Lt.GroupHorizontalBarChart="GroupHorizontalBarChart",Lt.StackedHorizontalBarChart="StackedHorizontalBarChart",Lt.PercentHorizontalBarChart="PercentHorizontalBarChart",Lt.PyramidChart="PyramidChart",Lt.PieChart="PieChart",Lt.LineChart="LineChart",Lt.ScatterPlot="ScatterPlot",Lt.Table="Table",e.EVariableType=void 0,(Rt=e.EVariableType||(e.EVariableType={})).Unknown="N",Rt.Time="T",Rt.Ordinal="P",Rt.Geological="G",Rt.Content="C",Rt.OtherClassificatory="F",e.ETimeVariableInterval=void 0,(qt=e.ETimeVariableInterval||(e.ETimeVariableInterval={})).Week="Week",qt.Month="Month",qt.Quarter="Quarter",qt.HalfYear="HalfYear",qt.Year="Year",qt.Decade="Decade",qt.Irregular="Irregular";var _t={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},Bt={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."]}},$t=new(/*#__PURE__*/function(){function e(){var e=this;this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=function(){return Object.keys(e.Translations.empty)},this.Translations=_t,this.ArrayTranslations=Bt}return e.prototype.AddTranslations=function(e){for(var t in e.Translations)t in this.Translations&&(this.Translations[t]=x({},this.Translations[t],e.Translations[t]));for(var n in e.ArrayTranslations)n in this.ArrayTranslations&&(this.ArrayTranslations[n]=x({},this.ArrayTranslations[n],e.ArrayTranslations[n]))},e}()),Ft=$t.Translations,Ht=$t.ArrayTranslations,Wt=$t.GetAllLanguages,Ut=function(e){return e.reduce(function(e,t){return e.map(function(e){return t.map(function(t){return e.concat([t])})}).reduce(function(e,t){return e.concat(t)},[])},[[]])};function Yt(e,t,n){return n.findIndex(function(t){return JSON.stringify(t)===JSON.stringify(e)})===t}var Xt=["",".","..","...","....",".....","......","-"];function Zt(e,t,n,r){if(void 0===r&&(r=!1),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 Kt(e,t,n){if(void 0===n&&(n=!1),e)return n?Ft.dataMissing[t]:Xt[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Jt(e,t){return function(){var n,r,i,a,o,s=[];e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&s.push((null==(a=e.rowVarNames)?void 0:a.map(function(e){return e[t]}).join(", "))+": "+this.series.name),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&s.push((null==(o=e.colVarNames)?void 0:o.map(function(e){return e[t]}).join(", "))+": "+this.point.name);var l=null!=(n=null==(r=this.point.options.custom)?void 0:r.precision)?n:0;return s.push(un(e,this,t,l)),null!=(i=this.point.options.custom)&&i.preliminary&&s.push(Ft.preliminaryData[t]),s.join("<br/>")}}function Qt(e,t){return function(n){var r,i,a,o,s,l=[];e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&l.push((null==(o=e.rowVarNames)?void 0:o.map(function(e){return e[t]}).join(", "))+": "+cn(n.series.name,t)),e.colVarNames&&e.colVarNames.length>0&&n.name&&l.push((null==(s=e.colVarNames)?void 0:s.map(function(e){return e[t]}).join(", "))+": "+cn(n.name,t));var u=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return l.push(un(e,n,t,u)),null!=(a=n.options.custom)&&a.preliminary&&l.push(Ft.preliminaryData[t]),l.join(", ")}}function en(e){return function(){return this.value.toLocaleString(e)}}var tn=function(e){return Wt().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Wt()[0]};function nn(e){void 0===e&&(e=null);var t=e&&e>=15?25:50;return function(){return on(this.value,t)}}function rn(e){return function(){var t,n;if(!this.point.y)return"";var r=null!=(t=null==(n=this.point.options.custom)?void 0:n.precision)?t:0;return Zt(this.point.y,r,e,!0)}}function an(){return function(){return on(this.name,200)}}var on=function(e,t){void 0===t&&(t=50);var n=e.toString().length;return e.toString().slice(0,t).trim()+(n>t?"...":"")};function sn(e,t){return function(){var n,r,i,a=e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", "),o=e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(function(e){return e[t]}).join(", "),l="";return a&&a.length>0&&this.series.name&&(l+=a+": "+this.point.x.toLocaleString(t)+"<br />"),o&&o.length>0&&this.key&&(l+=o+": "+(null==(i=this.point.y)?void 0:i.toLocaleString(t))+"<br />"),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=s+": "+e.columnNameGroups[this.point.index].map(function(e){return e[t]}).join(", ")),null!=(r=this.point.options.custom)&&r.preliminary&&(l+="<br />"+Ft.preliminaryData[t]),l}}function ln(e,t){var n=e.map(function(e){return e.unit}).filter(Yt);if(1===n.length)return n[0][t];if(n.length>1)return e.map(function(e){return e.name[t]+": "+e.unit[t]}).join(", ");throw new Error("Missing required unit data")}function un(t,n,r,i){if(null==n.y)return"";var a,o,s=Number(n.y.toFixed(i));return t.visualizationSettings.visualizationType===e.EVisualizationType.PyramidChart?Math.abs(s).toLocaleString(r):t.visualizationSettings.visualizationType==e.EVisualizationType.PercentHorizontalBarChart||t.visualizationSettings.visualizationType==e.EVisualizationType.PercentVerticalBarChart?Zt(null!=(a=n.percentage)?a:null,1,r)+"% ("+s.toLocaleString(r)+" "+ln(t.units,r)+")":null!=(o=s.toLocaleString(r))?o:""}function cn(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){var n=e.split("*")[0];if(/^\d{4}M\d{1,2}$/.test(n)){var r=n.split("M");return r[0]+" "+Ht.months[t][Number(r[1])-1]}if(/^\d{4}Q\d{1,2}$/.test(n)){var i=n.split("Q");return i[0]+" "+function(e,t){var n=Ht.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?""+e+n[r]:e+"."}(i[1],t)+" "+Ft.quarter[t]}console.log("Unsupported time pattern")}return e}var dn,fn=function(e,t,n,r){return void 0===r&&(r=!1),e.series.map(function(i,a){return{index:r?e.series.length-1-a:a,animation:!1,type:t,name:i.rowNameGroup.map(function(e){return e[n]}).join(", "),data:i.series.map(function(t,r){return{y:t.value,name:e.columnNameGroups[r].map(function(e){return e[n]}).join(", "),custom:{preliminary:t.preliminary,precision:t.precision}}})}})};function mn(e,t,n){return function(){var r,i,a,o=function(e,t,n,r){var i;if(void 0===r&&(r=new g.default(0)),e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):g.default.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;var a=function(e){var t=Array.from({length:n},function(e,t){return n-t}).reduce(function(t,n){var i,a=function(e){if(e.equals(0))return new g.default(0);var t=g.default.pow(10,g.default.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 a.greaterThanOrEqualTo(r)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){for(var t=0,n=5;t<50&&e.mod(n).equals(0)&&(t++,e.mod(n*=2).equals(0));)t++,n*=5;return t}(i):function(e){var t=e.toString();if(t.includes("e-")){var n=t.split("e-"),r=Number.parseInt(n[1]);return n[0].endsWith("5")?-2*r+1:-2*r}var i=t.split(".")[1];return i.endsWith("5")?-2*i.length+1:-2*i.length}(i)),a]),t},[]).sort(function(e,t){return t[0]-e[0]});return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(function(e,t){return e[1].minus(t[1]).toNumber()})}(g.default.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(function(e){return e[1]}).find(function(r){return e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)}))?i:new g.default(NaN):a[0][1]}(e,t,(r=this.chart.plotWidth,i=g.default.pow(10,g.default.log10(g.default.max(e.abs(),t.abs())).floor()),a=Math.ceil(r/(12*(i.toString().length+(e.isNeg()?1:0))+25)-1),Math.max(a,e.isNegative()&&t.isPositive()?2:1)),n),s=e.greaterThanOrEqualTo(0)?new g.default(0):e.div(o).floor().mul(o),l=t.lessThanOrEqualTo(0)?new g.default(0):t.div(o).ceil().mul(o);return Array.from({length:l.minus(s).div(o).plus(1).toNumber()},function(e,t){return o.mul(t).plus(s).toNumber()})}}function pn(t,n){if(n){var r=new Date(n);switch(t){case e.ETimeVariableInterval.Irregular:case e.ETimeVariableInterval.Week:return;case e.ETimeVariableInterval.Month:return{pointStart:r.getTime(),pointIntervalUnit:"month"};case e.ETimeVariableInterval.Quarter:case e.ETimeVariableInterval.HalfYear:return;case e.ETimeVariableInterval.Year:return{pointStart:r.getTime(),pointIntervalUnit:"year"}}}}function hn(t,n){if(t.seriesType!==dn.Time){var r=t.columnNameGroups.map(function(e){return e.map(function(e){return e[n]}).join(", ")}),i=r.every(function(e){return!isNaN(parseFloat(e))});return t.seriesType===dn.Ordinal&&i?function(e,t){return{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),ordinal:!0,tickPositioner:(n=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),r=Math.max.apply(Math,e.columnNameGroups.map(function(e){return e.reduce(function(e,n){return(e>0?1:0)+e+n[t].length},0)})),function(){var e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},function(t,n){return n*e})})};var n,r}(t,n):{ordinal:t.seriesType==dn.Ordinal,type:"category",categories:r,labels:{autoRotation:[-45]}}}switch(t.visualizationSettings.timeVariableIntervals){case e.ETimeVariableInterval.Week:return gn(t,n);case e.ETimeVariableInterval.Month:return vn();case e.ETimeVariableInterval.Quarter:return yn(t,n);case e.ETimeVariableInterval.HalfYear:return bn(t,n);case e.ETimeVariableInterval.Year:return{type:"datetime"};default:return{type:"category",categories:t.columnNameGroups.map(function(e){return e.map(function(e){return e[n]}).join(", ")})}}}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(dn||(dn={}));var gn=function(e,t){return{type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", ")}}}},vn=function(e,t){return{type:"datetime",ordinal:!1,labels:{formatter:function(){return p.default.dateFormat("%YM%m",Number(this.value))}}}},yn=function(e,t){var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var 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){var n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},bn=function(e,t){var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var 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){var n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},wn=function(e){return{accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:Ft.thousandsSepAccessibility[e],credits:Ft.credits[e],chartTypes:{barMultiple:Ft.barMultiple[e],barSingle:Ft.barSingle[e],columnMultiple:Ft.columnMultiple[e],columnSingle:Ft.columnSingle[e],lineSingle:Ft.lineSingle[e],lineMultiple:Ft.lineMultiple[e],pieSingle:Ft.pieSingle[e],scatterSingle:Ft.scatterSingle[e],scatterMultiple:Ft.scatterMultiple[e],defaultSingle:Ft.defaultSingle[e],defaultMultiple:Ft.defaultMultiple[e]},defaultChartTitle:Ft.defaultChartTitle[e],exporting:{chartMenuLabel:Ft.chartMenuLabel[e],menuButtonLabel:Ft.menuButtonLabel[e]},legend:{legendItem:Ft.legendItem[e],legendLabel:Ft.legendLabel[e],legendLabelNoTitle:Ft.legendLabelNoTitle[e]},axis:{rangeCategories:Ft.rangeCategories[e],rangeFromTo:Ft.rangeFromTo[e],timeRangeDays:Ft.timeRangeDays[e],timeRangeHours:Ft.timeRangeHours[e],timeRangeMinutes:Ft.timeRangeMinutes[e],timeRangeSeconds:Ft.timeRangeSeconds[e],xAxisDescriptionPlural:Ft.xAxisDescriptionPlural[e],xAxisDescriptionSingular:Ft.xAxisDescriptionSingular[e],yAxisDescriptionPlural:Ft.yAxisDescriptionPlural[e],yAxisDescriptionSingular:Ft.yAxisDescriptionSingular[e]},series:{summary:{bar:Ft.seriesSummaryBar[e],barCombination:Ft.seriesSummaryBarCombination[e],column:Ft.seriesSummaryColumn[e],columnCombination:Ft.seriesSummaryColumnCombination[e],default:Ft.seriesSummaryDefault[e],defaultCombination:Ft.seriesSummaryDefaultCombination[e],line:Ft.seriesSummaryLine[e],lineCombination:Ft.seriesSummaryLineCombination[e],pie:Ft.seriesSummaryPie[e],pieCombination:Ft.seriesSummaryPieCombination[e],scatter:Ft.seriesSummaryScatter[e],scatterCombination:Ft.seriesSummaryScatterCombination[e]},xAxisDescription:Ft.xAxisDescription[e],yAxisDescription:Ft.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:Ft.endOfChartMarker[e]},chartContainerLabel:Ft.chartContainerLabel[e]},thousandsSep:Ft.thousandsSep[e],decimalPoint:Ft.decimalPoint[e],contextButtonTitle:Ft.contextButtonTitle[e],downloadCSV:Ft.downloadCSV[e],downloadPNG:Ft.downloadPNG[e],downloadSVG:Ft.downloadSVG[e],months:Ht.months[e],shortMonths:Ht.shortMonths[e],weekdays:Ht.weekdays[e],loading:Ft.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:en(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}},xn=function(e,t){return{accessibility:{point:{descriptionFormatter:Qt(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},credits:{text:Ft.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:Jt(e,t)},yAxis:[Sn]}},Sn={plotLines:[{value:0,color:"#000",width:1}]},Cn=function(e,t){var n,r=null==(n=wn(t).tooltip)?void 0:n.style;return{enabled:e.visualizationSettings.showDataPoints,style:r,formatter:rn(t)}},kn=function(e,t){var n,r,i,a;return x({},Sn,{tickPositioner:(n=e.series.map(function(e){return e.series}),r=null,i=null,a=0,n.forEach(function(e){e.forEach(function(e){e.value&&(!r||e.value<r)&&(r=e.value),e.value&&(!i||e.value>i)&&(i=e.value),e.precision>a&&(a=e.precision)})}),r&&i?mn(new g.default(r),new g.default(i),new g.default(Math.pow(10,-a))):function(){return[]}),title:{text:ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}})},En=function(e,t){return x({},xn(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:nn(e.columnNameGroups.length),style:{width:200}}}})},Tn=function(e,t){return x({},En(e,t),{series:fn(e,"bar",t,!0),legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30}})},An=function(e,t){return x({},xn(e,t),{chart:{type:"column"},xAxis:hn(e,t)})},Nn=function(e,t){return x({},An(e,t),{series:fn(e,"column",t),yAxis:{softMin:0,softMax:0,title:{text:ln(e.units,t)}}})},Vn=function(e,t){return x({},An(e,t),{series:fn(e,"column",t,!0),legend:{enabled:!0,layout:"vertical"}})},Pn=function(e,t){return"\n "+e[1].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.x}<br/>\n "+e[0].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.y}\n "},jn=function(t,n){switch(n.visualizationSettings.visualizationType){case e.EVisualizationType.LineChart:return function(e,t){var n,r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return x({},xn(e,t),{chart:{type:"line"},xAxis:x({},hn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:x({},Sn,{softMin:r,softMax:r,title:{text:ln(e.units,t)}}),plotOptions:{line:{dataLabels:x({},Cn(e,t)),marker:{enabled:!1}},series:pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:an()},series:fn(e,"line",t),exporting:{enabled:!1}})}(n,t);case e.EVisualizationType.VerticalBarChart:return function(e,t){return x({},Nn(e,t),{yAxis:x({},Sn,{softMin:0,softMax:0,title:{text:ln(e.units,t)}}),plotOptions:{series:x({},pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:x({},Cn(e,t))})},exporting:{enabled:!1}})}(n,t);case e.EVisualizationType.HorizontalBarChart:return function(e,t){return x({},En(e,t),{series:fn(e,"bar",t),chart:{type:"bar",spacingBottom:60},yAxis:x({},kn(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:x({},Cn(e,t))}}})}(n,t);case e.EVisualizationType.GroupVerticalBarChart:return function(e,t){return x({},Nn(e,t),{plotOptions:{series:x({},pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:x({},Cn(e,t))})},legend:{enabled:!0,labelFormatter:an()}})}(n,t);case e.EVisualizationType.GroupHorizontalBarChart:return function(e,t){return x({},En(e,t),{series:fn(e,"bar",t),yAxis:x({},kn(e,t),{softMin:0,softMax:0}),legend:{enabled:!0,layout:"vertical",margin:30},plotOptions:{series:{dataLabels:x({},Cn(e,t))}}})}(n,t);case e.EVisualizationType.StackedVerticalBarChart:return function(e,t){return x({},Vn(e,t),{yAxis:{softMin:0,softMax:0,title:{text:ln(e.units,t)}},plotOptions:{column:{stacking:"normal",dataLabels:x({},Cn(e,t))},series:pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}})}(n,t);case e.EVisualizationType.StackedHorizontalBarChart:return function(e,t){return x({},Tn(e,t),{yAxis:{softMin:0,softMax:0,tickPositioner:(n=e.series.map(function(e){return e.series}),r=null,i=null,a=0,n[0].forEach(function(e,t){var o=n.reduce(function(e,n){var r;return e+(null!=(r=n[t].value)?r:0)},0);o&&(!r||o<r)&&(r=o),o&&(!i||o>i)&&(i=o),e.precision>a&&(a=e.precision)}),r&&i?mn(new g.default(r),new g.default(i),new g.default(Math.pow(10,-a))):function(){return[]}),title:{text:ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:x({},Cn(e,t))}}});var n,r,i,a}(n,t);case e.EVisualizationType.PercentVerticalBarChart:return function(e,t){return x({},Vn(e,t),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent",dataLabels:x({},Cn(e,t))},series:pn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}})}(n,t);case e.EVisualizationType.PercentHorizontalBarChart:return function(e,t){return x({},Tn(e,t),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:x({},Cn(e,t))}}})}(n,t);case e.EVisualizationType.PieChart:return function(e,t){var n,r;return x({},xn(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){var e=r?" ("+Math.round(this.percentage)+"%)":"";return on(this.point.name,20)+e})}}},series:e.series.map(function(n){return{animation:!1,type:"pie",name:n.rowNameGroup.map(function(e){return e[t]}).join(", "),data:n.series.map(function(n,r){return{y:n.value,name:e.columnNameGroups[r].map(function(e){return e[t]}).join(", "),unit:ln(e.units,t),custom:{preliminary:n.preliminary,precision:n.precision}}})}})})}(n,t);case e.EVisualizationType.PyramidChart:return function(e,t){var n=e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),r=Math.max.apply(Math,e.series.map(function(e){return Math.max.apply(Math,e.series.map(function(e){var t;return null!=(t=e.value)?t:0}))}));return x({},xn(e,t),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:x({},Sn,{min:-Math.abs(r),max:Math.abs(r),title:{text:ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:{enabled:!0,margin:30},series:e.series.map(function(n,r){return{animation:!1,type:"bar",name:n.rowNameGroup.map(function(e){return e[t]}).join(", "),data:n.series.map(function(n,i){return{y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[i].map(function(e){return e[t]}).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}})}}),plotOptions:{series:{stacking:"normal",dataLabels:x({},Cn)}},exporting:{enabled:!1}})}(n,t);case e.EVisualizationType.ScatterPlot:return function(e,t){var n,r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return x({},xn(e,t),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:x({},Sn,{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map(function(t,n){var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:Pn(e.series,t),formatter:sn(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})}(n,t);default:throw new Error("Unsupported chart type")}},Mn=function(t,n,r,i){if(0===t.length)return{};var a=t,o={};if(i){var s=In(a,i);if(a=s.updatedArray,o=x({},o,s.parsedValues),0===a.length)return o}if(r){var l=On(a,r);if(a=l.updatedArray,o=x({},o,l.parsedValues),0===a.length)return o}return a.forEach(function(t){var r=n.findIndex(function(e){return e.code===t});r>-1&&(o[t]=n[r].type===e.EVariableType.Time?[n[r].values[n[r].values.length-1].code]:[n[r].values[0].code])}),o},In=function(e,t){var n=Object.keys(t),r={},i=e.map(function(e){return n.findIndex(function(t){return t===e})>-1&&t[e].length>0?(r[e]=t[e],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:i}},On=function(e,t){var n=Object.keys(t),r={},i=e.map(function(e){var i=n.findIndex(function(t){return t===e});return i>-1?(r[e]=t[n[i]],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:i}},Dn=function(e,t){var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},zn=function(e,t){var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Ln(e,t,n){return qn(Rn(e,e.series[t].series,n),t)}function Rn(e,t,n){var r=function(e,t){var n=[].concat(Array(e.length).keys());return n.sort(function(n,r){return t(e[n],e[r])}),n}(t,n),i=r.map(function(t){return e.columnNameGroups[t]}),a=e.series.map(function(e){return function(e,t){return x({},e,{series:t.map(function(t){return e.series[t]})})}(e,r)});return x({},e,{columnNameGroups:i,series:a})}function qn(e,t){var n=[];return n.push(e.series[t]),e.series.forEach(function(e,r){r!==t&&n.push(e)}),x({},e,{series:n})}function Gn(e,t){if(Object.keys(t).includes(e.code)){var n=e.values.filter(function(n){return 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 _n(e,t){for(var n,r=[],i=function(){var t=n.value,i=e.find(function(e){return e.code===t});i&&r.push(i)},a=E(t);!(n=a()).done;)i();return r}var Bn=/*#__PURE__*/function(){function t(t,n){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=t;var r=t.metaData,i=r.map(function(e){return e.values.length});this.selectedViewMeta=this.getSelectedView(t,n),this.coordinates=Array.from({length:this.selectedViewMeta.length},function(){return[]}),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(r),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(function(t){return t.type===e.EVariableType.Content}),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(function(t){return t.type===e.EVariableType.Time}),this.indices=Array.from({length:r.length},function(){return 0}),this.lastIndices=this.selectedViewMeta.map(function(e){return e.values.length-1}),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(i),this.dataLength=this.selectedViewMeta.map(function(e){return e.values.length}).reduce(function(e,t){return e*t},1),this.dataIndex=0,this.setCurrentIndex()}var n=t.prototype;return n.initializeCoordinates=function(e){for(var t=this,n=function(){var n,i=t.variableOrder[r],a=t.selectedViewMeta[r].code,o=null==(n=e.find(function(e){return e.code===a}))?void 0:n.values,s=t.selectedViewMeta.find(function(e){return e.code===a});t.coordinates[i]=s.values.map(function(e){return o.findIndex(function(t){return t===e})})},r=0;r<this.selectedViewMeta.length;r++)n()},n.getViewSeries=function(){var e=0,t=[],n=[];do{var r=this.createDataCell();t.push(r),++e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n},n.generateRowNameGroup=function(){var e=this;return this.selectedViewMeta.slice(0,this.rowAmount).map(function(t,n){return t.values[e.indices[e.variableOrder[n]]].name})},n.next=function(){for(var e=this.lastCoordinateIndex;e>=0;e--){var t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1},n.createDataCell=function(){var e,t,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},n.getSelectedView=function(e,t){var n=e.metaData.map(function(e){return x({},e,{values:Gn(e,t)})}),r=_n(n.filter(function(t){return e.rowVariableCodes.includes(t.code)&&t.values.length>1}),e.rowVariableCodes),i=_n(n.filter(function(t){return e.columnVariableCodes.includes(t.code)&&t.values.length>1}),e.columnVariableCodes),a=_n(n.filter(function(t){return e.selectableVariableCodes.includes(t.code)}),e.selectableVariableCodes),o=a.filter(function(e){return e.values.length>1&&!r.some(function(t){return t.code==e.code})&&!i.some(function(t){return t.code==e.code})}),s=a.filter(function(e){return 1==e.values.length}),l=n.filter(function(e){return!r.some(function(t){return t.code==e.code})&&!i.some(function(t){return t.code==e.code})&&!a.some(function(t){return t.code==e.code})}),u=[].concat(o,r,i,s,l);return this.rowLength=Ut(n.filter(function(t){return e.columnVariableCodes.includes(t.code)}).map(function(e){return e.values})).length,this.rowAmount=r.length+o.length,u},n.getVariableOrder=function(){var e=this.responseObj.metaData.map(function(e){return e.code}),t=this.selectedViewMeta.map(function(t){return e.indexOf(t.code)});return t},n.generateRCP=function(e){for(var t=Array.from({length:e.length}),n=1,r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t},n.setCurrentIndex=function(){this.dataIndex=0;for(var e=0;e<=this.lastCoordinateIndex;e++){var t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}},n.getCurrentTimeValue=function(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]},t}();function $n(t,n){var r,i,a,o,s,l,u=function(t,n,r){var i=t.metaData,a=function(e,t){return e.filter(function(e){return t.includes(e.code)})}(i,t.selectableVariableCodes),o=function(t){var n=t.find(function(t){return t.type===e.EVariableType.Content});if(n)return n;throw new Error("Content variable is not defined")}(i),s=function(e,t){var n=new Bn(e,t).getViewSeries(),r=_n(e.metaData.filter(function(t){return e.columnVariableCodes.includes(t.code)}).filter(function(e){return e.values.length>1}),e.columnVariableCodes).map(function(e){return Gn(e,t)});return{columnNameGroups:Ut(r).map(function(e){return e.map(function(e){return e.name})}),series:n}}(t,n);return{header:t.header,tableReferenceName:t.tableReference.name,subheaderValues:Un(a,n,r),units:Yn(o,n),sources:Xn(o,n,function(e){var t;return null!=(t=null==e?void 0:e.source)?t:Ft.empty}),columnNameGroups:s.columnNameGroups,series:s.series,colVarNames:Hn(t.columnVariableCodes,t.metaData),rowVarNames:Hn(t.rowVariableCodes,t.metaData),selectableVarNames:Hn(t.selectableVariableCodes,t.metaData),visualizationSettings:t.visualizationSettings,seriesType:Zn(t.columnVariableCodes,t.metaData)}}(t,n,function(e){var t={};return Object.entries(e).forEach(function(e){return t[e[0]]=e[1].length}),t}(n)),c=(null==(r=u.visualizationSettings)?void 0:r.visualizationType)===e.EVisualizationType.PercentHorizontalBarChart||(null==(i=u.visualizationSettings)?void 0:i.visualizationType)===e.EVisualizationType.PercentVerticalBarChart;switch(null==(a=t.visualizationSettings)?void 0:a.sorting){case null:case void 0:case"no_sorting":return u;case"reversed":return function(e){var t=[].concat(e.series).reverse().map(function(e){return x({},e,{series:[].concat(e.series).reverse(),rowNameGroup:[].concat(e.rowNameGroup).reverse()})});return x({},e,{series:t,columnNameGroups:[].concat(e.columnNameGroups).reverse()})}(u);case"sum":return function(e,t){var n=e.columnNameGroups.map(function(t,n){return{value:e.series.map(function(e){return e.series[n]}).reduce(function(e,t){var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}});return Rn(e,n,t)}(u,zn);case"ascending":return Ln(u,0,Dn);case"descending":return Ln(u,0,zn);default:return c?(o=u,s=Fn(u),l=Wn(t),qn(Rn(o,s.series[l].series,zn),l)):Ln(u,Wn(t),zn)}}function Fn(e){var t=e.series.map(function(t){return x({},t,{series:t.series.map(function(t,n){var r,i=e.series.reduce(function(e,t){var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,o={value:a,precision:1,preliminary:t.preliminary};return null===a&&(o.missingCode=t.missingCode),o})})});return x({},e,{units:e.units.map(function(e){return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce(function(e,t){return e[t]="%",e},{}))};var t}),series:t})}function Hn(e,t){return e.reduce(function(e,n){var r,i=null==(r=t.find(function(e){return e.code===n}))?void 0:r.name;return i&&e.push(i),e},[])}function Wn(e){var t=e.metaData.find(function(t){return t.code==e.rowVariableCodes[0]}),n=null==t?void 0:t.values.findIndex(function(t){var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Un(e,t,n){var r=[];return e.forEach(function(e){var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(function(n){return n.code===t[e.code][0]}))?void 0:a.name)?i:{})}),r}function Yn(e,t){var n=e.code in t?e.values.filter(function(n){return t[e.code].includes(n.code)}):e.values;return n.reduce(function(e,t){return t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e},[])}function Xn(e,t,n){return e.code in t?e.values.filter(function(n){return t[e.code].includes(n.code)}).map(function(e){return n(e.contentComponent)}).filter(Yt):e.values.map(function(e){return n(e.contentComponent)}).filter(Yt)}function Zn(t,n){var r;if(t.length>1||0===t.length)return dn.Nominal;var i=null==(r=n.find(function(e){return e.code===t[0]}))?void 0:r.type;switch(i){case e.EVariableType.Time:return dn.Time;case e.EVariableType.Ordinal:return dn.Ordinal;default:return dn.Nominal}}function Kn(e,t,n,r,i,a,o){var s=document.getElementById(a);if(!s)throw new Error("No container with matching id found in the DOM tree");try{if(n){var l=document.createElement("span");if(l.classList.add("title"),l.append(e.header[t]),s.append(l),e.subheaderValues.length>0){var u=document.createElement("span");u.classList.add("subtitle"),u.append(e.subheaderValues.map(function(e){return e[t]}).join(" | ")),s.append(u)}}var c=function(e,t){var n,r,i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,o=document.createElement("table");if(i>0){var s=function(e,t){for(var n=er(e),r=[],i=0;i<e[0].length;i++){for(var a=document.createElement("tr"),o=0;o<e.length;o+=n[i]){var s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[o][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){var l=document.createElement("td");l.setAttribute("colSpan",a.toString()),l.setAttribute("rowSpan",i.toString()),s[0].prepend(l)}var u=document.createElement("thead");u.append.apply(u,s),o.append(u)}if(e.series.length>0){var c=document.createElement("tbody");c.append.apply(c,function(e,t){for(var n=[],r=Qn(e),i=0;i<e.length;i++){for(var a=document.createElement("tr"),o=0;o<e[i].rowNameGroup.length;o++)if(i%r[o]==0){var s=document.createElement("th");s.setAttribute("rowSpan",r[o].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[o][t],a.append(s)}for(var l,u=E(e[i].series);!(l=u()).done;){var c=l.value,d=document.createElement("td");d.textContent=null===c.value?Kt(c.missingCode,t,!0):Zt(c.value,c.precision,t,!0),a.append(d)}n.push(a)}return n}(e.series,t)),o.append(c)}return o}(e,t);if(s.append(c),r){var d=document.createElement("p"),f=ln(e.units,t);d.append(Ft.unit[t]+": "+f),s.append(d)}if(i){var m=document.createElement("p"),p=Ft.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ");m.append(p),s.append(m)}if(o){var h=document.createElement("p");h.append(o),s.append(h)}}catch(e){console.error(e),s.replaceChildren();var g=document.createElement("h1");g.append(Ft.graphCreationError[t]),s.append(g)}}var Jn=function(e,t){return Object.keys(e).every(function(n){return e[n]==t[n]})},Qn=function(e){if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];for(var t=Array(e[0].rowNameGroup.length).fill(1),n=0;n<e[0].rowNameGroup.length;n++)for(var r=0;r<e.length-1&&Jn(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},er=function(e){if(!e||0===e.length)return[];for(var t=Array(e[0].length).fill(1),n=0;n<e[0].length;n++)for(var r=0;r<e.length-1&&Jn(e[r][n],e[r+1][n]);r++)t[n]++;return t},tr=function(e){var 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")},nr=function(t,n){var r,i,a,o,s,l,u,c;((null==(r=t.visualizationSettings)?void 0:r.visualizationType)===e.EVisualizationType.PercentHorizontalBarChart||(null==(i=t.visualizationSettings)?void 0:i.visualizationType)===e.EVisualizationType.PercentVerticalBarChart)&&(t=Fn(t));var d=null!=(a=null==(o=t.columnNameGroups[0])?void 0:o.length)?a:0,f=null!=(s=null==(l=t.series[0])?void 0:l.rowNameGroup.length)?s:0,m=(null!=(u=null==(c=t.series[0])?void 0:c.series.length)?u:0)+f,p=","==Ft.decimalPoint[n]?";":",",h="\n",g=ir(['"'+t.header[n]+'"'],0,m,p,h);t.subheaderValues.length>0&&(g+=ir(['"'+t.subheaderValues.map(function(e){return e[n]}).join(" | ")+'"'],0,m,p,h));for(var v=function(e){g+=ir(t.columnNameGroups.map(function(t){return'"'+t[e][n]+'"'}),f,m,p,h)},y=0;y<d;y++)v(y);return t.series.forEach(function(e){var t=[];e.rowNameGroup.length>0&&(t=e.rowNameGroup.map(function(e){return'"'+e[n]+'"'})),t=t.concat(e.series.map(function(e){return null===e.value?Kt(e.missingCode,n):Zt(e.value,e.precision,n)})),g+=ir(t,0,m,p,h)}),g+=ir(['"'+Ft.unit[n]+": "+ln(t.units,n)+'"'],0,m,p,h),g+=ir(['"'+Ft.source[n]+": "+t.sources.map(function(e){return e[n]}).join(", ")+'"'],0,m,p)},rr=function(e,t){return{onClick:function(){var n=nr(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",tr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:Ft.downloadCSV[t]}};function ir(e,t,n,r,i){void 0===i&&(i="");for(var a="",o=0;o<n;o++)o>=t&&o<t+e.length&&(a+=e[o-t]),o<n-1&&(a+=r);return a+i}var ar=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function or(e){var t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:or(t-1)+n}var sr='<?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 lr(e,t,n){for(var r=Array(n),i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}var ur,cr,dr,fr,mr,pr,hr,gr,vr,yr,br,wr,xr=function(t,n){try{var r=function(t,n){var r,i,a,o,s,l,u,c;((null==(r=t.visualizationSettings)?void 0:r.visualizationType)===e.EVisualizationType.PercentHorizontalBarChart||(null==(i=t.visualizationSettings)?void 0:i.visualizationType)===e.EVisualizationType.PercentVerticalBarChart)&&(t=Fn(t));var d=null!=(a=null==(o=t.columnNameGroups[0])?void 0:o.length)?a:0,f=null!=(s=null==(l=t.series[0])?void 0:l.rowNameGroup.length)?s:0,m=(null!=(u=null==(c=t.series[0])?void 0:c.series.length)?u:0)+f,p=[lr([t.header[n]],0,m)];t.subheaderValues.length>0&&p.push(lr([t.subheaderValues.map(function(e){return e[n]}).join(" | ")],0,m));for(var h=function(e){p.push(lr(t.columnNameGroups.map(function(t){return t[e][n]}),f,m))},g=0;g<d;g++)h(g);return t.series.forEach(function(e){var t=[];e.rowNameGroup.length>0&&(t=e.rowNameGroup.map(function(e){return e[n]})),t=t.concat(e.series.map(function(e){return null===e.value?Kt(e.missingCode,n):Number(e.value.toFixed(e.precision))})),p.push(lr(t,0,m))}),p.push(lr([Ft.unit[n]+": "+ln(t.units,n)],0,m)),p.push(lr([Ft.source[n]+": "+t.sources.map(function(e){return e[n]}).join(", ")],0,m)),p}(t,n),i=function(e){var t=function(e){for(var t=[],n=1;n<=e;n++)t.push('<col min="'+n+'" max="'+n+'" width="20"/>');return t?"<cols>"+t+"</cols>":""}(Math.max.apply(Math,e.map(function(e){return e.length}))),n=function(e){return e.map(function(e,t){var n=e.map(function(e,n){return function(e,t,n){return null===e?null:"string"==typeof e?'<c r="'+or(t)+n+'" t="inlineStr"><is><t>'+(r={"&":"&","<":"<",">":">",'"':""","'":"'"},e.replace(/[&<>"']/g,function(e){return r[e]})+"</t></is></c>"):'<c r="$'+or(t)+n+'"><v>'+e+"</v></c>";var r}(e,n,t+1)}).filter(function(e){return null!==e}).join("");return'<row r="'+(t+1)+'">'+n+"</row>"}).join("")}(e);return function(e,t){return'<?xml version="1.0" ?>\n<worksheet '+ar.join(" ")+">\n "+e+"\n <sheetData>\n "+t+"\n </sheetData>\n</worksheet>"}(t,n)}(r),a={xl:{"worksheets/sheet1.xml":l.strToU8(i),"workbook.xml":l.strToU8(sr),"_rels/workbook.xml.rels":l.strToU8('<?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":l.strToU8('<?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":l.strToU8('<?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 Promise.resolve(new Promise(function(e,t){l.zip(a,function(n,r){if(n)return t(n);var i=new Blob([r.buffer],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})}))}catch(e){return Promise.reject(e)}},Sr=function(e,t){return{onClick:function(){return Promise.resolve(xr(e,t)).then(function(t){var n=URL.createObjectURL(t),r=document.createElement("a");r.setAttribute("href",n),r.setAttribute("download",tr(e.tableReferenceName)+".xlsx"),document.body.appendChild(r),r.click()})},text:Ft.downloadXLSX[t]}},Cr=["Bars","Times","Download","ExternalLink","Copy"],kr=function(e){var t=e.icon,n=e.inheritColor,r=void 0!==n&&n;switch(t){case"Bars":return m.default.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"},m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return m.default.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"},m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return m.default.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"},m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return m.default.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"},m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return m.default.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"},m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return m.default.createElement("span",null,"No icon for ",t,m.default.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"},m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),m.default.createElement("path",x({},r?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}},Er=Gt.button(ur||(ur=C(['\n background-color: transparent;\n text-align: left;\n border: none;\n margin: 0;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n cursor: pointer;\n display: inline;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n min-width: 14rem;\n border-bottom: ',";\n color: #1a3061;\n min-height: 3rem;\n :hover {\n text-decoration: underline;\n }\n"])),function(e){return e.$separator?"1px solid #bdbdbd":"0px"}),Tr=Gt.a(cr||(cr=C(["\n text-decoration: none;\n :hover {\n text-decoration: underline;\n }\n"]))),Ar=Gt.li(dr||(dr=C(["\n border-top-right-radius: ",";\n border-top-left-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n :hover {\n background-color: #f2f2f2;\n }\n"])),function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"}),Nr=Gt.div(fr||(fr=C(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: left;\n align-items: center;\n justify-items: center;\n"]))),Vr=Gt.div(mr||(mr=C(["\n height: 1rem;\n width: 1rem;\n svg {\n height: 1rem;\n width: 1rem;\n fill: #1a3061;\n }\n"]))),Pr=Gt.span(pr||(pr=C(["\n margin-left: ",";\n margin-right: ",";\n"])),function(e){return e.$hasPrefixIcon?"0.5rem":"0px"},function(e){return e.$hasSuffixIcon?"0.5rem":"0px"}),jr=Gt.span(hr||(hr=C(["\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"]))),Mr=function(e){var t,n,r=e.text,i=e.onClick,a=e.url,o=e.openNewTab,s=e.isExternal,l=e.prefixIcon,u=e.suffixIcon,c=e.locale,d=e.bottomSeparator,f=void 0!==d&&d,p=e.isFirst,h=void 0!==p&&p,g=e.isLast,v=void 0!==g&&g;l&&(t="string"==typeof l&&Cr.includes(l)?m.default.createElement(kr,{inheritColor:!0,icon:l}):l),u&&(n="string"==typeof u&&Cr.includes(u)?m.default.createElement(kr,{inheritColor:!0,icon:u}):l);var y=m.default.createElement(Nr,null,t&&m.default.createElement(Vr,null,t),m.default.createElement(Pr,{$hasPrefixIcon:!!l,$hasSuffixIcon:!!u||s},r),u&&m.default.createElement(Vr,null,n),s&&m.default.createElement(m.default.Fragment,null,m.default.createElement(jr,null,Ft.externalLink[c]),m.default.createElement(Vr,null,m.default.createElement(kr,{inheritColor:!0,icon:"ExternalLink"}))));return i?m.default.createElement(Ar,{$isFirst:h,$isLast:v},m.default.createElement(Er,{$separator:f,onClick:function(){return i()}},y)):a?m.default.createElement(Ar,{$isFirst:h,$isLast:v},m.default.createElement(Tr,o?{href:a,target:"_blank"}:{href:a},m.default.createElement(Er,{$separator:f},y))):m.default.createElement(m.default.Fragment,null)},Ir=Gt.div(gr||(gr=C(["\n width: 2.5rem;\n height: 2.5rem;\n"]))),Or=Gt.button(vr||(vr=C(["\n width: 100%;\n height: 100%;\n svg {\n height: 1.5rem;\n width: 1.5rem;\n }\n background-color: transparent;\n border: none;\n cursor: pointer;\n"]))),Dr=Gt.div(yr||(yr=C(["\n width: 100%;\n height: 0;\n position: relative;\n"]))),zr=Gt.div(br||(br=C(["\n display: flex;\n flex-flow: column;\n position: absolute;\n background-color: #fff;\n border-radius: 18px;\n top: 0.2rem;\n right: 0.2rem;\n border: 1px solid #bdbdbd;\n"]))),Lr=Gt.ul(wr||(wr=C(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n"])));function Rr(e){var t,n,r=600,i=e.chart.chartWidth,a=e.chart.chartHeight,o=Math.max(.5,Math.min(2,i/a));return o<1?(t=(n=Math.max(r,Math.min(3e3,a)))*o)<r&&(n=(t=r)/o):(n=(t=Math.max(r,Math.min(3e3,i)))/o)<r&&(t=(n=r)*o),{finalWidth:t,finalHeight:n}}var qr,Gr,_r,Br,$r,Fr,Hr=function(e){var t=e.viewData,n=e.currentChartRef,r=e.tableToggle,i=e.menuItemDefinitions,a=e.locale,o=e.menuIconInheritColor,s=void 0!==o&&o,l=m.default.useState(!1),u=l[0],c=l[1],d=m.default.useRef(null);document.addEventListener("mousedown",function(e){d.current&&u&&!d.current.contains(e.target)&&c(!1)});var f=rr(t,a),p=Sr(t,a),h=null==i?void 0:i.map(function(e,t){return"onClick"in e?m.default.createElement(Mr,{isFirst:0===t,bottomSeparator:t+1===i.length,locale:a,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,key:"customfmenuitem-"+t,text:e.text,onClick:e.onClick}):"url"in e?m.default.createElement(Mr,{isFirst:0===t,bottomSeparator:t+1===i.length,locale:a,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,isExternal:e.isExternal,key:"customlmenuitem-"+t,text:""+e.text,url:e.url,openNewTab:e.openNewTab}):void 0});return m.default.createElement(Ir,{ref:d},m.default.createElement(Or,{"aria-label":""+Ft.chartMenuLabel[a],"aria-expanded":u,onClick:function(){c(!u)}},m.default.createElement(kr,{inheritColor:s,icon:u?"Times":"Bars"})),m.default.createElement(Dr,null,u&&m.default.createElement(zr,null,m.default.createElement(Lr,null,i&&h,m.default.createElement(Mr,{isFirst:!i,locale:a,prefixIcon:"Download",text:p.text,onClick:function(){return p.onClick()}}),m.default.createElement(Mr,{isLast:!n,bottomSeparator:!!n,locale:a,prefixIcon:"Download",text:f.text,onClick:function(){return f.onClick()}}),n&&m.default.createElement(m.default.Fragment,null,m.default.createElement(Mr,{locale:a,prefixIcon:"Download",text:Ft.downloadSVG[a],onClick:function(){return n.chart.exportChartLocal({filename:""+tr(t.tableReferenceName),type:"image/svg+xml",sourceWidth:Rr(n).finalWidth,sourceHeight:Rr(n).finalHeight,scale:1},{})}}),m.default.createElement(Mr,{isLast:!r,bottomSeparator:!!r,locale:a,prefixIcon:"Download",text:Ft.downloadPNG[a],onClick:function(){return n.chart.exportChartLocal({filename:""+tr(t.tableReferenceName),sourceWidth:Rr(n).finalWidth,sourceHeight:Rr(n).finalHeight,scale:1},{})}})),r&&m.default.createElement(Mr,{isLast:!0,locale:a,text:r.tableMode?Ft.toggleTableModeOffText[a]:Ft.toggleTableModeOnText[a],onClick:function(){return r.toggleHandler()}})))))},Wr=function(e){var n=e.view,r=e.locale,i=e.footnote,a=e.showTitles,o=void 0===a||a,s=e.showUnits,l=void 0===s||s,u=e.showSources,d=void 0===u||u,f=t.useMemo(function(){return c.v4()},[n,r]);return m.default.useEffect(function(){var e;null==(e=document.getElementById(f))||e.replaceChildren(),Kn(n,r,o,l,d,f,i)},[n,r,o,l,d,i]),m.default.createElement("div",{className:"tableChart",id:f})},Ur=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=yt.apply(void 0,[e].concat(r)),o="sc-global-"+Tt(JSON.stringify(a)),s=new zt(a,o);function l(e){var n=st(),r=lt(),i=t.useContext(Mt),l=t.useRef(n.allocateGSInstance(o)).current;return"production"!==process.env.NODE_ENV&&m.default.Children.count(e.children)&&console.warn("The global style component "+o+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&a.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),n.server&&u(l,e,n,i,r),t.useLayoutEffect(function(){if(!n.server)return u(l,e,n,i,r),function(){return s.removeStyles(l,n)}},[l,e,n,i,r]),null}function u(e,t,n,r,i){if(s.isStatic)s.renderStyles(e,Ee,n,i);else{var a=pe({},t,{theme:St(t,r,l.defaultProps)});s.renderStyles(e,a,n,i)}}return"production"!==process.env.NODE_ENV&&xt(o),m.default.memo(l)}(qr||(qr=C(["\n /* @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Medium.ttf) format('truetype');\n }\n\n @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Regular.ttf) format('truetype');\n } */\n\n .highcharts-root {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n }\n\n .highcharts-tooltip-container {\n z-index: 999 !important;\n }\n\n .tableChart {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n overflow-x: auto;\n padding-left: 20px;\n padding-top: 38px;\n padding-right: 20px;\n }\n\n .tableChart:has(.title) {\n padding-top: 14px;\n }\n\n .tableChart table,\n .tableChart th,\n .tableChart td {\n border: 1px solid black;\n }\n\n .tableChart .title {\n margin-top: 0;\n font-size: 1.25rem;\n font-weight: 500;\n margin-bottom: 0rem;\n width: 90%;\n display: block;\n }\n\n .tableChart .subtitle {\n font-size: 1.25rem;\n font-weight: 400;\n margin-bottom: 2rem;\n margin-top: 6px;\n width: 90%;\n display: block;\n }\n"]))),Yr=Gt.div(Gr||(Gr=C(["\n width: 100%;\n position: relative;\n font-family: 'Barlow Semi Condensed';\n"]))),Xr=function(e){return m.default.createElement(Yr,null,m.default.createElement("h1",null,Ft.graphCreationError[e.locale]))},Zr=/*#__PURE__*/function(e){function t(t){var n;return(n=e.call(this,t)||this).state={hasError:!1},n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,S(n,r),t.getDerivedStateFromError=function(){return{hasError:!0}};var i=t.prototype;return i.componentDidCatch=function(e,t){console.error(e,t.componentStack)},i.render=function(){return this.state.hasError?this.props.fallback:this.props.children},t}(t.Component),Kr=Gt.div(_r||(_r=C(["\n width: 100%;\n position: relative;\n"]))),Jr=Gt.div(Br||(Br=C(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n"]))),Qr=Gt.div($r||($r=C(["\n display: ",";\n"])),function(e){return e.$tableMode?"none":"block"}),ei=Gt.div(Fr||(Fr=C(["\n display: ",";\n"])),function(e){return e.$tableMode?"block":"none"}),ti=function(n){var r,i=n.pxGraphData,a=n.footnote,o=n.menuItemDefinitions,s=n.selectedVariableCodes,l=void 0===s?null:s,c=n.showContextMenu,d=void 0===c||c,f=n.menuIconInheritColor,h=void 0!==f&&f,g=n.showTableTitles,x=n.showTableUnits,S=n.showTableSources,C=tn(n.locale);r=C,"object"==typeof p.default&&(p.default.wrap(p.default.SVGRenderer.prototype,"init",function(e){e.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),v.default(p.default),y.default(p.default),b.default(p.default),w.default(p.default),p.default.setOptions(wn(r)));var k,E=m.default.useRef(null),T=m.default.useState(E.current),A=T[0],N=T[1],V=m.default.useState(!1),P=V[0],j=V[1],M=m.default.useState(0),I=M[0],O=M[1],D=t.useMemo(function(){try{return Mn(i.selectableVariableCodes,i.metaData,i.visualizationSettings.defaultSelectableVariableCodes,l)}catch(e){return console.error(e),{}}},[l,i]),z=t.useMemo(function(){try{return $n(i,D)}catch(e){return console.error(e),null}},[D,i]);function L(){I!==window.innerWidth&&O(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(k),k=setTimeout(L,100)}),m.default.useEffect(function(){E.current&&N(E.current)},[E.current]);try{if(z&&i.visualizationSettings.visualizationType!==e.EVisualizationType.Table){var R=jn(C,z);return m.default.createElement(Kr,null,d&&m.default.createElement(Jr,null,m.default.createElement(Hr,{menuItemDefinitions:o,viewData:z,currentChartRef:A,locale:C,tableToggle:{tableMode:P,toggleHandler:function(){j(!P)}},menuIconInheritColor:h})),m.default.createElement(Qr,{$tableMode:P},m.default.createElement(u.HighchartsReact,{ref:E,immutable:!0,highcharts:p.default,options:R})),m.default.createElement(ei,{$tableMode:P},m.default.createElement(Wr,{showTitles:null==g||g,footnote:a,showUnits:!!x,showSources:!!S,view:z,locale:C})))}if(z&&i.visualizationSettings.visualizationType===e.EVisualizationType.Table)return m.default.createElement(Kr,null,d&&m.default.createElement(Jr,null,m.default.createElement(Hr,{menuItemDefinitions:o,viewData:z,locale:C,menuIconInheritColor:h})),m.default.createElement(Wr,{showTitles:null!=g&&g,footnote:a,showUnits:!!x,showSources:!!S,view:z,locale:C}))}catch(e){return console.error(e),m.default.createElement(Xr,{locale:C})}return m.default.createElement(Xr,{locale:C})};e.AddTranslations=function(e){$t.AddTranslations(e)},e.BurgerMenu=Hr,e.Chart=function(e){var t=tn(e.locale);return m.default.createElement(Zr,{fallback:m.default.createElement(Xr,{locale:t})},m.default.createElement(Ur,null),m.default.createElement(ti,x({},e)))},e.ErrorBoundary=Zr,e.GlobalStyle=Ur,e.Icon=kr,e.MenuItem=Mr,e.buildMinimalXlsxBlobAsync=xr,e.calculateExportDimensions=Rr,e.convertPxGrafResponseToView=$n,e.convertPxGraphDataToChartOptions=jn,e.defaultTheme=wn,e.drawChart=function(e,t,n,r){void 0===r&&(r=null);var i=tn(n);"object"==typeof h&&(v.default(h),y.default(h),b.default(h),w.default(h)),h.setOptions(wn(i));var a=$n(t,Mn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=jn(i,a);return h.chart(e,o)},e.extractSelectableVariableValues=Mn,e.generateCsv=nr,e.renderHtmlTable=Kn,e.viewToDownloadCSVOption=rr,e.viewToDownloadXLSOption=Sr});
|
|
2
2
|
//# sourceMappingURL=pxv.umd.js.map
|