var rpi=rpi||{};
rpi.Time={getTime:function(a,b,d){return"chat"==d?this.getChatTime(a,b||"en"):d?this.getFormatTime(a,d,b||"en"):this.getDefaultTime(a,b||"en")},getChatTime:function(a,b){var d=((new Date).getTime()-a)/1E3/60/60,g=d/24;return 24>d?this.getFormatTime(a,"HH:mm",b):365>g?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){a=((new Date).getTime()-a)/1E3;var d=a/60,g=d/60,h=g/24,q=h/365;b=rpi.Time.Messages[b]?
b:"en";return 45>a?rpi.Time.Messages[b].second:90>a?rpi.Time.Messages[b].minute:45>d?rpi.Time.Messages[b].minutes(d):90>d?rpi.Time.Messages[b].hour:24>g?rpi.Time.Messages[b].hours(g):48>g?rpi.Time.Messages[b].day:30>h?rpi.Time.Messages[b].days(h):60>h?rpi.Time.Messages[b].month:365>h?rpi.Time.Messages[b].months(h):2>q?rpi.Time.Messages[b].year:rpi.Time.Messages[b].years(q)},getTime12:function(a,b){a=new Date(a);return(a.getHours()%12?a.getHours()%12:12)+":"+a.getMinutes()+(12<=a.getHours()?" PM":
" AM")},getFormatTime:function(a,b,d){var g=new Date(a),h={SS:g.getMilliseconds(),ss:g.getSeconds(),mm:g.getMinutes(),HH:g.getHours(),hh:(g.getHours()%12?g.getHours()%12:12)+(12<=g.getHours()?"PM":"AM"),dd:g.getDate(),MM:g.getMonth()+1,yyyy:g.getFullYear(),yy:String(g.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,d),12:this.getTime12(a,d)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(q,m){q=h[m];return 10>q?"0"+q:q})},declineNum:function(a,b,d,g){return a+" "+
this.declineMsg(a,b,d,g)},declineMsg:function(a,b,d,g,h){var q=a%10;return 1==q&&(1==a||20<a)?b:1<q&&5>q&&(20<a||10>a)?d:a?g:h}};
rpi.Time.Messages={ru:{second:"\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e",minute:"\u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434")},hour:"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434",hours:function(a){return rpi.Time.declineNum(Math.round(a),
"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u0430 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u0437\u0430\u0434")},day:"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u044f \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434")},month:"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434",
months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434")},year:"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434","\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434",
"\u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434")}},en:{second:"just now",minute:"1m ago",minutes:function(a){return Math.round(a)+"m ago"},hour:"1h ago",hours:function(a){return Math.round(a)+"h ago"},day:"a day ago",days:function(a){return Math.round(a)+" days ago"},month:"a month ago",months:function(a){return Math.floor(a/30)+" months ago"},year:"a year ago",years:function(a){return Math.round(a)+" years ago"}},uk:{second:"\u0442\u0456\u043b\u044c\u043a\u0438 \u0449\u043e",minute:"\u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",
minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443","\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443","\u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443")},hour:"\u0433\u043e\u0434\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434\u0438\u043d\u0443 \u0442\u043e\u043c\u0443","\u0433\u043e\u0434\u0438\u043d\u0438 \u0442\u043e\u043c\u0443",
"\u0433\u043e\u0434\u0438\u043d \u0442\u043e\u043c\u0443")},day:"\u0434\u0435\u043d\u044c \u0442\u043e\u043c\u0443",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u0442\u043e\u043c\u0443","\u0434\u043d\u0456 \u0442\u043e\u043c\u0443","\u0434\u043d\u0456\u0432 \u0442\u043e\u043c\u0443")},month:"\u043c\u0456\u0441\u044f\u0446\u044c \u0442\u043e\u043c\u0443",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0456\u0441\u044f\u0446\u044c \u0442\u043e\u043c\u0443",
"\u043c\u0456\u0441\u044f\u0446\u0456 \u0442\u043e\u043c\u0443","\u043c\u0456\u0441\u044f\u0446\u0456\u0432 \u0442\u043e\u043c\u0443")},year:"\u0440\u0456\u043a \u0442\u043e\u043c\u0443",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0440\u0456\u043a \u0442\u043e\u043c\u0443","\u0440\u043e\u043a\u0438 \u0442\u043e\u043c\u0443","\u0440\u043e\u043a\u0456\u0432 \u0442\u043e\u043c\u0443")}},ro:{second:"chiar acum",minute:"\u00een urm\u0103 minut",minutes:function(a){return rpi.Time.declineNum(Math.round(a),
"o minuta in urma","minute in urma","de minute in urma")},hour:"acum o ora",hours:function(a){return rpi.Time.declineNum(Math.round(a),"acum o ora","ore in urma","de ore in urma")},day:"o zi in urma",days:function(a){return rpi.Time.declineNum(Math.round(a),"o zi in urma","zile in urma","de zile in urma")},month:"o luna in urma",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"o luna in urma","luni in urma","de luni in urma")},year:"un an in urma",years:function(a){return rpi.Time.declineNum(Math.round(a),
"un an in urma","ani in urma","de ani in urma")}},lv:{second:"Maz\u0101k par min\u016bti",minute:"Pirms min\u016btes",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"pirms min\u016btes","pirms min\u016bt\u0113m","pirms min\u016bt\u0113m")},hour:"pirms stundas",hours:function(a){return rpi.Time.declineNum(Math.round(a),"pirms stundas","pirms stund\u0101m","pirms stund\u0101m")},day:"pirms dienas",days:function(a){return rpi.Time.declineNum(Math.round(a),"pirms dienas","pirms dien\u0101m",
"pirms dien\u0101m")},month:"pirms m\u0113ne\u0161a",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"pirms m\u0113ne\u0161a","pirms m\u0113ne\u0161iem","pirms m\u0113ne\u0161iem")},year:"pirms gada",years:function(a){return rpi.Time.declineNum(Math.round(a),"pirms gada","pirms gadiem","pirms gadiem")}},lt:{second:"k\u0105 tik",minute:"prie\u0161 minut\u0119",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"minut\u0117 prie\u0161","minut\u0117s prie\u0161","minu\u010di\u0173 prie\u0161")},
hour:"prie\u0161 valand\u0105",hours:function(a){return rpi.Time.declineNum(Math.round(a),"valanda prie\u0161","valandos prie\u0161","valand\u0173 prie\u0161")},day:"prie\u0161 dien\u0105",days:function(a){return rpi.Time.declineNum(Math.round(a),"diena prie\u0161","dienos prie\u0161","dien\u0173 prie\u0161")},month:"prie\u0161 m\u0117nes\u012f",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"m\u0117nes\u012f prie\u0161","m\u0117nesiai prie\u0161","m\u0117nesi\u0173 prie\u0161")},
year:"prie\u0161 metus",years:function(a){return rpi.Time.declineNum(Math.round(a),"metai prie\u0161","metai prie\u0161","met\u0173 prie\u0161")}},kk:{second:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437 \u0443\u0430\u049b\u044b\u0442 \u0431\u04b1\u0440\u044b\u043d",minute:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",
"\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d","\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d")},hour:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d","\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d","\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d")},day:"\u0431\u0456\u0440 \u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d",
days:function(a){return rpi.Time.declineNum(Math.round(a),"\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d","\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d","\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d")},month:"\u0431\u0456\u0440 \u0430\u0439 \u0431\u04b1\u0440\u044b\u043d",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d","\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d","\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d")},year:"\u0431\u0456\u0440 \u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d",
years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d","\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d","\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d")}},ka:{second:"\u10ec\u10d0\u10db\u10d8\u10e1 \u10ec\u10d8\u10dc",minute:"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",
"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc")},hour:"\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc")},day:"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc",
"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc")},month:"\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc")},year:"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",
"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc")}},hy:{second:"\u0574\u056b \u0584\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576 \u0561\u057c\u0561\u057b",minute:"\u0574\u0565\u056f \u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b","\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b","\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b")},
hour:"\u0574\u0565\u056f \u056a\u0561\u0574 \u0561\u057c\u0561\u057b",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u056a\u0561\u0574 \u0561\u057c\u0561\u057b","\u056a\u0561\u0574 \u0561\u057c\u0561\u057b","\u056a\u0561\u0574 \u0561\u057c\u0561\u057b")},day:"\u0574\u0565\u056f \u0585\u0580 \u0561\u057c\u0561\u057b",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0585\u0580 \u0561\u057c\u0561\u057b","\u0585\u0580 \u0561\u057c\u0561\u057b","\u0585\u0580 \u0561\u057c\u0561\u057b")},
month:"\u0574\u0565\u056f \u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b","\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b","\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b")},year:"\u0574\u0565\u056f \u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b","\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b",
"\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b")}},fr:{second:"tout \u00e0 l'heure",minute:"environ une minute",minutes:function(a){return Math.round(a)+" minutes"},hour:"environ une heure",hours:function(a){return"environ "+Math.round(a)+" heures"},day:"un jour",days:function(a){return Math.round(a)+" jours"},month:"environ un mois",months:function(a){return Math.floor(a/30)+" mois"},year:"environ un an",years:function(a){return Math.round(a)+" ans"}},es:{second:"ahora",minute:"hace un minuto",
minutes:function(a){return"hace "+Math.round(a)+" minuts"},hour:"hace una hora",hours:function(a){return"hace "+Math.round(a)+" horas"},day:"hace un dia",days:function(a){return"hace "+Math.round(a)+" d\u00edas"},month:"hace un mes",months:function(a){return"hace "+Math.floor(a/30)+" meses"},year:"hace a\u00f1os",years:function(a){return"hace "+Math.round(a)+" a\u00f1os"}},el:{second:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",
minute:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",minutes:function(a){return Math.round(a)+" minutes"},hour:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03b7\u03bd \u03bc\u03b9\u03b1 \u03ce\u03c1\u03b1",hours:function(a){return"about "+Math.round(a)+" hours"},day:"\u03bc\u03b9\u03b1 \u03bc\u03ad\u03c1\u03b1",days:function(a){return Math.round(a)+" days"},month:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf\u03bd \u03ad\u03bd\u03b1 \u03bc\u03ae\u03bd\u03b1",
months:function(a){return Math.floor(a/30)+" months"},year:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf\u03bd \u03ad\u03bd\u03b1 \u03c7\u03c1\u03cc\u03bd\u03bf",years:function(a){return Math.round(a)+" years"}},de:{second:"soeben",minute:"vor einer Minute",minutes:function(a){return"vor "+Math.round(a)+" Minuten"},hour:"vor einer Stunde",hours:function(a){return"vor "+Math.round(a)+" Stunden"},day:"vor einem Tag",days:function(a){return"vor "+Math.round(a)+" Tagen"},month:"vor einem Monat",months:function(a){return"vor "+
Math.floor(a/30)+" Monaten"},year:"vor einem Jahr",years:function(a){return"vor "+Math.round(a)+" Jahren"}},be:{second:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",minute:"\u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0445\u0432\u0456\u043b\u0456\u043d\u0430 \u0442\u0430\u043c\u0443","\u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443",
"\u0445\u0432\u0456\u043b\u0456\u043d \u0442\u0430\u043c\u0443")},hour:"\u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u0437\u0456\u043d\u044b \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u0437\u0456\u043d \u0442\u0430\u043c\u0443")},day:"\u0434\u0437\u0435\u043d\u044c \u0442\u0430\u043c\u0443",days:function(a){return rpi.Time.declineNum(Math.round(a),
"\u0434\u0437\u0435\u043d\u044c \u0442\u0430\u043c\u0443","\u0434\u043d\u0456 \u0442\u0430\u043c\u0443","\u0434\u0437\u0451\u043d \u0442\u0430\u043c\u0443")},month:"\u043c\u0435\u0441\u044f\u0446 \u0442\u0430\u043c\u0443",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0435\u0441\u044f\u0446 \u0442\u0430\u043c\u0443","\u043c\u0435\u0441\u044f\u0446\u0430 \u0442\u0430\u043c\u0443","\u043c\u0435\u0441\u044f\u0446\u0430\u045e \u0442\u0430\u043c\u0443")},year:"\u0433\u043e\u0434 \u0442\u0430\u043c\u0443",
years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434 \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u044b \u0442\u0430\u043c\u0443","\u0433\u043e\u0434 \u0442\u0430\u043c\u0443")}},it:{second:"proprio ora",minute:"un minuto fa",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"un minuto fa","minuti fa","minuti fa")},hour:"un'ora fa",hours:function(a){return rpi.Time.declineNum(Math.round(a),"un'ora fa","ore fa","ore fa")},day:"un giorno fa",days:function(a){return rpi.Time.declineNum(Math.round(a),
"un giorno fa","giorni fa","giorni fa")},month:"un mese fa",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"un mese fa","mesi fa","mesi fa")},year:"un anno fa",years:function(a){return rpi.Time.declineNum(Math.round(a),"un anno fa","anni fa","anni fa")}},tr:{second:"az \u00f6nce",minute:"dakika \u00f6nce",minutes:function(a){return Math.round(a)+" dakika \u00f6nce"},hour:"saat \u00f6nce",hours:function(a){return Math.round(a)+" saat \u00f6nce"},day:"g\u00fcn \u00f6nce",days:function(a){return Math.round(a)+
" g\u00fcn \u00f6nce"},month:"ay \u00f6nce",months:function(a){return Math.floor(a/30)+" ay \u00f6nce"},year:"y\u0131l \u00f6nce",years:function(a){return Math.round(a)+" y\u0131l \u00f6nce"}},nb:{second:"n\u00e5 nettopp",minute:"ett minutt siden",minutes:function(a){return Math.round(a)+" minutter siden"},hour:"en time siden",hours:function(a){return Math.round(a)+" timer siden"},day:"en dag siden",days:function(a){return Math.round(a)+" dager siden"},month:"en m\u00e5ned siden",months:function(a){return Math.floor(a/
30)+" m\u00e5neder siden"},year:"ett \u00e5r siden",years:function(a){return Math.round(a)+" \u00e5r siden"}},da:{second:"lige nu",minute:"et minut siden",minutes:function(a){return Math.round(a)+" minutter siden"},hour:"en time siden",hours:function(a){return Math.round(a)+" timer siden"},day:"en dag siden",days:function(a){return Math.round(a)+" dage siden"},month:"en m\u00e5ned siden",months:function(a){return Math.floor(a/30)+" m\u00e5neder siden"},year:"et \u00e5r siden",years:function(a){return Math.round(a)+
" \u00e5r siden"}},nl:{second:"zojuist",minute:"minuten geleden",minutes:function(a){return Math.round(a)+" minuten geleden"},hour:"uur geleden",hours:function(a){return Math.round(a)+" uur geleden"},day:"1 dag geleden",days:function(a){return Math.round(a)+" dagen geleden"},month:"maand geleden",months:function(a){return Math.floor(a/30)+" maanden geleden"},year:"jaar geleden",years:function(a){return Math.round(a)+" jaar geleden"}},ca:{second:"ara mateix",minute:"fa un minut",minutes:function(a){return"fa "+
Math.round(a)+" minuts"},hour:"fa una hora",hours:function(a){return"fa "+Math.round(a)+" hores"},day:"fa un dia",days:function(a){return"fa "+Math.round(a)+" dies"},month:"fa un mes",months:function(a){return"fa "+Math.floor(a/30)+" mesos"},year:"fa un any",years:function(a){return"fa "+Math.round(a)+" anys"}},sv:{second:"just nu",minute:"en minut sedan",minutes:function(a){return Math.round(a)+" minuter sedan"},hour:"en timme sedan",hours:function(a){return Math.round(a)+" timmar sedan"},day:"en dag sedan",
days:function(a){return Math.round(a)+" dagar sedan"},month:"en m\u00e5nad sedan",months:function(a){return Math.floor(a/30)+" m\u00e5nader sedan"},year:"ett \u00e5r sedan",years:function(a){return Math.round(a)+" \u00e5r sedan"}},pl:{second:"w\u0142a\u015bnie teraz",minute:"minut\u0119 temu",minutes:function(a){return Math.round(a)+" minut temu"},hour:"godzin\u0119 temu",hours:function(a){return Math.round(a)+" godzin temu"},day:"wczoraj",days:function(a){return Math.round(a)+" dni temu"},month:"miesi\u0105c temu",
months:function(a){return Math.floor(a/30)+" miesi\u0119cy temu"},year:"rok temu",years:function(a){return Math.round(a)+" lat temu"}},pt:{second:"agora",minute:"1 minuto atr\u00e1s",minutes:function(a){return Math.round(a)+" minutos atr\u00e1s"},hour:"1 hora atr\u00e1s",hours:function(a){return Math.round(a)+" horas atr\u00e1s"},day:"1 dia atr\u00e1s",days:function(a){return Math.round(a)+" dias atr\u00e1s"},month:"1 m\u00eas atr\u00e1s",months:function(a){return Math.floor(a/30)+" meses atr\u00e1s"},
year:"1 ano atr\u00e1s",years:function(a){return Math.round(a)+" anos atr\u00e1s"}},hu:{second:"\u00e9pp az im\u00e9nt",minute:"1 perccel ezel\u0151tt",minutes:function(a){return Math.round(a)+" perccel ezel\u0151tt"},hour:"\u00f3r\u00e1val ezel\u0151tt",hours:function(a){return Math.round(a)+" \u00f3r\u00e1val ezel\u0151tt"},day:"nappal ezel\u0151tt",days:function(a){return Math.round(a)+" nappal ezel\u0151tt"},month:"h\u00f3nappal ezel\u0151tt",months:function(a){return Math.floor(a/30)+" h\u00f3nappal ezel\u0151tt"},
year:"\u00e9vvel ezel\u0151tt",years:function(a){return Math.round(a)+" \u00e9vvel ezel\u0151tt"}},fi:{second:"juuri nyt",minute:"minuutti sitten",minutes:function(a){return Math.round(a)+" minuuttia sitten"},hour:"tunti sitten",hours:function(a){return Math.round(a)+" tuntia sitten"},day:"p\u00e4iv\u00e4 sitten",days:function(a){return Math.round(a)+" p\u00e4iv\u00e4\u00e4 sitten"},month:"kuukausi sitten",months:function(a){return Math.floor(a/30)+" kuukautta sitten"},year:"vuosi sitten",years:function(a){return Math.round(a)+
" vuotta sitten"}},he:{second:"\u05d4\u05e8\u05d2\u05e2",minute:"\u05dc\u05e4\u05e0\u05d9 \u05d3\u05e7\u05d4",minutes:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d3\u05e7\u05d5\u05ea"},hour:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e2\u05d4",hours:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e2\u05d5\u05ea"},day:"\u05dc\u05e4\u05e0\u05d9 \u05d9\u05d5\u05dd",days:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d9\u05de\u05d9\u05dd"},month:"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9",
months:function(a){return 2==Math.floor(a/30)?"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":"\u05dc\u05e4\u05e0\u05d9 "+Math.floor(a/30)+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},year:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4",years:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e0\u05d9\u05dd"}},bg:{second:"\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0430",minute:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430",minutes:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+
Math.round(a)+" \u043c\u0438\u043d\u0443\u0442\u0438"},hour:"\u043f\u0440\u0435\u0434\u0438 1 \u0447\u0430\u0441",hours:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0447\u0430\u0441\u0430"},day:"\u043f\u0440\u0435\u0434\u0438 1 \u0434\u0435\u043d",days:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0434\u043d\u0438"},month:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0435\u0441\u0435\u0446",months:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.floor(a/
30)+" \u043c\u0435\u0441\u0435\u0446\u0430"},year:"\u043f\u0440\u0435\u0434\u0438 1 \u0433\u043e\u0434\u0438\u043d\u0430",years:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0433\u043e\u0434\u0438\u043d\u0438"}},sk:{second:"pr\u00e1ve teraz",minute:"pred min\u00fatov",minutes:function(a){return"pred "+Math.round(a)+" min\u00fatami"},hour:"pred hodinou",hours:function(a){return"pred "+Math.round(a)+" hodinami"},day:"v\u010dera",days:function(a){return"pred "+Math.round(a)+" d\u0148ami"},
month:"pred mesiacom",months:function(a){return"pred "+Math.floor(a/30)+" mesiacmi"},year:"pred rokom",years:function(a){return"pred "+Math.round(a)+" rokmi"}},lo:{second:"\u0ea7\u0eb1\u0ec8\u0e87\u0e81\u0eb5\u0ec9\u0e99\u0eb5\u0ec9",minute:"\u0edc\u0eb6\u0ec8\u0e87\u0e99\u0eb2\u0e97\u0eb5\u0e81\u0ec8\u0ead\u0e99",minutes:function(a){return Math.round(a)+" \u0e99\u0eb2\u0e97\u0eb5\u0e81\u0ec8\u0ead\u0e99"},hour:"\u0edc\u0eb6\u0ec8\u0e87\u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99",
hours:function(a){return Math.round(a)+" \u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99"},day:"\u0edc\u0eb6\u0ec8\u0e87\u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99",days:function(a){return Math.round(a)+" \u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99"},month:"\u0edc\u0eb6\u0ec8\u0e87\u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99",months:function(a){return Math.floor(a/30)+" \u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99"},year:"\u0edc\u0eb6\u0ec8\u0e87\u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99",
years:function(a){return Math.round(a)+" \u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99"}},sl:{second:"pravkar",minute:"pred eno minuto",minutes:function(a){return"pred "+Math.round(a)+" minutami"},hour:"pred eno uro",hours:function(a){return"pred "+Math.round(a)+" urami"},day:"pred enim dnem",days:function(a){return"pred "+Math.round(a)+" dnevi"},month:"pred enim mesecem",months:function(a){return"pred "+Math.floor(a/30)+" meseci"},year:"pred enim letom",years:function(a){return"pred "+Math.round(a)+" leti"}},
et:{second:"just n\u00fc\u00fcd",minute:"minut tagasi",minutes:function(a){return Math.round(a)+" minutit tagasi"},hour:"tund tagasi",hours:function(a){return Math.round(a)+" tundi tagasi"},day:"p\u00e4ev tagasi",days:function(a){return Math.round(a)+" p\u00e4eva tagasi"},month:"kuu aega tagasi",months:function(a){return Math.floor(a/30)+" kuud tagasi"},year:"aasta tagasi",years:function(a){return Math.round(a)+" aastat tagasi"}},ja:{second:"\u305f\u3063\u305f\u4eca",minute:"1\u5206\u524d",minutes:function(a){return Math.round(a)+
"\u5206\u524d"},hour:"1\u6642\u9593\u524d",hours:function(a){return Math.round(a)+"\u6642\u9593\u524d"},day:"1\u65e5\u524d",days:function(a){return Math.round(a)+"\u65e5\u524d"},month:"1\u30f6\u6708\u524d",months:function(a){return Math.floor(a/30)+"\u30f6\u6708\u524d"},year:"1\u5e74\u524d",years:function(a){return Math.round(a)+"\u5e74\u524d"}}};rpi=rpi||{};
rpi.Utils={__:function(a,b){return b&&b[a]||a},isVisible:function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==window.getComputedStyle(a).visibility},isRTL:function(){return"rtl"==(window.getComputedStyle?window.getComputedStyle(document.body,null).getPropertyValue("direction"):document.body.currentStyle.direction)},getParent:function(a,b){b=b||"rplg";if(0>a.className.split(" ").indexOf(b))for(;(a=a.parentElement)&&0>a.className.split(" ").indexOf(b););return a},
lang:function(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()},popup:function(a,b,d){var g=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+b+", height="+d+", top="+((window.innerHeight?window.innerHeight:g.clientHeight?g.clientHeight:screen.height)/2-d/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:g.clientWidth?g.clientWidth:screen.width)/2-b/2+(void 0!=window.screenLeft?
window.screenLeft:window.screenX)));window.focus&&a.focus();return a},ajax:function(a,b,d,g){const h=new XMLHttpRequest;h.open(b,a,!0);h.setRequestHeader("Content-Type","application/json");h.onreadystatechange=function(){if((h.readyState===XMLHttpRequest.DONE||h.readyState===h.DONE)&&200===h.status){const q=JSON.parse(h.responseText);"function"===typeof g?g(q):"function"===typeof d&&d(q)}};h.send(d&&"function"!==typeof d?JSON.stringify(d):null)},anchor:function(a,b,d,g,h){const q=[];d.open_link&&
q.push("noopener");d.nofollow_link&&q.push("nofollow");return'<a href="'+a+'"'+(g?' class="'+g+'"':"")+(d.open_link?' target="_blank"':"")+(q.length?' rel="'+q.join(" ")+'"':"")+(h?' aria-label="'+h+'"':"")+">"+b+"</a>"},rm:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},capit:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},clear:function(){this.rm(document.getElementById("rpi-style"));if(rpi.Instances)for(;rpi.Instances.length;)rpi.Instances.pop().clear()}};rpi=rpi||{};
rpi.Column=function(a,b,d){const g=a.getAttribute("data-id"),h=new RegExp(d.col+"-[xsml]+"),q=new RegExp('$|(\\[data-id="'+g+'"\\]\\s+.'+d.card+"\\s*{\\s*--col:\\s*\\d+\\s*!important\\s*;?(\\s*--gap:\\s*\\d+\\s*!important;?)?})"),m=a.getElementsByClassName(d.cnt)[0];var t=null;return t={init:function(n,f){rpi.Utils.isVisible(m)?(n&&n(),t.resize(),window.addEventListener("resize",t.resize),f&&f(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(t)):setTimeout(t.init,300)},resize:function(){let n=
t.getSize();m.className=m.className.replace(h,d.col+"-"+n);if(b.breakpoints){let f=m.offsetWidth,c=b.breakpoints.split(",");c.sort(t.brsort);for(let k=0;k<c.length;k++){let r=c[k].split(":");if(f<parseInt(r[0])){t.setCol(r[1]);break}}}return n},getSize:function(){let n=m.offsetWidth;return 510>n?"xs":750>n?"x":1100>n?"s":1450>n?"m":1800>n?"l":"xl"},setCol:function(n){let f=this.getStyle();f.innerHTML=f.innerHTML.replace(q,'[data-id="'+g+'"] .'+d.card+"{--col:"+n+"!important;--gap:"+(n-1)+"!important}")},
getCol:function(){let n=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return n&&1<n.length?n[1]:!1},getStyle:function(){let n=document.getElementById("rpi-style");n||(n=document.createElement("style"),n.id="rpi-style",document.head.appendChild(n));return n},setBreakpoints:function(n){b.breakpoints=n},brsort:function(n,f){return parseInt(n.split(":")[0])>parseInt(f.split(":")[0])?1:-1},clear:function(){window.removeEventListener("resize",t.resize)}}};rpi=rpi||{};
rpi.Common=function(a,b,d){var g=null;return g={init:function(){var h=a.getElementsByClassName(d.time);let q=a.getElementsByClassName(d.text);for(var m=0;m<h.length;m++)h[m].innerHTML=g.time(h[m].getAttribute("data-time"));for(h=0;h<q.length;h++)(m=q[h])&&m.innerHTML&&(m.innerHTML=g.trimtext(m.innerHTML),m=m.getElementsByClassName(d.readmore)[0])&&(m.onclick=g.opentext)},initOnce:function(h){var q=h.getElementsByClassName(d.time)[0];h=h.getElementsByClassName(d.text)[0];q&&(q.innerHTML=g.time(q.getAttribute("data-time")));
h&&h.innerHTML&&(h.innerHTML=g.trimtext(h.innerHTML),q=h.getElementsByClassName(d.readmore)[0])&&(q.onclick=g.opentext)},time:function(h){return b.time_format?h:rpi.Time.getTimeAgo(1E3*parseInt(h),rpi.Utils.lang())},trimtext:function(h,q){var m=parseInt(b.text_size);if(h&&m&&h.length>m){var t=h.substring(0,m).indexOf(" ")+1;if(1>t||m-t>m/2)t=m;var n=m="";0<t&&(m=h.substring(0,t-1),n=h.substring(t-1,h.length));return m+(!q&&n?'<span class="rpi-s">... </span><input type="hidden" value="'+n+'"></input><span class="'+
d.readmore+'">'+rpi.Utils.__("read more",b.trans)+"</span>":"")}return h},opentext:function(){let h=this.parentNode,q=this.previousSibling,m=this.previousSibling.previousSibling,t=q.value;rpi.Utils.rm(q);rpi.Utils.rm(m);rpi.Utils.rm(this);h.innerHTML+=t}}};rpi=rpi||{};
rpi.View=function(a,b,d){const g=a.getAttribute("data-id");a.getElementsByClassName("rpi-cnt");const h=a.getElementsByClassName("rpi-header")[0],q=a.getElementsByClassName("rpi-content")[0],m=q.getElementsByClassName("rpi-cards")[0],t=a.getElementsByClassName("rpi-url")[0];var n=null;return n={init:function(f){n.initMedia();n.initStyle();t&&(t.onclick=function(){n.loadNextReviews(b.pagination,function(c){n.delPaginBtn();f.cbp&&f.cbp(c)});return!1})},loadNextReviews:function(f,c){const k=parseInt(m.getAttribute("data-count")),
r=parseInt(m.getAttribute("data-offset"));if(0<f){const p=[];f=parseInt(f);n.preloadReviews(p,k,r,f);n.loadAjaxReviews(p,r,f,c)}},preloadReviews:function(f,c,k,r){const p=m.getElementsByClassName("rpi-card");c=c-k>r?r:c-k;m.setAttribute("data-offset",k+c);if(p.length)for(k=p.length-1,r=0;r<c;r++){let v=p[Math.round(Math.random()*k)].cloneNode(!0);v.style="filter: blur(4px);";m.appendChild(v);f.push(v)}},loadAjaxReviews:function(f,c,k,r){rpi.Utils.ajax(brb_vars.ajaxurl+"?action=brb_get_reviews&id="+
g+"&offset="+c+"&size="+k,"POST",function(p){n.addReviews(p,f,c,k,r)})},addReviews:function(f,c,k,r,p){let v=f.reviews.length;a.getAttribute("data-opts")&&(b=JSON.parse(a.getAttribute("data-opts")));for(let w=0;w<v;w++){let A=n.createCard(c.shift(),f.reviews[w]);d.common.initOnce(A);n.initReviewStyle(A,b);n.initLogoStyle(A,b.style_logo);c.length||m.appendChild(A)}for(;c.length;)rpi.Utils.rm(c.shift());n.initMedia();k+parseInt(r)!=k+v&&m.setAttribute("data-offset",k+v);n.delPaginBtn();p&&p(f)},createCard:function(f,
c){f?f.style="":(f=document.createElement("div"),f.className="rpi-card");f.setAttribute("data-provider",c.provider);f.innerHTML=n.reviewInner(c);return f},reviewInner:function(f){a.style.getPropertyValue("--img-size");let c=f.reply?f.reply.text||f.reply:null;return'<div class="rpi-card-inner"><i></i><div class="rpi-flex">'+(b.hide_avatar?"":n.reviewAvatar(f))+'<div class="rpi-info">'+(b.hide_name?"":n.reviewName(f))+(b.disable_review_time?"":'<div class="rpi-time" data-time="'+f.time+'"></div>')+
rpi.View.stars(f.rating,f.provider)+'</div></div><div class="rpi-body"><div class="rpi-text rpi-scroll" tabindex="0">'+f.text+"</div>"+(f.media?'<div class="rpi-media">'+n.reviewMedia(f)+"</div>":"")+(c?'<div class="rpi-reply rpi-scroll"><b>'+rpi.Utils.__("Response from the owner",b.trans)+":</b> "+c+"</div>":"")+"</div></div>"},reviewReply:function(f,c){let k=f.getElementsByClassName("rpi-reply")[0];k||(k=document.createElement("div"),k.className="rpi-reply rpi-scroll",f.getElementsByClassName("rpi-body")[0].appendChild(k));
k.innerHTML="<b>"+rpi.Utils.__("Response from the owner",b.trans)+":</b> "+c},reviewName:function(f){const c=rpi.Utils.capit(f.provider)+" user",k=f.author_name?f.author_name:c;return f.author_url&&!b.disable_user_link?rpi.Utils.anchor(f.author_url,k,b,"rpi-name",c+" profile"):'<div class="rpi-name">'+k+"</div>"},reviewAvatar:function(f){let c=f.author_avatar;var k=a.style.getPropertyValue("--img-size");k=k?k.replace("px",""):56;let r=b.hide_name&&f.author_name?f.author_name:"";switch(f.provider){case "google":(f=
c.match(/googleusercontent\.com\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/photo\.jpg/))&&4<f.length&&"AAAAAAAAAAA"==f[3][0]&&(c=c.replace("/photo.jpg","/s128-c0x00000000-cc-rp-mo/photo.jpg"));c&&=-1<c.indexOf("s128")?c.replace("s128","s"+k):-1<c.indexOf("-mo")?c.replace("-mo","-mo-s"+k):c.replace("-rp","-rp-s"+k);break;case "yelp":c&&=c.replace(/(ms)|(o)\.jpg/,128>=k?"ms":"o")}return'<div class="rpi-img"><img src="'+c+'" class="rpi-img" '+(b.lazy_load_img?'loading="lazy"':"")+' width="'+k+'" height="'+
k+'" alt="'+r+'" onerror="if(this.src!=\''+brb_vars.gavatar+"')this.src='"+brb_vars.gavatar+"';\"></div>"},reviewMedia:function(f){let c="";var k=a.style.getPropertyValue("--media-lines");k=22*(k?k:2);for(let r=0;r<f.media.length;r++)c+="<div onclick=\"_rplg_popup('"+f.media[r].googleUrl+'\', 800, 600)" style="background-image:url('+f.media[r].thumbnailUrl.replace("=s300","=s"+k)+')" class="rpi-thumb rpi-clickable"></div>';return c},initStyle:function(){var f=a.getAttribute("data-opts");f&&(b=JSON.parse(f));
if(h){f=h.getElementsByClassName("rpi-card");for(var c=0;c<f.length;c++)this.initLogoStyle(f[c],b.head_logo),this.initYelpBasedLogo(f[c],b.head_logo)}if(q){f=m.getElementsByClassName("rpi-card");for(c=0;c<f.length;c++)this.initReviewStyle(f[c],b);this.initCtrlStyle(b);f=q.getElementsByClassName("rpi-card");for(c=0;c<f.length;c++)this.initLogoStyle(f[c],b.style_logo)}},initYelpBasedLogo:function(f,c){5==c&&(f=f.getElementsByClassName("rpi-logo-yelp")[0])&&(f.classList.remove("rpi-logo"),f.classList.add("rpi-logo_after"),
f.innerText="yelp")},initReviewStyle:function(f,c){let k=f.getElementsByClassName("rpi-card-inner")[0],r=f.getElementsByTagName("i")[0],p=f.getElementsByClassName("rpi-flex")[0],v=f.getElementsByClassName("rpi-img")[0],w=f.getElementsByClassName("rpi-info")[0],A=f.getElementsByClassName("rpi-time")[0],C=f.getElementsByClassName("rpi-name")[0],z=f.getElementsByClassName("rpi-stars")[0],u=f.getElementsByClassName("rpi-body")[0],D=f.getElementsByClassName("rpi-text")[0],y=f.getElementsByClassName("rpi-reply")[0];
C&&w.appendChild(C);A&&w.appendChild(A);z&&w.appendChild(z);f.className="rpi-card";k.className="rpi-card-inner";p.className="rpi-flex";u.className="rpi-body";r.className="";switch(c.style_style){case "1":case "7":k.appendChild(p);u&&k.appendChild(u);u.className+=" rpi-normal-up__body";break;case "2":case "8":u&&k.appendChild(u);k.appendChild(p);u.className+=" rpi-normal-down__body";break;case "3":f.appendChild(p);f.appendChild(k);u&&k.appendChild(u);r.className="rpi-triangle rpi-triangle_up";p.className+=
" rpi-bubble__flex rpi-bubble__flex_up";"none"!=this.getCssVar("--card-br")&&(r.className+=" rpi-triangle__br_up",k.className+=" rpi-bubble__inner rpi-bubble__inner_up");break;case "4":f.appendChild(k);f.appendChild(p);u&&k.appendChild(u);r.className="rpi-triangle rpi-triangle_down";p.className+=" rpi-bubble__flex rpi-bubble__flex_down";"none"!=this.getCssVar("--card-br")&&(r.className+=" rpi-triangle__br_down",k.className+=" rpi-bubble__inner rpi-bubble__inner_down");break;case "5":k.appendChild(p);
p.appendChild(w);u&&w.appendChild(u);p.className+=" rpi-shift-up__flex";break;case "6":k.appendChild(p),p.appendChild(w),u&&w.prepend(u),p.className+=" rpi-shift-down__flex"}switch(c.style_style){case "7":f.className+=" rpi-avaborder-up";break;case "8":f.className+=" rpi-avaborder-down"}u&&y&&u.appendChild(y);if(z)switch(c.style_stars){case "1":A?(w.insertBefore(z,A),w.insertBefore(A,z)):C?(w.insertBefore(z,C),w.insertBefore(C,z)):w.appendChild(z);break;case "2":A?w.insertBefore(z,A):w.appendChild(z);
break;case "3":C?w.insertBefore(z,C):A?w.insertBefore(z,A):w.prepend(z);break;case "4":u?u.prepend(z):k.appendChild(z);break;case "5":D?D.prepend(z):u.appendChild(z);break;case "6":u?(u.appendChild(z),y&&u.insertBefore(z,y)):k.appendChild(z)}if(v)switch(c.style_ava){case "1":p.appendChild(v);p.appendChild(w);break;case "2":p.appendChild(w),p.appendChild(v)}},initCtrlStyle:function(f){let c=q.getElementsByClassName("rpi-controls")[0];if(c)switch(c.className="rpi-controls",f.style_style){case "3":c.className+=
" rpi-bubble-up__ctrl";break;case "4":c.className+=" rpi-bubble-down__ctrl"}},initLogoStyle:function(f,c){let k=f.getElementsByClassName("rpi-card-inner")[0],r=f.getAttribute("data-provider"),p=r.split(",");1<p.length?this.initLogoMultiple(f,k,p,c):this.initLogoSingle(f,k,r,c)},initLogoSingle:function(f,c,k,r){let p=f.getElementsByClassName("rpi-logo")[0];k=["rpi-logo","rpi-logo-"+k];p&&p.classList.remove(...k);switch(r){case "1":case "6":f=f.getElementsByClassName("rpi-body")[0];"6"==r&&k.push("rpi-logo-left");
c.classList.contains("rpi-bubble__inner")&&f?f.classList.add(...k):c.classList.add(...k);break;case "2":(c=f.getElementsByClassName("rpi-name")[0])&&c.classList.add(...k);break;case "3":(c=f.getElementsByClassName("rpi-img")[0])&&c.classList.add(...k);break;case "4":f.getElementsByClassName("rpi-stars")[0].classList.add(...k);break;case "5":if(c=f.getElementsByClassName("rpi-based")[0])r=c.innerText.match(/(\d+)/)[1],c.innerHTML=c.innerText.replace(r,r+' <span class="'+k.join(" ")+'"></span>')}},
initLogoMultiple:function(f,c,k,r){let p=f.getElementsByClassName("rpi-logos")[0];p||=this.createLogos(k);switch(r){case "0":rpi.Utils.rm(p);break;case "1":c.prepend(p);break;case "2":(f=f.getElementsByClassName("rpi-name")[0])&&f.prepend(p);break;case "4":c=f.getElementsByClassName("rpi-score")[0];f=f.getElementsByClassName("rpi-stars")[0];c.appendChild(p);c.insertBefore(p,f);break;case "5":if(f=f.getElementsByClassName("rpi-based")[0])c=f.innerText.match(/(\d+)/)[1],f.innerHTML=f.innerText.replace(c,
c+" "+p.outerHTML),rpi.Utils.rm(p)}},createLogos:function(f){let c=document.createElement("span");c.className="rpi-logos";for(let k=0;k<f.length;k++)c.innerHTML+='<span class="rpi-logo rpi-logo-'+f[k]+'">';return c},getCssVar:function(f){return a.style.getPropertyValue(f)},initMedia:function(){let f=q.getElementsByClassName("rpi-thumb");for(let c=0;c<f.length;c++)(function(k,r){k.onclick=function(){n.media(k,f,r);return!1}})(f[c],c)},media:function(f,c,k){let r=document.querySelector(".rpi-lightbox");
src=f.style.backgroundImage.slice(4,-1).replace(/"/g,"").replace(/=s\d\d/g,"=s500");review=f.parentNode.parentNode.parentNode.parentNode.outerHTML;if(r){f=r.querySelector(".rpi-lightbox-media img");var p=r.querySelector(".rpi-lightbox-review");let v=r.querySelector(".rpi-slider-prev");next=r.querySelector(".rpi-slider-next");f.src=src;p.innerHTML=review;v.onclick=function(w){n.media(c[k-1],c,k-1)};next.onclick=function(w){n.media(c[k+1],c,k+1)}}else r=document.createElement("div"),r.className="rpi-lightbox",
r.innerHTML='<div class="rpi-lightbox-x"></div><div class="rpi-lightbox-inner"><div class="rpi-lightbox-xxx"><div class="rpi-lightbox-content"><div class="rpi-lightbox-media"><div class="rpi-slider-prev"></div><img src="'+src+'" alt=""><div class="rpi-slider-next"></div></div><div class="rpi rpi-lightbox-review">'+review+"</div></div></div></div>",f=r.querySelector(".rpi-lightbox-x"),p=r.querySelector(".rpi-slider-prev"),next=r.querySelector(".rpi-slider-next"),f.onclick=function(){r.style.display=
"none"},r.onclick=function(v){r==v.target&&(r.style.display="none")},p.onclick=function(v){n.media(c[k-1],c,k-1)},next.onclick=function(v){n.media(c[k+1],c,k+1)},document.body.appendChild(r);r.style.display="flex"},delPaginBtn:function(){if(t){const f=parseInt(m.getAttribute("data-count"));parseInt(m.getAttribute("data-offset"))>=f&&rpi.Utils.rm(t)}}}};rpi.View.stars=function(a,b){return'<div class="rpi-stars" data-info="'+[a,b].join()+'">'+rpi.View.star(a)+"</div>"};
rpi.View.star=function(a){for(var b="",d=1;6>d;d++){var g=a-d;b=0<=g?b+'<span class="rpi-star"></span>':-1<g&&0>g?-.75>g?b+'<span class="rpi-star rpi-star-o"></span>':-.25<g?b+'<span class="rpi-star"></span>':b+'<span class="rpi-star rpi-star-h"></span>':b+'<span class="rpi-star rpi-star-o"></span>'}return b};
rpi.View.widthAnim=function(a,b,d){const g=a.style,h=b+"px";"none"==g.display?(g.display="block",setTimeout(function(){g.opacity=0<g.opacity?0:1;g.width=g.width!=h?h:0},10)):(g.opacity=0<g.opacity?0:1,g.width=g.width!=h?h:0,setTimeout(function(){g.display="none"},d))};rpi=rpi||{};
rpi.Flash=function(a,b){var d=a.getAttribute("data-id");sessionStorage.getItem("rpi_flash_"+d)||(b.ajax_load?rpi.Utils.ajax(brb_vars.ajaxurl+"?action=brb_widget&id="+d,"POST",function(g){a.innerHTML='<div class="rpi-flash{{hide}}"><div class="rpi-flash-wrap{{right}}"><div class="rpi-flash-content"><div class="rpi-flash-card"><div class="rpi-flash-story rpi-flex" data-idx="1"></div><div class="rpi-flash-form rpi-content"><div class="rpi-cards" data-count="{{count}}" data-offset="{{offset}}"></div><div style="text-align:center"><a href="#" class="rpi-url">More reviews</a></div></div></div><div class="rpi-x"></div></div></div></div>'.replace("{{hide}}",g.options.flash_hide_mobile?
" rpi-flash-hide":"").replace("{{right}}","right"==g.options.flash_pos?" rpi-flash-right":"").replace("{{count}}",g.count).replace("{{offset}}",g.reviews.length);rpi.Flash.core(a,b,g.options).init(g)}):(d=a.getElementsByClassName("rpi-flash")[0],d=JSON.parse(d.getAttribute("data-opts")),rpi.Flash.core(a,b,d).init()))};rpi.Flash.LOGO='<span style="position:relative;display:inline-block"><svg viewBox="0 0 1792 1792" width="44" height="44"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="#FFAF02"></path></svg><svg width="25" height="25" viewBox="0 0 1792 1792" style="position:absolute;bottom:0;right:0;border:1px solid #fff;border-radius:50%;background:#fff"><path d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z" fill="#8cc976"></path></svg></span>';
rpi.Flash.core=function(a,b,d){const g="rpi_flash_"+a.getAttribute("data-id"),h=a.getElementsByClassName("rpi-flash")[0],q=a.getElementsByClassName("rpi-flash-content")[0],m=q.getElementsByClassName("rpi-x")[0],t=q.getElementsByClassName("rpi-flash-card")[0],n=q.getElementsByClassName("rpi-flash-story")[0],f=q.getElementsByClassName("rpi-cards")[0],c=[],k=function(e){for(let l=0;l<e.reviews.length;l++)c.push(e.reviews[l])},r=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),
p=rpi.View(a,b,{common:r});let v=0,w=!1,A=!1,C=1E3*(d.flash_start||3),z=1E3*(d.flash_visible||5),u=1E3*(d.flash_invisible||5),D=null;var y=null;return y={init:function(e){e?p.addReviews(e,[],e.reviews.length,b.pagination,function(l){p.init({cbp:k});y.init2()}):(r.init(),p.init({cbp:k}),y.init2())},init2:function(){y.fillReviews();m.onclick=y.hide;n.onclick=y.showReview;document.body.appendChild(a);setTimeout(y.showStory,C)},fillReviews:function(){let e=a.getElementsByClassName("rpi-card");for(let B=
0;B<e.length;B++){let E=e[B].getElementsByClassName("rpi-stars")[0].getAttribute("data-info").split(",");var l="";d.disable_review_time||(l=e[B].getElementsByClassName("rpi-time")[0],l=d.time_format?l.innerText:l.getAttribute("data-time"));let F=e[B].getElementsByClassName("rpi-name"),G=e[B].getElementsByClassName("rpi-text");c.push({rating:E[0],text:G.length&&G[0].firstChild?G[0].firstChild.nodeValue:"",time:l,author_avatar:d.hide_avatar?"":e[B].querySelector("img.rpi-img").getAttribute("src"),author_name:d.hide_name?
"":F.length?F[0].innerText:"",author_url:d.hide_name?"":F.length?F[0].href:"",provider:e[B].getAttribute("data-provider")})}},showStory:function(){if(!A&&!w)if(y.nextStory(a,n,v,c),q.className="rpi-flash-content rpi-flash-visible",v+1<c.length)v+=1;else{const e=parseInt(f.getAttribute("data-count")),l=parseInt(f.getAttribute("data-offset"));e>l?(p.loadNextReviews(b.pagination,k),v+=1):v=0}w=!1;D=setTimeout(function(){var e;if(e=!A)e=q.parentElement.querySelector(":hover")!==q;e&&!w&&(q.className=
"rpi-flash-content");D=setTimeout(y.showStory,u)},z)},showReview:function(){A=!0;let e=parseInt(n.getAttribute("data-idx")),l=t.querySelector(".rpi-flash-form .rpi-card:nth-child("+e+")");l.className="rpi-card rpi-highlight";setTimeout(function(){l.scrollIntoView({behavior:"smooth",block:"center"})},300);t.className="rpi-flash-card rpi-flash-expanded";q.className="rpi-flash-content rpi-flash-visible";m.className="rpi-x rpi-xa";m.onclick=function(){l.className="rpi-card";t.className="rpi-flash-card";
m.className="rpi-x";A=!1;w=!0;m.onclick=y.hide}},hide:function(){let e=JSON.parse(sessionStorage.getItem(g)||"{}");e.hide=!0;sessionStorage.setItem(g,JSON.stringify(e));clearTimeout(D);q.className="rpi-flash-content"},nextStory:function(e,l,B,E){t.style.height="auto";h.style.setProperty("--flash-height","auto");if(l.firstChild){e=E[B];E=l.getElementsByClassName("rpi-flash-img");const F=l.getElementsByClassName("rpi-flash-head"),G=l.getElementsByClassName("rpi-flash-body"),H=l.getElementsByClassName("rpi-flash-footer");
d.flash_user_photo&&E.length&&(E[0].innerHTML=y.img(e));F.length&&(F[0].innerHTML=y.head(e));G.length&&(G[0].innerHTML=y.body(e));H.length&&(H[0].innerHTML=y.footer(e));l.setAttribute("data-idx",B+1)}else l.innerHTML=y.createStory(B,E);setTimeout(function(){h.style.setProperty("--flash-height",l.offsetHeight+"px");t.style.height=""},1)},createStory:function(e,l){e=l[e];return(d.flash_hide_logo&&!d.flash_user_photo?"":'<div class="rpi-flash-img">'+y.img(e)+"</div>")+'<div class="rpi-info"><div class="rpi-flash-head">'+
y.head(e)+'</div><div class="rpi-flash-body">'+y.body(e)+'</div><div class="rpi-flash-footer">'+y.footer(e)+"</div></div>"},img:function(e){return d.flash_user_photo?'<img src="'+e.author_avatar+'" class="rpi-img" alt="'+e.author_name+'" width="44" height="44">':rpi.Flash.LOGO},head:function(e){return d.flash_head?y.temp(e,d.flash_head):y.photo(e,16,16)+(d.hide_name?"":y.name(e))+"<span> "+d.text.m1.replace("%s",'<span class="rpi-flash-rating rpi-star">'+e.rating+"</span>")+"</span>"},body:function(e){return d.flash_body?
y.temp(e,d.flash_body):rpi.View.stars(e.rating,e.provider)+d.text.m2+y.provider(e)},footer:function(e){return d.flash_footer?y.temp(e,d.flash_footer):d.disable_review_time?"":r.time(e.time)},name:function(e){return'<span class="rpi-flash-name">'+e.author_name+"</span> "},star:function(e){return'<span class="rpi-flash-rating rpi-star">'+e.rating+"</span>"},provider:function(e){return'<span class="rpi-logo rpi-logo-'+e.provider+'"></span>'},photo:function(e,l,B){return d.flash_user_photo||d.hide_avatar?
"":'<span class="rpi-flash-photo">'+y.photoImg(e,l,B)+"</span>"},photoImg:function(e,l,B){return'<img src="'+e.author_avatar+'" class="rpi-img" alt="'+e.author_name+'" width="'+l+'" height="'+B+'">'},temp:function(e,l){return decodeURIComponent(l).replace("{{review_rating}}",y.star(e)).replace("{{review_stars}}",rpi.View.stars(e.rating,e.provider)).replace("{{review_text}}",r.trimtext(e.text,!0)).replace("{{review_time}}",r.time(e.time)).replace("{{review_provider}}",y.provider(e)).replace("{{review_name}}",
y.name(e)).replace("{{review_name_url}}",e.author_url).replace("{{review_photo}}",y.photo(e,16,16))}}};rpi=rpi||{};
rpi.Slider=function(a,b,d,g){a.getAttribute("data-id");const h=a.getElementsByClassName(d.cnt)[0],q=a.getElementsByClassName(d.content)[0],m=q.getElementsByClassName(d.cards)[0],t=q.getElementsByClassName(d.dotsWrap)[0],n=q.getElementsByClassName(d.dots)[0],f=parseInt(m.getAttribute("data-count"));var c=null,k=q.getElementsByClassName(d.card),r="",p="",v=null,w=null,A=null,C=null,z=!1,u=!1,D=0,y=0;return c={init:function(e,l){rpi.Utils.isVisible(h)?(e&&e(),c.resize(),c.actions(),k.length&&c.swipeAutoStart(),
l&&l(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(c)):setTimeout(c.init,300)},resize:function(e){let l=g.column.resize(),B=g.column.getCol();e&&m.scrollLeft!=e*c.reviewWidth()&&m.scrollTo(k[e].offsetLeft,0);!k.length||r==l&&p==B||(c.hasDots()&&(c.dotsInit(),c.dotSwipe(e,!0)),r=l,p=B)},actions:function(){b.mousestop&&c.addMouseEvents();window.addEventListener("resize",c.resizeListener);m&&(m.addEventListener("scroll",c.scrollListener,!1),b.wheelscroll&&q.addEventListener("wheel",c.wheelListener,
!1));var e=h.getElementsByClassName(d.btnPrev)[0];e&&(e.onclick=function(l){c.btnClick(-1)});if(e=h.getElementsByClassName(d.btnNext)[0])e.onclick=function(l){c.btnClick(1)}},resizeListener:function(){var e=y;clearTimeout(v);v=setTimeout(c.resize,150,e)},scrollListener:function(){clearTimeout(w);clearTimeout(A);A=setTimeout(c.scrollEnd,150)},wheelListener:function(e){var l=e.target;if((l=-1<l.className.indexOf(d.text)?l:-1<l.parentNode.className.indexOf(d.text)?l.parentNode:null)&&l.scrollHeight>
l.clientHeight)return!0;e.preventDefault();D++;clearTimeout(C);C=setTimeout(c.wheelEnd,150,e)},addMouseEvents:function(){h.addEventListener("mouseover",c.mouseOver,!1);h.addEventListener("mouseleave",c.mouseLeave,!1)},delMouseEvents:function(){h.removeEventListener("mouseover",c.mouseOver);h.removeEventListener("mouseleave",c.mouseLeave)},mouseOver:function(){z=1;c.swipeAutoStop()},mouseLeave:function(){z=0;c.swipeAutoStart()},btnClick:function(e){c.swipeManual(e*c.swipePerBtn())},wheelEnd:function(e){c.swipeManual(Math.sign(e.wheelDelta)*
D*c.swipeStep());D=0},scrollEnd:function(){y=c.reviewsIdx();u?u=!1:c.loadNextReviews();(!b.mousestop||z)&&b.mousestop||(!b.clickstop||u)&&b.clickstop||c.swipeAutoStart();c.hasDots()&&c.dotSwipe(void 0,!0)},loadNextReviews:function(e){e=e?c.reviewsIdx()+parseInt(e):c.hasDots()?(e=n.getElementsByClassName("active")[0])?parseInt(e.getAttribute("data-index"))*c.swipePerDot():c.reviewsIdx():c.reviewsIdx();e=c.getAjaxSize(e);0<e&&g.view.loadNextReviews(e)},getAjaxSize:function(e){let l=0;const B=parseInt(m.getAttribute("data-offset")),
E=parseInt(b.pagination);if(f>B){let F=e-B;Math.abs(F)<3*c.swipePerDot()?l=E:F&&(l=Math.ceil(e/E)*E-B)}e=B+l-f;return 0<e?l-e:l},dotsInit:function(){if(n){var e=Math.round(f/c.swipePerDot());n.innerHTML="";for(let l=0;l<e;l++){let B=document.createElement("div");B.className=d.dot;B.setAttribute("data-index",l);B.setAttribute("title",l);B.onclick=c.dotClick;n.appendChild(B)}c.dotsPadding()}},dotClick:function(){let e=parseInt(this.getAttribute("data-index"));var l=n.getElementsByClassName("active")[0];
l=parseInt(l.getAttribute("data-index"));c.swipeManual(Math.abs(e-l)*c.swipePerDot()*Math.sign(e-l))},dotsPadding:function(){let e=t.getBoundingClientRect().height;h.style.paddingBottom=e+"px"},dotSwipe:function(e,l){e=Math.round((void 0!==e?e:c.reviewsIdx())/c.swipePerDot());e=0>e?0:e>=n.childNodes.length?n.childNodes.length-1:e;e=n.querySelector("."+d.dot+'[data-index="'+e+'"]');let B=n.getElementsByClassName("active")[0];c.dotActivate(B,e);c.dotScroll(e,l)},dotScroll:function(e,l){let B=Math.round(n.scrollWidth/
n.childNodes.length),E=Math.floor(Math.round(n.offsetWidth/B)/2);l?n.scrollTo(e.offsetLeft-E*B,0):n.scrollTo({left:e.offsetLeft-E*B,behavior:"smooth"})},dotActivate:function(e,l){e&&(e.classList.remove("active"),e.classList.remove("s1"),e.previousSibling&&(e.previousSibling.classList.remove("s2"),e.previousSibling.previousSibling&&e.previousSibling.previousSibling.classList.remove("s3")),e.nextSibling&&(e.nextSibling.classList.remove("s2"),e.nextSibling.nextSibling&&e.nextSibling.nextSibling.classList.remove("s3")));
l&&(l.classList.add("active"),l.classList.add("s1"),l.previousSibling&&(l.previousSibling.classList.add("s2"),l.previousSibling.previousSibling&&l.previousSibling.previousSibling.classList.add("s3")),l.nextSibling&&(l.nextSibling.classList.add("s2"),l.nextSibling.nextSibling&&l.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(e){u=!0;c.loadNextReviews(e);c.scroll(e);b.clickstop&&(c.swipeAutoStop(),c.delMouseEvents())},swipeAuto:function(){if(c.isScrollEnd())c.scroll(-(f-c.reviewsPerView()));
else{let e=c.swipeStep()<c.reviewsAhead()?c.swipeStep():c.reviewsAhead();c.scroll(e)}c.swipeAutoStart()},scroll:function(e){e=c.reviewsIdx()+parseInt(e);let l=rpi.Utils.isRTL()?e+c.reviewsPerView()-1:e;l=0>l?0:l>=k.length?k.length-1:l;-1<l&&l<k.length&&(m.scrollTo({left:k[l].offsetLeft,behavior:"smooth"}),c.hasDots()&&c.dotSwipe(e))},swipeAutoStart:function(){b.autoplay&&(w=setTimeout(c.swipeAuto,1E3*parseInt(b.speed)))},swipeAutoStop:function(){clearTimeout(w);A&&setTimeout(function(){clearTimeout(A)},
100)},isScrollEnd:function(){var e=m.querySelector("."+d.card+":last-child"),l=e.getBoundingClientRect();e=e.parentNode.getBoundingClientRect();return(2>Math.abs(e.left-l.left)||e.left<=l.left)&&l.left<e.right&&(2>Math.abs(e.right-l.right)||e.right>=l.right)&&l.right>e.left},swipeStep:function(){return b.swipe_step||c.reviewsPerView()},swipePerBtn:function(){return b.swipe_per_btn||c.reviewsPerView()},swipePerDot:function(){return b.swipe_per_dot||c.reviewsPerView()},reviewWidth:function(){return Math.round(m.scrollWidth/
k.length)},reviewHeight:function(){return k[0].offsetHeight},reviewsPerView:function(){return Math.round(m.offsetWidth/c.reviewWidth())},reviewsIdx:function(){let e=rpi.Utils.isRTL()?-m.scrollLeft:m.scrollLeft;return Math.round(e/c.reviewWidth())},reviewsAhead:function(){return k.length-(c.reviewsIdx()+c.reviewsPerView())},hasDots:function(){return n&&!b.hide_dots&&0<c.swipePerDot()},setBreakpoints:function(e){g.column.setBreakpoints(e);c.resize()},clear:function(){clearTimeout(v);clearTimeout(w);
clearTimeout(A);clearTimeout(C);window.removeEventListener("resize",c.resizeListener);m.removeEventListener("scroll",c.scrollListener);q.removeEventListener("wheel",c.wheelListener)}}};
function rplg_svg(){return'<svg><defs><g id="rp-star" width="17" height="17"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z"></path></g><g id="rp-star-half" width="17" height="17"><path d="M1250 957l257-250-356-52-66-10-30-60-159-322v963l59 31 318 168-60-355-12-66zm452-262l-363 354 86 500q5 33-6 51.5t-34 18.5q-17 0-40-12l-449-236-449 236q-23 12-40 12-23 0-34-18.5t-6-51.5l86-500-364-354q-32-32-23-59.5t54-34.5l502-73 225-455q20-41 49-41 28 0 49 41l225 455 502 73q45 7 54 34.5t-24 59.5z"></path></g><g id="rp-star-o" width="17" height="17"><path d="M1201 1004l306-297-422-62-189-382-189 382-422 62 306 297-73 421 378-199 377 199zm527-357q0 22-26 48l-363 354 86 500q1 7 1 20 0 50-41 50-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="#ccc"></path></g><g id="rp-logo-g" height="44" width="44" fill="none" fill-rule="evenodd"><path d="M482.56 261.36c0-16.73-1.5-32.83-4.29-48.27H256v91.29h127.01c-5.47 29.5-22.1 54.49-47.09 71.23v59.21h76.27c44.63-41.09 70.37-101.59 70.37-173.46z" fill="#4285f4"></path><path d="M256 492c63.72 0 117.14-21.13 156.19-57.18l-76.27-59.21c-21.13 14.16-48.17 22.53-79.92 22.53-61.47 0-113.49-41.51-132.05-97.3H45.1v61.15c38.83 77.13 118.64 130.01 210.9 130.01z" fill="#34a853"></path><path d="M123.95 300.84c-4.72-14.16-7.4-29.29-7.4-44.84s2.68-30.68 7.4-44.84V150.01H45.1C29.12 181.87 20 217.92 20 256c0 38.08 9.12 74.13 25.1 105.99l78.85-61.15z" fill="#fbbc05"></path><path d="M256 113.86c34.65 0 65.76 11.91 90.22 35.29l67.69-67.69C373.03 43.39 319.61 20 256 20c-92.25 0-172.07 52.89-210.9 130.01l78.85 61.15c18.56-55.78 70.59-97.3 132.05-97.3z" fill="#ea4335"></path><path d="M20 20h472v472H20V20z"></path></g><g id="rp-logo-f" width="30" height="30" transform="translate(23,85) scale(0.05,-0.05)"><path fill="#fff" d="M959 1524v-264h-157q-86 0 -116 -36t-30 -108v-189h293l-39 -296h-254v-759h-306v759h-255v296h255v218q0 186 104 288.5t277 102.5q147 0 228 -12z"></path></g><g id="rp-logo-y" x="0px" y="0px" width="44" height="44" style="enable-background:new 0 0 533.33 533.33;" xml:space="preserve"><path d="M317.119,340.347c-9.001,9.076-1.39,25.586-1.39,25.586l67.757,113.135c0,0,11.124,14.915,20.762,14.915   c9.683,0,19.246-7.952,19.246-7.952l53.567-76.567c0,0,5.395-9.658,5.52-18.12c0.193-12.034-17.947-15.33-17.947-15.33   l-126.816-40.726C337.815,335.292,325.39,331.994,317.119,340.347z M310.69,283.325c6.489,11.004,24.389,7.798,24.389,7.798   l126.532-36.982c0,0,17.242-7.014,19.704-16.363c2.415-9.352-2.845-20.637-2.845-20.637l-60.468-71.225   c0,0-5.24-9.006-16.113-9.912c-11.989-1.021-19.366,13.489-19.366,13.489l-71.494,112.505   C311.029,261.999,304.709,273.203,310.69,283.325z M250.91,239.461c14.9-3.668,17.265-25.314,17.265-25.314l-1.013-180.14   c0,0-2.247-22.222-12.232-28.246c-15.661-9.501-20.303-4.541-24.79-3.876l-105.05,39.033c0,0-10.288,3.404-15.646,11.988   c-7.651,12.163,7.775,29.972,7.775,29.972l109.189,148.831C226.407,231.708,237.184,242.852,250.91,239.461z M224.967,312.363   c0.376-13.894-16.682-22.239-16.682-22.239L95.37,233.079c0,0-16.732-6.899-24.855-2.091c-6.224,3.677-11.738,10.333-12.277,16.216   l-7.354,90.528c0,0-1.103,15.685,2.963,22.821c5.758,10.128,24.703,3.074,24.703,3.074L210.37,334.49   C215.491,331.048,224.471,330.739,224.967,312.363z M257.746,361.219c-11.315-5.811-24.856,6.224-24.856,6.224l-88.265,97.17   c0,0-11.012,14.858-8.212,23.982c2.639,8.552,7.007,12.802,13.187,15.797l88.642,27.982c0,0,10.747,2.231,18.884-0.127   c11.552-3.349,9.424-21.433,9.424-21.433l2.003-131.563C268.552,379.253,268.101,366.579,257.746,361.219z" fill="#D80027"/></g><g id="rp-dots" fill="none" fill-rule="evenodd" width="12" height="12"><circle cx="6" cy="3" r="1" fill="#000"/><circle cx="6" cy="6" r="1" fill="#000"/><circle cx="6" cy="9" r="1" fill="#000"/></g></defs></svg>'}
function simple_star(a,b,d){return'<svg viewBox="0 0 1792 1792" width="17" height="17" '+(d?'style="background:'+d+'"':"")+'><use xlink:href="#rp-star'+a+'" fill="'+b+'"/></svg>'}function simple_stars(a,b){for(var d="",g=1;6>g;g++){var h=a-g;d=0<=h?d+simple_star("",b):-1<h&&0>h?-.75>h?d+simple_star("-o",b):-.25<h?d+simple_star("",b):d+simple_star("-half",b):d+simple_star("-o",b)}return d}
function yelp_stars(a,b,d){var g="";for(let h=0;5>h;h++)g+=simple_star("",b,1<=a-h?d:0<a-h?"linear-gradient(90deg, "+d+" 50%, #bbbac0 50%)":"");return g}function render_stars(a,b,d){switch(b){case "facebook":return simple_stars(a,d||"#3c5b9b");case "yelp":return yelp_stars(a,"#ffffff",d)}return simple_stars(a,d||"#fb8e28")}
function render_logo(a){switch(a){case "google":return'<svg viewBox="0 0 512 512" width="44" height="44"><use xlink:href="#rp-logo-g"/></svg>';case "facebook":return'<svg viewBox="0 0 100 100" width="44" height="44" data-provider="f"><use xlink:href="#rp-logo-f"/></svg>';case "yelp":return'<svg viewBox="0 0 533.33 533.33" width="44" height="44"><use xlink:href="#rp-logo-y"/></svg>'}}
function render_rplg_logo(a){return"summary"==a?"":'<span class="rplg-social-logo rplg-'+a+'-logo">'+render_logo(a)+"</span>"}function _rplg_add_svg(){var a=document.getElementById("rplg-svg");a||(a=document.createElement("span"),a.id="rplg-svg",a.style.display="none",a.innerHTML=rplg_svg(),document.body.appendChild(a))}
function _rplg_init_svg(a){_rplg_add_svg();for(var b=a.querySelectorAll(".rplg-stars"),d=0;d<b.length;d++){var g=b[d].getAttribute("data-info").split(",");b[d].innerHTML=render_stars(g[0],g[1],g[2])}b=a.querySelectorAll(".rplg [data-badge]");for(d=0;d<b.length;d++)b[d].innerHTML=render_rplg_logo(b[d].getAttribute("data-badge"));a=a.querySelectorAll(".rplg [data-logo]");for(d=0;d<a.length;d++)a[d].innerHTML=render_logo(a[d].getAttribute("data-logo"))}
function _rplg_badge_init(a){var b=-1<a.querySelector(".rplg-badge-cnt").className.indexOf("-fixed");b&&document.body.appendChild(a);a=a.querySelectorAll(".rplg-badge2");for(var d=document.createElement("div"),g=0;g<a.length;g++){var h=a[g],q=h.getAttribute("data-provider"),m="badge_float_"+q,t=sessionStorage.getItem(m),n=h.querySelector(".rplg-badge-logo"),f=h.querySelector(".rplg-badge2-btn"),c=h.querySelector(".rplg-badge2-close"),k=h.querySelector(".rplg-form");(function(r,p,v,w,A,C,z,u){b&&(r.style.display=
"block");z&&(v&&JSON.parse(v).hide&&(r.style.display="none"),z.onclick=function(){r.style.display="none";var D=JSON.parse(sessionStorage.getItem(p)||"{}");D.hide=!0;sessionStorage.setItem(p,JSON.stringify(D))});A&&"summary"!=w&&!A.querySelector("img")&&(A.innerHTML=render_logo(w));u&&(C.onclick=function(){u.style.display="block"},d.appendChild(u),u.querySelector(".wp-google-wr").hasChildNodes()&&u.setAttribute("data-btn","1"))})(h,m,t,q,n,f,c,k)}d.hasChildNodes()&&(d.className="rplg",document.body.appendChild(d))}
function rplg_next_reviews(a){var b=this.parentNode;reviews=b.querySelectorAll(".rplg .rplg-hide");for(var d=0;d<a&&d<reviews.length;d++)reviews[d]&&(reviews[d].className=reviews[d].className.replace("rplg-hide",""));reviews=b.querySelectorAll(".rplg .rplg-hide");1>reviews.length&&b.removeChild(this);return!1}function rplg_leave_review_window(){_rplg_popup(this.getAttribute("href"),620,500);return!1}
function _rplg_lang(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()}
function _rplg_popup(a,b,d){var g=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+b+", height="+d+", top="+((window.innerHeight?window.innerHeight:g.clientHeight?g.clientHeight:screen.height)/2-d/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:g.clientWidth?g.clientWidth:screen.width)/2-b/2+(void 0!=window.screenLeft?window.screenLeft:window.screenX)));window.focus&&a.focus();return a}
function _rplg_init_timeago(a){a=a.querySelectorAll(".rplg [data-time]");for(var b=0;b<a.length;b++){var d=1E3*parseInt(a[b].getAttribute("data-time"));a[b].innerHTML=rpi.Time.getTime(d,_rplg_lang(),"ago")}}function _rplg_read_more(a){a=a.querySelectorAll(".rplg-more-toggle");for(var b=0;b<a.length;b++)(function(d){d.onclick=function(){d.parentNode.removeChild(d.previousSibling.previousSibling);d.previousSibling.className="";d.textContent=""}})(a[b])}
function _rplg_init_slider(a,b){if(!window.Rplgsw)return setTimeout(function(){_rplg_init_slider(a,b)},200);var d=a.querySelector(".rplgsw-container"),g={loop:!0,autoplay:parseInt(b.speed),effect:b.effect,slidesPerView:parseInt(b.count),spaceBetween:parseInt(b.space),autoHeight:!0,fade:{crossFade:!0},breakpoints:{},onInit:function(h){setTimeout(function(){window.dispatchEvent(new Event("resize"))},500)}};b.pagin&&(g.paginationClickable=!0,g.pagination=".rplgsw-pagination");b.nextprev&&(g.nextButton=
a.querySelector(".rplg-slider-next"),g.prevButton=a.querySelector(".rplg-slider-prev"));g.breakpoints[b.mobileBreakpoint]={slidesPerView:parseInt(b.mobileCount),spaceBetween:10};g.breakpoints[b.tabletBreakpoint]={slidesPerView:parseInt(b.tabletCount),spaceBetween:20};g.breakpoints[b.desktopBreakpoint]={slidesPerView:parseInt(b.desktopCount),spaceBetween:30};return new Rplgsw(d,g)}
function _rplg_init_sliderlite(a,b){function d(){var p=a.querySelector(".grw-slider .grw-row");p.className=510>p.offsetWidth?"grw-row grw-row-xs":750>p.offsetWidth?"grw-row grw-row-x":1100>p.offsetWidth?"grw-row grw-row-s":1450>p.offsetWidth?"grw-row grw-row-m":1800>p.offsetWidth?"grw-row grw-row-l":"grw-row grw-row-xl";f.length&&setTimeout(g,200)}function g(){var p=a.querySelector(".grw-slider-reviews"),v=a.querySelectorAll(".grw-slider-review"),w=Math.round(p.offsetWidth/v[0].offsetWidth),A=Math.ceil(v.length/
w),C=a.querySelector(".grw-slider-dots");if(C){C.innerHTML="";for(var z=0;z<A;z++){var u=document.createElement("div");u.className="grw-slider-dot";x=Math.ceil((p.scrollLeft+(p.scrollLeft+v[0].offsetWidth*w))/2*A/p.scrollWidth);x==z+1&&(u.className="grw-slider-dot active");u.setAttribute("data-index",z+1);u.setAttribute("data-visible",w);C.appendChild(u);u.onclick=function(){var D=a.querySelector(".grw-slider-dot.active");D=parseInt(D.getAttribute("data-index"));var y=parseInt(this.getAttribute("data-index")),
e=parseInt(this.getAttribute("data-visible"));D<y?h(e*Math.abs(y-D)):n.scrollBy(-f[0].offsetWidth*e*Math.abs(y-D),0);a.querySelector(".grw-slider-dot.active").className="grw-slider-dot";this.className="grw-slider-dot active";k&&clearInterval(k)}}}}function h(p){n.scrollBy(f[0].offsetWidth*p,0)}function q(){var p=a.querySelector(".grw-slider-review:last-child"),v=p.getBoundingClientRect();p=p.parentNode.getBoundingClientRect();(2>Math.abs(p.left-v.left)||p.left<=v.left)&&v.left<p.right&&(2>Math.abs(p.right-
v.right)||p.right>=v.right)&&v.right>p.left?n.scrollBy(-n.scrollWidth,0):h(1);k=setTimeout(q,t)}const m=a.querySelector(".grw-slider"),t=1E3*b.speed,n=a.querySelector(".grw-slider-reviews"),f=a.querySelectorAll(".grw-slider-review");var c=null,k=null,r=function(){(m.offsetWidth||m.offsetHeight||m.getClientRects().length)&&"hidden"!==window.getComputedStyle(m).visibility?(d(),f.length&&setTimeout(q,t)):setTimeout(r,300)};r();window.addEventListener("resize",function(){clearTimeout(c);c=setTimeout(function(){d()},
150)});n.addEventListener("scroll",function(){setTimeout(g,200)});if(b=a.querySelector(".grw-slider-prev"))b.onclick=function(){n.scrollBy(-f[0].offsetWidth,0);k&&clearInterval(k)};if(b=a.querySelector(".grw-slider-next"))b.onclick=function(){h(1);k&&clearInterval(k)}}
function _rplg_init_flash(a,b){var d="flash_"+a.getAttribute("data-id");if(!sessionStorage.getItem(d)){var g=0,h=!1,q=!1,m=[],t=a.querySelector(".rplg-flash-content"),n=t.querySelector(".rplg-flash-x"),f=t.querySelector(".rplg-flash-card"),c=t.querySelector(".rplg-flash-story"),k=1E3*(b.flash_start||3),r=1E3*(b.flash_visible||5),p=1E3*(b.flash_invisible||5),v=null;document.body.appendChild(a);for(var w=a.querySelectorAll(".rplg-form-review"),A=0;A<w.length;A++){var C=w[A],z=C.querySelector(".rplg-stars").getAttribute("data-info").split(",");
if(b.disable_review_time)var u="";else u=C.querySelector(".rplg-review-time"),u=b.time_format?u.innerText:u.getAttribute("data-time");m.push({avatar:b.hide_avatar?"":C.querySelector(".rplg-review-avatar").getAttribute("src"),author_name:b.hide_name?"":C.querySelector(".rplg-review-name").getAttribute("title"),time:u,rating:z[0],provider:z[1]})}var D=function(e){h||q||(_rplg_flashnext(a,c,g,m,b),t.className="rplg-flash-content rplg-flash-visible",g=g+1<m.length?g+1:0);q=!1;v=setTimeout(function(){var l;
if(l=!h)l=t.parentElement.querySelector(":hover")!==t;l&&!q&&(t.className="rplg-flash-content");v=setTimeout(D,p)},r)};setTimeout(D,k);var y=function(){var e=JSON.parse(sessionStorage.getItem(d)||"{}");e.hide=!0;sessionStorage.setItem(d,JSON.stringify(e));clearTimeout(v);t.className="rplg-flash-content"};n.onclick=y;c.onclick=function(){h=!0;var e=f.querySelector(".rplg-row").getAttribute("data-idx"),l=f.querySelector('.rplg-form-review[data-idx="'+e+'"]');l.className="rplg-form-review rplg-highlight";
setTimeout(function(){l.scrollIntoView({behavior:"smooth",block:"center"})},300);f.className="rplg-flash-card rplg-flash-expanded";t.className="rplg-flash-content rplg-flash-visible";n.innerHTML='<svg viewBox="0 0 86.001 86.001"><path style="fill:#030104" d="M5.907,21.004c-1.352-1.338-3.542-1.338-4.894,0c-1.35,1.336-1.352,3.506,0,4.844l39.54,39.15   c1.352,1.338,3.542,1.338,4.894,0l39.54-39.15c1.351-1.338,1.352-3.506,0-4.844c-1.352-1.338-3.542-1.338-4.894-0.002L43,56.707   L5.907,21.004z"></path></svg>';
n.onclick=function(){l.className="rplg-form-review";f.className="rplg-flash-card";h=!1;q=!0;n.innerHTML="\u00d7";n.onclick=y}}}}
function _rplg_flashnext(a,b,d,g,h){b.firstChild?(a=g[d],b.querySelector(".rplg-row").setAttribute("data-idx",d),h.flash_user_photo?b.querySelector(".rplg-flash-img").innerHTML='<img src="'+a.avatar+'" class="rplg-review-avatar" alt="'+a.author_name+'" width="44" height="44">':h.hide_avatar||(b.querySelector(".rplg-flash-photo").innerHTML='<img src="'+a.avatar+'" class="rplg-review-avatar" alt="'+a.author_name+'" width="16" height="16">'),h.hide_name||(b.querySelector(".rplg-flash-name").innerHTML=
a.author_name),b.querySelector(".rplg-flash-rating").innerHTML=parseInt(a.rating),b.querySelector(".rplg-flash-stars").innerHTML=_rplg_flashtext(a,h),h.disable_review_time||(b.querySelector(".rplg-flash-time").innerHTML=h.time_format?a.time:rpi.Time.getTimeAgo(1E3*a.time,_rplg_lang(),"ago"))):b.innerHTML=_rplg_flashstory(d,g,h)}
function _rplg_flashstory(a,b,d){b=b[a];return'<div class="rplg-row" data-idx="'+a+'">'+(d.flash_hide_logo&&!d.flash_user_photo?"":'<div class="rplg-row-left"><div class="rplg-flash-img">'+(d.flash_user_photo?'<img src="'+b.avatar+'" class="rplg-review-avatar" alt="'+b.author_name+'" width="44" height="44">':'<span style="position:relative;display:inline-block;margin:0 6px 0 0;vertical-align: middle;"><svg viewBox="0 0 1792 1792" width="44" height="44"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="#FFAF02"></path></svg><span style="position:absolute;bottom:0px;right:0px;width:26px;height:26px;background:#fff;border-radius:50%;border:4px solid #212121"></span><svg width="25" height="25" viewBox="0 0 1792 1792" style="position:absolute;bottom:0;right:0;border-radius:50%;background:#fff"><path d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z" fill="#8cc976"></path></svg></span>')+
"</div></div>")+'<div class="rplg-row-right"><div class="rplg-flash-text">'+(d.flash_user_photo||d.hide_avatar?"":'<span class="rplg-flash-photo"><img src="'+b.avatar+'" class="rplg-review-avatar" alt="'+b.author_name+'" width="16" height="16"></span>')+(d.hide_name?"":'<span class="rplg-flash-name">'+b.author_name+"</span> ")+"<span> "+d.text.m1.replace("%s",'<span class="rplg-flash-rating">'+b.rating+"</span>")+'</span></div><div class="rplg-flash-stars">'+_rplg_flashtext(b,d)+'</div><div class="rplg-flash-footer">'+
(d.disable_review_time?"":'<span class="rplg-flash-time">'+(d.time_format?b.time:rpi.Time.getTimeAgo(1E3*b.time,_rplg_lang(),"ago"))+"</span>")+'<span class="rplg-flash-power"></span></div></div></div>'}
function _rplg_flashtext(a,b){var d=[a.rating,a.provider,"#ffa318"].join();return'<span class="rplg-flash-star rplg-stars" data-provider="'+a.provider+'" data-info="'+d+'">'+render_stars(a.rating,a.provider)+"</span> "+b.text.m2+' <span class="rplg-flash-logo" data-provider="'+a.provider+'">'+render_logo(a.provider)+"</span>"}function _rplg_get_parent(a,b){b=b||"rplg";if(0>a.className.split(" ").indexOf(b))for(;(a=a.parentElement)&&0>a.className.split(" ").indexOf(b););return a}
function rplg_init(a,b){a=_rplg_get_parent(a,"rplg");var d=a.querySelector("img[data-exec]");if("true"==d.getAttribute("data-exec"))return a;_rplg_init_svg(a);_rplg_init_timeago(a);_rplg_read_more(a);b&&b(a);d.setAttribute("data-exec","true");return a}function rplg_init_slider_theme(a,b){rplg_init(a,function(d){_rplg_init_slider(d,b)})}function rplg_init_sliderlite_theme(a,b){rplg_init(a,function(d){_rplg_init_sliderlite(d,b)})}function rplg_init_grid_theme(a){rplg_init(a)}
function rplg_init_list_theme(a){rplg_init(a)}function rplg_init_badge_theme(a){rplg_init(a,function(b){_rplg_badge_init(b)})}function rplg_init_temp_theme(a){rplg_init(a)}function rplg_init_flash_theme(a,b){rplg_init(a,function(d){_rplg_init_flash(d,b)})}
document.addEventListener("DOMContentLoaded",function(){for(var a=document.querySelectorAll('.rplg img[data-exec="false"]'),b=0;b<a.length;b++){var d=a[b];if("false"==d.getAttribute("data-exec")){var g=d.getAttribute("data-func"),h=d.getAttribute("data-args");h=h?JSON.parse(h):h;window[g](d.parentNode,h)}}});
var RichPlugins=RichPlugins||{Tag:function(a,b){const d=a.getAttribute("data-id");b=a.getElementsByClassName("rpi-tag-cnt")[0];const g=JSON.parse(b.getAttribute("data-opts"));var h=null;return h={init:function(){var q=a.querySelector(".rpi-stars[data-reviewus]");q&&(h.starsInit(q),q.onclick=function(m){m="svg"==m.target.tagName?m.target:m.target.parentNode;m=[...m.parentNode.children].indexOf(m);rpi.Utils.popup(2<m?this.getAttribute("data-reviewus"):"https://app.richplugins.com/feedback?s="+m,800,
600)});0<g.tag_popup&&setTimeout(function(){a.className+=" rpi-pop-up"},1E3*g.tag_popup);if("sidebar"==g.tag_click){q="rpi-tag-sidebar-"+d;let m=document.getElementById(q);m||(m=document.createElement("div"),m.id=q,m.className="rpi",m.innerHTML='<div class="rpi-sb" data-layout="'+g.tag_sidebar+'" style="display:none;width:0"><div class="rpi-sbb"></div><div class="rpi-sbc rpi-scroll"><div class="rpi-sbci"></div></div><div class="rpi-sbx"></div></div>',document.body.appendChild(m));let t=m.getElementsByClassName("rpi-sb")[0];
t.getElementsByClassName("rpi-sbx")[0].onclick=function(n){rpi.View.widthAnim(t,368,300)};a.onclick=function(n){rpi.View.widthAnim(t,368,300);let f=t.getElementsByClassName("rpi-sbci")[0];""==f.innerHTML&&rpi.Utils.ajax(brb_vars.ajaxurl+"?action=brb_embed&brb_collection_id="+d+"&brb_view_mode="+g.tag_sidebar,"POST",function(c){f.innerHTML=c.data;RichPlugins.init(f.querySelector('.rpi[data-exec=""]'))})}}console.log("RichPlugins Tag initialized")},starsInit:function(q){let m=q.getAttribute("data-info").split(",");
q.innerHTML=render_stars(m[0],m[1],m[2])}}},Flash:function(a,b){return This={init:function(){rpi.Flash(a,b)}}},List:function(a,b){const d=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),g=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),h=rpi.View(a,b,{common:d}),q=a.querySelector(".rpi-content .rpi-cards");var m=null;return m={init:function(){d.init();g.init();h.init();m.actions();console.log("RichPlugins List initialized")},actions:function(){var t=a.getElementsByClassName("rpi-url")[0];
t&&(t.onclick=function(){h.loadNextReviews(b.pagination,function(){let n=parseInt(q.getAttribute("data-count"));parseInt(q.getAttribute("data-offset"))>=n&&rpi.Utils.rm(t)});return!1})}}},Slider:function(a,b){const d=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),g=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),h=rpi.View(a,b,{common:d});b=a.getElementsByClassName("rpi-cnt")[0];b=JSON.parse(b.getAttribute("data-opts"));const q=rpi.Slider(a,b,{cnt:"rpi-cnt",
col:"rpi-col",content:"rpi-content",cards:"rpi-cards",card:"rpi-card",text:"rpi-text",btnPrev:"rpi-slider-prev",btnNext:"rpi-slider-next",dotsWrap:"rpi-dots-wrap",dots:"rpi-dots",dot:"rpi-dot"},{view:h,column:g});return{init:function(){q.init(function(){d.init()},function(){h.init();console.log("RichPlugins slider initialized")})}}},init:function(a){a.setAttribute("data-exec","1");let b=JSON.parse(a.getAttribute("data-opts")),d=rpi.Utils.capit(b.layout);"List"==d||"Grid"==d?RichPlugins.List(a,b).init():
RichPlugins[d](a,b).init()}};document.addEventListener("DOMContentLoaded",function(){const a=document.querySelectorAll('.rpi[data-exec=""]');if(a.length){rpi.Utils.clear();for(var b=0;b<a.length;b++)RichPlugins.init(a[b])}});