jQuery.template("Tmpl-ranking-template",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('
'),typeof uniqueMembers!="undefined"&&uniqueMembers!=null&&$.each(typeof uniqueMembers=="function"?uniqueMembers.call($item):uniqueMembers,function(i,member){with(this)__.push('
'),typeof(member.memberRank<0)!="undefined"&&member.memberRank<0!=null&&(typeof(member.memberRank<0)=="function"?(member.memberRank<0).call($item):member.memberRank<0)?(__.push(""),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push("")):!0&&(__.push(""),typeof member.memberRank!="undefined"&&member.memberRank!=null&&__.push($.encode(typeof member.memberRank=="function"?member.memberRank.call($item):member.memberRank)),__.push("")),__.push(" <\/div> "),typeof viewState.displayFlags!="undefined"&&viewState.displayFlags!=null&&(typeof viewState.displayFlags=="function"?viewState.displayFlags.call($item):viewState.displayFlags)&&(__.push('
'),typeof(member.RegionId.length==2)!="undefined"&&member.RegionId.length==2!=null&&(typeof(member.RegionId.length==2)=="function"?(member.RegionId.length==2).call($item):member.RegionId.length==2)?(__.push(' <\/span> ')):!0&&__.push(' <\/span> '),__.push(" <\/div> ")),__.push('
'),typeof member.memberName!="undefined"&&member.memberName!=null&&__.push($.encode(typeof member.memberName=="function"?member.memberName.call($item):member.memberName)),__.push('<\/div>
'),typeof member.memberValue!="undefined"&&member.memberValue!=null&&__.push($.encode(typeof member.memberValue=="function"?member.memberValue.call($item):member.memberValue)),__.push('<\/div>
  <\/div> <\/div> <\/div> <\/div> ')}),__.push(" <\/div> <\/div> "),typeof multipleTimeMembers!="undefined"&&multipleTimeMembers!=null&&(typeof multipleTimeMembers=="function"?multipleTimeMembers.call($item):multipleTimeMembers)&&__.push('
div.map-timebar <\/div> '),__.push("");return __});jQuery.template("Tmpl-tranking-template",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('
'),typeof headerColumns!="undefined"&&headerColumns!=null&&$.each(typeof headerColumns=="function"?headerColumns.call($item):headerColumns,function(i,member){with(this)__.push(' "),typeof rows!="undefined"&&rows!=null&&$.each(typeof rows=="function"?rows.call($item):rows,function(n,cells){with(this)__.push(" "),typeof cells!="undefined"&&cells!=null&&$.each(typeof cells=="function"?cells.call($item):cells,function(j,cell){with(this)__.push('
2?"active-column":"")!="undefined"&&(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")!=null&&__.push($.encode(typeof(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")=="function"?(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"").call($item):i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")),__.push('" '),typeof(member.dataTimePoint!=null)!="undefined"&&member.dataTimePoint!=null!=null&&(typeof(member.dataTimePoint!=null)=="function"?(member.dataTimePoint!=null).call($item):member.dataTimePoint!=null)&&(__.push(' data-time-point="'),typeof member.dataTimePoint!="undefined"&&member.dataTimePoint!=null&&__.push($.encode(typeof member.dataTimePoint=="function"?member.dataTimePoint.call($item):member.dataTimePoint)),__.push('" ')),__.push(" > "),typeof member.text!="undefined"&&member.text!=null&&__.push($.encode(typeof member.text=="function"?member.text.call($item):member.text)),__.push(" <\/th> ")}),__.push(" <\/tr> <\/thead>
2?"active-column":"")!="undefined"&&(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")!=null&&__.push($.encode(typeof(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")=="function"?(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"").call($item):j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")),__.push(" "),typeof(cell&&typeof cell.Value=="number"?" data-cell":"")!="undefined"&&(cell&&typeof cell.Value=="number"?" data-cell":"")!=null&&__.push($.encode(typeof(cell&&typeof cell.Value=="number"?" data-cell":"")=="function"?(cell&&typeof cell.Value=="number"?" data-cell":"").call($item):cell&&typeof cell.Value=="number"?" data-cell":"")),__.push(" "),typeof(cell&&cell.isBaseMember)!="undefined"&&(cell&&cell.isBaseMember)!=null&&(typeof(cell&&cell.isBaseMember)=="function"?(cell&&cell.isBaseMember).call($item):cell&&cell.isBaseMember)&&__.push("base-member"),__.push('"> '),typeof cell!="undefined"&&cell!=null&&(typeof cell=="function"?cell.call($item):cell)?(__.push(" "),typeof(j===0)!="undefined"&&j===0!=null&&(typeof(j===0)=="function"?(j===0).call($item):j===0)?(__.push(" "),typeof displayRanking!="undefined"&&displayRanking!=null&&(typeof displayRanking=="function"?displayRanking.call($item):displayRanking)&&(__.push('
'),typeof cell.tuple!="undefined"&&cell.tuple!=null&&(typeof cell.tuple=="function"?cell.tuple.call($item):cell.tuple)&&(__.push(""),typeof cell.tuple.rank!="undefined"&&cell.tuple.rank!=null&&__.push($.encode(typeof cell.tuple.rank=="function"?cell.tuple.rank.call($item):cell.tuple.rank)),__.push("")),__.push(" <\/div> ")),__.push(" "),typeof displayFlags!="undefined"&&displayFlags!=null&&(typeof displayFlags=="function"?displayFlags.call($item):displayFlags)&&(__.push('
'),typeof(cell.tuple&&cell.tuple.RegionId)!="undefined"&&(cell.tuple&&cell.tuple.RegionId)!=null&&(typeof(cell.tuple&&cell.tuple.RegionId)=="function"?(cell.tuple&&cell.tuple.RegionId).call($item):cell.tuple&&cell.tuple.RegionId)?(__.push(' <\/span> ')):!0&&__.push(' <\/span> '),__.push(" <\/div> ")),__.push('
'),typeof cell.Value!="undefined"&&cell.Value!=null&&__.push($.encode(typeof cell.Value=="function"?cell.Value.call($item):cell.Value)),__.push(' <\/a> <\/div>
'),typeof(cell.tuple&&cell.percentage)!="undefined"&&(cell.tuple&&cell.percentage)!=null&&(typeof(cell.tuple&&cell.percentage)=="function"?(cell.tuple&&cell.percentage).call($item):cell.tuple&&cell.percentage)&&(__.push('
  <\/div> ")),__.push(" <\/div> ")):!0&&(__.push(" "),typeof(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)!="undefined"&&(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)!=null&&__.push($.encode(typeof(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)=="function"?(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value).call($item):typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)),__.push(" ")),__.push(" ")):!0&&__.push(" – "),__.push(" <\/td> ")}),__.push(" <\/tr> ")}),__.push(" <\/tbody> <\/table> <\/div>");return __});jQuery.template("Tmpl-ranking-tooltip-v2",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof tooltipData.stubName!="undefined"&&tooltipData.stubName!=null&&__.push($.encode(typeof tooltipData.stubName=="function"?tooltipData.stubName.call($item):tooltipData.stubName)),__.push("<\/strong>
"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/ranking-tooltip-v2.htm","Value"))),__.push(":  "),typeof tooltipData.roundedValue!="undefined"&&tooltipData.roundedValue!=null&&__.push($.encode(typeof tooltipData.roundedValue=="function"?tooltipData.roundedValue.call($item):tooltipData.roundedValue)),__.push(" "),typeof tooltipData.Unit!="undefined"&&tooltipData.Unit!=null&&__.push($.encode(typeof tooltipData.Unit=="function"?tooltipData.Unit.call($item):tooltipData.Unit)),__.push("
"),typeof tooltipData.headerName!="undefined"&&tooltipData.headerName!=null&&__.push($.encode(typeof tooltipData.headerName=="function"?tooltipData.headerName.call($item):tooltipData.headerName)),__.push(": "),typeof tooltipData.headerMember!="undefined"&&tooltipData.headerMember!=null&&__.push($.encode(typeof tooltipData.headerMember=="function"?tooltipData.headerMember.call($item):tooltipData.headerMember)),__.push("
"),typeof tooltipData.ifFoldMessage!="undefined"&&tooltipData.ifFoldMessage!=null&&(typeof tooltipData.ifFoldMessage=="function"?tooltipData.ifFoldMessage.call($item):tooltipData.ifFoldMessage)&&(__.push(" "),typeof tooltipData.ifFoldMessage!="undefined"&&tooltipData.ifFoldMessage!=null&&__.push($.encode(typeof tooltipData.ifFoldMessage=="function"?tooltipData.ifFoldMessage.call($item):tooltipData.ifFoldMessage)),__.push("
")),__.push(" "),typeof(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")!="undefined"&&(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")!=null&&(typeof(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")=="function"?(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="").call($item):tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")&&(__.push('
'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/ranking-tooltip-v2.htm","Base member ratio:"))),__.push("<\/strong> "),typeof tooltipData.baseRegionRatio!="undefined"&&tooltipData.baseRegionRatio!=null&&__.push($.encode(typeof tooltipData.baseRegionRatio=="function"?tooltipData.baseRegionRatio.call($item):tooltipData.baseRegionRatio)),__.push(" <\/div> ")),__.push("");return __})