1(()=>{"use strict";function e(e){return e?String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):""}function t(e){if(!e)return"";var t=document.createElement("div");return t.textContent=e,t.innerHTML}function a(a){if(!a)return"";var i=document.createElement("template");i.innerHTML=a;var r=["IMG","P","SPAN","BR","STRONG","EM"],n=["SCRIPT","STYLE","IFRAME","NOSCRIPT"],s={IMG:["src","alt","title","width","height","class","draggable","role"],SPAN:["class","aria-label","tabindex"],P:["class"]};function o(e,t){if(!t)return!1;var a=t.trim(),i=a.toLowerCase();return!i.startsWith("javascript:")&&!i.startsWith("vbscript:")&&(i.startsWith("data:")?/^data:image\/(png|jpe?g|gif);base64,[a-z0-9+/=]+$/i.test(a):!!(i.startsWith("http:")||i.startsWith("https:")||i.startsWith("//")||a.startsWith("/"))||!/^[a-z0-9+\-.]+:/i.test(a))}function l(a){if(a.nodeType===Node.TEXT_NODE)return t(a.nodeValue);if(a.nodeType===Node.ELEMENT_NODE){var i=a.tagName.toUpperCase();if(n.includes(i))return"";if(!r.includes(i)){var p="";for(var d of a.childNodes)p+=l(d);return p}var c=a.tagName.toLowerCase(),w="<".concat(c),u=s[i]||[];for(var f of Array.from(a.attributes)){var v=f.name.toLowerCase();v.startsWith("on")||u.includes(v)&&("src"!==v&&"href"!==v||o(0,f.value))&&(f.value&&f.value.toLowerCase().includes("javascript:")||(w+=" ".concat(f.name,'="').concat(e(f.value),'"')))}if("IMG"===i||"BR"===i)return w+=" />";for(var _ of(w+=">",a.childNodes))w+=l(_);return w+="</".concat(c,">")}return""}var p="";for(var d of i.content.childNodes)p+=l(d);return p}function i(e,t){return null==e?"":(e+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1"+(t||void 0===t?"<br />":"<br>")+"$2")}function r(a,i){return a?a.replace(/#[^\s!@#$%^&*()=+.\/,\[{\]};:'"?><]+/g,function(a){var r=a.replace("#","");return'<a href="'+e(i+r)+'" target="_blank">'+t(a)+"</a>"}):""}function n(a){return a?a.replace(/(?<!src\s*=\s*["'][^"']*)[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&~\?\/.=]+(?![^<>]*>)/g,function(a){return'<a href="'+e(a)+'" target="_blank">'+t(a)+"</a>"}):""}var s=function(e,t,a,i){var r=t||100,n=window.wpsr_ajax_params.read_more?window.wpsr_ajax_params.read_more:"Read More",s=window.wpsr_ajax_params.read_less?window.wpsr_ajax_params.read_less:"Read Less";if(e.length>r){var o="";return o+=e.substring(0,r)+"<span class='wpsr_add_read_more_slice_content'>"+e.substring(r,e.length).replace("Read MoreRead Less","")+"</span>",o+="<span class='wpsr_read_more'>"+n+"</span>",o+="<span class='wpsr_read_less'>"+s+"</span>"}return e};function o(e,t,i,s){jQuery(e+":not(.wpsr_more_added)").each(function(){var e=jQuery(this),o=e.data("num-words-trim"),p=this.innerHTML;if(!p||""===p.trim())return this.innerHTML="",void e.addClass("wpsr_more_added");var d=a(p);this.innerHTML=d;var c=d;o&&(c=function(e,t,a,i){if(!e||!t)return e;e=e.replace(/\s+/g," ").trim();var r=document.createElement("div");if(r.innerHTML=e,(r.textContent||r.innerText||"").trim().split(/\s+/).length<=t)return e;for(var n=0,s="",o="",l=e.split(/(\s+)/),p=0;p<l.length;p++){var d=l[p];d.trim()&&!d.match(/^<[^>]+>$/)?n<t?(s+=d,n++):o+=d:n<t?s+=d:o+=d}if(o.trim().length>0)return s+"<span class='wpsr_add_read_more_slice_content'>"+o+"</span><span class='wpsr_read_more' aria-label='"+a+"' tabindex='0'>"+a+"</span><span class='wpsr_read_less' aria-label='"+i+"' tabindex='0'>"+i+"</span>";return s}
1(d,o,t,i)),s&&c&&(c=r(c=n(c)||c,s)||c),this.innerHTML=c||"",e.addClass("wpsr_more_added"),setTimeout(()=>{if(jQuery.fn.masonry){var t=e.closest(".wpsr-row");t.length&&t.data("masonry")?t.masonry("layout"):l(jQuery)}else l(jQuery)},100)})}function l(e){e(".wpsr-row").each(function(){if(e(this).hasClass("wpsr-active-masonry-layout")){var t=e(this).data("column");e(this).masonry({itemSelector:".wpsr-col-"+t})}})}var p=0;function d(e,t,a){var i=jQuery(e),r=i.find(".wpsr-fp-config")[0],n=null;if(r)try{n=JSON.parse(r.textContent)}catch(e){n=null}var s=i[0],o=a||(s?s.getAttribute("data-wpsr-player-seq"):null);a||!s||o||(o=String(++p),s.setAttribute("data-wpsr-player-seq",o)),i.find(".fluent-player").each(function(){var e=this.id,a=e+"-wpsr-"+t+"-"+(o||"0");this.id=a,e&&i.find("style").each(function(){this.textContent=this.textContent.split("#"+e).join("#"+a)}),document.dispatchEvent(new CustomEvent("InitSingleFluentPlayer",{detail:n?{container:this,playerData:n}:{container:this}}))}),"function"==typeof window.wpsrInitReviewForms&&window.wpsrInitReviewForms(i[0])}const c={generateURLsFromHashTag:r,animateTextTypingEffect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".wpsr-ai-review-summary",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,a=document.querySelector(e);if(!(a&&a.parentNode.classList.contains("wpsr-disable-typing-animation")||null===a)){var i=null;if(a.childNodes.forEach(e=>{e.nodeType!==Node.TEXT_NODE||""===e.nodeValue.trim()||i||(i=e)}),i){var r=i.nodeValue.trim();i.nodeValue="";var n=0;!function e(){n<r.length&&(i.nodeValue+=r.charAt(n),n++,setTimeout(e,t))}()}}},formatText:function(e,t){var s=a(e);return i(s=r(s=n(s),t))},nl2br:i,formatDate:function(e){var t=new Date(e),a=t.getMonth(),i=""+t.getDate(),r=t.getFullYear();return i.length<2&&(i="0"+i),"".concat(a=["January","February","March","April","May","June","July","August","September","October","November","December"][a]," ").concat(i,", ").concat(r)},formatDateWithTime:function(e){var t=new Date(e),a=t.getMonth(),i=""+t.getDate(),r=t.getFullYear(),n=t.getHours(),s=t.getMinutes(),o=n+":"+(s=s<10?"0"+s:s)+" "+(n>=12?"pm":"am");return i.length<2&&(i="0"+i),"".concat(a=["January","February","March","April","May","June","July","August","September","October","November","December"][a]," ").concat(i,", ").concat(r," ").concat(o)},excerpt:s,htmlSubstring:function(e,t){for(var a,i=t,r=/<([^>\s]*)[^>]*>/g,n=0,o=[];(a=r.exec(e))&&i;){var l=e.substring(n,a.index).substr(0,i);o.push({first:a.index,second:r.lastIndex}),e.substring(n,a.index),i-=l.length,n=r.lastIndex}for(var p=1;p<o.length;p++)if(o[p-1].first<100&&o[p].second>100){var d=o[p].second;return s(e,d)}return e.length>100?s(e,100):e},appendReadMoreButton:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";o(".wpsr_add_read_more",e,t,"https://facebook.com/hashtag/"),o(".wpsr-tiktok-feed-content",e,t,"https://www.tiktok.com/tag/")},shortNumberFormat:function(e){var t=Math.log10(e)/3|0;if(0===t)return e;var a=["","k","M","G","T","P","E"][t],i=Math.pow(10,3*t);return parseFloat((e/i).toFixed(1))+a},carouselOptions:function(e,t,a,i){i.parent().find(".swiper-button-prev").addClass("wpsr-swiper-btn-prev-"+a),i.parent().find(".swiper-button-next").addClass("wpsr-swiper-btn-next-"+a),i.parent().find(".wpsr-swiper-pagination").addClass("wpsr-swiper-pagination-"+a);var r={a11y:window.wpsr_ajax_params.a11y,speed:1e3,direction:"horizontal",spaceBetween:e.spaceBetween?e.spaceBetween:20,breakpoints:{320:{slidesPerView:e.responsive_slides_to_show?e.responsive_slides_to_show.mobile:1,slidesPerGroup:e.responsive_slides_to_scroll?e.responsive_slides_to_scroll.mobile:1},480:{slidesPerView:e.responsive_slides_to_show?e.responsive_slides_to_show.mobile:1,slidesPerGroup:e.responsive_slides_to_scroll?e.responsive_slides_to_scroll.mobile:1},640:{slidesPerView:e.responsive_slides_to_show?e.responsive_slides_to_show.tablet:2,slidesPerGroup:e.responsive_slides_to_scroll?e.responsive_slides_to_scroll.tablet:2},768:{slidesPerView:e.responsive_slides_to_show?e.responsive_slides_to_show.tablet:2,slidesPerGroup:e.responsive_slides_to_scroll?e.responsive_slides_to_scroll.tablet:2},1024:{slidesPerView:e.responsive_slides_to_show?e.responsive_slides_to_show.desktop:e.slides_to_show,slidesPerGroup:e.responsive_slides_to_scroll?e.responsive_slides_to_scroll.desktop:e.slides_to_scroll}}};
1return e.autoplay&&"true"===e.autoplay&&(r.autoplay={delay:parseInt(e.autoplay_speed),disableOnInteraction:!1,pauseOnMouseEnter:!0}),!e.navigation||"dot"!==e.navigation&&"both"!==e.navigation||(r.pagination={el:t+" .wpsr-swiper-pagination-"+a,clickable:!0}),!e.navigation||"arrow"!==e.navigation&&"both"!==e.navigation||(r.navigation={nextEl:t+" .wpsr-swiper-btn-next-"+a,prevEl:t+" .wpsr-swiper-btn-prev-"+a}),r},ratingIcon:function(e){for(var t="",a=0;a<5;a++){var i="0%",r=e-a;r>=1?i="100%":r>0&&(i="".concat(100*r,"%"));var n=parseFloat(i)>10?"wpsr-star-background-filled":"wpsr-star-background-empty";t+='\n <div class="wpsr-star-container '.concat(n,'" style="--wpsr-review-star-fill: ').concat(i,';">\n <div class="wpsr-star-empty"></div>\n <div class="wpsr-star-filled"></div>\n </div>\n ')}return t},openPopupWindow:function(e){open(e,"","scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=800,height=500,left=100,top=100")},checkBFScrollbar:function(){jQuery("html").hasClass("lenis")&&jQuery(".wpsr-feed-popup-open").attr("data-lenis-prevent","")},wpsrInitInjectedContent:d,wpsrInitInjectedPlayers:function(e,t){jQuery(e).find(".wpsr-testimonial-video").each(function(){try{d(this,t)}catch(e){console.error("WP Social Ninja: could not init an injected player",e)}})}};window.wpsrHelper=c,window.wpsr_notification_popup=[];var w=jQuery,u=null,f=0,v="",_="",m="",h=0,g=0;const y={init:function(){this.setPlatformIconDimensions(),this.activateNotification(),this.showPopupModal(),this.hidePopupModal(),window.wpsrNotificationApi={resyncFeed:e=>this.resyncFeed(e)}},resyncFeed(e){var t=w("#wpsr-notification-card-"+e);if(t.length){var a=w("#wpsr-reviews-grid-"+e).find("[data-index]").length;t.attr("data-total",a).data("total",a),f=0}},setPlatformIconDimensions(){w(".wpsr-reviews-notification-card-wrapper .wpsr-review-platform img").attr({width:20,height:20})},showPopupModal(){w(".wpsr-reviews-notification-card").each(function(e){var t=w(this);t.on("click",function(e){var a=t.closest(".wpsr-reviews-notification-card-wrapper"),i=a.data("notification_id"),r=w("#wpsr-reviews-grid-"+i),n=a.data("display_mode");if(("popup"===n||"none"==n)&&(e.preventDefault(),"popup"==n)){r.removeClass("deactivate"),r.addClass("wpsr-notification-active"),a.addClass("deactivate");var s=a.attr("data-index"),o=w("#wpsr-reviews-grid-"+i).find('[data-index="'+s+'"]');o.length&&(o.addClass("wpsr-highlight"),o[0].scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(function(){o.removeClass("wpsr-highlight")},2e3)),u&&(clearInterval(u),u=null)}})})},hidePopupModal(){var e=w(".wpsr-popup-collapse"),t=this;e.each(function(){w(this).on("click",function(e){e.preventDefault(),t.activateNotification();var a=w(this).data("notification_id"),i=w("#wpsr-reviews-grid-"+a),r=w("#wpsr-notification-card-"+a);i.removeClass("wpsr-notification-active"),i.addClass("deactivate"),r.removeClass("deactivate"),r.addClass("wpsr-notification-active")})})},activateNotification(){w(this);u&&(clearInterval(u),u=null);var e=w(".wpsr-reviews-notification-card-wrapper"),t=this;g++,e.each(function(e){var a=w(this),i=a.data("total"),r=a.data("notification_id"),n=a.data("notification_delay"),s=a.data("display_date"),o=a.data("display_tp_brand"),l=a.data("display_platform_icon");v=a.data("assets_url"),_=a.data("assets_url_pro"),m=a.data("custom_platform_logo"),n||(n=1e3);var p=a.data("initial_delay")?a.data("initial_delay"):4e3,d=a.data("delay_for")?a.data("delay_for"):5e3;i&&(a.find(".wpsr-close").on("click",function(e){e.preventDefault(),a.removeClass("wpsr-notification-active"),a.addClass("deactivate")}),1===g?(window.wpsr_notification_popup.initial_delay=p,window.wpsr_notification_popup.delay_between=n,window.wpsr_notification_popup.delay_for=d,u=setTimeout(function(){t.changeNotification(a,r,s,o,l,i,f),f++,t.activateLoop(a,r,s,o,l,i)},window.wpsr_notification_popup.initial_delay)):(u&&(clearInterval(u),u=null),setTimeout(function(){!h&&a.hasClass("wpsr-notification-active")&&a.removeClass("wpsr-notification-active");t.activateLoop(a,r,s,o,l,i,!0)},1e3)),a.mouseover(function(){h=1,a.addClass("wpsr-visible-card")}),a.mouseleave(function(){h=0,a.removeClass("wpsr-visible-card")}))})},findElement(e,t){var a=w("#wpsr-reviews-grid-"+e).find('[data-index="'+t+'"]');
1if(!a.length)return{missing:!0,review_platform:""};var i=a.data("review_platform")||"";return"ai"===i?{review_platform:i}:{reviewer_image:a.find(".wpsr-reviewer-image img").attr("src"),custom_platform_logo:a.find(".wpsr-review-platform img").attr("src"),reviewer_name:a.find(".wpsr-review-info .wpsr-reviewer-name").text(),review_rating:a.find(".wpsr-rating-wrapper").data("rating"),review_date:a.find(".wpsr-review-date").data("time"),review_platform:i,product_name:a.data("product_name"),product_thumbnail:a.data("product_thumbnail")}},setElement(e,t,a,i,r){if("ai"===t.review_platform)return!1;var n=t.custom_platform_logo&&""!==t.custom_platform_logo?t.custom_platform_logo:this.get_platform_icon(t.review_platform),s=window.wpsrHelper.ratingIcon(t.review_rating);e.find(".wpsr-reviewer-image img").attr("src",t.reviewer_image),e.find(".wpsr-review-platform img").attr({src:n,width:20,height:20}),e.find(".wpsr-reviewer-image img").attr("alt",t.reviewer_name),e.find(".reviewer-name").text(t.reviewer_name),e.find(".review-rating").text(parseFloat(t.review_rating)),e.find(".wpsr-rating").text(t.review_rating),e.find(".wpsr-review-source-title").text(t.product_name),a&&(t.review_date&&t.review_date.length?e.find(".review-time").text(t.review_date):e.find(".review-time").text("")),r&&!t.review_platform.includes("custom")?t.review_platform.includes("trust")&&!i?this.togglePlatformIcon(e,"",t.review_platform,"wpsr-show-logo","wpsr-hide-logo"):this.togglePlatformIcon(e,n,t.review_platform,"wpsr-hide-logo","wpsr-show-logo"):this.togglePlatformIcon(e,"",t.review_platform,"wpsr-show-logo","wpsr-hide-logo"),e.find(".wpsr-rating").html(s)},activateLoop(e,t,a,i,r,n,s){var o,l=this,p=parseInt(e.attr("data-total"),10);p=isNaN(p)?n:p,f>=p&&(f=0),o=s?window.wpsr_notification_popup.delay_between:window.wpsr_notification_popup.delay_between+window.wpsr_notification_popup.delay_for,s=!1,u=setTimeout(function(){l.changeNotification(e,t,a,i,r,p,f),f++,l.activateLoop(e,t,a,i,r,p,s)},o)},changeNotification(e,t,a,i,r,n,s){var o=this.findElement(t,s);if(!o.missing){if("ai"===o.review_platform)return n===++f&&(f=0),void this.changeNotification(e,t,a,i,r,n,f);this.showNotification(e,t,a,s,i,r);var l=this;setTimeout(function(){l.hideNotification(e,t,s)},window.wpsr_notification_popup.delay_for)}},showNotification(e,t,a,i,r,n){e.attr("data-index",i);var s=this.findElement(t,i);if(!s.missing){var o=s.review_platform;"ai"!==o?(e.hasClass("wpsr-notification-active")||(e.addClass("wpsr-notification-active"),e.addClass("wpsr-reviews-platform-"+o)),this.setElement(e,s,a,r,n)):f++}},hideNotification(e,t,a){var i=this.findElement(t,a).review_platform;e.hasClass("wpsr-notification-active")&&(e.removeClass("wpsr-notification-active"),e.removeClass("wpsr-reviews-platform-"+i)),h&&(e.addClass("wpsr-notification-active"),e.addClass("wpsr-reviews-platform-"+i))},togglePlatformIcon(e,t,a,i,r){var n=e.find(".wpsr-notification-body span"),s=e.find(".wpsr-review-platform img");s.hasClass(i)&&(s.removeClass(i),s.addClass(r)),s.attr({src:t,alt:a,width:20,height:20}),n.hasClass(i)&&(n.removeClass(i),n.addClass(r))},get_platform_icon:e=>m||(e.includes("trust")?_:v+"/images/icon/")+("icon-"+e+"-small.png")};jQuery(document).ready(function(e){e(".wpsr-reviews-notification-card-wrapper").data("notification_id")&&y.init()})})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.