var _0x4b9047=_0x186b;(function(_0x2c2fe6,_0xfc48f1){var _0x566a44=_0x186b,_0x524427=_0x2c2fe6();while(!![]){try{var _0x554c6e=parseInt(_0x566a44(0x1a8))/0x1*(parseInt(_0x566a44(0x199))/0x2)+parseInt(_0x566a44(0x224))/0x3+parseInt(_0x566a44(0x1f3))/0x4*(-parseInt(_0x566a44(0x23e))/0x5)+parseInt(_0x566a44(0x1f5))/0x6*(-parseInt(_0x566a44(0x239))/0x7)+-parseInt(_0x566a44(0x24a))/0x8*(parseInt(_0x566a44(0x1bc))/0x9)+-parseInt(_0x566a44(0x20f))/0xa+parseInt(_0x566a44(0x1fb))/0xb;if(_0x554c6e===_0xfc48f1)break;else _0x524427['push'](_0x524427['shift']());}catch(_0x8a7913){_0x524427['push'](_0x524427['shift']());}}}(_0x228b,0x53175));var getCurrentRegion=function(){var _0x24f5bb=_0x186b;return $(_0x24f5bb(0x209))[_0x24f5bb(0x21e)]();},current_region=getCurrentRegion(),region_full_name={'dm':_0x4b9047(0x1db),'ik':_0x4b9047(0x1dc),'co':'Cologne','lu':_0x4b9047(0x24c)},dashboard_intro_content=_0x4b9047(0x23b);$('#dashboard-intro-content')[_0x4b9047(0x1f8)](dashboard_intro_content);var select_land_area_content=_0x4b9047(0x23c);$(_0x4b9047(0x244))[_0x4b9047(0x1fd)]>0x0&&($(_0x4b9047(0x244))[_0x4b9047(0x1f8)](select_land_area_content),$(_0x4b9047(0x1e3)+current_region+']')[_0x4b9047(0x215)](_0x4b9047(0x21b),_0x4b9047(0x21b))),$(_0x4b9047(0x22b))['on'](_0x4b9047(0x243),function(){var _0x2bae3a=_0x4b9047,_0x50fb25=this[_0x2bae3a(0x22c)];window['open'](_0x2bae3a(0x1b5)+region_full_name[_0x50fb25]+_0x2bae3a(0x1a6),_0x2bae3a(0x19c));});var bioEnergyMenuContext=_0x4b9047(0x1b4);$(_0x4b9047(0x23f))[_0x4b9047(0x1fd)]>0x0&&$(_0x4b9047(0x23f))['html'](bioEnergyMenuContext);var footerContext=_0x4b9047(0x249);$(_0x4b9047(0x1bd))[_0x4b9047(0x1fd)]>0x0&&$(_0x4b9047(0x1bd))[_0x4b9047(0x1f8)](footerContext);var PVPotential_legend_context=_0x4b9047(0x1ea);$('#PVPotential-legend')[_0x4b9047(0x1fd)]>0x0&&$(_0x4b9047(0x24d))[_0x4b9047(0x1f8)](PVPotential_legend_context);var Specific_space_heating_demand_legend_context=_0x4b9047(0x20b);$('#SpecificHeatDemand-legend')[_0x4b9047(0x1fd)]>0x0&&$(_0x4b9047(0x1b1))['html'](Specific_space_heating_demand_legend_context);var viewer,heat_demand_legend_context=_0x4b9047(0x207);$(_0x4b9047(0x191))[_0x4b9047(0x1fd)]>0x0&&$(_0x4b9047(0x191))[_0x4b9047(0x1f8)](heat_demand_legend_context),Cesium['Ion'][_0x4b9047(0x242)]=_0x4b9047(0x247),viewer=new Cesium['Viewer'](_0x4b9047(0x21f),{'terrainProvider':Cesium['createWorldTerrain'](),'baseLayerPicker':!0x0,'vrButton':!0x1,'geocoder':!0x0,'navigationHelpButton':!0x1,'selectionIndicator':!0x0,'shadows':!0x1,'timeline':!0x1,'sceneModePicker':!0x1,'homeButton':!0x1,'fullscreenButton':!0x1,'infoBox':!0x0});var asset_link={'ffpv_gra_dm':{'arcgis_wmts':_0x4b9047(0x210)},'ffpv_dis_dm':{'arcgis_wmts':_0x4b9047(0x248)},'ffpv_con_dm':{'arcgis_wmts':'https://tiles.arcgis.com/tiles/1lplwYilIlo008hQ/arcgis/rest/services/Dithmarschen_con/MapServer'},'ffpv_agr_dm':{'arcgis_wmts':_0x4b9047(0x1c7)},'ffpv_gra_ik':{'arcgis_wmts':_0x4b9047(0x203)},'ffpv_dis_ik':{'arcgis_wmts':_0x4b9047(0x1cd)},'ffpv_con_ik':{'arcgis_wmts':_0x4b9047(0x208)},'ffpv_agr_ik':{'arcgis_wmts':_0x4b9047(0x196)},'ffpv_gra_lu':{'arcgis_wmts':'https://tiles.arcgis.com/tiles/1lplwYilIlo008hQ/arcgis/rest/services/Ludwigsburg_gra/MapServer'},'ffpv_dis_lu':{'arcgis_wmts':_0x4b9047(0x1c4)},'ffpv_con_lu':{'arcgis_wmts':'https://tiles.arcgis.com/tiles/1lplwYilIlo008hQ/arcgis/rest/services/Ludwigsburg_con/MapServer'},'ffpv_agr_lu':{'arcgis_wmts':_0x4b9047(0x22e)}},bioe_layer={'dm':_0x4b9047(0x1bb),'ik':_0x4b9047(0x1f6),'lu':_0x4b9047(0x1a2)},bioe_sp_layer={'dm':_0x4b9047(0x1d2),'ik':_0x4b9047(0x1e4),'lu':_0x4b9047(0x197)},rectangle_regions={'dm':{'west':8.936004638671875,'south':53.929411303402055,'east':9.107666015625,'north':54.023906623047274}},homeview_regions={'dm':{'destination':{'x':3716488.6022580746,'y':589569.1412324843,'z':5133147.399136146},'orientation':{'direction':{'x':-0.925684744813048,'y':-0.32398688807354126,'z':0.19529528815827865},'up':{'x':0.2211338470448524,'y':-0.044565818736128374,'z':0.9742246709519948}}},'ik':{'destination':{'x':3977358.962668909,'y':766623.8650819144,'z':4911471.48800212},'orientation':{'direction':{'x':-0.83405900364147,'y':0.5497635731112045,'z':0.045886731465638916},'up':{'x':0.30154808875012734,'y':0.3846687535423103,'z':0.8724097089208434}}},'co':{'destination':{'x':3998267.011801156,'y':488145.7659794736,'z':4929456.052769807},'orientation':{'direction':{'x':-0.9255288839485827,'y':-0.34942707253961375,'z':0.1459349373977542},'up':{'x':0.19515794784769275,'y':-0.10988446031474461,'z':0.9745967272534906}}},'lu':{'destination':{'x':4147635.6528533534,'y':672909.416653965,'z':4783225.727922631},'orientation':{'direction':{'x':-0.9459463646585409,'y':-0.2221909288104212,'z':0.23625551071594802},'up':{'x':0.24149820076680623,'y':0.0036754757412673367,'z':0.9703943064056336}}}};viewer[_0x4b9047(0x1de)][_0x4b9047(0x192)](homeview_regions[current_region]);var bioe_imagery,bioe_imagery_s,ffpv_layers=[];$(_0x4b9047(0x19e))['change'](function(){var _0x5018fe=_0x4b9047,_0x425ad0='#'+(_0x425ad0=this['id'][_0x5018fe(0x1d4)](0x0,0x8))+_0x5018fe(0x1a5);this[_0x5018fe(0x1e9)]?(layer=new Cesium[(_0x5018fe(0x1a3))]({'url':asset_link[this['id']][_0x5018fe(0x1a1)]}),ffpv_layers[this['id']]=viewer[_0x5018fe(0x230)][_0x5018fe(0x1ff)](layer),$(_0x425ad0)[_0x5018fe(0x20e)]()):(viewer['imageryLayers'][_0x5018fe(0x194)](ffpv_layers[this['id']]),$(_0x425ad0)[_0x5018fe(0x216)]()),_0x5018fe(0x23d)===this['id']&&viewer['camera'][_0x5018fe(0x192)]({'destination':{'x':4138245.187614008,'y':679655.0173020491,'z':4796043.034093946},'orientation':{'direction':{'x':-0.6470747177648541,'y':-0.10627392978417395,'z':-0.7549835504683283},'up':{'x':-0.7450025764707109,'y':-0.12235735584657621,'z':0.6557437293045487}}});}),$(_0x4b9047(0x1c9))[_0x4b9047(0x243)](function(){var _0x8ed919=_0x4b9047;if(this[_0x8ed919(0x1e9)]){var _0x370077=new Cesium[(_0x8ed919(0x1a3))]({'url':bioe_layer[current_region]});bioe_imagery=viewer[_0x8ed919(0x230)][_0x8ed919(0x1ff)](_0x370077),$('#bioe_legend')['show']();}else viewer[_0x8ed919(0x230)][_0x8ed919(0x194)](bioe_imagery),$(_0x8ed919(0x195))['hide']();}),$(_0x4b9047(0x1f2))[_0x4b9047(0x243)](function(){var _0xdeb6dc=_0x4b9047;if(this[_0xdeb6dc(0x1e9)]){var _0x1ecea2=new Cesium[(_0xdeb6dc(0x1a3))]({'url':bioe_sp_layer[current_region]});bioe_imagery_s=viewer['imageryLayers'][_0xdeb6dc(0x1ff)](_0x1ecea2),$('#bioe_sp_legend')[_0xdeb6dc(0x20e)]();}else viewer[_0xdeb6dc(0x230)][_0xdeb6dc(0x194)](bioe_imagery_s),$(_0xdeb6dc(0x1d5))[_0xdeb6dc(0x216)]();}),$('#2D_button')[_0x4b9047(0x1cc)](function(){var _0x261b28=_0x4b9047;viewer[_0x261b28(0x1de)]['flyTo']({'destination':homeview_regions[current_region][_0x261b28(0x1f1)]}),viewer[_0x261b28(0x20a)]['screenSpaceCameraController'][_0x261b28(0x1b8)]=!0x1,$('#2D_button')[_0x261b28(0x1e8)]('background-color',_0x261b28(0x21d)),$('#3D_button')[_0x261b28(0x1e8)](_0x261b28(0x1c3),_0x261b28(0x1ce)),$(_0x261b28(0x232))[_0x261b28(0x20e)](),$(_0x261b28(0x1c6))[_0x261b28(0x216)]();}),$(_0x4b9047(0x1fa))['click'](function(){var _0x41097a=_0x4b9047;viewer[_0x41097a(0x1de)][_0x41097a(0x1f4)](homeview_regions[current_region]),viewer[_0x41097a(0x20a)]['screenSpaceCameraController'][_0x41097a(0x1b8)]=!0x0,$(_0x41097a(0x1fa))[_0x41097a(0x1e8)](_0x41097a(0x1c3),_0x41097a(0x21d)),$(_0x41097a(0x205))['css'](_0x41097a(0x1c3),'#f7f7fc'),$('#2D_menu_div')['hide'](),$(_0x41097a(0x1c6))[_0x41097a(0x20e)]();});function _0x186b(_0x143b84,_0x3df209){var _0x228bef=_0x228b();return _0x186b=function(_0x186bf8,_0x442c8f){_0x186bf8=_0x186bf8-0x190;var _0x4f67c3=_0x228bef[_0x186bf8];return _0x4f67c3;},_0x186b(_0x143b84,_0x3df209);}var chart,histogram_data_all={'ik':{'PVPotential':[0x105d3,0x13b8,0x4eb,0x28e,0x188,0xe2,0x250],'ElecDemand':[0x1f46,0x1563,0xd8c,0x77a,0x3dc,0x509],'HeatDemand':[0x512,0x310,0x8df,0x2181,0x157f,0xae0,0x39d,0x258,0x18b],'SpecificHeatDemand':[0x15,0x81,0x854,0x75e,0x41f,0x8e2,0x2900,0x1136,0x2e7]},'co':{'PVPotential':[],'ElecDemand':[],'HeatDemand':[],'SpecificHeatDemand':[]},'dm':{'PVPotential':[0x1bdd3,0x26ab,0xb9d,0x632,0x2ef,0x1b3,0x482],'ElecDemand':[0x4bc0,0x2063,0xe49,0x5d2,0x27b,0x39e],'HeatDemand':[0x5479,0x142a,0x30ab,0x5ffc,0x106e,0x899,0x2df,0x260,0xff],'SpecificHeatDemand':[0x418,0x105c,0x2966,0x1e81,0x1825,0x2feb,0x4619,0x1caf,0x1215]},'lu':{'PVPotential':[0x1c4c4,0x46e5,0xe88,0x5e0,0x32f,0x1bb,0x64e],'ElecDemand':[0x4c89,0x6b72,0x591e,0x3005,0x1713,0x1fb0],'HeatDemand':[0x897,0xd0a,0x27b7,0xb3bd,0x69bc,0x3aa8,0x15bd,0x11d6,0x993],'SpecificHeatDemand':[0x62c,0x10da,0x34fb,0x3091,0x730c,0x8a63,0x4dcb,0x24c,0x48]}},histogram_data=[],histogram_cat=[],histogram_colors=[],histogram_name=[];histogram_cat[_0x4b9047(0x1e7)]=[_0x4b9047(0x24b),'5\x20-\x2010',_0x4b9047(0x19f),_0x4b9047(0x1af),'20\x20-\x2025','25\x20-\x2030',_0x4b9047(0x1fe)],histogram_cat[_0x4b9047(0x1a4)]=[_0x4b9047(0x202),'3229\x20-\x204229',_0x4b9047(0x20c),'5229\x20-\x206229',_0x4b9047(0x1e0),'>\x207229'],histogram_cat[_0x4b9047(0x1f7)]=['0\x20-\x2010',_0x4b9047(0x241),'12.5\x20-\x2017.5',_0x4b9047(0x1d1),_0x4b9047(0x228),_0x4b9047(0x1e5),_0x4b9047(0x1fc),_0x4b9047(0x219),_0x4b9047(0x1ef)],histogram_cat['SpecificHeatDemand']=['0\x20-\x2025',_0x4b9047(0x1ae),'50\x20-\x2075','75\x20-\x20100','100\x20-\x20125','125\x20-\x20150',_0x4b9047(0x1ee),'200\x20-\x20250',_0x4b9047(0x1ca)],histogram_colors[_0x4b9047(0x1e7)]=[_0x4b9047(0x1d6),_0x4b9047(0x1c0),_0x4b9047(0x211),_0x4b9047(0x1ed),_0x4b9047(0x1c8),_0x4b9047(0x206),_0x4b9047(0x190)],histogram_colors[_0x4b9047(0x1a4)]=['#feedde',_0x4b9047(0x19a),_0x4b9047(0x1f0),_0x4b9047(0x193),_0x4b9047(0x1a7),'#a63603'],histogram_colors[_0x4b9047(0x1f7)]=[_0x4b9047(0x1da),'#66c2a5',_0x4b9047(0x1ab),_0x4b9047(0x235),_0x4b9047(0x22f),_0x4b9047(0x1bf),_0x4b9047(0x1d3),'#f46d43',_0x4b9047(0x213)],histogram_colors[_0x4b9047(0x226)]=['#3288bd',_0x4b9047(0x1ec),_0x4b9047(0x1ab),_0x4b9047(0x235),'#ffffbf',_0x4b9047(0x1bf),_0x4b9047(0x1d3),'#f46d43','#d53e4f'],histogram_name[_0x4b9047(0x1e7)]='PV\x20Potential\x20(MWh/yr)',histogram_name[_0x4b9047(0x1a4)]=_0x4b9047(0x19d),histogram_name[_0x4b9047(0x1f7)]=_0x4b9047(0x21a),histogram_name[_0x4b9047(0x226)]=_0x4b9047(0x1b9);var activateChart=function(_0xd1b1fc){var _0x3b4d85=_0x4b9047;if(console[_0x3b4d85(0x1aa)](_0x3b4d85(0x225)+_0xd1b1fc),console[_0x3b4d85(0x1aa)](_0x3b4d85(0x1c5)+histogram_data_all[current_region][_0xd1b1fc]),void 0x0!==chart&&chart['destroy'](),void 0x0!==histogram_data_all[current_region][_0xd1b1fc]){var _0x5eb029={'series':[{'data':histogram_data_all[current_region][_0xd1b1fc],'name':_0x3b4d85(0x229)}],'chart':{'height':0x15e,'type':_0x3b4d85(0x214),'events':{'click':function(_0x2827a8,_0x348207,_0x3a9880){}}},'colors':histogram_colors[_0xd1b1fc],'plotOptions':{'bar':{'columnWidth':_0x3b4d85(0x1be),'distributed':!0x0}},'dataLabels':{'enabled':!0x1},'legend':{'show':!0x1},'xaxis':{'title':{'text':histogram_name[_0xd1b1fc]},'categories':histogram_cat[_0xd1b1fc],'labels':{'style':{'colors':_0x3b4d85(0x240),'fontSize':_0x3b4d85(0x1d0)}}},'tooltip':{'y':{'title':{'formatter':_0x4dab90=>_0x4dab90}},'x':{'show':!0x1}}};(chart=new ApexCharts(document['querySelector']('#chart'),_0x5eb029))[_0x3b4d85(0x222)]();}},building_style=[];building_style[_0x4b9047(0x19b)]=new Cesium['Cesium3DTileStyle']({'pointSize':_0x4b9047(0x1df),'show':!0x0,'color':_0x4b9047(0x23a)}),building_style[_0x4b9047(0x1e7)]=new Cesium[(_0x4b9047(0x237))]({'pointSize':_0x4b9047(0x1df),'show':!0x0,'color':{'conditions':[['Number(${PV_potential_yield})\x20<\x205',_0x4b9047(0x212)],[_0x4b9047(0x1a0),_0x4b9047(0x22d)],['Number(${PV_potential_yield})\x20<\x2015',_0x4b9047(0x1ba)],[_0x4b9047(0x1c2),_0x4b9047(0x201)],[_0x4b9047(0x245),_0x4b9047(0x236)],[_0x4b9047(0x1b7),'color(\x22#CC4C02\x22)'],[_0x4b9047(0x1dd),'color(\x22#8C2D04\x22)']]}}),building_style[_0x4b9047(0x226)]=new Cesium[(_0x4b9047(0x237))]({'pointSize':_0x4b9047(0x1df),'show':!0x0,'color':{'conditions':[[_0x4b9047(0x231),_0x4b9047(0x22a)],[_0x4b9047(0x1d9),_0x4b9047(0x1b0)],[_0x4b9047(0x1ad),_0x4b9047(0x204)],['Number(${Specific_space_heating_demand})>=\x20125',_0x4b9047(0x1b3)],['Number(${Specific_space_heating_demand})>=\x20100','color(\x22#ffffbf\x22)'],[_0x4b9047(0x217),'color(\x22#e6f598\x22)'],[_0x4b9047(0x238),'color(\x22#abdda4\x22)'],[_0x4b9047(0x20d),_0x4b9047(0x200)],[_0x4b9047(0x1d8),_0x4b9047(0x1cb)],[_0x4b9047(0x21c),_0x4b9047(0x1eb)]]}}),building_style[_0x4b9047(0x1f7)]=new Cesium[(_0x4b9047(0x237))]({'pointSize':'3.0','show':!0x0,'color':{'conditions':[[_0x4b9047(0x246),_0x4b9047(0x218)],[_0x4b9047(0x1e2),'color(\x27#3288bd\x27)'],[_0x4b9047(0x1d7),'color(\x27#66c2a5\x27)'],[_0x4b9047(0x1cf),'color(\x27#abdda4\x27)'],[_0x4b9047(0x223),_0x4b9047(0x1c1)],[_0x4b9047(0x1ac),_0x4b9047(0x1a9)],[_0x4b9047(0x234),_0x4b9047(0x1b2)],[_0x4b9047(0x227),_0x4b9047(0x1e6)],['Number(${Total_Yearly_Heat_DHW_demand})\x20<\x20200000',_0x4b9047(0x1e1)],['Number(${Total_Yearly_Heat_DHW_demand})\x20>=\x20200000','color(\x27#d53e4f\x27)'],[_0x4b9047(0x21c),_0x4b9047(0x221)]]}}),building_style[_0x4b9047(0x1a4)]=new Cesium[(_0x4b9047(0x237))]({'pointSize':_0x4b9047(0x1df),'show':!0x0,'color':{'conditions':[['Number(${electric_load})\x20===\x200',_0x4b9047(0x218)],['Number(${electric_load})\x20<\x203229000','color(\x27#feedde\x27)'],['Number(${electric_load})\x20<\x204229000',_0x4b9047(0x220)],[_0x4b9047(0x233),'color(\x27#fdae6b\x27)'],['Number(${electric_load})\x20<\x206229000',_0x4b9047(0x198)],[_0x4b9047(0x1b6),_0x4b9047(0x1f9)],['true',_0x4b9047(0x1eb)]]}});function _0x228b(){var _0x88cd1c=['#AreaSelector','value','color(\x22#FEE391\x22)','https://tiles.arcgis.com/tiles/1lplwYilIlo008hQ/arcgis/rest/services/Ludwigsburg_agri/MapServer','#ffffbf','imageryLayers','Number(${Specific_space_heating_demand})>\x20250','#2D_menu_div','Number(${electric_load})\x20<\x205229000','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2075000','#e6f598','color(\x22#EC7014\x22)','Cesium3DTileStyle','Number(${Specific_space_heating_demand})>=\x2050','2471182nGypeJ','color(\x27#ffffff\x27)','\x0a