jQuery.template("Tmpl-page-export",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="export-dialog">   <span id="title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Export visualization to one of the specified formats:"))),__.push('<\/span>   <ul class="format-list">    <li class="pptx">     <div class="export-item"><\/div>     MS PowerPoint      <label>(PPTX)<\/label>    <\/li>     <li class="xlsx">     <div class="export-item"><\/div>     MS Excel     <label>(XLSX)<\/label>    <\/li>    <li class="pdf">     <div class="export-item"><\/div>     Adobe Acrobat Reader     <label>(PDF)<\/label>    <\/li>    '),typeof isGadgetExport!="undefined"&&isGadgetExport!=null&&(typeof isGadgetExport=="function"?isGadgetExport.call($item):isGadgetExport)&&(__.push('    <li class="png">     <div class="export-item"><\/div>     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Image"))),__.push('     <label>(PNG)<\/label>    <\/li>    <li class="gif">     <div class="export-item"><\/div>     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Animated image"))),__.push("     <label>(GIF)<\/label>    <\/li>    ")),__.push("   <\/ul>   "),typeof isPremiumUser!="undefined"&&isPremiumUser!=null&&(typeof isPremiumUser=="function"?isPremiumUser.call($item):isPremiumUser)?(__.push('    <div class="watermarks">     <input type="checkbox" id="watermark" /><label for="watermark">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Do not insert watermarks"))),__.push('<\/label>    <\/div>    <div class="insert-gadget-as-image">     <input type="checkbox" id="insert-gadget-as-image" /><label for="insert-gadget-as-image">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Insert static images instead of live charts"))),__.push("<\/label>    <\/div>   ")):!0&&(__.push('    <div class="activate-premium">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Get watermark free outputs and live, animated visualizations with Premium subscription."))),__.push('      <a href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Activate now"))),__.push("<\/a>    <\/div>   ")),__.push('   <div class="export-indicator">    <img width="16" height="16" src="/Img/v2/shared/ajax-loader.gif" alt="" />    <span>     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Exporting"))),__.push('    <\/span>   <\/div>  <\/div>    <div id="dialog-warning-message"><\/div>    '),typeof Knoema.CommunityBilling!="undefined"&&Knoema.CommunityBilling!=null&&(typeof Knoema.CommunityBilling=="function"?Knoema.CommunityBilling.call($item):Knoema.CommunityBilling)&&(__.push("   "),typeof Knoema.CommunityBilling!="undefined"&&Knoema.CommunityBilling!=null&&(__=__.concat($item.nest("Tmpl-charge-code-dialog",Knoema.CommunityBilling,null))),__.push("  ")),__.push('    <form action="/resource/ExportGadget" id="gadget-export-form" method="post">   <input id="gadget-content" name="content" type="hidden" />   <input id="export-format" name="format" type="hidden" />   <input id="gadget-name" name="gadgetName" type="hidden" />   <input id="gadget-watermark" name="insertWatermark" type="hidden" />   <input id="gadget-as-image" name="gadgetAsImage" type="hidden" />   <input id="gadget-id" name="gadgetId" type="hidden" />   <input id="gadget-export-page-id" name="pageId" type="hidden" />  <\/form>');return __});jQuery.template("Tmpl-embed-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="embed-dialog" title=" '),typeof isDataset!="undefined"&&isDataset!=null&&(typeof isDataset=="function"?isDataset.call($item):isDataset)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Embed Dataset"))),__.push("")):typeof isGeoPlayground!="undefined"&&isGeoPlayground!=null&&(typeof isGeoPlayground=="function"?isGeoPlayground.call($item):isGeoPlayground)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Embed Geo Playground"))),__.push("")):!0&&(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Embed Gadget"))),__.push("")),__.push('">   <div>    '),typeof message!="undefined"&&message!=null&&(typeof message=="function"?message.call($item):message)&&(__.push('    <label class="warning-message">'),typeof message!="undefined"&&message!=null&&__.push($.encode(typeof message=="function"?message.call($item):message)),__.push("<\/label>    ")),__.push('    <label class="embed-label">     '),typeof isDataset!="undefined"&&isDataset!=null&&(typeof isDataset=="function"?isDataset.call($item):isDataset)?(__.push("     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Link to this dataset"))),__.push(":     ")):typeof isGeoPlayground!="undefined"&&isGeoPlayground!=null&&(typeof isGeoPlayground=="function"?isGeoPlayground.call($item):isGeoPlayground)?(__.push("     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Link to this playground"))),__.push(":     ")):!0&&(__.push("     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Link to this gadget"))),__.push(":     ")),__.push('    <\/label>    <br />    <textarea id="embed-markup" readonly="readonly" rows="4" cols="45"><\/textarea>    <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-page-gadget-menu",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="gadget_actions">      <div class="gadget-maximize">    <em class="icon icon-maximize"><\/em>      <\/div>      <div class="gadget-options">    <em class="icon icon-menu"><\/em>      <\/div>      <div class="gadget-menu">    <div class="arrow-holder">     <em class="arrow"><\/em>    <\/div>          <div class="gadget-menu-body">              '),typeof gadgetMenuOptions!="undefined"&&gadgetMenuOptions!=null&&$.each(typeof gadgetMenuOptions=="function"?gadgetMenuOptions.call($item):gadgetMenuOptions,function(){with(this)__.push('                   <a href="#" class="'),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('"><em class="icon icon-'),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('"><\/em> '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/a>              ")}),__.push("          <\/div>      <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-page-gadget-layouts-default",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="edit_pane">   <h3 class="gadget-title"><\/h3>   <span class="gadget-subtitle"><\/span>    <\/div>  <div class="inner_container">   <div class="visualization">   <\/div>   <div class="footer">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-page-gadget-layouts-naked",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="visualization">  <\/div>  <div class="footer">  <\/div>');return __});jQuery.template("Tmpl-theme-picker-container",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="arrow-holder">   <em class="arrow"><\/em>  <\/div>    <div class="theme-picker-container-body">   '),typeof isCustomThemes!="undefined"&&isCustomThemes!=null&&(typeof isCustomThemes=="function"?isCustomThemes.call($item):isCustomThemes)?(__.push('     <div class="theme-group">    <div class="items-container">     '),typeof uniqueCustomThemes!="undefined"&&uniqueCustomThemes!=null&&$.each(typeof uniqueCustomThemes=="function"?uniqueCustomThemes.call($item):uniqueCustomThemes,function(n,name){with(this)__.push('     <div class="g custom-theme '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" data-theme-name="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('"><\/div>     ')}),__.push("       "),typeof customThemes!="undefined"&&customThemes!=null&&$.each(typeof customThemes=="function"?customThemes.call($item):customThemes,function(n,name){with(this)__.push('     <div class="g '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" data-theme-name="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('"><\/div>     ')}),__.push("    <\/div>   <\/div>     ")):!0&&(__.push('     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Multi-hue"))),__.push('<\/p>    <div class="items-container">     <div class="g BuGn" data-theme-name="BuGn"><\/div>     <div class="g BuPu" data-theme-name="BuPu"><\/div>     <div class="g GnBu" data-theme-name="GnBu"><\/div>     <div class="g OrRd" data-theme-name="OrRd"><\/div>     <div class="g PuBu" data-theme-name="PuBu"><\/div>     <div class="g PuBuGn" data-theme-name="PuBuGn"><\/div>     <div class="g PuRd" data-theme-name="PuRd"><\/div>     <div class="g RdPu" data-theme-name="RdPu"><\/div>     <div class="g YlGn" data-theme-name="YlGn"><\/div>     <div class="g YlGnBu" data-theme-name="YlGnBu"><\/div>     <div class="g YlOrBr" data-theme-name="YlOrBr"><\/div>     <div class="g YlOrRd" data-theme-name="YlOrRd"><\/div>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Single-hue"))),__.push('<\/p>    <div class="items-container">     <div class="g Blues" data-theme-name="Blues"><\/div>     <div class="g Greens" data-theme-name="Greens"><\/div>     <div class="g Greys" data-theme-name="Greys"><\/div>     <div class="g Oranges" data-theme-name="Oranges"><\/div>     <div class="g Purples" data-theme-name="Purples"><\/div>     <div class="g Reds" data-theme-name="Reds"><\/div>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Diverging"))),__.push('<\/p>    <div class="items-container">     <div class="g BrBG" data-theme-name="BrBG"><\/div>     <div class="g PiYG" data-theme-name="PiYG"><\/div>     <div class="g PRGn" data-theme-name="PRGn"><\/div>     <div class="g PuOr" data-theme-name="PuOr"><\/div>     <div class="g RdBu" data-theme-name="RdBu"><\/div>     <div class="g RdGy" data-theme-name="RdGy"><\/div>     <div class="g RdYlBu" data-theme-name="RdYlBu"><\/div>     <div class="g RdYlGn" data-theme-name="RdYlGn"><\/div>     <div class="g Spectral" data-theme-name="Spectral"><\/div>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Qualitative"))),__.push('<\/p>    <div class="items-container">     <div class="g Accent" data-theme-name="Accent"><\/div>     <div class="g Dark2" data-theme-name="Dark2"><\/div>     <div class="g Paired" data-theme-name="Paired"><\/div>     <div class="g Pastel1" data-theme-name="Pastel1"><\/div>     <div class="g Pastel2" data-theme-name="Pastel2"><\/div>     <div class="g Set1" data-theme-name="Set1"><\/div>     <div class="g Set2" data-theme-name="Set2"><\/div>     <div class="g Set3" data-theme-name="Set3"><\/div>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Classic"))),__.push('<\/p>    <div class="items-container">     <div class="g juicy" data-theme-name="juicy"><\/div>     <div class="g fruity" data-theme-name="fruity"><\/div>     <div class="g bluegreen" data-theme-name="bluegreen"><\/div>     <div class="g white" data-theme-name="white"><\/div>     <div class="g green" data-theme-name="green"><\/div>     <div class="g blue" data-theme-name="blue"><\/div>     <div class="g orange" data-theme-name="orange"><\/div>     <div class="g gray" data-theme-name="gray"><\/div>     <div class="g violet" data-theme-name="violet"><\/div>     <div class="g pink" data-theme-name="pink"><\/div>     <div class="g red" data-theme-name="red"><\/div>     <div class="g maroon" data-theme-name="maroon"><\/div>    <\/div>   <\/div>     ')),__.push("  <\/div>");return __});jQuery.template("Tmpl-news",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="column">    <a target="_blank" href="'),typeof link!="undefined"&&link!=null&&__.push($.encode(typeof link=="function"?link.call($item):link)),__.push('"><h2>'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/h2><\/a>   "),typeof description!="undefined"&&description!=null&&__.push($.encode(typeof description=="function"?description.call($item):description)),__.push("  <\/div>");return __});jQuery.template("Tmpl-vizOfTheDay-feed",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(n,item){with(this)__.push('<!--  --><div class="viz">    <div class="thumbnail" data-key="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('">    '),typeof mobile!="undefined"&&mobile!=null&&(typeof mobile=="function"?mobile.call($item):mobile)?(__.push('     <a class="hover" href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" rel="nofollow" target="_blank" style="background-image: url(\''),typeof item.thumbnail!="undefined"&&item.thumbnail!=null&&__.push($.encode(typeof item.thumbnail=="function"?item.thumbnail.call($item):item.thumbnail)),__.push("')\"><\/a>    ")):!0&&(__.push('    <div class="image lazy" data-original="'),typeof thumbnail!="undefined"&&thumbnail!=null&&__.push($.encode(typeof thumbnail=="function"?thumbnail.call($item):thumbnail)),__.push('"><\/div>    <a class="hover" href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" rel="nofollow" target="_blank">     <p>      '),typeof item.description!="undefined"&&item.description!=null&&__.push($.encode(typeof item.description=="function"?item.description.call($item):item.description)),__.push('     <\/p>     <div class="statistics">      <span class="views" title=\''),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/vizOfTheDay-feed.htm","Number of page views"))),__.push("'>"),typeof item.views!="undefined"&&item.views!=null&&__.push($.encode(typeof item.views=="function"?item.views.call($item):item.views)),__.push('<\/span>      <span class="pins" title=\''),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/vizOfTheDay-feed.htm","Number of people pinned this page"))),__.push("'>"),typeof item.pins!="undefined"&&item.pins!=null&&__.push($.encode(typeof item.pins=="function"?item.pins.call($item):item.pins)),__.push("<\/span>     <\/div>    <\/a>    ")),__.push('   <\/div>    <h3><a href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" rel="nofollow" target="_blank">'),typeof item.title!="undefined"&&item.title!=null&&__.push($.encode(typeof item.title=="function"?item.title.call($item):item.title)),__.push("<\/a><\/h3>  <\/div><!---->")}),__.push("");return __});jQuery.template("Tmpl-charge-code-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="charge-code-dialog form" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/charge-code-dialog.htm","Enter Charge Code"))),__.push('">   <label class="wholeline">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/charge-code-dialog.htm","Charge Code:"))),__.push('<\/label>   <input type="text" class="chargeCode text-box single-line" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/charge-code-dialog.htm","Enter Charge Code"))),__.push('" required pattern="'),typeof chargeCodeTemplate!="undefined"&&chargeCodeTemplate!=null&&__.push($.encode(typeof chargeCodeTemplate=="function"?chargeCodeTemplate.call($item):chargeCodeTemplate)),__.push('" />   <label class="error-message wholeline hidden"><\/label>   <div class="disclaimer">'),typeof chargeCodeDisclaimer!="undefined"&&chargeCodeDisclaimer!=null&&__.push(typeof chargeCodeDisclaimer=="function"?chargeCodeDisclaimer.call($item):chargeCodeDisclaimer),__.push("<\/div>  <\/div>");return __});jQuery.template("Tmpl-premium-download-sign-up",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="download-sign-up">       <div>    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-sign-up.htm","Get access to data and visualizations. Join our data community."))),__.push('<\/p>     <a id="site-sign-up-dsbrowser" class="signup" href="'),typeof signUpUrl!="undefined"&&signUpUrl!=null&&__.push($.encode(typeof signUpUrl=="function"?signUpUrl.call($item):signUpUrl)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-sign-up.htm","Sign up"))),__.push("<\/a>    <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/premium/download-sign-up.htm","Already have an account? [Login|id=site-login-dsbrowser|href={loginUrl}] now.",{loginUrl:loginUrl})),__.push("<\/p>    <\/div>    <\/div>");return __});jQuery.template("Tmpl-knoema-page-feed",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="feed-bg" style="'),typeof backgroundStyle!="undefined"&&backgroundStyle!=null&&__.push($.encode(typeof backgroundStyle=="function"?backgroundStyle.call($item):backgroundStyle)),__.push('"><\/div> <div class="feed-content '),typeof(pages.length>0?"paging":"")!="undefined"&&(pages.length>0?"paging":"")!=null&&__.push($.encode(typeof(pages.length>0?"paging":"")=="function"?(pages.length>0?"paging":"").call($item):pages.length>0?"paging":"")),__.push('"><\/div>  '),typeof(pages.length>0)!="undefined"&&pages.length>0!=null&&(typeof(pages.length>0)=="function"?(pages.length>0).call($item):pages.length>0)&&(__.push('  <div class="pages">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/feed.htm","Page:"))),__.push("   <ul>    "),typeof pages!="undefined"&&pages!=null&&$.each(typeof pages=="function"?pages.call($item):pages,function(n,value){with(this)__.push('     <li class="'),typeof(value==1?"active":"")!="undefined"&&(value==1?"active":"")!=null&&__.push($.encode(typeof(value==1?"active":"")=="function"?(value==1?"active":"").call($item):value==1?"active":"")),__.push('" style="color: #'),typeof titleColor!="undefined"&&titleColor!=null&&__.push($.encode(typeof titleColor=="function"?titleColor.call($item):titleColor)),__.push('">'),typeof value!="undefined"&&value!=null&&__.push($.encode(typeof value=="function"?value.call($item):value)),__.push("<\/li>    ")}),__.push("   <\/ul>  <\/div> ")),__.push("");return __});jQuery.template("Tmpl-knoema-page-feed-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<ul data-page="'),typeof page!="undefined"&&page!=null&&__.push($.encode(typeof page=="function"?page.call($item):page)),__.push('" class="feed '),typeof layout!="undefined"&&layout!=null&&__.push($.encode(typeof layout=="function"?layout.call($item):layout)),__.push(" "),typeof(page?"page":"")!="undefined"&&(page?"page":"")!=null&&__.push($.encode(typeof(page?"page":"")=="function"?(page?"page":"").call($item):page?"page":"")),__.push('">  '),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(){with(this)__.push('   <li>    <a class="title" target="'),typeof target!="undefined"&&target!=null&&__.push($.encode(typeof target=="function"?target.call($item):target)),__.push('" href="'),typeof link!="undefined"&&link!=null&&__.push($.encode(typeof link=="function"?link.call($item):link)),__.push('" style="color: #'),typeof titleColor!="undefined"&&titleColor!=null&&__.push($.encode(typeof titleColor=="function"?titleColor.call($item):titleColor)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/a>    "),typeof pubDate!="undefined"&&pubDate!=null&&(typeof pubDate=="function"?pubDate.call($item):pubDate)&&(__.push('     <div class="pubdate">'),typeof pubDate!="undefined"&&pubDate!=null&&__.push($.encode(typeof pubDate=="function"?pubDate.call($item):pubDate)),__.push("<\/div>    ")),__.push('    <div class="description">'),typeof description!="undefined"&&description!=null&&__.push($.encode(typeof description=="function"?description.call($item):description)),__.push("<\/div>   <\/li>  ")}),__.push(" <\/ul>");return __});jQuery.template("Tmpl-knoema-gadget-grid-card-view",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="grid-card-view">  <div class="card-placeholder" style="background-color: '),typeof bgColor!="undefined"&&bgColor!=null&&__.push($.encode(typeof bgColor=="function"?bgColor.call($item):bgColor)),__.push(';">   <table width="100%" style="color: '),typeof fontColor!="undefined"&&fontColor!=null&&__.push($.encode(typeof fontColor=="function"?fontColor.call($item):fontColor)),__.push(";background-color: "),typeof bgColor!="undefined"&&bgColor!=null&&__.push($.encode(typeof bgColor=="function"?bgColor.call($item):bgColor)),__.push(";font-size: "),typeof fontSize!="undefined"&&fontSize!=null&&__.push($.encode(typeof fontSize=="function"?fontSize.call($item):fontSize)),__.push("!important;font-family: "),typeof fontName!="undefined"&&fontName!=null&&__.push($.encode(typeof fontName=="function"?fontName.call($item):fontName)),__.push(';">    '),typeof rowData!="undefined"&&rowData!=null&&$.each(typeof rowData=="function"?rowData.call($item):rowData,function(i,record){with(this)__.push('     <tr style="background-color: '),typeof(i%2==0?stripesBgColor:"inherit")!="undefined"&&(i%2==0?stripesBgColor:"inherit")!=null&&__.push($.encode(typeof(i%2==0?stripesBgColor:"inherit")=="function"?(i%2==0?stripesBgColor:"inherit").call($item):i%2==0?stripesBgColor:"inherit")),__.push('">      <td>       '),typeof record.column!="undefined"&&record.column!=null&&__.push($.encode(typeof record.column=="function"?record.column.call($item):record.column)),__.push("      <\/td>      <td>       "),typeof record.value!="undefined"&&record.value!=null&&__.push($.encode(typeof record.value=="function"?record.value.call($item):record.value)),__.push("      <\/td>     <\/tr>    ")}),__.push('   <\/table>  <\/div>   <div class="toolbar" style="background-color: '),typeof stripesBgColor!="undefined"&&stripesBgColor!=null&&__.push($.encode(typeof stripesBgColor=="function"?stripesBgColor.call($item):stripesBgColor)),__.push(";"),typeof oneRowOnly!="undefined"&&oneRowOnly!=null&&(typeof oneRowOnly=="function"?oneRowOnly.call($item):oneRowOnly)&&__.push("display:none;"),__.push('">   <div class="controls">    <i class="fa fa-step-backward go-to-beginning" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","First"))),__.push('"><\/i>     <i class="fa fa-caret-left go-to-previous" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Previous"))),__.push('"><\/i>     <input class="current-row" '),typeof oneRowOnly!="undefined"&&oneRowOnly!=null&&(typeof oneRowOnly=="function"?oneRowOnly.call($item):oneRowOnly)&&__.push(" disabled "),__.push(' value="'),typeof(row+1)!="undefined"&&row+1!=null&&__.push($.encode(typeof(row+1)=="function"?(row+1).call($item):row+1)),__.push('"/> '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/gadget/grid-card-view.htm","out of {rowsCount}",{rowsCount:rowsCount})),__.push('     <i class="fa fa-caret-right go-to-next" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Next"))),__.push('"><\/i>     <i class="fa fa-step-forward go-to-end" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Last"))),__.push('"><\/i>     '),typeof!oneRowOnly!="undefined"&&!oneRowOnly!=null&&(typeof!oneRowOnly=="function"?(!oneRowOnly).call($item):!oneRowOnly)&&(__.push('     <i class="fa fa-list close-card-view" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Go to Grid"))),__.push('"><\/i>    ')),__.push("   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-gadgetbin-popup",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div id="gadgetbin-popup">   <div class="popup-body">    <span class="icon"><\/span>    '),typeof($data===!0)!="undefined"&&$data===!0!=null&&(typeof($data===!0)=="function"?($data===!0).call($item):$data===!0)?(__.push("     "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/gadgetbin-popup.htm","The visualization has been added to [Gadget Bin|href={gadgetBinUrl}|target=_blank]",{gadgetBinUrl:"/user/gadgetbin#visualizations"})),__.push("    ")):!0&&(__.push("     "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/gadgetbin-popup.htm","The timeseries has been added to [Gadget Bin|href={gadgetBinUrl}|target=_blank]",{gadgetBinUrl:"/user/gadgetbin#timeseries"})),__.push("    ")),__.push('   <\/div>   <div class="triangle"><\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-dataset-remote-data-state",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="remote-data-state">  '),typeof(state=="Available")!="undefined"&&state=="Available"!=null&&(typeof(state=="Available")=="function"?(state=="Available").call($item):state=="Available")&&(__.push("   <p>    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-remote-data-state.htm","Requested data is available from {source} but not ready yet. We need some time to request it.",{source:source})),__.push("   <\/p>   <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","Please confirm the request."))),__.push('   <\/p>   <p>    <input type="button" class="ui-button confirm-read-remote-data" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","Confirm"))),__.push('" />   <\/p>  ')),__.push("   "),typeof(state=="Requested")!="undefined"&&state=="Requested"!=null&&(typeof(state=="Requested")=="function"?(state=="Requested").call($item):state=="Requested")&&(__.push("   <p>    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-remote-data-state.htm","Data from {source} is getting ready to use.",{source:source})),__.push("   <\/p>   <p>    "),typeof(isAuthenticatedUser===!0)!="undefined"&&isAuthenticatedUser===!0!=null&&(typeof(isAuthenticatedUser===!0)=="function"?(isAuthenticatedUser===!0).call($item):isAuthenticatedUser===!0)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","We will send you an email once data is available."))),__.push(" ")):!0&&(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","Please wait."))),__.push(" ")),__.push('   <\/p>   <p>    <img id="remote-data-progress" src="/img/v4/loader.gif" alt="" />   <\/p>  ')),__.push("   "),typeof(state=="Unaccessible")!="undefined"&&state=="Unaccessible"!=null&&(typeof(state=="Unaccessible")=="function"?(state=="Unaccessible").call($item):state=="Unaccessible")&&(__.push("   <p>    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-remote-data-state.htm","Remote data from {source} is not accessible.",{source:source})),__.push("   <\/p>  ")),__.push(" <\/div>");return __})