$(function(){Chart.Init()});var Chart=function(){return{selector:{wrapper:"[data-js-chart]",container:"[data-js-chart-container]"},element:{wrapper:undefined},property:{charts:[]},Init:function(){this.Setup.init()},Setup:{init:function(){this.element()},element:function(){var n=Chart;(n.element.wrapper=$(n.selector.wrapper),n.element.wrapper.length||typeof Highcharts=="undefined")&&(this.property(),this.chart(),n.event.init())},property:function(){var n=Chart,t=n.element.wrapper;t.each(function(t){var i=$(this),r=i.find(n.selector.container).first(),u=AIHW.ChartConfig[i.data("options")],f=AIHW.ChartConfig[i.data("theme")];u.chart={renderTo:r[0]};n.property.charts.push({index:t,element:{wrapper:i,container:r},chart:{instance:undefined,options:u,theme:f,combinedOptions:undefined}})})},chart:function(){for(var n,r=Chart,i=r.property.charts,t=0;t<i.length;t++)n=i[t],n.chart.combinedOptions=$.extend(!0,{},n.chart.options,n.chart.theme),n.chart.instance=new Highcharts.Chart(n.chart.combinedOptions)}},event:{init:function(){this.resize()},resize:function(){var n=Chart,t=debounce(function(){for(var r,i,t=0;t<n.property.charts.length;t++)r=n.property.charts[t],i=r.chart.instance,i.setSize(1,undefined,!1),setTimeout(function(){i.setSize(null,undefined,!1)},100)},200);$(window).resize(function(){t()})},print:{init:function(){if("onbeforeprint"in window)$(window).on("beforeprint",function(){});else if("matchMedia"in window){var n=window.matchMedia("print");n.addListener(function(n){n.matches})}}}}}}()