PageSourceSearch

https://www.sitedish.nl/wp-content/plugins/widget-google-reviews/assets/7.1/js/public-main.js

js sitedish.nl collected 2026-09-24 10:50:46 UTC 32,258 bytes, 72 lines download raw bytes

1var rpi=rpi||{};
2rpi.Time={getFormatTime:function(a,b,c){a=this._ms(a);if(!isFinite(a))return"";a=new Date(a);var d=c||"en";c=function(l){return 10>l?"0"+l:""+l};var f=a.getHours(),e=((new Intl.DateTimeFormat(d,{day:"numeric",month:"short"})).formatToParts(a).find(function(l){return"month"===l.type})||{}).value;d=(new Intl.DateTimeFormat(d,{day:"numeric",month:"long"})).formatToParts(a).find(function(l){return"month"===l.type}).value;var g=a.getFullYear(),m=String(g).slice(-2),p={yyyy:g,Y:g,yy:m,y:m,MMMM:d,MMM:e,
3M:e,MM:c(a.getMonth()+1),m:c(a.getMonth()+1),dd:c(a.getDate()),d:c(a.getDate()),HH:c(f),H:f,hh:c(f%12||12),h:f%12||12,mm:c(a.getMinutes()),i:c(a.getMinutes()),ss:c(a.getSeconds()),s:c(a.getSeconds()),a:12<=f?"pm":"am",A:12<=f?"PM":"AM"};return b.replace(/(MMMM|MMM|yyyy|HH|hh|MM|mm|dd|ss|yy|H|h|M|m|d|Y|y|i|s|a|A)/g,l=>null!=p[l]?p[l]:l)},getTimeAgo:function(a,b){var c=this._ms(a);if(!isFinite(c))return"";var d=Date.now();a=c>d?1:-1;var f=Math.abs(d-c)/1E3;b=b||"en";var e=Math.floor(f/86400);if(60>
4f)return this._rel(a,Math.max(1,Math.floor(f)),"second",b);if(3600>f)return this._rel(a,Math.floor(f/60),"minute",b);if(86400>f)return this._rel(a,Math.floor(f/3600),"hour",b);c=this._months(new Date(Math.min(c,d)),new Date(Math.max(c,d)));return 12<=c?this._rel(a,Math.floor(c/12),"year",b):1<=c?this._rel(a,c,"month",b):7<=e?this._rel(a,Math.floor(e/7),"week",b):this._rel(a,e,"day",b)},_rel:function(a,b,c,d){var f=new Intl.RelativeTimeFormat(d,{numeric:"always"});d=1===b&&this.ONE[String(d).split("-")[0].toLowerCase()];
5if(!d)return f.format(a*b,c);var e=c in d?d[c]:d._;return f.formatToParts(a*b,c).map(function(g){return"integer"===g.type?e:g.value}).join("").replace(/\s{2,}/g," ").replace(/'\s/g,"'").trim()},_months:function(a,b){var c=12*(b.getFullYear()-a.getFullYear())+b.getMonth()-a.getMonth(),d=new Date(a);d.setFullYear(a.getFullYear(),a.getMonth()+c,Math.min(a.getDate(),(new Date(a.getFullYear(),a.getMonth()+c+1,0)).getDate()));return d>b?c-1:c},ONE:{en:{_:"a",hour:"an"},de:{_:"einem",minute:"einer",hour:"einer",
6week:"einer"},nl:{_:"een"},es:{_:"un",hour:"una",week:"una"},pt:{_:"um",hour:"uma",week:"uma"},fr:{_:"un",minute:"une",hour:"une",week:"une"},it:{_:"un",hour:"un'",week:"una"},ru:{_:""},uk:{_:""},bg:{_:""},pl:{_:""},cs:{_:""},sk:{_:""}},_ms:function(a){a=parseInt(a,10);return 1E10>a?1E3*a:a}};rpi=rpi||{};
7rpi.Utils={__:function(a,b){return b&&b[a]||a},isVisible:function(a){let b=window.getComputedStyle(a);return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==b.visibility&&"none"!==b.display},isInViewport:function(a,b=0){a=a.getBoundingClientRect();return a.top<window.innerHeight*(1+b)&&a.bottom>-window.innerHeight*b&&a.left<window.innerWidth*(1+b)&&a.right>-window.innerWidth*b},isRTL:function(){return"rtl"==(window.getComputedStyle?window.getComputedStyle(document.body,null).getPropertyValue("direction"):
8document.body.currentStyle.direction)},getParent:function(a,b="rplg"){b=Array.isArray(b)?b:[b];return a?a.closest("."+b.join(",.")):null},lang:function(){const a=navigator;return String((a.languages&&a.languages.length?a.languages[0]:null)||a.language||a.systemLanguage||a.userLanguage||"en").replace("_","-")},popup:function(a,b,c){var d=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+b+", height="+c+", top="+((window.innerHeight?window.innerHeight:d.clientHeight?d.clientHeight:
9screen.height)/2-c/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:d.clientWidth?d.clientWidth:screen.width)/2-b/2+(void 0!=window.screenLeft?window.screenLeft:window.screenX)));window.focus&&a.focus();return a},ajax:function(a,b,c,d){const f=new XMLHttpRequest;f.open(b,a,!0);f.setRequestHeader("Content-Type","application/json");f.onreadystatechange=function(){if((f.readyState===XMLHttpRequest.DONE||f.readyState===f.DONE)&&200===f.status){const e=
10JSON.parse(f.responseText);"function"===typeof d?d(e):"function"===typeof c&&c(e)}};f.send(c&&"function"!==typeof c?JSON.stringify(c):null)},anchor:function(a,b,c,d,f){const e=[];c.open_link&&e.push("noopener");c.nofollow_link&&e.push("nofollow");return'<a href="'+a+'"'+(d?' class="'+d+'"':"")+(c.open_link?' target="_blank"':"")+(e.length?' rel="'+e.join(" ")+'"':"")+(f?' aria-label="'+f+'"':"")+">"+b+"</a>"},rm:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},capit:function(a){return a.charAt(0).toUpperCase()+
11a.slice(1)},count:function(a){const b=Number(a);
11return isFinite(b)?b.toLocaleString():null==a?"":String(a)},compact:function(a){const b=Number(a);if(!isFinite(b))return null==a?"":String(a);if(1E3>Math.abs(b))return String(b);try{return b.toLocaleString(void 0,{notation:"compact",maximumFractionDigits:1})}catch(c){return this.count(Math.round(b))}},url:function(a){try{return(new URL(a,window.location.origin)).href}catch(b){try{return(new URL(a,document.baseURI)).href}catch(c){return""}}},clear:function(){this.rm(document.getElementById("rpi-style"));
12if(rpi.Instances)for(;rpi.Instances.length;)rpi.Instances.pop().clear()}};rpi=rpi||{};
13rpi.Column=function(a,b,c){const d=a.getAttribute("data-id"),f=new RegExp(c.col+"-[xsml]+"),e=new RegExp((d?'\\[data-id="'+d+'"\\]\\s+':"")+"\\."+c.card+"\\{--col:\\d+!important;--gap:\\d+!important\\}"),g=a.getElementsByClassName(c.cnt)[0];var m=null,p=null;return m={init:function(l,q){rpi.Instances=rpi.Instances||[];-1===rpi.Instances.indexOf(m)&&rpi.Instances.push(m);rpi.Utils.isVisible(g)?(l&&l(),m.resize(),window.addEventListener("resize",m.resize),q&&q()):p=setTimeout(m.init,300)},resize:function(){let l=
14m.getSize();g.className=g.className.replace(f,c.col+"-"+l);if(b.breakpoints){let q=g.offsetWidth,r=b.breakpoints.split(",");r.sort(m.brsort);for(let u=0;u<r.length;u++){let k=r[u].split(":");if(q<parseInt(k[0])){m.setCol(k[1]);break}}}return l},getSize:function(){let l=g.offsetWidth;return 510>l?"xs":750>l?"x":1050>l?"s":1450>l?"m":1800>l?"l":"xl"},setCol:function(l){const q=this.getStyle();l=(d?'[data-id="'+d+'"] ':"")+"."+c.card+"{--col:"+l+"!important;--gap:"+(l-1)+"!important}";e.test(q.innerHTML)?
15q.innerHTML=q.innerHTML.replace(e,l):q.innerHTML+=l},getCol:function(){let l=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return l&&1<l.length?l[1]:!1},getStyle:function(){let l=document.getElementById("rpi-style");l||(l=document.createElement("style"),l.id="rpi-style",document.head.appendChild(l));return l},setBreakpoints:function(l){b.breakpoints=l},brsort:function(l,q){return parseInt(l.split(":")[0])>parseInt(q.split(":")[0])?1:-1},clear:function(){clearTimeout(p);window.removeEventListener("resize",
16m.resize)}}};rpi=rpi||{};rpi.AVA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
17rpi.Common=function(a,b,c){let d=null;const f=rpi.Utils.lang();return d={init(){let e=a.getElementsByClassName(c.time),g=a.getElementsByClassName(c.text);for(const m of e)d.setTime(m);for(const m of g)d.setText(m)},initOnce(e){let g=e.getElementsByClassName(c.time)[0];e=e.getElementsByClassName(c.text)[0];d.setTime(g);d.setText(e)},setText(e){if(e&&e.textContent){var g=d.trimtext(e.textContent);e.textContent=g[0];g[1]&&(e.appendChild(rpi.el({tag:"span",cl:"rpi-s",text:"... "})),e.appendChild(rpi.el({tag:"span",
18cl:c.readmore,text:rpi.Utils.__("read more",b.trans),data:{hidden:g[1]}})),e.lastChild.onclick=d.opentext)}},trimtext(e){const g=parseInt(b.text_size,10);if(!e||!g||e.length<=g)return[e||"",""];e=Array.from(e);let m=e.slice(0,g).join("").lastIndexOf(" ");m=-1===m?g:m;return[e.slice(0,m).join("").trimEnd(),e.slice(m).join("")]},opentext(){let e=this.parentNode,g=this.dataset.hidden||"";rpi.Utils.rm(this.previousElementSibling);rpi.Utils.rm(this);e.appendChild(document.createTextNode(g))},setTime(e){e&&
19(e.textContent=d.time(e.dataset.time,e.dataset.lang))},time(e,g){return b.time_format?rpi.Time.getFormatTime(e,b.time_format,g||f):rpi.Time.getTimeAgo(e,g||f)}}};
20rpi.el=function(a={},...b){const c=document.createElement("string"===typeof a?a:a.tag||"div");"string"!==typeof a&&(a.id&&(c.id=a.id),a.cl&&c.classList.add(...[].concat(a.cl).join(" ").split(/\s+/).filter(Boolean)),null!=a.text&&(c.textContent=a.text),a.data&&Object.assign(c.dataset,Object.fromEntries(Object.entries(a.data).filter(([,d])=>void 0!==d&&null!==d))),a.style&&(c.style.cssText=a.style),a.atts&&Object.keys(a.atts).forEach(d=>{const f=a.atts[d];null!==f&&void 0!==f&&!1!==f&&c.setAttribute(d,
21f)}),a.html&&(c.innerHTML=a.html),b=a.children?[].concat(a.children).concat(b):b);b.flat().forEach(d=>{d&&c.appendChild(d instanceof Node?d:document.createTextNode(String(d)))});return c};rpi=rpi||{};
22rpi.Media=function(a,b={},{root:c="rpi",card:d="rpi-card"}={}){let f,e=null,g=null;return g={init:function(){e=a.getElementsByClassName("rpi-thumb");for(let m=0;m<e.length;m++)e[m].setAttribute("data-idx",m),function(p,l){p.onclick=function(){g.show(p,l);return!1}}(e[m],m)},thumbs:function(m){if(Array.isArray(m)){var p=[];for(const l of m)m=document.createElement("img"),m.className="rpi-thumb rpi-clickable",m.src=l.thumbnailUrl,m.alt=rpi.Utils.__("Photo from customer review",b.trans),m.loading="lazy",
23p.push(m);return p}},clicks:function(m){m=m.getElementsByClassName("rpi-thumb");for(let p=0;p<m.length;p++)(function(l,q){l.onclick=function(){let r=parseInt(l.getAttribute("data-idx"));g.show(e[r],r);return!1}})(m[p],p)},show:function(m,p){if(!(0>p||p>=e.length)&&rpi.Lightbox){var l=m.src.replace(/=s[0-9]{1,3}/g,"=s500");m=(m=rpi.Utils.getParent(m,[d,"rpi-review"]))?m.outerHTML:"";f||(f=document.createElement("div"),f.className="rpi-lightbox-content",f.innerHTML='<div class="rpi-lightbox-media"><div class="rpi-lightbox-btn rpi-lightbox-prev"></div><img src="'+
24l+'" alt=""><div class="rpi-lightbox-btn rpi-lightbox-next"></div></div><div class="'+c+' rpi-lightbox-review">'+m+"</div>",g.clicks(f));var q=f.querySelector(".rpi-lightbox-media img"),r=f.querySelector(".rpi-lightbox-review"),u=f.querySelector(".rpi-lightbox-prev"),k=f.querySelector(".rpi-lightbox-next");q.src=l;r.innerHTML!==m&&(r.innerHTML=m,r.scrollTop=0,g.clicks(r));u.onclick=function(v){g.show(e[p-1],p-1)};k.onclick=function(v){g.show(e[p+1],p+1)};rpi.Lightbox(f).show()}}}};rpi=rpi||{};
25rpi.Lightbox=function(a){let b=document.querySelector(".rpi-lightbox-wrap");const c=function(){let e=b.querySelector(".rpi-lightbox-xxx");b._rpiScrolled=Array.prototype.filter.call(e.querySelectorAll("*"),function(g){return 0<g.scrollTop}).map(function(g){return[g,g.scrollTop,g.firstElementChild]});b.style.display="none"};b||(b=document.createElement("div"),b.className="rpi-lightbox-wrap",b.innerHTML='<div class="rpi-lightbox"><div class="rpi-lightbox-inner"><div class="rpi-lightbox-xxx"></div></div></div><div class="rpi-x"></div>',
26b.querySelector(".rpi-x").onclick=c,b.querySelector(".rpi-lightbox").onclick=function(e){if(e.target.isConnected){var g=b.querySelector(".rpi-lightbox-xxx").firstElementChild;g&&g.contains(e.target)||c()}},b.style.display="none",document.body.appendChild(b));let d=b.querySelector(".rpi-lightbox"),f=b.querySelector(".rpi-lightbox-xxx");if(f.firstElementChild!==a||1!==f.children.length)f.innerHTML="",f.appendChild(a);return _this={show:function(e){b.style.display="flex";
26(b._rpiScrolled||[]).forEach(function(g){g[0].isConnected&&
27g[0].firstElementChild===g[2]&&(g[0].scrollTop=g[1])});b._rpiScrolled=null;d.style.backdropFilter=e?"blur(2px)":""},hide:c}};rpi=rpi||{};
28rpi.Slider=function(a,b,c,d){a.getAttribute("data-id");const f=a.getElementsByClassName(c.cnt)[0],e=a.getElementsByClassName(c.content)[0],g=e?e.getElementsByClassName(c.cards)[0]:null,m=e?e.getElementsByClassName(c.dotsWrap)[0]:null,p=e?e.getElementsByClassName(c.dots)[0]:null,l=g?parseInt(g.getAttribute("data-count")):0,{autoplay:q=!0,speed:r=5,mousestop:u=!0}=b;var k=null,v=e?e.getElementsByClassName(c.card):null,z="",x="",A=null,D=null,B=null,y=null,E=null,F=!1,C=!1,G=0,H=0;return k={init:function(h,
29n){rpi.Instances=rpi.Instances||[];-1===rpi.Instances.indexOf(k)&&rpi.Instances.push(k);rpi.Utils.isVisible(f)?(h&&h(),k.resize(),k.actions(),v.length&&k.swipeAutoStart(),n&&n()):A=setTimeout(k.init,300)},resize:function(h){let n=d.column.resize(),t=d.column.getCol();h&&g.scrollLeft!=h*k.reviewWidth()&&g.scrollTo(v[h].offsetLeft,0);!v.length||z==n&&x==t||(k.hasDots()&&(k.dotsInit(),k.dotSwipe(h,!0)),z=n,x=t)},actions:function(){u&&k.addMouseEvents();window.addEventListener("resize",k.resizeListener);
30g&&(g.addEventListener("scroll",k.scrollListener,!1),b.wheelscroll&&e.addEventListener("wheel",k.wheelListener,!1));var h=f.getElementsByClassName(c.btnPrev)[0];h&&(h.onclick=function(n){n.preventDefault();n.stopPropagation();k.btnClick(-1)});if(h=f.getElementsByClassName(c.btnNext)[0])h.onclick=function(n){n.preventDefault();n.stopPropagation();k.btnClick(1)}},resizeListener:function(){var h=H;clearTimeout(D);D=setTimeout(k.resize,150,h)},scrollListener:function(){clearTimeout(B);clearTimeout(y);
31y=setTimeout(k.scrollEnd,150)},wheelListener:function(h){var n=h.target;if((n=-1<n.className.indexOf(c.text)?n:-1<n.parentNode.className.indexOf(c.text)?n.parentNode:null)&&n.scrollHeight>n.clientHeight)return!0;h.preventDefault();G++;clearTimeout(E);E=setTimeout(k.wheelEnd,150,h)},addMouseEvents:function(){f.addEventListener("mouseover",k.mouseOver,!1);f.addEventListener("mouseleave",k.mouseLeave,!1)},delMouseEvents:function(){f.removeEventListener("mouseover",k.mouseOver);f.removeEventListener("mouseleave",
32k.mouseLeave)},mouseOver:function(){F=1;k.swipeAutoStop()},mouseLeave:function(){F=0;k.swipeAutoStart()},btnClick:function(h){k.swipeManual(h*k.swipePerBtn())},wheelEnd:function(h){k.swipeManual(Math.sign(h.wheelDelta)*G*k.swipeStep());G=0},scrollEnd:function(){H=k.reviewsIdx();C?C=!1:k.loadNextReviews();(!u||F)&&u||(!b.clickstop||C)&&b.clickstop||k.swipeAutoStart();k.hasDots()&&k.dotSwipe(void 0,!0)},loadNextReviews:function(h){h=h?k.reviewsIdx()+parseInt(h):k.hasDots()?(h=p.getElementsByClassName("active")[0])?
33parseInt(h.getAttribute("data-index"))*k.swipePerDot():k.reviewsIdx():k.reviewsIdx();h=k.getAjaxSize(h);0<h&&d.view.loadNextReviews(h)},getAjaxSize:function(h){let n=0;const t=parseInt(g.getAttribute("data-offset")),w=parseInt(b.pagination);if(l>t){let I=h-t;Math.abs(I)<3*k.swipePerDot()?n=w:I&&(n=Math.ceil(h/w)*w-t)}h=t+n-l;return 0<h?n-h:n},dotsInit:function(){if(p){var h=Math.ceil(l/k.swipePerDot());p.innerHTML="";for(let n=0;n<h;n++){let t=document.createElement("button");t.className=c.dot;t.setAttribute("data-index",
34n);t.setAttribute("title",n);t.setAttribute("aria-label","Go to page "+n);t.onclick=k.dotClick;p.appendChild(t)}k.dotsPadding()}},dotClick:function(h){h.preventDefault();h.stopPropagation();h=parseInt(this.getAttribute("data-index"));var n=p.getElementsByClassName("active")[0];n=parseInt(n.getAttribute("data-index"));k.swipeManual(Math.abs(h-n)*k.swipePerDot()*Math.sign(h-n))},dotsPadding:function(){let h=m.getBoundingClientRect().height;f.style.paddingBottom=h+"px"},dotSwipe:function(h,n){h=Math.round((void 0!==
35h?h:k.reviewsIdx())/k.swipePerDot());h=0>h?0:h>=p.childNodes.length?p.childNodes.length-1:h;h=p.querySelector("."+c.dot+'[data-index="'+h+'"]');let t=p.getElementsByClassName("active")[0];k.dotActivate(t,h);k.dotScroll(h,n)},dotScroll:function(h,n){let t=Math.round(p.scrollWidth/p.childNodes.length),w=Math.floor(Math.round(p.offsetWidth/t)/2);n?p.scrollTo(h.offsetLeft-w*t,0):p.scrollTo({left:h.offsetLeft-w*t,behavior:"smooth"})},dotActivate:function(h,n){h&&(h.classList.remove("active"),h.classList.remove("s1"),
36h.previousSibling&&(h.previousSibling.classList.remove("s2"),h.previousSibling.previousSibling&&h.previousSibling.previousSibling.classList.remove("s3")),h.nextSibling&&(h.nextSibling.classList.remove("s2"),h.nextSibling.nextSibling&&h.nextSibling.nextSibling.classList.remove("s3")));n&&(n.classList.add("active"),n.classList.add("s1"),n.previousSibling&&(n.previousSibling.classList.add("s2"),n.previousSibling.previousSibling&&n.previousSibling.previousSibling.classList.add("s3")),n.nextSibling&&(n.nextSibling.classList.add("s2"),
37n.nextSibling.nextSibling&&n.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(h){C=!0;k.loadNextReviews(h);k.scroll(h);b.clickstop&&(k.swipeAutoStop(),k.delMouseEvents())},swipeAuto:function(){if(rpi.Utils.isInViewport(f))if(k.isScrollEnd())k.scroll(-(l-k.reviewsPerView()));else{let h=k.swipeStep()<k.reviewsAhead()?k.swipeStep():k.reviewsAhead();k.scroll(h)}k.swipeAutoStart()},scroll:function(h){h=k.reviewsIdx()+parseInt(h);let n=rpi.Utils.isRTL()?h+k.reviewsPerView()-1:h;n=0>n?
380:n>=v.length?v.length-1:n;-1<n&&n<v.length&&(g.scrollTo({left:v[n].offsetLeft,behavior:"smooth"}),k.hasDots()&&k.dotSwipe(h))},swipeAutoStart:function(){q&&(B=setTimeout(k.swipeAuto,1E3*parseInt(r)))},swipeAutoStop:function(){clearTimeout(B);y&&setTimeout(function(){clearTimeout(y)},100)},isScrollEnd:function(){var h=g.querySelector("."+c.card+":last-child"),n=h.getBoundingClientRect();h=h.parentNode.getBoundingClientRect();return(2>Math.abs(h.left-n.left)||h.left<=n.left)&&n.left<h.right&&(2>Math.abs(h.right-
39n.right)||h.right>=n.right)&&n.right>h.left},swipeStep:function(){return b.swipe_step||k.reviewsPerView()},swipePerBtn:function(){return b.swipe_per_btn||k.reviewsPerView()},swipePerDot:function(){return b.swipe_per_dot||k.reviewsPerView()},reviewWidth:function(){return Math.round(g.scrollWidth/v.length)},reviewHeight:function(){return v[0].offsetHeight},reviewsPerView:function(){return Math.round(g.offsetWidth/k.reviewWidth())},reviewsIdx:function(){let h=rpi.Utils.isRTL()?-g.scrollLeft:g.scrollLeft;
40return Math.round(h/k.reviewWidth())},reviewsAhead:function(){return v.length-(k.reviewsIdx()+k.reviewsPerView())},hasDots:function(){return p&&!b.hide_dots&&0<k.swipePerDot()},setBreakpoints:function(h){d.column.setBreakpoints(h);k.resize()},clear:function(){clearTimeout(A);clearTimeout(D);clearTimeout(B);clearTimeout(y);clearTimeout(E);window.removeEventListener("resize",k.resizeListener);g.removeEventListener("scroll",k.scrollListener);e.removeEventListener("wheel",k.wheelListener)}}};
41rpi=rpi||{};rpi.Badge=function(a,b){if(b.data)a.appendChild(rpi.Badge.render(b));else{const c=a.getElementsByClassName("rpi-badge-cnt")[0];c&&c.dataset.opts&&(b={...b,...JSON.parse(c.dataset.opts)})}a=rpi.Badge.main(a,b);a.init();return a};
42Object.assign(rpi.Badge,{render(a){return"live"===a.badge_style?rpi.Badge.Live.render(a):rpi.el({cl:["rpi-badge-cnt","rpi-badge-"+(a.badge_pos||"right"),a.badge_display_block?"rpi-badge-block":"",a.hide_float_badge?"rpi-badge-hide":""],children:a.data.bizs.map(b=>this.badge(b,a))})},badge(a,b){const c=rpi.Temp.optTemp(b.badge_temp);return rpi.el({cl:"rpi-badge",style:"display:none",data:"summary"!==a.provider?{id:a.id,provider:a.provider}:null,children:[!c&&!b.badge_line_hide&&rpi.el({cl:"rpi-badge-line"}),
43b.badge_close&&rpi.el({cl:"rpi-x"}),this.body(a,b,c)]})},body(a,b,c){return rpi.el({cl:["rpi-badge-body","rpi-flex","disable"!==b.badge_click&&"rpi-badge-clickable"],html:c&&rpi.Temp.ratings(c,a,rpi.View(document.createElement("div"),b),b),children:c?null:[!b.badge_logo_hide&&this.img(a,b),this.info(a,b)]})},img(a,b){if("summary"===a.provider||b.badge_use_photo){const c=()=>{const d=rpi.View.charAvatar(a.name);d.classList.add("rpi-logo");d.setAttribute("aria-hidden","true");return d};if(!a.photo)return c();
44b=rpi.el({tag:"img",cl:"rpi-logo",atts:{src:a.photo,alt:a.name||"",width:"44",height:"44",loading:b.lazy_load_img?"lazy":"eager"}});b.addEventListener("error",function(){this.replaceWith(c())});return b}return rpi.el({cl:"rpi-logo rpi-logo-"+a.provider})},info(a,b){return rpi.el({cl:"rpi-info",children:[!b.badge_name_hide&&rpi.el({cl:"rpi-name",text:this.title(a,b)}),!b.badge_stars_hide&&rpi.View.stars(a.rating,a.provider,!0,b),!b.badge_based_hide&&!b.header_hide_count&&rpi.el({cl:"rpi-based",text:rpi.Utils.__("Based on %s reviews",
45b.trans).replace("%s",a.total)})]})},title(a,b){return"summary"===a.provider?b.summary_name||"Social Rating":b.badge_use_name?a.name||"":rpi.Utils.capit(a.provider)+" Rating"},main:function(a,b){const c=a.dataset.id;
45return{init(){[...a.getElementsByClassName("rpi-badge")].forEach(d=>this.initBadge(d))},initBadge(d){const f=`rpi_badge_${[c,d.dataset.provider,d.dataset.id].join("_")}`;var e=sessionStorage.getItem(f);d.style.display=e?"none":"live"===b.badge_style?"":"inline-block";if(!e){if(e=d.querySelector(".rpi-x"))e.onclick=
46()=>{sessionStorage.setItem(f,1);d.style.display="none";d.rpiLiveStop&&d.rpiLiveStop()};var g=d.querySelector(".rpi-badge-body");e=b.badge_click??"sidebar";if("onclick"in b)"function"===typeof b.onclick&&g&&"disable"!==e&&(g.onclick=()=>b.onclick(d));else if("sidebar"===e)g&&(g.onclick=()=>{var {dataset:m}=g.parentNode;m=rpi.View.ajaxsb(document.body,{query:{act:"reviews",id:c,bid:m.id,provider:m.provider},options:b});setTimeout(m.toggle,5);g.onclick=m.toggle});else if(b.data){const m=!1!==b.open_link?
47"_blank":"_self",p=()=>{const {id:l,provider:q}=d.dataset,r=b.data.bizs;return l||q?r.find(u=>(!l||String(u.id)===l)&&(!q||u.provider===q))||{}:r.find(u=>"summary"===u.provider)||r[0]||{}};if(g)switch(e){case "reviews":g.onclick=()=>{var l=rpi.View.allReviewsUrl(p());l&&window.open(l,m)};break;case "writereview":g.onclick=()=>{const l=rpi.View.writeReviewUrl(p());l&&rpi.Utils.popup(l,800,600)};break;case "link":g.onclick=()=>{var l=b.badge_link;l&&window.open(l,m)}}}"live"===b.badge_style&&rpi.Badge.Live.init(d,
48b)}}}}});
49rpi.Badge.Live={TOP_RATED_MIN_RATING:4.5,TOP_RATED_MIN_TOTAL:10,NAME_MAX:7,render(a){return rpi.el({cl:["rpi-badge-cnt","rpi-badge-live","rpi-badge-"+this.edge(a),this.isBar(a)?"rpi-badge-cnt-bar":"",a.hide_float_badge?"rpi-badge-hide":""],children:[this.badge(this.biz(a),a)]})},biz(a){a=a.data&&a.data.bizs||[];return a.find(b=>"summary"===b.provider)||a[0]||{}},live(a){return a.live||a.data&&a.data.live||{phrases:[],recent:[]}},pos(a){return a.badge_pos||"right"},isBar(a){return!!a.badge_bar},edge(a){const b=
50this.pos(a);return this.isBar(a)&&"embed"!==b?/^top/.test(b)?"top":"bottom":b},compact(a){return!!a.badge_compact||this.isBar(a)},badge(a,b){const c=[];b.badge_size&&c.push("--badge-fs:"+parseFloat(b.badge_size)+"px");b.badge_width&&"auto"!==b.badge_width&&c.push("--badge-width:"+parseInt(b.badge_width,10)+"px");c.push("display:none");return rpi.el({cl:["rpi-badge","rpi-badge-"+(b.badge_tone||"light"),this.compact(b)?"rpi-badge-compact":"",b.badge_onestar?"rpi-badge-onestar":"","stars"===b.badge_order?
51"rpi-badge-starsfirst":"","auto"===b.badge_width?"rpi-badge-fit":"",this.isBar(b)?"rpi-badge-bar":""],style:c.join(";"),data:"summary"!==a.provider?{id:a.id,provider:a.provider}:null,children:[b.badge_close&&rpi.el({cl:"rpi-x"}),this.body(a,b)]})},body(a,b){const c=this.compact(b);return rpi.el({cl:["rpi-badge-body","disable"!==b.badge_click?"rpi-badge-clickable":""],children:[!c&&!b.badge_logo_hide&&this.logo(a),rpi.el({cl:"rpi-badge-main",children:[this.head(a,b),rpi.el({cl:"rpi-badge-feed",children:[rpi.el({tag:"span",
52html:this.first(b)})]})]})]})},logo(a,b){return rpi.el({tag:"span",cl:"rpi-logo rpi-logo-"+("summary"===a.provider?"google":a.provider),atts:{"aria-hidden":"true"},children:b})},stars(a){a=Number(a)||0;return rpi.el({tag:"span",cl:"rpi-stars",style:"--rating:"+a,text:a.toFixed(1)})},head(a,b){const c=this.compact(b),d=this.stars(a.rating),f=rpi.Utils.count(a.total||0);return rpi.el({cl:"rpi-badge-head",children:[c&&!b.badge_logo_hide?this.logo(a,[d]):d,!b.badge_based_hide&&rpi.el({tag:"span",cl:"rpi-badge-count",
53text:b.badge_dot?"\u00b7 "+f:"("+f+")"}),this.topRated(a,b)&&rpi.el({tag:"span",cl:"rpi-badge-label"+(b.badge_icon?" rpi-badge-ico-"+b.badge_icon:""),html:"\u00b7 <i>"+this.esc(rpi.Utils.__("Top rated",b.trans))+"</i>"})]})},topRated(a,b){return b.badge_toprated?b.preview_toprated?!0:Number(a.rating)>=this.TOP_RATED_MIN_RATING&&Number(a.total)>=this.TOP_RATED_MIN_TOTAL:!1},esc(a){return String(null==a?"":a).replace(/[&<>"']/g,b=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[b])},
54shortName(a){a=String(a||"").trim().split(/\s+/).filter(Boolean);if(!a.length)return"";const b=1<a.length?a[0]+" "+a[1][0]+".":a[0];return b.length<=this.NAME_MAX?b:a[0].length<=this.NAME_MAX?a[0]:a[0].slice(0,this.NAME_MAX)},first(a){var b=this.live(a);return(b=b.phrases&&b.phrases[0])?this.phrase(b.t,b.a,a):this.facts(this.biz(a),a)[0]||""},phrase(a,b,c){b=c.badge_author_hide?"":this.shortName(b);return"<q>"+this.esc(a)+"\u2026</q>"+(b?" <b>"+this.esc(b)+"</b>":"")},facts(a,b){var c=this.live(b).recent||
55[];const d=[],f=g=>"<b>"+this.esc(g)+"</b>";c[0]&&c[0].t&&d.push(this.esc(rpi.Utils.__("Latest review %s",b.trans)).replace("%s",f(rpi.Time.getTimeAgo(c[0].t,b.lang||rpi.Utils.lang()))));const e=c.filter(g=>5===Number(g.r)).length;3<=c.length&&e>=c.length/2&&d.push(this.esc(rpi.Utils.__("%1 of the last %2 reviews are 5 stars",b.trans)).replace("%1",f(e)).replace("%2",f(c.length)));a.total&&(c="summary"===a.provider?"":rpi.Utils.capit(a.provider),d.push(this.esc(rpi.Utils.__(c?"%1 reviews on %2":"%1 reviews",
56b.trans)).replace("%1",f(rpi.Utils.count(a.total))).replace("%2",c)));return d},rated(a){return(this.live(a).recent||[]).filter(b=>4<=Number(b.r)).map(b=>this.esc(rpi.Utils.__("%1 left %2 review",a.trans)).replace("%1","<b>"+this.esc(this.shortName(b.a))+"</b>").replace("%2",'<span class="rpi-stars" style="--rating:'+Number(b.r)+'">'+Number(b.r)+"</span>"))},strip(a){return a.replace(/<[^>]+>/g,"")},phrases(a,b){const c=[];for(const f of this.live(a).phrases||[]){var d=a.badge_author_hide?"":this.shortName(f.a);
57d=d?" "+d:"";const e=p=>this.phrase(p,f.a,a);if(b(f.t+"\u2026"+d)){c.push(e(f.t));continue}const g=String(f.t).split(" "),m=Math.max(5,Math.ceil(g.length/2));for(;g.length>m;){g.pop();const p=g.join(" ").replace(/[,;:]+$/,"");if(b(p+"\u2026"+d)){c.push(e(p));break}}}return c},items(a,b,c){const d=this.phrases(b,c);var f=this.rated(b).filter(e=>c(this.strip(e)+" \u2605"));b=this.facts(a,b).filter(e=>c(this.strip(e)));a=[];for(let e=0;e<Math.max(f.length,b.length);e++)b[e]&&a.push(b[e]),f[e]&&a.push(f[e]);
58f=[];for(let e=0,g=0;e<d.length||g<a.length;)e<d.length&&f.push(d[e++]),e<d.length&&f.push(d[e++]),g<a.length&&f.push(a[g++]);return f}
58,init(a,b){const c=a.querySelector(".rpi-badge-feed");if(c){var d=c.firstElementChild,f=this.biz(b),e=document.createElement("canvas").getContext("2d");e.font=getComputedStyle(c).font;var g=c.clientWidth;if(this.isBar(b)&&0<a.clientWidth){var m=getComputedStyle(a),p=a.querySelector(".rpi-badge-body > .rpi-logo"),l=a.querySelector(".rpi-badge-head");m=a.clientWidth-
59parseFloat(m.paddingLeft)-parseFloat(m.paddingRight)-(p?p.offsetWidth+16:0)-8;p=b.badge_width&&"auto"!==b.badge_width?parseInt(b.badge_width,10):320;l=m-(l?l.offsetWidth:0)-20;g=p<=l?p:140<=l?l:Math.max(120,Math.min(m,p));c.style.flex="0 0 "+g+"px"}var q=this.items(f,b,A=>e.measureText(A).width<=g-2);if(q.length){var r=q.indexOf(d.innerHTML);0>r&&(r=0,d.innerHTML=q[0]);if(!(2>q.length||window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)){var u=1E3*Math.max(2,parseInt(b.badge_interval,
6010)||6),k=null,v=!1,z=()=>{d.classList.add("rpi-badge-out");setTimeout(()=>{r=(r+1)%q.length;d.innerHTML=q[r];d.style.transition="none";d.classList.remove("rpi-badge-out");requestAnimationFrame(()=>{d.style.transition=""})},400)},x=()=>{k=setTimeout(()=>{a.isConnected&&(v||document.hidden||"none"===a.style.display||z(),x())},u)};a.addEventListener("mouseenter",()=>{v=!0});a.addEventListener("mouseleave",()=>{v=!1});x();a.rpiLiveStop=()=>clearTimeout(k)}}}}};
61function rplg_badge_init(a,b,c){var d=a.querySelector(".wp-"+b+"-badge"),f=a.querySelector(".wp-"+b+"-form");d&&f&&(a=document.createElement("div"),a.className=c+" wpac",-1<d.className.indexOf("-fixed")&&a.appendChild(d),a.appendChild(f),document.body.appendChild(a),d.onclick=function(){f.style.display="block"})}
62function rplg_next_reviews(a,b){var c=this.parentNode,d="."+a+"-review."+a+"-hide";reviews=c.querySelectorAll(d);for(var f=0;f<b&&f<reviews.length;f++)reviews[f]&&(reviews[f].className=reviews[f].className.replace(a+"-hide"," "));reviews=c.querySelectorAll(d);1>reviews.length&&c.removeChild(this);return!1}function rplg_leave_review_window(){rpi.Utils.popup(this.getAttribute("href"),620,500);return!1}
63function grw_popup_open(a,b){b.classList.add("grw-popup-on");rpi.Lightbox(b).show(!0);const c=b.closest(".rpi-lightbox-wrap");c.grwWheel||(c.grwWheel=!0,c.addEventListener("wheel",function(d){d.target.closest(".grw-popup")||d.preventDefault()},{passive:!1}));grw_popup_focus(a,b);return!1}
64function grw_popup_focus(a,b){var c=a.querySelector(".rpi-badge-feed");a=c&&c.querySelector("q");c=c&&c.querySelector(".rpi-stars")?c.querySelector("b"):null;const d=a?a.textContent.replace(/\s+/g," ").trim().replace(/\u2026$/,""):"",f=c?c.textContent.replace(/\s+/g," ").trim().split(" ")[0]:"";a=b.querySelectorAll(".grw-review, .wp-google-review");const e=Array.prototype.find.call(a,g=>d?-1<g.textContent.replace(/\s+/g," ").trim().indexOf(d):f&&0===(g.querySelector(".wp-google-name")||g).textContent.replace(/\s+/g,
65" ").trim().indexOf(f));b.querySelectorAll("mark.grw-review-mark").forEach(function(g){g.outerHTML=g.innerHTML});if(e){d&&grw_popup_mark(e.querySelector(".wp-google-text")||e,d);const g=function(){b.scrollTo({top:b.scrollTop+e.getBoundingClientRect().top-b.getBoundingClientRect().top-16,behavior:"smooth"})};setTimeout(function(){g();b.querySelectorAll("img").forEach(function(m){m.complete||m.addEventListener("load",g,{once:!0})});e.classList.add("grw-review-hl");setTimeout(function(){e.classList.remove("grw-review-hl")},
662500)},500)}}function grw_popup_mark(a,b){b=new RegExp(b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/ /g,"\\s+"));const c=document.createTreeWalker(a,NodeFilter.SHOW_TEXT);for(;a=c.nextNode();){const d=b.exec(a.data);if(d){b=document.createRange();b.setStart(a,d.index);b.setEnd(a,d.index+d[0].length);a=document.createElement("mark");a.className="grw-review-mark";b.surroundContents(a);break}}}
67function grw_badge_popup(a,b){let c=null;const d=f=>(f=f.closest(".rpi-lightbox-wrap"))&&"none"!==f.style.display;return function(){if(!c){const f=c=document.createElement("div");f.className=a.className+" grw-popup";f.innerHTML='<div class="grw-popup-skel">'+"<div><i></i><div><b></b><b></b><b></b></div></div>".repeat(5)+"</div>";fetch(b,{credentials:"same-origin"}).then(e=>e.ok?e.text():Promise.reject()).then(e=>{const g=document.createElement("template");g.innerHTML=e;e=g.content.querySelector(".grw-popup");
68if(!e)return Promise.reject();f.innerHTML=e.innerHTML;d(f)&&grw_popup_focus(a,f)}).catch(()=>{d(f)&&rpi.Lightbox(f).hide();c=null})}return grw_popup_open(a,c)}}
69function grw_init(a,b){const c=rpi.Utils.getParent(a,"wp-gr");if("true"!=c.getAttribute("data-exec"))if(c.setAttribute("data-exec","true"),a=JSON.parse(c.getAttribute("data-options")),rpi.Common(c,a,{time:"wp-google-time",text:"wp-google-text",readmore:"wp-more-toggle"}).init(),rpi.Media(c,{},{root:"wp-gr",card:"grw-review"}).init(),"badge"==b&&rpi.Badge)b=c.dataset.reviews,rpi.Badge(c,{onclick:b&&rpi.Lightbox&&c.querySelector(".rpi-badge-clickable")?grw_badge_popup(c,b):null});else{var d=c.querySelector(".grw-popup");
70if(d&&rpi.Lightbox){a=c.getElementsByClassName("grw-header-inner");for(let f=0;f<a.length;f++)a[f].setAttribute("role","button"),a[f].setAttribute("tabindex","0"),a[f].onclick=function(e){e.target.closest("a")||grw_popup_open(c,d)},a[f].onkeydown=function(e){if("Enter"===e.key||" "===e.key)e.preventDefault(),grw_popup_open(c,d)}}!c.getElementsByClassName("grw-review")[0]||"slider"!=b&&"grid"!=b||(b=c.getElementsByClassName("grw-row")[0],b=JSON.parse(b.getAttribute("data-options")),a=rpi.Column(c,
71b,{cnt:"grw-row",col:"grw-row",card:"grw-review"}),rpi.Slider(c,b,{cnt:"grw-row",col:"grw-row",content:"grw-content",cards:"grw-reviews",card:"grw-review",text:"wp-google-text",btnPrev:"grw-prev",btnNext:"grw-next",dotsWrap:"rpi-dots-wrap",dots:"rpi-dots",dot:"rpi-dot"},{column:a}).init())}}function grw_boot(){const a=document.querySelectorAll('.wp-gr[data-exec="false"]');for(let c=0;c<a.length;c++){var b=a[c];grw_init(b,b.getAttribute("data-layout"))}}
72document.addEventListener("DOMContentLoaded",grw_boot);

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.