jQuery.template("Tmpl-bookmarks-bookmarks-data",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="bookmarks-data wrapper">  <div class="filter">   <input id="data-filter" type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Type to filter"))),__.push('">  <\/div>  <div class="bookmarks__actions">   <ul>    <li class="bookmarks__actions_item bookmarks__actions_item_check-inactive" id="bookmarks__actions_item-check">     <label class="mtl-checkbox slate-blue labelled">      <input type="checkbox" class="mtl-checkbox-input bookmarks__actions_item_check">      <span class="mtl-checkbox-bg"><\/span>      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Select all"))),__.push(' <span class="bookmarks__actions_item_text">(0 '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","items"))),__.push(')<\/span>     <\/label>    <\/li>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-export">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Download"))),__.push('     <div class="bookmarks__export_panel">      <div id="bookmarks__export_item-xlsx" class="bookmarks__export_item">MS Excel <span class="bookmarks__export_item_comment"> (.xlsx)<\/span><\/div>     <\/div>    <\/li>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-remove">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Remove bookmark(s)"))),__.push('<\/li>   <\/ul>  <\/div>  <div class="content">   '),typeof data!="undefined"&&data!=null&&$.each(typeof data=="function"?data.call($item):data,function(){with(this)__.push('   <div data-id="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" class="item">    <div class="dataset">     <label class="mtl-checkbox slate-blue labelled">      <input id="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" type="checkbox" class="mtl-checkbox-input item_check">      <span class="mtl-checkbox-bg"><\/span>     <\/label>    <\/div>    <div class="dataset">     <a href="'),typeof dataset.resourceUrl!="undefined"&&dataset.resourceUrl!=null&&__.push($.encode(typeof dataset.resourceUrl=="function"?dataset.resourceUrl.call($item):dataset.resourceUrl)),__.push('" class="title" target="_blank" title="'),typeof dataset.title!="undefined"&&dataset.title!=null&&__.push($.encode(typeof dataset.title=="function"?dataset.title.call($item):dataset.title)),__.push('">      '),typeof dataset.title!="undefined"&&dataset.title!=null&&__.push($.encode(typeof dataset.title=="function"?dataset.title.call($item):dataset.title)),__.push('     <\/a>    <\/div>    <div class="info">     '),typeof dataset.source!="undefined"&&dataset.source!=null&&(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)&&(__.push("<p><span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Source"))),__.push(':<\/span> <a href="'),typeof dataset.sourceUrl!="undefined"&&dataset.sourceUrl!=null&&__.push($.encode(typeof dataset.sourceUrl=="function"?dataset.sourceUrl.call($item):dataset.sourceUrl)),__.push('" target="_blank">'),typeof dataset.source!="undefined"&&dataset.source!=null&&__.push($.encode(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)),__.push("<\/a><\/p>")),__.push("     "),typeof dataset.publicationDate!="undefined"&&dataset.publicationDate!=null&&(typeof dataset.publicationDate=="function"?dataset.publicationDate.call($item):dataset.publicationDate)&&(__.push("     <p><span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Published by source"))),__.push(":<\/span> "),typeof dataset.publicationDate!="undefined"&&dataset.publicationDate!=null&&__.push($.encode(typeof dataset.publicationDate=="function"?dataset.publicationDate.call($item):dataset.publicationDate)),__.push("<\/p>     ")),__.push("    <\/div>    "),typeof(gadgets.length!==0)!="undefined"&&gadgets.length!==0!=null&&(typeof(gadgets.length!==0)=="function"?(gadgets.length!==0).call($item):gadgets.length!==0)&&(__.push('    <div class="timeseries">     <table>      <thead class="header">       <tr>        <th class="check"><\/th>        <th class="name">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Time series"))),__.push('<\/th>        <th class="range">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data.htm","Date range"))),__.push('<\/th>        <th class="open"><\/th>       <\/tr>      <\/thead>      <tbody class="body">       '),typeof gadgets!="undefined"&&gadgets!=null&&$.each(typeof gadgets=="function"?gadgets.call($item):gadgets,function(i,item){with(this)__.push('       <tr data-id="'),typeof item.gadgetId!="undefined"&&item.gadgetId!=null&&__.push($.encode(typeof item.gadgetId=="function"?item.gadgetId.call($item):item.gadgetId)),__.push('" class="row '),typeof(i%2==0)!="undefined"&&i%2==0!=null&&(typeof(i%2==0)=="function"?(i%2==0).call($item):i%2==0)&&__.push(" grey "),__.push('">        <td class="timeseries_check">         <label class="mtl-checkbox slate-blue labelled">          <input id="'),typeof item.gadgetId!="undefined"&&item.gadgetId!=null&&__.push($.encode(typeof item.gadgetId=="function"?item.gadgetId.call($item):item.gadgetId)),__.push('" data-parent-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" type="checkbox" class="mtl-checkbox-input">          <span class="mtl-checkbox-bg"><\/span>         <\/label>        <\/td>        <td class="name_value">         <a href="'),typeof item.timeseries.dsUrl!="undefined"&&item.timeseries.dsUrl!=null&&__.push($.encode(typeof item.timeseries.dsUrl=="function"?item.timeseries.dsUrl.call($item):item.timeseries.dsUrl)),__.push('" target="_blank">'),typeof item.timeseries.title!="undefined"&&item.timeseries.title!=null&&__.push($.encode(typeof item.timeseries.title=="function"?item.timeseries.title.call($item):item.timeseries.title)),__.push('<\/a>        <\/td>               <td class="range_value">'),typeof item.dateRange!="undefined"&&item.dateRange!=null&&__.push($.encode(typeof item.dateRange=="function"?item.dateRange.call($item):item.dateRange)),__.push('<\/td>              <td class="open_value"><\/td>       <\/tr>       <tr class="gadget-wrapper">        <td colspan="4">         <div data-contaner-id="'),typeof item.gadgetId!="undefined"&&item.gadgetId!=null&&__.push($.encode(typeof item.gadgetId=="function"?item.gadgetId.call($item):item.gadgetId)),__.push('" class="gadget-container"><\/div>        <\/td>       <\/tr>       ')}),__.push("      <\/tbody>     <\/table>    <\/div>    ")),__.push("   <\/div>   ")}),__.push("  <\/div> <\/div>");return __});jQuery.template("Tmpl-bookmarks-bookmarks-page",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="bookmarks-page wrapper">  <div class="filter">   <div class="filter_type">    <div class="text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","All types"))),__.push('<\/div>    <div class="icon"><\/div>    <div class="list">     <div class="item" value="">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","All"))),__.push('<\/div>     <div class="item" value="Page">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Dashboards"))),__.push('<\/div>     <div class="item" value="Presentation">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Presentations"))),__.push('<\/div>     <div class="item" value="GeoPlayground">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Geo Playground maps"))),__.push('<\/div>     <!-- <div class="bookmarks-page_filter_type_list_item" value="Wiki">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Wiki pages"))),__.push('<\/div> -->    <\/div>   <\/div>   <input id="page-filter" type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Type to filter"))),__.push('">  <\/div>  <div class="bookmarks__actions">   <ul>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-check">     <label class="mtl-checkbox slate-blue labelled">      <input type="checkbox" class="mtl-checkbox-input bookmarks__actions_item_check">      <span class="mtl-checkbox-bg"><\/span>      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Select all"))),__.push(' <span class="bookmarks__actions_item_text">(0 '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","items"))),__.push(')<\/span>     <\/label>    <\/li>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-export">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Export"))),__.push('     <div class="bookmarks__export_panel">      <div id="bookmarks__export_item-pptx" class="bookmarks__export_item">MS Power Point <span class="bookmarks__export_item_comment"> (.pptx)<\/span><\/div>      <div id="bookmarks__export_item-xlsx" class="bookmarks__export_item">MS Excel <span class="bookmarks__export_item_comment"> (.xlsx)<\/span><\/div>      <div id="bookmarks__export_item-pdf" class="bookmarks__export_item">Adobe Acrobat Reader<span class="bookmarks__export_item_comment"> (.pdf)<\/span><\/div>     <\/div>    <\/li>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-remove">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page.htm","Remove bookmark(s)"))),__.push('<\/li>   <\/ul>  <\/div>  <div class="content">   <div id="bookmarks-page__content_column1" class="column"><\/div>   <div id="bookmarks-page__content_column2" class="column"><\/div>   <div id="bookmarks-page__content_column3" class="column"><\/div>  <\/div> <\/div>');return __});jQuery.template("Tmpl-bookmarks-bookmarks-visual",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="bookmarks-visualizations wrapper">  <div class="filter">   <input id="visualizations-filter" type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","Type to filter"))),__.push('">  <\/div>  <div class="bookmarks__actions">   <ul>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-check">     <label class="mtl-checkbox slate-blue labelled">      <input type="checkbox" class="mtl-checkbox-input bookmarks__actions_item_check">      <span class="mtl-checkbox-bg"><\/span>      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","Select all"))),__.push(' <span class="bookmarks__actions_item_text">(0 '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","items"))),__.push(')<\/span>     <\/label>    <\/li>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-buildDashBoard">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","Build Dashboard"))),__.push('    <li class="bookmarks__actions_item" id="bookmarks__actions_item-buildPresentation">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","Build Presentation"))),__.push('    <li class="bookmarks__actions_item" id="bookmarks__actions_item-export">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","Export"))),__.push('     <div class="bookmarks__export_panel">      <div id="bookmarks__export_item-pptx" class="bookmarks__export_item">MS Power Point <span class="bookmarks__export_item_comment"> (.pptx)<\/span><\/div>      <div id="bookmarks__export_item-xlsx" class="bookmarks__export_item">MS Excel <span class="bookmarks__export_item_comment"> (.xlsx)<\/span><\/div>     <\/div>    <\/li>    <li class="bookmarks__actions_item" id="bookmarks__actions_item-remove">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual.htm","Remove bookmark(s)"))),__.push('<\/li>   <\/ul>  <\/div>   <div class="content">   <div id="bookmarks-visualizations__content_column1" class="column"><\/div>   <div id="bookmarks-visualizations__content_column2" class="column"><\/div>   <div id="bookmarks-visualizations__content_column3" class="column"><\/div>  <\/div> <\/div>');return __});jQuery.template("Tmpl-bookmarks-bookmarks-document",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="bookmarks-documents wrapper">  <div class="filter">   <input id="documents-filter" type="text" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-document.htm","Type to filter"))),__.push('">  <\/div>  <div class="content">   <div id="bookmarks-documents__content_column1" class="column"><\/div>   <div id="bookmarks-documents__content_column2" class="column"><\/div>   <div id="bookmarks-documents__content_column3" class="column"><\/div>  <\/div> <\/div>');return __});jQuery.template("Tmpl-bookmarks-bookmarks-data-preview",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="preview wrapper">  <div class="header">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/bookmarks/bookmarks-data-preview.htm","Click the icon <span><\/span> to bookmark data in search results, the dataset viewer.")),__.push('  <\/div>  <div class="content">   <div class="item picture-series"><\/div>   <div class="item picture-bookmark"><\/div>  <\/div>  '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&(__.push('  <div class="footer">   <a href="https://help.knoema.com/hc/en-us/articles/360027005331">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-data-preview.htm","Learn more"))),__.push(" ><\/a>  <\/div>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-bookmarks-bookmarks-page-preview",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="preview wrapper">  <div class="header">   '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)?(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/bookmarks/bookmarks-page-preview.htm","<p>Click the icon <span><\/span> to bookmark pages [you&apos;ve built|href=/user/visualizations/personal|target=_blank], <\/p><p> or [data insights|href=/infographics|target=_blank] from our experts.<\/p>")),__.push("   ")):!0&&(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/bookmarks/bookmarks-page-preview.htm","<p>Click the icon <span><\/span> to bookmark pages [you&apos;ve built|href=/user/visualizations/personal|target=_blank], <\/p><p> or any other pages.<\/p>")),__.push("   ")),__.push('  <\/div>  <div class="content">   '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)?__.push('   <div class="item picture-page"><\/div>   '):!0&&__.push('   <div class="item picture-page-community"><\/div>   '),__.push("  <\/div>  "),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&(__.push('  <div class="footer">   <a href="https://help.knoema.com/hc/en-us/articles/360027005331">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-page-preview.htm","Learn more"))),__.push(" ><\/a>  <\/div>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-bookmarks-bookmarks-visual-preview",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="preview wrapper">  <div class="header">   '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)?(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/bookmarks/bookmarks-visual-preview.htm","<p>Click the icon <span><\/span> to bookmark visualizations in search results, <\/p><p> the dataset viewer, pages [you&apos;ve built|href=/user/visualizations/personal|target=_blank], or [data insights|href=/infographics|target=_blank] from our experts.<\/p>")),__.push("   ")):!0&&(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/bookmarks/bookmarks-visual-preview.htm","<p>Click the icon <span><\/span> to bookmark visualizations in search results, <\/p><p> the dataset viewer, and on pages [built by you|href=/user/visualizations/personal|target=_blank] or other users.<\/p>")),__.push("   ")),__.push('  <\/div>  <div class="content">   <div class="item picture-series"><\/div>   <div class="item picture-bookmark"><\/div>   <div class="item picture-vis"><\/div>   <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual-preview.htm","Reuse bookmarked visualizations in pages and presentations you create."))),__.push("<\/p>  <\/div>  "),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&(__.push('  <div class="footer">   <a href="https://help.knoema.com/hc/en-us/articles/360027005331">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-visual-preview.htm","Learn more"))),__.push(" ><\/a>  <\/div>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-bookmarks-bookmarks-gadget-view",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="'),typeof gadgetId!="undefined"&&gadgetId!=null&&__.push($.encode(typeof gadgetId=="function"?gadgetId.call($item):gadgetId)),__.push("-"),typeof detailsParsed.pageId!="undefined"&&detailsParsed.pageId!=null&&__.push($.encode(typeof detailsParsed.pageId=="function"?detailsParsed.pageId.call($item):detailsParsed.pageId)),__.push('" class="visualization">  <div class="header_check">   <label class="mtl-checkbox slate-blue labelled">    <input data-id="'),typeof gadgetId!="undefined"&&gadgetId!=null&&__.push($.encode(typeof gadgetId=="function"?gadgetId.call($item):gadgetId)),__.push("-"),typeof detailsParsed.pageId!="undefined"&&detailsParsed.pageId!=null&&__.push($.encode(typeof detailsParsed.pageId=="function"?detailsParsed.pageId.call($item):detailsParsed.pageId)),__.push('" type="checkbox" class="mtl-checkbox-input">    <span class="mtl-checkbox-bg"><\/span>   <\/label>  <\/div>  '),typeof detailsParsed.title!="undefined"&&detailsParsed.title!=null&&(typeof detailsParsed.title=="function"?detailsParsed.title.call($item):detailsParsed.title)&&(__.push('   <div class="header">    '),typeof detailsParsed.title.text!="undefined"&&detailsParsed.title.text!=null&&__.push($.encode(typeof detailsParsed.title.text=="function"?detailsParsed.title.text.call($item):detailsParsed.title.text)),__.push("   <\/div>   "),typeof detailsParsed.title.subtitle!="undefined"&&detailsParsed.title.subtitle!=null&&(typeof detailsParsed.title.subtitle=="function"?detailsParsed.title.subtitle.call($item):detailsParsed.title.subtitle)&&(__.push('   <div class="subtitle">    '),typeof detailsParsed.title.subtitle.text!="undefined"&&detailsParsed.title.subtitle.text!=null&&__.push($.encode(typeof detailsParsed.title.subtitle.text=="function"?detailsParsed.title.subtitle.text.call($item):detailsParsed.title.subtitle.text)),__.push("   <\/div>   ")),__.push("  ")),__.push('  <div class="picture"><div style="background-image: url(\'/resource/thumbnail/'),typeof resourceId!="undefined"&&resourceId!=null&&__.push($.encode(typeof resourceId=="function"?resourceId.call($item):resourceId)),__.push("?gadgetId="),typeof gadgetId!="undefined"&&gadgetId!=null&&__.push($.encode(typeof gadgetId=="function"?gadgetId.call($item):gadgetId)),__.push("&big=true')\"><\/div><\/div>  "),typeof source!="undefined"&&source!=null&&(typeof source=="function"?source.call($item):source)&&(__.push('<div class="description">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-gadget-view.htm","Source"))),__.push(':  <a href="'),typeof source.url!="undefined"&&source.url!=null&&__.push($.encode(typeof source.url=="function"?source.url.call($item):source.url)),__.push('" target="_blank">'),typeof source.localizedName!="undefined"&&source.localizedName!=null&&__.push($.encode(typeof source.localizedName=="function"?source.localizedName.call($item):source.localizedName)),__.push("<\/a><\/div> ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-bookmarks-bookmarks-page-view",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<a id="'),typeof resourceId!="undefined"&&resourceId!=null&&__.push($.encode(typeof resourceId=="function"?resourceId.call($item):resourceId)),__.push('" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank" class="page">  <div class="header_check">   <label class="mtl-checkbox slate-blue labelled">    <input data-id="'),typeof resourceId!="undefined"&&resourceId!=null&&__.push($.encode(typeof resourceId=="function"?resourceId.call($item):resourceId)),__.push('" type="checkbox" class="mtl-checkbox-input">    <span class="mtl-checkbox-bg"><\/span>   <\/label>  <\/div>  <div class="header">   '),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('  <\/div>  <div class="picture"><div style="background-image: url(/resource/thumbnail/'),typeof resourceId!="undefined"&&resourceId!=null&&__.push($.encode(typeof resourceId=="function"?resourceId.call($item):resourceId)),__.push('?big=true)"><\/div><\/div>  <div class="description">'),typeof rawDescription.trim!="undefined"&&rawDescription.trim!=null&&__.push($.encode(rawDescription.trim())),__.push("<\/div> <\/a>");return __});jQuery.template("Tmpl-bookmarks-bookmarks-document-view",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="document">  <img src="'),typeof thumbnailUrl!="undefined"&&thumbnailUrl!=null&&__.push($.encode(typeof thumbnailUrl=="function"?thumbnailUrl.call($item):thumbnailUrl)),__.push('" class="icon">  <div class="info">   <div class="text">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/bookmarks-document-view.htm","Name"))),__.push(": "),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/p>   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-bookmarks-download-premium-popup",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="download-premium-popup wrapper">  <div class="content">   <div class="text">    <p>'),typeof text!="undefined"&&text!=null&&__.push($.encode(typeof text=="function"?text.call($item):text)),__.push('<\/p>   <\/div>   <div class="actions_sections">    <a href="/products/professional" target="_blank" class="button learn-more">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-premium-popup.htm","Learn more"))),__.push('<\/a>    <a href="/products/professional/get?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" target="_blank" class="button activate">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-premium-popup.htm","Activate now"))),__.push('<\/a>   <\/div>   <div class="subscriber '),typeof(typeof authenticated!="undefined"&&authenticated)!="undefined"&&(typeof authenticated!="undefined"&&authenticated)!=null&&(typeof(typeof authenticated!="undefined"&&authenticated)=="function"?(typeof authenticated!="undefined"&&authenticated).call($item):typeof authenticated!="undefined"&&authenticated)&&__.push("hidden"),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-premium-popup.htm","Already a Knoema Professional user?"))),__.push(' <a href="/sys/login?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-premium-popup.htm","Log in"))),__.push("<\/a><\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-bookmarks-download-data-popup",function(n,t){var $=n,__=[],i=t.data;with(i)__.push("<div>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-data-popup.htm","Your selection includes dataset(s). Please note that only time series will be exported."))),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-bookmarks-download-vis-popup",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="download-premium-popup">  '),typeof(action=="export")!="undefined"&&action=="export"!=null&&(typeof(action=="export")=="function"?(action=="export").call($item):action=="export")&&(__.push("  <p>   "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-vis-popup.htm","Only 10 visualizations can be exported at a time."))),__.push("  <\/p>  <p>   "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-vis-popup.htm","Please adjust your selections."))),__.push("  <\/p>  ")),__.push("   "),typeof(action=="select")!="undefined"&&action=="select"!=null&&(typeof(action=="select")=="function"?(action=="select").call($item):action=="select")&&(__.push("  <p>   "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-vis-popup.htm","Only 10 visualizations can be selected at a time."))),__.push("  <\/p>  <p>   "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-vis-popup.htm","Please adjust your selections."))),__.push("  <\/p>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-bookmarks-download-page-popup",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="download-premium-popup">  <p>   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-page-popup.htm","You may only export one page at a time."))),__.push("  <\/p>  <p>   "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/bookmarks/download-page-popup.htm","Please adjust your selections."))),__.push("  <\/p> <\/div>");return __})