(function(){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(t.querySelectorAll(e))}var HtmlTag=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,e),this.a=t,this.e=this.n=null}return _createClass(e,[{key:"m",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=element(t.nodeName),this.t=t,this.h(e)),this.i(n)}},{key:"h",value:function(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(e){for(var t=0;t6&&void 0!==arguments[6]?arguments[6]:[-1],s=current_component;set_current_component(e);var c=t.props||{},u=e.$$={fragment:null,ctx:null,props:i,update:noop,not_equal:a,bound:blank_object(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:blank_object(),dirty:o},l=!1;if(u.ctx=n?n(e,c,(function(t,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&a(u.ctx[t],u.ctx[t]=r)&&(u.bound[t]&&u.bound[t](r),l&&make_dirty(e,t)),n})):[],u.update(),l=!0,run_all(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){var p=children(t.target);u.fragment&&u.fragment.l(p),p.forEach(detach)}else u.fragment&&u.fragment.c();t.intro&&transition_in(e.$$.fragment),mount_component(e,t.target,t.anchor),flush()}set_current_component(s)}var SvelteComponent=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"$destroy",value:function(){destroy_component(this,1),this.$destroy=noop}},{key:"$on",value:function(e,t){var n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},{key:"$set",value:function(){}}]),e}(),TAGS=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,COMMENTS_AND_PHP_TAGS=/|<\?(?:php)?[\s\S]*?\?>/gi,defaultAllowed="

";function purifyHTML(e,t){if(null===e)return null;if(void 0!==e){if((e=String(e)).indexOf("<")<0&&e.indexOf(">")<0)return e;if(e=stripTags(e,t),"undefined"==typeof document)return e;var n=document.createElement("div");n.innerHTML="".concat(e,"");for(var r=n.childNodes[0].querySelectorAll("*"),a=0;a/g)||[]).join("");for(var n=e,r=e;;)if(r=(n=r).replace(COMMENTS_AND_PHP_TAGS,"").replace(TAGS,(function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""})),n===r)return r}var DEFAULT_ALLOWED="


";function clean(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return purifyHTML(e,DEFAULT_ALLOWED+t)}function create_if_block_1(e){var t,n=clean(e[0].prepend)+"";return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","prepend")},m:function(e,r){insert(e,t,r),t.innerHTML=n},p:function(e,r){1&r&&n!==(n=clean(e[0].prepend)+"")&&(t.innerHTML=n)},d:function(e){e&&detach(t)}}}function create_if_block(e){var t,n=clean(e[0].append)+"";return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","append")},m:function(e,r){insert(e,t,r),t.innerHTML=n},p:function(e,r){1&r&&n!==(n=clean(e[0].append)+"")&&(t.innerHTML=n)},d:function(e){e&&detach(t)}}}function create_fragment(e){var t,n,r,a,i,o,s=e[0].prepend&&create_if_block_1(e),c=e[0].component;function u(e){return{props:{props:e[0].props}}}c&&(r=new c(u(e)));var l=e[0].append&&create_if_block(e);return{c:function(){s&&s.c(),t=space(),n=element("span"),r&&create_component(r.$$.fragment),a=space(),l&&l.c(),i=empty(),this.h()},l:function(e){s&&s.l(e),t=claim_space(e);var o=children(n=claim_element(e,"SPAN",{class:!0}));r&&claim_component(r.$$.fragment,o),o.forEach(detach),a=claim_space(e),l&&l.l(e),i=empty(),this.h()},h:function(){attr(n,"class","block-inner")},m:function(e,c){s&&s.m(e,c),insert(e,t,c),insert(e,n,c),r&&mount_component(r,n,null),insert(e,a,c),l&&l.m(e,c),insert(e,i,c),o=!0},p:function(e,a){var o=_slicedToArray(a,1)[0];e[0].prepend?s?s.p(e,o):((s=create_if_block_1(e)).c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null);var p={};if(1&o&&(p.props=e[0].props),c!==(c=e[0].component)){if(r){group_outros();var f=r;transition_out(f.$$.fragment,1,0,(function(){destroy_component(f,1)})),check_outros()}c?(create_component((r=new c(u(e))).$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,n,null)):r=null}else c&&r.$set(p);e[0].append?l?l.p(e,o):((l=create_if_block(e)).c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i:function(e){o||(r&&transition_in(r.$$.fragment,e),o=!0)},o:function(e){r&&transition_out(r.$$.fragment,e),o=!1},d:function(e){s&&s.d(e),e&&detach(t),e&&detach(n),r&&destroy_component(r),e&&detach(a),l&&l.d(e),e&&detach(i)}}}function instance(e,t,n){var r=t.block;return e.$set=function(e){"block"in e&&n(0,r=e.block)},[r]}var Block=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance,create_fragment,safe_not_equal,{block:0}),r}return n}(SvelteComponent);function get_each_context(e,t,n){var r=e.slice();return r[3]=t[n],r}function create_if_block$1(e){for(var t,n,r=e[2],a=[],i=0;i .dw-chart-menu a{padding:10px;display:block;color:initial;border-bottom:1px solid #ccc}.menu-content > .dw-chart-menu a:hover{background:rgba(0, 0, 0, 0.05)}.menu-content > .dw-chart-menu .block:last-child a{border-bottom:none}",append(document.head,e)}function create_if_block$2(e){var t,n,r,a,i,o,s;function c(e,t){return e[3].icon?create_if_block_1$2:create_else_block$1}var u=c(e),l=u(e);return a=new BlocksRegion({props:{id:e[0],name:e[1],blocks:e[2]}}),{c:function(){t=element("div"),l.c(),n=space(),r=element("div"),create_component(a.$$.fragment),this.h()},l:function(e){var i=children(t=claim_element(e,"DIV",{class:!0}));l.l(i),i.forEach(detach),n=claim_space(e);var o=children(r=claim_element(e,"DIV",{class:!0}));claim_component(a.$$.fragment,o),o.forEach(detach),this.h()},h:function(){attr(t,"class","menu container svelte-1lt126s"),toggle_class(t,"ha-menu",!e[3].icon),attr(r,"class","menu-content container svelte-1lt126s"),toggle_class(r,"hidden",!e[4])},m:function(c,u){insert(c,t,u),l.m(t,null),insert(c,n,u),insert(c,r,u),mount_component(a,r,null),i=!0,o||(s=[listen(t,"click",stop_propagation(e[5])),listen(r,"click",stop_propagation(e[7]))],o=!0)},p:function(e,n){u===(u=c(e))&&l?l.p(e,n):(l.d(1),(l=u(e))&&(l.c(),l.m(t,null))),8&n&&toggle_class(t,"ha-menu",!e[3].icon);var i={};1&n&&(i.id=e[0]),2&n&&(i.name=e[1]),4&n&&(i.blocks=e[2]),a.$set(i),16&n&&toggle_class(r,"hidden",!e[4])},i:function(e){i||(transition_in(a.$$.fragment,e),i=!0)},o:function(e){transition_out(a.$$.fragment,e),i=!1},d:function(e){e&&detach(t),l.d(),e&&detach(n),e&&detach(r),destroy_component(a),o=!1,run_all(s)}}}function create_else_block$1(e){var t;return{c:function(){t=element("div"),this.h()},l:function(e){children(t=claim_element(e,"DIV",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","svelte-1lt126s")},m:function(e,n){insert(e,t,n)},p:noop,d:function(e){e&&detach(t)}}}function create_if_block_1$2(e){var t,n=e[3].icon+"";return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(e,r){t.m(n,e,r)},p:function(e,r){8&r&&n!==(n=e[3].icon+"")&&t.p(n)},d:function(e){e&&t.d()}}}function create_fragment$2(e){var t,n,r,a,i=e[2].length&&create_if_block$2(e);return{c:function(){i&&i.c(),t=empty()},l:function(e){i&&i.l(e),t=empty()},m:function(o,s){i&&i.m(o,s),insert(o,t,s),n=!0,r||(a=listen(window,"click",e[6]),r=!0)},p:function(e,n){var r=_slicedToArray(n,1)[0];e[2].length?i?(i.p(e,r),4&r&&transition_in(i,1)):((i=create_if_block$2(e)).c(),transition_in(i,1),i.m(t.parentNode,t)):i&&(group_outros(),transition_out(i,1,1,(function(){i=null})),check_outros())},i:function(e){n||(transition_in(i),n=!0)},o:function(e){transition_out(i),n=!1},d:function(e){i&&i.d(e),e&&detach(t),r=!1,a()}}}function instance$2(e,t,n){var r=t.id,a=t.name,i=t.blocks,o=t.props,s=!1;return e.$set=function(e){"id"in e&&n(0,r=e.id),"name"in e&&n(1,a=e.name),"blocks"in e&&n(2,i=e.blocks),"props"in e&&n(3,o=e.props)},[r,a,i,o,s,function(){n(4,s=!s)},function(){n(4,s=!1)},function(t){bubble(e,t)}]}var Menu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document.getElementById("svelte-1lt126s-style")||add_css(),init(_assertThisInitialized(r),e,instance$2,create_fragment$2,safe_not_equal,{id:0,name:1,blocks:2,props:3}),r}return n}(SvelteComponent);function create_fragment$3(e){var t;return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(n,r){t.m(e[0],n,r)},p:function(e,n){1&_slicedToArray(n,1)[0]&&t.p(e[0])},i:noop,o:noop,d:function(e){e&&t.d()}}}function instance$3(e,t,n){var r,a,i=t.props,o=i.purifyHtml;return e.$set=function(e){"props"in e&&n(1,i=e.props)},e.$$.update=function(){2&e.$$.dirty&&n(2,r=i.chart),4&e.$$.dirty&&n(0,a=o(r.title))},[a,i]}var Headline=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$3,create_fragment$3,safe_not_equal,{props:1}),r}return n}(SvelteComponent);function create_fragment$4(e){var t;return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(n,r){t.m(e[0],n,r)},p:function(e,n){1&_slicedToArray(n,1)[0]&&t.p(e[0])},i:noop,o:noop,d:function(e){e&&t.d()}}}var allowedTags="
";function instance$4(e,t,n){var r,a,i=t.props,o=i.get;return e.$set=function(e){"props"in e&&n(1,i=e.props)},e.$$.update=function(){2&e.$$.dirty&&n(2,r=i.chart),4&e.$$.dirty&&n(0,a=clean(o(r,"metadata.describe.intro"),allowedTags))},[a,i]}var Description=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$4,create_fragment$4,safe_not_equal,{props:1}),r}return n}(SvelteComponent);function create_if_block$3(e){var t,n,r,a,i;function o(e,t){return e[2]?create_if_block_1$3:create_else_block$2}var s=o(e),c=s(e);return{c:function(){t=element("span"),n=text(e[0]),r=text(":"),a=space(),c.c(),i=empty(),this.h()},l:function(o){var s=children(t=claim_element(o,"SPAN",{class:!0}));n=claim_text(s,e[0]),r=claim_text(s,":"),s.forEach(detach),a=claim_space(o),c.l(o),i=empty(),this.h()},h:function(){attr(t,"class","source-caption")},m:function(e,o){insert(e,t,o),append(t,n),append(t,r),insert(e,a,o),c.m(e,o),insert(e,i,o)},p:function(e,t){1&t&&set_data(n,e[0]),s===(s=o(e))&&c?c.p(e,t):(c.d(1),(c=s(e))&&(c.c(),c.m(i.parentNode,i)))},d:function(e){e&&detach(t),e&&detach(a),c.d(e),e&&detach(i)}}}function create_else_block$2(e){var t;return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","source")},m:function(n,r){insert(n,t,r),t.innerHTML=e[1]},p:function(e,n){2&n&&(t.innerHTML=e[1])},d:function(e){e&&detach(t)}}}function create_if_block_1$3(e){var t;return{c:function(){t=element("a"),this.h()},l:function(e){children(t=claim_element(e,"A",{class:!0,target:!0,rel:!0,href:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","source"),attr(t,"target","_blank"),attr(t,"rel","noopener noreferrer"),attr(t,"href",e[2])},m:function(n,r){insert(n,t,r),t.innerHTML=e[1]},p:function(e,n){2&n&&(t.innerHTML=e[1]),4&n&&attr(t,"href",e[2])},d:function(e){e&&detach(t)}}}function create_fragment$5(e){var t,n=e[1]&&create_if_block$3(e);return{c:function(){n&&n.c(),t=empty()},l:function(e){n&&n.l(e),t=empty()},m:function(e,r){n&&n.m(e,r),insert(e,t,r)},p:function(e,r){var a=_slicedToArray(r,1)[0];e[1]?n?n.p(e,a):((n=create_if_block$3(e)).c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:noop,o:noop,d:function(e){n&&n.d(e),e&&detach(t)}}}function instance$5(e,t,n){var r,a,i,o,s,c=t.props,u=c,l=u.__,p=u.get,f=u.purifyHtml;return e.$set=function(e){"props"in e&&n(3,c=e.props)},e.$$.update=function(){var t;8&e.$$.dirty&&n(4,(r=(t=c).chart,a=t.theme,t),r,(n(5,a),n(3,c)));32&e.$$.dirty&&n(0,i=p(a,"data.options.blocks.source.data.caption",l("Source"))),16&e.$$.dirty&&n(1,o=f(p(r,"metadata.describe.source-name"))),16&e.$$.dirty&&n(2,s=p(r,"metadata.describe.source-url"))},[i,o,s,c]}var Source=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$5,create_fragment$5,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function create_if_block$4(e){var t,n=e[4](e[3])+"";return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(e,r){t.m(n,e,r)},p:function(e,r){8&r&&n!==(n=e[4](e[3])+"")&&t.p(n)},d:function(e){e&&t.d()}}}function create_fragment$6(e){var t,n,r,a,i,o,s=e[0].basedOnByline&&create_if_block$4(e);return{c:function(){t=element("span"),n=text(e[1]),r=space(),a=text(e[2]),i=space(),s&&s.c(),o=empty(),this.h()},l:function(c){var u=children(t=claim_element(c,"SPAN",{class:!0}));n=claim_text(u,e[1]),u.forEach(detach),r=claim_space(c),a=claim_text(c,e[2]),i=claim_space(c),s&&s.l(c),o=empty(),this.h()},h:function(){attr(t,"class","byline-caption")},m:function(e,c){insert(e,t,c),append(t,n),insert(e,r,c),insert(e,a,c),insert(e,i,c),s&&s.m(e,c),insert(e,o,c)},p:function(e,t){var r=_slicedToArray(t,1)[0];2&r&&set_data(n,e[1]),4&r&&set_data(a,e[2]),e[0].basedOnByline?s?s.p(e,r):((s=create_if_block$4(e)).c(),s.m(o.parentNode,o)):s&&(s.d(1),s=null)},i:noop,o:noop,d:function(e){e&&detach(t),e&&detach(r),e&&detach(a),e&&detach(i),s&&s.d(e),e&&detach(o)}}}function instance$6(e,t,n){var r,a,i,o,s,c,u,l,p=t.props,f=p,h=f.get,d=f.purifyHtml,m=f.__;return e.$set=function(e){"props"in e&&n(5,p=e.props)},e.$$.update=function(){32&e.$$.dirty&&n(0,r=p.chart),32&e.$$.dirty&&n(6,a=p.theme),32&e.$$.dirty&&n(7,i=p.caption),192&e.$$.dirty&&n(1,o=h(a,"data.options.blocks.byline.data.".concat(i,"Caption"),m("map"===i?"Map:":"table"===i?"Table:":"Chart:"))),1&e.$$.dirty&&n(2,s=h(r,"metadata.describe.byline",!1)),64&e.$$.dirty&&n(8,c=h(a,"data.options.blocks.byline.data.forkCaption",m("footer / based-on"))),5&e.$$.dirty&&n(9,u=r.basedOnByline&&s),769&e.$$.dirty&&n(3,l=(u?"(":"")+c+" "+d(r.basedOnByline)+(u?")":""))},[r,o,s,l,d,p]}var Byline=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$6,create_fragment$6,safe_not_equal,{props:5}),r}return n}(SvelteComponent);function create_fragment$7(e){var t,n=clean(e[1](e[0],"metadata.annotate.notes"),"
")+"";return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(e,r){t.m(n,e,r)},p:function(e,r){1&_slicedToArray(r,1)[0]&&n!==(n=clean(e[1](e[0],"metadata.annotate.notes"),"
")+"")&&t.p(n)},i:noop,o:noop,d:function(e){e&&t.d()}}}function instance$7(e,t,n){var r,a=t.props,i=a.get;return e.$set=function(e){"props"in e&&n(2,a=e.props)},e.$$.update=function(){4&e.$$.dirty&&n(0,r=a.chart)},[r,i,a]}var Notes=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$7,create_fragment$7,safe_not_equal,{props:2}),r}return n}(SvelteComponent);function create_if_block$5(e){var t,n,r,a,i,o=e[6](e[5])+"";return{c:function(){t=element("a"),n=text(o),this.h()},l:function(e){var r=children(t=claim_element(e,"A",{this:!0,class:!0,"aria-label":!0,download:!0,target:!0,href:!0}));n=claim_text(r,o),r.forEach(detach),this.h()},h:function(){attr(t,"this","dataLink"),attr(t,"class","dw-data-link"),attr(t,"aria-label",r=e[6](e[5])+": "+e[7](e[3].title,"")),attr(t,"download",e[2]),attr(t,"target",a=e[4]?"_blank":"_self"),attr(t,"href",i=e[4]||e[1])},m:function(e,r){insert(e,t,r),append(t,n)},p:function(e,s){32&s&&o!==(o=e[6](e[5])+"")&&set_data(n,o),40&s&&r!==(r=e[6](e[5])+": "+e[7](e[3].title,""))&&attr(t,"aria-label",r),4&s&&attr(t,"download",e[2]),16&s&&a!==(a=e[4]?"_blank":"_self")&&attr(t,"target",a),18&s&&i!==(i=e[4]||e[1])&&attr(t,"href",i)},d:function(e){e&&detach(t)}}}function create_fragment$8(e){var t,n=!e[0]&&create_if_block$5(e);return{c:function(){n&&n.c(),t=empty()},l:function(e){n&&n.l(e),t=empty()},m:function(e,r){n&&n.m(e,r),insert(e,t,r)},p:function(e,r){var a=_slicedToArray(r,1)[0];e[0]?n&&(n.d(1),n=null):n?n.p(e,a):((n=create_if_block$5(e)).c(),n.m(t.parentNode,t))},i:noop,o:noop,d:function(e){n&&n.d(e),e&&detach(t)}}}function instance$8(e,t,n){var r,a,i,o,s,c,u=t.props,l=u,p=l.get,f=l.__,h=l.purifyHtml,d=!1,m="data",y="";return e.$set=function(e){"props"in e&&n(8,u=e.props)},e.$$.update=function(){var t;256&e.$$.dirty&&n(3,(r=(t=u).chart,a=t.dwChart,t.data,i=t.theme,t),r,(n(9,a),n(8,u)),(n(11,i),n(8,u)));if(512&e.$$.dirty&&n(4,o=p(a,"externalData")),2048&e.$$.dirty&&n(5,s=p(i,"data.options.blocks.get-the-data.data.caption",f("Get the data"))),2056&e.$$.dirty&&n(12,c=p(i,"data.options.blocks.get-the-data.data.filename","data-%chart_id%.csv").replace(/%custom_(.*?)%/g,(function(e,t){return p(r,"metadata.custom.".concat(t),"")})).replace(/%chart_id%/g,r.id)),4608&e.$$.dirty&&a&&a.dataset()){var l=a.dataset().toCSV&&a.dataset().toCSV();if(!l||l&&l.trim&&"X.1"===l.trim())n(0,d=!0);else if(window.navigator.msSaveOrOpenBlob){var h=new Blob([l]);undefined.addEventListener("click",(function(e){return window.navigator.msSaveOrOpenBlob(h,c),e.preventDefault(),!1}))}else n(2,y=c),n(1,m="data:application/octet-stream;charset=utf-8,"+encodeURIComponent("\ufeff"+l))}},[d,m,y,r,o,s,f,h,u]}var GetTheData=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$8,create_fragment$8,safe_not_equal,{props:8}),r}return n}(SvelteComponent);function create_if_block$6(e){var t,n,r,a,i=e[3](e[2])+"";return{c:function(){t=element("a"),n=text(i),this.h()},l:function(e){var r=children(t=claim_element(e,"A",{href:!0}));n=claim_text(r,i),r.forEach(detach),this.h()},h:function(){attr(t,"href","#/edit-in-datawrapper")},m:function(i,o){insert(i,t,o),append(t,n),r||(a=listen(t,"click",prevent_default(e[4])),r=!0)},p:function(e,t){4&t&&i!==(i=e[3](e[2])+"")&&set_data(n,i)},d:function(e){e&&detach(t),r=!1,a()}}}function create_fragment$9(e){var t,n=e[0]&&e[1]&&create_if_block$6(e);return{c:function(){n&&n.c(),t=empty()},l:function(e){n&&n.l(e),t=empty()},m:function(e,r){n&&n.m(e,r),insert(e,t,r)},p:function(e,r){var a=_slicedToArray(r,1)[0];e[0]&&e[1]?n?n.p(e,a):((n=create_if_block$6(e)).c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:noop,o:noop,d:function(e){n&&n.d(e),e&&detach(t)}}}function instance$9(e,t,n){var r,a,i,o,s,c,u=t.props,l=u,p=l.get,f=l.__;return e.$set=function(e){"props"in e&&n(5,u=e.props)},e.$$.update=function(){var t;32&e.$$.dirty&&n(6,(r=(t=u).chart,a=t.theme,i=t.config,t),r,(n(7,a),n(5,u)));64&e.$$.dirty&&n(0,o=p(r,"forkable",!1)),64&e.$$.dirty&&n(1,s=p(r,"metadata.publish.blocks.edit-in-datawrapper",!1)),128&e.$$.dirty&&n(2,c=p(a,"data.options.blocks.edit.data.caption","edit-in-datawrapper"))},[o,s,c,f,function(){var e=document.createElement("form");e.setAttribute("method","post"),e.setAttribute("target","_blank"),e.setAttribute("action","//".concat(i.frontendDomain,"/create/"));var t=document.createElement("input");t.setAttribute("type","hidden"),t.setAttribute("name","template"),t.setAttribute("value",r.id),e.appendChild(t),document.body.appendChild(e),e.submit(),document.body.removeChild(e)},u]}var EditInDatawrapper=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$9,create_fragment$9,safe_not_equal,{props:5}),r}return n}(SvelteComponent),document_1=globals.document;function add_css$1(){var e=element("style");e.id="svelte-z5hy4l-style",e.textContent=".embed-code.svelte-z5hy4l.svelte-z5hy4l{position:absolute;bottom:35px;left:8px;max-width:350px;border:1px solid #e5e5e5;background:#fff;box-shadow:0px 4px 10px rgba(0, 0, 0, 0.15);border-radius:4px;padding:15px 20px;font-size:14px}.embed-code.svelte-z5hy4l .close.svelte-z5hy4l{width:15px;height:15px;right:10px;top:10px;position:absolute;fill:#4f4f4f;cursor:pointer}.embed-code.svelte-z5hy4l .close.svelte-z5hy4l:hover,.embed-code.svelte-z5hy4l .close.svelte-z5hy4l:focus{fill:#111}.embed-code.svelte-z5hy4l button.svelte-z5hy4l{cursor:pointer;border:1px solid #ccc;border-bottom-color:#b3b3b3;box-shadow:none;border-radius:4px;width:40px;height:30px;box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05), inset 0px 1px 0px rgba(255, 255, 255, 0.05)}.embed-code.svelte-z5hy4l button.svelte-z5hy4l:hover,.embed-code.svelte-z5hy4l button.svelte-z5hy4l:active{background-color:#e6e6e6}.embed-code.svelte-z5hy4l button svg.svelte-z5hy4l{width:20px;height:20px}.embed-code.svelte-z5hy4l button path.svelte-z5hy4l{fill:#4f4f4f}.embed-code.svelte-z5hy4l p.svelte-z5hy4l{margin:0px 0px 12px 0px;width:calc(100% - 30px);font-size:14px;line-height:20px}.embed-code.svelte-z5hy4l div.actions.svelte-z5hy4l{display:flex;justify-content:space-between}input.svelte-z5hy4l.svelte-z5hy4l{width:100%;background:#f5f5f5;border:1px solid #dddddd;box-sizing:border-box;border-radius:4px;padding:4px;font-size:14px;line-height:14px;color:#4f4f4f;margin-right:10px}",append(document_1.head,e)}function create_if_block$7(e){var t,n,r,a,i,o,s,c,u,l,p,f,h,d,m,y=(e[2].text||"You can copy and paste this code to embed the visualization:")+"";return{c:function(){t=element("div"),n=element("div"),r=svg_element("svg"),a=svg_element("path"),i=space(),o=element("p"),s=space(),c=element("div"),u=element("input"),l=space(),p=element("button"),f=svg_element("svg"),h=svg_element("path"),this.h()},l:function(e){var d=children(t=claim_element(e,"DIV",{class:!0})),m=children(n=claim_element(d,"DIV",{class:!0})),y=children(r=claim_element(m,"svg",{viewBox:!0,xmlns:!0,class:!0},1));children(a=claim_element(y,"path",{d:!0,class:!0},1)).forEach(detach),y.forEach(detach),m.forEach(detach),i=claim_space(d),children(o=claim_element(d,"P",{class:!0})).forEach(detach),s=claim_space(d);var g=children(c=claim_element(d,"DIV",{class:!0}));u=claim_element(g,"INPUT",{type:!0,readonly:!0,value:!0,class:!0}),l=claim_space(g);var v=children(p=claim_element(g,"BUTTON",{class:!0})),_=children(f=claim_element(v,"svg",{viewBox:!0,xmlns:!0,class:!0},1));children(h=claim_element(_,"path",{d:!0,class:!0},1)).forEach(detach),_.forEach(detach),v.forEach(detach),g.forEach(detach),d.forEach(detach),this.h()},h:function(){attr(a,"d","M7 4a.995.995 0 0 0-.707.293l-2 2a.999.999 0 0 0 0 1.414L11.586 15l-7.293\n 7.293a.999.999 0 0 0 0 1.414l2 2a.999.999 0 0 0 1.414 0L15 18.414l7.293\n 7.293a.999.999 0 0 0 1.414 0l2-2a.999.999 0 0 0 0-1.414L18.414\n 15l7.293-7.293a.999.999 0 0 0 0-1.414l-2-2a.999.999 0 0 0-1.414 0L15 11.586\n 7.707 4.293A.996.996 0 0 0 7 4z"),attr(a,"class","svelte-z5hy4l"),attr(r,"viewBox","0 0 30 30"),attr(r,"xmlns","http://www.w3.org/2000/svg"),attr(r,"class","svelte-z5hy4l"),attr(n,"class","close svelte-z5hy4l"),attr(o,"class","svelte-z5hy4l"),attr(u,"type","text"),u.readOnly=!0,u.value=e[3],attr(u,"class","svelte-z5hy4l"),attr(h,"d","M15 0c-1.645 0-3 1.355-3 3H8C6.346 3 5 4.346 5 6v17c0 1.654 1.346 3 3\n 3h14c1.654 0 3-1.346 3-3V6c0-1.654-1.346-3-3-3h-4c0-1.645-1.355-3-3-3zm0\n 2c.564 0 1 .436 1 1 0 .564-.436 1-1 1-.564 0-1-.436-1-1 0-.564.436-1 1-1zM8\n 5h4v1a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V5h4c.551 0 1 .449 1 1v17c0 .551-.449 1-1\n 1H8c-.551 0-1-.449-1-1V6c0-.551.449-1 1-1zm4 7a1 1 0 1 0 0 2 1 1 0 0 0\n 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm8 0a1\n 1 0 1 0 0 2 1 1 0 0 0 0-2zm-16 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm16 0a1 1 0 1 0\n 0 2 1 1 0 0 0 0-2zm-16 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm16 0a1 1 0 1 0 0 2 1 1\n 0 0 0 0-2zm0 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-16 4a1 1 0 1 0 0 2 1 1 0 0 0\n 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1\n 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"),attr(h,"class","svelte-z5hy4l"),attr(f,"viewBox","0 0 30 30"),attr(f,"xmlns","http://www.w3.org/2000/svg"),attr(f,"class","svelte-z5hy4l"),attr(p,"class","svelte-z5hy4l"),attr(c,"class","actions svelte-z5hy4l"),attr(t,"class","embed-code svelte-z5hy4l")},m:function(g,v){insert(g,t,v),append(t,n),append(n,r),append(r,a),append(t,i),append(t,o),o.innerHTML=y,append(t,s),append(t,c),append(c,u),e[8](u),append(c,l),append(c,p),append(p,f),append(f,h),d||(m=[listen(n,"click",e[5]),listen(p,"click",e[6])],d=!0)},p:function(e,t){4&t&&y!==(y=(e[2].text||"You can copy and paste this code to embed the visualization:")+"")&&(o.innerHTML=y),8&t&&u.value!==e[3]&&(u.value=e[3])},d:function(n){n&&detach(t),e[8](null),d=!1,run_all(m)}}}function create_fragment$a(e){var t,n,r,a,i,o,s=(e[2].caption||e[4]("Embed"))+"",c=!e[0]&&create_if_block$7(e);return{c:function(){t=element("a"),n=text(s),r=space(),c&&c.c(),a=empty(),this.h()},l:function(e){var i=children(t=claim_element(e,"A",{href:!0,class:!0}));n=claim_text(i,s),i.forEach(detach),r=claim_space(e),c&&c.l(e),a=empty(),this.h()},h:function(){attr(t,"href","#embed"),attr(t,"class","chart-action-embed")},m:function(s,u){insert(s,t,u),append(t,n),insert(s,r,u),c&&c.m(s,u),insert(s,a,u),i||(o=listen(t,"click",e[5]),i=!0)},p:function(e,t){var r=_slicedToArray(t,1)[0];4&r&&s!==(s=(e[2].caption||e[4]("Embed"))+"")&&set_data(n,s),e[0]?c&&(c.d(1),c=null):c?c.p(e,r):((c=create_if_block$7(e)).c(),c.m(a.parentNode,a))},i:noop,o:noop,d:function(e){e&&detach(t),e&&detach(r),c&&c.d(e),e&&detach(a),i=!1,o()}}}function instance$a(e,t,n){var r,a,i,o,s,c=t.props,u=c,l=u.get,p=u.__,f=!0;return e.$set=function(e){"props"in e&&n(7,c=e.props)},e.$$.update=function(){var t;128&e.$$.dirty&&n(9,(a=(t=c).chart,i=t.theme,t),a,(n(10,i),n(7,c)));1024&e.$$.dirty&&n(2,o=l(i,"data.options.blocks.embed.data",{})),512&e.$$.dirty&&n(3,s=l(a,"metadata.publish.embed-codes.embed-method-responsive","\x3c!-- embed code will be here after publishing --\x3e"))},[f,r,o,s,p,function(e){e.preventDefault(),n(0,f=!f)},function(){r.focus(),r.select(),document.execCommand("copy")},c,function(e){binding_callbacks[e?"unshift":"push"]((function(){n(1,r=e)}))}]}var Embed=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document_1.getElementById("svelte-z5hy4l-style")||add_css$1(),init(_assertThisInitialized(r),e,instance$a,create_fragment$a,safe_not_equal,{props:7}),r}return n}(SvelteComponent);function create_if_block_1$4(e){var t,n,r,a;return{c:function(){t=element("img"),this.h()},l:function(e){t=claim_element(e,"IMG",{height:!0,src:!0,alt:!0}),this.h()},h:function(){attr(t,"height",n=e[0].height),t.src!==(r=e[0].imgSrc)&&attr(t,"src",r),attr(t,"alt",a=e[2].title)},m:function(e,n){insert(e,t,n)},p:function(e,i){1&i&&n!==(n=e[0].height)&&attr(t,"height",n),1&i&&t.src!==(r=e[0].imgSrc)&&attr(t,"src",r),4&i&&a!==(a=e[2].title)&&attr(t,"alt",a)},d:function(e){e&&detach(t)}}}function create_if_block$8(e){var t,n=e[1](e[0].text)+"";return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","logo-text")},m:function(e,r){insert(e,t,r),t.innerHTML=n},p:function(e,r){3&r&&n!==(n=e[1](e[0].text)+"")&&(t.innerHTML=n)},d:function(e){e&&detach(t)}}}function create_fragment$b(e){var t,n,r=e[0].imgSrc&&create_if_block_1$4(e),a=e[0].text&&create_if_block$8(e);return{c:function(){r&&r.c(),t=space(),a&&a.c(),n=empty()},l:function(e){r&&r.l(e),t=claim_space(e),a&&a.l(e),n=empty()},m:function(e,i){r&&r.m(e,i),insert(e,t,i),a&&a.m(e,i),insert(e,n,i)},p:function(e,i){var o=_slicedToArray(i,1)[0];e[0].imgSrc?r?r.p(e,o):((r=create_if_block_1$4(e)).c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),e[0].text?a?a.p(e,o):((a=create_if_block$8(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},i:noop,o:noop,d:function(e){r&&r.d(e),e&&detach(t),a&&a.d(e),e&&detach(n)}}}function instance$b(e,t,n){var r=t.logo,a=t.purifyHtml,i=t.theme;return e.$set=function(e){"logo"in e&&n(0,r=e.logo),"purifyHtml"in e&&n(1,a=e.purifyHtml),"theme"in e&&n(2,i=e.theme)},[r,a,i]}var LogoInner=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$b,create_fragment$b,safe_not_equal,{logo:0,purifyHtml:1,theme:2}),r}return n}(SvelteComponent);function create_else_block$3(e){var t,n;return t=new LogoInner({props:{logo:e[0],purifyHtml:e[2],theme:e[1]}}),{c:function(){create_component(t.$$.fragment)},l:function(e){claim_component(t.$$.fragment,e)},m:function(e,r){mount_component(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.logo=e[0]),2&n&&(r.theme=e[1]),t.$set(r)},i:function(e){n||(transition_in(t.$$.fragment,e),n=!0)},o:function(e){transition_out(t.$$.fragment,e),n=!1},d:function(e){destroy_component(t,e)}}}function create_if_block$9(e){var t,n,r,a,i;return n=new LogoInner({props:{logo:e[0],purifyHtml:e[2],theme:e[1]}}),{c:function(){t=element("a"),create_component(n.$$.fragment),this.h()},l:function(e){var r=children(t=claim_element(e,"A",{href:!0,title:!0,target:!0,rel:!0}));claim_component(n.$$.fragment,r),r.forEach(detach),this.h()},h:function(){attr(t,"href",r=e[0].url),attr(t,"title",a=e[0].linkTitle||e[0].url),attr(t,"target","_blank"),attr(t,"rel","noopener noreferrer")},m:function(e,r){insert(e,t,r),mount_component(n,t,null),i=!0},p:function(e,o){var s={};1&o&&(s.logo=e[0]),2&o&&(s.theme=e[1]),n.$set(s),(!i||1&o&&r!==(r=e[0].url))&&attr(t,"href",r),(!i||1&o&&a!==(a=e[0].linkTitle||e[0].url))&&attr(t,"title",a)},i:function(e){i||(transition_in(n.$$.fragment,e),i=!0)},o:function(e){transition_out(n.$$.fragment,e),i=!1},d:function(e){e&&detach(t),destroy_component(n)}}}function create_fragment$c(e){var t,n,r,a,i=[create_if_block$9,create_else_block$3],o=[];function s(e,t){return e[0].url?0:1}return t=s(e),n=o[t]=i[t](e),{c:function(){n.c(),r=empty()},l:function(e){n.l(e),r=empty()},m:function(e,n){o[t].m(e,n),insert(e,r,n),a=!0},p:function(e,a){var c=_slicedToArray(a,1)[0],u=t;(t=s(e))===u?o[t].p(e,c):(group_outros(),transition_out(o[u],1,1,(function(){o[u]=null})),check_outros(),(n=o[t])||(n=o[t]=i[t](e)).c(),transition_in(n,1),n.m(r.parentNode,r))},i:function(e){a||(transition_in(n),a=!0)},o:function(e){transition_out(n),a=!1},d:function(e){o[t].d(e),e&&detach(r)}}}function instance$c(e,t,n){var r,a,i,o,s=t.props,c=s,u=c.get,l=c.purifyHtml;return e.$set=function(e){"props"in e&&n(3,s=e.props)},e.$$.update=function(){var t;8&e.$$.dirty&&n(4,(a=(t=s).chart,i=t.theme,o=t.logoId,t),a,(n(1,i),n(3,s)),(n(5,o),n(3,s)));if(51&e.$$.dirty){var c=u(a,"metadata.publish.blocks.logo"),l=u(i,"data.options.blocks.logo.data.options",[]),p=o||c.id;n(0,r=l.find((function(e){return e.id===p}))),p&&r||n(0,r=l[0]||{})}},[r,i,l,s]}var Logo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$c,create_fragment$c,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function create_fragment$d(e){var t;return{c:function(){t=element("div"),this.h()},l:function(e){children(t=claim_element(e,"DIV",{class:!0,style:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","export-rect"),set_style(t,"width",px(e[0])),set_style(t,"height",px(e[1])),set_style(t,"background",e[2])},m:function(e,n){insert(e,t,n)},p:function(e,n){var r=_slicedToArray(n,1)[0];1&r&&set_style(t,"width",px(e[0])),2&r&&set_style(t,"height",px(e[1])),4&r&&set_style(t,"background",e[2])},i:noop,o:noop,d:function(e){e&&detach(t)}}}function px(e){return"string"==typeof e?e:e+"px"}function instance$d(e,t,n){var r,a,i,o,s,c=t.props,u=c.get;return e.$set=function(e){"props"in e&&n(3,c=e.props)},e.$$.update=function(){8&e.$$.dirty&&n(4,r=c.theme),16&e.$$.dirty&&n(5,a=u(r,"data.options.blocks.rectangle.data",{})),32&e.$$.dirty&&n(0,i=u(a,"width",50)),32&e.$$.dirty&&n(1,o=u(a,"height",5)),32&e.$$.dirty&&n(2,s=u(a,"background","red"))},[i,o,s,c]}var Rectangle=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$d,create_fragment$d,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function estimateTextWidth(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,n=t/14;return e.split("").reduce((function(e,t){return e+(CHAR_W[t]||CHAR_W.a)}),0)*n}var CHAR_W={a:9,A:10,b:9,B:10,c:8,C:10,d:9,D:11,e:9,E:9,f:5,F:8,g:9,G:11,h:9,H:11,i:4,I:4,j:4,J:4,k:8,K:9,l:4,L:8,m:14,M:12,n:9,N:10,o:9,O:11,p:9,P:8,q:9,Q:11,r:6,R:10,s:7,S:9,t:5,T:9,u:9,U:10,v:8,V:10,w:11,W:14,x:8,X:10,y:8,Y:9,z:7,Z:10,".":4,"!":4,"|":4,",":4,":":5,";":5,"-":5,"+":12," ":4};function add_css$2(){var e=element("style");e.id="svelte-111z7el-style",e.textContent="div.svelte-111z7el{position:fixed;opacity:0.182;font-weight:700;font-size:0;white-space:nowrap;left:-100px;top:0px;right:-100px;line-height:100vh;bottom:0;text-align:center;pointer-events:none;transform-origin:middle center}",append(document.head,e)}function create_fragment$e(e){var t,n,r,a,i=e[6](e[2])+"";return add_render_callback(e[8]),{c:function(){t=element("div"),n=element("span"),this.h()},l:function(e){var r=children(t=claim_element(e,"DIV",{class:!0,style:!0,"data-rotate":!0}));children(n=claim_element(r,"SPAN",{})).forEach(detach),r.forEach(detach),this.h()},h:function(){attr(t,"class","watermark noscript svelte-111z7el"),set_style(t,"transform","rotate("+e[3]+"rad)"),set_style(t,"font-size",e[5]),attr(t,"data-rotate",e[4])},m:function(o,s){insert(o,t,s),append(t,n),n.innerHTML=i,r||(a=listen(window,"resize",e[8]),r=!0)},p:function(e,r){var a=_slicedToArray(r,1)[0];4&a&&i!==(i=e[6](e[2])+"")&&(n.innerHTML=i),8&a&&set_style(t,"transform","rotate("+e[3]+"rad)"),32&a&&set_style(t,"font-size",e[5]),16&a&&attr(t,"data-rotate",e[4])},i:noop,o:noop,d:function(e){e&&detach(t),r=!1,a()}}}function instance$e(e,t,n){var r,a,i,o,s,c,u,l,p,f,h,d,m=t.props,y=m,g=y.get,v=y.purifyHtml;return e.$set=function(e){"props"in e&&n(7,m=e.props)},e.$$.update=function(){var t;128&e.$$.dirty&&n(9,(i=(t=m).chart,o=t.theme,t),i,(n(10,o),n(7,m)));1024&e.$$.dirty&&n(11,s=g(o,"data.options.watermark.monospace",!1)),1024&e.$$.dirty&&n(12,c=g(o,"data.options.watermark.custom-field")),5632&e.$$.dirty&&n(2,u=!!g(o,"data.options.watermark")&&(c?g(i,"metadata.custom.".concat(c),""):g(o,"data.options.watermark.text","CONFIDENTIAL"))),3&e.$$.dirty&&n(3,l=-Math.atan(a/r)),8&e.$$.dirty&&n(4,p=180*l/Math.PI),3&e.$$.dirty&&n(13,f=Math.sqrt(r*r+a*a)),2052&e.$$.dirty&&n(14,h=s?20*u.length:estimateTextWidth(u,20)),24576&e.$$.dirty&&n(5,d="".concat(Math.round(.75*f/h*20),"px"))},[r,a,u,l,p,d,v,m,function(){n(0,r=window.innerWidth),n(1,a=window.innerHeight)}]}var Watermark=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document.getElementById("svelte-111z7el-style")||add_css$2(),init(_assertThisInitialized(r),e,instance$e,create_fragment$e,safe_not_equal,{props:7}),r}return n}(SvelteComponent);function create_fragment$f(e){var t;return{c:function(){t=element("hr"),this.h()},l:function(e){t=claim_element(e,"HR",{class:!0,style:!0}),this.h()},h:function(){attr(t,"class","dw-line"),set_style(t,"border","0"),set_style(t,"border-bottom",e[0]),set_style(t,"margin",e[1])},m:function(e,n){insert(e,t,n)},p:function(e,n){var r=_slicedToArray(n,1)[0];1&r&&set_style(t,"border-bottom",e[0]),2&r&&set_style(t,"margin",e[1])},i:noop,o:noop,d:function(e){e&&detach(t)}}}function instance$f(e,t,n){var r,a,i,o,s=t.props,c=s.get;return e.$set=function(e){"props"in e&&n(2,s=e.props)},e.$$.update=function(){4&e.$$.dirty&&n(3,r=s.theme),12&e.$$.dirty&&n(4,a=c(r,"data.options.blocks.".concat(s.id,".data"),{})),16&e.$$.dirty&&n(0,i=c(a,"border","1px solid #cccccc")),16&e.$$.dirty&&n(1,o=c(a,"margin","0px"))},[i,o,s]}var HorizontalRule=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$f,create_fragment$f,safe_not_equal,{props:2}),r}return n}(SvelteComponent);function add_css$3(){var e=element("style");e.id="svelte-eczzvz-style",e.textContent="svg.svelte-eczzvz{width:100%;overflow-x:hidden}",append(document.head,e)}function create_fragment$g(e){var t,n,r,a;return{c:function(){t=svg_element("svg"),n=svg_element("line"),this.h()},l:function(e){var r=children(t=claim_element(e,"svg",{style:!0,class:!0},1));children(n=claim_element(r,"line",{style:!0,x1:!0,y1:!0,x2:!0,y2:!0},1)).forEach(detach),r.forEach(detach),this.h()},h:function(){set_style(n,"stroke",e[3]),set_style(n,"stroke-width",e[4]),set_style(n,"stroke-dasharray",e[5]),set_style(n,"stroke-linecap",e[6]),attr(n,"x1","0"),attr(n,"y1",r=e[4]/2),attr(n,"x2",e[1]),attr(n,"y2",a=e[4]/2),set_style(t,"height",Math.max(e[4],1)+"px"),set_style(t,"margin",e[2]),attr(t,"class","svelte-eczzvz")},m:function(r,a){insert(r,t,a),append(t,n),e[8](t)},p:function(e,i){var o=_slicedToArray(i,1)[0];8&o&&set_style(n,"stroke",e[3]),16&o&&set_style(n,"stroke-width",e[4]),32&o&&set_style(n,"stroke-dasharray",e[5]),64&o&&set_style(n,"stroke-linecap",e[6]),16&o&&r!==(r=e[4]/2)&&attr(n,"y1",r),2&o&&attr(n,"x2",e[1]),16&o&&a!==(a=e[4]/2)&&attr(n,"y2",a),16&o&&set_style(t,"height",Math.max(e[4],1)+"px"),4&o&&set_style(t,"margin",e[2])},i:noop,o:noop,d:function(n){n&&detach(t),e[8](null)}}}function instance$g(e,t,n){var r,a,i,o,s,c,u,l,p=t.props,f=p.get,h=0;return onMount((function(){n(1,h=r.getBoundingClientRect().width)})),"undefined"!=typeof window&&window.addEventListener("resize",(function(){n(1,h=r.getBoundingClientRect().width)})),e.$set=function(e){"props"in e&&n(7,p=e.props)},e.$$.update=function(){128&e.$$.dirty&&n(9,a=p.theme),640&e.$$.dirty&&n(10,i=f(a,"data.options.blocks.".concat(p.id,".data"),{})),1024&e.$$.dirty&&n(2,o=f(i,"margin","0px")),1024&e.$$.dirty&&n(3,s=f(i,"color","#000000")),1024&e.$$.dirty&&n(4,c=f(i,"width",1)),1024&e.$$.dirty&&n(5,u=f(i,"strokeDasharray","none")),1024&e.$$.dirty&&n(6,l=f(i,"strokeLinecap","butt"))},[r,h,o,s,c,u,l,p,function(e){binding_callbacks[e?"unshift":"push"]((function(){n(0,r=e)}))}]}var SvgRule=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document.getElementById("svelte-eczzvz-style")||add_css$3(),init(_assertThisInitialized(r),e,instance$g,create_fragment$g,safe_not_equal,{props:7}),r}return n}(SvelteComponent),VERSION="1.13.1",root="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},ArrayProto=Array.prototype,ObjProto=Object.prototype,SymbolProto="undefined"!=typeof Symbol?Symbol.prototype:null,push=ArrayProto.push,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,supportsArrayBuffer="undefined"!=typeof ArrayBuffer,supportsDataView="undefined"!=typeof DataView,nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeCreate=Object.create,nativeIsView=supportsArrayBuffer&&ArrayBuffer.isView,_isNaN=isNaN,_isFinite=isFinite,hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],MAX_ARRAY_INDEX=Math.pow(2,53)-1;function restArguments(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a=0&&n<=MAX_ARRAY_INDEX}}function shallowProperty(e){return function(t){return null==t?void 0:t[e]}}var getByteLength=shallowProperty("byteLength"),isBufferLike=createSizePropertyCheck(getByteLength),typedArrayPattern=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function isTypedArray(e){return nativeIsView?nativeIsView(e)&&!isDataView$1(e):isBufferLike(e)&&typedArrayPattern.test(toString.call(e))}var isTypedArray$1=supportsArrayBuffer?isTypedArray:constant(!1),getLength=shallowProperty("length");function emulatedSet(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},_escape=createEscaper(escapeMap),unescapeMap=invert(escapeMap),_unescape=createEscaper(unescapeMap),templateSettings=_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},noMatch=/(.)^/,escapes={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},escapeRegExp=/\\|'|\r|\n|\u2028|\u2029/g;function escapeChar(e){return"\\"+escapes[e]}var bareIdentifier=/^\s*(\w|\$)+\s*$/;function template(e,t,n){!t&&n&&(t=n),t=defaults({},t,_.templateSettings);var r=RegExp([(t.escape||noMatch).source,(t.interpolate||noMatch).source,(t.evaluate||noMatch).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,(function(t,n,r,o,s){return i+=e.slice(a,s).replace(escapeRegExp,escapeChar),a=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n";var o,s=t.variable;if(s){if(!bareIdentifier.test(s))throw new Error("variable is not a bare identifier: "+s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(s,"_",i)}catch(e){throw e.source=i,e}var c=function(e){return o.call(this,e,_)};return c.source="function("+s+"){\n"+i+"}",c}function result(e,t,n){var r=(t=toPath$1(t)).length;if(!r)return isFunction$1(n)?n.call(e):n;for(var a=0;a1)flatten(s,t-1,n,r),a=r.length;else for(var c=0,u=s.length;ct?(r&&(clearTimeout(r),r=null),s=u,o=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(c,l)),o};return u.cancel=function(){clearTimeout(r),s=0,r=a=i=null},u}function debounce(e,t,n){var r,a,i,o,s,c=function(){var u=now()-a;t>u?r=setTimeout(c,t-u):(r=null,n||(o=e.apply(s,i)),r||(i=s=null))},u=restArguments((function(u){return s=this,i=u,a=now(),r||(r=setTimeout(c,t),n&&(o=e.apply(s,i))),o}));return u.cancel=function(){clearTimeout(r),r=i=s=null},u}function wrap(e,t){return partial(t,e)}function negate(e){return function(){return!e.apply(this,arguments)}}function compose(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function after(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function before(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var once=partial(before,2);function findKey(e,t,n){t=cb(t,n);for(var r,a=keys(e),i=0,o=a.length;i0?0:a-1;i>=0&&i0?o=i>=0?i:Math.max(i+s,o):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,a)]===a?i:-1;if(a!=a)return(i=t(slice.call(r,o,s),isNaN$1))>=0?i+o:-1;for(i=e>0?o:s-1;i>=0&&i0?0:o-1;for(a||(r=t[i?i[s]:s],s+=e);s>=0&&s=3;return t(e,optimizeCb(n,a,4),r,i)}}var reduce=createReduce(1),reduceRight=createReduce(-1);function filter(e,t,n){var r=[];return t=cb(t,n),each(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function reject(e,t,n){return filter(e,negate(cb(t)),n)}function every(e,t,n){t=cb(t,n);for(var r=!isArrayLike(e)&&keys(e),a=(r||e).length,i=0;i=0}var invoke=restArguments((function(e,t,n){var r,a;return isFunction$1(t)?a=t:(t=toPath$1(t),r=t.slice(0,-1),t=t[t.length-1]),map(e,(function(e){var i=a;if(!i){if(r&&r.length&&(e=deepGet(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function pluck(e,t){return map(e,property(t))}function where(e,t){return filter(e,matcher(t))}function max(e,t,n){var r,a,i=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=isArrayLike(e)?e:values(e)).length;si&&(i=r);else t=cb(t,n),each(e,(function(e,n,r){((a=t(e,n,r))>o||a===-1/0&&i===-1/0)&&(i=e,o=a)}));return i}function min(e,t,n){var r,a,i=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=isArrayLike(e)?e:values(e)).length;sr||void 0===n)return 1;if(n1&&(r=optimizeCb(r,t[1])),t=allKeys(e)):(r=keyInObj,t=flatten(t,!1,!1),e=Object(e));for(var a=0,i=t.length;a1&&(n=t[1])):(t=map(flatten(t,!1,!1),String),r=function(e,n){return!contains(t,n)}),pick(e,r,n)}));function initial(e,t,n){return slice.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function first(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:initial(e,e.length-t)}function rest(e,t,n){return slice.call(e,null==t||n?1:t)}function last(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rest(e,Math.max(0,e.length-t))}function compact(e){return filter(e,Boolean)}function flatten$1(e,t){return flatten(e,t,!1)}var difference=restArguments((function(e,t){return t=flatten(t,!0,!0),filter(e,(function(e){return!contains(t,e)}))})),without=restArguments((function(e,t){return difference(e,t)}));function uniq(e,t,n,r){isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=cb(n,r));for(var a=[],i=[],o=0,s=getLength(e);o=this.expression.length?this.newToken(TEOF,"EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},TokenStream.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if("'"===n||'"'===n)for(var r=this.expression.indexOf(n,t+1);r>=0&&this.pos"9")))break}if(t>e){var r=this.expression.substring(e,t);if(r in this.consts)return this.current=this.newToken(TNUMBER,this.consts[r]),this.pos+=r.length,!0}return!1},TokenStream.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t"9")))break}if(t>e){var r=this.expression.substring(e,t);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(TOP,r),this.pos+=r.length,!0}return!1},TokenStream.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t"9"))break}else n=!0}if(n){var a=this.expression.substring(e,t);return this.current=this.newToken(TNAME,a),this.pos+=a.length,!0}return!1},TokenStream.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);!(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t||(e=!0,this.pos++,this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var codePointPattern=/^[0-9a-f]{4}$/i;TokenStream.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var n=e.substring(0,t);t>=0;){var r=e.charAt(++t);switch(r){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;case"u":var a=e.substring(t+1,t+5);codePointPattern.test(a)||this.parseError("Illegal escape sequence: \\u"+a),n+=String.fromCharCode(parseInt(a,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+r+'"')}++t;var i=e.indexOf("\\",t);n+=e.substring(t,i<0?e.length:i),t=i}return n},TokenStream.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},TokenStream.prototype.isRadixInteger=function(){var e,t,n=this.pos;if(n>=this.expression.length-2||"0"!==this.expression.charAt(n))return!1;if(++n,"x"===this.expression.charAt(n))e=16,t=/^[0-9a-f]$/i,++n;else{if("b"!==this.expression.charAt(n))return!1;e=2,t=/^[01]$/i,++n}for(var r=!1,a=n;n="0"&&e<="9"||!i&&"."===e);)"."===e?i=!0:o=!0,n++,t=o;if(t&&(a=n),"e"===e||"E"===e){n++;for(var s=!0,c=!1;n="0"&&e<="9"))break;c=!0,s=!1}else s=!1;n++}c||(n=a)}return t?(this.current=this.newToken(TNUMBER,parseFloat(this.expression.substring(r,n))),this.pos=n):this.pos=a,t},TokenStream.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if("+"===t||"-"===t||"*"===t||"/"===t||"%"===t||"^"===t||"?"===t||":"===t||"."===t)this.current=this.newToken(TOP,t);else if("∙"===t||"•"===t)this.current=this.newToken(TOP,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,">="),this.pos++):this.current=this.newToken(TOP,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"<="),this.pos++):this.current=this.newToken(TOP,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(TOP,"||"),this.pos++}else if("="===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"=="),this.pos++):this.current=this.newToken(TOP,t);else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"!="),this.pos++):this.current=this.newToken(TOP,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)},TokenStream.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},TokenStream.prototype.getCoordinates=function(){var e,t=0,n=-1;do{t++,e=this.pos-n,n=this.expression.indexOf("\n",n+1)}while(n>=0&&n=",">","in"];ParserState.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(TOP,COMPARISON_OPERATORS);){var t=this.current;this.parseAddSub(e),e.push(binaryInstruction(t.value))}};var ADD_SUB_OPERATORS=["+","-","||"];ParserState.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(TOP,ADD_SUB_OPERATORS);){var t=this.current;this.parseTerm(e),e.push(binaryInstruction(t.value))}};var TERM_OPERATORS=["*","/","%"];function add(e,t){return Number(e)+Number(t)}function sub(e,t){return e-t}function mul(e,t){return e*t}function div(e,t){return e/t}function mod(e,t){return e%t}function equal(e,t){return e===t}function notEqual(e,t){return e!==t}function greaterThan(e,t){return e>t}function lessThan(e,t){return e=t}function lessThanEqual(e,t){return e<=t}function andOperator(e,t){return Boolean(e&&t)}function orOperator(e,t){return Boolean(e||t)}function log10(e){return Math.log(e)*Math.LOG10E}function neg(e){return-e}function not(e){return!e}function trunc(e){return e<0?Math.ceil(e):Math.floor(e)}function random$1(e){return Math.random()*(e||1)}function stringOrArrayLength(e){return Array.isArray(e)?e.length:String(e).length}function condition(e,t,n){return e?t:n}function roundTo(e,t){return void 0===t||0==+t?Math.round(e):(e=+e,t=-+t,isNaN(e)||"number"!=typeof t||t%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+t:t))))}function arrayIndex(e,t){return e[0|t]}function max$1(e){return 1===arguments.length&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function min$1(e){return 1===arguments.length&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function arrayMap(e,t){if("function"!=typeof e)throw new Error("First argument to map is not a function");if(!Array.isArray(t))throw new Error("Second argument to map is not an array");return t.map((function(t,n){return e(t,n)}))}function arrayFold(e,t,n){if("function"!=typeof e)throw new Error("First argument to fold is not a function");if(!Array.isArray(n))throw new Error("Second argument to fold is not an array");return n.reduce((function(t,n,r){return e(t,n,r)}),t)}function arrayFilter(e,t){if("function"!=typeof e)throw new Error("First argument to filter is not a function");if(!Array.isArray(t))throw new Error("Second argument to filter is not an array");return t.filter((function(t,n){return e(t,n)}))}function sign(e){return(e>0)-(e<0)||+e}function log1p(e){return Math.log(1+e)}function log2(e){return Math.log(e)/Math.LN2}function sum(e){if(!Array.isArray(e))throw new Error("Sum argument is not an array");return e.reduce((function(e,t){return e+Number(t)}),0)}function evaluate(e,t,n){var r,a,i,o,s,c,u=[];if(isExpressionEvaluator(e))return resolveExpression(e,n);for(var l=e.length,p=0;p0;)s.unshift(resolveExpression(u.pop(),n));if(!(o=u.pop()).apply||!o.call)throw new Error(o+" is not a function");u.push(o.apply(void 0,s))}else if(h===IFUNDEF)u.push(function(){for(var e=u.pop(),r=[],a=f.value;a-- >0;)r.unshift(u.pop());var i=u.pop(),o=function(){for(var a=Object.assign({},n),i=0,o=r.length;i0;)s.unshift(u.pop());u.push(s)}}if(u.length>1)throw new Error("invalid Expression (parity)");return 0===u[0]?0:resolveExpression(u[0],n)}function createExpressionEvaluator(e,t,n){return isExpressionEvaluator(e)?e:{type:IEXPREVAL,value:function(n){return evaluate(e.value,t,n)}}}function isExpressionEvaluator(e){return e&&e.type===IEXPREVAL}function resolveExpression(e,t){return isExpressionEvaluator(e)?e.value(t):e}function Expression(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}function trim(e){return e.trim()}function Parser(e){this.options=e||{},this.unaryOps={SIN:Math.sin,COS:Math.cos,TAN:Math.tan,ASIN:Math.asin,ACOS:Math.acos,ATAN:Math.atan,SQRT:Math.sqrt,LOG:Math.log,LOG2:Math.log2||log2,LN:Math.log,LOG10:Math.log10||log10,LG:Math.log10||log10,LOG1P:Math.log1p||log1p,ABS:Math.abs,CEIL:Math.ceil,FLOOR:Math.floor,ISNULL:function(e){return null===e},TRUNC:Math.trunc||trunc,"-":neg,"+":Number,EXP:Math.exp,NOT:not,LENGTH:stringOrArrayLength,"!":not,SIGN:Math.sign||sign,TEXT:function(e){return t(e)?e.toISOString():String(e)},NUMBER:Number},this.binaryOps={"+":add,"-":sub,"*":mul,"/":div,"%":mod,"^":Math.pow,"==":equal,"!=":notEqual,">":greaterThan,"<":lessThan,">=":greaterThanEqual,"<=":lessThanEqual,and:andOperator,or:orOperator,in:function(e,t){return Array.isArray(t)?t.includes(e):String(t).includes(e)},"[":arrayIndex},this.ternaryOps={"?":condition};var t=function(e){return e instanceof Date&&!isNaN(e)},n=function(e){if(t(e))return e;try{var n=new Date(e);return t(n)?n:null}catch(e){return null}};function r(e){return(1===arguments.length&&Array.isArray(e)?e:Array.from(arguments)).slice(0).filter((function(e){return!isNaN(e)&&Number.isFinite(e)}))}var a=/\w*/g,i=/\w\S*/g,o=/[\\^$*+?.()|[\]{}]/g;try{a=new RegExp("\\p{L}*","ug"),i=new RegExp("[\\p{L}\\p{N}]\\S*","ug")}catch(e){}this.functions={IF:condition,RANDOM:random$1,MIN:function(){var e=r.apply(this,arguments);return min$1(e)},MAX:function(){return max$1(r.apply(this,arguments))},SUM:function(){return sum(r.apply(this,arguments))},MEAN:function(){var e=r.apply(this,arguments);return sum(e)/e.length},MEDIAN:function(){var e=r.apply(this,arguments).sort((function(e,t){return e-t})),t=Math.floor(e.length/2);return e.length%2==1?e[t]:.5*(e[t-1]+e[t])},POW:Math.pow,ATAN2:Math.atan2,ROUND:roundTo,CONCAT:function(){return Array.from(arguments).join("")},TRIM:trim,SUBSTR:function(e,t,n){return e.substr(t,n)},REPLACE:function(e,t,n){return e.replace(new RegExp(String(t).replace(o,"\\$&"),"g"),n)},REPLACE_REGEX:function(e,t,n){return e.replace(new RegExp(t,"g"),n)},SPLIT:function(e,t){return String(e).split(t)},LOWER:function(e){return String(e).toLowerCase()},UPPER:function(e){return String(e).toUpperCase()},PROPER:function(e){return String(e).replace(a,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},TITLE:function(e){return String(e).replace(i,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},SORT:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Array.isArray(e))throw new Error("First argument to SORT is not an array");return e.slice(0).sort((function(e,r){return((e="string"==typeof n?e[n]:"function"==typeof n?n(e):e)>(r="string"==typeof n?r[n]:"function"==typeof n?n(r):r)?1:e2&&void 0!==arguments[2]?arguments[2]:null;if(!Array.isArray(e))throw new Error("First argument to JOIN is not an array");return n?[e.slice(0,e.length-1).join(t),e[e.length-1]].join(n):e.join(t)},MAP:arrayMap,FOLD:arrayFold,FILTER:arrayFilter,PLUCK:function(e,t){if(!Array.isArray(e))throw new Error("First argument to PLUCK is not an array");return e.map((function(e){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:null}))},INDEXOF:function(e,t){return Array.isArray(e)||(e=String(e)),e.indexOf(t)},FIND:function(e,t){if(!Array.isArray(e))throw new Error("First argument to FIND is not an array");if("function"!=typeof t)throw new Error("Second argument to FIND is not a function");for(var n=e.length,r=0;r1&&(arguments[1]=arguments[1]-1),_construct(Date,Array.prototype.slice.call(arguments))},YEAR:function(e){return(e=n(e))?e.getFullYear():null},MONTH:function(e){return(e=n(e))?e.getMonth()+1:null},DAY:function(e){return(e=n(e))?e.getDate():null},WEEKDAY:function(e){return(e=n(e))?e.getDay():null},HOURS:function(e){return(e=n(e))?e.getHours():null},MINUTES:function(e){return(e=n(e))?e.getMinutes():null},SECONDS:function(e){return(e=n(e))?e.getSeconds():null},DATEDIFF:function(e,t){return e=n(e),t=n(t),e&&t?(t.getTime()-e.getTime())/864e5:null},TIMEDIFF:function(e,t){return e=n(e),t=n(t),e&&t?(t.getTime()-e.getTime())/1e3:null}},this.unaryOps.LOWER=this.functions.LOWER,this.unaryOps.UPPER=this.functions.UPPER,this.unaryOps.PROPER=this.functions.PROPER,this.unaryOps.TITLE=this.functions.TITLE,this.unaryOps.TRIM=this.functions.TRIM,this.unaryOps.YEAR=this.functions.YEAR,this.unaryOps.MONTH=this.functions.MONTH,this.unaryOps.DAY=this.functions.DAY,this.unaryOps.WEEKDAY=this.functions.WEEKDAY,this.unaryOps.HOURS=this.functions.HOURS,this.unaryOps.MINUTES=this.functions.MINUTES,this.unaryOps.SECONDS=this.functions.SECONDS,this.consts={E:Math.E,PI:Math.PI,TRUE:!0,FALSE:!1,NA:Number.NaN,NULL:Number.NaN}}ParserState.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(TOP,TERM_OPERATORS);){var t=this.current;this.parseFactor(e),e.push(binaryInstruction(t.value))}},ParserState.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(TOP,(function(e){return e.value in t}))){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===TPAREN&&"("===this.nextToken.value)return this.restore(),void this.parseExponential(e);if(this.nextToken.type===TSEMICOLON||this.nextToken.type===TCOMMA||this.nextToken.type===TEOF||this.nextToken.type===TPAREN&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(e)}var n=this.current;this.parseFactor(e),e.push(unaryInstruction(n.value))}else this.parseExponential(e)},ParserState.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(TOP,"^");)this.parseFactor(e),e.push(binaryInstruction("^"))},ParserState.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(TOP,"!");)e.push(unaryInstruction("!"))},ParserState.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(TOP,(function(e){return e.value in t}))){var n=this.current;this.parseAtom(e),e.push(unaryInstruction(n.value))}else for(this.parseMemberExpression(e);this.accept(TPAREN,"(");)if(this.accept(TPAREN,")"))e.push(new Instruction(IFUNCALL,0));else{var r=this.parseArgumentList(e);e.push(new Instruction(IFUNCALL,r))}},ParserState.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(TPAREN,")");)for(this.parseExpression(e),++t;this.accept(TCOMMA);)this.parseExpression(e),++t;return t},ParserState.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(TOP,".")||this.accept(TBRACKET,"[");){var t=this.current;if("."===t.value){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(TNAME),e.push(new Instruction(IMEMBER,this.current.value))}else{if("["!==t.value)throw new Error("unexpected symbol: "+t.value);if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(e),this.expect(TBRACKET,"]"),e.push(binaryInstruction("["))}}},Expression.prototype.evaluate=function(e){return e=e||{},evaluate(this.tokens,this,e)},Expression.prototype.variables=function(){return(this.tokens||[]).filter((function(e){return"IVAR"===e.type})).map((function(e){return e.value}))},Parser.prototype.parse=function(e){var t=[],n=new ParserState(this,new TokenStream(this,e),{allowMemberAccess:!0});return n.parseExpression(t),n.expect(TEOF,"EOF"),new Expression(t,this)},Parser.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var sharedParser=new Parser;Parser.parse=function(e){return sharedParser.parse(e)},Parser.evaluate=function(e,t){return sharedParser.parse(e).evaluate(t)},Parser.keywords=["ABS","ACOS","ACOSH","and","ASIN","ASINH","ATAN","ATAN2","ATANH","CBRT","CEIL","CONCAT","COS","COSH","DATEDIFF","DAY","E","EVERY","EXP","EXPM1","FIND","FLOOR","HOURS","IF","in","INDEXOF","ISNULL","JOIN","LENGTH","LN","LOG","LOG10","LOG1P","LOG2","LOWER","MAP","MAX","MEAN","MEDIAN","MIN","MINUTES","MONTH","NOT","NOT","or","PI","PLUCK","POW","PROPER","RANDOM","RANGE","REPLACE","REPLACE_REGEX","ROUND","SECONDS","SIGN","SIN","SINH","SLICE","SOME","SORT","SPLIT","SQRT","SUBSTR","SUM","TAN","TANH","TIMEDIFF","TITLE","TRIM","TRUNC","UPPER","WEEKDAY","YEAR"];var optionNameMap={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",AND:"logical",OR:"logical",NOT:"logical",IN:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function getOptionName(e){return Object.prototype.hasOwnProperty.call(optionNameMap,e)?optionNameMap[e]:e}function width(e){var t=parseFloat(getComputedStyle(e,null).width.replace("px",""));return isNaN(t)?0:t}function domReady(e){/complete|interactive|loaded/.test(document.readyState)?e():window.addEventListener("DOMContentLoaded",(function(){e()}))}function postEvent(e){return function(t,n){if(window.parent&&window.parent.postMessage){var r={source:"datawrapper",chartId:e,type:t,data:n};window.parent.postMessage(r,"*")}}}function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}Parser.prototype.isOperatorEnabled=function(e){var t=getOptionName(e),n=this.options.operators||{};return!(t in n)||!!n[t]};var fontfaceobserver_standalone=createCommonjsModule((function(e){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function r(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function a(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function i(e,n){function r(){var e=i;a(e)&&e.a.parentNode&&n(e.g)}var i=e;t(e.b,r),t(e.c,r),a(e)}function o(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,c=null,u=null,l=null;function p(){return null===l&&(l=!!document.fonts),l}function f(){if(null===u){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}u=""!==e.style.font}return u}function h(e,t){return[e.style,e.weight,f()?e.stretch:"","100px",t].join(" ")}o.prototype.load=function(e,t){var a=this,o=e||"BESbswy",u=0,l=t||3e3,f=(new Date).getTime();return new Promise((function(e,t){if(p()&&!function(){if(null===c)if(p()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);c=!!e&&603>parseInt(e[1],10)}else c=!1;return c}()){var d=new Promise((function(e,t){!function n(){(new Date).getTime()-f>=l?t(Error(l+"ms timeout exceeded")):document.fonts.load(h(a,'"'+a.family+'"'),o).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),m=new Promise((function(e,t){u=setTimeout((function(){t(Error(l+"ms timeout exceeded"))}),l)}));Promise.race([m,d]).then((function(){clearTimeout(u),e(a)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function c(){var t;(t=-1!=y&&-1!=g||-1!=y&&-1!=v||-1!=g&&-1!=v)&&((t=y!=g&&y!=v&&g!=v)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(y==_&&g==_&&v==_||y==b&&g==b&&v==b||y==$&&g==$&&v==$)),t=!t),t&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(u),e(a))}var p=new n(o),d=new n(o),m=new n(o),y=-1,g=-1,v=-1,_=-1,b=-1,$=-1,x=document.createElement("div");x.dir="ltr",r(p,h(a,"sans-serif")),r(d,h(a,"serif")),r(m,h(a,"monospace")),x.appendChild(p.a),x.appendChild(d.a),x.appendChild(m.a),document.body.appendChild(x),_=p.a.offsetWidth,b=d.a.offsetWidth,$=m.a.offsetWidth,function e(){if((new Date).getTime()-f>=l)x.parentNode&&x.parentNode.removeChild(x),t(Error(l+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(y=p.a.offsetWidth,g=d.a.offsetWidth,v=m.a.offsetWidth,c()),u=setTimeout(e,50)}}(),i(p,(function(e){y=e,c()})),r(p,h(a,'"'+a.family+'",sans-serif')),i(d,(function(e){g=e,c()})),r(d,h(a,'"'+a.family+'",serif')),i(m,(function(e){v=e,c()})),r(m,h(a,'"'+a.family+'",monospace'))}))}))},e.exports=o}()}));function observeFonts(e,t){var n=new Set(Array.isArray(e)?[]:Object.keys(e).filter((function(t){return"font"===e[t].type})));Object.keys(t.fontFamilies||{}).forEach((function(e){t.fontFamilies[e].forEach((function(t){n.has(t.name)&&(n.delete(t.name),n.add({family:e,props:{weight:t.weight||400,style:t.style||"normal"}}))}))}));var r=[];return n.forEach((function(e){var t="string"==typeof e?new fontfaceobserver_standalone(e):new fontfaceobserver_standalone(e.family,e.props);r.push(t.load(null,5e3))})),Promise.all(r)}function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t0?z(G,--E):0,B--,10===F&&(B=1,q--),F}function L(){return F=E2||R(F)>3?"":" "}function Z(e,t){for(;--t&&L()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return Q(e,P()+(t<6&&32==N()&&32==L()))}function _$2(e){for(;L();)switch(F){case e:return E;case 34:case 39:return _$2(34===e||39===e?e:F);case 40:41===e&&_$2(e);break;case 92:L()}return E}function ee(e,t){for(;L()&&e+F!==57&&(e+F!==84||47!==N()););return"/*"+Q(t,E-1)+"*"+d(47===e?e:L())}function re(e){for(;!R(N());)L();return Q(e,E)}function ae(e){return U(ce("",null,null,null,[""],e=T(e),0,[0],e))}function ce(e,t,n,r,a,i,o,s,c){for(var u=0,l=0,p=o,f=0,h=0,m=0,g=1,v=1,_=1,b=0,$="",x=a,w=i,k=r,E=$;v;)switch(m=b,b=L()){case 34:case 39:case 91:case 40:E+=V(b);break;case 9:case 10:case 13:case 32:E+=X(m);break;case 92:E+=Z(P()-1,7);continue;case 47:switch(N()){case 42:case 47:O(te(ee(L(),P()),t,n),c);break;default:E+="/"}break;case 123*g:s[u++]=A(E)*_;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+l:h>0&&A(E)-p&&O(h>32?se(E+";",r,n,p-1):se(y(E," ","")+";",r,n,p-2),c);break;case 59:E+=";";default:if(O(k=ne(E,t,n,u,l,a,s,$,x=[],w=[],p),i),123===b)if(0===l)ce(E,t,k,k,x,i,p,s,w);else switch(f){case 100:case 109:case 115:ce(e,k,k,r&&O(ne(e,k,k,0,0,a,s,$,a,x=[],p),w),a,w,p,s,r?x:w);break;default:ce(E,k,k,k,[""],w,p,s,w)}}u=l=h=0,g=_=1,$=E="",p=o;break;case 58:p=1+A(E),h=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==K())continue;switch(E+=d(b),b*g){case 38:_=l>0?1:(E+="\f",-1);break;case 44:s[u++]=(A(E)-1)*_,_=1;break;case 64:45===N()&&(E+=V(L())),f=N(),l=A($=E+=re(P())),b++;break;case 45:45===m&&2==A(E)&&(g=0)}}return i}function ne(e,t,r,a,i,o,s,c,u,l,p){for(var f=i-1,h=0===i?o:[""],d=M(h),m=0,v=0,_=0;m0?h[b]+" "+$:y($,/&\f/g,h[b])))&&(u[_++]=x);return H(e,t,r,0===i?n:c,u,l,p)}function te(e,t,n){return H(e,t,n,c,d(J()),C(e,2,-2),0)}function se(e,n,r,a){return H(e,n,r,t,C(e,0,a),C(e,a+1,-1),a)}function ue(t,n){switch(m(t,n)){case 5103:return a+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a+t+r+t+e+t+t;case 6828:case 4268:return a+t+e+t+t;case 6165:return a+t+e+"flex-"+t+t;case 5187:return a+t+y(t,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return a+t+e+"flex-item-"+y(t,/flex-|-self/,"")+t;case 4675:return a+t+e+"flex-line-pack"+y(t,/align-content|flex-|-self/,"")+t;case 5548:return a+t+e+y(t,"shrink","negative")+t;case 5292:return a+t+e+y(t,"basis","preferred-size")+t;case 6060:return a+"box-"+y(t,"-grow","")+a+t+e+y(t,"grow","positive")+t;case 4554:return a+y(t,/([^-])(transform)/g,"$1"+a+"$2")+t;case 6187:return y(y(y(t,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),t,"")+t;case 5495:case 3959:return y(t,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return y(y(t,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+t+t;case 4095:case 3583:case 4068:case 2532:return y(t,/(.+)-inline(.+)/,a+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(t)-1-n>6)switch(z(t,n+1)){case 109:if(45!==z(t,n+4))break;case 102:return y(t,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+r+(108==z(t,n+3)?"$3":"$2-$3"))+t;case 115:return~j(t,"stretch")?ue(y(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==z(t,n+1))break;case 6444:switch(z(t,A(t)-3-(~j(t,"!important")&&10))){case 107:return y(t,":",":"+a)+t;case 101:return y(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===z(t,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+e+"$2box$3")+t}break;case 5936:switch(z(t,n+11)){case 114:return a+t+e+y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a+t+e+y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a+t+e+y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a+t+e+t+t}return t}function ie(e,t){for(var n="",r=M(e),a=0;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize$1((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var a=cursor,i=n(e);return cursor=a,handleInterpolation(e,t,i)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return e;for(var r=Array.isArray(t)?t:t.split("."),a=e,i=0;i1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(n,r){var a=document.createElement("script");a.src=e,a.onload=function(){t&&t(),n()},a.onerror=r,document.body.appendChild(a)}))}function loadStylesheet(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof e&&(e={src:e}),e.parentElement&&"function"==typeof e.parentElement.appendChild||(e.parentElement=document.head),new Promise((function(n,r){var a=document.createElement("link");a.rel="stylesheet",a.href=e.src,a.onload=function(){t&&t(),n()},a.onerror=r,e.parentElement.appendChild(a)}))}function _call(e,t,n){if(n)return t?t(e()):e();try{var r=Promise.resolve(e());return t?r.then(t):r}catch(e){return Promise.reject(e)}}function _await(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function _catch(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function _empty(){}function _continueIgnored(e){if(e&&e.then)return e.then(_empty)}function _invoke(e,t){var n=e();return n&&n.then?n.then(t):t(n)}function _async(e){return function(){for(var t=[],n=0;n1?t-1:0),r=1;r

")),512&$$self.$$.dirty[0]&&(customCSS=purifyHTML(get$1(chart,"metadata.publish.custom-css",""),"")),104858113&$$self.$$.dirty[0]&&$$invalidate(30,blockProps={__:__,purifyHtml:clean,get:get$1,theme:theme,chart:chart,dwChart:dwChart,vis:vis,caption:caption,logoId:logoId}),1207959553&$$self.$$.dirty[0]&&$$invalidate(29,allBlocks=applyThemeBlockConfig([].concat(coreBlocks,pluginBlocks),theme,blockProps)),536871433&$$self.$$.dirty[0]&&$$invalidate(5,regions={header:getBlocks(allBlocks,"header",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),aboveFooter:getBlocks(allBlocks,"aboveFooter",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),footerLeft:getBlocks(allBlocks,"footerLeft",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),footerCenter:getBlocks(allBlocks,"footerCenter",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),footerRight:getBlocks(allBlocks,"footerRight",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),belowFooter:getBlocks(allBlocks,"belowFooter",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),afterBody:getBlocks(allBlocks,"afterBody",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),menu:getBlocks(allBlocks,"menu",{chart:chart,theme:theme,isStyleStatic:isStyleStatic})}),1&$$self.$$.dirty[0]&&$$invalidate(6,menu=get$1(theme,"data.options.menu",{})),36&$$self.$$.dirty[0]&&$$invalidate(7,contentBelowChart=!isStylePlain&&(regions.aboveFooter.length||regions.footerLeft.length||regions.footerCenter.length||regions.footerRight.length||regions.belowFooter.length||regions.afterBody.length))},[theme,chartAfterBodyHTML,isStylePlain,isStyleStatic,target,regions,menu,contentBelowChart,ariaDescription,chart,locales,visualization,translations,blocks,isIframe,isPreview,assets,styleHolder,origin,externalDataUrl,outerContainer,forceLogo,logoId,frontendDomain,div0_binding]}var Visualization=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$h,create_fragment$h,safe_not_equal,{chart:9,visualization:11,theme:0,locales:10,translations:12,blocks:13,chartAfterBodyHTML:1,isIframe:14,isPreview:15,assets:16,styleHolder:17,origin:18,externalDataUrl:19,outerContainer:20,isStylePlain:2,isStyleStatic:3,forceLogo:21,logoId:22,frontendDomain:23},[-1,-1]),r}return n}(SvelteComponent);function _await$1(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var document_1$1=globals.document;function _async$1(e){return function(){for(var t=[],n=0;n",e[15],"")+"";return document_1$1.title=t=purifyHTML(e[0].title,""),s=new Visualization({props:{chart:e[0],visualization:e[1],theme:e[2],locales:e[3],translations:e[4],blocks:e[5],chartAfterBodyHTML:e[6],isIframe:!0,isPreview:e[7],assets:e[8],externalDataUrl:e[9],isStylePlain:e[11],isStyleStatic:e[12],forceLogo:e[13],logoId:e[14],outerContainer:e[10]}}),{c:function(){n=element("meta"),i=empty(),o=space(),create_component(s.$$.fragment),this.h()},l:function(e){var t=query_selector_all('[data-svelte="svelte-ewafez"]',document_1$1.head);n=claim_element(t,"META",{name:!0,content:!0}),i=empty(),t.forEach(detach),o=claim_space(e),claim_component(s.$$.fragment,e),this.h()},h:function(){attr(n,"name","description"),attr(n,"content",r=get$1(e[0],"metadata.describe.intro")),a=new HtmlTag(null)},m:function(e,t){append(document_1$1.head,n),a.m(u,document_1$1.head),append(document_1$1.head,i),insert(e,o,t),mount_component(s,e,t),c=!0},p:function(e,i){var o=_slicedToArray(i,1)[0];(!c||1&o)&&t!==(t=purifyHTML(e[0].title,""))&&(document_1$1.title=t),(!c||1&o&&r!==(r=get$1(e[0],"metadata.describe.intro")))&&attr(n,"content",r),(!c||32768&o)&&u!==(u="<".concat("style",">",e[15],"")+"")&&a.p(u);var l={};1&o&&(l.chart=e[0]),2&o&&(l.visualization=e[1]),4&o&&(l.theme=e[2]),8&o&&(l.locales=e[3]),16&o&&(l.translations=e[4]),32&o&&(l.blocks=e[5]),64&o&&(l.chartAfterBodyHTML=e[6]),128&o&&(l.isPreview=e[7]),256&o&&(l.assets=e[8]),512&o&&(l.externalDataUrl=e[9]),2048&o&&(l.isStylePlain=e[11]),4096&o&&(l.isStyleStatic=e[12]),8192&o&&(l.forceLogo=e[13]),16384&o&&(l.logoId=e[14]),1024&o&&(l.outerContainer=e[10]),s.$set(l)},i:function(e){c||(transition_in(s.$$.fragment,e),c=!0)},o:function(e){transition_out(s.$$.fragment,e),c=!1},d:function(e){detach(n),detach(i),e&&a.d(),e&&detach(o),destroy_component(s,e)}}}function instance$i(e,t,n){var r,a=t.chart,i=void 0===a?{}:a,o=t.visualization,s=void 0===o?{}:o,c=t.theme,u=void 0===c?{}:c,l=t.locales,p=void 0===l?{}:l,f=t.translations,h=t.blocks,d=void 0===h?{}:h,m=t.chartAfterBodyHTML,y=void 0===m?"":m,g=t.isPreview,v=t.assets,_=t.externalDataUrl,b=t.outerContainer,$=t.isStylePlain,x=void 0!==$&&$,w=t.isStyleStatic,k=void 0!==w&&w,E=t.forceLogo,S=void 0===E?"auto":E,A=t.logoId,T=void 0===A?null:A;return window.__dwUpdate=function(e){Object.assign(i,e.chart),n(0,i)},onMount(_async$1((function(){return document.body.classList.toggle("plain",x),document.body.classList.toggle("static",k),document.body.classList.toggle("png-export",k),k&&(document.body.style["pointer-events"]="none"),_await$1()}))),e.$set=function(e){"chart"in e&&n(0,i=e.chart),"visualization"in e&&n(1,s=e.visualization),"theme"in e&&n(2,u=e.theme),"locales"in e&&n(3,p=e.locales),"translations"in e&&n(4,f=e.translations),"blocks"in e&&n(5,d=e.blocks),"chartAfterBodyHTML"in e&&n(6,y=e.chartAfterBodyHTML),"isPreview"in e&&n(7,g=e.isPreview),"assets"in e&&n(8,v=e.assets),"externalDataUrl"in e&&n(9,_=e.externalDataUrl),"outerContainer"in e&&n(10,b=e.outerContainer),"isStylePlain"in e&&n(11,x=e.isStylePlain),"isStyleStatic"in e&&n(12,k=e.isStyleStatic),"forceLogo"in e&&n(13,S=e.forceLogo),"logoId"in e&&n(14,T=e.logoId)},e.$$.update=function(){1&e.$$.dirty&&n(15,r=purifyHTML(get$1(i,"metadata.publish.custom-css",""),""))},[i,s,u,p,f,d,y,g,v,_,b,x,k,S,T,r]}var VisualizationIframe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$i,create_fragment$i,safe_not_equal,{chart:0,visualization:1,theme:2,locales:3,translations:4,blocks:5,chartAfterBodyHTML:6,isPreview:7,assets:8,externalDataUrl:9,outerContainer:10,isStylePlain:11,isStyleStatic:12,forceLogo:13,logoId:14}),r}return n}(SvelteComponent);function render(){var e=document.getElementById("__svelte-dw");new VisualizationIframe({target:e,props:_objectSpread2(_objectSpread2({},window.__DW_SVELTE_PROPS__),{},{outerContainer:e}),hydrate:!0})}render()})();