function filteringRetailer(n,t){var r=n.split("_"),i=t.Retailers.filter(function(n){return r.indexOf(n.RetailerID)>=0});return i.length>0&&(t.Retailers=i),t}function SetEqualHeight(n,t){try{if(n.length>0)if(t==undefined&&(t=window.innerWidth||document.body.clientWidth),t>767){var i=0;n.css({height:"auto"});n.each(function(){var t=jQuery(this);t.outerHeight()>i&&(i=n.hasClass("m-product-placement-item")&&!n.hasClass("compare-devices-height")&&$("html").attr("lang").toLowerCase()!="de-de"&&$("html").attr("lang").toLowerCase()!="en-us"?t.outerHeight()+40:n.hasClass("m-product-placement-item")&&!n.hasClass("compare-devices-height")&&($("html").attr("lang").toLowerCase()=="de-de"||$("html").attr("lang").toLowerCase()=="en-us")?t.outerHeight()+53:t.outerHeight())});setTimeout(function(){n.css("height",i)},500)}else n.css({height:"auto"})}catch(r){console.log(r)}}function getQueryString(n,t){var i=new RegExp("[?&]"+t+"=([^]*)").exec(window.location.href);return i==null?undefined:decodeURI(i[0])||""}function getQueryParams(n){var t=new RegExp("[?&]"+n+"=([^]*)").exec(window.location.href);return t==null?undefined:decodeURI(t[1])||""}function returnDeviceObjectBySku(n){try{var t;window.data!=undefined&&window.data.forEach(function(i,r){i.ProductID==n&&(t=window.data[r])});window.vad.catalog!=undefined&&window.vad.catalog.allIndividualItems.forEach(function(i,r){i.ProductID==n&&(t=window.vad.catalog.allIndividualItems[r])})}catch(i){console.log(i)}return t}function whichCategory(n){try{return n=="Desktops and All-in-Ones"?"AllInOnes":n=="Gaming PCs"?"Gaming":n=="2-in-1s"?"2In1s":n=="LTE PC"?"LTEDevices":"Laptops"}catch(t){console.log(t)}}function sortByOrder(n){n.sort(function(n,t){return+$(n).attr("data-featured-order")-+$(t).attr("data-featured-order")})}function sortByFFOrder(n){n.sort(function(n,t){return+$(n).attr("data-featured-formfactor-order")-+$(t).attr("data-featured-formfactor-order")})}function shuffleArray(n){let t=n.length;while(0!==t){let i=Math.floor(Math.random()*t);t-=1;let r=n[t];n[t]=n[i];n[i]=r}return n}function shuffle(n){let t=n.length,i;while(t!=0)i=Math.floor(Math.random()*t),t--,[n[t],n[i]]=[n[i],n[t]];return n}function endOfSupport(n){var t=function(n){$("#"+n+" .m-feature").find(".featurecontent").each(function(){changingIDsForTooltip($(this))})},i=function(n){$("#"+n+" .m-panes").find(".m-panes-product-placement-item").each(function(){changingIDsForTooltip($(this))})},r=function(t){$("#"+t+" .m-panes").find(".m-panes-product-placement-item").each(function(){var c=$(this).attr("data-devices"),l=c.split("|"),a=n.filter(function(n){return l.indexOf(n.DeviceName)>=0}),i=shuffleArray(a),u=$(this).find(".c-paragraph").html(),f="",e="",o=0,s,h,r;i[0].OEMPromotions==""||i[0].OEMPromotions==null?(i[0].OEMPromotions="",f=" hidesale"):(e=i[0].OEMPromotions.split(":")[1],o=parseInt(i[0].OEMPromotions.split(":")[0])-1);s=$(".end-of-support #"+t+" .tooltipInfoCopy.hide").eq(o).html();h='