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(m){return 10>m?"0"+m:""+m};var f=a.getHours(),e=((new Intl.DateTimeFormat(d,{day:"numeric",month:"short"})).formatToParts(a).find(function(m){return"month"===m.type})||{}).value;d=(new Intl.DateTimeFormat(d,{day:"numeric",month:"long"})).formatToParts(a).find(function(m){return"month"===m.type}).value;var g=a.getFullYear(),l=String(g).slice(-2),n={yyyy:g,Y:g,yy:l,y:l,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,m=>null!=n[m]?n[m]:m)},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 l=null,n=null;return l={init:function(m,q){rpi.Instances=rpi.Instances||[];-1===rpi.Instances.indexOf(l)&&rpi.Instances.push(l);rpi.Utils.isVisible(g)?(m&&m(),l.resize(),window.addEventListener("resize",l.resize),q&&q()):n=setTimeout(l.init,300)},resize:function(){let m= 14l.getSize();g.className=g.className.replace(f,c.col+"-"+m);if(b.breakpoints){let q=g.offsetWidth,r=b.breakpoints.split(",");r.sort(l.brsort);for(let u=0;u<r.length;u++){let k=r[u].split(":");if(q<parseInt(k[0])){l.setCol(k[1]);break}}}return m},getSize:function(){let m=g.offsetWidth;return 510>m?"xs":750>m?"x":1050>m?"s":1450>m?"m":1800>m?"l":"xl"},setCol:function(m){const q=this.getStyle();m=(d?'[data-id="'+d+'"] ':"")+"."+c.card+"{--col:"+m+"!important;--gap:"+(m-1)+"!important}";e.test(q.innerHTML)? 15q.innerHTML=q.innerHTML.replace(e,m):q.innerHTML+=m},getCol:function(){let m=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return m&&1<m.length?m[1]:!1},getStyle:function(){let m=document.getElementById("rpi-style");m||(m=document.createElement("style"),m.id="rpi-style",document.head.appendChild(m));return m},setBreakpoints:function(m){b.breakpoints=m},brsort:function(m,q){return parseInt(m.split(":")[0])>parseInt(q.split(":")[0])?1:-1},clear:function(){clearTimeout(n);window.removeEventListener("resize", 16l.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 l of e)d.setTime(l);for(const l of g)d.setText(l)},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:"... "})),g=rpi.el({tag:"span", 18cl:c.readmore,text:rpi.Utils.__("read more",b.trans),data:{hidden:g[1]}}),e.appendChild(g),g.onclick=d.opentext,rpi.btn(g))}},trimtext(e){const g=parseInt(b.text_size,10);if(!e||!g||e.length<=g)return[e||"",""];e=Array.from(e);let l=e.slice(0,g).join("").lastIndexOf(" ");l=-1===l?g:l;return[e.slice(0,l).join("").trimEnd(),e.slice(l).join("")]},opentext(){let e=this.parentNode,g=this.previousElementSibling,l=this.dataset.hidden||"",n=rpi.keyFocus()===this;rpi.Utils.rm(g);rpi.Utils.rm(this);e.appendChild(document.createTextNode(l)); 19n&&rpi.focusOnce(e)},setTime(e){e&&(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};
21rpi.btn=function(a,b){a.classList.contains("rpi-btn")||(a.classList.add("rpi-btn"),a.setAttribute("role","button"),a.tabIndex=0,b&&a.setAttribute("aria-label",b),a.addEventListener("keydown",c=>{if("Enter"===c.key||" "===c.key)c.preventDefault(),a.click()}))}; 22rpi.keyFocus=function(){const a=document.activeElement;try{return a&&a!==document.body&&a.matches(":focus-visible")?a:null}catch(b){return null}};rpi.focusOnce=function(a){a.hasAttribute("tabindex")||(a.tabIndex=-1,a.addEventListener("blur",()=>a.removeAttribute("tabindex"),{once:!0}));a.focus({preventScroll:!0})}; 23rpi.dialogKeys=function(a,b){const c=rpi.keyFocus(),d=f=>{if("Escape"===f.key)return b();if("Tab"===f.key&&a.contains(document.activeElement)){var e=[...a.querySelectorAll('a[href],button,[tabindex]:not([tabindex="-1"])')].filter(g=>g.getClientRects().length);e.length&&document.activeElement===(f.shiftKey?e[0]:e[e.length-1])&&(f.preventDefault(),(f.shiftKey?e[e.length-1]:e[0]).focus())}};document.addEventListener("keydown",d);return()=>{document.removeEventListener("keydown",d);c&&c.isConnected&& 24c.focus({preventScroll:!0})}};rpi=rpi||{}; 25rpi.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 l=0;l<e.length;l++)e[l].setAttribute("data-idx",l),function(n,m){n.onclick=function(){g.show(n,m);return!1}}(e[l],l)},thumbs:function(l){if(Array.isArray(l)){var n=[];for(const m of l)l=document.createElement("img"),l.className="rpi-thumb rpi-clickable",l.src=m.thumbnailUrl,l.alt=rpi.Utils.__("Photo from customer review",b.trans),l.loading="lazy", 26n.push(l);return n}},clicks:function(l){l=l.getElementsByClassName("rpi-thumb");for(let n=0;n<l.length;n++)(function(m,q){m.onclick=function(){let r=parseInt(m.getAttribute("data-idx"));g.show(e[r],r);return!1}})(l[n],n)},show:function(l,n){if(!(0>n||n>=e.length)&&rpi.Lightbox){var m=l.src.replace(/=s[0-9]{1,3}/g,"=s500");l=(l=rpi.Utils.getParent(l,[d,"rpi-review"]))?l.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="'+ 27m+'" alt=""><div class="rpi-lightbox-btn rpi-lightbox-next"></div></div><div class="'+c+' rpi-lightbox-review">'+l+"</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=m;r.innerHTML!==l&&(r.innerHTML=l,r.scrollTop=0,g.clicks(r));u.onclick=function(v){g.show(e[n-1],n-1)};k.onclick=function(v){g.show(e[n+1],n+1)};rpi.Lightbox(f).show()}}}};rpi=rpi||{}; 28rpi.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._rpiKeys&&(b._rpiKeys(),b._rpiKeys=null)};if(!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>'; 29var d=b.querySelector(".rpi-x");d.onclick=c;rpi.btn&&(rpi.btn(d,"Close"),b.setAttribute("role","dialog"),b.setAttribute("aria-modal","true"),b.setAttribute("aria-label","Reviews"));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 f=b.querySelector(".rpi-lightbox");d=b.querySelector(".rpi-lightbox-xxx");if(d.firstElementChild!== 30a||1!==d.children.length)d.innerHTML="",d.appendChild(a);return _this={show:function(e){b.style.display="flex";(b._rpiScrolled||[]).forEach(function(g){g[0].isConnected&&g[0].firstElementChild===g[2]&&(g[0].scrollTop=g[1])});b._rpiScrolled=null;f.style.backdropFilter=e?"blur(2px)":"";rpi.dialogKeys&&!b._rpiKeys&&(e=rpi.keyFocus(),b._rpiKeys=rpi.dialogKeys(b,c),e&&b.querySelector(".rpi-x").focus({preventScroll:!0}))},hide:c}};rpi=rpi||{}; 31rpi.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,l=e?e.getElementsByClassName(c.dotsWra
31p)[0]:null,n=e?e.getElementsByClassName(c.dots)[0]:null,m=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, 32p){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(),p&&p()):A=setTimeout(()=>k.init(h,p),300)},resize:function(h){let p=d.column.resize(),t=d.column.getCol();h&&g.scrollLeft!=h*k.reviewWidth()&&g.scrollTo(v[h].offsetLeft,0);!v.length||z==p&&x==t||(k.hasDots()&&(k.dotsInit(),k.dotSwipe(h,!0)),z=p,x=t)},actions:function(){u&&k.addMouseEvents();window.addEventListener("resize",k.resizeListener); 33g&&(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(p){p.preventDefault();p.stopPropagation();k.btnClick(-1)});if(h=f.getElementsByClassName(c.btnNext)[0])h.onclick=function(p){p.preventDefault();p.stopPropagation();k.btnClick(1)}},resizeListener:function(){var h=H;clearTimeout(D);D=setTimeout(k.resize,150,h)},scrollListener:function(){clearTimeout(B);clearTimeout(y); 34y=setTimeout(k.scrollEnd,150)},wheelListener:function(h){var p=h.target;if((p=-1<p.className.indexOf(c.text)?p:-1<p.parentNode.className.indexOf(c.text)?p.parentNode:null)&&p.scrollHeight>p.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", 35k.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=n.getElementsByClassName("active")[0])? 36parseInt(h.getAttribute("data-index"))*k.swipePerDot():k.reviewsIdx():k.reviewsIdx();h=k.getAjaxSize(h);0<h&&d.view.loadNextReviews(h)},getAjaxSize:function(h){let p=0;const t=parseInt(g.getAttribute("data-offset")),w=parseInt(b.pagination);if(m>t){let I=h-t;Math.abs(I)<3*k.swipePerDot()?p=w:I&&(p=Math.ceil(h/w)*w-t)}h=t+p-m;return 0<h?p-h:p},dotsInit:function(){if(n){var h=Math.ceil(m/k.swipePerDot());n.innerHTML="";n.setAttribute("role","toolbar");n.onkeydown=k.dotKey;for(let p=0;p<h;p++){let t= 37document.createElement("button");t.className=c.dot;t.tabIndex=-1;t.setAttribute("data-index",p);t.setAttribute("title",p+1);t.setAttribute("aria-label","Go to page "+(p+1));t.onclick=k.dotClick;n.appendChild(t)}k.dotsPadding()}},dotKey:function(h){"ArrowLeft"!=h.key&&"ArrowRight"!=h.key||h.altKey||h.ctrlKey||h.metaKey||(h.preventDefault(),(h=h.target["ArrowRight"==h.key!=rpi.Utils.isRTL()?"nextSibling":"previousSibling"])&&h.focus())},dotClick:function(h){h.preventDefault();h.stopPropagation();h= 38parseInt(this.getAttribute("data-index"));var p=n.getElementsByClassName("active")[0];p=parseInt(p.getAttribute("data-index"));k.swipeManual(Math.abs(h-p)*k.swipePerDot()*Math.sign(h-p))},dotsPadding:function(){let h=l.getBoundingClientRect().height;f.style.paddingBottom=h+"px"},dotSwipe:function(h,p){h=Math.round((void 0!==h?h:k.reviewsIdx())/k.swipePerDot());h=0>h?0:h>=n.childNodes.length?n.childNodes.length-1:h;h=n.querySelector("."+c.dot+'[data-index="'+h+'"]');let t=n.getElementsByClassName("active")[0]; 39k.dotActivate(t,h);k.dotScroll(h,p)},dotScroll:function(h,p){let t=Math.round(n.scrollWidth/n.childNodes.length),w=Math.floor(Math.round(n.offsetWidth/t)/2);p?n.scrollTo(h.offsetLeft-w*t,0):n.scrollTo({left:h.offsetLeft-w*t,behavior:"smooth"})},dotActivate:function(h,p){h&&(h.tabIndex=-1,h.classList.remove("active"),h.classList.remove("s1"),h.previousSibling&&(h.previousSibling.classList.remove("s2"),h.previousSibling.previousSibling&&h.previousSibling.previousSibling.classList.remove("s3")),h.nextSibling&& 40(h.nextSibling.classList.remove("s2"),h.nextSibling.nextSibling&&h.nextSibling.nextSibling.classList.remove("s3")));p&&(p.tabIndex=0,p.classList.add("active"),p.classList.add("s1"),p.previousSibling&&(p.previousSibling.classList.add("s2"),p.previousSibling.previousSibling&&p.previousSibling.previousSibling.classList.add("s3")),p.nextSibling&&(p.nextSibling.classList.add("s2"),p.nextSibling.nextSibling&&p.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(h){C=!0;k.loadNextReviews(h); 41k.scroll(h);b.clickstop&&(k.swipeAutoStop(),k.delMouseEvents())},swipeAuto:function(){if(rpi.Utils.isInViewport(f))if(k.isScrollEnd())k.scroll(-(m-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 p=rpi.Utils.isRTL()?h+k.reviewsPerView()-1:h;p=0>p?0:p>=v.length?v.length-1:p;-1<p&&p<v.length&&(g.scrollTo({left:v[p].offsetLeft,behavior:"smooth"}),k.hasDots()&&k.dotSwipe(h))}, 42swipeAutoStart: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"),p=h.getBoundingClientRect();h=h.parentNode.getBoundingClientRect();return(2>Math.abs(h.left-p.left)||h.left<=p.left)&&p.left<h.right&&(2>Math.abs(h.right-p.right)||h.right>=p.right)&&p.right>h.left},swipeStep:function(){return b.swipe_step||k.reviewsPerView()},swipePerBtn:function(){return b.swipe_per_btn|| 43k.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;return Math.round(h/k.reviewWidth())},reviewsAhead:function(){return v.length-(k.reviewsIdx()+k.reviewsPerView())},hasDots:function(){return n&&!b.hide_dots&& 440<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)}}};rpi=rpi||{}; 45rpi.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}; 46Object.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"}), 47b.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(); 48b=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", 49b.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;
49return{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= 50()=>{sessionStorage.setItem(f,1);d.style.display="none";d.rpiLiveStop&&d.rpiLiveStop()},rpi.btn(e,"Close");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:l}=g.parentNode;l=rpi.View.ajaxsb(document.body,{query:{act:"reviews",id:c,bid:l.id,provider:l.provider},options:b});setTimeout(l.toggle,5);g.onclick=l.toggle});else if(b.data){const l= 51!1!==b.open_link?"_blank":"_self",n=()=>{const {id:m,provider:q}=d.dataset,r=b.data.bizs;return m||q?r.find(u=>(!m||String(u.id)===m)&&(!q||u.provider===q))||{}:r.find(u=>"summary"===u.provider)||r[0]||{}};if(g)switch(e){case "reviews":g.onclick=()=>{var m=rpi.View.allReviewsUrl(n());m&&window.open(m,l)};break;case "writereview":g.onclick=()=>{const m=rpi.View.writeReviewUrl(n());m&&rpi.Utils.popup(m,800,600)};break;case "link":g.onclick=()=>{var m=b.badge_link;m&&window.open(m,l)}}}g&&g.onclick&& 52rpi.btn(g);"live"===b.badge_style&&rpi.Badge.Live.init(d,b)}}}}}); 53rpi.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= 54this.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? 55"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", 56html: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", 57text: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=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[b])}, 58shortName(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|| 59[];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", 60b.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); 61d=d?" "+d:"";const e=n=>this.phrase(n,f.a,a);if(b(f.t+"\u2026"+d)){c.push(e(f.t));continue}const g=String(f.t).split(" "),l=Math.max(5,Math.ceil(g.length/2));for(;g.length>l;){g.pop();const n=g.join(" ").replace(/[,;:]+$/,"");if(b(n+"\u2026"+d)){c.push(e(n));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]); 62f=[];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}
62,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 l=getComputedStyle(a),n=a.querySelector(".rpi-badge-body > .rpi-logo"),m=a.querySelector(".rpi-badge-head");l=a.clientWidth- 63parseFloat(l.paddingLeft)-parseFloat(l.paddingRight)-(n?n.offsetWidth+16:0)-8;n=b.badge_width&&"auto"!==b.badge_width?parseInt(b.badge_width,10):320;m=l-(m?m.offsetWidth:0)-20;g=n<=m?n:140<=m?m:Math.max(120,Math.min(l,n));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, 6410)||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);a.addEventListener("focusin",a.rpiLiveStop)}}}}}; 65function 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"})} 66function 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} 67function 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}),["wheel","pointerdown","keydown"].forEach(d=>c.addEventListener(d,function(){c.grwFollow=!1},{passive:!0})));grw_popup_focus(a,b);return!1}const grw_clean=a=>a.replace(/\s+/g," ").trim(); 68function grw_badge_phrase(a){var b=a.querySelector(".rpi-badge-feed");a=b&&b.querySelector("q");b=b&&b.querySelector(".rpi-stars")?b.querySelector("b"):null;return{text:a?grw_clean(a.textContent).replace(/\u2026$/,""):"",name:b?grw_clean(b.textContent).split(" ")[0]:""}} 69function grw_popup_focus(a,b,c){const d=grw_clean,f=b.closest(".rpi-lightbox-wrap"),{text:e,name:g}=c||grw_badge_phrase(a);a=b.querySelectorAll(".grw-review, .wp-google-review");const l=Array.prototype.find.call(a,n=>e?-1<d(n.textContent).indexOf(e):g&&0===d((n.querySelector(".wp-google-name")||n).textContent).indexOf(g));b.querySelectorAll("mark.grw-review-mark").forEach(function(n){n.outerHTML=n.innerHTML});if(l){e&&grw_popup_mark(l.querySelector(".wp-google-text")||l,e);const n=function(){b.scrollTo({top:b.scrollTop+ 70l.getBoundingClientRect().top-b.getBoundingClientRect().top-16,behavior:"smooth"})};f.grwFollow=!0;setTimeout(function(){n();b.querySelectorAll("img").forEach(function(m){m.complete||m.addEventListener("load",function(){f.grwFollow&&n()},{once:!0})});l.classList.add("grw-review-hl");setTimeout(function(){l.classList.remove("grw-review-hl")},2500)},500)}} 71function 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}}} 72function grw_badge_popup(a,b,c){let d=null,f;const e=g=>(g=g.closest(".rpi-lightbox-wrap"))&&"none"!==g.style.display;
72return function(){f=grw_badge_phrase(a);if(!d){const g=d=document.createElement("div");g.className=a.className+" grw-popup";g.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(l=>l.ok?l.text():Promise.reject()).then(l=>{const n=document.createElement("template");n.innerHTML=l;l= 73n.content.querySelector(".grw-popup");if(!l)return Promise.reject();g.innerHTML=l.innerHTML;for(const m of g.getElementsByClassName("wp-google-time"))c.setTime(m);e(g)&&grw_popup_focus(a,g,f)}).catch(()=>{e(g)&&rpi.Lightbox(g).hide();d=null})}return grw_popup_open(a,d)}} 74function 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")),a=rpi.Common(c,a,{time:"wp-google-time",text:"wp-google-text",readmore:"wp-more-toggle"}),a.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,a):null});else{var d=c.querySelector(".grw-popup"); 75if(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, 76b,{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"))}} 77"loading"===document.readyState?document.addEventListener("DOMContentLoaded",grw_boot):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.