try{var rpi=rpi||{};rpi.Time={getTime:function(a,c,e){return"chat"==e?this.getChatTime(a,c||"en"):e?this.getFormatTime(a,e,c||"en"):this.getDefaultTime(a,c||"en")},getChatTime:function(a,c){var e=((new Date).getTime()-a)/1E3/60/60,f=e/24;return 24>e?this.getFormatTime(a,"HH:mm",c):365>f?this.getFormatTime(a,"dd.MM HH:mm",c):this.getFormatTime(a,"yyyy.MM.dd HH:mm",c)},getDefaultTime:function(a,c){return this.getTimeAgo(a,c)},getTimeAgo:function(a,c){a=((new Date).getTime()-a)/1E3;var e=a/60,f=e/60,g=f/24,l=g/365;c=rpi.Time.Messages[c]?c:"en";return 45>a?rpi.Time.Messages[c].second:90>a?rpi.Time.Messages[c].minute:45>e?rpi.Time.Messages[c].minutes(e):90>e?rpi.Time.Messages[c].hour:24>f?rpi.Time.Messages[c].hours(f):48>f?rpi.Time.Messages[c].day:30>g?rpi.Time.Messages[c].days(g):60>g?rpi.Time.Messages[c].month:365>g?rpi.Time.Messages[c].months(g):2>l?rpi.Time.Messages[c].year:rpi.Time.Messages[c].years(l)},getTime12:function(a,c){a=new Date(a);return(a.getHours()%12?a.getHours()%12:12)+":"+a.getMinutes()+(12<=a.getHours()?" PM":" AM")},getFormatTime:function(a,c,e){var f=new Date(a),g={SS:f.getMilliseconds(),ss:f.getSeconds(),mm:f.getMinutes(),HH:f.getHours(),hh:(f.getHours()%12?f.getHours()%12:12)+(12<=f.getHours()?"PM":"AM"),dd:f.getDate(),MM:f.getMonth()+1,yyyy:f.getFullYear(),yy:String(f.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,e),12:this.getTime12(a,e)};return c.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(l,k){l=g[k];return 10>l?"0"+l:l})},declineNum:function(a,c,e,f){return a+" "+
this.declineMsg(a,c,e,f)},declineMsg:function(a,c,e,f,g){var l=a%10;return 1==l&&(1==a||20<a)?c:1<l&&5>l&&(20<a||10>a)?e:a?f:g}};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,c){return c&&c[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,c){c=c||"rplg";if(0>a.className.split(" ").indexOf(c))for(;(a=a.parentElement)&&0>a.className.split(" ").indexOf(c););return a},lang:function(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()},popup:function(a,c,e){var f=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+c+", height="+e+", top="+((window.innerHeight?window.innerHeight:f.clientHeight?f.clientHeight:screen.height)/2-e/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:f.clientWidth?f.clientWidth:screen.width)/2-c/2+(void 0!=window.screenLeft?window.screenLeft:window.screenX)));window.focus&&a.focus();return a},ajax:function(a,c,e){const f=new XMLHttpRequest;f.open(c,a,!0);f.setRequestHeader("Content-Type","application/json");f.onreadystatechange=function(){f.readyState!==XMLHttpRequest.DONE&&f.readyState!==f.DONE||200!==f.status||e(JSON.parse(f.responseText))};f.send()},anchor:function(a,c,e){let f=[];e.open_link&&f.push("noopener");e.nofollow_link&&f.push("nofollow");f=f.length?'rel="'+f.join(" ")+'"':"";return'<a href="'+a+'" '+(e.open_link?'target="_blank"':"")+" "+f+">"+c+"</a>"},rm:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},capit:function(a){return a.charAt(0).toUpperCase()+a.slice(1)}};rpi=rpi||{};rpi.Column=function(a,c,e){const f=new RegExp(e.col+"-[xsml]+"),g=new RegExp("$|(."+e.card+"\\s*{\\s*--col:\\s*\\d+\\s*!important\\s*;?(\\s*--gap:\\s*\\d+\\s*!important;?)?})"),l=a.getElementsByClassName(e.cnt)[0];return This={init:function(k,n){rpi.Utils.isVisible(l)?(k&&k(),This.resize(),window.addEventListener("resize",This.resize),n&&n(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(This)):setTimeout(This.init,300)},resize:function(){let k=This.getSize();l.className=l.className.replace(f,e.col+"-"+k);if(c.breakpoints){let n=l.offsetWidth,m=c.breakpoints.split(",");m.sort(This.brsort);for(let r=0;r<m.length;r++){let d=m[r].split(":");if(n<parseInt(d[0])){This.setCol(d[1]);break}}}return k},getSize:function(){let k=l.offsetWidth;return 510>k?"xs":750>k?"x":1100>k?"s":1450>k?"m":1800>k?"l":"xl"},setCol:function(k){let n=this.getStyle();n.innerHTML=n.innerHTML.replace(g,"."+e.card+"{--col:"+k+"!important;--gap:"+(k-1)+"!important}")},getCol:function(){let k=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return k&&1<k.length?k[1]:!1},getStyle:function(){let k=document.getElementById("rpi-style");k||(k=document.createElement("style"),k.id="rpi-style",document.head.appendChild(k));return k},brsort:function(k,n){return parseInt(k.split(":")[0])>parseInt(n.split(":")[0])?1:-1},clear:function(){window.removeEventListener("resize",This.resize)}}};rpi=rpi||{};rpi.Common=function(a,c,e){var f=null;return f={init:function(){var g=a.getElementsByClassName(e.time);let l=a.getElementsByClassName(e.text);for(var k=0;k<g.length;k++)g[k].innerHTML=f.time(g[k].getAttribute("data-time"),c.time_format);for(g=0;g<l.length;g++)(k=l[g])&&k.innerHTML&&(k.innerHTML=f.trimtext(k.innerHTML,c.text_size,c.trans),k=k.getElementsByClassName(e.readmore)[0])&&(k.onclick=f.opentext)},initOnce:function(g){var l=g.getElementsByClassName(e.time)[0];g=g.getElementsByClassName(e.text)[0];l&&(l.innerHTML=f.time(l.getAttribute("data-time"),c.time_format));g&&g.innerHTML&&(g.innerHTML=f.trimtext(g.innerHTML,c.text_size,c.trans),l=g.getElementsByClassName(e.readmore)[0])&&(l.onclick=f.opentext)},time:function(g,l){return l?g:rpi.Time.getTimeAgo(1E3*parseInt(g),rpi.Utils.lang())},trimtext:function(g,l,k){if(g&&l&&g.length>l){var n=g.substring(0,l).indexOf(" ")+1;if(1>n||l-n>l/2)n=l;var m=l="";0<n&&(l=g.substring(0,n-1),m=g.substring(n-1,g.length));return l+(m?'<span class="rpi-s">... </span><input type="hidden" value="'+
m+'"></input><span class="'+e.readmore+'">'+rpi.Utils.__("read more",k)+"</span>":"")}return g},opentext:function(){let g=this.parentNode,l=this.previousSibling,k=this.previousSibling.previousSibling,n=l.value;rpi.Utils.rm(l);rpi.Utils.rm(k);rpi.Utils.rm(this);g.innerHTML+=n}}};rpi=rpi||{};rpi.Slider=function(a,c,e,f){a.getAttribute("data-id");const g=a.getElementsByClassName(e.cnt)[0],l=a.getElementsByClassName(e.content)[0],k=l.getElementsByClassName(e.cards)[0],n=l.getElementsByClassName(e.dotsWrap)[0],m=l.getElementsByClassName(e.dots)[0],r=parseInt(g.getAttribute("data-count"));var d=null,q=l.getElementsByClassName(e.card),B="",C="",x=null,v=null,u=null,y=null,z=!1,w=!1,A=0,D=0;return d={init:function(b,h){rpi.Utils.isVisible(g)?(b&&b(),d.resize(),d.actions(),q.length&&d.swipeAutoStart(),h&&h(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(d)):setTimeout(d.init,300)},resize:function(b){let h=f.column.resize(),p=f.column.getCol();b&&k.scrollLeft!=b*d.reviewWidth()&&k.scrollTo(q[b].offsetLeft,0);!q.length||B==h&&C==p||(d.hasDots()&&(d.dotsInit(),d.dotSwipe(b,!0)),B=h,C=p)},actions:function(){c.mousestop&&d.addMouseEvents();window.addEventListener("resize",d.resizeListener);k&&(k.addEventListener("scroll",d.scrollListener,!1),c.wheelscroll&&l.addEventListener("wheel",d.wheelListener,!1));var b=g.getElementsByClassName(e.btnPrev)[0];b&&(b.onclick=function(h){d.btnClick(-1)});if(b=g.getElementsByClassName(e.btnNext)[0])b.onclick=function(h){d.btnClick(1)}},resizeListener:function(){var b=D;clearTimeout(x);x=setTimeout(d.resize,150,b)},scrollListener:function(){clearTimeout(v);clearTimeout(u);u=setTimeout(d.scrollEnd,150)},wheelListener:function(b){var h=b.target;if((h=-1<h.className.indexOf(e.text)?h:-1<h.parentNode.className.indexOf(e.text)?h.parentNode:null)&&h.scrollHeight>h.clientHeight)return!0;b.preventDefault();A++;clearTimeout(y);y=setTimeout(d.wheelEnd,150,b)},addMouseEvents:function(){g.addEventListener("mouseover",d.mouseOver,!1);g.addEventListener("mouseleave",d.mouseLeave,!1)},delMouseEvents:function(){g.removeEventListener("mouseover",d.mouseOver);g.removeEventListener("mouseleave",d.mouseLeave)},mouseOver:function(){z=1;d.swipeAutoStop()},mouseLeave:function(){z=0;d.swipeAutoStart()},btnClick:function(b){d.swipeManual(b*d.swipePerBtn())},wheelEnd:function(b){d.swipeManual(Math.sign(b.wheelDelta)*A*d.swipeStep());A=0},scrollEnd:function(){D=d.reviewsIdx();w?w=!1:d.loadNextReviews();(!c.mousestop||z)&&c.mousestop||(!c.clickstop||w)&&c.clickstop||d.swipeAutoStart();d.hasDots()&&d.dotSwipe(void 0,!0)},loadNextReviews:function(b){b=b?d.reviewsIdx()+parseInt(b):d.hasDots()?(b=m.getElementsByClassName("active")[0])?parseInt(b.getAttribute("data-index"))*d.swipePerDot():d.reviewsIdx():d.reviewsIdx();b=d.getAjaxSize(b);0<b&&f.view.loadNextReviews(b)},getAjaxSize:function(b){let h=0;const p=parseInt(g.getAttribute("data-offset")),t=parseInt(c.pagination);if(r>p){let E=b-p;Math.abs(E)<3*d.swipePerDot()?h=t:E&&(h=Math.ceil(b/t)*t-p)}b=p+h-r;return 0<b?h-b:h},dotsInit:function(){if(m){var b=Math.round(r/d.swipePerDot());m.innerHTML="";for(let h=0;h<b;h++){let p=document.createElement("div");p.className=e.dot;p.setAttribute("data-index",h);p.setAttribute("title",h);p.onclick=d.dotClick;m.appendChild(p)}d.dotsPadding()}},dotClick:function(){let b=parseInt(this.getAttribute("data-index"));var h=m.getElementsByClassName("active")[0];h=parseInt(h.getAttribute("data-index"));d.swipeManual(Math.abs(b-h)*d.swipePerDot()*Math.sign(b-h))},dotsPadding:function(){let b=n.getBoundingClientRect().height;g.style.paddingBottom=b+"px"},dotSwipe:function(b,h){b=Math.round((void 0!==b?b:d.reviewsIdx())/d.swipePerDot());b=0>b?0:b>=m.childNodes.length?m.childNodes.length-1:b;b=m.querySelector("."+e.dot+'[data-index="'+b+'"]');let p=m.getElementsByClassName("active")[0];d.dotActivate(p,b);d.dotScroll(b,h)},dotScroll:function(b,h){let p=Math.round(m.scrollWidth/m.childNodes.length),t=Math.floor(Math.round(m.offsetWidth/p)/2);h?m.scrollTo(b.offsetLeft-t*p,0):m.scrollTo({left:b.offsetLeft-t*p,behavior:"smooth"})},dotActivate:function(b,h){b&&(b.classList.remove("active"),b.classList.remove("s1"),b.previousSibling&&(b.previousSibling.classList.remove("s2"),b.previousSibling.previousSibling&&b.previousSibling.previousSibling.classList.remove("s3")),b.nextSibling&&(b.nextSibling.classList.remove("s2"),b.nextSibling.nextSibling&&b.nextSibling.nextSibling.classList.remove("s3")));h&&(h.classList.add("active"),h.classList.add("s1"),h.previousSibling&&(h.previousSibling.classList.add("s2"),h.previousSibling.previousSibling&&h.previousSibling.previousSibling.classList.add("s3")),h.nextSibling&&(h.nextSibling.classList.add("s2"),h.nextSibling.nextSibling&&h.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(b){w=!0;d.loadNextReviews(b);d.scroll(b);c.clickstop&&(d.swipeAutoStop(),d.delMouseEvents())},swipeAuto:function(){if(d.isScrollEnd())d.scroll(-(r-d.reviewsPerView()));else{let b=d.swipeStep()<d.reviewsAhead()?d.swipeStep():d.reviewsAhead();d.scroll(b)}d.swipeAutoStart()},scroll:function(b){b=d.reviewsIdx()+parseInt(b);let h=rpi.Utils.isRTL()?b+d.reviewsPerView()-1:b;h=0>h?0:h>=q.length?q.length-1:h;-1<h&&h<q.length&&(k.scrollTo({left:q[h].offsetLeft,behavior:"smooth"}),d.hasDots()&&d.dotSwipe(b))},swipeAutoStart:function(){c.autoplay&&(v=setTimeout(d.swipeAuto,1E3*parseInt(c.speed)))},swipeAutoStop:function(){clearTimeout(v);u&&setTimeout(function(){clearTimeout(u)},100)},isScrollEnd:function(){var b=k.querySelector("."+e.card+":last-child"),h=b.getBoundingClientRect();b=b.parentNode.getBoundingClientRect();return(2>Math.abs(b.left-h.left)||b.left<=h.left)&&h.left<b.right&&(2>Math.abs(b.right-h.right)||b.right>=h.right)&&h.right>b.left},swipeStep:function(){return c.swipe_step||d.reviewsPerView()},swipePerBtn:function(){return c.swipe_per_btn||d.reviewsPerView()},swipePerDot:function(){return c.swipe_per_dot||d.reviewsPerView()},reviewWidth:function(){return Math.round(k.scrollWidth/q.length)},reviewHeight:function(){return q[0].offsetHeight},reviewsPerView:function(){return Math.round(k.offsetWidth/d.reviewWidth())},reviewsIdx:function(){let b=rpi.Utils.isRTL()?-k.scrollLeft:k.scrollLeft;return Math.round(b/d.reviewWidth())},reviewsAhead:function(){return q.length-(d.reviewsIdx()+d.reviewsPerView())},hasDots:function(){return m&&!c.hide_dots&&0<d.swipePerDot()},clear:function(){clearTimeout(x);clearTimeout(v);clearTimeout(u);clearTimeout(y);window.removeEventListener("resize",d.resizeListener);k.removeEventListener("scroll",d.scrollListener);l.removeEventListener("wheel",d.wheelListener)}}};function rplg_badge_init(a,c,e){var f=a.querySelector(".wp-"+c+"-badge"),g=a.querySelector(".wp-"+c+"-form");f&&g&&(a=document.createElement("div"),a.className=e+" wpac",-1<f.className.indexOf("-fixed")&&a.appendChild(f),a.appendChild(g),document.body.appendChild(a),f.onclick=function(){g.style.display="block"})}
function rplg_next_reviews(a,c){var e=this.parentNode,f="."+a+"-review."+a+"-hide";reviews=e.querySelectorAll(f);for(var g=0;g<c&&g<reviews.length;g++)reviews[g]&&(reviews[g].className=reviews[g].className.replace(a+"-hide"," "));reviews=e.querySelectorAll(f);1>reviews.length&&e.removeChild(this);return!1}function rplg_leave_review_window(){rpi.Utils.popup(this.getAttribute("href"),620,500);return!1}
function grw_init(a,c){a=rpi.Utils.getParent(a,"wp-gr");if("true"!=a.getAttribute("data-exec")){a.setAttribute("data-exec","true");var e=JSON.parse(a.getAttribute("data-options")),f=rpi.Common(a,e,{time:"wp-google-time",text:"wp-google-text",readmore:"wp-more-toggle"});e=rpi.Column(a,e,{cnt:"grw-row",col:"grw-row",card:"grw-review"});f.init();if("slider"==c||"grid"==c)c=a.getElementsByClassName("grw-row")[0],c=JSON.parse(c.getAttribute("data-options")),rpi.Slider(a,c,{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:e}).init()}}document.addEventListener("DOMContentLoaded",function(){const a=document.querySelectorAll('.wp-gr[data-exec="false"]');for(let e=0;e<a.length;e++){var c=a[e];grw_init(c,c.getAttribute("data-layout"))}});}catch(e){}
try{/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});}catch(e){}
try{!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}((function(e){"use strict";function t(n,o){var i=this;i.element=n,i.el=e(n),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.timeoutId=null,i.cachedResponse={},i.onChangeTimeout=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=e.extend(!0,{},t.defaults,o),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(o)}var n={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},o=27,i=9,s=13,a=38,r=39,u=40,l=e.noop;t.utils=n,e.Autocomplete=t,t.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(e,t){if(!t)return e.value;var o="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(e,t){return'<div class="autocomplete-group">'+t+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:l,onSearchComplete:l,onSearchError:l,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?JSON.parse(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},t.prototype={initialize:function(){var n,o=this,i="."+o.classes.suggestion,s=o.classes.selected,a=o.options;o.element.setAttribute("autocomplete","off"),o.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),o.suggestionsContainer=t.utils.createNode(a.containerClass),(n=e(o.suggestionsContainer)).appendTo(a.appendTo||"body"),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",i,(function(){o.activate(e(this).data("index"))})),n.on("mouseout.autocomplete",(function(){o.selectedIndex=-1,n.children("."+s).removeClass(s)})),n.on("click.autocomplete",i,(function(){o.select(e(this).data("index"))})),n.on("click.autocomplete",(function(){clearTimeout(o.blurTimeoutId)})),o.fixPositionCapture=function(){o.visible&&o.fixPosition()},e(window).on("resize.autocomplete",o.fixPositionCapture),o.el.on("keydown.autocomplete",(function(e){o.onKeyPress(e)})),o.el.on("keyup.autocomplete",(function(e){o.onKeyUp(e)})),o.el.on("blur.autocomplete",(function(){o.onBlur()})),o.el.on("focus.autocomplete",(function(){o.onFocus()})),o.el.on("change.autocomplete",(function(e){o.onKeyUp(e)})),o.el.on("input.autocomplete",(function(e){o.onKeyUp(e)}))},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){var e=this;e.blurTimeoutId=setTimeout((function(){e.hide()}),200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=e.extend({},n.options,t);n.isLocal=Array.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex}),this.options=o},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);if(o===document.body||t.options.forceFixPosition){var i=t.options.orientation,s=n.outerHeight(),a=t.el.outerHeight(),r=t.el.offset(),u={top:r.top,left:r.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),g=-c+r.top-s,d=c+l-(r.top+a+s);i=Math.max(g,d)===g?"top":"bottom"}if(u.top+="top"===i?-s:a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),u.top-=p.top,u.top+=o.scrollTop,u.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(u.width=t.el.outerWidth()+"px"),n.css(u)}},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==u||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case o:t.el.val(t.currentValue),t.hide();break;case r:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case i:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case s:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case u:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case u:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout((function(){t.onValueChange()}),t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(!this.ignoreValueChange){var t=this,n=t.options,o=t.el.val(),i=t.getQuery(o);return t.selection&&t.currentValue!==i&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(i)?void t.select(0):void(i.length<n.minChars?t.hide():t.getSuggestions(i))}this.ignoreValueChange=!1},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t,n=this.options.delimiter;return n?(t=e.split(n))[t.length-1].trim():e},getSuggestionsLocal:function(t){var n,o=this.options,i=t.toLowerCase(),s=o.lookupFilter,a=parseInt(o.lookupLimit,10);return n={suggestions:e.grep(o.lookup,(function(e){return s(e,t,i)}))},a&&n.suggestions.length>a&&(n.suggestions=n.suggestions.slice(0,a)),n},getSuggestions:function(t){var n,o,i,s,a=this,r=a.options,u=r.serviceUrl;if(r.params[r.paramName]=t,!1!==r.onSearchStart.call(a.element,r.params)){if(o=r.ignoreParams?null:r.params,"function"==typeof r.lookup)return void r.lookup(t,(function(e){a.suggestions=e.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,e.suggestions)}));a.isLocal?n=a.getSuggestionsLocal(t):("function"==typeof u&&(u=u.call(a.element,t)),i=u+"?"+e.param(o||{}),n=a.cachedResponse[i]),n&&Array.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?r.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),s={url:u,data:o,type:r.type,dataType:r.dataType},e.extend(s,r.ajaxSettings),a.currentRequest=e.ajax(s).done((function(e){var n;a.currentRequest=null,n=r.transformResult(e,t),a.processResponse(n,t,i),r.onSearchComplete.call(a.element,t,n.suggestions)})).fail((function(e,n,o){r.onSearchError.call(a.element,t,e,n,o)})))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);"function"==typeof t.options.onHide&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearTimeout(t.onChangeTimeout),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(this.suggestions.length){var t,n=this,o=n.options,i=o.groupBy,s=o.formatResult,a=n.getQuery(n.currentValue),r=n.classes.suggestion,u=n.classes.selected,l=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="",p=function(e,n){var s=e.data[i];return t===s?"":(t=s,o.formatGroup(e,t))};return o.triggerSelectOnValidInput&&n.isExactMatch(a)?void n.select(0):(e.each(n.suggestions,(function(e,t){i&&(d+=p(t,0)),d+='<div class="'+r+'" data-index="'+e+'">'+s(t,a,e)+"</div>"})),this.adjustContainerWidth(),c.detach(),l.html(d),"function"==typeof g&&g.call(n.element,l,n.suggestions),n.fixPosition(),l.show(),o.autoSelectFirst&&(n.selectedIndex=0,l.scrollTop(0),l.children("."+r).first().addClass(u)),n.visible=!0,void n.findBestHint())}this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this,n=t.options.beforeRender,o=e(t.suggestionsContainer),i=e(t.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),o.empty(),o.append(i),"function"==typeof n&&n.call(t.element,o,t.suggestions),t.fixPosition(),o.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,i=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),i.css("width",t>0?t:300)):"flex"===o.width&&i.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,(function(e,t){var i=0===t.value.toLowerCase().indexOf(n);return i&&(o=t),!i})),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,(function(e){return{value:e,data:null}})):t},validateOrientation:function(t,n){return t=(t||"").trim().toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,i=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),i.noCache||(o.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,i=o.classes.selected,s=e(o.suggestionsContainer),a=s.find("."+o.classes.suggestion);return s.find("."+i).removeClass(i),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(i),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children("."+t.classes.suggestion).first().removeClass(t.classes.selected),t.selectedIndex=-1,t.ignoreValueChange=!1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var i,s,a,r=e(o).outerHeight();i=o.offsetTop,a=(s=e(n.suggestionsContainer).scrollTop())+n.options.maxHeight-r,i<s?e(n.suggestionsContainer).scrollTop(i):i>a&&e(n.suggestionsContainer).scrollTop(i-n.options.maxHeight+r),n.options.preserveInput||(n.ignoreValueChange=!0,n.el.val(n.getValue(n.suggestions[t].value))),n.signalHint(null)}},onSelect:function(e){var t=this,n=t.options.onSelect,o=t.suggestions[e];t.currentValue=t.getValue(o.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.signalHint(null),t.suggestions=[],t.selection=o,"function"==typeof n&&n.call(t.element,o)},getValue:function(e){var t,n,o=this.options.delimiter;return o?1===(n=(t=this.currentValue).split(o)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(n,o){var i="autocomplete";return arguments.length?this.each((function(){var s=e(this),a=s.data(i);"string"==typeof n?a&&"function"==typeof a[n]&&a[n](o):(a&&a.dispose&&a.dispose(),a=new t(this,n),s.data(i,a))})):this.first().data(i)},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)})),jQuery(document).ready((function(e){"use strict";e(".searchform").each((function(){var t=e(this),n=t.find(".live-search-list"),o=t.find("#cat"),i="undefined"!=typeof theme&&theme.ajax_url?theme.ajax_url:"undefined"!=typeof js_porto_vars&&js_porto_vars.ajax_url?js_porto_vars.ajax_url:ajaxurl,s=i+(-1===i.indexOf("?")?"?":"&")+"action=porto_ajax_search_posts&nonce="+porto_live_search.nonce;o.length&&o.val()&&"0"!=o.val()&&(s+="&cat="+o.val()),t.find('input[name="post_type"]').length&&t.find('input[name="post_type"]').val()&&(s+="&post_type="+t.find('input[name="post_type"]').val()),t.find('input[type="text"]').on("focus keyup",(function(){var a=e(this);if(!a.hasClass("porto-search-init")){if(a.devbridgeAutocomplete({minChars:3,appendTo:n,triggerSelectOnValidInput:!1,serviceUrl:s,deferRequestBy:300,onSearchStart:function(){t.find("button").addClass("loading")},onSelect:function(e){-1!=e.id&&"undefined"!=typeof theme&&(window.location.href=e.url)},onHide:function(){n.removeClass("porto-opened")},onSearchComplete:function(){t.find("button").removeClass("loading")},beforeRender:function(t){e(t).removeAttr("style")},formatResult:function(t,o){var i="("+e.Autocomplete.utils.escapeRegExChars(o)+")",s="";return t.img&&"undefined"!=typeof theme&&(s+='<img class="search-image" src="'+t.img+'">'),s+='<div class="search-name">'+t.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>")+"</div>",t.price&&"undefined"!=typeof theme&&(s+='<span class="search-price">'+t.price+"<span>"),n.addClass("porto-opened"),s}}),o.length){var r=a.devbridgeAutocomplete();o.on("change",(function(e){o.val()&&"0"!=o.val()?r.setOptions({serviceUrl:i+(-1===i.indexOf("?")?"?":"&")+"action=porto_ajax_search_posts&cat="+o.val()}):r.setOptions({serviceUrl:i+(-1===i.indexOf("?")?"?":"&")+"action=porto_ajax_search_posts"}),r.hide(),r.onValueChange()}))}a.addClass("porto-search-init")}}))}))}));}catch(e){}
try{(()=>{if(window.TVE_Dash=window.TVE_Dash||{},!e||!e.$j){var a=window.$,e={$j:jQuery.noConflict()};a&&(window.$=a)}!function(a){TVE_Dash.ajax_sent=!1;var t={},s={};TVE_Dash.add_load_item=function(e,n,o){var r;if("function"!=typeof o&&(o=a.noop),TVE_Dash.ajax_sent){var i={},_={};return i[e]=n,_[e]=o,this.send_ajax(i,_),!0}return n?(t[e]&&"function"==typeof(null===(r=console)||void 0===r?void 0:r.warn)&&console.warn(e+" ajax action already defined"),t[e]=n,s[e]=o,!0):(console.error&&console.error("missing ajax data"),!1)},TVE_Dash.ajax_load_css=function(e){a.each(e,(function(e,t){a("link#"+(e+="-css")).length||a('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').appendTo("head")}))},TVE_Dash.ajax_load_js=function(e){var t=document.body;a.each(e,(function(s,n){if(-1!==s.indexOf("_before"))return!0;var o=document.createElement("script");e[s+"_before"]&&a('<script type="text/javascript">'+e[s+"_before"]+"<\/script>").after(t.lastChild),s&&(o.id=s+"-script"),o.src=n,t.appendChild(o)}))},TVE_Dash.send_ajax=function(t,s){a.ajax({url:tve_dash_front.ajaxurl,xhrFields:{withCredentials:!0},data:{post_id:tve_dash_front.post_id,action:"tve_dash_front_ajax",tve_dash_data:t},dataType:"json",type:"post"}).done((function(t){t&&a.isPlainObject(t)&&(t.__resources&&(t.__resources.css&&TVE_Dash.ajax_load_css(t.__resources.css),t.__resources.js&&TVE_Dash.ajax_load_js(t.__resources.js),delete t.__resources),a.each(t,(function(a,e){if("function"!=typeof s[a])return!0;s[a].call(null,e,t)})),e.$j(window).trigger("tve_after_ajax_load"))}))},TVE_Dash.forceImageLoad=function(a){Array.prototype.forEach.call(a.getElementsByTagName("img"),(a=>{a.getAttribute("src").includes("data:image")&&a.setAttribute("src",a.getAttribute("data-opt-src")||a.getAttribute("data-src"))}))},a((function(){window.TVE_Dash=window.TVE_Dash||TVE_Dash,setTimeout((function(){var e=new a.Event("tve-dash.load");return a(document).trigger(e),!a.isEmptyObject(t)&&!(!tve_dash_front.force_ajax_send&&tve_dash_front.is_crawler)&&(TVE_Dash.send_ajax(t,s),void(TVE_Dash.ajax_sent=!0))}))}))}(e.$j)})();}catch(e){}
try{document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),o=e.attr("data-flex_fx"),i=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:o,slideshow:i,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),o=t.data("percentage-value");setTimeout(function(){t.css({width:o+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,n;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",n=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(e){var t=jQuery(this).attr("data-interval"),o=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(t&&0<t)try{i.tabs("rotate",1e3*t)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){o.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),n?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),n?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(e){var t=jQuery(this),o=(t.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(t.data("active-tab"),10)&&parseInt(t.data("active-tab"),10)-1),i=!1===o||"yes"===t.data("collapsible"),o=t.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:o,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===t.data("vcDisableKeydown")&&(o.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var i={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),o=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===i[o]?"fitRows":i[o]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(e){var t,o,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(o=1e3*i.attr("data-interval"))&&(o=9999999999),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:o,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?t=i.find(".wpb_image_grid_ul").imagesLoaded(function(){t.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var l=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=l('[data-vc-full-width="true"]'),l.each(e,function(e,t){var o,i,n,a,r,c,d,s=l(this),u=(s.addClass("vc_hidden"),s.next(".vc_row-full-width"));(u=u.length?u:s.parent().next(".vc_row-full-width")).length&&(o=parseInt(s.css("margin-left"),10),i=parseInt(s.css("margin-right"),10),n=0-u.offset().left-o,a=l(window).width(),r={position:"relative",left:n="rtl"===s.css("direction")?(n=n-u.width()+a)+o+i:n,"box-sizing":"border-box",width:a,"max-width":a},s.css(r),s.data("vcStretchContent")||("rtl"===s.css("direction")?((c=n)<0&&(c=0),(d=n)<0&&(d=0)):(d=a-(c=(c=-1*n)<0?0:c)-u.width()+o+i)<0&&(d=0),s.css({"padding-left":c+"px","padding-right":d+"px"})),s.attr("data-vc-full-width-init","true"),s.removeClass("vc_hidden"),l(document).trigger("vc-full-width-row-single",{el:s,offset:n,marginLeft:o,marginRight:i,elFull:u,width:a,maxWidth:a}))}),l(document).trigger("vc-full-width-row",e))}function t(){var e,t,o=l(".vc_row-o-full-height:first");o.length&&(e=l(window).height(),(t=o.offset().top)<e)&&o.css("min-height",100-t/(e/100)+"vh"),l(document).trigger("vc-full-height-row",o)}l(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&l(".vc_row-o-full-height").each(function(){"flex"===l(this).css("display")&&l(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),l(".vc_parallax-inner").remove(),l("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),l("[data-vc-parallax]").each(function(){var e,t,o,i;n=!0,"on"===l(this).data("vcParallaxOFade")&&l(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*l(this).data("vcParallax"),(t=l("<div />").addClass("vc_parallax-inner").appendTo(l(this))).height(e+"%"),o=l(this).data("vcParallaxImage"),(i=vcExtractYoutubeId(o))?insertYoutubeVideoAsBackground(t,i):void 0!==o&&t.css("background-image","url("+o+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,o=1;!1===t;){if(e.hasClass("columns_count_"+o))return t=!0,o;o++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var o=t.panel||t.newPanel,i=o.find(".vc_pie_chart:not(.vc_ready)"),n=o.find(".vc_round-chart"),a=o.find(".vc_line-chart"),r=o.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(o),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.length&&jQuery.fn.vcChat&&i.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=o.find(".isotope, .wpb_image_grid_ul"),i=o.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),i.length&&!i.is(".map_ready")&&((n=i.find("iframe")).attr("src",n.attr("src")),i.addClass("map_ready")),o.parents(".isotope").length&&o.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",o)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,o={};o.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,o)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var o,i,n,a;t.newPanel.length&&t.newHeader.length&&(o=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),i=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),o.length&&jQuery.fn.vcChat&&o.vcChat(),i.length&&jQuery.fn.vcRoundChart&&i.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,o=jQuery(this);o.data("vcVideoBg")?(e=o.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(o.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(o,e)),jQuery(window).on("grid:items:added",function(e,t){o.has(t).length&&vcResizeVideoBackground(o)})):o.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,o){if("undefined"==typeof YT||void 0===YT.Player)return 100<(o=void 0===o?0:o)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,o++)},100);var i=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(i[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,o,i,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),o=r,i=-Math.round((t-a)/2)+"px",n=-Math.round((o-r)/2)+"px"):(o=(t=a)*(9/16),n=-Math.round((o-r)/2)+"px",i=-Math.round((t-a)/2)+"px"),t+="px",o+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:i,marginTop:n,width:t,height:o})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),o=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),o=e<o?o:e;t.css("min-height",(o=o<250?250:o)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(e){window.vc_js()})})(window.jQuery);}catch(e){}
try{
/*!
  * Bootstrap v5.0.1 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.bootstrap=factory());}(this,(function(){'use strict';const NODE_TEXT=3;const SelectorEngine={find(selector,element=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(element,selector));},findOne(selector,element=document.documentElement){return Element.prototype.querySelector.call(element,selector);},children(element,selector){return[].concat(...element.children).filter(child=>child.matches(selector));},parents(element,selector){const parents=[];let ancestor=element.parentNode;while(ancestor&&ancestor.nodeType===Node.ELEMENT_NODE&&ancestor.nodeType!==NODE_TEXT){if(ancestor.matches(selector)){parents.push(ancestor);}
ancestor=ancestor.parentNode;}
return parents;},prev(element,selector){let previous=element.previousElementSibling;while(previous){if(previous.matches(selector)){return[previous];}
previous=previous.previousElementSibling;}
return[];},next(element,selector){let next=element.nextElementSibling;while(next){if(next.matches(selector)){return[next];}
next=next.nextElementSibling;}
return[];}};const MAX_UID=1000000;const MILLISECONDS_MULTIPLIER=1000;const TRANSITION_END='transitionend';const toType=obj=>{if(obj===null||obj===undefined){return`${obj}`;}
return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();};const getUID=prefix=>{do{prefix+=Math.floor(Math.random()*MAX_UID);}while(document.getElementById(prefix));return prefix;};const getSelector=element=>{let selector=element.getAttribute('data-bs-target');if(!selector||selector==='#'){let hrefAttr=element.getAttribute('href');if(!hrefAttr||!hrefAttr.includes('#')&&!hrefAttr.startsWith('.')){return null;}
if(hrefAttr.includes('#')&&!hrefAttr.startsWith('#')){hrefAttr=`#${hrefAttr.split('#')[1]}`;}
selector=hrefAttr&&hrefAttr!=='#'?hrefAttr.trim():null;}
return selector;};const getSelectorFromElement=element=>{const selector=getSelector(element);if(selector){return document.querySelector(selector)?selector:null;}
return null;};const getElementFromSelector=element=>{const selector=getSelector(element);return selector?document.querySelector(selector):null;};const getTransitionDurationFromElement=element=>{if(!element){return 0;}
let{transitionDuration,transitionDelay}=window.getComputedStyle(element);const floatTransitionDuration=Number.parseFloat(transitionDuration);const floatTransitionDelay=Number.parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay){return 0;}
transitionDuration=transitionDuration.split(',')[0];transitionDelay=transitionDelay.split(',')[0];return(Number.parseFloat(transitionDuration)+Number.parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER;};const triggerTransitionEnd=element=>{element.dispatchEvent(new Event(TRANSITION_END));};const isElement$1=obj=>{if(!obj||typeof obj!=='object'){return false;}
if(typeof obj.jquery!=='undefined'){obj=obj[0];}
return typeof obj.nodeType!=='undefined';};const getElement=obj=>{if(isElement$1(obj)){return obj.jquery?obj[0]:obj;}
if(typeof obj==='string'&&obj.length>0){return SelectorEngine.findOne(obj);}
return null;};const emulateTransitionEnd=(element,duration)=>{let called=false;const durationPadding=5;const emulatedDuration=duration+durationPadding;function listener(){called=true;element.removeEventListener(TRANSITION_END,listener);}
element.addEventListener(TRANSITION_END,listener);setTimeout(()=>{if(!called){triggerTransitionEnd(element);}},emulatedDuration);};const typeCheckConfig=(componentName,config,configTypes)=>{Object.keys(configTypes).forEach(property=>{const expectedTypes=configTypes[property];const value=config[property];const valueType=value&&isElement$1(value)?'element':toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new TypeError(`${componentName.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`);}});};const isVisible=element=>{if(!element){return false;}
if(element.style&&element.parentNode&&element.parentNode.style){const elementStyle=getComputedStyle(element);const parentNodeStyle=getComputedStyle(element.parentNode);return elementStyle.display!=='none'&&parentNodeStyle.display!=='none'&&elementStyle.visibility!=='hidden';}
return false;};const isDisabled=element=>{if(!element||element.nodeType!==Node.ELEMENT_NODE){return true;}
if(element.classList.contains('disabled')){return true;}
if(typeof element.disabled!=='undefined'){return element.disabled;}
return element.hasAttribute('disabled')&&element.getAttribute('disabled')!=='false';};const findShadowRoot=element=>{if(!document.documentElement.attachShadow){return null;}
if(typeof element.getRootNode==='function'){const root=element.getRootNode();return root instanceof ShadowRoot?root:null;}
if(element instanceof ShadowRoot){return element;}
if(!element.parentNode){return null;}
return findShadowRoot(element.parentNode);};const noop=()=>{};const reflow=element=>element.offsetHeight;const getjQuery=()=>{const{jQuery}=window;if(jQuery&&!document.body.hasAttribute('data-bs-no-jquery')){return jQuery;}
return null;};const onDOMContentLoaded=callback=>{if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',callback);}else{callback();}};const isRTL=()=>document.documentElement.dir==='rtl';const defineJQueryPlugin=plugin=>{onDOMContentLoaded(()=>{const $=getjQuery();if($){const name=plugin.NAME;const JQUERY_NO_CONFLICT=$.fn[name];$.fn[name]=plugin.jQueryInterface;$.fn[name].Constructor=plugin;$.fn[name].noConflict=()=>{$.fn[name]=JQUERY_NO_CONFLICT;return plugin.jQueryInterface;};}});};const execute=callback=>{if(typeof callback==='function'){callback();}};const elementMap=new Map();var Data={set(element,key,instance){if(!elementMap.has(element)){elementMap.set(element,new Map());}
const instanceMap=elementMap.get(element);if(!instanceMap.has(key)&&instanceMap.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);return;}
instanceMap.set(key,instance);},get(element,key){if(elementMap.has(element)){return elementMap.get(element).get(key)||null;}
return null;},remove(element,key){if(!elementMap.has(element)){return;}
const instanceMap=elementMap.get(element);instanceMap.delete(key);if(instanceMap.size===0){elementMap.delete(element);}}};const namespaceRegex=/[^.]*(?=\..*)\.|.*/;const stripNameRegex=/\..*/;const stripUidRegex=/::\d+$/;const eventRegistry={};let uidEvent=1;const customEvents={mouseenter:'mouseover',mouseleave:'mouseout'};const customEventsRegex=/^(mouseenter|mouseleave)/i;const nativeEvents=new Set(['click','dblclick','mouseup','mousedown','contextmenu','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','selectstart','selectend','keydown','keypress','keyup','orientationchange','touchstart','touchmove','touchend','touchcancel','pointerdown','pointermove','pointerup','pointerleave','pointercancel','gesturestart','gesturechange','gestureend','focus','blur','change','reset','select','submit','focusin','focusout','load','unload','beforeunload','resize','move','DOMContentLoaded','readystatechange','error','abort','scroll']);function getUidEvent(element,uid){return uid&&`${uid}::${uidEvent++}`||element.uidEvent||uidEvent++;}
function getEvent(element){const uid=getUidEvent(element);element.uidEvent=uid;eventRegistry[uid]=eventRegistry[uid]||{};return eventRegistry[uid];}
function bootstrapHandler(element,fn){return function handler(event){event.delegateTarget=element;if(handler.oneOff){EventHandler.off(element,event.type,fn);}
return fn.apply(element,[event]);};}
function bootstrapDelegationHandler(element,selector,fn){return function handler(event){const domElements=element.querySelectorAll(selector);for(let{target}=event;target&&target!==this;target=target.parentNode){for(let i=domElements.length;i--;){if(domElements[i]===target){event.delegateTarget=target;if(handler.oneOff){EventHandler.off(element,event.type,selector,fn);}
return fn.apply(target,[event]);}}}
return null;};}
function findHandler(events,handler,delegationSelector=null){const uidEventList=Object.keys(events);for(let i=0,len=uidEventList.length;i<len;i++){const event=events[uidEventList[i]];if(event.originalHandler===handler&&event.delegationSelector===delegationSelector){return event;}}
return null;}
function normalizeParams(originalTypeEvent,handler,delegationFn){const delegation=typeof handler==='string';const originalHandler=delegation?delegationFn:handler;let typeEvent=getTypeEvent(originalTypeEvent);const isNative=nativeEvents.has(typeEvent);if(!isNative){typeEvent=originalTypeEvent;}
return[delegation,originalHandler,typeEvent];}
function addHandler(element,originalTypeEvent,handler,delegationFn,oneOff){if(typeof originalTypeEvent!=='string'||!element){return;}
if(!handler){handler=delegationFn;delegationFn=null;}
if(customEventsRegex.test(originalTypeEvent)){const wrapFn=fn=>{return function(event){if(!event.relatedTarget||event.relatedTarget!==event.delegateTarget&&!event.delegateTarget.contains(event.relatedTarget)){return fn.call(this,event);}};};if(delegationFn){delegationFn=wrapFn(delegationFn);}else{handler=wrapFn(handler);}}
const[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const events=getEvent(element);const handlers=events[typeEvent]||(events[typeEvent]={});const previousFn=findHandler(handlers,originalHandler,delegation?handler:null);if(previousFn){previousFn.oneOff=previousFn.oneOff&&oneOff;return;}
const uid=getUidEvent(originalHandler,originalTypeEvent.replace(namespaceRegex,''));const fn=delegation?bootstrapDelegationHandler(element,handler,delegationFn):bootstrapHandler(element,handler);fn.delegationSelector=delegation?handler:null;fn.originalHandler=originalHandler;fn.oneOff=oneOff;fn.uidEvent=uid;handlers[uid]=fn;element.addEventListener(typeEvent,fn,delegation);}
function removeHandler(element,events,typeEvent,handler,delegationSelector){const fn=findHandler(events[typeEvent],handler,delegationSelector);if(!fn){return;}
element.removeEventListener(typeEvent,fn,Boolean(delegationSelector));delete events[typeEvent][fn.uidEvent];}
function removeNamespacedHandlers(element,events,typeEvent,namespace){const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(handlerKey=>{if(handlerKey.includes(namespace)){const event=storeElementEvent[handlerKey];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector);}});}
function getTypeEvent(event){event=event.replace(stripNameRegex,'');return customEvents[event]||event;}
const EventHandler={on(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,false);},one(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,true);},off(element,originalTypeEvent,handler,delegationFn){if(typeof originalTypeEvent!=='string'||!element){return;}
const[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const inNamespace=typeEvent!==originalTypeEvent;const events=getEvent(element);const isNamespace=originalTypeEvent.startsWith('.');if(typeof originalHandler!=='undefined'){if(!events||!events[typeEvent]){return;}
removeHandler(element,events,typeEvent,originalHandler,delegation?handler:null);return;}
if(isNamespace){Object.keys(events).forEach(elementEvent=>{removeNamespacedHandlers(element,events,elementEvent,originalTypeEvent.slice(1));});}
const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(keyHandlers=>{const handlerKey=keyHandlers.replace(stripUidRegex,'');if(!inNamespace||originalTypeEvent.includes(handlerKey)){const event=storeElementEvent[keyHandlers];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector);}});},trigger(element,event,args){if(typeof event!=='string'||!element){return null;}
const $=getjQuery();const typeEvent=getTypeEvent(event);const inNamespace=event!==typeEvent;const isNative=nativeEvents.has(typeEvent);let jQueryEvent;let bubbles=true;let nativeDispatch=true;let defaultPrevented=false;let evt=null;if(inNamespace&&$){jQueryEvent=$.Event(event,args);$(element).trigger(jQueryEvent);bubbles=!jQueryEvent.isPropagationStopped();nativeDispatch=!jQueryEvent.isImmediatePropagationStopped();defaultPrevented=jQueryEvent.isDefaultPrevented();}
if(isNative){evt=document.createEvent('HTMLEvents');evt.initEvent(typeEvent,bubbles,true);}else{evt=new CustomEvent(event,{bubbles,cancelable:true});}
if(typeof args!=='undefined'){Object.keys(args).forEach(key=>{Object.defineProperty(evt,key,{get(){return args[key];}});});}
if(defaultPrevented){evt.preventDefault();}
if(nativeDispatch){element.dispatchEvent(evt);}
if(evt.defaultPrevented&&typeof jQueryEvent!=='undefined'){jQueryEvent.preventDefault();}
return evt;}};const VERSION='5.0.1';class BaseComponent{constructor(element){element=getElement(element);if(!element){return;}
this._element=element;Data.set(this._element,this.constructor.DATA_KEY,this);}
dispose(){Data.remove(this._element,this.constructor.DATA_KEY);EventHandler.off(this._element,this.constructor.EVENT_KEY);Object.getOwnPropertyNames(this).forEach(propertyName=>{this[propertyName]=null;});}
_queueCallback(callback,element,isAnimated=true){if(!isAnimated){execute(callback);return;}
const transitionDuration=getTransitionDurationFromElement(element);EventHandler.one(element,'transitionend',()=>execute(callback));emulateTransitionEnd(element,transitionDuration);}
static getInstance(element){return Data.get(element,this.DATA_KEY);}
static get VERSION(){return VERSION;}
static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!');}
static get DATA_KEY(){return`bs.${this.NAME}`;}
static get EVENT_KEY(){return`.${this.DATA_KEY}`;}}
const NAME$c='alert';const DATA_KEY$b='bs.alert';const EVENT_KEY$b=`.${DATA_KEY$b}`;const DATA_API_KEY$8='.data-api';const SELECTOR_DISMISS='[data-bs-dismiss="alert"]';const EVENT_CLOSE=`close${EVENT_KEY$b}`;const EVENT_CLOSED=`closed${EVENT_KEY$b}`;const EVENT_CLICK_DATA_API$7=`click${EVENT_KEY$b}${DATA_API_KEY$8}`;const CLASS_NAME_ALERT='alert';const CLASS_NAME_FADE$6='fade';const CLASS_NAME_SHOW$9='show';class Alert extends BaseComponent{static get NAME(){return NAME$c;}
close(element){const rootElement=element?this._getRootElement(element):this._element;const customEvent=this._triggerCloseEvent(rootElement);if(customEvent===null||customEvent.defaultPrevented){return;}
this._removeElement(rootElement);}
_getRootElement(element){return getElementFromSelector(element)||element.closest(`.${CLASS_NAME_ALERT}`);}
_triggerCloseEvent(element){return EventHandler.trigger(element,EVENT_CLOSE);}
_removeElement(element){element.classList.remove(CLASS_NAME_SHOW$9);const isAnimated=element.classList.contains(CLASS_NAME_FADE$6);this._queueCallback(()=>this._destroyElement(element),element,isAnimated);}
_destroyElement(element){if(element.parentNode){element.parentNode.removeChild(element);}
EventHandler.trigger(element,EVENT_CLOSED);}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$b);if(!data){data=new Alert(this);}
if(config==='close'){data[config](this);}});}
static handleDismiss(alertInstance){return function(event){if(event){event.preventDefault();}
alertInstance.close(this);};}}
EventHandler.on(document,EVENT_CLICK_DATA_API$7,SELECTOR_DISMISS,Alert.handleDismiss(new Alert()));defineJQueryPlugin(Alert);const NAME$b='button';const DATA_KEY$a='bs.button';const EVENT_KEY$a=`.${DATA_KEY$a}`;const DATA_API_KEY$7='.data-api';const CLASS_NAME_ACTIVE$3='active';const SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]';const EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$7}`;class Button extends BaseComponent{static get NAME(){return NAME$b;}
toggle(){this._element.setAttribute('aria-pressed',this._element.classList.toggle(CLASS_NAME_ACTIVE$3));}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$a);if(!data){data=new Button(this);}
if(config==='toggle'){data[config]();}});}}
EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,event=>{event.preventDefault();const button=event.target.closest(SELECTOR_DATA_TOGGLE$5);let data=Data.get(button,DATA_KEY$a);if(!data){data=new Button(button);}
data.toggle();});defineJQueryPlugin(Button);function normalizeData(val){if(val==='true'){return true;}
if(val==='false'){return false;}
if(val===Number(val).toString()){return Number(val);}
if(val===''||val==='null'){return null;}
return val;}
function normalizeDataKey(key){return key.replace(/[A-Z]/g,chr=>`-${chr.toLowerCase()}`);}
const Manipulator={setDataAttribute(element,key,value){element.setAttribute(`data-bs-${normalizeDataKey(key)}`,value);},removeDataAttribute(element,key){element.removeAttribute(`data-bs-${normalizeDataKey(key)}`);},getDataAttributes(element){if(!element){return{};}
const attributes={};Object.keys(element.dataset).filter(key=>key.startsWith('bs')).forEach(key=>{let pureKey=key.replace(/^bs/,'');pureKey=pureKey.charAt(0).toLowerCase()+pureKey.slice(1,pureKey.length);attributes[pureKey]=normalizeData(element.dataset[key]);});return attributes;},getDataAttribute(element,key){return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`));},offset(element){const rect=element.getBoundingClientRect();return{top:rect.top+document.body.scrollTop,left:rect.left+document.body.scrollLeft};},position(element){return{top:element.offsetTop,left:element.offsetLeft};}};const NAME$9='collapse';const DATA_KEY$8='bs.collapse';const EVENT_KEY$8=`.${DATA_KEY$8}`;const DATA_API_KEY$5='.data-api';const Default$8={toggle:true,parent:''};const DefaultType$8={toggle:'boolean',parent:'(string|element)'};const EVENT_SHOW$5=`show${EVENT_KEY$8}`;const EVENT_SHOWN$5=`shown${EVENT_KEY$8}`;const EVENT_HIDE$5=`hide${EVENT_KEY$8}`;const EVENT_HIDDEN$5=`hidden${EVENT_KEY$8}`;const EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$8}${DATA_API_KEY$5}`;const CLASS_NAME_SHOW$8='show';const CLASS_NAME_COLLAPSE='collapse';const CLASS_NAME_COLLAPSING='collapsing';const CLASS_NAME_COLLAPSED='collapsed';const WIDTH='width';const HEIGHT='height';const SELECTOR_ACTIVES='.show, .collapsing';const SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]';class Collapse extends BaseComponent{constructor(element,config){super(element);this._isTransitioning=false;this._config=this._getConfig(config);this._triggerArray=SelectorEngine.find(`${SELECTOR_DATA_TOGGLE$4}[href="#${this._element.id}"],`+`${SELECTOR_DATA_TOGGLE$4}[data-bs-target="#${this._element.id}"]`);const toggleList=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(let i=0,len=toggleList.length;i<len;i++){const elem=toggleList[i];const selector=getSelectorFromElement(elem);const filterElement=SelectorEngine.find(selector).filter(foundElem=>foundElem===this._element);if(selector!==null&&filterElement.length){this._selector=selector;this._triggerArray.push(elem);}}
this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray);}
if(this._config.toggle){this.toggle();}}
static get Default(){return Default$8;}
static get NAME(){return NAME$9;}
toggle(){if(this._element.classList.contains(CLASS_NAME_SHOW$8)){this.hide();}else{this.show();}}
show(){if(this._isTransitioning||this._element.classList.contains(CLASS_NAME_SHOW$8)){return;}
let actives;let activesData;if(this._parent){actives=SelectorEngine.find(SELECTOR_ACTIVES,this._parent).filter(elem=>{if(typeof this._config.parent==='string'){return elem.getAttribute('data-bs-parent')===this._config.parent;}
return elem.classList.contains(CLASS_NAME_COLLAPSE);});if(actives.length===0){actives=null;}}
const container=SelectorEngine.findOne(this._selector);if(actives){const tempActiveData=actives.find(elem=>container!==elem);activesData=tempActiveData?Data.get(tempActiveData,DATA_KEY$8):null;if(activesData&&activesData._isTransitioning){return;}}
const startEvent=EventHandler.trigger(this._element,EVENT_SHOW$5);if(startEvent.defaultPrevented){return;}
if(actives){actives.forEach(elemActive=>{if(container!==elemActive){Collapse.collapseInterface(elemActive,'hide');}
if(!activesData){Data.set(elemActive,DATA_KEY$8,null);}});}
const dimension=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.style[dimension]=0;if(this._triggerArray.length){this._triggerArray.forEach(element=>{element.classList.remove(CLASS_NAME_COLLAPSED);element.setAttribute('aria-expanded',true);});}
this.setTransitioning(true);const complete=()=>{this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$8);this._element.style[dimension]='';this.setTransitioning(false);EventHandler.trigger(this._element,EVENT_SHOWN$5);};const capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);const scrollSize=`scroll${capitalizedDimension}`;this._queueCallback(complete,this._element,true);this._element.style[dimension]=`${this._element[scrollSize]}px`;}
hide(){if(this._isTransitioning||!this._element.classList.contains(CLASS_NAME_SHOW$8)){return;}
const startEvent=EventHandler.trigger(this._element,EVENT_HIDE$5);if(startEvent.defaultPrevented){return;}
const dimension=this._getDimension();this._element.style[dimension]=`${this._element.getBoundingClientRect()[dimension]}px`;reflow(this._element);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$8);const triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0){for(let i=0;i<triggerArrayLength;i++){const trigger=this._triggerArray[i];const elem=getElementFromSelector(trigger);if(elem&&!elem.classList.contains(CLASS_NAME_SHOW$8)){trigger.classList.add(CLASS_NAME_COLLAPSED);trigger.setAttribute('aria-expanded',false);}}}
this.setTransitioning(true);const complete=()=>{this.setTransitioning(false);this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE);EventHandler.trigger(this._element,EVENT_HIDDEN$5);};this._element.style[dimension]='';this._queueCallback(complete,this._element,true);}
setTransitioning(isTransitioning){this._isTransitioning=isTransitioning;}
_getConfig(config){config={...Default$8,...config};config.toggle=Boolean(config.toggle);typeCheckConfig(NAME$9,config,DefaultType$8);return config;}
_getDimension(){return this._element.classList.contains(WIDTH)?WIDTH:HEIGHT;}
_getParent(){let{parent}=this._config;parent=getElement(parent);const selector=`${SELECTOR_DATA_TOGGLE$4}[data-bs-parent="${parent}"]`;SelectorEngine.find(selector,parent).forEach(element=>{const selected=getElementFromSelector(element);this._addAriaAndCollapsedClass(selected,[element]);});return parent;}
_addAriaAndCollapsedClass(element,triggerArray){if(!element||!triggerArray.length){return;}
const isOpen=element.classList.contains(CLASS_NAME_SHOW$8);triggerArray.forEach(elem=>{if(isOpen){elem.classList.remove(CLASS_NAME_COLLAPSED);}else{elem.classList.add(CLASS_NAME_COLLAPSED);}
elem.setAttribute('aria-expanded',isOpen);});}
static collapseInterface(element,config){let data=Data.get(element,DATA_KEY$8);const _config={...Default$8,...Manipulator.getDataAttributes(element),...(typeof config==='object'&&config?config:{})};if(!data&&_config.toggle&&typeof config==='string'&&/show|hide/.test(config)){_config.toggle=false;}
if(!data){data=new Collapse(element,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}}
static jQueryInterface(config){return this.each(function(){Collapse.collapseInterface(this,config);});}}
EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(event){if(event.target.tagName==='A'||event.delegateTarget&&event.delegateTarget.tagName==='A'){event.preventDefault();}
const triggerData=Manipulator.getDataAttributes(this);const selector=getSelectorFromElement(this);const selectorElements=SelectorEngine.find(selector);selectorElements.forEach(element=>{const data=Data.get(element,DATA_KEY$8);let config;if(data){if(data._parent===null&&typeof triggerData.parent==='string'){data._config.parent=triggerData.parent;data._parent=data._getParent();}
config='toggle';}else{config=triggerData;}
Collapse.collapseInterface(element,config);});});defineJQueryPlugin(Collapse);var top='top';var bottom='bottom';var right='right';var left='left';var auto='auto';var basePlacements=[top,bottom,right,left];var start='start';var end='end';var clippingParents='clippingParents';var viewport='viewport';var popper='popper';var reference='reference';var variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end]);},[]);var placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end]);},[]);var beforeRead='beforeRead';var read='read';var afterRead='afterRead';var beforeMain='beforeMain';var main='main';var afterMain='afterMain';var beforeWrite='beforeWrite';var write='write';var afterWrite='afterWrite';var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||'').toLowerCase():null;}
function getWindow(node){if(node==null){return window;}
if(node.toString()!=='[object Window]'){var ownerDocument=node.ownerDocument;return ownerDocument?ownerDocument.defaultView||window:window;}
return node;}
function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element;}
function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement;}
function isShadowRoot(node){if(typeof ShadowRoot==='undefined'){return false;}
var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot;}
function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement(element)||!getNodeName(element)){return;}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(name){var value=attributes[name];if(value===false){element.removeAttribute(name);}else{element.setAttribute(name,value===true?'':value);}});});}
function effect$2(_ref2){var state=_ref2.state;var initialStyles={popper:{position:state.options.strategy,left:'0',top:'0',margin:'0'},arrow:{position:'absolute'},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}
return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style=styleProperties.reduce(function(style,property){style[property]='';return style;},{});if(!isHTMLElement(element)||!getNodeName(element)){return;}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);});});};}
var applyStyles$1={name:'applyStyles',enabled:true,phase:'write',fn:applyStyles,effect:effect$2,requires:['computeStyles']};function getBasePlacement(placement){return placement.split('-')[0];}
function getBoundingClientRect(element){var rect=element.getBoundingClientRect();return{width:rect.width,height:rect.height,top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,x:rect.left,y:rect.top};}
function getLayoutRect(element){var clientRect=getBoundingClientRect(element);var width=element.offsetWidth;var height=element.offsetHeight;if(Math.abs(clientRect.width-width)<=1){width=clientRect.width;}
if(Math.abs(clientRect.height-height)<=1){height=clientRect.height;}
return{x:element.offsetLeft,y:element.offsetTop,width:width,height:height};}
function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true;}
else if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next)){return true;}
next=next.parentNode||next.host;}while(next);}
return false;}
function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element);}
function isTableElement(element){return['table','td','th'].indexOf(getNodeName(element))>=0;}
function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement;}
function getParentNode(element){if(getNodeName(element)==='html'){return element;}
return(element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element));}
function getTrueOffsetParent(element){if(!isHTMLElement(element)||getComputedStyle$1(element).position==='fixed'){return null;}
return element.offsetParent;}
function getContainingBlock(element){var isFirefox=navigator.userAgent.toLowerCase().indexOf('firefox')!==-1;var isIE=navigator.userAgent.indexOf('Trident')!==-1;if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle$1(element);if(elementCss.position==='fixed'){return null;}}
var currentNode=getParentNode(element);while(isHTMLElement(currentNode)&&['html','body'].indexOf(getNodeName(currentNode))<0){var css=getComputedStyle$1(currentNode);if(css.transform!=='none'||css.perspective!=='none'||css.contain==='paint'||['transform','perspective'].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==='filter'||isFirefox&&css.filter&&css.filter!=='none'){return currentNode;}else{currentNode=currentNode.parentNode;}}
return null;}
function getOffsetParent(element){var window=getWindow(element);var offsetParent=getTrueOffsetParent(element);while(offsetParent&&isTableElement(offsetParent)&&getComputedStyle$1(offsetParent).position==='static'){offsetParent=getTrueOffsetParent(offsetParent);}
if(offsetParent&&(getNodeName(offsetParent)==='html'||getNodeName(offsetParent)==='body'&&getComputedStyle$1(offsetParent).position==='static')){return window;}
return offsetParent||getContainingBlock(element)||window;}
function getMainAxisFromPlacement(placement){return['top','bottom'].indexOf(placement)>=0?'x':'y';}
var max=Math.max;var min=Math.min;var round=Math.round;function within(min$1,value,max$1){return max(min$1,min(value,max$1));}
function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0};}
function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject);}
function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){hashMap[key]=value;return hashMap;},{});}
var toPaddingObject=function toPaddingObject(padding,state){padding=typeof padding==='function'?padding(Object.assign({},state.rects,{placement:state.placement})):padding;return mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));};function arrow(_ref){var _state$modifiersData$;var state=_ref.state,name=_ref.name,options=_ref.options;var arrowElement=state.elements.arrow;var popperOffsets=state.modifiersData.popperOffsets;var basePlacement=getBasePlacement(state.placement);var axis=getMainAxisFromPlacement(basePlacement);var isVertical=[left,right].indexOf(basePlacement)>=0;var len=isVertical?'height':'width';if(!arrowElement||!popperOffsets){return;}
var paddingObject=toPaddingObject(options.padding,state);var arrowRect=getLayoutRect(arrowElement);var minProp=axis==='y'?top:left;var maxProp=axis==='y'?bottom:right;var endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len];var startDiff=popperOffsets[axis]-state.rects.reference[axis];var arrowOffsetParent=getOffsetParent(arrowElement);var clientSize=arrowOffsetParent?axis==='y'?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0;var centerToReference=endDiff/2-startDiff/2;var min=paddingObject[minProp];var max=clientSize-arrowRect[len]-paddingObject[maxProp];var center=clientSize/2-arrowRect[len]/2+centerToReference;var offset=within(min,center,max);var axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$);}
function effect$1(_ref2){var state=_ref2.state,options=_ref2.options;var _options$element=options.element,arrowElement=_options$element===void 0?'[data-popper-arrow]':_options$element;if(arrowElement==null){return;}
if(typeof arrowElement==='string'){arrowElement=state.elements.popper.querySelector(arrowElement);if(!arrowElement){return;}}
if(!contains(state.elements.popper,arrowElement)){return;}
state.elements.arrow=arrowElement;}
var arrow$1={name:'arrow',enabled:true,phase:'main',fn:arrow,effect:effect$1,requires:['popperOffsets'],requiresIfExists:['preventOverflow']};var unsetSides={top:'auto',right:'auto',bottom:'auto',left:'auto'};function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y;var win=window;var dpr=win.devicePixelRatio||1;return{x:round(round(x*dpr)/dpr)||0,y:round(round(y*dpr)/dpr)||0};}
function mapToStyles(_ref2){var _Object$assign2;var popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets;var _ref3=roundOffsets===true?roundOffsetsByDPR(offsets):typeof roundOffsets==='function'?roundOffsets(offsets):offsets,_ref3$x=_ref3.x,x=_ref3$x===void 0?0:_ref3$x,_ref3$y=_ref3.y,y=_ref3$y===void 0?0:_ref3$y;var hasX=offsets.hasOwnProperty('x');var hasY=offsets.hasOwnProperty('y');var sideX=left;var sideY=top;var win=window;if(adaptive){var offsetParent=getOffsetParent(popper);var heightProp='clientHeight';var widthProp='clientWidth';if(offsetParent===getWindow(popper)){offsetParent=getDocumentElement(popper);if(getComputedStyle$1(offsetParent).position!=='static'){heightProp='scrollHeight';widthProp='scrollWidth';}}
offsetParent=offsetParent;if(placement===top){sideY=bottom;y-=offsetParent[heightProp]-popperRect.height;y*=gpuAcceleration?1:-1;}
if(placement===left){sideX=right;x-=offsetParent[widthProp]-popperRect.width;x*=gpuAcceleration?1:-1;}}
var commonStyles=Object.assign({position:position},adaptive&&unsetSides);if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?'0':'',_Object$assign[sideX]=hasX?'0':'',_Object$assign.transform=(win.devicePixelRatio||1)<2?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign));}
return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":'',_Object$assign2[sideX]=hasX?x+"px":'',_Object$assign2.transform='',_Object$assign2));}
function computeStyles(_ref4){var state=_ref4.state,options=_ref4.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?true:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?true:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?true:_options$roundOffsets;var commonStyles={placement:getBasePlacement(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration:gpuAcceleration};if(state.modifiersData.popperOffsets!=null){state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive:adaptive,roundOffsets:roundOffsets})));}
if(state.modifiersData.arrow!=null){state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:'absolute',adaptive:false,roundOffsets:roundOffsets})));}
state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-placement':state.placement});}
var computeStyles$1={name:'computeStyles',enabled:true,phase:'beforeWrite',fn:computeStyles,data:{}};var passive={passive:true};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options;var _options$scroll=options.scroll,scroll=_options$scroll===void 0?true:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?true:_options$resize;var window=getWindow(state.elements.popper);var scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.addEventListener('scroll',instance.update,passive);});}
if(resize){window.addEventListener('resize',instance.update,passive);}
return function(){if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener('scroll',instance.update,passive);});}
if(resize){window.removeEventListener('resize',instance.update,passive);}};}
var eventListeners={name:'eventListeners',enabled:true,phase:'write',fn:function fn(){},effect:effect,data:{}};var hash$1={left:'right',right:'left',bottom:'top',top:'bottom'};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash$1[matched];});}
var hash={start:'end',end:'start'};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash[matched];});}
function getWindowScroll(node){var win=getWindow(node);var scrollLeft=win.pageXOffset;var scrollTop=win.pageYOffset;return{scrollLeft:scrollLeft,scrollTop:scrollTop};}
function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft;}
function getViewportRect(element){var win=getWindow(element);var html=getDocumentElement(element);var visualViewport=win.visualViewport;var width=html.clientWidth;var height=html.clientHeight;var x=0;var y=0;if(visualViewport){width=visualViewport.width;height=visualViewport.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}
return{width:width,height:height,x:x+getWindowScrollBarX(element),y:y};}
function getDocumentRect(element){var _element$ownerDocumen;var html=getDocumentElement(element);var winScroll=getWindowScroll(element);var body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body;var width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0);var height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0);var x=-winScroll.scrollLeft+getWindowScrollBarX(element);var y=-winScroll.scrollTop;if(getComputedStyle$1(body||html).direction==='rtl'){x+=max(html.clientWidth,body?body.clientWidth:0)-width;}
return{width:width,height:height,x:x,y:y};}
function isScrollParent(element){var _getComputedStyle=getComputedStyle$1(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX);}
function getScrollParent(node){if(['html','body','#document'].indexOf(getNodeName(node))>=0){return node.ownerDocument.body;}
if(isHTMLElement(node)&&isScrollParent(node)){return node;}
return getScrollParent(getParentNode(node));}
function listScrollParents(element,list){var _element$ownerDocumen;if(list===void 0){list=[];}
var scrollParent=getScrollParent(element);var isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body);var win=getWindow(scrollParent);var target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent;var updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)));}
function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height});}
function getInnerBoundingClientRect(element){var rect=getBoundingClientRect(element);rect.top=rect.top+element.clientTop;rect.left=rect.left+element.clientLeft;rect.bottom=rect.top+element.clientHeight;rect.right=rect.left+element.clientWidth;rect.width=element.clientWidth;rect.height=element.clientHeight;rect.x=rect.left;rect.y=rect.top;return rect;}
function getClientRectFromMixedType(element,clippingParent){return clippingParent===viewport?rectToClientRect(getViewportRect(element)):isHTMLElement(clippingParent)?getInnerBoundingClientRect(clippingParent):rectToClientRect(getDocumentRect(getDocumentElement(element)));}
function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element));var canEscapeClipping=['absolute','fixed'].indexOf(getComputedStyle$1(element).position)>=0;var clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;if(!isElement(clipperElement)){return[];}
return clippingParents.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=='body';});}
function getClippingRect(element,boundary,rootBoundary){var mainClippingParents=boundary==='clippingParents'?getClippingParents(element):[].concat(boundary);var clippingParents=[].concat(mainClippingParents,[rootBoundary]);var firstClippingParent=clippingParents[0];var clippingRect=clippingParents.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent);accRect.top=max(rect.top,accRect.top);accRect.right=min(rect.right,accRect.right);accRect.bottom=min(rect.bottom,accRect.bottom);accRect.left=max(rect.left,accRect.left);return accRect;},getClientRectFromMixedType(element,firstClippingParent));clippingRect.width=clippingRect.right-clippingRect.left;clippingRect.height=clippingRect.bottom-clippingRect.top;clippingRect.x=clippingRect.left;clippingRect.y=clippingRect.top;return clippingRect;}
function getVariation(placement){return placement.split('-')[1];}
function computeOffsets(_ref){var reference=_ref.reference,element=_ref.element,placement=_ref.placement;var basePlacement=placement?getBasePlacement(placement):null;var variation=placement?getVariation(placement):null;var commonX=reference.x+reference.width/2-element.width/2;var commonY=reference.y+reference.height/2-element.height/2;var offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference.y-element.height};break;case bottom:offsets={x:commonX,y:reference.y+reference.height};break;case right:offsets={x:reference.x+reference.width,y:commonY};break;case left:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y};}
var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==='y'?'height':'width';switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2);break;}}
return offsets;}
function detectOverflow(state,options){if(options===void 0){options={};}
var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?false:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding;var paddingObject=mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));var altContext=elementContext===popper?reference:popper;var referenceElement=state.elements.reference;var popperRect=state.rects.popper;var element=state.elements[altBoundary?altContext:elementContext];var clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary);var referenceClientRect=getBoundingClientRect(referenceElement);var popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:'absolute',placement:placement});var popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets));var elementClientRect=elementContext===popper?popperClientRect:referenceClientRect;var overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right};var offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1;var axis=[top,bottom].indexOf(key)>=0?'y':'x';overflowOffsets[key]+=offset[axis]*multiply;});}
return overflowOffsets;}
function computeAutoPlacement(state,options){if(options===void 0){options={};}
var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP;var variation=getVariation(placement);var placements$1=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement){return getVariation(placement)===variation;}):basePlacements;var allowedPlacements=placements$1.filter(function(placement){return allowedAutoPlacements.indexOf(placement)>=0;});if(allowedPlacements.length===0){allowedPlacements=placements$1;}
var overflows=allowedPlacements.reduce(function(acc,placement){acc[placement]=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding})[getBasePlacement(placement)];return acc;},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b];});}
function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto){return[];}
var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)];}
function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(state.modifiersData[name]._skip){return;}
var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?true:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?true:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements;var preferredPlacement=state.options.placement;var basePlacement=getBasePlacement(preferredPlacement);var isBasePlacement=basePlacement===preferredPlacement;var fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement));var placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement){return acc.concat(getBasePlacement(placement)===auto?computeAutoPlacement(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement);},[]);var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var checksMap=new Map();var makeFallbackChecks=true;var firstFittingPlacement=placements[0];for(var i=0;i<placements.length;i++){var placement=placements[i];var _basePlacement=getBasePlacement(placement);var isStartVariation=getVariation(placement)===start;var isVertical=[top,bottom].indexOf(_basePlacement)>=0;var len=isVertical?'width':'height';var overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding});var mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;if(referenceRect[len]>popperRect[len]){mainVariationSide=getOppositePlacement(mainVariationSide);}
var altVariationSide=getOppositePlacement(mainVariationSide);var checks=[];if(checkMainAxis){checks.push(overflow[_basePlacement]<=0);}
if(checkAltAxis){checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0);}
if(checks.every(function(check){return check;})){firstFittingPlacement=placement;makeFallbackChecks=false;break;}
checksMap.set(placement,checks);}
if(makeFallbackChecks){var numberOfChecks=flipVariations?3:1;var _loop=function _loop(_i){var fittingPlacement=placements.find(function(placement){var checks=checksMap.get(placement);if(checks){return checks.slice(0,_i).every(function(check){return check;});}});if(fittingPlacement){firstFittingPlacement=fittingPlacement;return"break";}};for(var _i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break;}}
if(state.placement!==firstFittingPlacement){state.modifiersData[name]._skip=true;state.placement=firstFittingPlacement;state.reset=true;}}
var flip$1={name:'flip',enabled:true,phase:'main',fn:flip,requiresIfExists:['offset'],data:{_skip:false}};function getSideOffsets(overflow,rect,preventedOffsets){if(preventedOffsets===void 0){preventedOffsets={x:0,y:0};}
return{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x};}
function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some(function(side){return overflow[side]>=0;});}
function hide$1(_ref){var state=_ref.state,name=_ref.name;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var preventedOffsets=state.modifiersData.preventOverflow;var referenceOverflow=detectOverflow(state,{elementContext:'reference'});var popperAltOverflow=detectOverflow(state,{altBoundary:true});var referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect);var popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets);var isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets);var hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped};state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-reference-hidden':isReferenceHidden,'data-popper-escaped':hasPopperEscaped});}
var hide$2={name:'hide',enabled:true,phase:'main',requiresIfExists:['preventOverflow'],fn:hide$1};function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement);var invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1;var _ref=typeof offset==='function'?offset(Object.assign({},rects,{placement:placement})):offset,skidding=_ref[0],distance=_ref[1];skidding=skidding||0;distance=(distance||0)*invertDistance;return[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance};}
function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name;var _options$offset=options.offset,offset=_options$offset===void 0?[0,0]:_options$offset;var data=placements.reduce(function(acc,placement){acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset);return acc;},{});var _data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;if(state.modifiersData.popperOffsets!=null){state.modifiersData.popperOffsets.x+=x;state.modifiersData.popperOffsets.y+=y;}
state.modifiersData[name]=data;}
var offset$1={name:'offset',enabled:true,phase:'main',requires:['popperOffsets'],fn:offset};function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:'absolute',placement:state.placement});}
var popperOffsets$1={name:'popperOffsets',enabled:true,phase:'read',fn:popperOffsets,data:{}};function getAltAxis(axis){return axis==='x'?'y':'x';}
function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?false:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?true:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset;var overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding,altBoundary:altBoundary});var basePlacement=getBasePlacement(state.placement);var variation=getVariation(state.placement);var isBasePlacement=!variation;var mainAxis=getMainAxisFromPlacement(basePlacement);var altAxis=getAltAxis(mainAxis);var popperOffsets=state.modifiersData.popperOffsets;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var tetherOffsetValue=typeof tetherOffset==='function'?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset;var data={x:0,y:0};if(!popperOffsets){return;}
if(checkMainAxis||checkAltAxis){var mainSide=mainAxis==='y'?top:left;var altSide=mainAxis==='y'?bottom:right;var len=mainAxis==='y'?'height':'width';var offset=popperOffsets[mainAxis];var min$1=popperOffsets[mainAxis]+overflow[mainSide];var max$1=popperOffsets[mainAxis]-overflow[altSide];var additive=tether?-popperRect[len]/2:0;var minLen=variation===start?referenceRect[len]:popperRect[len];var maxLen=variation===start?-popperRect[len]:-referenceRect[len];var arrowElement=state.elements.arrow;var arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0};var arrowPaddingObject=state.modifiersData['arrow#persistent']?state.modifiersData['arrow#persistent'].padding:getFreshSideObject();var arrowPaddingMin=arrowPaddingObject[mainSide];var arrowPaddingMax=arrowPaddingObject[altSide];var arrowLen=within(0,referenceRect[len],arrowRect[len]);var minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-tetherOffsetValue:minLen-arrowLen-arrowPaddingMin-tetherOffsetValue;var maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+tetherOffsetValue:maxLen+arrowLen+arrowPaddingMax+tetherOffsetValue;var arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow);var clientOffset=arrowOffsetParent?mainAxis==='y'?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0;var offsetModifierValue=state.modifiersData.offset?state.modifiersData.offset[state.placement][mainAxis]:0;var tetherMin=popperOffsets[mainAxis]+minOffset-offsetModifierValue-clientOffset;var tetherMax=popperOffsets[mainAxis]+maxOffset-offsetModifierValue;if(checkMainAxis){var preventedOffset=within(tether?min(min$1,tetherMin):min$1,offset,tether?max(max$1,tetherMax):max$1);popperOffsets[mainAxis]=preventedOffset;data[mainAxis]=preventedOffset-offset;}
if(checkAltAxis){var _mainSide=mainAxis==='x'?top:left;var _altSide=mainAxis==='x'?bottom:right;var _offset=popperOffsets[altAxis];var _min=_offset+overflow[_mainSide];var _max=_offset-overflow[_altSide];var _preventedOffset=within(tether?min(_min,tetherMin):_min,_offset,tether?max(_max,tetherMax):_max);popperOffsets[altAxis]=_preventedOffset;data[altAxis]=_preventedOffset-_offset;}}
state.modifiersData[name]=data;}
var preventOverflow$1={name:'preventOverflow',enabled:true,phase:'main',fn:preventOverflow,requiresIfExists:['offset']};function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop};}
function getNodeScroll(node){if(node===getWindow(node)||!isHTMLElement(node)){return getWindowScroll(node);}else{return getHTMLElementScroll(node);}}
function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){if(isFixed===void 0){isFixed=false;}
var documentElement=getDocumentElement(offsetParent);var rect=getBoundingClientRect(elementOrVirtualElement);var isOffsetParentAnElement=isHTMLElement(offsetParent);var scroll={scrollLeft:0,scrollTop:0};var offsets={x:0,y:0};if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName(offsetParent)!=='body'||isScrollParent(documentElement)){scroll=getNodeScroll(offsetParent);}
if(isHTMLElement(offsetParent)){offsets=getBoundingClientRect(offsetParent);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement);}}
return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}
function order(modifiers){var map=new Map();var visited=new Set();var result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);if(depModifier){sort(depModifier);}}});result.push(modifier);}
modifiers.forEach(function(modifier){if(!visited.has(modifier.name)){sort(modifier);}});return result;}
function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase;}));},[]);}
function debounce(fn){var pending;return function(){if(!pending){pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=undefined;resolve(fn());});});}
return pending;};}
function mergeByName(modifiers){var merged=modifiers.reduce(function(merged,current){var existing=merged[current.name];merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current;return merged;},{});return Object.keys(merged).map(function(key){return merged[key];});}
var DEFAULT_OPTIONS={placement:'bottom',modifiers:[],strategy:'absolute'};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}
return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect==='function');});}
function popperGenerator(generatorOptions){if(generatorOptions===void 0){generatorOptions={};}
var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){if(options===void 0){options=defaultOptions;}
var state={placement:'bottom',orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference,popper:popper},attributes:{},styles:{}};var effectCleanupFns=[];var isDestroyed=false;var instance={state:state,setOptions:function setOptions(options){cleanupModifierEffects();state.options=Object.assign({},defaultOptions,state.options,options);state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers,state.options.modifiers)));state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled;});runModifierEffects();return instance.update();},forceUpdate:function forceUpdate(){if(isDestroyed){return;}
var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(!areValidElements(reference,popper)){return;}
state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),state.options.strategy==='fixed'),popper:getLayoutRect(popper)};state.reset=false;state.placement=state.options.placement;state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data);});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===true){state.reset=false;index=-1;continue;}
var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;if(typeof fn==='function'){state=fn({state:state,options:_options,name:name,instance:instance})||state;}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate();resolve(state);});}),destroy:function destroy(){cleanupModifierEffects();isDestroyed=true;}};if(!areValidElements(reference,popper)){return instance;}
instance.setOptions(options).then(function(state){if(!isDestroyed&&options.onFirstUpdate){options.onFirstUpdate(state);}});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref3){var name=_ref3.name,_ref3$options=_ref3.options,options=_ref3$options===void 0?{}:_ref3$options,effect=_ref3.effect;if(typeof effect==='function'){var cleanupFn=effect({state:state,name:name,instance:instance,options:options});var noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn);}});}
function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn();});effectCleanupFns=[];}
return instance;};}
var createPopper$2=popperGenerator();var defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1});var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$2];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var Popper=Object.freeze({__proto__:null,popperGenerator:popperGenerator,detectOverflow:detectOverflow,createPopperBase:createPopper$2,createPopper:createPopper,createPopperLite:createPopper$1,top:top,bottom:bottom,right:right,left:left,auto:auto,basePlacements:basePlacements,start:start,end:end,clippingParents:clippingParents,viewport:viewport,popper:popper,reference:reference,variationPlacements:variationPlacements,placements:placements,beforeRead:beforeRead,read:read,afterRead:afterRead,beforeMain:beforeMain,main:main,afterMain:afterMain,beforeWrite:beforeWrite,write:write,afterWrite:afterWrite,modifierPhases:modifierPhases,applyStyles:applyStyles$1,arrow:arrow$1,computeStyles:computeStyles$1,eventListeners:eventListeners,flip:flip$1,hide:hide$2,offset:offset$1,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1});const NAME$8='dropdown';const DATA_KEY$7='bs.dropdown';const EVENT_KEY$7=`.${DATA_KEY$7}`;const DATA_API_KEY$4='.data-api';const ESCAPE_KEY$2='Escape';const SPACE_KEY='Space';const TAB_KEY='Tab';const ARROW_UP_KEY='ArrowUp';const ARROW_DOWN_KEY='ArrowDown';const RIGHT_MOUSE_BUTTON=2;const REGEXP_KEYDOWN=new RegExp(`${ARROW_UP_KEY}|${ARROW_DOWN_KEY}|${ESCAPE_KEY$2}`);const EVENT_HIDE$4=`hide${EVENT_KEY$7}`;const EVENT_HIDDEN$4=`hidden${EVENT_KEY$7}`;const EVENT_SHOW$4=`show${EVENT_KEY$7}`;const EVENT_SHOWN$4=`shown${EVENT_KEY$7}`;const EVENT_CLICK=`click${EVENT_KEY$7}`;const EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$7}${DATA_API_KEY$4}`;const EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$7}${DATA_API_KEY$4}`;const EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$7}${DATA_API_KEY$4}`;const CLASS_NAME_SHOW$7='show';const CLASS_NAME_DROPUP='dropup';const CLASS_NAME_DROPEND='dropend';const CLASS_NAME_DROPSTART='dropstart';const CLASS_NAME_NAVBAR='navbar';const SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]';const SELECTOR_MENU='.dropdown-menu';const SELECTOR_NAVBAR_NAV='.navbar-nav';const SELECTOR_VISIBLE_ITEMS='.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';const PLACEMENT_TOP=isRTL()?'top-end':'top-start';const PLACEMENT_TOPEND=isRTL()?'top-start':'top-end';const PLACEMENT_BOTTOM=isRTL()?'bottom-end':'bottom-start';const PLACEMENT_BOTTOMEND=isRTL()?'bottom-start':'bottom-end';const PLACEMENT_RIGHT=isRTL()?'left-start':'right-start';const PLACEMENT_LEFT=isRTL()?'right-start':'left-start';const Default$7={offset:[0,2],boundary:'clippingParents',reference:'toggle',display:'dynamic',popperConfig:null,autoClose:true};const DefaultType$7={offset:'(array|string|function)',boundary:'(string|element)',reference:'(string|element|object)',display:'string',popperConfig:'(null|object|function)',autoClose:'(boolean|string)'};class Dropdown extends BaseComponent{constructor(element,config){super(element);this._popper=null;this._config=this._getConfig(config);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners();}
static get Default(){return Default$7;}
static get DefaultType(){return DefaultType$7;}
static get NAME(){return NAME$8;}
toggle(){if(isDisabled(this._element)){return;}
const isActive=this._element.classList.contains(CLASS_NAME_SHOW$7);if(isActive){this.hide();return;}
this.show();}
show(){if(isDisabled(this._element)||this._menu.classList.contains(CLASS_NAME_SHOW$7)){return;}
const parent=Dropdown.getParentFromElement(this._element);const relatedTarget={relatedTarget:this._element};const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$4,relatedTarget);if(showEvent.defaultPrevented){return;}
if(this._inNavbar){Manipulator.setDataAttribute(this._menu,'popper','none');}else{if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');}
let referenceElement=this._element;if(this._config.reference==='parent'){referenceElement=parent;}else if(isElement$1(this._config.reference)){referenceElement=getElement(this._config.reference);}else if(typeof this._config.reference==='object'){referenceElement=this._config.reference;}
const popperConfig=this._getPopperConfig();const isDisplayStatic=popperConfig.modifiers.find(modifier=>modifier.name==='applyStyles'&&modifier.enabled===false);this._popper=createPopper(referenceElement,this._menu,popperConfig);if(isDisplayStatic){Manipulator.setDataAttribute(this._menu,'popper','static');}}
if('ontouchstart'in document.documentElement&&!parent.closest(SELECTOR_NAVBAR_NAV)){[].concat(...document.body.children).forEach(elem=>EventHandler.on(elem,'mouseover',noop));}
this._element.focus();this._element.setAttribute('aria-expanded',true);this._menu.classList.toggle(CLASS_NAME_SHOW$7);this._element.classList.toggle(CLASS_NAME_SHOW$7);EventHandler.trigger(this._element,EVENT_SHOWN$4,relatedTarget);}
hide(){if(isDisabled(this._element)||!this._menu.classList.contains(CLASS_NAME_SHOW$7)){return;}
const relatedTarget={relatedTarget:this._element};this._completeHide(relatedTarget);}
dispose(){if(this._popper){this._popper.destroy();}
super.dispose();}
update(){this._inNavbar=this._detectNavbar();if(this._popper){this._popper.update();}}
_addEventListeners(){EventHandler.on(this._element,EVENT_CLICK,event=>{event.preventDefault();this.toggle();});}
_completeHide(relatedTarget){const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$4,relatedTarget);if(hideEvent.defaultPrevented){return;}
if('ontouchstart'in document.documentElement){[].concat(...document.body.children).forEach(elem=>EventHandler.off(elem,'mouseover',noop));}
if(this._popper){this._popper.destroy();}
this._menu.classList.remove(CLASS_NAME_SHOW$7);this._element.classList.remove(CLASS_NAME_SHOW$7);this._element.setAttribute('aria-expanded','false');Manipulator.removeDataAttribute(this._menu,'popper');EventHandler.trigger(this._element,EVENT_HIDDEN$4,relatedTarget);}
_getConfig(config){config={...this.constructor.Default,...Manipulator.getDataAttributes(this._element),...config};typeCheckConfig(NAME$8,config,this.constructor.DefaultType);if(typeof config.reference==='object'&&!isElement$1(config.reference)&&typeof config.reference.getBoundingClientRect!=='function'){throw new TypeError(`${NAME$8.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);}
return config;}
_getMenuElement(){return SelectorEngine.next(this._element,SELECTOR_MENU)[0];}
_getPlacement(){const parentDropdown=this._element.parentNode;if(parentDropdown.classList.contains(CLASS_NAME_DROPEND)){return PLACEMENT_RIGHT;}
if(parentDropdown.classList.contains(CLASS_NAME_DROPSTART)){return PLACEMENT_LEFT;}
const isEnd=getComputedStyle(this._menu).getPropertyValue('--bs-position').trim()==='end';if(parentDropdown.classList.contains(CLASS_NAME_DROPUP)){return isEnd?PLACEMENT_TOPEND:PLACEMENT_TOP;}
return isEnd?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM;}
_detectNavbar(){return this._element.closest(`.${CLASS_NAME_NAVBAR}`)!==null;}
_getOffset(){const{offset}=this._config;if(typeof offset==='string'){return offset.split(',').map(val=>Number.parseInt(val,10));}
if(typeof offset==='function'){return popperData=>offset(popperData,this._element);}
return offset;}
_getPopperConfig(){const defaultBsPopperConfig={placement:this._getPlacement(),modifiers:[{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'offset',options:{offset:this._getOffset()}}]};if(this._config.display==='static'){defaultBsPopperConfig.modifiers=[{name:'applyStyles',enabled:false}];}
return{...defaultBsPopperConfig,...(typeof this._config.popperConfig==='function'?this._config.popperConfig(defaultBsPopperConfig):this._config.popperConfig)};}
_selectMenuItem(event){const items=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(isVisible);if(!items.length){return;}
let index=items.indexOf(event.target);if(event.key===ARROW_UP_KEY&&index>0){index--;}
if(event.key===ARROW_DOWN_KEY&&index<items.length-1){index++;}
index=index===-1?0:index;items[index].focus();}
static dropdownInterface(element,config){let data=Data.get(element,DATA_KEY$7);const _config=typeof config==='object'?config:null;if(!data){data=new Dropdown(element,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}}
static jQueryInterface(config){return this.each(function(){Dropdown.dropdownInterface(this,config);});}
static clearMenus(event){if(event&&(event.button===RIGHT_MOUSE_BUTTON||event.type==='keyup'&&event.key!==TAB_KEY)){return;}
const toggles=SelectorEngine.find(SELECTOR_DATA_TOGGLE$3);for(let i=0,len=toggles.length;i<len;i++){const context=Data.get(toggles[i],DATA_KEY$7);if(!context||context._config.autoClose===false){continue;}
if(!context._element.classList.contains(CLASS_NAME_SHOW$7)){continue;}
const relatedTarget={relatedTarget:context._element};if(event){const composedPath=event.composedPath();const isMenuTarget=composedPath.includes(context._menu);if(composedPath.includes(context._element)||context._config.autoClose==='inside'&&!isMenuTarget||context._config.autoClose==='outside'&&isMenuTarget){continue;}
if(context._menu.contains(event.target)&&(event.type==='keyup'&&event.key===TAB_KEY||/input|select|option|textarea|form/i.test(event.target.tagName))){continue;}
if(event.type==='click'){relatedTarget.clickEvent=event;}}
context._completeHide(relatedTarget);}}
static getParentFromElement(element){return getElementFromSelector(element)||element.parentNode;}
static dataApiKeydownHandler(event){if(/input|textarea/i.test(event.target.tagName)?event.key===SPACE_KEY||event.key!==ESCAPE_KEY$2&&(event.key!==ARROW_DOWN_KEY&&event.key!==ARROW_UP_KEY||event.target.closest(SELECTOR_MENU)):!REGEXP_KEYDOWN.test(event.key)){return;}
const isActive=this.classList.contains(CLASS_NAME_SHOW$7);if(!isActive&&event.key===ESCAPE_KEY$2){return;}
event.preventDefault();event.stopPropagation();if(isDisabled(this)){return;}
const getToggleButton=()=>this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0];if(event.key===ESCAPE_KEY$2){getToggleButton().focus();Dropdown.clearMenus();return;}
if(!isActive&&(event.key===ARROW_UP_KEY||event.key===ARROW_DOWN_KEY)){getToggleButton().click();return;}
if(!isActive||event.key===SPACE_KEY){Dropdown.clearMenus();return;}
Dropdown.getInstance(getToggleButton())._selectMenuItem(event);}}
EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(event){event.preventDefault();Dropdown.dropdownInterface(this);});defineJQueryPlugin(Dropdown);const SELECTOR_FIXED_CONTENT='.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';const SELECTOR_STICKY_CONTENT='.sticky-top';const getWidth=()=>{const documentWidth=document.documentElement.clientWidth;return Math.abs(window.innerWidth-documentWidth);};const hide=(width=getWidth())=>{_disableOverFlow();_setElementAttributes('body','paddingRight',calculatedValue=>calculatedValue+width);_setElementAttributes(SELECTOR_FIXED_CONTENT,'paddingRight',calculatedValue=>calculatedValue+width);_setElementAttributes(SELECTOR_STICKY_CONTENT,'marginRight',calculatedValue=>calculatedValue-width);};const _disableOverFlow=()=>{const actualValue=document.body.style.overflow;if(actualValue){Manipulator.setDataAttribute(document.body,'overflow',actualValue);}
document.body.style.overflow='hidden';};const _setElementAttributes=(selector,styleProp,callback)=>{const scrollbarWidth=getWidth();SelectorEngine.find(selector).forEach(element=>{if(element!==document.body&&window.innerWidth>element.clientWidth+scrollbarWidth){return;}
const actualValue=element.style[styleProp];const calculatedValue=window.getComputedStyle(element)[styleProp];Manipulator.setDataAttribute(element,styleProp,actualValue);element.style[styleProp]=`${callback(Number.parseFloat(calculatedValue))}px`;});};const reset=()=>{_resetElementAttributes('body','overflow');_resetElementAttributes('body','paddingRight');_resetElementAttributes(SELECTOR_FIXED_CONTENT,'paddingRight');_resetElementAttributes(SELECTOR_STICKY_CONTENT,'marginRight');};const _resetElementAttributes=(selector,styleProp)=>{SelectorEngine.find(selector).forEach(element=>{const value=Manipulator.getDataAttribute(element,styleProp);if(typeof value==='undefined'){element.style.removeProperty(styleProp);}else{Manipulator.removeDataAttribute(element,styleProp);element.style[styleProp]=value;}});};const uriAttrs=new Set(['background','cite','href','itemtype','longdesc','poster','src','xlink:href']);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i;const SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i;const DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;const allowedAttribute=(attr,allowedAttributeList)=>{const attrName=attr.nodeName.toLowerCase();if(allowedAttributeList.includes(attrName)){if(uriAttrs.has(attrName)){return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue)||DATA_URL_PATTERN.test(attr.nodeValue));}
return true;}
const regExp=allowedAttributeList.filter(attrRegex=>attrRegex instanceof RegExp);for(let i=0,len=regExp.length;i<len;i++){if(regExp[i].test(attrName)){return true;}}
return false;};const DefaultAllowlist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],a:['target','href','title','rel'],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:['src','srcset','alt','title','width','height'],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(unsafeHtml,allowList,sanitizeFn){if(!unsafeHtml.length){return unsafeHtml;}
if(sanitizeFn&&typeof sanitizeFn==='function'){return sanitizeFn(unsafeHtml);}
const domParser=new window.DOMParser();const createdDocument=domParser.parseFromString(unsafeHtml,'text/html');const allowlistKeys=Object.keys(allowList);const elements=[].concat(...createdDocument.body.querySelectorAll('*'));for(let i=0,len=elements.length;i<len;i++){const el=elements[i];const elName=el.nodeName.toLowerCase();if(!allowlistKeys.includes(elName)){el.parentNode.removeChild(el);continue;}
const attributeList=[].concat(...el.attributes);const allowedAttributes=[].concat(allowList['*']||[],allowList[elName]||[]);attributeList.forEach(attr=>{if(!allowedAttribute(attr,allowedAttributes)){el.removeAttribute(attr.nodeName);}});}
return createdDocument.body.innerHTML;}
const NAME$4='tooltip';const DATA_KEY$4='bs.tooltip';const EVENT_KEY$4=`.${DATA_KEY$4}`;const CLASS_PREFIX$1='bs-tooltip';const BSCLS_PREFIX_REGEX$1=new RegExp(`(^|\\s)${CLASS_PREFIX$1}\\S+`,'g');const DISALLOWED_ATTRIBUTES=new Set(['sanitize','allowList','sanitizeFn']);const DefaultType$3={animation:'boolean',template:'string',title:'(string|element|function)',trigger:'string',delay:'(number|object)',html:'boolean',selector:'(string|boolean)',placement:'(string|function)',offset:'(array|string|function)',container:'(string|element|boolean)',fallbackPlacements:'array',boundary:'(string|element)',customClass:'(string|function)',sanitize:'boolean',sanitizeFn:'(null|function)',allowList:'object',popperConfig:'(null|object|function)'};const AttachmentMap={AUTO:'auto',TOP:'top',RIGHT:isRTL()?'left':'right',BOTTOM:'bottom',LEFT:isRTL()?'right':'left'};const Default$3={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="tooltip-arrow"></div>'+'<div class="tooltip-inner"></div>'+'</div>',trigger:'hover focus',title:'',delay:0,html:false,selector:false,placement:'top',offset:[0,0],container:false,fallbackPlacements:['top','right','bottom','left'],boundary:'clippingParents',customClass:'',sanitize:true,sanitizeFn:null,allowList:DefaultAllowlist,popperConfig:null};const Event$2={HIDE:`hide${EVENT_KEY$4}`,HIDDEN:`hidden${EVENT_KEY$4}`,SHOW:`show${EVENT_KEY$4}`,SHOWN:`shown${EVENT_KEY$4}`,INSERTED:`inserted${EVENT_KEY$4}`,CLICK:`click${EVENT_KEY$4}`,FOCUSIN:`focusin${EVENT_KEY$4}`,FOCUSOUT:`focusout${EVENT_KEY$4}`,MOUSEENTER:`mouseenter${EVENT_KEY$4}`,MOUSELEAVE:`mouseleave${EVENT_KEY$4}`};const CLASS_NAME_FADE$3='fade';const CLASS_NAME_MODAL='modal';const CLASS_NAME_SHOW$3='show';const HOVER_STATE_SHOW='show';const HOVER_STATE_OUT='out';const SELECTOR_TOOLTIP_INNER='.tooltip-inner';const TRIGGER_HOVER='hover';const TRIGGER_FOCUS='focus';const TRIGGER_CLICK='click';const TRIGGER_MANUAL='manual';class Tooltip extends BaseComponent{constructor(element,config){if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');}
super(element);this._isEnabled=true;this._timeout=0;this._hoverState='';this._activeTrigger={};this._popper=null;this._config=this._getConfig(config);this.tip=null;this._setListeners();}
static get Default(){return Default$3;}
static get NAME(){return NAME$4;}
static get Event(){return Event$2;}
static get DefaultType(){return DefaultType$3;}
enable(){this._isEnabled=true;}
disable(){this._isEnabled=false;}
toggleEnabled(){this._isEnabled=!this._isEnabled;}
toggle(event){if(!this._isEnabled){return;}
if(event){const context=this._initializeOnDelegatedTarget(event);context._activeTrigger.click=!context._activeTrigger.click;if(context._isWithActiveTrigger()){context._enter(null,context);}else{context._leave(null,context);}}else{if(this.getTipElement().classList.contains(CLASS_NAME_SHOW$3)){this._leave(null,this);return;}
this._enter(null,this);}}
dispose(){clearTimeout(this._timeout);EventHandler.off(this._element.closest(`.${CLASS_NAME_MODAL}`),'hide.bs.modal',this._hideModalHandler);if(this.tip&&this.tip.parentNode){this.tip.parentNode.removeChild(this.tip);}
if(this._popper){this._popper.destroy();}
super.dispose();}
show(){if(this._element.style.display==='none'){throw new Error('Please use show on visible elements');}
if(!(this.isWithContent()&&this._isEnabled)){return;}
const showEvent=EventHandler.trigger(this._element,this.constructor.Event.SHOW);const shadowRoot=findShadowRoot(this._element);const isInTheDom=shadowRoot===null?this._element.ownerDocument.documentElement.contains(this._element):shadowRoot.contains(this._element);if(showEvent.defaultPrevented||!isInTheDom){return;}
const tip=this.getTipElement();const tipId=getUID(this.constructor.NAME);tip.setAttribute('id',tipId);this._element.setAttribute('aria-describedby',tipId);this.setContent();if(this._config.animation){tip.classList.add(CLASS_NAME_FADE$3);}
const placement=typeof this._config.placement==='function'?this._config.placement.call(this,tip,this._element):this._config.placement;const attachment=this._getAttachment(placement);this._addAttachmentClass(attachment);const{container}=this._config;Data.set(tip,this.constructor.DATA_KEY,this);if(!this._element.ownerDocument.documentElement.contains(this.tip)){container.appendChild(tip);EventHandler.trigger(this._element,this.constructor.Event.INSERTED);}
if(this._popper){this._popper.update();}else{this._popper=createPopper(this._element,tip,this._getPopperConfig(attachment));}
tip.classList.add(CLASS_NAME_SHOW$3);const customClass=typeof this._config.customClass==='function'?this._config.customClass():this._config.customClass;if(customClass){tip.classList.add(...customClass.split(' '));}
if('ontouchstart'in document.documentElement){[].concat(...document.body.children).forEach(element=>{EventHandler.on(element,'mouseover',noop);});}
const complete=()=>{const prevHoverState=this._hoverState;this._hoverState=null;EventHandler.trigger(this._element,this.constructor.Event.SHOWN);if(prevHoverState===HOVER_STATE_OUT){this._leave(null,this);}};const isAnimated=this.tip.classList.contains(CLASS_NAME_FADE$3);this._queueCallback(complete,this.tip,isAnimated);}
hide(){if(!this._popper){return;}
const tip=this.getTipElement();const complete=()=>{if(this._isWithActiveTrigger()){return;}
if(this._hoverState!==HOVER_STATE_SHOW&&tip.parentNode){tip.parentNode.removeChild(tip);}
this._cleanTipClass();this._element.removeAttribute('aria-describedby');EventHandler.trigger(this._element,this.constructor.Event.HIDDEN);if(this._popper){this._popper.destroy();this._popper=null;}};const hideEvent=EventHandler.trigger(this._element,this.constructor.Event.HIDE);if(hideEvent.defaultPrevented){return;}
tip.classList.remove(CLASS_NAME_SHOW$3);if('ontouchstart'in document.documentElement){[].concat(...document.body.children).forEach(element=>EventHandler.off(element,'mouseover',noop));}
this._activeTrigger[TRIGGER_CLICK]=false;this._activeTrigger[TRIGGER_FOCUS]=false;this._activeTrigger[TRIGGER_HOVER]=false;const isAnimated=this.tip.classList.contains(CLASS_NAME_FADE$3);this._queueCallback(complete,this.tip,isAnimated);this._hoverState='';}
update(){if(this._popper!==null){this._popper.update();}}
isWithContent(){return Boolean(this.getTitle());}
getTipElement(){if(this.tip){return this.tip;}
const element=document.createElement('div');element.innerHTML=this._config.template;this.tip=element.children[0];return this.tip;}
setContent(){const tip=this.getTipElement();this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER,tip),this.getTitle());tip.classList.remove(CLASS_NAME_FADE$3,CLASS_NAME_SHOW$3);}
setElementContent(element,content){if(element===null){return;}
if(isElement$1(content)){content=getElement(content);if(this._config.html){if(content.parentNode!==element){element.innerHTML='';element.appendChild(content);}}else{element.textContent=content.textContent;}
return;}
if(this._config.html){if(this._config.sanitize){content=sanitizeHtml(content,this._config.allowList,this._config.sanitizeFn);}
element.innerHTML=content;}else{element.textContent=content;}}
getTitle(){let title=this._element.getAttribute('data-bs-original-title');if(!title){title=typeof this._config.title==='function'?this._config.title.call(this._element):this._config.title;}
return title;}
updateAttachment(attachment){if(attachment==='right'){return'end';}
if(attachment==='left'){return'start';}
return attachment;}
_initializeOnDelegatedTarget(event,context){const dataKey=this.constructor.DATA_KEY;context=context||Data.get(event.delegateTarget,dataKey);if(!context){context=new this.constructor(event.delegateTarget,this._getDelegateConfig());Data.set(event.delegateTarget,dataKey,context);}
return context;}
_getOffset(){const{offset}=this._config;if(typeof offset==='string'){return offset.split(',').map(val=>Number.parseInt(val,10));}
if(typeof offset==='function'){return popperData=>offset(popperData,this._element);}
return offset;}
_getPopperConfig(attachment){const defaultBsPopperConfig={placement:attachment,modifiers:[{name:'flip',options:{fallbackPlacements:this._config.fallbackPlacements}},{name:'offset',options:{offset:this._getOffset()}},{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'arrow',options:{element:`.${this.constructor.NAME}-arrow`}},{name:'onChange',enabled:true,phase:'afterWrite',fn:data=>this._handlePopperPlacementChange(data)}],onFirstUpdate:data=>{if(data.options.placement!==data.placement){this._handlePopperPlacementChange(data);}}};return{...defaultBsPopperConfig,...(typeof this._config.popperConfig==='function'?this._config.popperConfig(defaultBsPopperConfig):this._config.popperConfig)};}
_addAttachmentClass(attachment){this.getTipElement().classList.add(`${CLASS_PREFIX$1}-${this.updateAttachment(attachment)}`);}
_getAttachment(placement){return AttachmentMap[placement.toUpperCase()];}
_setListeners(){const triggers=this._config.trigger.split(' ');triggers.forEach(trigger=>{if(trigger==='click'){EventHandler.on(this._element,this.constructor.Event.CLICK,this._config.selector,event=>this.toggle(event));}else if(trigger!==TRIGGER_MANUAL){const eventIn=trigger===TRIGGER_HOVER?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN;const eventOut=trigger===TRIGGER_HOVER?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;EventHandler.on(this._element,eventIn,this._config.selector,event=>this._enter(event));EventHandler.on(this._element,eventOut,this._config.selector,event=>this._leave(event));}});this._hideModalHandler=()=>{if(this._element){this.hide();}};EventHandler.on(this._element.closest(`.${CLASS_NAME_MODAL}`),'hide.bs.modal',this._hideModalHandler);if(this._config.selector){this._config={...this._config,trigger:'manual',selector:''};}else{this._fixTitle();}}
_fixTitle(){const title=this._element.getAttribute('title');const originalTitleType=typeof this._element.getAttribute('data-bs-original-title');if(title||originalTitleType!=='string'){this._element.setAttribute('data-bs-original-title',title||'');if(title&&!this._element.getAttribute('aria-label')&&!this._element.textContent){this._element.setAttribute('aria-label',title);}
this._element.setAttribute('title','');}}
_enter(event,context){context=this._initializeOnDelegatedTarget(event,context);if(event){context._activeTrigger[event.type==='focusin'?TRIGGER_FOCUS:TRIGGER_HOVER]=true;}
if(context.getTipElement().classList.contains(CLASS_NAME_SHOW$3)||context._hoverState===HOVER_STATE_SHOW){context._hoverState=HOVER_STATE_SHOW;return;}
clearTimeout(context._timeout);context._hoverState=HOVER_STATE_SHOW;if(!context._config.delay||!context._config.delay.show){context.show();return;}
context._timeout=setTimeout(()=>{if(context._hoverState===HOVER_STATE_SHOW){context.show();}},context._config.delay.show);}
_leave(event,context){context=this._initializeOnDelegatedTarget(event,context);if(event){context._activeTrigger[event.type==='focusout'?TRIGGER_FOCUS:TRIGGER_HOVER]=context._element.contains(event.relatedTarget);}
if(context._isWithActiveTrigger()){return;}
clearTimeout(context._timeout);context._hoverState=HOVER_STATE_OUT;if(!context._config.delay||!context._config.delay.hide){context.hide();return;}
context._timeout=setTimeout(()=>{if(context._hoverState===HOVER_STATE_OUT){context.hide();}},context._config.delay.hide);}
_isWithActiveTrigger(){for(const trigger in this._activeTrigger){if(this._activeTrigger[trigger]){return true;}}
return false;}
_getConfig(config){const dataAttributes=Manipulator.getDataAttributes(this._element);Object.keys(dataAttributes).forEach(dataAttr=>{if(DISALLOWED_ATTRIBUTES.has(dataAttr)){delete dataAttributes[dataAttr];}});config={...this.constructor.Default,...dataAttributes,...(typeof config==='object'&&config?config:{})};config.container=config.container===false?document.body:getElement(config.container);if(typeof config.delay==='number'){config.delay={show:config.delay,hide:config.delay};}
if(typeof config.title==='number'){config.title=config.title.toString();}
if(typeof config.content==='number'){config.content=config.content.toString();}
typeCheckConfig(NAME$4,config,this.constructor.DefaultType);if(config.sanitize){config.template=sanitizeHtml(config.template,config.allowList,config.sanitizeFn);}
return config;}
_getDelegateConfig(){const config={};if(this._config){for(const key in this._config){if(this.constructor.Default[key]!==this._config[key]){config[key]=this._config[key];}}}
return config;}
_cleanTipClass(){const tip=this.getTipElement();const tabClass=tip.getAttribute('class').match(BSCLS_PREFIX_REGEX$1);if(tabClass!==null&&tabClass.length>0){tabClass.map(token=>token.trim()).forEach(tClass=>tip.classList.remove(tClass));}}
_handlePopperPlacementChange(popperData){const{state}=popperData;if(!state){return;}
this.tip=state.elements.popper;this._cleanTipClass();this._addAttachmentClass(this._getAttachment(state.placement));}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$4);const _config=typeof config==='object'&&config;if(!data&&/dispose|hide/.test(config)){return;}
if(!data){data=new Tooltip(this,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}});}}
defineJQueryPlugin(Tooltip);const NAME$2='scrollspy';const DATA_KEY$2='bs.scrollspy';const EVENT_KEY$2=`.${DATA_KEY$2}`;const DATA_API_KEY$1='.data-api';const Default$1={offset:10,method:'auto',target:''};const DefaultType$1={offset:'number',method:'string',target:'(string|element)'};const EVENT_ACTIVATE=`activate${EVENT_KEY$2}`;const EVENT_SCROLL=`scroll${EVENT_KEY$2}`;const EVENT_LOAD_DATA_API=`load${EVENT_KEY$2}${DATA_API_KEY$1}`;const CLASS_NAME_DROPDOWN_ITEM='dropdown-item';const CLASS_NAME_ACTIVE$1='active';const SELECTOR_DATA_SPY='[data-bs-spy="scroll"]';const SELECTOR_NAV_LIST_GROUP$1='.nav, .list-group';const SELECTOR_NAV_LINKS='.nav-link';const SELECTOR_NAV_ITEMS='.nav-item';const SELECTOR_LIST_ITEMS='.list-group-item';const SELECTOR_DROPDOWN$1='.dropdown';const SELECTOR_DROPDOWN_TOGGLE$1='.dropdown-toggle';const METHOD_OFFSET='offset';const METHOD_POSITION='position';class ScrollSpy extends BaseComponent{constructor(element,config){super(element);this._scrollElement=this._element.tagName==='BODY'?window:this._element;this._config=this._getConfig(config);this._selector=`${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;EventHandler.on(this._scrollElement,EVENT_SCROLL,()=>this._process());this.refresh();this._process();}
static get Default(){return Default$1;}
static get NAME(){return NAME$2;}
refresh(){const autoMethod=this._scrollElement===this._scrollElement.window?METHOD_OFFSET:METHOD_POSITION;const offsetMethod=this._config.method==='auto'?autoMethod:this._config.method;const offsetBase=offsetMethod===METHOD_POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();const targets=SelectorEngine.find(this._selector);targets.map(element=>{const targetSelector=getSelectorFromElement(element);const target=targetSelector?SelectorEngine.findOne(targetSelector):null;if(target){const targetBCR=target.getBoundingClientRect();if(targetBCR.width||targetBCR.height){if(this._scrollElement===this._scrollElement.window&&'offset'==offsetMethod){return[targetBCR.top+this._scrollElement.window.pageYOffset+offsetBase,targetSelector];}
return[Manipulator[offsetMethod](target).top+offsetBase,targetSelector];}}
return null;}).filter(item=>item).sort((a,b)=>a[0]-b[0]).forEach(item=>{this._offsets.push(item[0]);this._targets.push(item[1]);});}
dispose(){EventHandler.off(this._scrollElement,EVENT_KEY$2);super.dispose();}
_getConfig(config){config={...Default$1,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'&&config?config:{})};if(typeof config.target!=='string'&&isElement$1(config.target)){let{id}=config.target;if(!id){id=getUID(NAME$2);config.target.id=id;}
config.target=`#${id}`;}
typeCheckConfig(NAME$2,config,DefaultType$1);return config;}
_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop;}
_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);}
_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height;}
_process(){const scrollTop=this._getScrollTop()+this._config.offset;const scrollHeight=this._getScrollHeight();const maxScroll=this._config.offset+scrollHeight-this._getOffsetHeight();if(this._scrollHeight!==scrollHeight){this.refresh();}
if(scrollTop>=maxScroll){const target=this._targets[this._targets.length-1];if(this._activeTarget!==target){this._activate(target);}
return;}
if(this._activeTarget&&scrollTop<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return;}
for(let i=this._offsets.length;i--;){const isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop>=this._offsets[i]&&(typeof this._offsets[i+1]==='undefined'||scrollTop<this._offsets[i+1]);if(isActiveTarget){this._activate(this._targets[i]);}}}
_activate(target){this._activeTarget=target;this._clear();const queries=this._selector.split(',').map(selector=>`${selector}[data-bs-target="${target}"],${selector}[href="${target}"]`);const link=SelectorEngine.findOne(queries.join(','));if(link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,link.closest(SELECTOR_DROPDOWN$1)).classList.add(CLASS_NAME_ACTIVE$1);link.classList.add(CLASS_NAME_ACTIVE$1);}else{link.classList.add(CLASS_NAME_ACTIVE$1);SelectorEngine.parents(link,SELECTOR_NAV_LIST_GROUP$1).forEach(listGroup=>{SelectorEngine.prev(listGroup,`${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`).forEach(item=>item.classList.add(CLASS_NAME_ACTIVE$1));SelectorEngine.prev(listGroup,SELECTOR_NAV_ITEMS).forEach(navItem=>{SelectorEngine.children(navItem,SELECTOR_NAV_LINKS).forEach(item=>item.classList.add(CLASS_NAME_ACTIVE$1));});});}
EventHandler.trigger(this._scrollElement,EVENT_ACTIVATE,{relatedTarget:target});}
_clear(){SelectorEngine.find(this._selector).filter(node=>node.classList.contains(CLASS_NAME_ACTIVE$1)).forEach(node=>node.classList.remove(CLASS_NAME_ACTIVE$1));}
static jQueryInterface(config){return this.each(function(){const data=ScrollSpy.getInstance(this)||new ScrollSpy(this,typeof config==='object'?config:{});if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();});}}
EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{SelectorEngine.find(SELECTOR_DATA_SPY).forEach(spy=>new ScrollSpy(spy));});defineJQueryPlugin(ScrollSpy);const NAME$1='tab';const DATA_KEY$1='bs.tab';const EVENT_KEY$1=`.${DATA_KEY$1}`;const DATA_API_KEY='.data-api';const EVENT_HIDE$1=`hide${EVENT_KEY$1}`;const EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`;const EVENT_SHOW$1=`show${EVENT_KEY$1}`;const EVENT_SHOWN$1=`shown${EVENT_KEY$1}`;const EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}${DATA_API_KEY}`;const CLASS_NAME_DROPDOWN_MENU='dropdown-menu';const CLASS_NAME_ACTIVE='active';const CLASS_NAME_FADE$1='fade';const CLASS_NAME_SHOW$1='show';const SELECTOR_DROPDOWN='.dropdown';const SELECTOR_NAV_LIST_GROUP='.nav, .list-group';const SELECTOR_ACTIVE='.active';const SELECTOR_ACTIVE_UL=':scope > li > .active';const SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle';const SELECTOR_DROPDOWN_ACTIVE_CHILD=':scope > .dropdown-menu .active';class Tab extends BaseComponent{static get NAME(){return NAME$1;}
show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(CLASS_NAME_ACTIVE)){return;}
let previous;const target=getElementFromSelector(this._element);const listElement=this._element.closest(SELECTOR_NAV_LIST_GROUP);if(listElement){const itemSelector=listElement.nodeName==='UL'||listElement.nodeName==='OL'?SELECTOR_ACTIVE_UL:SELECTOR_ACTIVE;previous=SelectorEngine.find(itemSelector,listElement);previous=previous[previous.length-1];}
const hideEvent=previous?EventHandler.trigger(previous,EVENT_HIDE$1,{relatedTarget:this._element}):null;const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$1,{relatedTarget:previous});if(showEvent.defaultPrevented||hideEvent!==null&&hideEvent.defaultPrevented){return;}
this._activate(this._element,listElement);const complete=()=>{EventHandler.trigger(previous,EVENT_HIDDEN$1,{relatedTarget:this._element});EventHandler.trigger(this._element,EVENT_SHOWN$1,{relatedTarget:previous});};if(target){this._activate(target,target.parentNode,complete);}else{complete();}}
_activate(element,container,callback){const activeElements=container&&(container.nodeName==='UL'||container.nodeName==='OL')?SelectorEngine.find(SELECTOR_ACTIVE_UL,container):SelectorEngine.children(container,SELECTOR_ACTIVE);const active=activeElements[0];const isTransitioning=callback&&active&&active.classList.contains(CLASS_NAME_FADE$1);const complete=()=>this._transitionComplete(element,active,callback);if(active&&isTransitioning){active.classList.remove(CLASS_NAME_SHOW$1);this._queueCallback(complete,element,true);}else{complete();}}
_transitionComplete(element,active,callback){if(active){active.classList.remove(CLASS_NAME_ACTIVE);const dropdownChild=SelectorEngine.findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD,active.parentNode);if(dropdownChild){dropdownChild.classList.remove(CLASS_NAME_ACTIVE);}
if(active.getAttribute('role')==='tab'){active.setAttribute('aria-selected',false);}}
element.classList.add(CLASS_NAME_ACTIVE);if(element.getAttribute('role')==='tab'){element.setAttribute('aria-selected',true);}
reflow(element);if(element.classList.contains(CLASS_NAME_FADE$1)){element.classList.add(CLASS_NAME_SHOW$1);}
let parent=element.parentNode;if(parent&&parent.nodeName==='LI'){parent=parent.parentNode;}
if(parent&&parent.classList.contains(CLASS_NAME_DROPDOWN_MENU)){const dropdownElement=element.closest(SELECTOR_DROPDOWN);if(dropdownElement){SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE,dropdownElement).forEach(dropdown=>dropdown.classList.add(CLASS_NAME_ACTIVE));}
element.setAttribute('aria-expanded',true);}
if(callback){callback();}}
static jQueryInterface(config){return this.each(function(){const data=Data.get(this,DATA_KEY$1)||new Tab(this);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}});}}
EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
if(isDisabled(this)){return;}
const data=Data.get(this,DATA_KEY$1)||new Tab(this);data.show();});defineJQueryPlugin(Tab);var index_umd={Alert,Button,Collapse,Dropdown,ScrollSpy,Tab,Tooltip,SelectorEngine,};return index_umd;})));}catch(e){}
try{!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return r.raw?e:encodeURIComponent(e)}function o(e){return r.raw?e:decodeURIComponent(e)}function t(e,n){var o=r.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(i," ")),r.json?JSON.parse(e):e}catch(e){}}(e);return"function"==typeof n?n(o):o}var i=/\+/g,r=e.cookie=function(i,c,u){if(arguments.length>1&&"function"!=typeof c){if("number"==typeof(u=e.extend({},r.defaults,u)).expires){var f=u.expires,p=u.expires=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*f)}return document.cookie=[n(i),"=",function(e){return n(r.json?JSON.stringify(e):String(e))}(c),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var s=i?void 0:{},d=document.cookie?document.cookie.split("; "):[],a=0,l=d.length;a<l;a++){var m=d[a].split("="),x=o(m.shift()),y=m.join("=");if(i===x){s=t(y,c);break}i||void 0===(y=t(y))||(s[x]=y)}return s};r.defaults={},e.removeCookie=function(n,o){return e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n)}});}catch(e){}
try{!function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy((function(e,i){this._handlers[i]=t.proxy(this[i],this)}),this)),t.each(n.Plugins,t.proxy((function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)}),this)),t.each(n.Workers,t.proxy((function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})}),this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",h="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),h=i[e[e.length-1]][0].outerHTML+h,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(h).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map((function(e){return t(e)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,(function(t){t<=e&&t>s&&(s=Number(t))})),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy((function(t){return this[t]}),this._invalidated),n={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;3!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy((function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},n.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},n.prototype.onDragEnd=function(e){var s=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy((function(t,a){return"left"===i&&e>a-30&&e<a+30?n=t:"right"===i&&e>a-o-30&&e<a-o+30?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==s?r[t+1]:a-o)&&(n="left"===i?t+1:t),-1===n}),this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"==typeof e&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,(function(t,e){return e}))},n.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=s:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,(function(t,e){return o(e)})):t.map(this._clones,(function(t,i){return t===e?o(i):null}))},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,n=1,o=e-1;return e===s?t.map(this._coordinates,t.proxy((function(t,e){return this.coordinates(e)}),this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))},n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&s-n>0&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter((function(){return 1===this.nodeType})).each(t.proxy((function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===s?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy((function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy((function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))}),this))},n.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t<i;case">":return s?t<i:t>i;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},h=t.camelCase(t.grep(["on",e,s],(function(t){return t})).join("-").toLowerCase()),l=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,(function(t,e){e.onTrigger&&e.onTrigger(l)})),this.register({type:n.Type.Event,name:e}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[h]&&this.settings[h].call(this,l)),l},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]===s&&(this._states.current[e]=0),this._states.current[e]++}),this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]--}),this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy((function(i,s){return t.inArray(i,this._states.tags[e.name])===s}),this)))},n.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},n.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},n.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each((function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy((function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))}),o))}))),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)}))},t.fn.owlCarousel.Constructor=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&undefined!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy((function(t,e){this.load(e)}),this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={lazyLoad:!1,lazyLoadEager:0},n.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy((function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy((function(){o.addClass("owl-lazy-loaded"),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy((function(){this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("srcset",r):((n=new Image).onload=t.proxy((function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this),n.src=r)}),this)),this._loaded.push(s.get(0)))},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()}),this),"loaded.owl.lazy":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;t(e).on("load",(function(){s._core.settings.autoHeight&&s.update()})),t(e).on("resize",(function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout((function(){s.update()}),250))}))};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,(function(e,i){o.push(t(i).height())})),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.play(t)}),this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var s,n,o=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",h="",l=this._core.settings,c=function(i){'<div class="owl-video-play-icon"></div>',s=l.lazyLoad?t("<div/>",{class:"owl-video-tn "+h,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){t.namespace&&(this.swapping="translated"==t.type)}),this),"translate.owl.carousel":t.proxy((function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy((function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":t.proxy((function(t,e,i){t.namespace&&this.play(e,i)}),this),"stop.owl.autoplay":t.proxy((function(t){t.namespace&&this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){"use strict";var n=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())}),this),"remove.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&this.draw()}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" aria-label="owl-button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy((function(t){this.prev(i.navSpeed)}),this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy((function(t){this.next(i.navSpeed)}),this)),i.dotsData||(this._templates=[t('<button aria-label="owl-dot"  role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy((function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)}),this)),this._overrides)this._core[e]=t.proxy(this[e],this)},n.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<s;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},n.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},n.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy((function(t,i){return t.start<=e&&t.end>=e}),this)).pop()},n.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},n.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},n.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},n.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy((function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}}),this),"changed.owl.carousel":t.proxy((function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,(function(t,e){return t===s?e:null})).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy((function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);undefined!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)}),this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=t("<support>").get(0).style,o="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},a=function(){return!!c("transform")},h=function(){return!!c("perspective")},l=function(){return!!c("animation")};function c(e,i){var r=!1,a=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+o.join(a+" ")+a).split(" "),(function(t,e){if(n[e]!==s)return r=!i||e,!1})),r}function p(t){return c(t,!0)}(function(){return!!c("transition")})()&&(t.support.transition=new String(p("transition")),t.support.transition.end=r.transition.end[t.support.transition]),l()&&(t.support.animation=new String(p("animation")),t.support.animation.end=r.animation.end[t.support.animation]),a()&&(t.support.transform=new String(p("transform")),t.support.transform3d=h())}(window.jQuery||window.Zepto,window,document);}catch(e){}
try{/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));}catch(e){}
try{/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,Array.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=Array.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).trigger('focus'),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).trigger('focus')},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});}catch(e){}
try{if(!String.prototype.endsWith){String.prototype.endsWith=function(search,this_len){if(this_len===undefined||this_len>this.length){this_len=this.length;}
return this.substring(this_len-search.length,this_len)===search;};}
if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach;}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};}
(function($,sr){'use strict';var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)
func.apply(obj,args);timeout=null;}
if(timeout&&timeout.val)
theme.deleteTimeout(timeout);else if(execAsap)
func.apply(obj,args);timeout=theme.requestTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.on('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;}});(function($){$.fn.visible=function(partial,hidden,direction,container){if(this.length<1)
return;var $t=this.length>1?this.eq(0):this,isContained=typeof container!=='undefined'&&container!==null,$w=isContained?$(container):$(window),wPosition=isContained?$w.position():0,t=$t.get(0),vpWidth=$w.outerWidth(),vpHeight=$w.outerHeight(),direction=(direction)?direction:'both',clientSize=hidden===true?t.offsetWidth*t.offsetHeight:true;if(typeof t.getBoundingClientRect==='function'){var rec=t.getBoundingClientRect(),tViz=isContained?rec.top-wPosition.top>=0&&rec.top<vpHeight+wPosition.top:rec.top>=0&&rec.top<vpHeight,bViz=isContained?rec.bottom-wPosition.top>0&&rec.bottom<=vpHeight+wPosition.top:rec.bottom>0&&rec.bottom<=vpHeight,lViz=isContained?rec.left-wPosition.left>=0&&rec.left<vpWidth+wPosition.left:rec.left>=0&&rec.left<vpWidth,rViz=isContained?rec.right-wPosition.left>0&&rec.right<vpWidth+wPosition.left:rec.right>0&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||rViz:lViz&&rViz;if(direction==='both')
return clientSize&&vVisible&&hVisible;else if(direction==='vertical')
return clientSize&&vVisible;else if(direction==='horizontal')
return clientSize&&hVisible;}else{var viewTop=isContained?0:wPosition,viewBottom=viewTop+vpHeight,viewLeft=$w.scrollLeft(),viewRight=viewLeft+vpWidth,position=$t.position(),_top=position.top,_bottom=_top+$t.height(),_left=position.left,_right=_left+$t.width(),compareTop=partial===true?_bottom:_top,compareBottom=partial===true?_top:_bottom,compareLeft=partial===true?_right:_left,compareRight=partial===true?_left:_right;if(direction==='both')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop))&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));else if(direction==='vertical')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop));else if(direction==='horizontal')
return!!clientSize&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));}};})(jQuery);window.theme={};(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{rtl:js_porto_vars.rtl=='1'?true:false,rtl_browser:$('html').hasClass('browser-rtl'),ajax_url:js_porto_vars.ajax_url,request_error:js_porto_vars.request_error,change_logo:js_porto_vars.change_logo=='1'?true:false,show_sticky_header:js_porto_vars.show_sticky_header=='1'?true:false,show_sticky_header_tablet:js_porto_vars.show_sticky_header_tablet=='1'?true:false,show_sticky_header_mobile:js_porto_vars.show_sticky_header_mobile=='1'?true:false,category_ajax:js_porto_vars.category_ajax=='1'?true:false,prdctfltr_ajax:js_porto_vars.prdctfltr_ajax=='1'?true:false,container_width:parseInt(js_porto_vars.container_width),grid_gutter_width:parseInt(js_porto_vars.grid_gutter_width),screen_xl:parseInt(js_porto_vars.screen_xl),screen_xxl:parseInt(js_porto_vars.screen_xxl),slider_loop:js_porto_vars.slider_loop=='1'?true:false,slider_autoplay:js_porto_vars.slider_autoplay=='1'?true:false,slider_autoheight:js_porto_vars.slider_autoheight=='1'?true:false,slider_speed:js_porto_vars.slider_speed?js_porto_vars.slider_speed:5000,slider_nav:js_porto_vars.slider_nav=='1'?true:false,slider_nav_hover:js_porto_vars.slider_nav_hover=='1'?true:false,slider_margin:js_porto_vars.slider_margin=='1'?40:0,slider_dots:js_porto_vars.slider_dots=='1'?true:false,slider_animatein:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:'',slider_animateout:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:'',product_thumbs_count:js_porto_vars.product_thumbs_count?parseInt(js_porto_vars.product_thumbs_count,10):4,product_zoom:js_porto_vars.product_zoom=='1'?true:false,product_zoom_mobile:js_porto_vars.product_zoom_mobile=='1'?true:false,product_image_popup:js_porto_vars.product_image_popup=='1'?'fadeOut':false,innerHeight:window.innerHeight,animation_support:!$('html').hasClass('no-csstransitions'),owlConfig:{rtl:js_porto_vars.rtl=='1'?true:false,loop:js_porto_vars.slider_loop=='1'?true:false,autoplay:js_porto_vars.slider_autoplay=='1'?true:false,autoHeight:js_porto_vars.slider_autoheight=='1'?true:false,autoplayTimeout:js_porto_vars.slider_speed?js_porto_vars.slider_speed:7000,autoplayHoverPause:true,lazyLoad:true,nav:js_porto_vars.slider_nav=='1'?true:false,navText:["",""],dots:js_porto_vars.slider_dots=='1'?true:false,stagePadding:(js_porto_vars.slider_nav_hover!='1'&&js_porto_vars.slider_margin=='1')?40:0,animateOut:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:'',animateIn:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:''},sticky_nav_height:0,is_device_mobile:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)),getScrollbarWidth:function(){if(this.scrollbarSize===undefined){this.scrollbarSize=window.innerWidth-document.documentElement.clientWidth;}
return this.scrollbarSize;},isTablet:function(){if(window.innerWidth<992)
return true;return false;},isMobile:function(){if(window.innerWidth<=480)
return true;return false;},isIOS:function(){return['iPad Simulator','iPhone Simulator','iPod Simulator','iPad','iPhone','iPod'].includes(navigator.platform)||(navigator.userAgent.includes("Mac")&&"ontouchend"in document);},refreshVCContent:function($elements){if($elements||$(document.body).hasClass('elementor-page')){$(window).trigger('resize');}
theme.refreshStickySidebar(true);if(typeof window.vc_js=='function')
window.vc_js();$(document.body).trigger('porto_refresh_vc_content',[$elements]);},adminBarHeight:function(){if(theme.adminBarHeightNum||0===theme.adminBarHeightNum){return theme.adminBarHeightNum;}
var obj=document.getElementById('wpadminbar'),fixed_top=$('.porto-scroll-progress.fixed-top:not(.fixed-under-header)');if(fixed_top.length&&'0px'==fixed_top.css('margin-top')){theme.adminBarHeightNum=fixed_top.height();}else{theme.adminBarHeightNum=0;}
if(obj&&obj.offsetHeight&&window.innerWidth>600){theme.adminBarHeightNum+=obj.offsetHeight;}
return theme.adminBarHeightNum;},refreshStickySidebar:function(timeout,$sticky_sidebar){if(typeof $sticky_sidebar=='undefined'){$sticky_sidebar=$('.sidebar [data-plugin-sticky]');}
if($sticky_sidebar.get(0)){if(timeout){theme.requestTimeout(function(){$sticky_sidebar.trigger('recalc.pin');},400);}else{$sticky_sidebar.trigger('recalc.pin');}}},scrolltoContainer:function($container,timeout){if($container.get(0)){if(window.innerWidth<992){$('.sidebar-overlay').trigger('click');}
if(!timeout){timeout=600;}
$('html, body').stop().animate({scrollTop:$container.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height-18},timeout,'easeOutQuad');}},requestFrame:function(fn){var handler=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!handler){return setTimeout(fn,1000/60);}
var rt=new Object()
rt.val=handler(fn);return rt;},requestTimeout:function(fn,delay){var handler=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!handler){return setTimeout(fn,delay);}
var start,rt=new Object();function loop(timestamp){if(!start){start=timestamp;}
var progress=timestamp-start;progress>=delay?fn.call():rt.val=handler(loop);};rt.val=handler(loop);return rt;},deleteTimeout:function(timeoutID){if(!timeoutID){return;}
var handler=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame;if(!handler){return clearTimeout(timeoutID);}
if(timeoutID.val){return handler(timeoutID.val);}},execPluginFunction:function(functionName,context){var args=Array.prototype.slice.call(arguments,2);var namespaces=functionName.split(".");var func=namespaces.pop();for(var i=0;i<namespaces.length;i++){context=context[namespaces[i]];}
return context[func].apply(context,args);},getOptions:function(opts){if(typeof(opts)=='object'){return opts;}else if(typeof(opts)=='string'){try{return JSON.parse(opts.replace(/'/g,'"').replace(';',''));}catch(e){return{};}}else{return{};}},mergeOptions:function(obj1,obj2){var obj3={};for(var attrname in obj1){obj3[attrname]=obj1[attrname];}
for(var attrname in obj2){obj3[attrname]=obj2[attrname];}
return obj3;},intObs:function(selector,functionName,accY){var $el;if(typeof selector=='string'){$el=document.querySelectorAll(selector);}else{$el=selector;}
var intersectionObserverOptions={rootMargin:'200px'}
if(typeof accY!='undefined'){intersectionObserverOptions.rootMargin='0px 0px '+Number(accY)+'px 0px';}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){var $this=$(entry.target),opts;if(typeof functionName=='string'){var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;theme.execPluginFunction(functionName,$this,opts);}else{var callback=functionName;callback.call($this);}
observer.unobserve(entry.target);}}},intersectionObserverOptions);Array.prototype.forEach.call($el,function(obj){observer.observe(obj);});},dynIntObsInit:function(selector,functionName,pluginDefaults){var $el;if(typeof selector=='string'){$el=document.querySelectorAll(selector);}else{$el=selector;}
Array.prototype.forEach.call($el,function(obj){var $this=$(obj),opts;if($this.data('observer-init')){return;}
var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;var mergedPluginDefaults=theme.mergeOptions(pluginDefaults,opts)
var intersectionObserverOptions={rootMargin:'0px 0px 200px 0px',thresholds:0}
if(mergedPluginDefaults.accY){intersectionObserverOptions.rootMargin='0px 0px '+Number(mergedPluginDefaults.accY)+'px 0px';}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){theme.execPluginFunction(functionName,$this,mergedPluginDefaults);observer.unobserve(entry.target);}}},intersectionObserverOptions);observer.observe(obj);$this.data('observer-init',true);});}});if(theme.isIOS()){document.body.classList.add('ios');}
$.extend(theme,{add_query_arg:function(key,value){key=escape(key);value=escape(value);var s=document.location.search;var kvp=key+"="+value;var r=new RegExp("(&|\\?)"+key+"=[^\&]*");s=s.replace(r,"$1"+kvp);if(!RegExp.$1){s+=(s.length>0?'&':'?')+kvp;};return s;},addUrlParam:function(href,name,value){var url=document.createElement('a'),s,r;href=decodeURIComponent(decodeURI(href));url.href=href;s=url.search;if(0<=s.indexOf(name+'=')){r=s.replace(new RegExp(name+'=[^&]*'),name+'='+value);}else{r=(s.length&&0<=s.indexOf('?'))?s:'?';r.endsWith('?')||(r+='&');r+=name+'='+value;}
return encodeURI(href.replace(s,'')+r.replace(/&+/,'&'));},removeUrlParam:function(href,name){var url=document.createElement('a'),s,r;href=decodeURIComponent(decodeURI(href));url.href=href;s=url.search;if(0<=s.indexOf(name+'=')){r=s.replace(new RegExp(name+'=[^&]*'),'').replace(/&+/,'&').replace('?&','?');r.endsWith('&')&&(r=r.substr(0,r.length-1));r.endsWith('?')&&(r=r.substr(0,r.length-1));r=r.replace('&&','&');}else{r=s;}
return encodeURI(href.replace(s,'')+r);}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var disableMobileAnimations=function(){if($(document.body).hasClass('porto-dm-animate')&&window.innerWidth<768){theme.animation_support=false;$('[data-appear-animation]').removeAttr('data-appear-animation');$('.elementor-invisible').removeAttr('data-settings').removeData('settings').removeClass('elementor-invisible').add($('.appear-animation').removeClass('appear-animation'));}}
$.extend(theme,{disableMobileAnimations:disableMobileAnimations});theme.disableMobileAnimations();}).apply(this,[window.theme,jQuery]);!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach(function(t){t._checkForIntersections()})}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()});var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1})){var r=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),r(),e!=n){var s=i(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),b=!1;!b&&_;){var w=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(b=!0,_==this.root||_==t)o&&!this.root?!n||0==n.width&&0==n.height?(_=null,w=null,v=null):w=n:w=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,w=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(w=u(_))}if(w&&(s=w,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100}),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){o(),i=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}();(function($){'use strict';$.extend({browserSelector:function(){var hasTouch='ontouchstart'in window||navigator.msMaxTouchPoints;var u=navigator.userAgent,ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+parseFloat(navigator.appVersion.split("MSIE")[1])):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.jQuery1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.jQuery2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.jQuery1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js'];var c=b.join(' ');if(theme.is_device_mobile){c+=' mobile';}
if(hasTouch){c+=' touch';}
h.className+=' '+c;var isIE11=!(window.ActiveXObject)&&"ActiveXObject"in window;if(isIE11){$('html').removeClass('gecko').addClass('ie ie11');return;}}});$.browserSelector();})(jQuery);(function(theme,$){'use strict';theme=theme||{};var instanceName='__accordion';var Accordion=function($el,opts){return this.initialize($el,opts);};Accordion.defaults={};Accordion.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Accordion.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.collapse){return this;}
var $el=this.options.wrapper,$collapse=$el.find('.collapse'),collapsible=$el.data('collapsible'),active_num=$el.data('active-tab');if($collapse.length>0){if($el.data('use-accordion')&&'yes'==$el.data('use-accordion')){$el.find('.collapse').attr('data-parent','#'+$el.attr('id'));}
if(collapsible=='yes'){$collapse.collapse({toggle:false,parent:'#'+$el.attr('id')});}else if(!isNaN(active_num)&&active_num==parseInt(active_num)&&$el.find('.collapse').length>active_num){$el.find('.collapse').collapse({toggle:false,parent:'#'+$el.attr('id')});$el.find('.collapse').eq(active_num-1).collapse('toggle');}else{$el.find('.collapse').collapse({parent:'#'+$el.attr('id')});}}
return this;}};$.extend(theme,{Accordion:Accordion});$.fn.themeAccordion=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Accordion($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__accordionMenu';var AccordionMenu=function($el,opts){return this.initialize($el,opts);};AccordionMenu.defaults={};AccordionMenu.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},AccordionMenu.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.wrapper;$el.find('li.menu-item.active').each(function(){var $this=$(this);if($this.find('> .arrow').get(0))
$this.find('> .arrow').trigger('click');});$el.on('click','.arrow',function(e){e.preventDefault();e.stopPropagation();var $this=$(this),$parent=$this.closest('li');if(typeof self.options.open_one!='undefined'){$parent.siblings('.open').children('.arrow').next().hide();$parent.siblings('.open').removeClass('open');$this.next().stop().toggle();}else{$this.next().stop().slideToggle();}
if($parent.hasClass('open')){$parent.removeClass('open');}else{$parent.addClass('open');}
if($this.closest('.header-side-nav .sidebar-menu').length){$('.header-side-nav [data-plugin-sticky]').trigger('recalc.pin');}
return false;});$el.find('.menu-item-has-children').each(function(){var $this=$(this);if($this.find('>.sub-menu > li:not(.hidden-item)').length==0){$this.addClass('hidden-item');}});return this;}};$.extend(theme,{AccordionMenu:AccordionMenu});$.fn.themeAccordionMenu=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.AccordionMenu($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__fitVideo';var FitVideo=function($el,opts){return this.initialize($el,opts);};FitVideo.defaults={};FitVideo.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},FitVideo.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.fitVids){return this;}
var $el=this.options.wrapper;$el.fitVids();$(window).on('resize',function(){$el.fitVids();});return this;}};$.extend(theme,{FitVideo:FitVideo});$.fn.themeFitVideo=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.FitVideo($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__videobackground';var PluginVideoBackground=function($el,opts){return this.initialize($el,opts);};PluginVideoBackground.defaults={overlay:true,volume:1,playbackRate:1,muted:true,loop:true,autoplay:true,position:'50% 50%',posterType:'detect'};PluginVideoBackground.prototype={initialize:function($el,opts){this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginVideoBackground.defaults,opts,{path:this.$el.data('video-path'),wrapper:this.$el});return this;},build:function(){if(!$.fn.vide||!this.options.path){return this;}
if(this.options.overlay){this.options.wrapper.prepend($('<div />').addClass('video-overlay'));}
this.options.wrapper.vide(this.options.path,this.options);return this;}};$.extend(theme,{PluginVideoBackground:PluginVideoBackground});$.fn.themePluginVideoBackground=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginVideoBackground($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__flickrZoom';var FlickrZoom=function($el,opts){return this.initialize($el,opts);};FlickrZoom.defaults={};FlickrZoom.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},FlickrZoom.defaults,opts,{wrapper:this.$el});return this;},build:function(){var $el=this.options.wrapper,links=[],i=0,$flickr_links=$el.find('.flickr_badge_image > a');$flickr_links.each(function(){var slide={},$image=$(this).find('> img');slide.src=$image.attr('src').replace('_s.','_b.');slide.title=$image.attr('title');links[i]=slide;i++;});$flickr_links.on('click',function(e){e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),$flickr_links.index($(this)));}});return this;}};$.extend(theme,{FlickrZoom:FlickrZoom});$.fn.themeFlickrZoom=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.FlickrZoom($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__lazyload';var PluginLazyLoad=function($el,opts){return this.initialize($el,opts);};PluginLazyLoad.defaults={effect:'show',appearEffect:'',appear:function(elements_left,settings){},load:function(elements_left,settings){$(this).addClass('lazy-load-loaded');}};PluginLazyLoad.prototype={initialize:function($el,opts){if(!$el.length){return this;}
if(!$.fn.lazyload){return this;}
var options=$.extend(true,{},PluginLazyLoad.defaults,opts,{});return lazyload($el,options);}};$.extend(theme,{PluginLazyLoad:PluginLazyLoad});$.fn.themePluginLazyLoad=function(opts){var $this=$(this);if($this.data(instanceName)){return this;}else{var ins=new PluginLazyLoad($.makeArray(this),opts);$this.data(instanceName,ins);}
return this;}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__masonry';var Masonry=function($el,opts){return this.initialize($el,opts);};Masonry.defaults={itemSelector:'li',isOriginLeft:!theme.rtl};Masonry.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Masonry.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.isotope){return this;}
var self=this,$el=this.options.wrapper,trigger_timer=null;$el.isotope(this.options);$el.isotope('on','layoutComplete',function(){if(typeof this.options.callback=='function'){this.options.callback.call();}
if($el.find('.porto-lazyload:not(.lazy-load-loaded):visible').length){$(window).trigger('scroll');}});$el.isotope('layout');self.resize();$(window).smartresize(function(){self.resize()});return this;},resize:function(){var self=this,$el=this.options.wrapper;if(self.resizeTimer){theme.deleteTimeout(self.resizeTimer);}
self.resizeTimer=theme.requestTimeout(function(){if($el.data('isotope')){$el.isotope('layout');}
delete self.resizeTimer;},600);}};$.extend(theme,{Masonry:Masonry});$.fn.themeMasonry=function(opts){return this.map(function(){var $this=$(this);imagesLoaded(this,function(){if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Masonry($this,opts);}});});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__toggle';var Toggle=function($el,opts){return this.initialize($el,opts);};Toggle.defaults={};Toggle.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Toggle.defaults,opts,{wrapper:this.$el});return this;},build:function(){var $el=this.options.wrapper;if($el.hasClass('active'))
$el.find("> div.toggle-content").stop().slideDown(350,function(){$(this).attr('style','').show();});$el.on('click',"> label",function(e){var parentSection=$(this).parent(),parentWrapper=$(this).closest("div.toogle"),parentToggles=$(this).closest(".porto-toggles"),isAccordion=parentWrapper.hasClass("toogle-accordion"),toggleContent=parentSection.find("> div.toggle-content");if(isAccordion&&typeof(e.originalEvent)!="undefined"){parentWrapper.find("section.toggle.active > label").trigger("click");}
if(!parentSection.hasClass("active")){if(parentToggles.length){if(parentToggles.data('view')=='one-toggle'){parentToggles.find('.toggle').each(function(){$(this).removeClass('active');$(this).find("> div.toggle-content").stop().slideUp(350,function(){$(this).attr('style','').hide();});});}}
toggleContent.stop().slideDown(350,function(){$(this).attr('style','').show();theme.refreshVCContent(toggleContent);});parentSection.addClass("active");}else{if(!parentToggles.length||parentToggles.data('view')!='one-toggle'){toggleContent.stop().slideUp(350,function(){$(this).attr('style','').hide();});parentSection.removeClass("active");}}});return this;}};$.extend(theme,{Toggle:Toggle});$.fn.themeToggle=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Toggle($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__parallax';var Parallax=function($el,opts){return this.initialize($el,opts);};Parallax.defaults={speed:1.5,horizontalPosition:'50%',offset:0,scale:false,startOffset:7,scaleInvert:false,};Parallax.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Parallax.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$window=$(window),offset,yPos,bgpos,background;background=$('<div class="parallax-background"></div>');var bg=self.options.wrapper.data('image-src')?'url('+self.options.wrapper.data('image-src')+')':self.options.wrapper.css('background-image');background.css({'background-image':bg,'background-size':'cover','background-position':'50% 0%','position':'absolute','top':0,'left':0,'width':'100%','height':self.options.speed*100+'%'});self.options.wrapper.prepend(background);self.options.wrapper.css({'position':'relative','overflow':'hidden'});if(self.options.wrapper.attr('data-parallax-type')){self.options.parallaxType='horizontal';background.css({'background-position':'0% 50%','width':self.options.speed*100+'%','height':'100%',});}
if(self.options.scale){background.wrap('<div class="parallax-scale-wrapper"></div>');background.css({'transition':'transform 500ms ease-out'});this.scaleParallaxFunc=this.scaleParallax.bind(this);this.scaleParallaxFunc();window.addEventListener('scroll',this.scaleParallaxFunc);window.addEventListener('resize',this.scaleParallaxFunc);}
var parallaxEffectOnScrolResize=function(){var skrollr_size=100*self.options.speed,skrollr_start=-(skrollr_size-100);if(!self.options.parallaxType){background.attr("data-bottom-top","top: "+skrollr_start+"%;").attr("data-top-bottom","top: 0%;");}else{skrollr_start/=9.8;background.attr("data-bottom-top","left: "+skrollr_start+"%;").attr("data-top-bottom","left: 0%;");}}
if(!theme.is_device_mobile){parallaxEffectOnScrolResize();}else{if(self.options.enableOnMobile==true){parallaxEffectOnScrolResize();}else{self.options.wrapper.addClass('parallax-disabled');}}
return this;},scaleParallax:function(){var self=this,$window=$(window),scrollTop=$window.scrollTop(),$background=self.options.wrapper.find('.parallax-background'),elementOffset=self.options.wrapper.offset().top,currentElementOffset=(elementOffset-scrollTop),scrollPercent=Math.abs(+(currentElementOffset-$window.height())/(self.options.startOffset?self.options.startOffset:7));scrollPercent=parseInt((scrollPercent>=100)?100:scrollPercent);var currentScale=(scrollPercent/100)*50;if(!self.options.scaleInvert){$background.css({'transform':'scale(1.'+String(currentScale).padStart(2,'0')+', 1.'+String(currentScale).padStart(2,'0')+')'});}else{$background.css({'transform':'scale(1.'+String(50-currentScale).padStart(2,'0')+', 1.'+String(50-currentScale).padStart(2,'0')+')'});}},disable:function(){var self=this;if(self.options.scale){window.removeEventListener('scroll',this.scaleParallaxFunc);window.removeEventListener('resize',this.scaleParallaxFunc);}}};$.extend(theme,{Parallax:Parallax});$.fn.themeParallax=function(opts){if(typeof skrollr=='undefined'){return this;}
var obj=this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Parallax($this,opts);}});if(theme.portoSkrollr){theme.portoSkrollr.refresh();}else if(!theme.is_device_mobile){theme.portoSkrollr=skrollr.init({forceHeight:false,smoothScrolling:false,mobileCheck:function(){return theme.is_device_mobile}});}
return obj;}}).apply(this,[window.theme,jQuery]);!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(o.observeElementInViewport={})}(this,function(o){function e(o,e,t,r){if(void 0===t&&(t=function(){}),void 0===r&&(r={}),!o)throw new Error("Target element to observe should be a valid DOM Node");var n=Object.assign({},{viewport:null,modTop:"0px",modRight:"0px",modBottom:"0px",modLeft:"0px",threshold:[0]},r),i=n.viewport,f=n.modTop,s=n.modLeft,u=n.modBottom,a=n.modRight,d=n.threshold;if(!Array.isArray(d)&&"number"!=typeof d)throw new Error("threshold should be a number or an array of numbers");var p=Array.isArray(d)?d.map(function(o){return Math.floor(o%101)/100}):[Math.floor(d?d%101:0)/100],c=Math.min.apply(Math,p),m={root:i instanceof Node?i:null,rootMargin:f+" "+a+" "+u+" "+s,threshold:p},h=new IntersectionObserver(function(r,n){var i=r.filter(function(e){return e.target===o})[0],f=function(){return n.unobserve(o)};i&&(i.isInViewport=i.isIntersecting&&i.intersectionRatio>=c,i.isInViewport?e(i,f,o):t(i,f,o))},m);return h.observe(o),function(){return h.unobserve(o)}}o.observeElementInViewport=e,o.isInViewport=function(o,t){return void 0===t&&(t={}),new Promise(function(r,n){try{e(o,function(o,e){e(),r(!0)},function(o,e){e(),r(!1)},t)}catch(o){n(o)}})}});(function(theme,$){theme=theme||{};var instanceName='__inviewportstyle';var PluginInViewportStyle=function($el,opts){return this.initialize($el,opts);};PluginInViewportStyle.defaults={viewport:window,scroll_bg_scale:false,scale_extra_class:'',set_round:'',scale_bg:'#08c',threshold:[0],modTop:'-200px',modBottom:'-200px',style:{'transition':'all 1s ease-in-out'},styleIn:{'background-color':'#08c'},styleOut:{'background-color':'#fff'},};PluginInViewportStyle.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginInViewportStyle.defaults,opts,{});return this;},build:function(){var self=this,el=self.$el.get(0);if(self.options.scroll_bg_scale&&'undefined'!=typeof gsap){self.$scaleObject=$('<div class="scale-expand position-absolute"></div>').addClass(self.options.scale_extra_class);self.$el.addClass('view-scale-wrapper').append(self.$scaleObject);self.$scaleObject.css('background-color',self.options.scale_bg);self.scale=true;self.scaleEventFunc=self.scaleEvent.bind(this);self.scaleEventFunc();$(window).on('scroll',self.scaleEventFunc);}else{self.$el.css(self.options.style);if(typeof window.IntersectionObserver==='function'){self.viewPort=observeElementInViewport.observeElementInViewport(el,function(){self.$el.css(self.options.styleIn);},function(){self.$el.css(self.options.styleOut);},{viewport:self.options.viewport,threshold:self.options.threshold,modTop:self.options.modTop,modBottom:self.options.modBottom})};}
return this;},scaleEvent:function(){var self=this,position=self.$el[0].getBoundingClientRect();if(self.scale&&position.top<window.innerHeight&&position.bottom>=0){gsap.set(self.$scaleObject[0],{width:"150vmax",height:"150vmax",xPercent:-50,yPercent:-50,top:"50%",left:"50%"});let _start="-50%";if(self.$el.height()<600){_start="-600px";}
var scaleGsap=gsap.timeline({scrollTrigger:{trigger:self.$el[0],start:_start,end:"0%",scrub:2,invalidateOnRefresh:true,},defaults:{ease:"none"}});scaleGsap.fromTo(self.$scaleObject[0],{scale:0},{x:0,y:0,ease:"power3.in",scale:1});self.scale=false;}},disable:function(){var self=this;if(self.options.scroll_bg_scale){self.$el.find('.scale-expand').remove();self.$el.removeClass('view-scale-wrapper')}else{self.$el.css({'background-color':'','transition':''});self.viewPort();}}};$.extend(theme,{PluginInViewportStyle:PluginInViewportStyle});$.fn.themePluginInViewportStyle=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginInViewportStyle($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$.fn.themePin=function(options){var scrollY=0,lastScrollY=0,elements=[],disabled=false,$window=$(window),fixedSideTop=[],fixedSideBottom=[],prevDataTo=[];options=options||{};var recalculateLimits=function(){for(var i=0,len=elements.length;i<len;i++){var $this=elements[i];if(options.minWidth&&window.innerWidth<options.minWidth){if($this.parent().hasClass("pin-wrapper")){if(options.hasWrap){$this.parent().css('height','');}else{$this.unwrap();}}
$this.css({width:"",left:"",top:"",position:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');disabled=true;continue;}else{disabled=false;}
var $container=options.containerSelector?($this.closest(options.containerSelector).length?$this.closest(options.containerSelector):$(options.containerSelector)):$(document.body),offset=$this.offset();if(options.hasWrap&&$container.height()<$this.closest('.pin-wrapper').outerHeight()){$container=$this.closest('.pin-wrapper');}
var	containerOffset=$container.offset();if(typeof containerOffset=='undefined'){continue;}
var parentOffset=$this.parent().offset();if(!$this.parent().hasClass("pin-wrapper")){$this.wrap("<div class='pin-wrapper'>");if($this.hasClass('elementor-element-populated')){var $el_cont=$this.closest('.elementor-container');if($el_cont.length){var matches=$el_cont.attr('class').match(/elementor-column-gap-([a-z]*)/g);if(matches&&matches.length){var gap=matches[0].replace('elementor-column-gap-','');$this.addClass('porto-gap-'+gap);}}}}
var pad=$.extend({top:0,bottom:0},options.padding||{});var $pin=$this.parent(),pt=parseInt($pin.parent().css('padding-top')),pb=parseInt($pin.parent().css('padding-bottom'));if(options.autoInit){if($('#header').hasClass('header-side')){pad.top=theme.adminBarHeight();}else{pad.top=theme.adminBarHeight();if($('#header > .main-menu-wrap').length||!$('#header').hasClass('sticky-menu-header')){pad.top+=theme.StickyHeader.sticky_height;}}
if(typeof options.paddingOffsetTop!='undefined'){pad.top+=parseInt(options.paddingOffsetTop,10);}else{pad.top+=18;}
if(typeof options.paddingOffsetBottom!='undefined'){pad.bottom=parseInt(options.paddingOffsetBottom,10);}else{pad.bottom=0;}}
var bb=$this.css('border-bottom'),h=$this.outerHeight();$this.css('border-bottom','1px solid transparent');var o_h=$this.outerHeight()-h-1;$this.css('border-bottom',bb);$this.css({width:$this.outerWidth()<=$pin.width()?$this.outerWidth():$pin.width()});$pin.css("height",$this.outerHeight()+o_h);if((!options.autoFit&&!options.fitToBottom)||$this.outerHeight()<=$window.height()){$this.data("themePin",{pad:pad,from:(options.containerSelector?containerOffset.top:offset.top)-pad.top+pt,pb:pb,parentTop:parentOffset.top-pt,offset:o_h,stickyOffset:options.stickyOffset?options.stickyOffset:0});}else{$this.data("themePin",{pad:pad,fromFitTop:(options.containerSelector?containerOffset.top:offset.top)-pad.top+pt,from:(options.containerSelector?containerOffset.top:offset.top)+$this.outerHeight()-window.innerHeight+pt,pb:pb,parentTop:parentOffset.top-pt,offset:o_h,stickyOffset:options.stickyOffset?options.stickyOffset:0});}}};var onScroll=function(){if(disabled){return;}
scrollY=$window.scrollTop();var window_height=window.innerHeight||$window.height();for(var i=0,len=elements.length;i<len;i++){var $this=$(elements[i]),data=$this.data("themePin"),sidebarTop;let contentWrap=$this.closest('.porto-products-filter-body');let sidebarWrap=$this.closest('.sidebar');if(contentWrap.length&&sidebarWrap.length){if($.contains(contentWrap[0],sidebarWrap[0])&&!contentWrap.hasClass('opened')){continue;}}
if(!data||typeof data.pad=='undefined'){continue;}
var $container=options.containerSelector?($this.closest(options.containerSelector).length?$this.closest(options.containerSelector):$(options.containerSelector)):$(document.body),isFitToTop=(!options.autoFit&&!options.fitToBottom)||($this.outerHeight()+data.pad.top)<=window_height;if(options.hasWrap&&$container.height()<$this.closest('.pin-wrapper').outerHeight()){$container=$this.closest('.pin-wrapper');}
data.end=$container.offset().top+$container.height();if(isFitToTop){data.to=$container.offset().top+$container.height()-$this.outerHeight()-data.pad.bottom-data.pb;}else{data.to=$container.offset().top+$container.height()-window_height-data.pb;data.to2=$container.height()-$this.outerHeight()-data.pad.bottom-data.pb;}
if(prevDataTo[i]===0){prevDataTo[i]=data.to;}
if(isFitToTop){var from=data.from-data.pad.bottom,to=data.to-data.pad.top-data.offset,$parent=$this.closest('.sticky-nav-wrapper'),widgetTop;if($parent.length){widgetTop=$parent.offset().top-data.pad.top;if(widgetTop>from){from=widgetTop;}}
if(typeof data.fromFitTop!='undefined'&&data.fromFitTop){from=data.fromFitTop-data.pad.bottom;}
if(from+$this.outerHeight()>data.end||from>=to){$this.css({position:"",top:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');continue;}
if(scrollY>from+data.stickyOffset&&scrollY<to){!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,top:data.pad.top}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}else if(scrollY>=to){$this.css({left:"",top:to-data.parentTop+data.pad.top}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}
if($this.hasClass('sticky-absolute'))$this.addClass('sticky-transition');$this.addClass('sticky-absolute');}else{$this.css({position:"",top:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}}else if(options.fitToBottom){var from=data.from,to=data.to;if(data.from+window_height>data.end||data.from>=to){$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');continue;}
if(scrollY>from&&scrollY<to){!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,bottom:data.pad.bottom,top:""}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}else if(scrollY>=to){$this.css({left:"",top:data.to2,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}
if($this.hasClass('sticky-absolute'))$this.addClass('sticky-transition');$this.addClass('sticky-absolute');}else{$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}}else{var this_height=$this.outerHeight()
if(prevDataTo[i]!=data.to){if(fixedSideBottom[i]&&this_height+$this.offset().top+data.pad.bottom<scrollY+window_height){fixedSideBottom[i]=false;}}
if((this_height+data.pad.top+data.pad.bottom)>window_height||fixedSideTop[i]||fixedSideBottom[i]){var padTop=parseInt($this.parent().parent().css('padding-top'));if(scrollY+data.pad.top-padTop<=data.parentTop){$this.css({position:"",top:"",bottom:"",left:""});fixedSideTop[i]=fixedSideBottom[i]=false;if(options.activeClass){$this.removeClass(options.activeClass);}}else if(scrollY>=data.to){$this.css({left:"",top:data.to2,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}}else{if(scrollY>=lastScrollY){if(fixedSideTop[i]){fixedSideTop[i]=false;sidebarTop=$this.offset().top-data.parentTop;$this.css({left:"",top:sidebarTop,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}}else if(!fixedSideBottom[i]&&this_height+$this.offset().top+data.pad.bottom<scrollY+window_height){fixedSideBottom[i]=true;!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,bottom:data.pad.bottom,top:""}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}}}else if(scrollY<lastScrollY){if(fixedSideBottom[i]){fixedSideBottom[i]=false;sidebarTop=$this.offset().top-data.parentTop;$this.css({left:"",top:sidebarTop,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}}else if(!fixedSideTop[i]&&$this.offset().top>=scrollY+data.pad.top){fixedSideTop[i]=true;!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,top:data.pad.top,bottom:''}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}}else if(!fixedSideBottom[i]&&fixedSideTop[i]&&$this.css('position')=='absolute'&&$this.offset().top>=scrollY+data.pad.top){fixedSideTop[i]=false;}}}}else{if(scrollY>=(data.parentTop-data.pad.top)){$this.css({position:'fixed',top:data.pad.top});}else{$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}}
fixedSideTop[i]=fixedSideBottom[i]=false;}}
prevDataTo[i]=data.to;}
lastScrollY=scrollY;};var update=function(){recalculateLimits();onScroll();},r_timer=null;this.each(function(){var $this=$(this),data=$this.data('themePin')||{};if(data&&data.update){return;}
elements.push($this);$("img",this).one("load",function(){if(r_timer){theme.deleteTimeout(r_timer);}
r_timer=theme.requestFrame(recalculateLimits);});data.update=update;$this.data('themePin',data);fixedSideTop.push(false);fixedSideBottom.push(false);prevDataTo.push(0);});window.addEventListener('touchmove',onScroll,{passive:true});window.addEventListener('scroll',onScroll,{passive:true});recalculateLimits();if(!theme.isLoaded){$window.on('load',update);}else{update();}
$(this).on('recalc.pin',function(){recalculateLimits();onScroll();});return this;};theme=theme||{};var instanceName='__sticky';var Sticky=function($el,opts){return this.initialize($el,opts);};Sticky.defaults={autoInit:false,minWidth:767,activeClass:'sticky-active',padding:{top:0,bottom:0},offsetTop:0,offsetBottom:0,autoFit:false,fitToBottom:false,stickyOffset:0};Sticky.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Sticky.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.themePin){return this;}
var self=this,$el=this.options.wrapper,stickyResizeTrigger;if($el.hasClass('porto-sticky-nav')){this.options.padding.top=theme.StickyHeader.sticky_height+theme.adminBarHeight();this.options.activeClass='sticky-active';this.options.containerSelector='.main-content-wrap';theme.sticky_nav_height=$el.outerHeight();if(this.options.minWidth>window.innerWidth)
theme.sticky_nav_height=0;var porto_progress_obj=$('.porto-scroll-progress.fixed-top:not(.fixed-under-header)');if(porto_progress_obj.length){var flag=false;if(porto_progress_obj.is(':hidden')){porto_progress_obj.show();flag=true;}
if(flag){porto_progress_obj.hide();}}
var offset=theme.adminBarHeight()+theme.StickyHeader.sticky_height-1,$transitionOffset=(offset>100)?offset:100;this.options.stickyOffset=theme.sticky_nav_height+$transitionOffset;var init_filter_widget_sticky=function(){var prevScrollPos=$el.data('prev-pos')?$el.data('prev-pos'):0,scrollUpOffset=0,objHeight=$el.outerHeight()+parseInt($el.css('margin-bottom')),scrollTop=$(window).scrollTop();if($('.page-wrapper').hasClass('sticky-scroll-up')){if(scrollTop>=prevScrollPos){$el.addClass('scroll-down');}else{$el.removeClass('scroll-down');}
scrollUpOffset=-theme.StickyHeader.sticky_height;if('undefined'==typeof(theme.StickyHeader.sticky_height)){$el.data('prev-pos',0);}else{if($el.parent().offset().top+objHeight+$transitionOffset<scrollTop+offset+scrollUpOffset){$el.addClass('sticky-ready');}else{$el.removeClass('sticky-ready');}
$el.data('prev-pos',scrollTop);}}}
if(this.options.minWidth<=window.innerWidth){window.removeEventListener('scroll',init_filter_widget_sticky);window.addEventListener('scroll',init_filter_widget_sticky,{passive:true});init_filter_widget_sticky();}}
$el.themePin(this.options);$(window).smartresize(function(){if(stickyResizeTrigger){clearTimeout(stickyResizeTrigger);}
stickyResizeTrigger=setTimeout(function(){$el.trigger('recalc.pin');},800);var $parent=$el.parent();$el.outerWidth($parent.width());if($el.css('position')=='fixed'){$el.css('left',$parent.offset().left);}
if($el.hasClass('porto-sticky-nav')){theme.sticky_nav_height=$el.outerHeight();if(self.options.minWidth>window.innerWidth)
theme.sticky_nav_height=0;}});return this;}};$.extend(theme,{Sticky:Sticky});$.fn.themeSticky=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){$this.trigger('recalc.pin');setTimeout(function(){$this.trigger('recalc.pin');},800);return $this.data(instanceName);}else{return new theme.Sticky($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$(function(){$(document.body).on('click','.mobile-toggle',function(e){var $nav_panel=$('#nav-panel');if($nav_panel.length>0){if($(this).closest('.header-main').length&&$nav_panel.closest('.header-builder-p').length&&!$nav_panel.parent('.header-main').length){$nav_panel.appendTo($(this).closest('.header-main'));}else if($(this).closest('.header-main').length&&$nav_panel.closest('.wp-block-template-part').length){$nav_panel.insertAfter($(this).closest('.header-main'));}
if($nav_panel.is(':visible')&&$('#header').hasClass('sticky-header')){var h_h=$('#header').height(),p_h=$nav_panel.outerHeight();if(h_h>p_h+30){$('#header').css('height',h_h-p_h);}}
$nav_panel.stop().slideToggle();}else if($('#side-nav-panel').length>0){$('html').toggleClass('panel-opened');$('.panel-overlay').toggleClass('active');if($('#side-nav-panel').hasClass('panel-right')){$('html').addClass('panel-right-opened');}}
if($('#nav-panel .skeleton-body, #side-nav-panel .skeleton-body').length){theme.lazyload_menu(1,'mobile_menu');}
e.preventDefault();});$(document.body).on('click','.panel-overlay',function(){$('html').css('transition','margin .3s').removeClass('panel-opened').removeClass('panel-right-opened');theme.requestTimeout(function(){$('html').css('transition','');},260);$(this).removeClass('active');});$(document.body).on('click','.side-nav-panel-close',function(e){e.preventDefault();$('.panel-overlay').trigger('click');});$(document.body).on('click','#side-nav-panel .mobile-tab-items .nav-item',function(e){e.preventDefault();var $this=$(this),$id=$this.attr('pane-id'),$parent=$this.closest('.mobile-tabs');if($id){$parent.find('.active').removeClass('active');$this.addClass('active');$parent.find('.mobile-tab-content [tab-id="'+$id+'"]').addClass('active');}});$(window).on('resize',function(){if(window.innerWidth>991){$('#nav-panel').hide();if($('html').hasClass('panel-opened')){$('.panel-overlay').trigger('click');}}});});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$(function(){$(document).on('click','.blog-like, .portfolio-like',function(e){e.preventDefault();var $this=$(this),parentObj=this.parentNode,item_id=$this.attr('data-id'),is_blog=$this.hasClass('blog-like'),sendData={nonce:js_porto_vars.porto_nonce};if(is_blog){if($this.hasClass('updating')){return false;}
$this.addClass('updating').text('...');sendData.blog_id=item_id;sendData.action='porto_blog-like';}else{sendData.portfolio_id=item_id;sendData.action='porto_portfolio-like';}
$.post(theme.ajax_url,sendData,function(data){if(data){$this.remove();parentObj.innerHTML=data;if(typeof bootstrap!='undefined'){var tooltipTriggerList=[].slice.call(parentObj.querySelectorAll('[data-bs-tooltip]'));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl)});}}});return false;});});}).apply(this,[window.theme,jQuery]);var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1000,fadeduration:[500,100]},controlHTML:'<img src="assets/img/up.png" style="width:40px; height:40px" />',controlattrs:{offsetx:10,offsety:10},anchorkeyword:'#top',state:{isvisible:false,shouldvisible:false},scrollup:function(){if(!this.cssfixedsupport)
this.$control.css({opacity:0});var dest=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);if(typeof dest=="string"&&jQuery('#'+dest).length==1)
dest=jQuery('#'+dest).offset().top;else
dest=0;this.$body.stop().animate({scrollTop:dest},this.setting.scrollduration);},keepfixed:function(){var $window=jQuery(window);var controlx=$window.scrollLeft()+$window.width()-this.$control.width()-this.controlattrs.offsetx;var controly=$window.scrollTop()+$window.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:controlx+'px',top:controly+'px'});},togglecontrol:function(){var scrolltop=jQuery(window).scrollTop();if(!this.cssfixedsupport)
this.keepfixed();this.state.shouldvisible=(scrolltop>=this.setting.startline)?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true;}
else if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false;}},init:function(){jQuery(document).ready(function($){var mainobj=scrolltotop;var iebrws=document.all;mainobj.cssfixedsupport=!iebrws||iebrws&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest
mainobj.$body=(window.opera)?(document.compatMode=="CSS1Compat"?$('html'):$('body')):$('html,body');mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>').css({position:mainobj.cssfixedsupport?'fixed':'absolute',bottom:mainobj.controlattrs.offsety,opacity:0,cursor:'pointer'}).attr({title:''}).on('click',function(){mainobj.scrollup();return false;}).appendTo('body');if(document.all&&!window.XMLHttpRequest&&mainobj.$control.text()!='')
mainobj.$control.css({width:mainobj.$control.width()});mainobj.togglecontrol();$('a[href="'+mainobj.anchorkeyword+'"]').on('click',function(){mainobj.scrollup();return false;});$(window).on('scroll resize',function(e){mainobj.togglecontrol();});});}};(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{ScrollToTop:{defaults:{html:'<i class="fas fa-chevron-up"></i>',offsetx:10,offsety:0},initialize:function(html,offsetx,offsety){if($('#topcontrol').length){return this;}
this.html=(html||this.defaults.html);this.offsetx=(offsetx||this.defaults.offsetx);this.offsety=(offsety||this.defaults.offsety);this.build();return this;},build:function(){var self=this;if(typeof scrolltotop!=='undefined'){scrolltotop.controlHTML=self.html;scrolltotop.controlattrs={offsetx:self.offsetx,offsety:self.offsety};scrolltotop.init();}
return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{MegaMenu:{defaults:{menu:$('.mega-menu')},initialize:function($menu){this.$menu=($menu||this.defaults.menu);this.events();return this;},popupWidth:function(){var winWidth=window.innerWidth,popupWidth=theme.bodyWidth-theme.grid_gutter_width*2;if(!$('body').hasClass('wide')){if(winWidth>=1140+theme.grid_gutter_width&&winWidth<=theme.container_width+2*theme.grid_gutter_width-1&&theme.container_width>=1360)
popupWidth=1140-theme.grid_gutter_width;else if(winWidth>=theme.container_width+theme.grid_gutter_width-1)
popupWidth=theme.container_width-theme.grid_gutter_width;else if(winWidth>=992)
popupWidth=960-theme.grid_gutter_width;else if(winWidth>=768)
popupWidth=720-theme.grid_gutter_width;}
return popupWidth;},calcMenuPosition:function(menu_obj,is_left){var menu=menu_obj,$menuWrap;if($(menu).closest('.elementor-top-section').length){$menuWrap=$(menu).closest('.elementor-top-section');}else if($(menu).closest('.e-con.e-parent').length){$menuWrap=$(menu).closest('.e-con.e-parent');}else if($(menu).closest('.e-con').length){$menuWrap=$(menu).closest('.e-con');}else if($(menu).closest('.header-main').length){$menuWrap=$(menu).closest('.header-main');}else if($(menu).closest('.main-menu-wrap').length){$menuWrap=$(menu).closest('.main-menu-wrap');}else if($(menu).closest('.header-top').length){$menuWrap=$(menu).closest('.header-top');}else if($(menu).closest('.header-bottom').length){$menuWrap=$(menu).closest('.header-bottom');}else{$menuWrap=$(menu).closest('.top-row');}
var $headerContainer=$menuWrap;if($menuWrap.children('.elementor-container').length){$headerContainer=$menuWrap.children('.elementor-container');}else if($menuWrap.find('.container-fluid').length){$headerContainer=$menuWrap.find('.container-fluid');}else if($menuWrap.find('.container').length){$headerContainer=$menuWrap.find('.container');}else if($menuWrap.find('.e-con-inner').length){$headerContainer=$menuWrap.find('.e-con-inner');}else if($menuWrap.find('.vc_column_container').length){$headerContainer=$menuWrap.find('.vc_column_container');}
if($headerContainer.length>=1){var isParent=false;$headerContainer.each(function(){var $this=$(this);if($this.find(menu).length&&!isParent){$headerContainer=$this;isParent=true;}});if(!isParent){$headerContainer=$menuWrap;}}
if(!$headerContainer.length){return;}
var menuContainerWidth=$headerContainer.outerWidth()-parseInt($headerContainer.css('padding-left'))-parseInt($headerContainer.css('padding-right'));if(menuContainerWidth<900)return;if(menu.parent().hasClass('pos-fullwidth')){menu.get(0).style.width=menuContainerWidth+'px';}
var browserWidth=document.body.offsetWidth,menuLeftPos=menu.offset().left-((browserWidth-menuContainerWidth)/2),l=false;if('center'==is_left){var remainWidth=menuContainerWidth-(menuLeftPos+menu.width());if(remainWidth<=0){l=remainWidth;}else if(menuLeftPos<=0){l=-menuLeftPos;}}else if('justify'==is_left){if(window.theme.rtl){menuLeftPos=browserWidth-(menu.offset().left+menu.outerWidth())-(browserWidth-menuContainerWidth)/2;}
var menuWidth=menu.width(),remainWidth=menuContainerWidth-(menuLeftPos+menuWidth);if(menuLeftPos>remainWidth&&menuLeftPos<menuWidth){l=(menuLeftPos+remainWidth)/3;}
if(remainWidth<=0){l=-remainWidth;}}else if(false!==is_left){var remainWidth=menuContainerWidth-(menuLeftPos+menu.width());if(remainWidth<=0){l=-remainWidth;}}else if(menuLeftPos<=0){l=-menuLeftPos;}
return l;},build:function($menu){var self=this;if(!$menu){$menu=self.$menu;}
$menu.each(function(){var $menu=$(this),$menu_container=$menu.closest('.container'),container_width=self.popupWidth();if($menu.closest('.porto-popup-menu').length){return false;}
var $menu_items=$menu.children('li.has-sub');$menu_items.each(function(){var $menu_item=$(this),$popup=$menu_item.children('.popup');if($popup.length){var popup_obj=$popup.get(0);popup_obj.style.display='block';if($menu_item.hasClass('wide')){popup_obj.style.left=0;var padding=parseInt($popup.css('padding-left'))+parseInt($popup.css('padding-right'))+
parseInt($popup.find('> .inner').css('padding-left'))+parseInt($popup.find('> .inner').css('padding-right'));var row_number=4;if($menu_item.hasClass('col-1'))row_number=1;if($menu_item.hasClass('col-2'))row_number=2;if($menu_item.hasClass('col-3'))row_number=3;if($menu_item.hasClass('col-4'))row_number=4;if($menu_item.hasClass('col-5'))row_number=5;if($menu_item.hasClass('col-6'))row_number=6;if(window.innerWidth<992)
row_number=1;var col_length=0;$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).attr('data-cols'));if(cols<=0||!cols)
cols=1;if(cols>row_number)
cols=row_number;col_length+=cols;});if(col_length>row_number)col_length=row_number;var popup_max_width=$popup.data('popup-mw')?$popup.data('popup-mw'):$popup.find('.inner').css('max-width'),col_width=container_width/row_number;if('none'!==popup_max_width&&parseInt(popup_max_width)<container_width){col_width=parseInt(popup_max_width)/row_number;}
$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(cols<=0)
cols=1;if(cols>row_number)
cols=row_number;if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right'))
this.style.width=(100/col_length*cols)+'%';else
this.style.width=(100/row_number*cols)+'%';});if($menu_item.hasClass('pos-center')){var width=col_width*col_length-padding;$popup.find('> .inner > ul').get(0).style.width=width+'px';var left_position=($menu_item.outerWidth()-width)/2;popup_obj.style.left=left_position+'px';popup_obj.style.right='auto';self.SetMenuPosition(popup_obj,$popup,'center',left_position);}else if($menu_item.hasClass('pos-left')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';popup_obj.style.left='0';popup_obj.style.right='auto';self.SetMenuPosition(popup_obj,$popup);}else if($menu_item.hasClass('pos-right')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';popup_obj.style.right='0';popup_obj.style.left='auto';self.SetMenuPosition(popup_obj,$popup,false);}else if($menu_item.hasClass('pos-fullwidth')){popup_obj.style.right='auto';popup_obj.style.left='0';self.SetMenuPosition(popup_obj,$popup);}else{$popup.find('> .inner > ul').get(0).style.width=(container_width-padding)+'px';if(theme.rtl){popup_obj.style.right='0';popup_obj.style.left='auto';}else{popup_obj.style.left='0';popup_obj.style.right='auto';}
self.SetMenuPosition(popup_obj,$popup,'justify');}}else{if($menu_item.hasClass('pos-left')){if($popup.offset().left+$popup.width()>window.innerWidth){$menu_item.removeClass('pos-left').addClass('pos-right');}}else if($menu_item.hasClass('pos-right')){if($popup.offset().left<0){$menu_item.removeClass('pos-right').addClass('pos-left');}}else{if($popup.offset().left+$popup.width()>window.innerWidth){$menu_item.addClass('pos-right');}else if($popup.find('> .inner > ul').length){var $sub_menu=$popup.find('> .inner > ul').eq(0);if($sub_menu.offset().left+$sub_menu.width()+200>window.innerWidth){$sub_menu.addClass('pos-left');}}}}
$menu_item.addClass('sub-ready');}});});return self;},SetMenuPosition:function(popup_obj,$popup,is_left=true,offsetWidth=0){setTimeout(()=>{var self=this,left_position=self.calcMenuPosition($popup,is_left);if(0!==left_position){if('center'==is_left){if(false!==left_position){popup_obj.style.left=(offsetWidth+left_position)+'px';popup_obj.style.right='auto';}}else if('justify'==is_left){if(theme.rtl){popup_obj.style.left='auto';if(left_position){popup_obj.style.right='-'+left_position+'px';}else{if(!$('body').hasClass('wide')){popup_obj.style.right='-15px';}else{popup_obj.style.right='0';}}}else{popup_obj.style.right='auto';if(left_position){popup_obj.style.left='-'+left_position+'px';}else{if(!$('body').hasClass('wide')){popup_obj.style.left='-15px';}else{popup_obj.style.left='0';}}}}else{if(is_left){popup_obj.style.right='auto';if(false!==left_position){popup_obj.style.left='-'+left_position+'px';}else{if(!$('body').hasClass('wide')){popup_obj.style.left='-15px';}else{popup_obj.style.left='0';}}}else{popup_obj.style.left='auto';if(false!==left_position){popup_obj.style.right='-'+left_position+'px';}else{if(!$('body').hasClass('wide')){popup_obj.style.right='-15px';}else{popup_obj.style.right='0';}}}}}});},events:function(){var self=this;$(window).smartresize(function(e){if(e.originalEvent){self.build();}});if(theme.isLoaded){theme.requestFrame(function(){self.build();});}else{$(window).on('load',function(){theme.requestFrame(function(){self.build();});});}
return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SidebarMenu:{defaults:{menu:$('.sidebar-menu:not(.side-menu-accordion)'),toggle:$('.widget_sidebar_menu .widget-title .toggle'),menu_toggle:$('#main-toggle-menu .menu-title')},rtl:theme.rtl,initialize:function($menu,$toggle,$menu_toggle){if(this.$menu&&this.$menu.length&&$menu&&$menu.length){this.$menu=$.uniqueSort($.merge(this.$menu,$menu));this.build();return this;}
this.$menu=($menu||this.defaults.menu);if(!this.$menu.length){return this;}
this.$toggle=($toggle||this.defaults.toggle);this.$menu_toggle=($menu_toggle||this.defaults.menu_toggle);this.events();return this;},isRightSidebar:function($menu){var flag=false;if(this.rtl){flag=!($('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar'));}else{flag=$('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar');}
if($menu.closest('#main-toggle-menu').length){if(this.rtl){flag=true;}else{flag=false;}}
var $header_wrapper=$menu.closest('.header-wrapper');if($header_wrapper.length&&$header_wrapper.hasClass('header-side-nav')){if(this.rtl){flag=true;}else{flag=false;}
if($('.page-wrapper').hasClass('side-nav-right')){if(this.rtl){flag=false;}else{flag=true;}}}
return flag;},popupWidth:function(){var winWidth=window.innerWidth,popupWidth=theme.bodyWidth-theme.grid_gutter_width*2;if(!$('body').hasClass('wide')){if(winWidth>=1140+theme.grid_gutter_width&&winWidth<=theme.container_width+2*theme.grid_gutter_width-1&&theme.container_width>=1360)
popupWidth=1140-theme.grid_gutter_width;else if(winWidth>=theme.container_width+theme.grid_gutter_width-1)
popupWidth=theme.container_width-theme.grid_gutter_width;else if(winWidth>=992)
popupWidth=960-theme.grid_gutter_width;else if(winWidth>=768)
popupWidth=720-theme.grid_gutter_width;}
return popupWidth;},build:function($menus){var self=this;if(!$menus){$menus=self.$menu;}
if(!$menus.length){return;}
$menus.find('.menu-item-has-children').each(function(){var $this=$(this);if($this.find('>.popup').length>0&&$this.find('>.popup>.inner>.sub-menu > li:not(.hidden-item)').length==0){$this.addClass('hidden-item');}});var $parent_toggle_wrap=$menus.parent('.toggle-menu-wrap'),parent_toogle_wrap=null;if($parent_toggle_wrap.length&&$parent_toggle_wrap.is(':hidden')){parent_toogle_wrap=$parent_toggle_wrap.get(0);parent_toogle_wrap.style.display='block';parent_toogle_wrap.style.visibility='hidden';}
$menus.each(function(){var menuobj=this,$menu=$(this),container_width;if(menuobj.classList.contains('side-menu-slide')){return;}
if(window.innerWidth<992)
container_width=self.popupWidth();else{var menu_width=this.offsetWidth?this.offsetWidth:$menu.width();container_width=self.popupWidth()-menu_width-45;}
var is_right_sidebar=self.isRightSidebar($menu),$menu_items=$menu.children('li');$menu_items.each(function(){var $menu_item=$(this),$popup=$menu_item.children('.popup');if($popup.length){var popup_obj=$popup.get(0),is_opened=false;if($popup.is(':visible')){is_opened=true;}else{popup_obj.style.display='block';}
if($menu_item.hasClass('wide')){if(!$menu.hasClass('side-menu-columns')){popup_obj.style.left=0;}
var row_number=4;if($menu_item.hasClass('col-1'))row_number=1;if($menu_item.hasClass('col-2'))row_number=2;if($menu_item.hasClass('col-3'))row_number=3;if($menu_item.hasClass('col-4'))row_number=4;if($menu_item.hasClass('col-5'))row_number=5;if($menu_item.hasClass('col-6'))row_number=6;if(window.innerWidth<992)
row_number=1;var col_length=0;$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(!cols||cols<=0)
cols=1;if(cols>row_number)
cols=row_number;col_length+=cols;});if(col_length>row_number)col_length=row_number;var popup_max_width=$popup.data('popup-mw')?$popup.data('popup-mw'):$popup.find('.inner').css('max-width'),col_width=container_width/row_number;if('none'!==popup_max_width&&parseInt(popup_max_width)<container_width){col_width=parseInt(popup_max_width)/row_number;}
$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(cols<=0)
cols=1;if(cols>row_number)
cols=row_number;if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right'))
this.style.width=(100/col_length*cols)+'%';else
this.style.width=(100/row_number*cols)+'%';});popup_obj.children[0].children[0].style.width=col_width*col_length+1+'px';if(!$menu.hasClass('side-menu-columns')){if(is_right_sidebar){popup_obj.style.left='auto';popup_obj.style.right=(this.offsetWidth?this.offsetWidth:$(this).width())+'px';}else{popup_obj.style.left=(this.offsetWidth?this.offsetWidth:$(this).width())+'px';popup_obj.style.right='auto';}}}
if(!is_opened){popup_obj.style.display='none';}
if(menuobj.classList.contains('side-menu-accordion')){}else if(menuobj.classList.contains('side-menu-slide')){}else if(!$menu_item.hasClass('sub-ready')){if(!('ontouchstart'in document)&&window.innerWidth>991){$menu_item.on('mouseenter',function(){$menu_items.find('.popup').hide();$popup.show();$popup.parent().addClass('open');if(!$menu.hasClass('side-menu-columns')&&'static'!==$popup.parent().css('position')){let _thisTop=this.getBoundingClientRect().top;if(this.offsetParent&&(_thisTop+popup_obj.offsetHeight>theme.innerHeight)){let _top=_thisTop+popup_obj.offsetHeight-theme.innerHeight;let _top1=_thisTop-this.parentNode.getBoundingClientRect().top;if(_top1<_top){_top=_top1;}
popup_obj.style.top=-1*(_top)+'px';popup_obj.style.setProperty('--porto-sd-menu-popup-top',-1*(_top)+'px');}else{popup_obj.style.top='';popup_obj.style.setProperty('--porto-sd-menu-popup-top','');}}}).on('mouseleave',function(){$popup.hide();$popup.parent().removeClass('open');});}else{$menu_item.on('click','.arrow',function(){if(!$menu.hasClass('side-menu-columns')&&!$popup.parent().hasClass('open')&&window.innerWidth>991){$menus.children('li.has-sub').removeClass('open').children('.popup').hide();}
$popup.slideToggle();$popup.parent().toggleClass('open');});}
$menu_item.addClass('sub-ready');}}});});if($menus.hasClass('side-menu-slide')){var slideNavigation={$mainNav:$menus,$mainNavItem:$menus.find('li'),build:function(){var self=this;self.menuNav();},initSub:function($obj){var currentMenu=$obj.closest('ul'),nextMenu=$obj.parent().find('ul').first();if(nextMenu.children('.menu-item').children('.go-back').length<1){nextMenu.prepend('<li class="menu-item"><a class="go-back" href="#">'+js_porto_vars.submenu_back+'</a></li>');}
currentMenu.addClass('next-menu');nextMenu.addClass('visible');currentMenu.css({overflow:'visible','overflow-y':'visible'});if(nextMenu.outerHeight()<(nextMenu.closest('.header-main').outerHeight()-100)){nextMenu.css({height:nextMenu.outerHeight()+nextMenu.find('> li').outerHeight()});}
var nextMenuHeightDiff=nextMenu.find('> li').length*nextMenu.find('> li').outerHeight()-nextMenu.outerHeight();if(nextMenuHeightDiff>0){nextMenu.css({overflow:'hidden','overflow-y':'scroll'});}
nextMenu.css({'padding-top':nextMenuHeightDiff+'px'});},menuNav:function(){var self=this;self.$mainNav.find('.menu-item-has-children > a.nolink').removeClass('nolink').attr('href','');self.$mainNav.find('.menu-item-has-children > a:not(.go-back)').off('click').on('click',function(e){e.stopImmediatePropagation();e.preventDefault();var $this=$(this);if(js_porto_vars.lazyload_menu&&!self.$mainNav.hasClass('sub-ready')){self.initSub($this);self.$mainNav.on('sub-loaded',function(){self.initSub($this);});}else{self.initSub($this);}});}};slideNavigation.build();}
if(parent_toogle_wrap){parent_toogle_wrap.style.display='';parent_toogle_wrap.style.visibility='';}
return self;},events:function(){var self=this;self.$toggle.on('click',function(){var $widget=$(this).parent().parent();var $this=$(this);if($this.hasClass('closed')){$this.removeClass('closed');$widget.removeClass('closed');$widget.find('.sidebar-menu-wrap').stop().slideDown(400,function(){$(this).attr('style','').show();self.build();});}else{$this.addClass('closed');$widget.addClass('closed');$widget.find('.sidebar-menu-wrap').stop().slideUp(400,function(){$(this).attr('style','').hide();});}});this.$menu_toggle.on('click',function(){var $toggle_menu=$(this).parent();if($toggle_menu.hasClass('show-always')||$toggle_menu.hasClass('show-hover')){return;}
var $this=$(this);if($this.hasClass('closed')){$this.removeClass('closed');$toggle_menu.removeClass('closed');$toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400,function(){$(this).attr('style','').show();});self.build();}else{$this.addClass('closed');$toggle_menu.addClass('closed');$toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400,function(){$(this).attr('style','').hide();});}});if(self.$menu.hasClass('side-menu-slide')){self.$menu.on('click','.go-back',function(e){e.preventDefault();var prevMenu=$(this).closest('.next-menu'),prevMenuHeightDiff=0;if(prevMenu.length&&prevMenu.find('> li').length){prevMenuHeightDiff=prevMenu.find('> li').length*prevMenu.find('> li').outerHeight()-prevMenu.outerHeight();}
prevMenu.removeClass('next-menu');$(this).closest('ul').removeClass('visible');if(prevMenuHeightDiff>0){prevMenu.css({overflow:'hidden','overflow-y':'scroll'});}});}
if($('.sidebar-menu:not(.side-menu-accordion)').closest('[data-plugin-sticky]').length){var sidebarRefreshTimer;$(window).smartresize(function(){if(sidebarRefreshTimer){clearTimeout(sidebarRefreshTimer);}
sidebarRefreshTimer=setTimeout(function(){self.build();},800);});}else{$(window).smartresize(function(e){if(e.originalEvent){self.build();}});}
setTimeout(function(){self.build();},400);if('ontouchstart'in document){$(document.body).on('click',function(e){if(window.innerWidth>991){if(!$(e.target).closest('li.has-sub.open').length){self.$menu.each(function(){var $this=$(this);if($this.hasClass('side-menu-accordion')||$this.hasClass('side-menu-slide')||$this.hasClass('side-menu-columns')){return;}
$this.children('li.has-sub').removeClass('open').children('.popup').hide();});}}});}
return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{StickyHeader:{defaults:{header:$('#header')},initialize:function($header){this.$header=($header||this.defaults.header);this.sticky_height=0;this.sticky_pos=0;this.change_logo=theme.change_logo;if(!theme.show_sticky_header||!this.$header.length||$('.side-header-narrow-bar').length)
return this;var self=this;var $menu_wrap=self.$header.find('> .main-menu-wrap');if($menu_wrap.length){self.$menu_wrap=$menu_wrap;self.menu_height=$menu_wrap.height();}else{self.$menu_wrap=false;}
self.$header_main=self.$header.find('.header-main');if(self.$header_main.length>1){self.$header_main=$(self.$header_main[0]);}
if(!self.$header_main.length&&self.$header.children('.elementor-location-header').length){self.$header_main=self.$header.children('.elementor-location-header').last().addClass('header-main');}
if(!self.$header_main.length){return this;}
self.reveal=self.$header.parents('.header-wrapper').hasClass('header-reveal');self.is_sticky=false;self.reset().build().events();return self;},build:function(){var self=this;if(!self.is_sticky&&(window.innerHeight+self.header_height+theme.adminBarHeight()+parseInt(self.$header.css('border-top-width'))>=$(document).height())){return self;}
if(window.innerHeight>$(document.body).height())
window.scrollTo(0,0);var scroll_top=$(window).scrollTop(),$pageWrapper=$('.page-wrapper');if(self.$menu_wrap&&!theme.isTablet()){self.$header_main.stop().css('top',0);if(self.$header.parent().hasClass('fixed-header'))
self.$header.parent().attr('style','');if($('.page-wrapper').hasClass('sticky-scroll-up')){scroll_top-=self.sticky_height;if(scroll_top>self.sticky_pos+100){self.$header.addClass('sticky-ready');}else{self.$header.removeClass('sticky-ready');}}
if(scroll_top>self.sticky_pos){if(!self.$header.hasClass('sticky-header')&&(!$pageWrapper.hasClass('sticky-scroll-up')||($pageWrapper.hasClass('sticky-scroll-up')&&'undefined'!==typeof($pageWrapper.data('prev-scrollpos'))))){var header_height=self.$header.outerHeight();self.$header.addClass('sticky-header').css('height',header_height);self.$menu_wrap.stop().css('top',theme.adminBarHeight());var selectric=self.$header.find('.header-main .searchform select').data('selectric');if(selectric&&typeof selectric.close!='undefined')
selectric.close();if(self.$header.parent().hasClass('fixed-header')){self.$header_main.hide();self.$header.css('height','');}
if(!self.init_toggle_menu){self.init_toggle_menu=true;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').hasClass('show-always')){$('#main-toggle-menu').data('show-always',true);$('#main-toggle-menu').removeClass('show-always');}
$('#main-toggle-menu').addClass('closed');$('#main-toggle-menu .menu-title').addClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}
self.is_sticky=true;}}else{if(self.$header.hasClass('sticky-header')){self.$header.removeClass('sticky-header');self.$header.css('height','');self.$menu_wrap.stop().css('top',0);self.$header_main.show();var selectric=self.$header.find('.main-menu-wrap .searchform select').data('selectric');if(selectric&&typeof selectric.close!='undefined')
selectric.close();if(self.init_toggle_menu){self.init_toggle_menu=false;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').data('show-always')){$('#main-toggle-menu').addClass('show-always');$('#main-toggle-menu').removeClass('closed');$('#main-toggle-menu .menu-title').removeClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}}
self.is_sticky=false;}}}else{self.$header_main.show();if(self.$header.parent().hasClass('fixed-header')&&$('#wpadminbar').length&&$('#wpadminbar').css('position')=='absolute'){self.$header.parent().css('top',($('#wpadminbar').height()-scroll_top)<0?-$('#wpadminbar').height():-scroll_top);}else if(self.$header.parent().hasClass('fixed-header')){self.$header.parent().attr('style','');}else{if(self.$header.parent().hasClass('fixed-header'))
self.$header.parent().attr('style','');}
if(self.$header.hasClass('sticky-menu-header')&&!theme.isTablet()){self.$header_main.stop().css('top',0);if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header');self.is_sticky=false;self.sticky_height=0;}else{if(self.$menu_wrap)
self.$menu_wrap.stop().css('top',0);if($pageWrapper.hasClass('sticky-scroll-up')){scroll_top-=self.sticky_height;if(scroll_top>self.sticky_pos+100){self.$header.addClass('sticky-ready');}else{self.$header.removeClass('sticky-ready');}}
if(scroll_top>self.sticky_pos&&(!theme.isTablet()||(theme.isTablet()&&(!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile)))){if(!self.$header.hasClass('sticky-header')&&(!$pageWrapper.hasClass('sticky-scroll-up')||($pageWrapper.hasClass('sticky-scroll-up')&&'undefined'!==typeof($pageWrapper.data('prev-scrollpos'))))){var header_height=self.$header.outerHeight();self.$header.addClass('sticky-header').css('height',header_height);self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.$header_main.stop().css('top',theme.adminBarHeight());if(!self.init_toggle_menu){self.init_toggle_menu=true;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').hasClass('show-always')){$('#main-toggle-menu').data('show-always',true);$('#main-toggle-menu').removeClass('show-always');}
$('#main-toggle-menu').addClass('closed');$('#main-toggle-menu .menu-title').addClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}
self.is_sticky=true;}}else{if(self.$header.hasClass('sticky-header')){if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header');self.$header.css('height','');self.$header_main.stop().css('top',0);if(self.init_toggle_menu){self.init_toggle_menu=false;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').data('show-always')){$('#main-toggle-menu').addClass('show-always');$('#main-toggle-menu').removeClass('closed');$('#main-toggle-menu .menu-title').removeClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}}
self.is_sticky=false;}}}}
if(!self.$header.hasClass('header-loaded'))
self.$header.addClass('header-loaded');if(!self.$header.find('.logo').hasClass('logo-transition'))
self.$header.find('.logo').addClass('logo-transition');if(self.$header.find('.overlay-logo').get(0)&&!self.$header.find('.overlay-logo').hasClass('overlay-logo-transition'))
self.$header.find('.overlay-logo').addClass('overlay-logo-transition');return self;},reset:function(){var self=this;if(self.$header.find('.logo').hasClass('logo-transition'))
self.$header.find('.logo').removeClass('logo-transition');if(self.$header.find('.overlay-logo').get(0)&&self.$header.find('.overlay-logo').hasClass('overlay-logo-transition'))
self.$header.find('.overlay-logo').removeClass('overlay-logo-transition');if(self.$menu_wrap&&!theme.isTablet()){self.$header.addClass('sticky-header sticky-header-calc');self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.sticky_height=self.$menu_wrap.height()+parseInt(self.$menu_wrap.css('padding-top'))+parseInt(self.$menu_wrap.css('padding-bottom'));if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header sticky-header-calc');self.header_height=self.$header.height()+parseInt(self.$header.css('margin-top'));self.menu_height=self.$menu_wrap.height()+parseInt(self.$menu_wrap.css('padding-top'))+parseInt(self.$menu_wrap.css('padding-bottom'));self.sticky_pos=(self.header_height-self.sticky_height)+parseInt($('body').css('padding-top'))+parseInt(self.$header.css('border-top-width'));if($('.banner-before-header').length){self.sticky_pos+=$('.banner-before-header').height();}
if($('.porto-block-html-top').length){self.sticky_pos+=$('.porto-block-html-top').height();}}else{self.$header.addClass('sticky-header sticky-header-calc');self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.sticky_height=self.$header_main.outerHeight();if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header sticky-header-calc');self.header_height=self.$header.height()+parseInt(self.$header.css('margin-top'));self.main_height=self.$header_main.height();if(!(!theme.isTablet()||(theme.isTablet()&&!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile))){self.sticky_height=0;}
self.sticky_pos=self.$header.offset().top+self.header_height-self.sticky_height-theme.adminBarHeight()+parseInt(self.$header.css('border-top-width'));}
if(self.reveal){if(self.menu_height){self.sticky_pos+=self.menu_height+30;}else{self.sticky_pos+=30;}}
if(self.sticky_pos<0){self.sticky_pos=0;}
self.init_toggle_menu=false;self.$header_main.removeAttr('style');if(!theme.isTablet()&&self.$header.hasClass('header-side')&&typeof self.$header.attr('data-plugin-sticky')!='undefined'){self.$header.css('height','');}else{self.$header.removeAttr('style');}
return self;},events:function(){var self=this,win_width=0;$(window).smartresize(function(){if(win_width!=window.innerWidth){self.reset().build();win_width=window.innerWidth;}});var scrollEffect=function(){theme.requestFrame(function(){self.build();var $pageWrapper=$('.page-wrapper');if($pageWrapper.hasClass('sticky-scroll-up')&&!$('html').hasClass('porto-search-opened')){var prevScrollPos=0,scrollTop=$(window).scrollTop();if($pageWrapper.data('prev-scrollpos')){prevScrollPos=$pageWrapper.data('prev-scrollpos');}
if(scrollTop>=prevScrollPos){self.$header.addClass('scroll-down');}else{self.$header.removeClass('scroll-down');}
$pageWrapper.data('prev-scrollpos',scrollTop);}});}
window.addEventListener('scroll',scrollEffect,{passive:true});scrollEffect();return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SideNav:{defaults:{side_nav:$('.header-side-nav #header')},bc_pos_top:0,initialize:function($side_nav){this.$side_nav=($side_nav||this.defaults.side_nav);if(!this.$side_nav.length)
return this;var self=this;self.$side_nav.addClass('initialize');self.reset().build().events();return self;},build:function(){var self=this;var $page_top=$('.page-top'),$main=$('#main');if(theme.isTablet()){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');}else{var scroll_top=$(window).scrollTop();if($page_top.length&&$page_top.outerHeight()<100&&!$('.side-header-narrow-bar-top').length){if(self.page_top_offset==theme.adminBarHeight()||self.page_top_offset<=scroll_top){if(!$page_top.hasClass("fixed-pos")){$page_top.addClass("fixed-pos");$page_top.css('top',theme.adminBarHeight());$main.css('padding-top',$page_top.outerHeight());}}else{if($page_top.hasClass("fixed-pos")){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');}}}
$main.css('min-height',window.innerHeight-theme.adminBarHeight()-$('.page-top:not(.fixed-pos)').height()-$('.footer-wrapper').height());}
return self;},reset:function(){var self=this;if(theme.isTablet()&&$('.side-header-narrow-bar').length==0){self.$side_nav.attr('style','');}else{var w_h=window.innerHeight,$side_bottom=self.$side_nav.find('.side-bottom');self.$side_nav.css({'min-height':w_h-theme.adminBarHeight(),'padding-bottom':$side_bottom.length?$side_bottom.height()+parseInt($side_bottom.css('margin-top'))+parseInt($side_bottom.css('margin-bottom')):''});var appVersion=navigator.appVersion;var webkitVersion_positionStart=appVersion.indexOf("AppleWebKit/")+12;var webkitVersion_positionEnd=webkitVersion_positionStart+3;var webkitVersion=appVersion.slice(webkitVersion_positionStart,webkitVersion_positionEnd);if(webkitVersion<537){self.$side_nav.css('-webkit-backface-visibility','hidden');self.$side_nav.css('-webkit-perspective','1000');}}
var $page_top=$('.page-top'),$main=$('#main');if($page_top.length){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');self.page_top_offset=$page_top.offset().top;}
return self;},events:function(){var self=this;$(window).on('resize',function(){self.reset().build();});window.addEventListener('scroll',function(){self.build();},{passive:true});if($('.side-header-narrow-bar-top').length){if($(window).scrollTop()>theme.adminBarHeight()+$('.side-header-narrow-bar-top').height()){$('.side-header-narrow-bar-top').addClass('side-header-narrow-bar-sticky');}
window.addEventListener('scroll',function(){var scroll_top=$(this).scrollTop();if(scroll_top>theme.adminBarHeight()+$('.side-header-narrow-bar-top').height()){$('.side-header-narrow-bar-top').addClass('side-header-narrow-bar-sticky');}else{$('.side-header-narrow-bar-top').removeClass('side-header-narrow-bar-sticky');}},{passive:true});}
$('.side-header-narrow-bar .hamburguer-btn').on('click',function(){$(this).toggleClass('active');$('#header').toggleClass('side-header-visible');if($(this).closest('.side-header-narrow-bar-top').length&&!$('#header > .hamburguer-btn').length){$(this).closest('.side-header-narrow-bar-top').toggle();}});$('.hamburguer-close').on('click',function(){$('.side-header-narrow-bar .hamburguer-btn').trigger('click');});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{HashScroll:{initialize:function(){this.build().events();return this;},build:function(){var self=this;try{var hash=window.location.hash;var target=$(hash);if(target.length&&!(hash=='#review_form'||hash=='#reviews'||hash.indexOf('#comment-')!=-1)){$('html, body').delay(600).stop().animate({scrollTop:target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1},600,'easeOutQuad');}
return self;}catch(err){return self;}},getTarget:function(href){if('#'==href||href.endsWith('#')){return false;}
var target;if(href.indexOf('#')==0){target=$(href);}else{var url=window.location.href;url=url.substring(url.indexOf('://')+3);if(url.indexOf('#')!=-1)
url=url.substring(0,url.indexOf('#'));href=href.substring(href.indexOf('://')+3);href=href.substring(href.indexOf(url)+url.length);if(href.indexOf('#')==0){target=$(href);}}
return target;},activeMenuItem:function(){var self=this;var scroll_pos=$(window).scrollTop();var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');if($menu_items.length){$menu_items.each(function(){var $this=$(this),href=$this.attr('href'),target=self.getTarget(href);if(target&&target.get(0)){if($this.parent().is(':last-child')&&scroll_pos+window.innerHeight>=target.offset().top+target.outerHeight()){$this.parent().siblings().removeClass('active');$this.parent().addClass('active');}else{var scroll_to=target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1,$parent=$this.parent();if(scroll_to<=scroll_pos+5){$parent.siblings().removeClass('active');$parent.addClass('active');if($parent.closest('.secondary-menu').length){$parent.closest('#header').find('.main-menu').eq(0).children('.menu-item.active').removeClass('active');}}else{$parent.removeClass('active');}}}});}
return self;},events:function(){var self=this;$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"], a[href*="#"].hash-scroll, .hash-scroll-wrap a[href*="#"]').on('click',function(e){e.preventDefault();var $this=$(this),href=$this.attr('href'),target=self.getTarget(href);if(target&&target.get(0)){var $parent=$this.parent();var scroll_to=target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1;$('html, body').stop().animate({scrollTop:scroll_to},600,'easeOutQuad',function(){$parent.siblings().removeClass('active');$parent.addClass('active');});if($this.closest('.porto-popup-menu.opened').length){$this.closest('.porto-popup-menu.opened').children('.hamburguer-btn').trigger('click');}}else if(('#'!=href||!$this.closest('.porto-popup-menu.opened').length)&&!$this.hasClass('nolink')){window.location.href=$this.attr('href');}});var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');$menu_items.each(function(){var rootMargin='-20% 0px -79.9% 0px',isLast=$(this).parent().is(':last-child');if(isLast){var obj=document.getElementById(this.hash.replace('#',''));if(obj&&document.body.offsetHeight-obj.offsetTop<window.innerHeight){var ratio=(window.innerHeight-document.body.offsetHeight+obj.offsetTop)/window.innerHeight*0.8;ratio=Math.round(ratio*100);rootMargin='-'+(20+ratio)+'% 0px -'+(79.9-ratio)+'% 0px';}}
var callback=function(){if(this&&typeof this[0]!='undefined'&&this[0].id){$('.menu-item > a[href*="#'+this[0].id+'"], .porto-sticky-nav .nav > li > a[href*="#'+this[0].id+'"]').parent().addClass('active').siblings().removeClass('active');}};self.scrollSpyIntObs(this.hash,callback,{rootMargin:rootMargin,thresholds:0},true,isLast,true,$menu_items,$(this).parent().index());});return self;},scrollSpyIntObs:function(selector,functionName,intObsOptions,alwaysObserve,isLast,firstLoad,$allItems,index){if(typeof IntersectionObserver=='undefined'){return this;}
var obj=document.getElementById(selector.replace('#',''));if(!obj){return this;}
var self=this;var intersectionObserverOptions={rootMargin:'0px 0px 200px 0px'}
if(Object.keys(intObsOptions).length){intersectionObserverOptions=$.extend(intersectionObserverOptions,intObsOptions);}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){if(typeof functionName==='string'){var func=Function('return '+functionName)();}else{var callback=functionName;callback.call($(entry.target));}}else{if(firstLoad==false){if(isLast&&!$allItems.closest('.porto-sticky-nav').length){$allItems.filter('[href*="'+entry.target.id+'"]').parent().prev().addClass('active').siblings().removeClass('active');}}
firstLoad=false;}}},intersectionObserverOptions);observer.observe(obj);return this;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__floatElement';var PluginFloatElement=function($el,opts){return this.initialize($el,opts);};PluginFloatElement.defaults={startPos:'top',speed:3,horizontal:false,circle:false,transition:false,transitionDelay:0,transitionDuration:500};PluginFloatElement.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginFloatElement.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.wrapper,$window=$(window),minus;if(self.options.style){$el.attr('style',self.options.style);}
if(self.options.circle){if(self.options.transition){$el.css({transition:'ease-out transform '+self.options.transitionDuration+'ms '+self.options.transitionDelay+'ms'});}
window.addEventListener('scroll',function(){self.movement(minus);},{passive:true});}else if($window.width()>767){if(self.options.startPos=='none'){minus='';}else if(self.options.startPos=='top'){$el.css({top:0});minus='';}else{$el.css({bottom:0});minus='-';}
if(self.options.transition){$el.css({transition:'ease-out transform '+self.options.transitionDuration+'ms '+self.options.transitionDelay+'ms'});}
self.movement(minus);window.addEventListener('scroll',function(){self.movement(minus);},{passive:true});if(theme.locomotiveScroll){theme.locomotiveScroll.on('scroll',function(instance){self.movement(minus,instance.scroll.y);});}}
return this;},movement:function(minus,isLocomotive=false){var self=this,$el=this.options.wrapper,$window=$(window),scrollTop=isLocomotive===false?$window.scrollTop():isLocomotive,elementOffset=$el.offset().top,currentElementOffset=(elementOffset-scrollTop);if(isLocomotive!==false){currentElementOffset=$el.offset().top;elementOffset=currentElementOffset+scrollTop;}
if(self.options.circle){$el.css({transform:'rotate('+(scrollTop*0.25)+'deg)'});}else{var scrollPercent=100*currentElementOffset/($window.height());if(elementOffset+$el.height()>=scrollTop&&elementOffset<=scrollTop+window.innerHeight){if(!self.options.horizontal){$el.css({transform:'translate3d(0, '+minus+scrollPercent/self.options.speed+'%, 0)'});}else{$el.css({transform:'translate3d('+minus+scrollPercent/self.options.speed+'%, 0, 0)'});}}}}};$.extend(theme,{PluginFloatElement:PluginFloatElement});$.fn.themePluginFloatElement=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginFloatElement($this,opts);}});}}).apply(this,[window.theme,jQuery]);function porto_init($wrap){'use strict';jQuery(window).on('touchstart',function(){});if(!$wrap){$wrap=jQuery(document.body);}
var wrapObj=$wrap.get(0);$wrap.trigger('porto_init_start',[wrapObj]);(function($){if($.fn.themeAccordion){$(function(){$wrap.find('.accordion:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeAccordion(opts);});});}
if($.fn.themeAccordionMenu){$(function(){$wrap.find('.accordion-menu:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeAccordionMenu(opts);});});}
if($.fn.themeFitVideo){$(function(){$wrap.find('.fit-video:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeFitVideo(opts);});});}
if($.fn.themePluginVideoBackground){$(function(){$wrap.find('[data-plugin-video-background]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themePluginVideoBackground(opts);});});}
if($.fn.themeFlickrZoom){$(function(){$wrap.find('.wpb_flickr_widget:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeFlickrZoom(opts);});});}
if($.fn.themePluginLazyLoad){$(function(){$wrap.find('[data-plugin-lazyload]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themePluginLazyLoad(opts);});if($wrap.find('.porto-lazyload').length){$wrap.find('.porto-lazyload').filter(function(){if($(this).data('__lazyload')||($(this).closest('.owl-carousel').length&&$(this).closest('.owl-carousel').find('.owl-item.cloned').length)){return false;}
return true;}).themePluginLazyLoad({effect:'fadeIn',effect_speed:400});if($wrap.find('.porto-lazyload').closest('.nivoSlider').length){theme.requestTimeout(function(){$wrap.find('.nivoSlider').each(function(){if($(this).find('.porto-lazyload').length){$(this).closest('.nivoSlider').find('.nivo-main-image').attr('src',$(this).closest('.nivoSlider').find('.porto-lazyload').eq(0).attr('src'));}});},100);}
if($wrap.find('.porto-lazyload').closest('.porto-carousel-wrapper').length){theme.requestTimeout(function(){$wrap.find('.porto-carousel-wrapper').each(function(){if($(this).find('.porto-lazyload:not(.lazy-load-loaded)').length){$(this).find('.slick-list').css('height','auto');}});},100);}}});}
if($.fn.themeMasonry){$(function(){$wrap.find('[data-plugin-masonry]:not(.manual)').each(function(){var $this=$(this),opts;if($this.hasClass('elementor-row')){$this.children('.elementor-column').addClass('porto-grid-item');}
var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeMasonry(opts);});$wrap.find('.posts-masonry .posts-container:not(.manual)').each(function(){var pluginOptions=$(this).data('plugin-options');if(!pluginOptions){pluginOptions={};}
pluginOptions.itemSelector='.post';$(this).themeMasonry(pluginOptions);});$wrap.find('.page-portfolios .portfolio-row:not(.manual)').each(function(){if($(this).closest('.porto-grid-container').length>0||typeof $(this).attr('data-plugin-masonry')!='undefined'){return;}
var $parent=$(this).parent(),layoutMode='masonry',options,columnWidth='.portfolio:not(.w2)',timer=null;if($parent.hasClass('portfolios-grid')){}else if($parent.hasClass('portfolios-masonry')){if(!$parent.children('.bounce-loader').length){$parent.append('<div class="bounce-loader"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>');}}
options={itemSelector:'.portfolio',layoutMode:layoutMode,callback:function(){timer&&clearTimeout(timer);timer=setTimeout(function(){if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-portfolios'));}
$parent.addClass('portfolio-iso-active');},400);}};if(layoutMode=='masonry'){if(!$parent.find('.portfolio:not(.w2)').length)
columnWidth='.portfolio';options=$.extend(true,{},options,{masonry:{columnWidth:columnWidth}});}
$(this).themeMasonry(options);});$wrap.find('.page-members .member-row:not(.manual)').each(function(){$(this).themeMasonry({itemSelector:'.member',callback:function(){setTimeout(function(){if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-members'));}},400);}});});});}
if($.fn.themeToggle){$(function(){$wrap.find('section.toggle:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeToggle(opts);});});}
if($.fn.themeParallax){$(function(){$wrap.find('[data-plugin-parallax]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options'),parallaxScale=$this.attr('data-parallax-scale');if(pluginOptions)
opts=pluginOptions;if(typeof parallaxScale!=='undefined'){opts['scale']=true;if(parallaxScale=='invert'){opts['scaleInvert']=true;}}
$this.themeParallax(opts);});});}
if($.fn.themePluginInViewportStyle){$(function(){$wrap.find('[data-inviewport-style]:not(.manual)').each(function(){var $this=$(this),opts=$this.data('plugin-options');$this.themePluginInViewportStyle(opts);});});}
if($.fn.themeSticky){$(function(){$wrap.find('[data-plugin-sticky]:not(.manual), .porto-sticky:not(.manual), .porto-sticky-nav:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;if($this.is(':visible')){$this.themeSticky(opts);}});});}
if($.fn['themePluginFloatElement']){$(function(){$wrap.find('[data-plugin-float-element]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themePluginFloatElement(opts);});});}
if(typeof bootstrap!='undefined'&&typeof wrapObj!='undefined'){var tooltipTriggerList=[].slice.call(wrapObj.querySelectorAll("[data-bs-tooltip]:not(.manual), [data-toggle='tooltip']:not(.manual), .star-rating:not(.manual)"));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl)});}
$wrap.find('a[data-bs-toggle="tab"]').off('shown.bs.tab').on('shown.bs.tab',function(e){$(this).parents('.nav-tabs').find('.active').removeClass('active');$(this).addClass('active').parent().addClass('active');if($(this).closest('.tabs')){var _tabCarousel=$(this).closest('.tabs').find('.tab-content>.active').find('.owl-carousel');if(!_tabCarousel.data('owl.carousel')){_tabCarousel.themeCarousel(_tabCarousel.data('plugin-options'));}}});if($.fn.vcwaypoint){$wrap.find('.vc_progress_bar').each(function(){var $this=$(this);if(!$this.find('.progress-bar-tooltip').length){return;}
$this.vcwaypoint(function(){var $tooltips=$this.find('.progress-bar-tooltip'),index=0,count=$tooltips.length;function loop(){theme.requestTimeout(function(){$tooltips.animate({opacity:1});},200);index++;if(index<count){loop();}}
loop();},{offset:'85%'});});}
if(typeof theme.initAsync=='function'){theme.initAsync($wrap,wrapObj);}else{$(document.body).on('porto_async_init',function(){theme.initAsync($wrap,wrapObj);});}})(jQuery);jQuery(document.body).trigger('porto_init',[$wrap]);}
(function(theme,$){'use strict';$(document).ready(function(){var win_width=0;$(window).smartresize(function(){if(win_width!=window.innerWidth){theme.adminBarHeightNum=null;win_width=window.innerWidth;}
theme.bodyWidth=document.body.offsetWidth;});if(typeof theme.ScrollToTop!=='undefined'){theme.ScrollToTop.initialize();}
setTimeout(function(){porto_init();},0);(function(){theme.bodyWidth=theme.bodyWidth||document.body.offsetWidth;if(typeof theme.MegaMenu!=='undefined'){theme.MegaMenu.initialize();}
if(typeof theme.SidebarMenu!=='undefined'){theme.SidebarMenu.initialize();$('.sidebar-menu.side-menu-accordion').themeAccordionMenu({'open_one':true});}})();(function(){if($('.porto-popup-menu').length){$('.porto-popup-menu .hamburguer-btn').on('click',function(e){e.preventDefault();var $this=$(this),$html=$('html');if($('.porto-popup-menu-spacer').length){$('.porto-popup-menu-spacer').remove();}else{$('<div class="porto-popup-menu-spacer"></div>').insertBefore($this.parent());$('.porto-popup-menu-spacer').width($this.parent().width());}
if($this.parent().hasClass('opened')){$html.css('overflow','');$html.css('margin-right','');}else{$html.css('margin-right',theme.getScrollbarWidth());$html.css('overflow','hidden');}
$this.parent().toggleClass('opened');theme.requestFrame(function(){$this.toggleClass('active');});});$('.porto-popup-menu .main-menu').scrollbar();$('.porto-popup-menu').on('click','li.menu-item-has-children > a',function(e){e.preventDefault();$(this).parent().siblings('li.menu-item-has-children.opened').removeClass('opened');$(this).parent().toggleClass('opened');});}
if(typeof theme.SideNav!=='undefined'){theme.SideNav.initialize();}})();setTimeout(()=>{if(typeof theme.StickyHeader!=='undefined'){theme.StickyHeader.initialize();}
if(typeof theme.HashScroll!=='undefined'){theme.HashScroll.initialize();}});if(js_porto_vars.use_skeleton_screen.length>0&&$('.skeleton-loading').length){var dclFired=false,dclPromise=(function(){var deferred=$.Deferred();$(function(){deferred.resolve();dclFired=true;});return deferred.promise();})(),observer=false,NativeMutationObserver=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver;if(typeof NativeMutationObserver!='undefined'){observer=new NativeMutationObserver(function(mutationsList,observer){for(var i in mutationsList){var mutation=mutationsList[i];if(mutation.type=='childList'){$(mutation.target).trigger('skeleton:initialised');}}});}
var killObserverTrigger=setTimeout(function(){if(observer){observer.disconnect();observer=undefined;}},4000);var skeletonTimer;$('.skeleton-loading').each(function(e){var $this=$(this),skeletonInitialisedPromise=(function(){var deferred=$.Deferred();$this.on('skeleton:initialised',function(evt){if(evt.target.classList.contains('skeleton-loading')){deferred.resolve(evt);}});return deferred.promise();})(),resourcesLoadedPromise=(function(){return $.Deferred().resolve().promise();})();$.when(skeletonInitialisedPromise,resourcesLoadedPromise,dclPromise).done(function(e){var $real=$(e.target),$placeholder=$real.siblings('.skeleton-body');if(!$placeholder.length){$placeholder=$real.parent().parent().parent().find('[class="'+$real.attr('class').replace('skeleton-loading','skeleton-body')+'"]');}
porto_init($real);if($real.find('.sidebar-menu:not(.side-menu-accordion)').length){theme.SidebarMenu.initialize($real.find('.sidebar-menu:not(.side-menu-accordion)'));}
if(skeletonTimer){theme.deleteTimeout(skeletonTimer);}
$real.trigger('skeleton-loaded');theme.requestTimeout(function(){if($placeholder.length){if($placeholder.parent().hasClass('yit-wcan-container')){$placeholder.parent().remove();}else{$placeholder.remove();}}
$real.removeClass('skeleton-loading');if($real.closest('.skeleton-loading-wrap')){$real.closest('.skeleton-loading-wrap').removeClass('skeleton-loading-wrap');}
if($(document.body).hasClass('elementor-default')||$(document.body).hasClass('elementor-page')){$(window).trigger('resize');}
theme.refreshStickySidebar(false);},100);if(!$('.skeleton-loading').length){clearTimeout(killObserverTrigger);observer.disconnect();observer=undefined;}});if($this.children('script[type="text/template"]').length){var content=$(JSON.parse($this.children('script[type="text/template"]').eq(0).html()));$this.children('script[type="text/template"]').eq(0).remove();if(observer){observer.observe(this,{childList:true,subtree:false});}
$this.append(content);if(!observer){$this.trigger('skeleton:initialised');}}});}
$(document).trigger('porto_theme_init');});$(window).on('load',function(){$(document).on('click','.sidebar-toggle',function(e){e.preventDefault();var $html=$('html'),$main=$('#main'),$this=$(this);if($this.siblings('.porto-product-filters').length){if($html.hasClass('filter-sidebar-opened')){$html.removeClass('filter-sidebar-opened');$this.siblings('.sidebar-overlay').removeClass('active');if($html.hasClass('sidebar-right-opened')){$html.removeClass('sidebar-right-opened');}}else{$html.removeClass('sidebar-opened');$html.addClass('filter-sidebar-opened');$this.siblings('.sidebar-overlay').addClass('active');if($main.hasClass('column2-right-sidebar')||$main.hasClass('column2-wide-right-sidebar')){$html.addClass('sidebar-right-opened');}}}else{if($html.hasClass('sidebar-opened')){$html.removeClass('sidebar-opened');$('.sidebar-overlay').removeClass('active');if($html.hasClass('sidebar-right-opened')){$html.removeClass('sidebar-right-opened');}}else{$html.addClass('sidebar-opened');$('.sidebar-overlay').addClass('active');if($main.hasClass('column2-right-sidebar')||$main.hasClass('column2-wide-right-sidebar')){$html.addClass('sidebar-right-opened');}}}});$('#header .mini-cart').on('click',function(e){let $body=$('body');if(js_porto_vars.cart_url&&($body.hasClass('woocommerce-cart')||$body.hasClass('woocommerce-checkout'))){location.href=js_porto_vars.cart_url;}});$('.minicart-offcanvas .cart-head').on('click',function(){let $body=$('body');if(js_porto_vars.cart_url&&($body.hasClass('woocommerce-cart')||$body.hasClass('woocommerce-checkout'))){return;}
var $this=$(this);$this.closest('.minicart-offcanvas').toggleClass('minicart-opened');if($this.closest('.minicart-offcanvas').hasClass('minicart-opened')){$('html').css('margin-right',theme.getScrollbarWidth());$('html').css('overflow','hidden');}else{$('html').css('overflow','');$('html').css('margin-right','');}});$('.minicart-offcanvas .minicart-overlay').on('click',function(){$(this).closest('.minicart-offcanvas').removeClass('minicart-opened');$('html').css('overflow','');$('html').css('margin-right','');});$(document.body).on('click','.sidebar-overlay',function(){var $html=$('html');$html.removeClass('sidebar-opened');$html.removeClass('filter-sidebar-opened');$(this).removeClass('active');$html.removeClass('sidebar-right-opened');});$(document.body).on('click','.section-tabs .nav-link',function(e){e.preventDefault();var $this=$(this),nav_id=$this.data('tab'),$section_tab=$this.closest('.section-tabs'),$nav_wrap=$section_tab.children('ul.nav'),$tab_content=$section_tab.children('.tab-content');if(nav_id){$nav_wrap.find('.active').removeClass('active');$this.addClass('active').parent('.nav-item').addClass('active');$tab_content.find('>.active').removeClass('show active');$tab_content.find('>.tab-pane[id="'+nav_id+'"]').addClass('active');let _offsetHeight=$tab_content.find('>.active').get(0).offsetHeight;$tab_content.find('>.active').addClass('show');var _tabCarousel=$tab_content.find('>.active').find('.owl-carousel');if(!_tabCarousel.data('owl.carousel')){_tabCarousel.themeCarousel(_tabCarousel.data('plugin-options'));}}});$(window).on('resize',function(e){if(e.originalEvent&&window.innerWidth>991&&$('html').hasClass('sidebar-opened')){$('.sidebar-overlay').trigger('click');}});var $matchHeightObj=$('.tabs-simple .featured-box .box-content, .porto-content-box .featured-box .box-content, .vc_general.vc_cta3, .match-height');if($matchHeightObj.length){if($.fn.matchHeight){$matchHeightObj.matchHeight();}else{var script=document.createElement("script");script.addEventListener("load",function(event){$matchHeightObj.matchHeight();});script.src=js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/libs/jquery.matchHeight.min.js');script.async=true;document.body.appendChild(script);}}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('.share-whatsapp').css('display','inline-block');}
$(document).ajaxComplete(function(event,xhr,options){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('.share-whatsapp').css('display','inline-block');}});var ua=window.navigator.userAgent,ie12=ua.indexOf('Edge/')>0;if(ie12)$('html').addClass('ie12');$(document).on('click','.portfolios-lightbox a.portfolio-link',function(e){$(this).find('.thumb-info-zoom').trigger('click');return false;});$('.porto-faqs').each(function(){if($(this).find('.faq .toggle.active').length<1){$(this).find('.faq').eq(0).find('.toggle').addClass('active');$(this).find('.faq').eq(0).find('.toggle-content').show();}});$(document).on('shown.bs.collapse','.collapse',function(){var panel=$(this);theme.refreshVCContent(panel);});$(document).on('shown.bs.tab','a[data-bs-toggle="tab"]',function(e){var panel=$($(e.target).attr('href'));theme.refreshVCContent(panel);});$('.porto-tooltip .tooltip-icon').on('click',function(){if($(this).parent().children(".tooltip-popup").css("display")=="none"){$(this).parent().children(".tooltip-popup").fadeIn(200);}else{$(this).parent().children(".tooltip-popup").fadeOut(200);}});$('.porto-tooltip .tooltip-close').on('click',function(){$(this).parent().fadeOut(200);});$('body').css('--porto-scroll-w',theme.getScrollbarWidth()+'px');});}).apply(this,[window.theme,jQuery]);(function(theme,$,undefined){"use strict";$(document).ready(function(){$(window).on('vc_reload',function(){porto_init();$('.type-post').addClass('post');$('.type-portfolio').addClass('portfolio');$('.type-member').addClass('member');$('.type-block').addClass('block');});});var timelineHeightAdjust={$timeline:$('#exp-timeline'),$timelineBar:$('#exp-timeline .timeline-bar'),$firstTimelineItem:$('#exp-timeline .timeline-box').first(),$lastTimelineItem:$('#exp-timeline .timeline-box').last(),build:function(){var self=this;self.adjustHeight();},adjustHeight:function(){var self=this,calcFirstItemHeight=(self.$firstTimelineItem.outerHeight(true)/2)+5,calcLastItemHeight=(self.$lastTimelineItem.outerHeight(true)/2)+5;self.$timelineBar.css({top:calcFirstItemHeight,bottom:calcLastItemHeight});}}
if($('#exp-timeline').get(0)){var timeline_timer=null;$(window).smartresize(function(){if(timeline_timer){clearTimeout(timeline_timer);}
timeline_timer=setTimeout(function(){timelineHeightAdjust.build();},800);});timelineHeightAdjust.build();}
$('.custom-view-our-location').on('click',function(e){e.preventDefault();var this_=$(this);$('.custom-googlemap').slideDown('1000',function(){this_.delay(700).hide();});});window.addEventListener('LazyLoad::Initialized',function(event){theme.w3tcLazyLoadInstance=event.detail.instance;},false);})(window.theme,jQuery);(function(theme,$,undefined){'use strict';window.addEventListener('load',function(){theme.isLoaded=true;});$(document).ready(function(){if(typeof elementorFrontend!='undefined'){$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addFilter('frontend/handlers/menu_anchor/scroll_top_distance',function(scrollTop){if(theme&&theme.StickyHeader&&typeof theme.sticky_nav_height!='undefined'){if(elementorFrontend.elements.$wpAdminBar.length){scrollTop+=elementorFrontend.elements.$wpAdminBar.height();}
scrollTop=scrollTop-theme.adminBarHeight()-theme.StickyHeader.sticky_height-theme.sticky_nav_height+1;}
return scrollTop;});elementorFrontend.elements.$window.on('elementor/nested-tabs/activate',function(e,content){var _tabCarousel=$(content).find('.owl-carousel');if(!_tabCarousel.data('owl.carousel')){_tabCarousel.themeCarousel(_tabCarousel.data('plugin-options'));}});});}});$('#footer .widget_wysija .wysija-submit:not(.btn)').addClass('btn btn-default');if($('[data-vc-parallax] .owl-carousel').length){theme.requestTimeout(function(){if(typeof window.vcParallaxSkroll=='object'){window.vcParallaxSkroll.refresh();}},200);}
if($('.page-content > .alignfull, .post-content > .alignfull').length){var initAlignFull=function(){$('.page-content > .alignfull, .post-content > .alignfull').each(function(){$(this).css('left',-1*$(this).parent().offset().left).css('right',-1*$(this).parent().offset().left).css('width',$('body').width()-(parseInt($(this).css('margin-left'),10)+parseInt($(this).css('margin-right'),10)));});};initAlignFull();$(window).smartresize(function(){initAlignFull();});}})(window.theme,jQuery);}catch(e){}
try{(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{mfpConfig:{tClose:js_porto_vars.popup_close,tLoading:'<div class="porto-ajax-loading"><i class="porto-loading-icon"></i></div>',gallery:{tPrev:js_porto_vars.popup_prev,tNext:js_porto_vars.popup_next,tCounter:js_porto_vars.mfp_counter},image:{tError:js_porto_vars.mfp_img_error},ajax:{tError:js_porto_vars.mfp_ajax_error},callbacks:{open:function(){$('body').addClass('lightbox-opened');var fixed=this.st.fixedContentPos;if(fixed){$('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right',theme.getScrollbarWidth());}
var that=$(this._lastFocusedEl);if((that.closest('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width()>=1024){var portfolio_lightbox_thumbnails_base=that.closest('.portfolios-lightbox.with-thumbs').find('.porto-portfolios-lighbox-thumbnails').clone(),magnificPopup=$.magnificPopup.instance;$('body').prepend(portfolio_lightbox_thumbnails_base);var $portfolios_lightbox_thumbnails=$('body > .porto-portfolios-lighbox-thumbnails'),$portfolios_lightbox_thumbnails_carousel=$portfolios_lightbox_thumbnails.children('.owl-carousel');$portfolios_lightbox_thumbnails_carousel.themeCarousel($portfolios_lightbox_thumbnails_carousel.data('plugin-options'));$portfolios_lightbox_thumbnails_carousel.trigger('refresh.owl.carousel');var $carousel_items_wrapper=$portfolios_lightbox_thumbnails_carousel.find('.owl-stage');$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');$.magnificPopup.instance.next=function(){var magnificPopup=$.magnificPopup.instance;$.magnificPopup.proto.next.call(this);$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');};$.magnificPopup.instance.prev=function(){var magnificPopup=$.magnificPopup.instance;$.magnificPopup.proto.prev.call(this);$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');};$carousel_items_wrapper.find('.owl-item').on('click',function(){$carousel_items_wrapper.find('.owl-item').removeClass('current');$.magnificPopup.instance.goTo($(this).index());$(this).addClass('current');});}},close:function(){$('body').removeClass('lightbox-opened');var fixed=this.st.fixedContentPos;if(fixed){$('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right','');}
$('.owl-carousel .owl-stage').each(function(){var $this=$(this),w=$this.width()+parseInt($this.css('padding-left'))+parseInt($this.css('padding-right'));$this.css({'width':w+200});setTimeout(function(){$this.css({'width':w});},0);});var that=$(this._lastFocusedEl);if((that.parents('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width()>=1024){$(' body > .porto-portfolios-lighbox-thumbnails').remove();}}}},});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{Search:{defaults:{popup:$('.searchform-popup'),form:$('.searchform')},initialize:function($popup,$form){this.$popup=($popup||this.defaults.popup);this.$form=($form||this.defaults.form);this.form_layout=this.$form.hasClass('search-layout-overlay')?'overlay':this.$form.hasClass('search-layout-reveal')?'reveal':false;this.build().events();return this;},build:function(){var self=this;var $search_form_texts=self.$form.find('.text input'),$search_form_cats=self.$form.find('.cat');if($('.searchform .cat').get(0)&&$.fn.selectric){$('.searchform .cat').selectric({arrowButtonMarkup:'',expandToItemText:true,maxHeight:240});}
$search_form_texts.on('change',function(){var $this=$(this),val=$this.val();$search_form_texts.each(function(){if($this!=$(this))$(this).val(val);});});$search_form_cats.on('change',function(){var $this=$(this),val=$this.val();$search_form_cats.each(function(){if($this!=$(this))$(this).val(val);});});return this;},events:function(){var self=this;$('body').on('click','.searchform-popup',function(e){e.stopPropagation();});$('body').off('click','.searchform-popup .search-toggle').on('click','.searchform-popup .search-toggle',function(e){var $this=$(this),$form=$this.next();$this.toggleClass('opened');if('overlay'==self.form_layout){$this.siblings('.search-layout-overlay').addClass('show');$('html').toggleClass('porto-search-opened porto-search-overlay-wrap');$this.closest('.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner').css('z-index','999');}else if('reveal'==self.form_layout){self.parents=[];var $element=self.$popup;while(!(($element.hasClass('elementor-container')&&!$element.parent().hasClass('elementor-inner-container'))||($element.hasClass('e-con-inner')&&!$element.parent().hasClass('e-child'))||($element.parent().hasClass('vc_row')&&!$element.parent().hasClass('vc_inner'))||'header'==$element.parent().attr('id')||$element.parent().hasClass('header-main')||$element.parent().hasClass('header-top')||$element.parent().hasClass('header-bottom'))){$element=$element.parent();$element.addClass('position-static');self.parents.push($element);}
if('static'==$element.parent().css('position')){self.topParent=$element.parent();self.topParent.addClass('position-relative');}
$form.toggle();window.setTimeout(function(){$('body').toggleClass('porto-search-opened');},100);}else{$form.toggle();}
if($this.hasClass('opened')){$('#mini-cart.open').removeClass('open');$this.next().find('input[type="text"]').focus();if(self.$popup.find('.btn-close-search-form').length){self.$popup.parent().addClass('position-static');}}else if('reveal'==self.form_layout){self.removeFormStyle();}
e.preventDefault();e.stopPropagation();});$('html,body').on('click',function(){self.removeFormStyle();});if(!('ontouchstart'in document)){$(window).on('resize',function(){self.removeFormStyle();});}
$('.btn-close-search-form').on('click',function(e){e.preventDefault();self.removeFormStyle();});return self;},removeFormStyle:function(){this.$form.removeAttr('style');var $searchToggle=this.$popup.find('.search-toggle');$searchToggle.removeClass('opened');if('overlay'==this.form_layout){$('html').removeClass('porto-search-opened porto-search-overlay-wrap');$searchToggle.siblings('.search-layout-overlay').removeClass('show');$searchToggle.closest('.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner').css('z-index','');}else if('reveal'==this.form_layout&&this.parents&&this.parents.length>=1){$('body').removeClass('porto-search-opened');this.parents.forEach($element=>{$element.removeClass('position-static');});if(this.topParent){this.topParent.removeClass('position-relative');}}
if(this.$popup.find('.btn-close-search-form').length){this.$popup.parent().removeClass('position-static');}}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__animate';var Animate=function($el,opts){return this.initialize($el,opts);};Animate.defaults={accX:0,accY:-120,delay:1,duration:1000};Animate.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,true);return this;},setOptions:function(opts){this.options=$.extend(true,{},Animate.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.wrapper,delay=0,duration=0;if($el.data('appear-animation-svg')){$el.find('[data-appear-animation]').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themeAnimate(opts);});return this;}
$el.addClass('appear-animation');var el_obj=$el.get(0);delay=Math.abs($el.data('appear-animation-delay')?$el.data('appear-animation-delay'):self.options.delay);duration=Math.abs($el.data('appear-animation-duration')?$el.data('appear-animation-duration'):self.options.duration);if('undefined'!==typeof $el.data('appear-animation')&&$el.data('appear-animation').includes('revealDir')){if(delay>1){el_obj.style.setProperty('--porto-reveal-animation-delay',delay+'ms');}
if(duration!=1000){el_obj.style.setProperty('--porto-reveal-animation-duration',duration+'ms');}
if($el.data('animation-reveal-clr')){el_obj.style.setProperty('--porto-reveal-clr',$el.data('animation-reveal-clr'));}}else{if(delay>1){el_obj.style.animationDelay=delay+'ms';}
if(duration!=1000){el_obj.style.animationDuration=duration+'ms';}}
$el.addClass($el.data('appear-animation')+' appear-animation-visible');return this;}};$.extend(theme,{Animate:Animate});$.fn.themeAnimate=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this;}else{return new theme.Animate($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__animatedLetters';var PluginAnimatedLetters=function($el,opts){return this.initialize($el,opts);};PluginAnimatedLetters.defaults={contentType:'letter',animationName:'typeWriter',animationSpeed:50,startDelay:500,minWindowWidth:768,letterClass:'',wordClass:''};PluginAnimatedLetters.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
var self=this;this.$el=$el;this.initialText=$el.text();this.timeoutId=null;this.setData().setOptions(opts).build().events();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginAnimatedLetters.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,letters=self.$el.text().split('');if($(window).width()<self.options.minWindowWidth){self.$el.addClass('initialized');return this;}
if(self.options.firstLoadNoAnim){self.$el.css({visibility:'visible'});if(self.$el.closest('.owl-carousel').get(0)){setTimeout(function(){self.$el.closest('.owl-carousel').on('change.owl.carousel',function(){self.options.firstLoadNoAnim=false;self.build();});},500);}
return this;}
self.$el.addClass('initialized');self.setMinHeight();if(self.options.contentType=='letter'){self.$el.text('');if(self.options.animationName=='typeWriter'){self.$el.append('<span class="letters-wrapper"></span><span class="typeWriter"></pre>');var index=0;var timeout=function(){var st=setTimeout(function(){var letter=letters[index];self.$el.find('.letters-wrapper').append('<span class="letter '+(self.options.letterClass?self.options.letterClass+' ':'')+'">'+letter+'</span>');index++;timeout();},self.options.animationSpeed);if(index>=letters.length){clearTimeout(st);}};timeout();}else{this.timeoutId=setTimeout(function(){for(var i=0;i<letters.length;i++){var letter=letters[i];self.$el.append('<span class="letter '+(self.options.letterClass?self.options.letterClass+' ':'')+self.options.animationName+' animated" style="animation-delay: '+(i*self.options.animationSpeed)+'ms;">'+(letter==' '?'&nbsp;':letter)+'</span>');}},self.options.startDelay);}}else if(self.options.contentType=='word'){var words=self.$el.text().split(" "),delay=self.options.startDelay;self.$el.empty();$.each(words,function(i,v){self.$el.append($('<span class="animated-words-wrapper">').html('<span class="animated-words-item '+self.options.wordClass+' appear-animation" data-appear-animation="'+self.options.animationName+'" data-appear-animation-delay="'+delay+'">'+v+'&nbsp;</span>'));delay=delay+self.options.animationSpeed;});if($.isFunction($.fn['themeAnimate'])&&self.$el.find('.animated-words-item[data-appear-animation]').length){self.$el.find('[data-appear-animation]').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themeAnimate(opts);});}
self.$el.addClass('initialized');}
return this;},setMinHeight:function(){var self=this;if(self.$el.closest('.owl-carousel').get(0)){self.$el.closest('.owl-carousel').addClass('d-block');self.$el.css('min-height',self.$el.height());self.$el.closest('.owl-carousel').removeClass('d-block');}else{self.$el.css('min-height',self.$el.height());}
return this;},destroy:function(){var self=this;self.$el.html(self.initialText).css('min-height','');if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=null;}
return this;},events:function(){var self=this;self.$el.on('animated.letters.destroy',function(){self.destroy();});self.$el.on('animated.letters.initialize',function(){self.build();});return this;}};$.extend(theme,{PluginAnimatedLetters:PluginAnimatedLetters});$.fn.themePluginAnimatedLetters=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginAnimatedLetters($this,opts);}});}}).apply(this,[window.theme,jQuery]);if(typeof jQuery.fn.owlCarousel=='function'){(function(theme,$){'use strict';theme=theme||{};var instanceName='__carousel';var Carousel=function($el,opts){return this.initialize($el,opts);};Carousel.defaults=$.extend({},{loop:true,navText:[],themeConfig:false,lazyLoad:true,lg:0,md:0,sm:0,xs:0,single:false,rtl:theme.rtl});Carousel.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,true);return this;},setOptions:function(opts){if((opts&&opts.themeConfig)||!opts){this.options=$.extend(true,{},Carousel.defaults,theme.owlConfig,opts,{wrapper:this.$el,themeConfig:true});}else{this.options=$.extend(true,{},Carousel.defaults,opts,{wrapper:this.$el});}
return this;},calcOwlHeight:function($el){var h=0;$el.find('.owl-item.active').each(function(){if(h<$(this).height())
h=$(this).height();});$el.children('.owl-stage-outer').height(h);},build:function(){if(!$.fn.owlCarousel){return this;}
var $el=this.options.wrapper,loop=this.options.loop,lg=this.options.lg,md=this.options.md,sm=this.options.sm,xs=this.options.xs,single=this.options.single,zoom=$el.find('.zoom').filter(function(){if($(this).closest('.tb-image-type-slider').length){return false;}
return true;}).get(0),responsive={},items,count=$el.find('.owl-item').length>0?$el.find('.owl-item:not(.cloned)').length:$el.find('> *').length,fullscreen=typeof this.options.fullscreen=='undefined'?false:this.options.fullscreen;if(single){items=1;}else if(typeof this.options.responsive!='undefined'){for(var w in this.options.responsive){var number_items=Number(this.options.responsive[w]);responsive[Number(w)]={items:number_items,loop:(loop&&count>=number_items)?true:false};}}else{items=this.options.items?this.options.items:(lg?lg:1);var isResponsive=(this.options.xxl||this.options.xl||lg||md||sm||xs);if(isResponsive){if(this.options.xxl){responsive[theme.screen_xxl]={items:this.options.xxl,loop:(loop&&count>this.options.xxl)?true:false,mergeFit:this.options.mergeFit};}else if(lg&&items>lg+1){responsive[theme.screen_xxl]={items:items,loop:(loop&&count>items)?true:false,mergeFit:this.options.mergeFit};responsive[theme.screen_xl]={items:lg+1,loop:(loop&&count>lg+1)?true:false,mergeFit:this.options.mergeFit};}
if(this.options.xl){responsive[theme.screen_xl]={items:this.options.xl,loop:(loop&&count>this.options.xl)?true:false,mergeFit:this.options.mergeFit};}else if(typeof responsive[theme.screen_xl]=='undefined'&&(!lg||items!=lg)){responsive[theme.screen_xl]={items:items,loop:(loop&&count>=items)?true:false,mergeFit:this.options.mergeFit};}
if(lg)responsive[992]={items:lg,loop:(loop&&count>=lg)?true:false,mergeFit:this.options.mergeFit_lg};if(md)responsive[768]={items:md,loop:(loop&&count>md)?true:false,mergeFit:this.options.mergeFit_md};if(sm){responsive[576]={items:sm,loop:(loop&&count>sm)?true:false,mergeFit:this.options.mergeFit_sm};}else{if(xs&&xs>1){responsive[576]={items:xs,loop:(loop&&count>xs)?true:false,mergeFit:this.options.mergeFit_sm};}else{responsive[576]={items:1,mergeFit:false};}}
if(xs){responsive[0]={items:xs,loop:(loop&&count>xs)?true:false,mergeFit:this.options.mergeFit_xs};}else{responsive[0]={items:1};}}}
if(!$el.hasClass('show-nav-title')&&this.options.themeConfig&&theme.slider_nav&&theme.slider_nav_hover){$el.addClass('show-nav-hover');}
this.options=$.extend(true,{},this.options,{items:items,loop:(loop&&count>items)?true:false,responsive:responsive,onInitialized:function(){if($el.hasClass('stage-margin')){$el.find('.owl-stage-outer').css({'margin-left':this.options.stagePadding,'margin-right':this.options.stagePadding});}
var heading_cls='.porto-u-heading, .vc_custom_heading, .slider-title, .elementor-widget-heading, .porto-heading';if($el.hasClass('show-dots-title')&&($el.prev(heading_cls).length||$el.closest('.slider-wrapper').prev(heading_cls).length||$el.closest('.porto-recent-posts').prev(heading_cls).length||$el.closest('.elementor-widget-porto_recent_posts, .elementor-section').prev(heading_cls).length)){var $obj=$el.prev(heading_cls);if(!$obj.length){$obj=$el.closest('.slider-wrapper').prev(heading_cls);}
if(!$obj.length){$obj=$el.closest('.porto-recent-posts').prev(heading_cls);}
if(!$obj.length){$obj=$el.closest('.elementor-widget-porto_recent_posts, .elementor-section').prev(heading_cls);}
try{var innerWidth=$obj.addClass('w-auto').css('display','inline-block').width();$obj.removeClass('w-auto').css('display','');if(innerWidth+15+$el.find('.owl-dots').width()<=$obj.width()){$el.find('.owl-dots').css(($('body').hasClass('rtl')?'right':'left'),innerWidth+15+($el.width()-$obj.width())/2);$el.find('.owl-dots').css('top',-1*$obj.height()/2-parseInt($obj.css('margin-bottom'))-$el.find('.owl-dots').height()/2+2);}else{$el.find('.owl-dots').css('position','static');}}catch(e){}}}});if(this.options.autoHeight){var thisobj=this;$(window).on('resize',function(){thisobj.calcOwlHeight($el);});if(theme.isLoaded){setTimeout(function(){thisobj.calcOwlHeight($el);},100);}else{$(window).on('load',function(){thisobj.calcOwlHeight($el);});}}
var links=false;if(zoom){links=[];var i=0;$el.find('.zoom').each(function(){var slide={},$zoom=$(this);slide.src=$zoom.data('src')?$zoom.data('src'):$zoom.data('mfp-src');slide.title=$zoom.data('title');links[i]=slide;$zoom.data('index',i);i++;});}
if($el.hasClass('show-nav-title')){this.options.stagePadding=0;}else{if(this.options.themeConfig&&theme.slider_nav&&theme.slider_nav_hover)
$el.addClass('show-nav-hover');if(this.options.themeConfig&&!theme.slider_nav_hover&&theme.slider_margin)
$el.addClass('stage-margin');}
if($el.hasClass('has-ccols-spacing')){$el.removeClass('has-ccols-spacing');}
$el.owlCarousel(this.options);if(zoom&&links){$el.on('click','.zoom',function(e){e.preventDefault();if($.fn.magnificPopup){var image_index=$(this).data('index');if(typeof image_index=='undefined'){image_index=($(this).closest('.owl-item').index()-$el.find('.cloned').length/2)%$el.data('owl.carousel').items().length;}
$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),image_index);}
return false;});}
return this;}}
$.extend(theme,{Carousel:Carousel});$.fn.themeCarousel=function(opts,zoom){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this;}else{return new theme.Carousel($this,opts,zoom);}});}}).apply(this,[window.theme,jQuery]);}
(function(theme,$){'use strict';theme=theme||{};var instanceName='__lightbox';var Lightbox=function($el,opts){return this.initialize($el,opts);};Lightbox.defaults={callbacks:{open:function(){$('body').addClass('lightbox-opened');},close:function(){$('body').removeClass('lightbox-opened');}}};Lightbox.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Lightbox.defaults,theme.mfpConfig,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.magnificPopup){return this;}
this.options.wrapper.magnificPopup(this.options);return this;}};$.extend(theme,{Lightbox:Lightbox});$.fn.themeLightbox=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Lightbox($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__toggle';var VcImageZoom=function($el,opts){return this.initialize($el,opts);};VcImageZoom.defaults={};VcImageZoom.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},VcImageZoom.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.container;$el.parent().magnificPopup($.extend(true,{},theme.mfpConfig,{delegate:".porto-vc-zoom",gallery:{enabled:true},mainClass:'mfp-with-zoom',zoom:{enabled:true,duration:300},type:'image'}));return this;}};$.extend(theme,{VcImageZoom:VcImageZoom});$.fn.themeVcImageZoom=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.VcImageZoom($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{PostFilter:{cache:{},defaults:{elements:'.portfolio-filter'},initialize:function($elements,post_type){this.$elements=($elements||$(this.defaults.elements));this.build(post_type);return this;},filterFn:function(e){if(typeof e=='undefined'||typeof e.data=='undefined'||typeof e.data.elements=='undefined'||!e.data.elements||!e.data.elements.length){return;}
var self=e.data.selfobj;if(self.isLoading){return false;}
var $this=e.data.thisobj,$elements=e.data.elements,position=e.data.position,post_type=e.data.post_type,$parent=e.data.parent,$posts_wrap=e.data.posts_wrap,use_ajax=e.data.use_ajax,page_path=e.data.page_path,infinite_load=e.data.infinite_load,load_more=e.data.load_more;e.preventDefault();if($(this).hasClass('active')){return;}
self.isLoading=true;var selector=$(this).attr('data-filter');if('sidebar'==position){$('.sidebar-overlay').trigger('click');}
$this.find('.active').removeClass('active');if(use_ajax){var current_cat='*'==selector?'':selector;if(!page_path){page_path=$posts_wrap.data('page_path');}
if(page_path){$posts_wrap.data('page_path',page_path.replace(/&category=[^&]*&/,'&category='+current_cat+'&'));}
$(this).addClass('active');self.load_posts(current_cat,infinite_load||load_more?true:false,$parent,post_type,$posts_wrap,undefined,$(this).children('a').attr('href'));}else if('faq'==post_type){$parent.find('.faq').each(function(){var $that=$(this),easing="easeInOutQuart",timeout=300;if(selector=='*'){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.hasClass(selector)){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.css('display')!='none')$that.stop(true).slideUp(timeout,easing,function(){$(this).attr('style','').hide();});}}});if(!selected&&$parent.find('.faqs-infinite').length&&typeof($.fn.infinitescroll)!='undefined'){$parent.find('.faqs-infinite').infinitescroll('retrieve');}}else if($parent.hasClass('portfolios-timeline')){var selected=0;$parent.find('.portfolio').each(function(){var $that=$(this),easing="easeInOutQuart",timeout=300;if(selector=='*'){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.hasClass(selector)){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.css('display')!='none')$that.stop(true).slideUp(timeout,easing,function(){$(this).attr('style','').hide();});}}});if(!selected&&$parent.find('.portfolios-infinite').length&&typeof($.fn.infinitescroll)!='undefined'){$parent.find('.portfolios-infinite').infinitescroll('retrieve');}
setTimeout(function(){theme.FilterZoom.initialize($parent);},400);}else{$parent.find('.'+post_type+'-row').isotope({filter:selector=='*'?selector:'.'+selector});}
if(!use_ajax){$(this).addClass('active');self.isLoading=false;}
if(position=='sidebar'){self.$elements.each(function(){var $that=$(this);if($that==$this&&$that.data('position')!='sidebar')return;$that.find('li').removeClass('active');$that.find('li[data-filter="'+selector+'"]').addClass('active');});}
if(!use_ajax){window.location.hash='#'+selector;}
theme.refreshVCContent();return false;},build:function(post_type_param){var self=this;self.$elements.each(function(){var $this=$(this),position=$this.data('position'),$parent,post_type;if(typeof post_type_param=='undefined'){if($this.hasClass('member-filter')){post_type='member';}else if($this.hasClass('faq-filter')){post_type='faq';}else if($this.hasClass('product-filter')){post_type='product';}else if($this.hasClass('post-filter')){post_type='post';}else if($this.hasClass('portfolio-filter')){post_type='portfolio';}else{post_type=$this.attr('data-filter-type');}}else{post_type=post_type_param;}
if('sidebar'==position){$parent=$('.main-content .page-'+post_type+'s');}else if('global'==position){$parent=$('.main-content .page-'+post_type+'s');}else{$parent=$this.closest('.page-'+post_type+'s');}
if(!$parent.length){$parent=$this.closest('.porto-posts-grid');}
if(!$parent||!$parent.length){return;}
var use_ajax=$this.hasClass('porto-ajax-filter'),infinite_load=$parent.hasClass('load-infinite'),load_more=$parent.hasClass('load-more');var $posts_wrap=$parent.find('.'+post_type+'s-container'),page_path;if(use_ajax&&((!infinite_load&&!load_more)||!$parent.data('ajax_load_options'))){var current_url=window.location.href;if(-1!==current_url.indexOf('#')){current_url=current_url.split('#')[0];}
page_path=theme.ajax_url+(-1===theme.ajax_url.indexOf('?')?'?':'&')+'action=porto_ajax_posts&nonce='+js_porto_vars.porto_nonce+'&post_type='+post_type+'&current_link='+current_url+'&category=&page=%cur_page%';if($parent.data('post_layout')){page_path+='&post_layout='+$parent.data('post_layout');}
$posts_wrap.data('page_path',page_path);}
$this.find('li').on('click',{thisobj:$this,selfobj:self,elements:self.$elements,position:position,parent:$parent,post_type:post_type,posts_wrap:$posts_wrap,use_ajax:use_ajax,page_path:page_path,infinite_load:infinite_load,load_more:load_more},self.filterFn);});$(window).on('hashchange',{elements:self.$elements},self.hashchange);self.hashchange({data:{elements:self.$elements}});return self;},hashchange:function(e){if(typeof e=='undefined'||typeof e.data=='undefined'||typeof e.data.elements=='undefined'||!e.data.elements||!e.data.elements.length){return;}
var $elements=e.data.elements,$filter=$($elements.get(0)),hash=window.location.hash;if(hash){var $o=$filter.find('li[data-filter="'+hash.replace('#','')+'"]');if(!$o.hasClass('active')){$o.trigger('click');}}},set_elements:function($elements){var self=this;if(typeof $elements=='undefined'||!$elements||!$elements.length){self.destroy(self.$elements);return;}
self.$elements=$elements;$(window).off('hashchange',self.hashchange).on('hashchange',{elements:$elements},self.hashchange);},destroy:function($elements){if(typeof $elements=='undefined'||!$elements||!$elements.length){return;}
var self=this;$elements.find('li').off('click',self.filterFn);$(window).off('hashchange',self.hashchange);},load_posts:function(cat,is_infinite,$parent,post_type,$posts_wrap,default_args,page_url){var _gridcookie='';if($parent.hasClass('archive-products')){_gridcookie=new URLSearchParams(location.search.substring(1)).get('gridcookie');if(!(_gridcookie==null||_gridcookie==''||_gridcookie=='grid')){page_url=theme.addUrlParam(page_url,'gridcookie',_gridcookie);}}
var pid=$parent.attr('id'),self=this,is_archive=$parent.hasClass('archive-posts'),successfn=function(res,directcall){if(!res){return;}
if((typeof directcall=='undefined'||true!==directcall)&&typeof default_args=='undefined'&&pid){if(!self.cache[pid]){self.cache[pid]={};}
self.cache[pid][cat+_gridcookie]=res;}
var $res=$(res),is_shop=$parent.hasClass('archive-products'),$posts=$res.find(is_archive?'.archive-posts .posts-wrap':'.posts-wrap').children();if(!$posts.length){return;}
if(typeof $posts_wrap=='undefined'||is_archive){$posts_wrap=$parent.find('.'+post_type+'s-container');}
if(!$posts_wrap.length){return;}
if($posts_wrap.data('isotope')){$posts_wrap.isotope('remove',$posts_wrap.children());}else{$posts_wrap.children().remove();}
if($posts_wrap.hasClass('owl-loaded')){$posts_wrap.removeClass('owl-loaded');}
$posts.children().addClass('fadeInUp animated');$posts_wrap.append($posts);theme.refreshVCContent($posts);var $old_filter=$parent.find('.'+post_type+'-filter');if($old_filter.length&&!$old_filter.hasClass('porto-ajax-filter')&&!$parent.hasClass('load-infinite')&&!$parent.hasClass('load-more')){var $new_filter=$res.find((is_archive?'.archive-posts ':'')+'.'+post_type+'-filter');if($new_filter.length){$old_filter.find('li:first-child').trigger('click');theme.PostFilter.destroy($old_filter);$old_filter.replaceWith($new_filter);theme.PostFilter.initialize($new_filter,post_type);theme.PostFilter.set_elements($('ul[data-filter-type], ul.portfolio-filter, ul.member-filter, ul.faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter'));}}
porto_init($parent);var behavior_action='';if(post_type!='product'&&post_type!='member'&&post_type!='faq'&&post_type!='portfolio'&&post_type!='post'){behavior_action='ptu';}else{behavior_action=post_type;}
theme.PostsInfinite[behavior_action+'Behavior']($posts,$posts_wrap);$(document.body).trigger('porto_init_countdown',[$posts_wrap]);var $old_pagination=$parent.find('.pagination-wrap'),$new_pagination=$res.find((is_archive?'.archive-posts ':'')+'.pagination-wrap').eq(0),has_pagination=false;if($old_pagination.length){if($new_pagination.length){$old_pagination.replaceWith($new_pagination);has_pagination=true;}else{$old_pagination.children().remove();}}else if($new_pagination.length){$parent.append($new_pagination);has_pagination=true;}
if(is_shop){let _paginationWrap=$('.woocommerce-pagination');var $old_pagination=_paginationWrap.find('ul.page-numbers'),$new_pagination=$res.find('.woocommerce-pagination ul.page-numbers').eq(0),has_pagination=false;if($old_pagination.length){if($new_pagination.length){$old_pagination.replaceWith($new_pagination);has_pagination=true;}else{$old_pagination.children().remove();}}else if($new_pagination.length){_paginationWrap.append($new_pagination);has_pagination=true;}}
if(is_infinite){var infinitescroll_ins=$posts_wrap.data('infinitescroll');if(has_pagination){var $new_posts_wrap=$res.find(is_archive?'.archive-posts .posts-wrap':'.posts-wrap');if($new_posts_wrap.data('cur_page')){$posts_wrap.data('cur_page',$new_posts_wrap.data('cur_page'));$posts_wrap.data('max_page',$new_posts_wrap.data('max_page'));}
var should_init_again=true;if(infinitescroll_ins){if(infinitescroll_ins.options.state.isDestroyed){$posts_wrap.removeData('infinitescroll');}else{should_init_again=false;if($new_posts_wrap.data('cur_page')){infinitescroll_ins.update({maxPage:$new_posts_wrap.data('max_page'),state:{currPage:$new_posts_wrap.data('cur_page')}});}
if(infinitescroll_ins.options.state.isPaused){infinitescroll_ins.resume();}}}
if(should_init_again){var ins=$posts_wrap.data('__postsinfinite');if(ins){ins.destroy();}
new theme.PostsInfinite($posts_wrap,'.'+post_type+', .timeline-date',$posts_wrap.data('infiniteoptions'),post_type);}
if(is_archive){var page_path=$posts_wrap.siblings('.pagination-wrap').find('.next').attr('href');if(page_path){page_path+=(-1!==page_path.indexOf('?')?'&':'?')+'portoajax=1&load_posts_only=2';page_path=page_path.replace(/(paged=)(\d+)|(page\/)(\d+)/,'$1$3%cur_page%');$posts_wrap.data('page_path',page_path);}}
new theme.PostsInfinite($posts_wrap,'.'+post_type+', .timeline-date',$posts_wrap.data('infiniteoptions'),post_type);}}
if(is_archive){$('.sidebar-content').each(function(index){var $this=$(this),$that=$($res.find('.sidebar-content').get(index));$this.html($that.html());if(is_shop){if(typeof updateSelect2!='undefined'&&updateSelect2){if(jQuery().selectWoo){var porto_wc_layered_nav_select=function(){$this.find('select.woocommerce-widget-layered-nav-dropdown').each(function(){$(this).selectWoo({placeholder:$(this).find('option').eq(0).text(),minimumResultsForSearch:5,width:'100%',allowClear:typeof $(this).attr('multiple')!='undefined'&&$(this).attr('multiple')=='multiple'?'false':'true'});});};porto_wc_layered_nav_select();}
$('body').children('span.select2-container').remove();}}});if(is_shop){var $script=$res.filter('script:contains("var woocommerce_price_slider_params")').first();if($script&&$script.length&&$script.text().indexOf('{')!==-1&&$script.text().indexOf('}')!==-1){var arrStr=$script.text().substring($script.text().indexOf('{'),$script.text().indexOf('}')+1);window.woocommerce_price_slider_params=JSON.parse(arrStr);}
var $title=$('.entry-title');if($title.length){var $newTitle=$res.find('.entry-title').eq(0);if($newTitle.length){$title.html($newTitle.html());}}
var $desc=$('.entry-description');if($desc.length){var $newDesc=$res.find('.entry-description').eq(0);if($newDesc.length){$desc.html($newDesc.html());}}
var shop_before='.shop-loop-before',$shop_before=$(shop_before);if($shop_before.length){if($res.find(shop_before).length){$shop_before.each(function(index){var $res_shop_before=$res.find(shop_before).eq(index);if($res_shop_before.length){$(this).html($res_shop_before.html()).show();}});}else{$shop_before.empty();}}
var $count=$('.woocommerce-result-count');if($count.length){var $newCount=$res.find('.woocommerce-result-count').eq(0);if($newCount.length){$count[0].outerHTML=$newCount.length?$newCount[0].outerHTML:'';}}
$(document).trigger('yith-wcan-ajax-filtered');}
if(page_url&&!navigator.userAgent.match(/msie/i)){window.history.pushState({'pageTitle':(res&&res.pageTitle)||''},'',page_url);}}
$(document.body).trigger('porto_load_posts_end',[$parent.parent()]);};if(typeof default_args=='undefined'&&typeof self.cache[pid]!='undefined'&&typeof self.cache[pid][cat+_gridcookie]!='undefined'&&self.cache[pid][cat+_gridcookie]){successfn(self.cache[pid][cat+_gridcookie],true);self.isLoading=false;$parent.removeClass('porto-ajax-loading').removeClass('loading').find('.porto-loading-icon').remove();return;}
var ajax_load_options=$parent.data('ajax_load_options');if(($parent.hasClass('archive-products')&&-1!=js_porto_vars.use_skeleton_screen.indexOf('shop'))||(is_archive&&-1!=js_porto_vars.use_skeleton_screen.indexOf('blog'))){$posts_wrap=$parent.find('.'+post_type+'s-container');if(ajax_load_options){var tag_name='div';if('product'==post_type&&'ul'==$posts_wrap.get(0).tagName.toLowerCase()){tag_name='li';}
$posts_wrap.addClass('skeleton-body').empty();for(var i=0;i<Number(ajax_load_options.count||(ajax_load_options.columns&&ajax_load_options.columns*3)||12);i++){$posts_wrap.append('<'+tag_name+' class="porto-tb-item post '+post_type+('product'==post_type?' product-col':'')+'"></'+tag_name+'>');}}else{$posts_wrap.addClass('skeleton-body').children().empty();}}else{if(!$parent.children('.porto-loading-icon').length){$parent.append('<i class="porto-loading-icon"></i>');}
$parent.addClass('porto-ajax-loading');}
var current_url=window.location.href;if(-1!==current_url.indexOf('#')){current_url=current_url.split('#')[0];}
var args,load_url=theme.ajax_url;if($parent.hasClass('archive-posts')){args={portoajax:true,load_posts_only:true};if($parent.closest('.porto-block').length){args['builder_id']=$parent.closest('.porto-block').data('id');}
load_url=typeof page_url!='undefined'?page_url:current_url;}else{args={action:'porto_ajax_posts',nonce:js_porto_vars.porto_nonce,post_type:post_type,current_link:current_url};if($parent.data('post_layout')){args['post_layout']=$parent.data('post_layout');}
if(ajax_load_options){args['extra']=ajax_load_options;}
if(typeof default_args!='undefined'){args=$.extend(args,default_args);}}
if(cat){args['category']=cat;}
$.ajax({url:load_url,type:'post',data:args,success:successfn,complete:function(){self.isLoading=false;$posts_wrap.removeClass('skeleton-body');$parent.removeClass('porto-ajax-loading').removeClass('loading').find('.porto-loading-icon').remove();}});}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{FilterZoom:{defaults:{elements:null},initialize:function($elements){this.$elements=($elements||this.defaults.elements);this.build();return this;},build:function(){var self=this;self.$elements.each(function(){var $this=$(this),zoom=$this.find('.zoom, .thumb-info-zoom').get(0);if(!zoom)return;$this.find('.zoom, .thumb-info-zoom').off('click');var links=[];var i=0;$this.find('article').each(function(){var $that=$(this);if($that.css('display')!='none'){var $zoom=$that.find('.zoom, .thumb-info-zoom'),slide,src=$zoom.data('src'),title=$zoom.data('title');$zoom.data('index',i);if(Array.isArray(src)){$.each(src,function(index,value){slide={};slide.src=value;slide.title=title[index];links[i]=slide;i++;});}else{slide={};slide.src=src;slide.title=title;links[i]=slide;i++;}}});$this.find('article').each(function(){var $that=$(this);if($that.css('display')!='none'){$that.off('click','.zoom, .thumb-info-zoom').on('click','.zoom, .thumb-info-zoom',function(e){var $zoom=$(this),$parent=$zoom.parents('.thumb-info'),offset=0;if($parent.get(0)){var $slider=$parent.find('.porto-carousel');if($slider.get(0)){offset=$slider.data('owl.carousel').current()-$slider.find('.cloned').length/2;}}
e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),$zoom.data('index')+offset);}
return false;});}});});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__parallax';var Mouseparallax=function($el,opts){return this.initialize($el,opts);};Mouseparallax.prototype={initialize:function($el,opts){this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},{wrapper:this.$el,opts:opts});return this;},build:function(){if(!$.fn.parallax){return this;}
var $el=this.options.wrapper,opts=this.options.opts
$el.parallax(opts);}};$.extend(theme,{Mouseparallax:Mouseparallax});$.fn.themeMouseparallax=function(opts){var obj=this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Mouseparallax($this,opts);}});return obj;}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__readmore';var PluginReadMore=function($el,opts){return this.initialize($el,opts);};PluginReadMore.defaults={buttonOpenLabel:'Read More <i class="fas fa-chevron-down text-2 ms-1"></i>',buttonCloseLabel:'Read Less <i class="fas fa-chevron-up text-2 ms-1"></i>',enableToggle:true,maxHeight:300,overlayColor:'#43a6a3',overlayHeight:100,startOpened:false,align:'left'};PluginReadMore.prototype={initialize:function($el,opts){var self=this;this.$el=$el;this.setData().setOptions(opts).build().events().resize();if(self.options.startOpened){self.options.wrapper.find('.readmore-button-wrapper > button').trigger('click');}
return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginReadMore.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this;self.options.wrapper.addClass('position-relative');self.options.wrapper.append('<div class="readmore-overlay"></div>');var backgroundCssValue='linear-gradient(180deg, rgba(2, 0, 36, 0) 0%, '+self.options.overlayColor+' 100%)';if($('html').hasClass('safari')){backgroundCssValue='-webkit-linear-gradient(top, rgba(2, 0, 36, 0) 0%, '+self.options.overlayColor+' 100%)'}
self.options.wrapper.find('.readmore-overlay').css({background:backgroundCssValue,position:'absolute',bottom:0,left:0,width:'100%',height:self.options.overlayHeight,'z-index':1});self.options.wrapper.find('.readmore-button-wrapper').removeClass('d-none').css({position:'absolute',bottom:0,left:0,width:'100%','z-index':2});self.options.wrapper.find('.readmore-button-wrapper > button').html(self.options.buttonOpenLabel);self.options.wrapper.css({'height':self.options.maxHeight,'overflow-y':'hidden'});switch(self.options.align){case'center':self.options.wrapper.find('.readmore-button-wrapper').addClass('text-center');break;case'right':self.options.wrapper.find('.readmore-button-wrapper').addClass('text-end');break;case'left':default:self.options.wrapper.find('.readmore-button-wrapper').addClass('text-start');break;}
return this;},events:function(){var self=this;self.readMore=function(){self.options.wrapper.find('.readmore-button-wrapper > button:not(.readless)').on('click',function(e){e.preventDefault();self.options.wrapper.addClass('opened');var $this=$(this);setTimeout(function(){self.options.wrapper.animate({'height':self.options.wrapper[0].scrollHeight},function(){if(!self.options.enableToggle){$this.fadeOut();}
$this.html(self.options.buttonCloseLabel).addClass('readless').off('click');self.readLess();self.options.wrapper.find('.readmore-overlay').fadeOut();self.options.wrapper.css({'max-height':'none','overflow':'visible'});self.options.wrapper.find('.readmore-button-wrapper').animate({bottom:-20});});},200);});}
self.readLess=function(){self.options.wrapper.find('.readmore-button-wrapper > button.readless').on('click',function(e){e.preventDefault();self.options.wrapper.removeClass('opened');var $this=$(this);self.options.wrapper.find('.readmore-button-wrapper').animate({bottom:0});self.options.wrapper.find('.readmore-overlay').fadeIn();setTimeout(function(){self.options.wrapper.height(self.options.wrapper[0].scrollHeight).animate({'height':self.options.maxHeight},function(){$this.html(self.options.buttonOpenLabel).removeClass('readless').off('click');self.readMore();self.options.wrapper.css({'overflow':'hidden'});});},200);});}
self.readMore();return this;},resize:function(){var self=this;window.addEventListener('resize',function(){self.options.wrapper.hasClass('opened')?self.options.wrapper.css({'height':'auto'}):self.options.wrapper.css({'height':self.options.maxHeight});})}};$.extend(theme,{PluginReadMore:PluginReadMore});$.fn.themePluginReadMore=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginReadMore($this,$this.data('plugin-options'));}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__mousehoversplit';var PluginHoverSplit=function($el){return this.initialize($el);}
PluginHoverSplit.prototype={initialize:function($el){if($el.data(instanceName)){return this;}
this.$el=$el.addClass('slide-wrapper');this.setData().event();return this;},setData:function(){this.$el.data(instanceName,this);this.$el.addClass('initialized');var $columns=this.$el.find('>.split-slide');for(var index=0;index<$columns.length;index++){var column=$columns[index];if(index==0){column.classList.add('slide-left');this.left=column;}else if(index==1){column.classList.add('slide-right');break;}}
return this;},event:function(){this.refresh();this.refreshFunc=this.refresh.bind(this);$(window).on('resize',this.refreshFunc);this.handleMoveFunc=this.handleMove.bind(this);$(document.body).on('mousemove',this.handleMoveFunc);},handleMove:function(e){if(e.clientX<this.$el.offset().left){this.left.style.width='0';}else{this.left.style.width=`calc( ${ ( e.clientX - this.$el.offset().left ) / ( this.$el.innerWidth() ) * 100 }% - 3px ) `;}},refresh:function(e){if(e&&e.type=='resize'){this.$el.css('min-height',$(this.left).height());}
this.$el.find('>.split-slide>*').css('width',this.$el.innerWidth());},clearData:function(){this.$el.removeClass('slide-wrapper').removeData(instanceName).css('min-height','');this.$el.find('>*').removeClass('slide-left slide-right').css('width','');$(window).off('resize',this.refreshFunc);$(document.body).off('mousemove',this.handleMoveFunc);}}
$.extend(theme,{PluginHoverSplit:PluginHoverSplit});$.fn.themePluginHoverSplit=function(){return this.map(function(){var $this=$(this),$splitColumns=$this.find('>.split-slide');if($splitColumns.length>=2){if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginHoverSplit($this);}}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__horizontalscroller';var PluginHScroller=function($el,opts){return this.initialize($el,opts);}
PluginHScroller.defaults={lg:3,md:1,init_refresh:false,};PluginHScroller.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData(opts).build().event();return this;},setData:function(opts){this.$el.data(instanceName,this);this.options=$.extend(true,{},PluginHScroller.defaults,opts);this.$hScroller=this.$el.find('.horizontal-scroller');this.$hScrollerItems=this.$hScroller.find('.horizontal-scroller-items');this.$hScrollerItems.find('>*').addClass('horizontal-scroller-item');return this;},build:function(){this.originalScrollHTML=this.$hScroller.html();this.scrollerInitialized=false;return this;},generateScroller:function(){var items=gsap.utils.toArray(this.$hScrollerItems.find('.horizontal-scroller-item'));gsap.to(items,{xPercent:-100*(items.length-($(window).width()>991?this.options.lg:this.options.md)),ease:'none',scrollTrigger:{trigger:'.horizontal-scroller',pin:true,scrub:1,snap:1/(items.length-1),end:()=>'+='+this.$hScrollerItems.width(),el:this.$el,}});this.scrollerInitialized=true;},event:function(){if(this.options.init_refresh){this.generateScroller();}
this.scrollFunc=this.scroll.bind(this);$(window).on('scroll',this.scrollFunc);this.afterResizeFunc=this.afterResize.bind(this);$(window).on('afterResize',this.afterResizeFunc);},scroll:function(){if(!this.scrollerInitialized){var position=this.$el[0].getBoundingClientRect();if(position.top>=0&&position.top<window.innerHeight&&position.bottom>=0){this.generateScroller();}}},afterResize:function(){this.scrollerInitialized=false;var Alltrigger=ScrollTrigger.getAll();for(var i=0;i<Alltrigger.length;i++){if(Alltrigger[i]['vars']&&typeof Alltrigger[i]['vars']['el']!='undefined'&&Alltrigger[i]['vars']['el']==this.$el){Alltrigger[i].kill(true);this.$el.empty().html('<div class="horizontal-scroller">'+this.originalScrollHTML+'</div>');this.$hScrollerItems=this.$el.find('.horizontal-scroller-items');break;}}},clearData:function(){this.$el.removeData(instanceName);$(window).off('scroll',this.scrollFunc);$(window).off('afterResize',this.afterResizeFunc);}};$.extend(theme,{PluginHScroller:PluginHScroller});$.fn.themePluginHScroller=function(opt=false){if(typeof gsap!=='undefined'&&typeof ScrollTrigger!=='undefined'){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{if($this.find('.horizontal-scroller-items>*').length){options=$this.data('plugin-hscroll');if(opt){options['init_refresh']=true;}
return new PluginHScroller($this,options);}}});}else{return false;}}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__textelfloating';var PluginTElFloaing=function($el,opts){return this.initialize($el,opts);};PluginTElFloaing.defaults={offset:0,};PluginTElFloaing.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData(opts).event();return this;},setData:function(opts){this.options=$.extend(true,{},PluginTElFloaing.defaults,opts);this.$el.data(instanceName,this);return this;},event:function(){this.mouseEnterFunc=this.mouseEnter.bind(this);this.$el.on('mouseenter',this.mouseEnterFunc);this.mouseOutFunc=this.mouseOut.bind(this);this.$el.on('mouseleave',this.mouseOutFunc);},mouseEnter:function(e){$('.thumb-info-floating-element-clone').remove();var $thumbFloatingEl=$('.thumb-info-floating-element',this.$el);if($thumbFloatingEl.length){this.$elClone=$thumbFloatingEl.clone().addClass('thumb-info-floating-element-clone').removeClass('d-none').appendTo(document.body);}else if(this.$el.hasClass('tb-hover-content')&&this.$el.children().length>0){if(this.$el.hasClass('with-link')){$thumbFloatingEl=this.$el.children(':nth-child(2)');}else{$thumbFloatingEl=this.$el.children(':first');}
this.$elClone=$thumbFloatingEl.clone().addClass('thumb-tb-floating-el').appendTo(document.body).wrap('<div class="thumb-info-floating-element-clone page-wrapper"></div>');}else{return;}
$imgs=$('.thumb-info-floating-element-clone').find('img.porto-lazyload');$imgs.each(function(index,img){var $img=$(img);if($img.length&&$img.data('oi')){$img.attr('src',$img.data('oi')).addClass('lazy-load-loaded');}});$('.thumb-info-floating-element-clone').css({left:e.clientX+parseInt(this.options.offset),top:e.clientY+parseInt(this.options.offset)}).fadeIn(300);gsap.to('.thumb-info-floating-element-clone',1,{css:{scaleX:1,scaleY:1}});this.mouseMoveFunc=this.mouseMove.bind(this);$(document.body).on('mousemove',this.mouseMoveFunc);},mouseMove:function(e){if(this.$elClone.length&&this.$elClone.closest('html').length){gsap.to('.thumb-info-floating-element-clone',0.5,{css:{left:e.clientX+parseInt(this.options.offset),top:e.clientY+parseInt(this.options.offset)}});}},mouseOut:function(e){if(this.$elClone.length&&this.$elClone.closest('html').length){gsap.to('.thumb-info-floating-element-clone',0.5,{css:{scaleX:0.5,scaleY:0.5,opacity:0}});}},clearData:function(e){this.$elClone.remove();this.$el.off('mouseenter',this.mouseEnterFunc);this.$el.off('mouseout',this.mouseOutFunc);$(document.body).off('mousemove',this.mouseMoveFunc);}}
$.extend(theme,{PluginTElFloaing:PluginTElFloaing});$.fn.themePluginTIFloating=function(){if(typeof gsap!=='undefined'){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginTElFloaing($this,$this.data('plugin-tfloating'));}});}else{return false;}}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme.initAsync=function($wrap,wrapObj){if($.fn.themeAnimate&&typeof wrapObj!='undefined'){$(function(){var svgAnimates=wrapObj.querySelectorAll('svg [data-appear-animation]');if(svgAnimates.length){$(svgAnimates).closest('svg').attr('data-appear-animation-svg','1');}
var $animates=wrapObj.querySelectorAll('[data-plugin-animate], [data-appear-animation], [data-appear-animation-svg]');if($animates.length){var animateResize=function(){if(window.innerWidth<768){window.removeEventListener('resize',animateResize);$animates.forEach(function(o){o.classList.add('appear-animation-visible');});}};if(theme.animation_support){window.addEventListener('resize',animateResize);theme.dynIntObsInit($animates,'themeAnimate',theme.Animate.defaults);}else{$animates.forEach(function(o){o.classList.add('appear-animation-visible');});}}});}
if($.fn.themePluginAnimatedLetters){if($('[data-plugin-animated-letters]').length||$('.animated-letters').length){theme.intObs('[data-plugin-animated-letters]:not(.manual), .animated-letters','themePluginAnimatedLetters');}
if($('[data-plugin-animated-words]').length||$('.animated-words').length){theme.intObs('[data-plugin-animated-words]:not(.manual), .animated-words','themePluginAnimatedLetters');}}
if($.fn.themeCarousel){$(function(){var portoImgNavMiddle=function($el){var $images=$el.find('.owl-item img'),height=0;for(var i=0;i<$images.length;i++){var imgHeight=$images.eq(i).height();if(height<imgHeight){height=imgHeight;}}
if($el.hasClass('products-slider')){$el.children('.owl-nav').css('top',(5+height/2)+'px');}else{$el.children('.owl-nav').css('top',height/2+'px');}};var portoCarouselInit=function(e){var $this=$(e.currentTarget);$this.find('[data-appear-animation]:not(.appear-animation)').addClass('appear-animation');if($this.find('.owl-item.cloned').length){var $not_loaded=$this.find('img.lazy:not(.loaded)');if($not_loaded.length){if(typeof window.w3tc_lazyload=='object'){window.w3tc_lazyload.update();}else if(theme.w3tcLazyLoadInstance){theme.w3tcLazyLoadInstance.update();}}
$this.find('.porto-lazyload:not(.lazy-load-loaded)').themePluginLazyLoad({effect:'fadeIn',effect_speed:400});var $animates=e.currentTarget.querySelectorAll('.appear-animation');if($animates.length){if(theme.animation_support){theme.dynIntObsInit($animates,'themeAnimate',theme.Animate.defaults);}else{$animates.forEach(function(o){o.classList.add('appear-animation-visible');});}}
if($.fn.themePluginAnimatedLetters&&($(this).find('.owl-item.cloned [data-plugin-animated-letters]:not(.manual)').length)){theme.dynIntObsInit($(this).find('.owl-item.cloned [data-plugin-animated-letters]:not(.manual)'),'themePluginAnimatedLetters');}}
setTimeout(function(){var $hiddenItems=$this.find('.owl-item:not(.active)');if(theme.animation_support){$hiddenItems.find('.appear-animation').removeClass('appear-animation-visible');$hiddenItems.find('.appear-animation').each(function(){var $el=$(this),delay=Math.abs($el.data('appear-animation-delay')?$el.data('appear-animation-delay'):0);if(delay>1){this.style.animationDelay=delay+'ms';}
var duration=Math.abs($el.data('appear-animation-duration')?$el.data('appear-animation-duration'):1000);if(1000!=duration){this.style.animationDuration=duration+'ms';}});}
if(window.innerWidth>=1200){$hiddenItems.find('[data-vce-animate]').removeAttr('data-vcv-o-animated');}
if($this.hasClass('nav-center-images-only')){portoImgNavMiddle($this);}},300);};var portoCarouselTranslated=function(e){var $this=$(e.currentTarget);var $active=$this.find('.owl-item.active');if($active.hasClass('translating')){$active.removeClass('translating');return;}
$this.find('.owl-item.translating').removeClass('translating');$this.find('[data-plugin-animated-letters]').removeClass('invisible');$this.find('.owl-item.active [data-plugin-animated-letters]').trigger('animated.letters.initialize');if(window.innerWidth>767){$this.find('.appear-animation').removeClass('appear-animation-visible');$active.find('.appear-animation').each(function(){var $animation_item=$(this),anim_name=$animation_item.data('appear-animation');$animation_item.addClass(anim_name+' appear-animation-visible');});}
if(window.innerWidth>991){if($this.closest('[data-plugin-sticky]').length){theme.refreshStickySidebar(false,$this.closest('[data-plugin-sticky]'));}}
$active.find('.slide-animate').each(function(){var $animation_item=$(this),settings=$animation_item.data('settings');if(settings&&(settings._animation||settings.animation)){var animation=settings._animation||settings.animation,delay=settings._animation_delay||settings.animation_delay||0;theme.requestTimeout(function(){$animation_item.removeClass('elementor-invisible').addClass('animated '+animation);},delay);}});if(window.innerWidth>=1200){$this.find('[data-vce-animate]').removeAttr('data-vcv-o-animated').removeAttr('data-vcv-o-animated-fully');$active.find('[data-vce-animate]').each(function(){var $animation_item=$(this);if($animation_item.data('porto-origin-anim')){var anim_name=$animation_item.data('porto-origin-anim');$animation_item.attr('data-vce-animate',anim_name).attr('data-vcv-o-animated',true);var duration=parseFloat(window.getComputedStyle(this)['animationDuration'])*1000,delay=parseFloat(window.getComputedStyle(this)['animationDelay'])*1000;window.setTimeout(function(){$animation_item.attr('data-vcv-o-animated-fully',true);},delay+duration+5);}});}};var portoCarouselTranslateVC=function(e){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');if(window.innerWidth>=1200){$this.find('[data-vce-animate]').each(function(){var $animation_item=$(this);$animation_item.data('porto-origin-anim',$animation_item.data('vce-animate')).attr('data-vce-animate','');});}};var portoCarouselTranslateElementor=function(e){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');$this.find('.owl-item:not(.active) .slide-animate').addClass('elementor-invisible');$this.find('.slide-animate').each(function(){var $animation_item=$(this),settings=$animation_item.data('settings');if(settings._animation||settings.animation){$animation_item.removeClass(settings._animation||settings.animation);}});};var portoCarouselTranslateWPB=function(e){if(window.innerWidth>767){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');$this.find('.appear-animation').each(function(){var $animation_item=$(this);$animation_item.removeClass($animation_item.data('appear-animation'));});}};var carouselItems=$wrap.find('.owl-carousel:not(.manual)');carouselItems.on('initialized.owl.carousel refreshed.owl.carousel',portoCarouselInit).on('translated.owl.carousel',portoCarouselTranslated);carouselItems.on('translate.owl.carousel',function(){$(this).find('[data-plugin-animated-letters]').addClass('invisible');$(this).find('[data-plugin-animated-letters]').trigger('animated.letters.destroy');});carouselItems.on('resized.owl.carousel',function(){var $this=$(this);if($this.hasClass('nav-center-images-only')){portoImgNavMiddle($this);}})
carouselItems.filter(function(){if($(this).find('[data-vce-animate]').length){return true;}
return false;}).on('translate.owl.carousel',portoCarouselTranslateVC);carouselItems.filter(function(){var $anim_obj=$(this).find('.elementor-invisible');if($anim_obj.length){$anim_obj.addClass('slide-animate');return true;}
return false;}).on('translate.owl.carousel',portoCarouselTranslateElementor);carouselItems.filter(function(){if($(this).find('.appear-animation, [data-appear-animation]').length){return true;}
return false;}).on('translate.owl.carousel',portoCarouselTranslateWPB);$wrap.find('[data-plugin-carousel]:not(.manual), .porto-carousel:not(.manual)').each(function(){var $this=$(this),opts;if($this.closest('.tab-pane').length&&!$this.closest('.tab-pane').hasClass('active')){return;}
if($this.closest('.e-n-tabs-content > .e-con').length&&!$this.closest('.e-n-tabs-content > .e-con').hasClass('e-active')){return;}
var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;setTimeout(function(){$this.themeCarousel(opts);},0);});});}
$wrap.find('.thumb-gallery-thumbs, .thumbnail-gallery').each(function(){var $thumbs=$(this),$detail=$thumbs.parent().find('.thumb-gallery-detail'),flag=false,duration=300;if($thumbs.data('initThumbs'))
return;$detail.on('changed.owl.carousel',function(e){if(!flag){flag=true;var len=$detail.find('.owl-item').length,cloned=$detail.find('.cloned').length;if(len){$thumbs.find('.owl-item.selected').removeClass('selected');$thumbs.find('.owl-item').eq((e.item.index-cloned/2)%len).addClass('selected');$thumbs.trigger('to.owl.carousel',[(e.item.index-cloned/2-1)%len,duration,true]);}
flag=false;}});$thumbs.on('changed.owl.carousel',function(e){if(!flag){flag=true;var len=$thumbs.find('.owl-item').length,cloned=$thumbs.find('.cloned').length;if(len){$thumbs.find('.owl-item.selected').removeClass('selected');$thumbs.find('.owl-item').eq(e.item.index).addClass('selected');$detail.trigger('to.owl.carousel',[(e.item.index-cloned/2)%len,duration,true]);}
flag=false;}}).on('click','.owl-item',function(){if(!flag){flag=true;var len=$thumbs.find('.owl-item').length,cloned=$thumbs.find('.cloned').length;if(len){$thumbs.find('.owl-item.selected').removeClass('selected');$(this).addClass('selected');$detail.trigger('to.owl.carousel',[($(this).index()-cloned/2)%len,duration,true]);}
flag=false;}}).data('initThumbs',true);});$wrap.find('.video-fixed').each(function(){var $this=$(this),$video=$this.find('video, iframe');if($video.length){window.addEventListener('scroll',function(){var offset=$(window).scrollTop()-$this.position().top+theme.adminBarHeight();$video.css("cssText","top: "+offset+"px !important;");},{passive:true});}});setTimeout(function(){if(typeof theme.Search!=='undefined'){theme.Search.initialize();}},0);};$(document.body).trigger('porto_async_init');}).apply(this,[window.theme,jQuery]);jQuery(document).ready(function($){'use strict';if($.fn.themeVcImageZoom){$(function(){var $galleryParent=null;$('.porto-vc-zoom:not(.manual)').each(function(){var $this=$(this),opts,gallery=$this.attr('data-gallery');var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;if(typeof opts=="undefined"){opts={};}
opts.container=$this.parent();if(gallery=='true'){var container='vc_row';if($this.attr('data-container'))
container=$this.attr('data-container');var $parent=$($this.closest('.'+container).get(0));if($parent.length>0&&$galleryParent!=null&&$galleryParent.is($parent)){return;}else if($parent.length>0){$galleryParent=$parent;}
if($galleryParent!=null&&$galleryParent.length>0){opts.container=$galleryParent;}}
$this.themeVcImageZoom(opts);});});}
function porto_modal_open($this){var trigger=$this.data('trigger-id'),overlayClass=$this.data('overlay-class'),extraClass=$this.data('extra-class')?$this.data('extra-class'):'',type=$this.data('type');if(typeof trigger!='undefined'){if(typeof type=='undefined'){type='inline';}
if(type=='inline'){trigger='#'+escape(trigger);}
var args={items:{src:trigger},type:type,mainClass:extraClass};var $popupModal=$this;if($this.hasClass('porto-onload')){args['callbacks']={'beforeClose':function(){if($('.mfp-wrap .porto-disable-modal-onload').length&&($('.mfp-wrap .porto-disable-modal-onload').is(':checked')||$('.mfp-wrap .porto-disable-modal-onload input[type="checkbox"]').is(':checked'))){$.cookie('porto_modal_disable_onload','true',{expires:7});}else if('undefined'!==typeof $popupModal.data('expired')&&'undefined'!==typeof $popupModal.data('popup-id')){$.cookie('porto_modal_disable_period_onload_'+$popupModal.data('popup-id'),$popupModal.data('expired'),{expires:$popupModal.data('expired')});}},'afterClose':function(){if($('#header .minicart-opened').length){$('html').css(theme.rtl_browser?'margin-left':'margin-right',theme.getScrollbarWidth());$('html').css('overflow','hidden');}},'open':function(){var $popup_builder=$('.mfp-wrap .porto-block[data-bs-original-title]');if($popup_builder.length){bootstrap.Tooltip.getInstance($popup_builder[0]).update();}}};}
if(typeof overlayClass!="undefined"&&overlayClass){args.mainClass+=escape(overlayClass);}
setTimeout(()=>{$.magnificPopup.open($.extend(true,{},theme.mfpConfig,args),0);});}}
function porto_init_magnific_popup_functions($wrap){if(typeof $wrap=='undefined'||!$wrap.length){$wrap=$(document.body);}
$wrap.find('.lightbox:not(.manual)').each(function(){var $this=$(this),opts;if($this.find('>.lb-dataContainer').length){return;}
var pluginOptions=$this.data('lightbox-options');if(pluginOptions){opts=pluginOptions;}else{pluginOptions=$this.data('plugin-options');if(typeof pluginOptions!='object'){pluginOptions=JSON.parse(pluginOptions);}
if(pluginOptions){opts=pluginOptions;}}
$this.themeLightbox(opts);});$wrap.find('.porto-popup-iframe').magnificPopup($.extend(true,{},theme.mfpConfig,{disableOn:700,type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:false}));$wrap.find('.porto-popup-ajax').magnificPopup($.extend(true,{},theme.mfpConfig,{type:'ajax'}));$wrap.find('.porto-popup-content').each(function(){var animation=$(this).attr('data-animation');$(this).magnificPopup($.extend(true,{},theme.mfpConfig,{type:'inline',fixedContentPos:false,fixedBgPos:true,overflowY:'auto',closeBtnInside:true,preloader:false,midClick:true,removalDelay:300,mainClass:animation}));});$wrap.find('.popup-youtube, .popup-vimeo, .popup-gmaps').each(function(index){var overlayClass=$(this).find('.porto-modal-trigger').data('overlay-class'),args={type:'iframe',removalDelay:160,preloader:false,fixedContentPos:false};if(typeof overlayClass!="undefined"&&overlayClass){args.mainClass=escape(overlayClass);}
$(this).magnificPopup(args);});if($wrap.find('.porto-modal-trigger.porto-onload').length){var $obj=$wrap.find('.porto-modal-trigger.porto-onload').eq(0),timeout=0;if($obj.data('timeout')){timeout=parseInt($obj.data('timeout'),10);}
setTimeout(function(){porto_modal_open($obj);},timeout);}
$wrap.on('click','.porto-modal-trigger',function(e){e.preventDefault();porto_modal_open($(this));});if($wrap.hasClass('login-popup')){$wrap.find('.porto-link-login, .porto-link-register').magnificPopup({items:{src:theme.ajax_url+(-1===theme.ajax_url.indexOf('?')?'?':'&')+'action=porto_account_login_popup&nonce='+js_porto_vars.porto_nonce,type:'ajax'},tLoading:'<i class="porto-loading-icon"></i>',callbacks:{ajaxContentAdded:function(){$(window).trigger('porto_login_popup_opened');}}});}
if(typeof PhotoSwipe!='undefined'){let _images=$wrap.find('.product-images'),links=[],i=0;_images.find('img').each(function(){var slide={};slide.src=$(this).attr('href');slide.title=$(this).attr('alt');slide.w=parseInt($(this).attr('data-large_image_width'));slide.h=parseInt($(this).attr('data-large_image_height'));links[i]=slide;i++;});_images.data('links',links);_images.on('click','.img-thumbnail a.zoom',function(e){e.preventDefault();var options=$.extend({index:$(this).closest('.img-thumbnail').index(),addCaptionHTMLFn:function(item,captionEl){if(!item.title){captionEl.children[0].textContent='';return false;}
captionEl.children[0].textContent=item.title;return true;}},wc_single_product_params.photoswipe_options);var photoswipe=new PhotoSwipe($('.pswp')[0],PhotoSwipeUI_Default,_images.data('links'),options);photoswipe.init();});}else{$wrap.find('.product-images').magnificPopup($.extend(true,{},theme.mfpConfig,{delegate:'.img-thumbnail a.zoom',type:'image',gallery:{enabled:true}}));}
$wrap.find('.porto-posts-grid').each(function(){$(this).magnificPopup($.extend(true,{},theme.mfpConfig,{delegate:'.porto-tb-featured-image span.zoom, .porto-tb-featured-image a.zoom, .post-image span.zoom',type:'image',gallery:{enabled:true}}));});$wrap.find('.porto-posts-grid .tb-image-type-slider div.zoom').each(function(){var $this=$(this),links=[];$this.find('a').each(function(){var slide={};slide.src=$(this).attr('href');slide.title=$(this).attr('title');links.push(slide);});if(links.length){$this.on('click',function(){var $slider=$this.siblings('.porto-carousel');if($slider.length){var offset=$slider.data('owl.carousel').current()-$slider.find('.cloned').length/2;$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),offset);}});}});}
if($.fn.magnificPopup){porto_init_magnific_popup_functions();}else{setTimeout(function(){if($.fn.magnificPopup){porto_init_magnific_popup_functions();}},500);}
$(document.body).on('porto_load_posts_end',function(e,$posts_wrap){if($.fn.magnificPopup){porto_init_magnific_popup_functions($posts_wrap);}});if(typeof theme.PostFilter!=='undefined'){var $postFilterElements=$('ul[data-filter-type], .portfolio-filter, .member-filter, .faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter');if($postFilterElements.length){theme.PostFilter.initialize($postFilterElements);}}
$('body').on('click','.porto-ajax-load .pagination:not(.load-more) .page-numbers',function(e){var $this=$(this);if($this.hasClass('current')||$this.hasClass('dots')){return;}
e.preventDefault();var $wrap=$this.closest('.porto-ajax-load'),post_type=$wrap.data('post_type'),$obj=$wrap.find('.'+post_type+'s-container');if(!$obj.length||$wrap.hasClass('loading')){return;}
$wrap.addClass('loading');var $filter=$wrap.find('.porto-ajax-filter'),cat=$filter.length&&$filter.children('.active').length&&$filter.children('.active').data('filter');if('*'==cat){cat='';}
var default_args={},page=$this.attr('href').match(/paged=(\d+)|page\/(\d+)/);if(page&&Array.isArray(page)&&(page[1]||page[2])){default_args['page']=parseInt(page[1]||page[2]);}else{if($this.hasClass('prev')){default_args['page']=parseInt($this.next().text());}else if($this.hasClass('next')){default_args['page']=parseInt($this.prev().text());}else{default_args['page']=parseInt($this.text());}}
if(cat==''&&$wrap.find('input[type=hidden].category').length){cat=$wrap.find('input[type=hidden].category').val();default_args['taxonomy']=$wrap.find('input[type=hidden].taxonomy').val();}
theme.PostFilter.load_posts(cat,$wrap.hasClass('load-infinite'),$wrap,post_type,$obj,default_args,$this.attr('href'));});if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-portfolios'));theme.FilterZoom.initialize($('.page-members'));theme.FilterZoom.initialize($('.blog-posts-related'));}
function portoSetHoverImage($this,enter=true){var $item=$this.find('[data-hoverlay-image]'),$postsGrid=$this.closest('.porto-posts-grid');if($item.length){var $target=$postsGrid.find('#himg-'+$item.data('hoverlay-id'));if(enter){$target.addClass('active');$postsGrid.addClass('active');}else{$target.removeClass('active');$postsGrid.removeClass('active');}}}
function InsertHoverImage($this){var $option=$this.data('hoverlay-image'),$postsGrid=$this.closest('.porto-posts-grid'),$postsWrap=$this.closest('.posts-wrap');$postsGrid.append('<div class="thumb-info-full" style="background-image: url('+$option.src+'); --porto-himg-height:'+$postsWrap.innerHeight()+'px;" id="himg-'+$option.id+'"></div>');$postsGrid.addClass('image-hover-overlay');if($postsWrap.hasClass('owl-carousel')){$postsWrap.on('refreshed.owl.carousel resized.owl.carousel',function(){$postsGrid.find('.thumb-info-full').css('--porto-himg-height',($postsWrap.innerHeight()+'px'));})}else{$(window).on('resize',function(){$postsGrid.find('.thumb-info-full').css('--porto-himg-height',($postsWrap.innerHeight()+'px'));});}
$('.image-hover-overlay').on('mouseenter touchstart','.porto-tb-item',function(e){portoSetHoverImage($(this));});$('.image-hover-overlay').on('mouseleave touchend','.porto-tb-item',function(e){portoSetHoverImage($(this),false);});}
$.extend(theme,{InsertHoverImage:InsertHoverImage});$('.porto-posts-grid [data-hoverlay-image]').each(function(){theme.InsertHoverImage($(this));});var $minicart_offcanvas=$('.minicart-offcanvas'),$wl_offcanvas=$('.wishlist-offcanvas'),$mobile_sidebar=$('.mobile-sidebar'),$mobile_panel=$('#side-nav-panel'),$overlay_search=$('#header .btn-close-search-form'),$html=$('html');if($minicart_offcanvas.length||$wl_offcanvas.length||$mobile_sidebar.length||$mobile_panel.length||$('.skeleton-loading').length||$overlay_search.length){$(document.documentElement).on('keyup',function(e){try{if(e.keyCode==27){$minicart_offcanvas.removeClass('minicart-opened');$wl_offcanvas.removeClass('minicart-opened');if($mobile_sidebar.length){$html.removeClass('filter-sidebar-opened');$html.removeClass('sidebar-opened');$('.sidebar-overlay').removeClass('active');$('html').css('overflow','');$('html').css(theme.rtl_browser?'margin-left':'margin-right','');}
if($mobile_panel.length&&$html.hasClass('panel-opened')){$html.removeClass('panel-opened');$('.panel-overlay').removeClass('active');}
if($overlay_search.length){$overlay_search.trigger('click');}}}catch(err){}});$('.skeleton-loading').on('skeleton-loaded',function(){$mobile_sidebar=$('.mobile-sidebar');});}
if($.fn.themeMouseparallax){$(function(){$('[data-plugin="mouse-parallax"]').each(function(){var $this=$(this),opts;if($this.data('parallax')){$this.parallax('disable');$this.removeData('parallax');$this.removeData('options');}
if($this.hasClass('elementor-element')){$this.children('.elementor-widget-container, .elementor-container, .elementor-widget-wrap, .elementor-column-wrap').addClass('layer').attr('data-depth',$this.attr('data-floating-depth'));}else{$this.children('.layer').attr('data-depth',$this.attr('data-floating-depth'));}
var pluginOptions=$this.data('options');if(pluginOptions)
opts=pluginOptions;$this.themeMouseparallax(opts);});});}
if($.fn['themePluginReadMore']&&$('[data-plugin-readmore]').length){$('[data-plugin-readmore]:not(.manual)').themePluginReadMore();}
if($.fn.themePluginHoverSplit){$('.mouse-hover-split').each(function(){var $this=$(this),$splitSlide=$this.find('>.split-slide');if($splitSlide.length>=2){$this.themePluginHoverSplit();}});}
if($.fn.themePluginHScroller){$('.horizontal-scroller-wrapper').each(function(){$(this).themePluginHScroller(true);});}
if($.fn.themePluginTIFloating){$('.thumb-info-floating-element-wrapper[data-plugin-tfloating]').each(function(){$(this).themePluginTIFloating();});}});(function(theme,$){if($('.wishlist-popup').length){var worker=null;$('.wishlist-offcanvas .my-wishlist').on('click',function(e){e.preventDefault();var $this=$(this);$this.parent().toggleClass('minicart-opened');if($this.parent().hasClass('minicart-opened')){$('html').css(theme.rtl_browser?'margin-left':'margin-right',theme.getScrollbarWidth());$('html').css('overflow','hidden');}else{$('html').css('overflow','');$('html').css(theme.rtl_browser?'margin-left':'margin-right','');}});$('.wishlist-offcanvas .minicart-overlay').on('click',function(){$(this).closest('.wishlist-offcanvas').removeClass('minicart-opened');$('html').css('overflow','');$('html').css(theme.rtl_browser?'margin-left':'margin-right','');});var init_wishlist=function(){worker=new Worker(js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/woocommerce-worker.js'));worker.onmessage=function(e){$('.wishlist-popup').html(e.data);};worker.postMessage({initWishlist:true,ajaxurl:theme.ajax_url,nonce:js_porto_vars.porto_nonce});};if(theme&&theme.isLoaded){setTimeout(function(){init_wishlist();},100);}else{$(window).on('load',function(){init_wishlist();});}
$('.wishlist-popup').on('click','.remove_from_wishlist',function(e){e.preventDefault();var $this=$(this),id=$this.attr('data-product_id'),$table=$('.wishlist_table #yith-wcwl-row-'+id+' .remove_from_wishlist');$this.closest('.wishlist-item').find('.ajax-loading').show();if($table.length){$table.trigger('click');}else{if(typeof yith_wcwl_l10n!=='undefined'){$.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:yith_wcwl_l10n.actions.remove_from_wishlist_action,remove_from_wishlist:id,nonce:typeof yith_wcwl_l10n.nonce!=='undefined'?yith_wcwl_l10n.nonce.remove_from_wishlist_nonce:'',from:'theme'},method:'post',success:function(data){var $wcwlWrap=$('.yith-wcwl-add-to-wishlist.add-to-wishlist-'+id);if($wcwlWrap.length){var fragmentOptions=$wcwlWrap.data('fragment-options'),$link=$wcwlWrap.find('a');if($link.length){if(fragmentOptions.in_default_wishlist){delete fragmentOptions.in_default_wishlist;$wcwlWrap.attr(JSON.stringify(fragmentOptions));}
$wcwlWrap.removeClass('exists');$wcwlWrap.find('.yith-wcwl-wishlistexistsbrowse').addClass('yith-wcwl-add-button').removeClass('yith-wcwl-wishlistexistsbrowse');$wcwlWrap.find('.yith-wcwl-wishlistaddedbrowse').addClass('yith-wcwl-add-button').removeClass('yith-wcwl-wishlistaddedbrowse');$link.attr('href',location.href+(-1===location.href.indexOf('?')?'?':'&')+'post_type=product&amp;add_to_wishlist='+id).attr('data-product-id',id).attr('data-product-type',fragmentOptions.product_type);var text=$('.single_add_to_wishlist').data('title');if(!text){text='Add to wishlist';}
$link.attr('title',text).attr('data-title',text).addClass('add_to_wishlist single_add_to_wishlist').html('<span>'+text+'</span>');}}
$(document.body).trigger('removed_from_wishlist');}});}}});$(document.body).on('added_to_wishlist removed_from_wishlist',function(e){if(worker){worker.postMessage({loadWishlist:true,ajaxurl:theme.ajax_url,nonce:js_porto_vars.porto_nonce});}});}
$(document).on('yith_wcwl_add_to_wishlist_data',function(e,$el){if($el.length){$el.tooltip('hide');}});$(document).on('click','.content-collapse-wrap .btn-read-more-wrap',function(e){e.preventDefault();var $wrap=$(this).closest('.content-collapse-wrap');if($wrap.hasClass('opened')){$wrap.removeClass('opened');}else{$wrap.addClass('opened');}});}).apply(this,[window.theme,jQuery]);}catch(e){}
try{(function(t,a){"use strict";var e;t=t||{},a.extend(t,{PostAjaxModal:{defaults:{elements:".page-portfolios"},initialize:function(t,e){return this.$elements=t||a(this.defaults.elements),void 0===e&&(e="portfolio"),this.build(e),this},build:function(o){var n={$wrapper:null,modals:[],currentModal:0,total:0,p_type:"portfolio",build:function(t,e){var o=this;o.$wrapper=t,o.$wrapper&&(o.modals=[],o.total=0,o.p_type=e,t.find("a[data-ajax-on-modal]").each((function(){o.add(a(this))})),t.off("mousedown","a[data-ajax-on-modal]").on("mousedown","a[data-ajax-on-modal]",(function(t){if(2==t.which)return t.preventDefault(),!1})))},add:function(t){var a=this,e=t.attr("href"),o=a.total;a.modals.push({src:e}),a.total++,t.off("click").on("click",(function(t){return t.preventDefault(),a.show(o),!1}))},next:function(){var t=this;t.currentModal+1<t.total?t.show(t.currentModal+1):t.show(0)},prev:function(){var t=this;t.currentModal-1>=0?t.show(t.currentModal-1):t.show(t.total-1)},show:function(o){var n=this;if(n.currentModal=o,o<0||o>n.total-1)return!1;a.magnificPopup.close(),a.magnificPopup.open(a.extend(!0,{},t.mfpConfig,{type:"ajax",items:n.modals,gallery:{enabled:!0},ajax:{settings:{type:"post",data:{ajax_action:n.p_type+"_ajax_modal"}}},mainClass:n.p_type+"-ajax-modal",fixedContentPos:!1,callbacks:{parseAjax:function(t){var e=a(t.data),o=e.find("#content article."+n.p_type),i=e.filter('style[data-type]:not("")'),l="";i.each((function(){l+=a(this).text()})),a("#"+n.p_type+"AjaxCSS").get(0)?a("#"+n.p_type+"AjaxCSS").text(l):a('<style id="'+n.p_type+'AjaxCSS">'+l+"</style>").appendTo("head"),o.find("."+n.p_type+"-nav-all").html('<a href="#" data-ajax-'+n.p_type+'-close data-bs-tooltip data-original-title="'+js_porto_vars.popup_close+'" data-bs-placement="bottom"><i class="fas fa-th"></i></a>'),o.find("."+n.p_type+"-nav").html('<a href="#" data-ajax-'+n.p_type+'-prev class="'+n.p_type+'-nav-prev" data-bs-tooltip data-original-title="'+js_porto_vars.popup_prev+'" data-bs-placement="bottom"><i class="fa"></i></a><a href="#" data-toggle="tooltip" data-ajax-'+n.p_type+'-next class="'+n.p_type+'-nav-next" data-bs-tooltip data-original-title="'+js_porto_vars.popup_next+'" data-bs-placement="bottom"><i class="fa"></i></a>'),o.find(".elementor-invisible").removeClass("elementor-invisible"),0==o.length&&(o=e.find(".main-content>.porto-block")),t.data='<div class="ajax-container">'+o.html()+"</div>"},ajaxContentAdded:function(){var o=a("."+n.p_type+"-ajax-modal");o.find("a[data-ajax-"+n.p_type+"-close]").on("click",(function(t){return t.preventDefault(),a.magnificPopup.close(),!1})),e=o.find(".rev_slider, rs-module"),n.modals.length<=1?o.find("a[data-ajax-"+n.p_type+"-prev], a[data-ajax-"+n.p_type+"-next]").remove():(o.find("a[data-ajax-"+n.p_type+"-prev]").on("click",(function(t){if(t.preventDefault(),e&&e.get(0))try{e.revkill()}catch(t){}return o.find(".mfp-arrow-left").trigger("click"),!1})),o.find("a[data-ajax-"+n.p_type+"-next]").on("click",(function(t){if(t.preventDefault(),e&&e.get(0))try{e.revkill()}catch(t){}return o.find(".mfp-arrow-right").trigger("click"),!1}))),"portfolio"==n.p_type&&a(window).trigger("resize"),porto_init(),t.refreshVCContent(o),setTimeout((function(){var t=o.find("video");t.get(0)&&t.each((function(){a(this)[0].play(),a(this).parent().parent().parent().find(".video-controls").attr("data-action","play"),a(this).parent().parent().parent().find(".video-controls").html('<i class="ult-vid-cntrlpause"></i>')}))}),600),o.off("scroll").on("scroll",(function(){a.fn.appear.run()}))},change:function(){a(".mfp-wrap .ajax-container").trigger("click")},beforeClose:function(){if(e&&e.get(0))try{e.revkill()}catch(t){}a("."+n.p_type+"-ajax-modal").off("scroll")}}}),o)}};return this.$elements.each((function(){var t=a(this);t.find("a[data-ajax-on-modal]").get(0)&&(t.data(o+"AjaxOnModal")||(n.build(t,o),t.data(o+"AjaxOnModal",n)))})),this}}}),a(document.documentElement).on("keydown",(function(t){try{37!=t.keyCode&&39!=t.keyCode||e&&e.get(0)&&e.revkill()}catch(t){}}))}).apply(this,[window.theme,jQuery]),jQuery(document).ready((function(t){"use strict";void 0!==theme.PostAjaxModal&&(t(".page-portfolios").length&&t(".page-portfolios").each((function(){theme.PostAjaxModal.initialize(t(this))})),t(".page-members").length&&t(".page-members").each((function(){theme.PostAjaxModal.initialize(t(this),"member")})))}));}catch(e){}
try{(function(e,t){"use strict";var a;e=e||{},t.extend(e,{MemberAjaxPage:{defaults:{elements:".page-members"},initialize:function(e){return this.$elements=e||t(this.defaults.elements),this.build(),this},build:function(){return this.$elements.each((function(){var n=t(this);if(n.find("#memberAjaxBox").get(0)){var o={$wrapper:t(this),pages:[],currentPage:0,total:0,$ajaxBox:n.find("#memberAjaxBox"),$ajaxBoxContent:n.find("#memberAjaxBoxContent"),build:function(){var e=this;e.pages=[],e.total=0,n.find("a[data-ajax-on-page]").each((function(){e.add(t(this))})),n.off("mousedown","a[data-ajax-on-page]").on("mousedown","a[data-ajax-on-page]",(function(e){if(2==e.which)return e.preventDefault(),!1}))},add:function(e){var t=this,a=e.attr("href");t.pages.push(a),t.total++,e.off("click").on("click",(function(e){return e.preventDefault(),t.show(t.pages.indexOf(a)),!1}))},next:function(){var e=this;e.currentPage+1<e.total?e.show(e.currentPage+1):e.show(0)},prev:function(){var e=this;e.currentPage-1>=0?e.show(e.currentPage-1):e.show(e.total-1)},show:function(n){var o=this;if(a=null,o.$ajaxBoxContent.find(".rev_slider, rs-module").get(0))try{o.$ajaxBoxContent.find(".rev_slider, rs-module").revkill()}catch(e){}if(o.$ajaxBoxContent.empty(),o.$ajaxBox.removeClass("ajax-box-init").addClass("ajax-box-loading"),e.scrolltoContainer(o.$ajaxBox),o.currentPage=n,n<0||n>o.total-1)return o.close(),!1;t.ajax({url:o.pages[n],complete:function(n){var i=t(n.responseText),r=i.find("#content article.member"),s=i.filter('style[data-type]:not("")'),l="";s.each((function(){l+=t(this).text()})),t("#memberAjaxCSS").get(0)?t("#memberAjaxCSS").text(l):t('<style id="memberAjaxCSS">'+l+"</style>").appendTo("head");var d=o.$ajaxBox.find(".ajax-content-append"),c="";d.length&&(c=d.html()),o.$ajaxBoxContent.html(r.html()).prepend('<div class="row"><div class="col-lg-12"><hr class="tall m-t-none"></div></div>').append('<div class="row"><div class="col-md-12"><hr class="m-t-md"></div></div>'+c),o.$ajaxBox.removeClass("ajax-box-loading"),t(window).trigger("resize"),porto_init(),e.refreshVCContent(o.$ajaxBoxContent),a=o}})}};o.build(),n.data("memberAjaxOnPage",o)}})),this}}}),t(document.documentElement).on("keyup",(function(e){try{if(!a)return;39==e.keyCode&&a.next(),37==e.keyCode&&a.prev()}catch(e){}}))}).apply(this,[window.theme,jQuery]),jQuery(document).ready((function(e){"use strict";void 0!==theme.MemberAjaxPage&&theme.MemberAjaxPage.initialize()}));}catch(e){}
try{(function(a,t){"use strict";var o;a=a||{},t.extend(a,{PortfolioAjaxPage:{defaults:{elements:".page-portfolios"},initialize:function(a){return this.$elements=a||t(this.defaults.elements),this.build(),this},build:function(){return this.$elements.each((function(){var e=t(this);if(e.find("#portfolioAjaxBox").get(0)&&!e.data("portfolioAjaxOnPage")){var n={$wrapper:t(this),pages:[],currentPage:0,total:0,$ajaxBox:e.find("#portfolioAjaxBox"),$ajaxBoxContent:e.find("#portfolioAjaxBoxContent"),build:function(){var a=this;a.pages=[],a.total=0,e.find("a[data-ajax-on-page]").each((function(){a.add(t(this))})),e.off("mousedown","a[data-ajax-on-page]").on("mousedown","a[data-ajax-on-page]",(function(a){if(2==a.which)return a.preventDefault(),!1}))},add:function(a){var t=this,o=a.attr("href");t.pages.push(o),t.total++,a.off("click").on("click",(function(a){a.preventDefault();var e=a.target.className;return"owl-next"==e||"owl-prev"==e||t.show(t.pages.indexOf(o)),!1}))},events:function(){var a=this;e.off("click","a[data-ajax-portfolio-close]").on("click","a[data-ajax-portfolio-close]",(function(t){return t.preventDefault(),a.close(),!1})),a.total<=1?t("a[data-ajax-portfolio-prev], a[data-ajax-portfolio-next]").remove():(e.off("click","a[data-ajax-portfolio-prev]").on("click","a[data-ajax-portfolio-prev]",(function(t){return t.preventDefault(),a.prev(),!1})),e.off("click","a[data-ajax-portfolio-next]").on("click","a[data-ajax-portfolio-next]",(function(t){return t.preventDefault(),a.next(),!1})))},close:function(){var a=this;if(a.$ajaxBoxContent.find(".rev_slider, rs-module").get(0))try{a.$ajaxBoxContent.find(".rev_slider, rs-module").revkill()}catch(a){}a.$ajaxBoxContent.empty(),a.$ajaxBox.removeClass("ajax-box-init").removeClass("ajax-box-loading")},next:function(){var a=this;a.currentPage+1<a.total?a.show(a.currentPage+1):a.show(0)},prev:function(){var a=this;a.currentPage-1>=0?a.show(a.currentPage-1):a.show(a.total-1)},show:function(e){var n=this;if(o=null,n.$ajaxBoxContent.find(".rev_slider, rs-module").get(0))try{n.$ajaxBoxContent.find(".rev_slider, rs-module").revkill()}catch(a){}if(n.$ajaxBoxContent.empty(),n.$ajaxBox.removeClass("ajax-box-init").addClass("ajax-box-loading"),a.scrolltoContainer(n.$ajaxBox),n.currentPage=e,e<0||e>n.total-1)return n.close(),!1;t.ajax({url:n.pages[e],complete:function(e){var i=t(e.responseText),r=i.find("#content article.portfolio");i.filter('style[data-type]:not("")');t("#portfolioAjaxCSS").get(0)?t("#portfolioAjaxCSS").text(""):t('<style id="portfolioAjaxCSS"></style>').appendTo("head"),r.find(".portfolio-nav-all").html('<a href="#" data-ajax-portfolio-close data-bs-tooltip data-original-title="'+js_porto_vars.popup_close+'"><i class="fas fa-th"></i></a>'),r.find(".portfolio-nav").html('<a href="#" data-ajax-portfolio-prev class="portfolio-nav-prev" data-bs-tooltip data-original-title="'+js_porto_vars.popup_prev+'"><i class="fa"></i></a><a href="#" data-toggle="tooltip" data-ajax-portfolio-next class="portfolio-nav-next" data-bs-tooltip data-original-title="'+js_porto_vars.popup_next+'"><i class="fa"></i></a>'),n.$ajaxBoxContent.html(r.html()).append('<div class="row"><div class="col-lg-12"><hr class="tall"></div></div>'),n.$ajaxBox.removeClass("ajax-box-loading"),t(window).trigger("resize"),porto_init(),a.refreshVCContent(n.$ajaxBoxContent),n.events(),o=n,n.$ajaxBoxContent.find(".lightbox:not(.manual)").each((function(){var a,o=t(this),e=o.data("plugin-options");e&&(a=e),o.themeLightbox(a)}))}})}};n.build(),e.data("portfolioAjaxOnPage",n)}})),this}}}),t(document.documentElement).on("keyup",(function(a){try{if(!o)return;39==a.keyCode&&o.next(),37==a.keyCode&&o.prev()}catch(a){}}))}).apply(this,[window.theme,jQuery]),jQuery(document).ready((function(a){"use strict";void 0!==theme.PortfolioAjaxPage&&theme.PortfolioAjaxPage.initialize()}));}catch(e){}
try{/*! skrollr 0.6.26 (2014-06-08) | Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr | Free to use under terms of MIT license */
(function(e,t,r){"use strict";function n(r){if(o=t.documentElement,a=t.body,K(),it=this,r=r||{},ut=r.constants||{},r.easing)for(var n in r.easing)U[n]=r.easing[n];yt=r.edgeStrategy||"set",ct={beforerender:r.beforerender,render:r.render,keyframe:r.keyframe},ft=r.forceHeight!==!1,ft&&(Vt=r.scale||1),mt=r.mobileDeceleration||x,dt=r.smoothScrolling!==!1,gt=r.smoothScrollingDuration||E,vt={targetTop:it.getScrollTop()},Gt=(r.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})(),Gt?(st=t.getElementById("skrollr-body"),st&&at(),X(),Dt(o,[y,S],[T])):Dt(o,[y,b],[T]),it.refresh(),St(e,"resize orientationchange",function(){var e=o.clientWidth,t=o.clientHeight;(t!==$t||e!==Mt)&&($t=t,Mt=e,_t=!0)});var i=Y();return function l(){Z(),bt=i(l)}(),it}var o,a,i={get:function(){return it},init:function(e){return it||new n(e)},VERSION:"0.6.26"},l=Object.prototype.hasOwnProperty,s=e.Math,c=e.getComputedStyle,f="touchstart",u="touchmove",m="touchcancel",p="touchend",d="skrollable",g=d+"-before",v=d+"-between",h=d+"-after",y="skrollr",T="no-"+y,b=y+"-desktop",S=y+"-mobile",k="linear",w=1e3,x=.004,E=200,A="start",F="end",C="center",D="bottom",H="___skrollable_id",I=/^(?:input|textarea|button|select)$/i,P=/^\s+|\s+$/g,N=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,O=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,V=/^(@?[a-z\-]+)\[(\w+)\]$/,z=/-([a-z0-9_])/g,q=function(e,t){return t.toUpperCase()},L=/[\-+]?[\d]*\.?[\d]+/g,M=/\{\?\}/g,$=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,_=/[a-z\-]+-gradient/g,B="",G="",K=function(){var e=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(c){var t=c(a,null);for(var n in t)if(B=n.match(e)||+n==n&&t[n].match(e))break;if(!B)return B=G="",r;B=B[0],"-"===B.slice(0,1)?(G=B,B={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[B]):G="-"+B.toLowerCase()+"-"}},Y=function(){var t=e.requestAnimationFrame||e[B.toLowerCase()+"RequestAnimationFrame"],r=Pt();return(Gt||!t)&&(t=function(t){var n=Pt()-r,o=s.max(0,1e3/60-n);return e.setTimeout(function(){r=Pt(),t()},o)}),t},R=function(){var t=e.cancelAnimationFrame||e[B.toLowerCase()+"CancelAnimationFrame"];return(Gt||!t)&&(t=function(t){return e.clearTimeout(t)}),t},U={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-s.cos(e*s.PI)/2+.5},sqrt:function(e){return s.sqrt(e)},outCubic:function(e){return s.pow(e-1,3)+1},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-s.abs(3*s.cos(1.028*e*t)/t)}};n.prototype.refresh=function(e){var n,o,a=!1;for(e===r?(a=!0,lt=[],Bt=0,e=t.getElementsByTagName("*")):e.length===r&&(e=[e]),n=0,o=e.length;o>n;n++){var i=e[n],l=i,s=[],c=dt,f=yt,u=!1;if(a&&H in i&&delete i[H],i.attributes){for(var m=0,p=i.attributes.length;p>m;m++){var g=i.attributes[m];if("data-anchor-target"!==g.name)if("data-smooth-scrolling"!==g.name)if("data-edge-strategy"!==g.name)if("data-emit-events"!==g.name){var v=g.name.match(N);if(null!==v){var h={props:g.value,element:i,eventType:g.name.replace(z,q)};s.push(h);var y=v[1];y&&(h.constant=y.substr(1));var T=v[2];/p$/.test(T)?(h.isPercentage=!0,h.offset=(0|T.slice(0,-1))/100):h.offset=0|T;var b=v[3],S=v[4]||b;b&&b!==A&&b!==F?(h.mode="relative",h.anchors=[b,S]):(h.mode="absolute",b===F?h.isEnd=!0:h.isPercentage||(h.offset=h.offset*Vt))}}else u=!0;else f=g.value;else c="off"!==g.value;else if(l=t.querySelector(g.value),null===l)throw'Unable to find anchor target "'+g.value+'"'}if(s.length){var k,w,x;!a&&H in i?(x=i[H],k=lt[x].styleAttr,w=lt[x].classAttr):(x=i[H]=Bt++,k=i.style.cssText,w=Ct(i)),lt[x]={element:i,styleAttr:k,classAttr:w,anchorTarget:l,keyFrames:s,smoothScrolling:c,edgeStrategy:f,emitEvents:u,lastFrameIndex:-1},Dt(i,[d],[])}}}for(Et(),n=0,o=e.length;o>n;n++){var E=lt[e[n][H]];E!==r&&(J(E),et(E))}return it},n.prototype.relativeToAbsolute=function(e,t,r){var n=o.clientHeight,a=e.getBoundingClientRect(),i=a.top,l=a.bottom-a.top;return t===D?i-=n:t===C&&(i-=n/2),r===D?i+=l:r===C&&(i+=l/2),i+=it.getScrollTop(),0|i+.5},n.prototype.animateTo=function(e,t){t=t||{};var n=Pt(),o=it.getScrollTop();return pt={startTop:o,topDiff:e-o,targetTop:e,duration:t.duration||w,startTime:n,endTime:n+(t.duration||w),easing:U[t.easing||k],done:t.done},pt.topDiff||(pt.done&&pt.done.call(it,!1),pt=r),it},n.prototype.stopAnimateTo=function(){pt&&pt.done&&pt.done.call(it,!0),pt=r},n.prototype.isAnimatingTo=function(){return!!pt},n.prototype.isMobile=function(){return Gt},n.prototype.setScrollTop=function(t,r){return ht=r===!0,Gt?Kt=s.min(s.max(t,0),Ot):e.scrollTo(0,t),it},n.prototype.getScrollTop=function(){return Gt?Kt:e.pageYOffset||o.scrollTop||a.scrollTop||0},n.prototype.getMaxScrollTop=function(){return Ot},n.prototype.on=function(e,t){return ct[e]=t,it},n.prototype.off=function(e){return delete ct[e],it},n.prototype.destroy=function(){var e=R();e(bt),wt(),Dt(o,[T],[y,b,S]);for(var t=0,n=lt.length;n>t;t++)ot(lt[t].element);o.style.overflow=a.style.overflow="",o.style.height=a.style.height="",st&&i.setStyle(st,"transform","none"),it=r,st=r,ct=r,ft=r,Ot=0,Vt=1,ut=r,mt=r,zt="down",qt=-1,Mt=0,$t=0,_t=!1,pt=r,dt=r,gt=r,vt=r,ht=r,Bt=0,yt=r,Gt=!1,Kt=0,Tt=r};var X=function(){var n,i,l,c,d,g,v,h,y,T,b,S;St(o,[f,u,m,p].join(" "),function(e){var o=e.changedTouches[0];for(c=e.target;3===c.nodeType;)c=c.parentNode;switch(d=o.clientY,g=o.clientX,T=e.timeStamp,I.test(c.tagName)||e.preventDefault(),e.type){case f:n&&n.blur(),it.stopAnimateTo(),n=c,i=v=d,l=g,y=T;break;case u:I.test(c.tagName)&&t.activeElement!==c&&e.preventDefault(),h=d-v,S=T-b,it.setScrollTop(Kt-h,!0),v=d,b=T;break;default:case m:case p:var a=i-d,k=l-g,w=k*k+a*a;if(49>w){if(!I.test(n.tagName)){n.focus();var x=t.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,e.view,1,o.screenX,o.screenY,o.clientX,o.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),n.dispatchEvent(x)}return}n=r;var E=h/S;E=s.max(s.min(E,3),-3);var A=s.abs(E/mt),F=E*A+.5*mt*A*A,C=it.getScrollTop()-F,D=0;C>Ot?(D=(Ot-C)/F,C=Ot):0>C&&(D=-C/F,C=0),A*=1-D,it.animateTo(0|C+.5,{easing:"outCubic",duration:A})}}),e.scrollTo(0,0),o.style.overflow=a.style.overflow="hidden"},j=function(){var e,t,r,n,a,i,l,c,f,u,m,p=o.clientHeight,d=At();for(c=0,f=lt.length;f>c;c++)for(e=lt[c],t=e.element,r=e.anchorTarget,n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],u=l.offset,m=d[l.constant]||0,l.frame=u,l.isPercentage&&(u*=p,l.frame=u),"relative"===l.mode&&(ot(t),l.frame=it.relativeToAbsolute(r,l.anchors[0],l.anchors[1])-u,ot(t,!0)),l.frame+=m,ft&&!l.isEnd&&l.frame>Ot&&(Ot=l.frame);for(Ot=s.max(Ot,Ft()),c=0,f=lt.length;f>c;c++){for(e=lt[c],n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],m=d[l.constant]||0,l.isEnd&&(l.frame=Ot-l.offset+m);e.keyFrames.sort(Nt)}},W=function(e,t){for(var r=0,n=lt.length;n>r;r++){var o,a,s=lt[r],c=s.element,f=s.smoothScrolling?e:t,u=s.keyFrames,m=u.length,p=u[0],y=u[u.length-1],T=p.frame>f,b=f>y.frame,S=T?p:y,k=s.emitEvents,w=s.lastFrameIndex;if(T||b){if(T&&-1===s.edge||b&&1===s.edge)continue;switch(T?(Dt(c,[g],[h,v]),k&&w>-1&&(xt(c,p.eventType,zt),s.lastFrameIndex=-1)):(Dt(c,[h],[g,v]),k&&m>w&&(xt(c,y.eventType,zt),s.lastFrameIndex=m)),s.edge=T?-1:1,s.edgeStrategy){case"reset":ot(c);continue;case"ease":f=S.frame;break;default:case"set":var x=S.props;for(o in x)l.call(x,o)&&(a=nt(x[o].value),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a));continue}}else 0!==s.edge&&(Dt(c,[d,v],[g,h]),s.edge=0);for(var E=0;m-1>E;E++)if(f>=u[E].frame&&u[E+1].frame>=f){var A=u[E],F=u[E+1];for(o in A.props)if(l.call(A.props,o)){var C=(f-A.frame)/(F.frame-A.frame);C=A.props[o].easing(C),a=rt(A.props[o].value,F.props[o].value,C),a=nt(a),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a)}k&&w!==E&&("down"===zt?xt(c,A.eventType,zt):xt(c,F.eventType,zt),s.lastFrameIndex=E);break}}},Z=function(){_t&&(_t=!1,Et());var e,t,n=it.getScrollTop(),o=Pt();if(pt)o>=pt.endTime?(n=pt.targetTop,e=pt.done,pt=r):(t=pt.easing((o-pt.startTime)/pt.duration),n=0|pt.startTop+t*pt.topDiff),it.setScrollTop(n,!0);else if(!ht){var a=vt.targetTop-n;a&&(vt={startTop:qt,topDiff:n-qt,targetTop:n,startTime:Lt,endTime:Lt+gt}),vt.endTime>=o&&(t=U.sqrt((o-vt.startTime)/gt),n=0|vt.startTop+t*vt.topDiff)}if(Gt&&st&&i.setStyle(st,"transform","translate(0, "+-Kt+"px) "+Tt),ht||qt!==n){zt=n>qt?"down":qt>n?"up":zt,ht=!1;var l={curTop:n,lastTop:qt,maxTop:Ot,direction:zt},s=ct.beforerender&&ct.beforerender.call(it,l);s!==!1&&(W(n,it.getScrollTop()),qt=n,ct.render&&ct.render.call(it,l)),e&&e.call(it,!1)}Lt=o},J=function(e){for(var t=0,r=e.keyFrames.length;r>t;t++){for(var n,o,a,i,l=e.keyFrames[t],s={};null!==(i=O.exec(l.props));)a=i[1],o=i[2],n=a.match(V),null!==n?(a=n[1],n=n[2]):n=k,o=o.indexOf("!")?Q(o):[o.slice(1)],s[a]={value:o,easing:U[n]};l.props=s}},Q=function(e){var t=[];return $.lastIndex=0,e=e.replace($,function(e){return e.replace(L,function(e){return 100*(e/255)+"%"})}),G&&(_.lastIndex=0,e=e.replace(_,function(e){return G+e})),e=e.replace(L,function(e){return t.push(+e),"{?}"}),t.unshift(e),t},et=function(e){var t,r,n={};for(t=0,r=e.keyFrames.length;r>t;t++)tt(e.keyFrames[t],n);for(n={},t=e.keyFrames.length-1;t>=0;t--)tt(e.keyFrames[t],n)},tt=function(e,t){var r;for(r in t)l.call(e.props,r)||(e.props[r]=t[r]);for(r in e.props)t[r]=e.props[r]},rt=function(e,t,r){var n,o=e.length;if(o!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';var a=[e[0]];for(n=1;o>n;n++)a[n]=e[n]+(t[n]-e[n])*r;return a},nt=function(e){var t=1;return M.lastIndex=0,e[0].replace(M,function(){return e[t++]})},ot=function(e,t){e=[].concat(e);for(var r,n,o=0,a=e.length;a>o;o++)n=e[o],r=lt[n[H]],r&&(t?(n.style.cssText=r.dirtyStyleAttr,Dt(n,r.dirtyClassAttr)):(r.dirtyStyleAttr=n.style.cssText,r.dirtyClassAttr=Ct(n),n.style.cssText=r.styleAttr,Dt(n,r.classAttr)))},at=function(){Tt="translateZ(0)",i.setStyle(st,"transform",Tt);var e=c(st),t=e.getPropertyValue("transform"),r=e.getPropertyValue(G+"transform"),n=t&&"none"!==t||r&&"none"!==r;n||(Tt="")};i.setStyle=function(e,t,r){var n=e.style;if(t=t.replace(z,q).replace("-",""),"zIndex"===t)n[t]=isNaN(r)?r:""+(0|r);else if("float"===t)n.styleFloat=n.cssFloat=r;else try{B&&(n[B+t.slice(0,1).toUpperCase()+t.slice(1)]=r),n[t]=r}catch(o){}};var it,lt,st,ct,ft,ut,mt,pt,dt,gt,vt,ht,yt,Tt,bt,St=i.addEvent=function(t,r,n){var o=function(t){return t=t||e.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),n.call(this,t)};r=r.split(" ");for(var a,i=0,l=r.length;l>i;i++)a=r[i],t.addEventListener?t.addEventListener(a,n,!1):t.attachEvent("on"+a,o),Yt.push({element:t,name:a,listener:n})},kt=i.removeEvent=function(e,t,r){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e.removeEventListener?e.removeEventListener(t[n],r,!1):e.detachEvent("on"+t[n],r)},wt=function(){for(var e,t=0,r=Yt.length;r>t;t++)e=Yt[t],kt(e.element,e.name,e.listener);Yt=[]},xt=function(e,t,r){ct.keyframe&&ct.keyframe.call(it,e,t,r)},Et=function(){var e=it.getScrollTop();Ot=0,ft&&!Gt&&(a.style.height=""),j(),ft&&!Gt&&(a.style.height=Ot+o.clientHeight+"px"),Gt?it.setScrollTop(s.min(it.getScrollTop(),Ot)):it.setScrollTop(e,!0),ht=!0},At=function(){var e,t,r=o.clientHeight,n={};for(e in ut)t=ut[e],"function"==typeof t?t=t.call(it):/p$/.test(t)&&(t=t.slice(0,-1)/100*r),n[e]=t;return n},Ft=function(){var e=st&&st.offsetHeight||0,t=s.max(e,a.scrollHeight,a.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight);return t-o.clientHeight},Ct=function(t){var r="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[r],r="baseVal"),t[r]},Dt=function(t,n,o){var a="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[a],a="baseVal"),o===r)return t[a]=n,r;for(var i=t[a],l=0,s=o.length;s>l;l++)i=It(i).replace(It(o[l])," ");i=Ht(i);for(var c=0,f=n.length;f>c;c++)-1===It(i).indexOf(It(n[c]))&&(i+=" "+n[c]);t[a]=Ht(i)},Ht=function(e){return e.replace(P,"")},It=function(e){return" "+e+" "},Pt=Date.now||function(){return+new Date},Nt=function(e,t){return e.frame-t.frame},Ot=0,Vt=1,zt="down",qt=-1,Lt=Pt(),Mt=0,$t=0,_t=!1,Bt=0,Gt=!1,Kt=0,Yt=[];"function"==typeof define&&define.amd?define("skrollr",function(){return i}):"undefined"!=typeof module&&module.exports?module.exports=i:e.skrollr=i})(window,document);}catch(e){}
try{/*!
 * Isotope PACKAGED v3.0.6
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * https://isotope.metafizzy.co
 * Copyright 2010-2018 Metafizzy
 */
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);r=200==Math.round(t(n.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,I=d&&r,x=t(s.width);x!==!1&&(a.width=x+(I?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(I?0:y+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+z),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var o=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?o.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;o.indexOf("%")!=-1&&(s=s/100*a.width),n.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),n&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop");return t=i?t:-t,e=o?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,o,n,s){return e(t,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t);
}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},l.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});}catch(e){}
try{/*! This file is auto-generated */
/*!
 * Masonry PACKAGED v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});}catch(e){}
try{/*!
 * Masonry v2 shim
 * to maintain backwards compatibility
 * as of Masonry v3.1.2
 *
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
!function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window);}catch(e){}
try{(()=>{var t={41523:t=>{!function(e,o){const i=[];o.addResizeCallback=function(t,e){return-1===i.indexOf(t)&&(t.$$scope=e,i.push(t)),o},t.exports=function(){let t=o.$window.width();o.$window.off("resize.tar").on("resize.tar",(function(){o.$window.width()!==t&&(e.each(i,(function(t,e){e.call(e.$$scope||this)})),t=o.$window.width())}))}}(ThriveGlobal.$j,TCB_Front)},49110:t=>{!function(e,o){const i=[];o.add_scroll_callback=function(t,e){return-1===i.indexOf(t)&&(t.$$scope=e,i.push(t)),o},t.exports=function(){let t=o.$document.scrollTop(),n="";o.$window.off("scroll.tar").on("scroll.tar",(function(){const s=o.$document.scrollTop(),r=s>=t?"down":"up",a=n!==r;t=s,n=r,e.each(i,(function(t,e){e.call(e.$$scope||this,s,r,a)}))})),o.$window.trigger("scroll")}}(ThriveGlobal.$j,TCB_Front)},11481:()=>{!function(t){"use strict";const e=function(e,o){this.el=t(e),this.options=t.extend({},t.fn.typed.defaults,o),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};e.prototype={constructor:e,init(t){void 0===t&&(t="delete");const e=this;function o(){for(let t=0;t<e.strings.length;++t)e.sequence[t]=t;e.shuffle&&(e.sequence=e.shuffleArray(e.sequence)),"delete"===t?(e.strPos=e.strings[e.sequence[e.arrayPos]].length,e.options.highlightClass?e.highlight(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)):(e.strPos=0,e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos))}"delete"===t?e.timeout=setTimeout(o,e.startDelay):o()},build(){const e=this;if(!0===this.showCursor&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){e.strings=[],this.stringsElement.hide();const o=this.stringsElement.find("p");t.each(o,(function(o,i){e.strings.push(t(i).html())}))}this.init()},typewrite(t,e){if(!0===this.stop)return;const o=this.typeSpeed,i=this;i.timeout=setTimeout((function(){let o=0,n=t.substr(e);if("^"===n.charAt(0)){let i=1;/^\^\d+/.test(n)&&(n=/\d+/.exec(n)[0],i+=n.length,o=parseInt(n)),t=t.substring(0,e)+t.substring(e+i)}if("html"===i.contentType){const o=t.substr(e).charAt(0);if("<"===o||"&"===o){const i="<"===o?">":";";for(;t.substr(e).charAt(0)!==i;)e++;e++}}i.timeout=setTimeout((function(){if(e===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,!1===i.loop||i.curLoop===i.loopCount))return;i.timeout=setTimeout((function(){i.options.highlightClass?i.highlight(t,e):i.backspace(t,e)}),i.backDelay)}else{0===e&&i.options.preStringTyped(i.arrayPos);const o=t.substr(0,e+1);i.attr?i.el.attr(i.attr,o):i.isInput?i.el.val(o):"html"===i.contentType?i.el.html(o):i.el.text(o),e++,i.typewrite(t,e)}}),o)}),o)},highlight(t,e){if(!0===this.stop)return;const o=this.backSpeed,i=this;i.timeout=setTimeout((function(){if("html"===i.contentType&&">"===t.substr(e).charAt(0)){for(;"<"!==t.substr(e).charAt(0);)e--;e--}const o=t.substr(0,e),n=t.substr(e);i.attr?i.el.attr(i.attr,o):i.el.html(o+'<span class="'+i.options.highlightClass+'" style="'+(i.options.highlightStyle||"")+'">'+n+"</span>"),e>i.stopNum?(e--,i.highlight(t,e)):e<=i.stopNum&&setTimeout((function(){i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.init("write")):i.typewrite(i.strings[i.sequence[i.arrayPos]],e)}),200)}),o)},backspace(e,o){if(!0===this.stop)return;const i=this.backSpeed,n=this,s=t(n.el);n.timeout=setTimeout((function(){if("html"===n.contentType&&">"===e.substr(o).charAt(0)){for(;"<"!==e.substr(o).charAt(0);)o--;o--}const t=e.substr(0,o);n.attr?n.el.attr(n.attr,t):n.isInput?n.el.val(t):"html"===n.contentType?n.el.html(t):n.el.text(t),o>n.stopNum?(o--,n.backspace(e,o)):o<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init("write")):n.typewrite(n.strings[n.sequence[n.arrayPos]],o),n.options.highlightClass&&s.is("."+n.options.highlightClass)&&s.removeClass(n.options.highlightClass))}),i)},shuffleArray(t){let e,o,i=t.length;if(i)for(;--i;)o=Math.floor(Math.random()*(i+1)),e=t[o],t[o]=t[i],t[i]=e;return t},pause(){this.stop=!0,clearInterval(this.timeout)},start(){!1!==this.stop&&(this.stop=!1,this.init())},reset(){clearInterval(this.timeout);const t=this.el.attr("id");this.el.after('<span id="'+t+'"/>'),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),this.options.resetCallback()}},t.fn.typed=function(o){return this.each((function(){const i=t(this),n="object"==typeof o&&o;let s=i.data("typed");s||(s=new e(this,n),i.data("typed",s)),"string"==typeof o&&s[o]()}))},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback(){},preStringTyped(){},onStringTyped(){},resetCallback(){}}}(window.jQuery)},46967:t=>{t.exports={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode(t){let e,o,i,n,s,r,a,l="",c=0;for(t=this._utf8_encode(t);c<t.length;)e=t.charCodeAt(c++),o=t.charCodeAt(c++),i=t.charCodeAt(c++),n=e>>2,s=(3&e)<<4|o>>4,r=(15&o)<<2|i>>6,a=63&i,isNaN(o)?r=a=64:isNaN(i)&&(a=64),l=l+this._keyStr.charAt(n)+this._keyStr.charAt(s)+this._keyStr.charAt(r)+this._keyStr.charAt(a);return l},decode(t){let e,o,i,n,s,r,a,l="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)n=this._keyStr.indexOf(t.charAt(c++)),s=this._keyStr.indexOf(t.charAt(c++)),r=this._keyStr.indexOf(t.charAt(c++)),a=this._keyStr.indexOf(t.charAt(c++)),e=n<<2|s>>4,o=(15&s)<<4|r>>2,i=(3&r)<<6|a,l+=String.fromCharCode(e),64!=r&&(l+=String.fromCharCode(o)),64!=a&&(l+=String.fromCharCode(i));return l=this._utf8_decode(l),l},_utf8_encode(t){t=t.replace(/\r\n/g,"\n");let e="";for(let o=0;o<t.length;o++){const i=t.charCodeAt(o);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},_utf8_decode(t){let e="",o=0,i=0,n=0,s=0;for(;o<t.length;)i=t.charCodeAt(o),i<128?(e+=String.fromCharCode(i),o++):i>191&&i<224?(n=t.charCodeAt(o+1),e+=String.fromCharCode((31&i)<<6|63&n),o+=2):(n=t.charCodeAt(o+1),s=t.charCodeAt(o+2),e+=String.fromCharCode((15&i)<<12|(63&n)<<6|63&s),o+=3);return e}}},41954:t=>{!function(e,o){function i(t=o.$body){t.find(".thrv_wrapper > div[data-clip-id]").each(((e,o)=>{const i=getComputedStyle(o).getPropertyValue("clip-path");o.parentElement.classList.remove("safari-ios-decoration-fix");try{i&&"none"!==i&&!i.includes("#null")&&t.find(i.match(/"(#[^']+)"/)[1]).length>0&&o.parentElement.classList.add("safari-ios-decoration-fix")}catch(t){}}))}function n(){if(!this.dataset.href||this.dataset.href.includes("javascript:void(0)")||this.classList.contains("tcb-during-drag"))return!0;if("_blank"===this.dataset.target)window.open(this.dataset.href,"_blank","noopener");else{let t;if(this.dataset.hash)try{t=e(this.dataset.hash)}catch(t){}t&&t.length?TCB_Front.jumpScrollTo(t,this):location.href=this.dataset.href}return!1}t.exports=function(t){tve_frontend_options.is_editor_page||(function(){if(!document.getElementById("tve-frontend-compat-css")){const t=document.createElement("style");let e=".thrv-page-section.safari-ios-decoration-fix, .thrv-content-box.safari-ios-decoration-fix { -webkit-transform: translate3d(0, 0, 0) !important;}";TCB_Front.browser&&(TCB_Front.browser.mozilla?e=".safari-ios-decoration-fix .tve-page-section-out[data-clip-id], .safari-ios-decoration-fix .tve-content-box-background[data-clip-id]{transform: unset !important}":(TCB_Front.browser.safari||TCB_Front.browser.ios)&&(e+=".tve_ea_thrive_animation > a.tcb-button-link {-webkit-mask-image: -webkit-radial-gradient(#fff, #fff);-webkit-mask-size: 100%, 100%; -webkit-mask-position: 0, 0;  }",e+=".tcb-flex-col .tcb-col .thrv_wrapper.thrv_icon {max-height: var(--tve-icon-size, 25px);}",TCB_Front.browser.version&&parseFloat(TCB_Front.browser.version)<16&&(e+=".slick-list{overflow-x: hidden;}"))),e+=".thrv_wrapper + #thrive-header { position: static;}",t.type="text/css",t.id="tve-frontend-compat-css",t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}}(),i(t),o.addResizeCallback(i),function(t){t.find("a > .tcb-col, a > .thrv-content-box").each((function(){const t=this.parentNode,o={"data-href":t.href,"data-hash":t.hash,"jump-animation":t.getAttribute("jump-animation"),"data-target":t.getAttribute("target")||""};t.classList.contains("tve-dynamic-link")&&(o["data-shortcode-id"]=t.getAttribute("data-shortcode-id"),o["data-dynamic-link"]=t.getAttribute("data-dynamic-link")),e(this).unwrap().css("cursor","pointer").off("click.tcb-block").on("click.tcb-block",n).toggleClass("tve-jump-scroll",t.classList.contains("tve-jump-scroll")).attr(o)})),TCB_Front.$document.trigger("unwrapBlockLinks")}(t),function(t){const e=t.find(".thrv-search-form");e.length&&!TCB_Front.js_modules["search-form"]&&e.find(".thrv-sf-input").show(),t.find('[style*="--tve-border-width"]').each(((t,e)=>{o.inlineCssVariable(e,"--tve-border-width","")}))}(t))}}(ThriveGlobal.$j,TCB_Front)},18684:t=>{var e;e=ThriveGlobal.$j,t.exports=function(t=TCB_Front.$body){if(tve_frontend_options.is_editor_page)return;const o=e("#wpadminbar").height()||0,i=t.find(".thrv_footer"),n=i.parents("#tve_editor"),s=()=>{const e=i.height();i.length&&t.height()>0&&(i.css({position:"",top:""}),n.css({"min-height":"","padding-bottom":"","box-sizing":""}),document.documentElement.clientHeight-t.height()-o>1&&(i.css({position:"absolute",bottom:0,"padding-bottom":0,"z-index":3}),n.css({"min-height":"calc( 100vh - "+e+"px ) ","padding-bottom":e,"box-sizing":"unset"}),t.css("overflow-x","visible")))};"undefined"!=typeof ResizeObserver?new ResizeObserver((()=>{s()})).observe(window.document.body):s()}},43569:t=>{!function(e,o){const i="tve-default-state",n="tve-scroll-state",s="-1000px";let r,a,l,c,d=e();function h(t){if(function(){const t=d.data("scroll_config");return!t||!t.disabled.includes(TCB_Front.getDisplayType())}()){const e={opacity:0,"z-index":c-1,overflow:"hidden"},o={opacity:1,"z-index":c,overflow:"",top:0};let i="";t>=r?(l.css(e),a.css(o),i=a.outerHeight()):(a.css(e),l.css(o),d.data("cloneSticky")&&d.data("cloneSticky")[0].style.setProperty("height",`${l.outerHeight()}px`)),d[0]&&d[0].style.setProperty("height",i?`${i}px`:"")}}function p(){r=o.getMediaAttr(l,"data-switch-on-scroll",TCB_Front.getDisplayType()),o.add_scroll_callback(h)}function f(t){if(0===parseInt(t.currentTarget.style.opacity)){t.currentTarget.style.top=s;const o=e(t.currentTarget).find(".tve-m-trigger");o.length>0&&o.each(((t,o)=>{const i=e(o);i.hasClass("tve-triggered-icon")&&i.trigger("click")}))}}t.exports=function(t){if(d=t.find(".thrv_header"),d.data("init")||!d.length)return;d.data("init",1),l=d.find(".thrive-symbol-shortcode"),a=l.clone(),l.addClass(i),c=l.css("z-index")||15;const r=o.getMediaAttr(l,"data-switch-on-scroll",TCB_Front.getDisplayType());if(r&&!isNaN(r)){a.addClass(n).removeClass(i);const t={position:"absolute",opacity:0,width:"100%","box-sizing":"border-box",left:0,top:s};a.css(t).addClass("thrive-symbol-shortcode-scroll").insertAfter(l),a=d.find(".thrive-symbol-shortcode.thrive-symbol-shortcode-scroll"),e(`.${n}`).removeClass(i),a.find(`.${i}`).remove(),a.find(`.${n}`).css("display",""),l.find(`.${n}`).remove(),d.addClass(`${i} ${n}`),d.find(".thrive-symbol-shortcode").css("transition","opacity .4s ease-in-out").on("transitionend webkitTransitionEnd oTransitionEnd",f),o.addResizeCallback(p),p()}TCB_Front.event_triggers(d)}}(ThriveGlobal.$j,TCB_Front)},89322:t=>{t.exports=()=>new class{constructor(){this.filterCallbacks={},this.actionCallbacks={}}addFilter(t,e,o=10){void 0===this.filterCallbacks[t]&&(this.filterCallbacks[t]=[]),this.filterCallbacks[t].push({fn:e,priority:parseInt(o)})}applyFilters(t,e){if(arguments.length<1)return void 0!==e?e:null;if(this.CURRENT_FILTERS=this.CURRENT_FILTERS||[],this.hasFilter(t)){this.CURRENT_FILTERS.push(t);let o=[];arguments.length>2&&(o=Array.prototype.slice.call(arguments,2)),this.filterCallbacks[t].sort(((t,e)=>t.priority-e.priority)).forEach((t=>{if(t.fn)switch(t.fn){case"__return_true":e=!0;break;case"__return_false":e=!1;break;case"__return_null":e=null;break;case"__return_empty_string":e="";break;default:e=t.fn.apply(null,[e,...o])}})),this.CURRENT_FILTERS.pop()}return e}hasFilter(t){return this.filterCallbacks&&this.filterCallbacks[t]&&this.filterCallbacks[t].length}addAction(t,e,o=10){return this.actionCallbacks[t]||(this.actionCallbacks[t]=[]),this.actionCallbacks[t].push({fn:e,priority:parseInt(o)}),this}doAction(t){if(this.CURRENT_ACTIONS=this.CURRENT_ACTIONS||[],this.hasAction(t)){const e=arguments.length>1?Array.prototype.slice.call(arguments,1):[];this.CURRENT_ACTIONS.push(t),this.actionCallbacks[t].sort(((t,e)=>t.priority-e.priority)).forEach((t=>{t.fn&&t.fn.apply(null,e)})),this.CURRENT_ACTIONS.pop()}}hasAction(t){return this.actionCallbacks&&this.actionCallbacks[t]&&this.actionCallbacks[t].length}}},64743:()=>{var t,e;t=ThriveGlobal.$j,e=TCB_Front,t.fn.tve_form_loading=function(t){const o=this,i=o.find("[type=submit]").parent();let n=o.find(".tcb-form-loader");return void 0!==t&&t?(n.fadeOut(),o.find("input,select,textarea").removeAttr("disabled"),i.find("button").fadeIn(),o.find(".tve-form-button .tve-form-button-submit").fadeIn(),i.find(".thrv_icon").fadeIn(),this):(n.length||(n=ThriveGlobal.$j('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-svg-icon">'+e.icons.get("spinner9")+"</span></div>").appendTo(i),i.css({position:"relative",width:i.width()+"px",height:i.height()+"px"})),i.find("button").hide(),o.find(".tve-form-button .tve-form-button-submit").hide(),i.find(".thrv_icon").hide(),n.show(),this)}},74468:()=>{var t,e;t=ThriveGlobal.$j,(e=TCB_Front).$document.on("click","a.tve-jump-scroll",(function(o){if(this.hash.includes("comments")&&this.href!==this.hash)return!0;if(t(this).hasClass("tve-toc-anchor"))return!1;let i;o.preventDefault(),o.stopPropagation();const n=t(this),s=t(o.target).closest(".tve-item-dropdown-trigger").length,r=n.closest("li.menu-item");try{i=t(this.hash)}catch(t){}if(r.length){if(s){const e=t.Event("click");return e.clickedTarget=o.target,void r.trigger(e)}r.trigger("menu_item_anchor_clicked")}if(i&&i.length){if(history&&history.pushState){let t=location.href;t.indexOf("#")>-1&&(t=t.substring(0,t.lastIndexOf("#"))),history.pushState({},document.title,t+this.hash)}return e.jumpScrollTo(i,this),!1}})),e.$document.on("click",".tve-jump-scroll[data-target]",(function(o){let i;o.preventDefault(),o.stopPropagation();const n=this.getAttribute("data-target");try{i=t(n)}catch(t){}if(i&&i.length){if(history&&history.pushState){let t=location.href;t.indexOf("#")>-1&&(t=t.substring(0,t.lastIndexOf("#"))),history.pushState({},document.title,t+n)}return e.jumpScrollTo(i,this),!1}})),TCB_Front.jumpScrollTo=(o,i)=>{const n=t(i.closest(".tve_lb_open.tve-scroll")),s="smooth"===i.getAttribute("jump-animation")?1500:100,r=o.offset().left;let a=null,l=!1,c=0,d=t(),h=t("html, body");function p(){const i=o.offset().top;c=0,d.each((function(){const e=t(this),o=e.hasClass("tve-sticky-element"),n=o?e.data("stop-target"):t(),s=n.length?n.offset().top:0,a=e.offset().left+e.outerWidth();(!o||o&&s>i)&&r<=a&&(c=Math.max(c,e.data("scroll_config").top+e.outerHeight()))})),a&&(l?(a.end=i-e.$body.offset().top-c,l=!1):a.end=a.initial_end-c)}n.length&&n.find(o).length&&(h=n),e.$body.off("tcb-sticky-remove tcb-sticky-add tcb-sticky-scroll-down").on("tcb-sticky-add",(function(t,e){(e=e.filter(":not(.tve-toc)")).length>0&&o.closest(e.data("append-target")).length>0&&(d=d.add(e)),p()})).on("tcb-sticky-remove",((t,e)=>{d=d.not(e),p()})),e.$body.off("tcb.body.resize").on("tcb.body.resize",(()=>{l=!0,p()})),(t=>{if(0===t.closest(".tve-state-expanded").length&&t.hasClass("thrv_toggle_title")){const e=t.closest(".thrv_toggle");e.hasClass("tve-toggle-auto-collapse")&&e.find(".thrv_toggle_title").tcbToggle("hide")}else if(t.closest(".tve_tab_content:not(.tve-tc-visible)").length){const e=t.closest(".tve_tab_content:not(.tve-tc-visible)").index();t.closest(".thrv-tabbed-content").find(".tve_scT li").eq(e-1).tcbTabsToggle()}})(o),h.animate({scrollTop:o.offset().top-e.$body.offset().top},{duration:s,step:(t,e)=>{e.initial_end=e.initial_end||e.end,a=a||e}}).promise().then((()=>{0===o.closest(".tve-state-expanded").length&&(o.hasClass("thrv_toggle_title")?o.trigger("click"):o.is(".tve_tab_title_item")&&o.tcbTabsToggle()),e.$body.trigger("tcb-jumplink-done",[o,i])}))}},91806:t=>{var e;e=ThriveGlobal.$j,t.exports=function(t,o){if(0===t.length||t.hasClass("tve_lb_open")||t.hasClass("tve_lb_opening"))return;const i=e("body"),n=e("html"),s="tve-o-hidden tve-l-open tve-hide-overflow",r=TCB_Front.Utils.getBrowserScrollSize().width,a=parseInt(i.css("padding-right"));function l(t,o){TCB_Front.$window.trigger("tve_after_content_toggle",[t,!1]),e(window).trigger("tcb_before_lightbox_close",t),void 0===o&&1===e(".tve_lb_open").length&&(i.removeClass(s).css("padding-right",""),n.removeClass(s),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("doc-scroll-top",""))),t.removeClass("tve_lb_open tve_lb_opening").addClass("tve_lb_closing"),setTimeout((function(){t.removeClass("tve_lb_closing").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")}),300),e("#tve-lg-error-container").hide()}function c(o){const i=t.find(".tve_p_lb_content"),n=TCB_Front.$window.height(),s=void 0!==o&&o?"animate":"css",r=i.outerHeight(!0),a=(n-r)/2;e(window).trigger("tcb_before_lightbox_reposition"),t.find(".tve_p_lb_overlay")[s]({height:r+80+"px","min-height":n+"px"},200),i[s]({top:(a<40?40:a)+"px"},200),r+40>n&&t.addClass("tve-scroll")}if(t.off().on("click",".tve_p_lb_close",(function(){return l(t),!1})),i.off("keyup.tve_lb_close").on("keyup.tve_lb_close",(function(e){if(27===e.which)return l(t),!1})),t.children(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",(function(){return l(t),!1})),l(e(".tve_p_lb_background.tve_lb_open"),!0),"instant"!==o&&t.addClass("tve_p_lb_background tve_lb_anim_"+o),t.data("doc-scroll-top",document.documentElement.scrollTop),t.data("bdy-scroll-top",document.body.scrollTop),i.addClass(s),n.addClass(s),TCB_Front.$window.height()<TCB_Front.$document.height()&&i.css("padding-right",a+r+"px"),t.find(".tve_scT").length&&(TCB_Front.Utils.isEditorPage()||t.find(".tve_scT").each((function(){const t=e(this),o=parseInt(t.attr("data-selected"));if(!TCB_Front.Utils.isEditorPage()){let e=t.find("> ul li").eq(isNaN(o)?0:o);e.length||(e=t.find("> ul li").first()),e.tcbTabsToggle()}}))),setTimeout((function(){t.css("display",""),t.addClass("tve_lb_opening"),setTimeout((function(){"instant"===o&&t.addClass("tve_p_lb_background tve_lb_anim_"+o),c(),TCB_Front.$window.trigger("tve_after_content_toggle",[t])}),0)}),20),t.find(".tve_p_lb_content").trigger("tve.before-lightbox-open"),"none"===t.css("display")||t.hasClass("tve_lb_closing")?(t.removeClass("tve_lb_open"),i.removeClass(s).css("padding-right",""),n.removeClass(s)):setTimeout((function(){t.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open")}),300),TCB_Front.$window.resize((function(){c()})),t.on("lbresize",(function(){c(!0)})),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((()=>{c(!0)}));t.find("iframe").each((function(){e.observe(this)}))}else t.find("iframe").each((function(){this.src=this.src,this.onload=()=>{c(!0)}}));e(window).trigger("tcb_after_lightbox_open",t)}},15039:t=>{var e,o;e=ThriveGlobal.$j,o=TCB_Front,t.exports=class{constructor(){this.position="top-center",this.$customNotificationWrapper=e(".notifications-content-wrapper"),this.isCustomNotification=this.$customNotificationWrapper.length>0,this.$notificationWrapper=this.isCustomNotification?this.$customNotificationWrapper:e(".tvd-toast"),(!this.isNotificationPage()||this.isNotificationPage()&&!this.isEditorPage())&&this.render(),this.isNotificationPage()&&this.isEditorPage()&&this.$notificationWrapper.addClass("notification-edit-mode")}isNotificationPage(){let t="tve_notifications"===tve_frontend_options.post_type;return this.isEditorPage()&&(t=TVE.apply_filters("tcb.is_notification_editor_page",t)),t}isEditorPage(){return!!tve_frontend_options.is_editor_page}render(){this.$notificationWrapper.hide(),this.$notificationWrapper.removeClass("tcb-permanently-hidden animated");const t=o.queryString.get("content_template");o.queryString.get("preview")&&(this.isNotificationPage()||t&&t.includes("notification"))&&this.toggle()}toggle(t="",e="",o){this.$notificationWrapper.show(),this.isCustomNotification?this.toggleCustomNotification(t,e,o):this.toggleDefaultNotification(t,e,o)}toggleCustomNotification(t,o,i){const n=this.$notificationWrapper.attr("data-animation"),s=this.$notificationWrapper.attr("data-timer"),r=e(`.notification-${o} .thrv-notification_message`);t&&r.length>0&&r.empty().append(t),o&&this.$notificationWrapper.attr("data-state",o),this.$notificationWrapper.removeAttr("data-animation"),setTimeout((()=>{n&&"none"!==n?this.$notificationWrapper.attr("data-animation",n):this.$notificationWrapper.hide(),"function"==typeof i&&i()}),s)}toggleDefaultNotification(t,o,i){const n=e(".tve-toast-message-container"),s=e(".tve-toast-icon-container");switch(t&&n.empty().append(t),s.removeClass("tve-toast-error"),s.find(".thrv-svg-icon").empty(),o){case"success":s.find(".thrv-svg-icon").append(TCB_Front.icons.get("checkmark"));break;case"warning":case"error":s.find(".thrv-svg-icon").append(TCB_Front.icons.get("cross")),s.addClass("tve-toast-error")}setTimeout((()=>{this.$notificationWrapper.hide(),"function"==typeof i&&i()}),3e3)}}},69810:t=>{"undefined"==typeof URLSearchParams&&(window.URLSearchParams=function(t){const e=this;e.searchString=t,e.get=function(t){const o=new RegExp("[?&]"+t+"=([^&#]*)").exec(e.searchString);return null===o?null:decodeURI(o[1])||0}}),t.exports={get:t=>("string"!=typeof t&&(t=""),new URLSearchParams(window.location.search).get(t)),setUrlParam(t,e,o){const i=new URL(t);return Array.isArray(o)?o.forEach(((t,o)=>i.searchParams.append(`${e}[${o}]`,t))):o?i.searchParams.set(e,o):i.searchParams.delete(e),i.toString()}}},68382:t=>{t.exports=["attachment","attachment_id","author","author_name","calendar","cat","category","category__and","category__in","category__not_in","category_name","comments_per_page","comments_popup","custom","customize_messenger_channel","customized","cpage","day","debug","embed","error","exact","feed","fields","hour","link_category","m","minute","monthnum","more","name","nav_menu","nonce","nopaging","offset","order","orderby","p","page","page_id","paged","pagename","pb","perm","post","post__in","post__not_in","post_format","post_mime_type","post_status","post_tag","post_type","posts","posts_per_archive_page","posts_per_page","preview","robots","s","search","second","sentence","showposts","static","status","subpost","subpost_id","tag","tag__and","tag__in","tag__not_in","tag_id","tag_slug__and","tag_slug__in","taxonomy","tb","term","terms","theme","title","type","types","w","withcomments","withoutcomments","year"]},5540:t=>{var e,o;e=ThriveGlobal.$j,o=TCB_Front,t.exports={init(t){tve_frontend_options.is_editor_page?(t.find("input[data-hide],textarea[data-hide]").each(((t,e)=>{this.handleInput(e,!1)})),TVE.add_action("tve.conditional_display.activate",(t=>this.handleSmartComplete(t)))):(setTimeout((()=>this.handleSmartComplete(t))),o.$document.on("switchstate",((t,e)=>{this.handleSmartComplete(e)})),e(window).on("tcb_after_lightbox_open",((t,o)=>{this.handleSmartComplete(e(o))})),e(window).on("tl_after_lightbox_open",((t,o)=>{this.handleSmartComplete(e(o))})))},handleSmartComplete(t){t.find("[default-value]:not([data-complete-type])").each(((t,e)=>{e.value=e.getAttribute("default-value")})),t.find("[data-complete-type]").each(((t,e)=>{let i=e.dataset.completeValue;switch(e.dataset.completeType){case"user":if(e.dataset.completeValue)if(e.dataset.completeValue.includes("wp"))i=tve_frontend_options.current_user[e.dataset.completeValue.replace("wp.","")];else if("ip"===e.dataset.completeValue)i=tve_frontend_options.ip;else{const t=TCB_Front.detectBrowser();i=Object.keys(t).filter((e=>t[e]&&"webkit"!==e)).toString(),i.includes("version")&&(i=i.replace("version",TCB_Front.browser.version))}break;case"time":i=this.convertDate((e.dataset.completeValue||"")+" HH:mm:ss");break;case"query":i=TCB_Front.queryString.get(e.dataset.completeValue);break;case"post":i=tve_frontend_options.post_request_data[e.dataset.completeValue];break;case"cookie":i=o.getCookie(e.dataset.completeValue);break;case"content":i=tve_frontend_options[e.dataset.completeValue];break;case"source":i=document.referrer;break;case"shortcode":e.parentNode.dataset.completeValue&&(i=e.parentNode.dataset.completeValue),i=i.replace(/\[(.*?)\]/g,"")}!i&&e.getAttribute("data-hide")&&this.handleInput(e,!1),i=i||e.getAttribute("default-value"),i&&(e.value=i)})),t.find('[type="radio"][default-value]').each((function(){this.checked=this.value===this.getAttribute("default-value")})),t.find('[type="checkbox"][default-value]').each((function(){this.checked="checked"===this.getAttribute("default-value")}))},handleInput(t,e=!0){const o=e?"add":"remove",i=t.closest("form").querySelector(`[data-label-for="${t.parentElement.getAttribute("data-label")}"]`);t.parentElement.classList[o]("tcb-permanently-hidden"),t.parentElement.previousElementSibling&&"label"===t.parentElement.previousElementSibling.tagName.toLowerCase()&&t.parentElement.previousElementSibling.classList[o]("tcb-permanently-hidden"),i&&i.classList[o]("tcb-permanently-hidden")},convertDate(t){const e=new Date;function o(t,e){let o=t+"";for(e=e||2;o.length<e;)o="0"+o;return o}const i=e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+i)).replace(/(^|[^\\])yy/g,"$1"+i.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+i);const n=e.getMonth()+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+["\0","January","February","March","April","May","June","July","August","September","October","November","December"][n])).replace(/(^|[^\\])MMM/g,"$1"+["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n])).replace(/(^|[^\\])MM/g,"$1"+o(n))).replace(/(^|[^\\])M/g,"$1"+n);const s=e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+["","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][s])).replace(/(^|[^\\])ddd/g,"$1"+["","Sun","Mon","Tue","Wed","Thu","Fri","Sat"][s])).replace(/(^|[^\\])dd/g,"$1"+o(s))).replace(/(^|[^\\])d/g,"$1"+s);const r=e.getHours();let a;a=r>12?r-12:0===parseInt(r)?12:r,t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+o(r))).replace(/(^|[^\\])H/g,"$1"+r)).replace(/(^|[^\\])hh+/g,"$1"+o(a));const l=e.getMinutes();t=t.replace(/(^|[^\\])mm+/g,"$1"+o(l));const c=e.getSeconds();return t.replace(/(^|[^\\])ss+/g,"$1"+o(c))}}},98079:t=>{function e(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function o(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,o){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}!function(e,i){i.identifiers=o(o({},i.identifiers||{}),{},{parentStickyParent:".tcb-col,.tve-cb,.tve-page-section-in,#tve_editor",pageStickyParent:"#tve_editor,.symbol-section-in,.thrv_wrapper.section,.thrive-symbol-shortcode,.tcb-post-list",stickyParentType:".tcb-col,.tve-cb,.tve-page-section-in",parentZindexFix:""});const n={boxSizing:"",marginTop:"",marginLeft:"",height:"",top:"",bottom:"",position:"",opacity:"",minWidth:"",maxWidth:"",textDecoration:"",zIndex:""},s=function(t,e){let o;return function(){clearTimeout(o),g?t.apply(this,arguments):o=setTimeout((function(){t.apply(this,arguments)}),e)}},r=s((function(t,e){t.stop().animate(e,200)}),200);let a,l,c,d,h,p,f,u=e(),g=!1,_=!1,m=0,b="",v="left";const y={},w={};function T(t){return Math.min(l.top+a.data("$$position").top+t-p.top+a.data("marginTop"),(a.data("append-target")||a.parent()).height()-a.outerHeight())}function C(t,e,o){g=o,u.each((function(){if(x(this),!function(){if(!l.disabled||!l.disabled.length)return!0;if(f){let t=!0;return l.disabled.forEach((e=>{("desktop"===e&&!TCB_Front.$body.is(".preview-tablet,.preview-mobile")||i.$body.hasClass(`preview-${e}`))&&(t=!1)})),t}const t=i.$window.width();return t<=767?-1===l.disabled.indexOf("mobile"):t<=1023?-1===l.disabled.indexOf("tablet"):-1===l.disabled.indexOf("desktop")}()||_||!a.hasClass(`tve-sticky-${l.end}-hidden`)&&!a.is(":visible"))return _&&a.removeData("clone-sticky"),y.on_scroll_up_default(t,!0),"parallax"===l.mode&&$(a,_),void a.removeClass(`tve-scroll-${l.mode}`);"parallax"!==l.mode&&(d||(a.data("$$offset",a.offset()),a.data("marginTop",Number(a.css("margin-top").replace("px",""))),a.data("$$position",a.position()),a.data("$$scroll",t),"element"===l.end&&a.data("$$stop-offset",a.data("stop-target").offset()||{top:1e6})),p=a.data("$$offset")),y["on_scroll_"+e+"_"+l.end].call(y,t)}))}function $(t=i.$body,e=!1){t.each(((t,o)=>{i.inlineCssVariable(o,{"--parallaxR":e?"":"0","--parallaxB":e?"":"0","--parallaxS":e?"":"1","--parallaxO":e?"":"1","--parallaxTX":e?"":"0","--parallaxTY":e?"":"0","--parallaxRY":e?"":"0","--parallaxP":e?"":"1000px"})}))}function k(t=!0,e="default"){const o=t?"addClass":"removeClass",i=a;t&&i.hasClass(`tve-sticky-${e}-hidden`)?i[0].style.setProperty("display","none","important"):i[o](`tve-sticky-${e}-hidden`)[t?"fadeOut":"fadeIn"]({duration:600,complete:()=>{i[0].style.setProperty("display",t?"none":`${i.data("defaultDisplay")}`,"important"),i[0].style.setProperty("position","fixed","important")}})}function x(t){a=e(t),l=a.data("scroll_config")||{},"parallax"!==l.mode?("bottom"===l.stickyPosition&&(l.top=window.innerHeight-a.data("defaultTop")-a.outerHeight(),a.data("scroll_config",l)),c="tve-sticky-"+l.end,d=t.classList.contains(c),h=a.data("clone-sticky")||e()):h=e()}e(window).on("resize",(function(){void 0!==h&&h.css({height:a.outerHeight()})})),y.on_scroll_down_default=function(t,o){let n=0,s=!0;const f=(o=o||{}).position||"fixed";"appear"===l.mode&&(o.top=-a.outerHeight(),n=-o.top);let u=t+l.top>p.top+n;if(a.hasClass("thrv_header")){if(i.$body.hasClass("tve-tl-gr-anim"))return void y.on_scroll_up_default(t,!0);u=t+l.top>=p.top+n}if(u&&i.$body.trigger("tcb-sticky-initialized",a),"bottom"===l.stickyPosition&&(u=t+window.innerHeight>p.top+a.height()+Number(a.data("defaultTop")),s=!1,i.isBottomScroll(t)?k(!0,"default"):d&&l.top!==a.data("previousTop")&&(a[0].style.setProperty("top",`${l.top}px`),a.data("previousTop",l.top))),d)return"appear"===l.mode&&r(a,o),void(s&&i.$body.trigger("tcb-sticky-add",[a]));if(u){!function(){if(h=a.data("clone-sticky"),!h){let t=a.outerHeight();a.parent().hasClass("tcb-clear")&&(t=a.parent().outerHeight()),h=e('<div class="thrv_wrapper"></div>').css({boxSizing:"border-box",padding:0,width:a.outerWidth(),height:t,marginTop:a.css("margin-top"),marginBottom:a.css("margin-bottom"),marginLeft:a.css("margin-left"),marginRight:a.css("margin-right"),position:a.css("position"),left:a.css("left"),float:a.css("float")}),a.data("clone-sticky",h),a.trigger("tcb.sticky.ensure_placeholder")}}(),a.addClass(c),delete o.position,a.before(h);const t=h.offset(),n=TCB_Front.$body.hasClass("visible-off-screen-sidebar"),r=a.prevAll("[data-position=top]");let p;p=n&&"over"===b&&"right"!==v?parseInt(m):a[0].classList.contains("tcb-window-width")?0:t.left,e(h).remove(),a.data("$$offset",t),a.data("saved_props",{offset:t,width:a[0].style.width||"",left:a[0].style.left||""});let u=a.width();n&&(a.hasClass("tcb-window-width")||a.hasClass("thrv_header")&&i.$body.hasClass("tcb-full-header"))&&(u=Math.max(h.width(),u)),a.css(e.extend({width:u,height:a.height(),top:`calc(${l.top}px + var(--tcb-header-extra-offset,0px))`,left:`${p}px`},o));let g="0px";if("parent"===l.end){const t=a.css("margin-left");t===a.css("margin-left")&&(g=t)}a[0].style.setProperty("margin-top","0px","important"),a[0].style.setProperty("margin-left",g,"important"),a[0].style.setProperty("min-width","0","important"),a[0].style.setProperty("max-width","none","important"),a[0].style.setProperty("position",f,"important"),a[0].style.setProperty("box-sizing","content-box","important");const _=Number(a.css("z-index"));a[0].style.setProperty("z-index",isNaN(_)?"14":Math.max(_,14),"important"),a.closest(i.identifiers.parentZindexFix).css("z-index",isNaN(_)?"14":Math.max(_,14)),a.before(h),d=!0,a.data("append-target")&&(a.appendTo(a.data("append-target")),a.data("$parent").is("a")&&(a.wrap(a.data("$parent").clone().empty().addClass("tcb-sticky-anchor")),a[0].style.setProperty("text-decoration","inherit","important"))),a.hasClass("thrv_header")&&a[0].style.setProperty("z-index",90,"important"),s&&i.$body.trigger("tcb-sticky-add",[a]),r.length>0&&r.css("z-index","91")}},y.on_scroll_up_default=function(t,e){if(!h||!h.length||!d)return;(e=!!e)||"appear"!==l.mode||r(a,{top:l.top});let o=h.offset().top||0;a.data("saved_props")&&(o=a.data("saved_props").offset.top);let s=t+l.top<=o,p=!0;a.hasClass("thrv_header")&&(s=t+l.top<o),"bottom"===l.stickyPosition&&(s=t+window.innerHeight<=o+a.height()+Number(a.data("defaultTop")),p=!1,a.hasClass("tve-sticky-default-hidden")&&k(!1),d&&l.top!==a.data("previousTop")&&(a[0].style.setProperty("top",`${l.top}px`),a.data("previousTop",l.top))),e||s?(d=!1,a.removeClass(c).stop().css(Object.assign({},n,a.data("saved_props"))),document.contains(h[0])&&a.data("append-target")&&h.before(a),h.detach(),i.$body.find(".tcb-sticky-anchor:empty").remove(),p&&i.$body.trigger("tcb-sticky-remove",a),a.hasClass("tcb-window-width")&&TCB_Front.resizePageSection(a)):p&&i.$body.trigger("tcb-sticky-add",[a])},y.on_scroll_down_parent=function(t){const o=a.data("prevTop"),n=o||0,s=T(t);if(t&&"bottom"===l.stickyPosition&&s&&s===n&&(k(!0,"parent"),a.data("hideTop",s)),o&&a.data("prevTop",o?s:"0"),d)a.css({top:s}),"bottom"!==l.stickyPosition&&i.$body.trigger("tcb-sticky-add",[a]);else{const o=a.data("appendTarget")||e(),n=o.length&&(o.is(a.data("$parent"))||o.is(i.identifiers.stickyParentType))||["left","right"].includes(a.css("float"));y.on_scroll_down_default(t,{position:"absolute",left:a.data(n?"$$position":"$$offset").left,top:s})}},y.on_scroll_up_parent=function(t){if(y.on_scroll_up_default(t),d){const e=T(t);"bottom"===l.stickyPosition&&a.hasClass("tve-sticky-parent-hidden")&&(a.data("hideTop")!==e?(k(!1,"parent"),a.data("prevTop",0),a.data("hideTop",0)):a[0].style.setProperty("display","none","important")),a.css("top",e)}},y.on_scroll_down_element=function(t){const e=a.data("$$stop-offset").top-t-a.outerHeight(),o=Math.min(l.top,e),n={top:o};t&&"bottom"===l.stickyPosition&&o&&o===e&&k(!0,"element"),d?(a.css("top",n.top),"bottom"!==l.stickyPosition&&i.$body.trigger("tcb-sticky-add",[a])):y.on_scroll_down_default(t,n)},y.on_scroll_up_element=function(t){if(y.on_scroll_up_default(t),d){const e=Math.min(l.top,a.data("$$stop-offset").top-t-a.outerHeight());a.css("top",e),"bottom"===l.stickyPosition?a.hasClass("tve-sticky-element-hidden")&&e===l.top&&k(!1,"element"):i.$body.trigger("tcb-sticky-add",[a])}},y.on_scroll_down_parallax=y.on_scroll_up_parallax=t=>{const e=a.data("elem_data"),o=a.data("parallaxSettings");if(!o||!Object.keys(o).length||!e)return;const n=[],s=function(t,e){const o=e.top-t-window.innerHeight;return 100/e.elementRange*(-1*o)}(t,e);let r;function l(t,e){return t*e/100}Object.keys(o).forEach((t=>{const e=o[t];let c="";if(s>e.start){let o;r=Number(s>e.end?e.end:s);const d=function(t,e){let o,i=e.direction;if(["in-out","out-in"].includes(i)&&(i=i.split("-")[t<=e.middle?"0":"1"],"in-out"===e.direction)){const o=e.middle-e.start;"in"===i?t+=o:t-=o,t===e.middle&&(t="in"===i?-1:101)}var n;return t<e.start?o="in"===i?0:100:t<e.end?(n=e.end-e.start,o=+((t-e.start)/n*100).toFixed(2),"out"===i&&(o=100-o)):o="out"===i?0:100,o}(r,e);switch(t){case"vertical":case"horizontal":case"rotate":r="in"===e.direction?-1*r:r,o=function(t,e){return t*e}(r,e.speed);break;case"scale":o=1+e.speed*d/1e3;break;case"blur":o=e.speed-l(e.speed,d);break;case"transparency":const t=e.speed/10;o=1-t+l(t,d);break;case"3dperspective":e.perspective=Number(e.perspective),"from"===e.direction?o=(1e3-e.perspective)*(r-e.start)/100*e.speed+e.perspective:(r=100-r,o=Math.max(e.perspective,e.perspective*r/100*e.speed)),o=Math.max(o,100),i.inlineCssVariable(a,"--parallaxRY")!==`${e.degrees}deg`&&n.push({key:"RY",value:`${e.degrees}deg`})}c=`${o}${e.settings.um}`}n.push({key:e.settings.key,value:c})})),n.length&&n.forEach((t=>{i.inlineCssVariable(a,`--parallax${t.key}`,t.value)}))};const S=s((function(){u.each((function(){x(this),y.on_scroll_up_default(0,!0);const t=e(this).data("clone-sticky");t&&t.css({width:a.outerWidth()})})),C(i.$document.scrollTop(),"down",!0)}),50);w.initSticky=function(t=i.$body,o=!1){f=o,function(t,o=!1){(t=t[o?"filter":"find"]("[data-tve-scroll]")).filter(`:not(.tcb-${i.getDisplayType()}-hidden)`).each((function(){try{const t=JSON.parse(this.dataset.tveScroll);let o=e(this);if(o.hasClass("thrive-symbol-shortcode")&&(o=o.parent()),o.addClass(`tve-scroll-${t.mode}`),"parallax"===t.mode){if(!t.parallax||!Object.keys(t.parallax).length)return;const e=o.offset(),i=o.outerHeight(),n={width:o.outerWidth(),height:i,top:e.top,left:e.left,elementRange:i/2+window.innerHeight};o.data("parallaxSettings",t.parallax),o.data("elem_data",n)}else if(f)return;if(o.data("$parent",o.parent()),t.top=parseInt(t.top||"0"),t.end=t.end||"default",t.stickyPosition=t.stickyPosition||"top","bottom"===t.stickyPosition){let e=o.css("display").trim();"none"===e&&(e="block"),o.data("defaultTop",t.top),o.data("previousTop",t.top),o.data("defaultDisplay",e),t.top=window.innerHeight-t.top-o.outerHeight()}else t.top+=i.body_offset?i.body_offset.top:e("body").offset().top;"desktop"!==i.getDisplayType()&&(t.top=t.top-(e("#wpadminbar").height()||0)),o.data("scroll_config",t).data("append-target",function(t,e){return!(t.find("iframe,video").length||t.find(".tcb-video-background-el").length||t.hasClass("thrv_header"))&&("parent"===e?t.parent().closest(i.identifiers.parentStickyParent):t.closest(i.identifiers.pageStickyParent))}(o,t.end)),"element"===t.end&&o.data("stop-target",e("#"+(t.el_id&&t.el_id.replace("#","")||"some-not-found-id"))),f||delete this.dataset.tveScroll,u=u.add(o)}catch(t){console.warn(t)}}))}(t),u.length&&($(),f||(i.$body[0].style.overflowX="hidden")),i.add_scroll_callback(C),i.addResizeCallback(S),i.$body.length&&(m=i.inlineCssVariable(i.$body,"--off-screen-sidebar-size")),b=i.$body.attr("data-off-screen-type"),v=i.$body.attr("data-off-screen-side")},w.destroyScrollBehavior=function(){_=!0,TCB_Front.$window.trigger("scroll"),u=e(),_=!1},w.resetElementsPosition=()=>{_=!0,TCB_Front.$window.trigger("scroll"),_=!1,TCB_Front.$window.trigger("scroll")},w.forceAddElement=function(t){u=u.add(t)},t.exports=w}(ThriveGlobal.$j,TCB_Front)},73771:t=>{(e=>{const o={get(t){const e=this.icons[t]||"";return e?'<svg xmlns="http://www.w3.org/2000/svg" class="tcb-{icon}" viewBox="{viewbox}">{html}</svg>'.replace("{viewbox}",e.viewbox||"0 0 32 32").replace("{icon}",t).replace("{html}",e.html||e):""},render(t,e,o="html",i=!0){t[o](this.get(e)),i&&t.addClass("thrv-svg-icon")},migrate(t){const o=["cross","forward"],i={tve_s_fb_share:"facebook",tve_s_t_share:"twitter",tve_s_in_share:"linkedin",tve_s_pin_share:"pinterest",tve_s_xing_share:"xing"};t.find('[class^="thrv-icon-"], [class*=" thrv-icon-"], .tve_s_item').not(".thrv-svg-icon").each(((t,n)=>{o.some((t=>!!n.className.includes(t)&&(this.render(e(n),t),!0)))||Object.keys(i).forEach((t=>{n.className.includes(t)&&!n.querySelector(".tcb-icon")&&this.render(e(n).find(".tve_s_icon"),i[t])}))})),this.render(t.find(".rv_button_rounded_rectangle_light .overlay_play_button:empty"),"yt-play")},icons:{spinner9:'<path d="M16 0c-8.711 0-15.796 6.961-15.995 15.624 0.185-7.558 5.932-13.624 12.995-13.624 7.18 0 13 6.268 13 14 0 1.657 1.343 3 3 3s3-1.343 3-3c0-8.837-7.163-16-16-16zM16 32c8.711 0 15.796-6.961 15.995-15.624-0.185 7.558-5.932 13.624-12.995 13.624-7.18 0-13-6.268-13-14 0-1.657-1.343-3-3-3s-3 1.343-3 3c0 8.837 7.163 16 16 16z"></path>',cross:'<path d="M31.708 25.708c-0-0-0-0-0-0l-9.708-9.708 9.708-9.708c0-0 0-0 0-0 0.105-0.105 0.18-0.227 0.229-0.357 0.133-0.356 0.057-0.771-0.229-1.057l-4.586-4.586c-0.286-0.286-0.702-0.361-1.057-0.229-0.13 0.048-0.252 0.124-0.357 0.228 0 0-0 0-0 0l-9.708 9.708-9.708-9.708c-0-0-0-0-0-0-0.105-0.104-0.227-0.18-0.357-0.228-0.356-0.133-0.771-0.057-1.057 0.229l-4.586 4.586c-0.286 0.286-0.361 0.702-0.229 1.057 0.049 0.13 0.124 0.252 0.229 0.357 0 0 0 0 0 0l9.708 9.708-9.708 9.708c-0 0-0 0-0 0-0.104 0.105-0.18 0.227-0.229 0.357-0.133 0.355-0.057 0.771 0.229 1.057l4.586 4.586c0.286 0.286 0.702 0.361 1.057 0.229 0.13-0.049 0.252-0.124 0.357-0.229 0-0 0-0 0-0l9.708-9.708 9.708 9.708c0 0 0 0 0 0 0.105 0.105 0.227 0.18 0.357 0.229 0.356 0.133 0.771 0.057 1.057-0.229l4.586-4.586c0.286-0.286 0.362-0.702 0.229-1.057-0.049-0.13-0.124-0.252-0.229-0.357z"></path>',checkmark:'<path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"></path>',forward:{viewbox:"0 0 18 18",html:'<path d="M16.711 8.29l-6-5.996c-0.391-0.391-1.026-0.391-1.417 0s-0.391 1.025 0 1.417l4.293 4.29h-11.59c-0.553 0-1.001 0.448-1.001 1s0.448 1 1.001 1h11.59l-4.292 4.29c-0.391 0.391-0.391 1.025 0.001 1.417s1.026 0.391 1.417 0l6-5.997c0.196-0.196 0.294-0.453 0.294-0.71s-0.097-0.514-0.294-0.71z"></path>'},sort:{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703zM16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},"sort-desc":{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703z"></path>'},"sort-asc":{viewbox:"0 0 16 28",html:'<path d="M16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},facebook:{viewbox:"0 0 16 28",html:'<path d="M14.984 0.187v4.125h-2.453q-1.344 0-1.813 0.562t-0.469 1.687v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406q0-2.906 1.625-4.508t4.328-1.602q2.297 0 3.563 0.187z"></path>'},twitter:{viewbox:"0 0 26 28",html:'<path d="M25.312 6.375q-1.047 1.531-2.531 2.609 0.016 0.219 0.016 0.656 0 2.031-0.594 4.055t-1.805 3.883-2.883 3.289-4.031 2.281-5.047 0.852q-4.234 0-7.75-2.266 0.547 0.063 1.219 0.063 3.516 0 6.266-2.156-1.641-0.031-2.938-1.008t-1.781-2.492q0.516 0.078 0.953 0.078 0.672 0 1.328-0.172-1.75-0.359-2.898-1.742t-1.148-3.211v-0.063q1.062 0.594 2.281 0.641-1.031-0.688-1.641-1.797t-0.609-2.406q0-1.375 0.688-2.547 1.891 2.328 4.602 3.727t5.805 1.555q-0.125-0.594-0.125-1.156 0-2.094 1.477-3.57t3.57-1.477q2.188 0 3.687 1.594 1.703-0.328 3.203-1.219-0.578 1.797-2.219 2.781 1.453-0.156 2.906-0.781z"></path>'},linkedin:{viewbox:"0 0 28 28",html:'<path d="M5.453 9.766v15.484h-5.156v-15.484h5.156zM5.781 4.984q0.016 1.141-0.789 1.906t-2.117 0.766h-0.031q-1.281 0-2.063-0.766t-0.781-1.906q0-1.156 0.805-1.914t2.102-0.758 2.078 0.758 0.797 1.914zM24 16.375v8.875h-5.141v-8.281q0-1.641-0.633-2.57t-1.977-0.93q-0.984 0-1.648 0.539t-0.992 1.336q-0.172 0.469-0.172 1.266v8.641h-5.141q0.031-6.234 0.031-10.109t-0.016-4.625l-0.016-0.75h5.141v2.25h-0.031q0.313-0.5 0.641-0.875t0.883-0.812 1.359-0.68 1.789-0.242q2.672 0 4.297 1.773t1.625 5.195z"></path>'},pinterest:'<path d="M16 0c-8.837 0-16 7.163-16 16 0 6.778 4.217 12.568 10.169 14.899-0.14-1.266-0.266-3.208 0.055-4.59 0.291-1.249 1.876-7.953 1.876-7.953s-0.479-0.958-0.479-2.375c0-2.225 1.29-3.886 2.895-3.886 1.365 0 2.024 1.025 2.024 2.254 0 1.373-0.874 3.425-1.325 5.327-0.377 1.593 0.799 2.892 2.369 2.892 2.844 0 5.030-2.999 5.030-7.327 0-3.831-2.753-6.509-6.683-6.509-4.552 0-7.225 3.415-7.225 6.943 0 1.375 0.53 2.85 1.191 3.651 0.131 0.158 0.15 0.297 0.111 0.459-0.121 0.506-0.391 1.593-0.444 1.815-0.070 0.293-0.232 0.355-0.535 0.214-1.998-0.93-3.248-3.852-3.248-6.198 0-5.047 3.667-9.682 10.572-9.682 5.55 0 9.864 3.955 9.864 9.241 0 5.514-3.477 9.952-8.302 9.952-1.621 0-3.145-0.842-3.667-1.837 0 0-0.802 3.055-0.997 3.803-0.361 1.39-1.337 3.132-1.989 4.195 1.497 0.463 3.088 0.713 4.738 0.713 8.836-0 16-7.163 16-16s-7.163-16-16-16z"></path>',xing:{viewbox:"0 0 22 28",html:'<path d="M9.328 10.422q-0.156 0.281-4.016 7.125-0.422 0.719-1.016 0.719h-3.734q-0.328 0-0.484-0.266t0-0.562l3.953-7q0.016 0 0-0.016l-2.516-4.359q-0.187-0.344-0.016-0.578 0.141-0.234 0.5-0.234h3.734q0.625 0 1.031 0.703zM21.922 0.391q0.172 0.25 0 0.578l-8.25 14.594v0.016l5.25 9.609q0.172 0.313 0.016 0.578-0.156 0.234-0.5 0.234h-3.734q-0.656 0-1.031-0.703l-5.297-9.719q0.281-0.5 8.297-14.719 0.391-0.703 1-0.703h3.766q0.344 0 0.484 0.234z"></path>'},"yt-play":{viewbox:"0 0 28 28",html:'<path d="M20 14q0-0.578-0.469-0.844l-8-5q-0.484-0.313-1.016-0.031-0.516 0.281-0.516 0.875v10q0 0.594 0.516 0.875 0.25 0.125 0.484 0.125 0.313 0 0.531-0.156l8-5q0.469-0.266 0.469-0.844zM28 14q0 1.5-0.016 2.344t-0.133 2.133-0.352 2.305q-0.25 1.141-1.078 1.922t-1.937 0.906q-3.469 0.391-10.484 0.391t-10.484-0.391q-1.109-0.125-1.945-0.906t-1.086-1.922q-0.219-1.016-0.336-2.305t-0.133-2.133-0.016-2.344 0.016-2.344 0.133-2.133 0.352-2.305q0.25-1.141 1.078-1.922t1.937-0.906q3.469-0.391 10.484-0.391t10.484 0.391q1.109 0.125 1.945 0.906t1.086 1.922q0.219 1.016 0.336 2.305t0.133 2.133 0.016 2.344z"></path>'},"arrow-left":{viewbox:"0 0 12 22",html:'<path d="M14.653 43.496l9.92-9.919c.379-.379.379-.992 0-1.37l-9.92-9.92c-.613-.613-1.653-.178-1.653.685v19.839c0 .863 1.04 1.298 1.653.685z" transform="translate(-19573 -418) translate(19560 396) matrix(-1 0 0 1 37.857 0)"/>'},"arrow-right":{viewbox:"0 0 12 22",html:'<path d="M14.653 43.496l9.92-9.919c.379-.379.379-.992 0-1.37l-9.92-9.92c-.613-.613-1.653-.178-1.653.685v19.839c0 .863 1.04 1.298 1.653.685z" transform="translate(-20901 -418) matrix(-1 0 0 1 20926 396) matrix(-1 0 0 1 37.857 0)"/>'},"chevron-left-solid":{viewbox:"0 0 320 512",html:'<path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path>'},"chevron-right-solid":{viewbox:"0 0 320 512",html:'<path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>'},dot:{viewbox:"0 0 24 24",html:'<path d="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z"/>'},star:{viewbox:"0 0 576 512",html:'<path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"></path>'}}};t.exports=o})(ThriveGlobal.$j)},22138:t=>{!function(e,o){function i(t){try{n.each((function(){const i=e(this);if(!i.data("typed"))return;const n=o.$window.height();t+n>=i.offset().top&&i.offset().top>t||"start"===i.attr("data-typefocus")?i.typed("start"):(i.attr("data-typefocus"),i.typed("pause"))}))}catch(t){console.log(t)}}let n=e();t.exports=function(t){n=n.add(t.find(".tve_typefocus")),setTimeout((function(){try{n.each((function(){let t=[];const o=e(this);if(0===o.attr("data-typist").length)return;const i=parseInt(o.attr("data-speed")),n=o.attr("data-colors");t.push(o.text()),t=t.concat(o.attr("data-typist").split("|")),o.typed({strings:t,loop:!0,typeSpeed:125,backSpeed:50,highlightClass:1===parseInt(o.attr("data-highlight"))?"tve_selected_typist":"",highlightStyle:1===parseInt(o.attr("data-highlight"))&&n?"background-color:"+n:"",backDelay:i,contentType:"text",startDelay:800,showCursor:o.hasClass("tve_typefocus_cursor")})}))}catch(t){console.log(t)}}),1e3),o.add_scroll_callback(i)}}(ThriveGlobal.$j,TCB_Front)},66640:(t,e,o)=>{(e=>{class i{static isEditorPage(){return tve_frontend_options.is_editor_page}static isExternal(t){return i.getDomain(location.href)!==i.getDomain(t)}static getDomain(t){return t.replace("http://","").replace("https://","").split("/")[0]}static restAjax({type:t="POST",route:o="",data:i}){return e.ajax({headers:{"X-WP-Nonce":tve_frontend_options.nonce},url:o,type:t,data:i})}static handleContent(t,o=!0){e(window).trigger(o?"tcb_on_content_show":"tcb_on_content_hide"),e(window).trigger("tve_after_content_toggle",[t,o])}static jsonParse(t,e,o=null,i={}){if(null==o){let o;try{o=JSON.parse(t.attr(e)||JSON.stringify(i))}catch(e){console.warn("Could not get json data for element:",t),o=i}return o}return t.attr(e,JSON.stringify(o))}static toast(t,e,o){"string"!=typeof t&&(t=t.message||t.error||t.success),e||(e=!1),TCB_Front.notificationElement.toggle(t,e?"error":"success",o)}static windowWidth(){let t,e;try{e=window.parent&&window.parent.TVE&&window.parent.TVE.main,t=e&&window.parent.TVE.main.$frame.width()||TCB_Front.$window[0].innerWidth}catch(o){t=TCB_Front.$window[0].innerWidth,e=!1}let o=window.screen.width;return window.matchMedia("(orientation:landscape)").matches&&window.screen.height>o&&(o=window.screen.height),e||t>o+20&&t>window.outerWidth+20&&(t=o),t}static getBrowserScrollSize(){const t={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},o=e("<div>").css(e.extend({},t)),i=e("<div>").css(e.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},t)).append(o).appendTo("body").scrollLeft(1e3).scrollTop(1e3),n={height:i.offset().top-o.offset().top||0,width:i.offset().left-o.offset().left||0};return i.remove(),n}static hasAdminBar(){return e("#wpadminbar").length>0}static appendFormParamsToURL(t,o){return!Array.isArray(o)&&o.jquery&&(o=i.buildFormParams(o)),t+(t.split("?")[1]?"&":"?")+e.param(o)}static buildFormParams(t){let e=[];return t.find(".tve_lg_input_container input:not([name=user_consent]), .tve_lg_input_container textarea").not("input[type=hidden]").not("input[type=password]").each(((t,o)=>{const i=ThriveGlobal.$j(o).serializeArray();if(i[0]){o.dataset.name&&(i[0].name=o.dataset.name.replace(/\s/g,"_")),TCB_Front.reservedTerms.includes(i[0].name.toLowerCase())&&(i[0].name="tve_"+i[0].name);const t=e.findIndex((t=>t.name===i[0].name));t>=0?e[t].value=e[t].value+", "+i[0].value:e=e.concat(i)}})),e}static appendRandomParamToURL(t){return t+(t.split("?")[1]?"&":"?")+"_="+Math.floor(1e3*Math.random())}static isEmail(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}static addHttp(t){return!(t=t.trim())||0===t.indexOf("#")||/^mailto/.test(t)||/^tel/.test(t)||/^(?:f|ht)tps?\:\/\//.test(t)||(t="https://"+t),t}static unserialize(t){const e="undefined"!=typeof window?window:o.g,i=function(t){let e=t.length;for(let o=t.length-1;o>=0;o--){const i=t.charCodeAt(o);i>127&&i<=2047?e++:i>2047&&i<=65535&&(e+=2),i>=56320&&i<=57343&&o--}return e-1},n=function(t,o,i,n){throw new e[t](o,i,n)},s=function(t,e,o){const i=[];let s=2,r=t.slice(e,e+1);for(;r!==o;)s+e>t.length&&n("Error","Invalid"),i.push(r),r=t.slice(e+(s-1),e+s),s+=1;return[i.length,i.join("")]};return function t(e,o){let r,a,l,c,d,h,p,f,u,g,_,m,b,v,y,w,T,C=0,$=function(t){return t};const k=e.slice(o,o+1).toLowerCase();switch(o||(o=0),r=o+2,k){case"i":$=function(t){return parseInt(t,10)},f=s(e,r,";"),C=f[0],p=f[1],r+=C+1;break;case"b":$=function(t){return 0!==parseInt(t,10)},f=s(e,r,";"),C=f[0],p=f[1],r+=C+1;break;case"d":$=function(t){return parseFloat(t)},f=s(e,r,";"),C=f[0],p=f[1],r+=C+1;break;case"n":p=null;break;case"s":u=s(e,r,":"),C=u[0],g=u[1],r+=C+2,f=function(t,e,o){const n=[];let s,r;for(s=0;s<o;s++)r=t.slice(e+(s-1),e+s),n.push(r),o-=i(r);return[n.length,n.join("")]}(e,r+1,parseInt(g,10)),C=f[0],p=f[1],r+=C+2,C!==parseInt(g,10)&&C!==p.length&&n("SyntaxError","String length mismatch");break;case"a":for(p={},a=s(e,r,":"),C=a[0],l=a[1],r+=C+2,d=parseInt(l,10),c=!0,_=0;_<d;_++)b=t(e,r),v=b[1],m=b[2],r+=v,y=t(e,r),w=y[1],T=y[2],r+=w,m!==_&&(c=!1),p[m]=T;if(c){for(h=new Array(d),_=0;_<d;_++)h[_]=p[_];p=h}r+=1;break;default:n("SyntaxError","Unknown / Unhandled data type(s): "+k)}return[k,r-o,$(p)]}(t+"",0)[2]}static validateImageUrl(t){return!!t.match(/.*\.(gif|jpe?g|bmp|png)$/gim)}static getQueryStrings(){return window.location.search.replace("?","").split("&").reduce(((t,e)=>{const o=e.split("=");return t[o[0]]=o[1],t}),{})}static parseJwt(t){const[,e=""]=t.split("."),o=e.replace(/-/g,"+").replace(/_/g,"/");let i;try{i=JSON.parse(decodeURIComponent(window.atob(o).split("").map((t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2))).join("")))}catch(t){i={}}return i}static insertHeadScripts(t,e,o){const i=document.getElementsByTagName("head")[0],n=document.createElement("script");n.async=!0,"function"==typeof o&&(n.onload=n.onreadystatechange=o),void 0!==e&&(n.id=e),n.src=t,i.insertBefore(n,i.firstChild)}static insertStylesheet(t,e){const o=document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.id=e,i.type="text/css",i.href=t,o.insertBefore(i,o.firstChild)}static hasResource(t,e){return null!==document.getElementById(t)||null!==document.querySelector(`[src="${e}"],[href="${e}"]`)}static getAttr(t){const o={};return e.each(t[0].attributes,(function(t,e){o[e.name]=e.value})),o}}t.exports=i,window.TCB_Front.toast=i.toast,window.tve_is_email=i.isEmail})(ThriveGlobal.$j)}},e={};function o(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,o),s.exports}if(o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),!window.ThriveGlobal||!window.ThriveGlobal.$j){const t=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},t&&(window.$=t)}window.TCB_Front=window.TCB_Front||{},TCB_Front.Hooks=o(89322)(ThriveGlobal.$j),window.addEventListener("load",(function(){tve_frontend_options.is_editor_page||(TCB_Front.sticky.initSticky(TCB_Front.$body,!!tve_frontend_options.is_editor_page),TCB_Front.add_scroll_callback(TCB_Front.showDataElements,TCB_Front))})),void 0===TCB_Front.js_modules&&(TCB_Front.js_modules={}),ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser(){const t={},e=function(){let t,e,o=-1;return"Microsoft Internet Explorer"===navigator.appName?(t=navigator.userAgent,e=new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})"),null!==e.exec(t)&&(o=parseFloat(RegExp.$1))):"Netscape"===navigator.appName&&(t=navigator.userAgent,e=new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})"),null!==e.exec(t)&&(o=parseFloat(RegExp.$1))),o}();if(e>0)t.msie=!0;else{const e=navigator.userAgent.toLowerCase(),o=/(edge)[ \/]([\w.]+)/.exec(e)||/(edg)[ \/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],i={browser:o[1]||"",version:o[2]||"0"};"edg"===i.browser&&(i.browser="edge"),o[1]&&(t[i.browser]=!0),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0)}return t.msie&&(t.version=e),t.ios=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,t.version||(t.version=this.getBrowserVersion(t)),t},getBrowserVersion(t={}){const e=navigator.userAgent;let o="";return o=t.chrome?/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i:t.mozilla?/(?:firefox|fxios)\/(\d+(\.?_?\d+)+)/i:/version\/(\d+(\.?_?\d+)+)/i,(t=>{const o=e.match(t);return o&&o.length>0&&o[1]||""})(o)},getCookie(t){const e=`${t}=`,o=document.cookie.split(";");for(let t=0;t<o.length;t++){let i=o[t];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},setCookie(t,e,o){if("number"==typeof o.expires){const t=o.expires,e=o.expires=new Date;e.setTime(+e+864e5*t)}return document.cookie=[encodeURIComponent(t),"=",encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")},isInViewport(t,e=0,o=!1){(t instanceof ThriveGlobal.$j||t.jquery)&&(t=t[0]);const i=t.getBoundingClientRect();let n=!(i.bottom<0||i.top>window.innerHeight-e);return o&&n&&(n=t.offsetLeft>0&&t.offsetLeft+i.width<window.innerHeight),n},isBottomScroll:t=>window.innerHeight>0&&t+window.innerHeight===ThriveGlobal.$j(document).height(),inlineCssVariable(t,e,o,i=""){t=t.jquery?t[0]:t;const n=window.getComputedStyle(t,i);if(Array.isArray(e)){const t={};return e.forEach((e=>t[e]=n.getPropertyValue(e))),t}if("string"==typeof e)return void 0!==o?void t.style.setProperty(e,o,i):n.getPropertyValue(e);ThriveGlobal.$j.isPlainObject(e)&&Object.keys(e).forEach((o=>t.style.setProperty(o,e[o],i)))},bodyOffsetTop(){const t=TCB_Front.$body.find("#mm-preview-settings-bar");let e=TCB_Front.$body.length?TCB_Front.$body.offset().top:0;return t.length&&(e+=t.height()),e||0},handleIframes(t=TCB_Front.$body,e=!0){const o=e?"src":"data-src",i=e?"data-src":"src",n=e?"remove":"add",s=["iframe"+(e&&!tve_frontend_options.allow_video_src?":visible":""),`.tcb-lazy-load[data-type="external"]${e?":visible":""} source`];t.find(s.join(", ")).not(".thrv_social_default iframe").each((function(){if(!e&&this.classList.contains("tcb-dr-done"))return;if(TCB_Front.Hooks.applyFilters("tcb.is_iframe_load_prevented",!1,this,e))return;const t=this.getAttribute(i);t&&"null"!==t&&(this.setAttribute(o,t),e&&"SOURCE"===this.tagName&&ThriveGlobal.$j(this).closest("video")[0].load()),this.removeAttribute(i),this.classList[n]("tcb-dr-done")}))},getMediaAttr(t,e,o=this.getDisplayType()){const i=[o];let n=t.attr(e+o.charAt(0));switch(o){case"tablet":i.push("desktop");break;case"mobile":i.push("tablet"),i.push("desktop")}for(;(void 0===n||!n.length)&&i.length;)n=t.attr(`${e}-${i.shift().charAt(0)}`);return void 0===n&&(n=t.attr(e)),n},getDisplayType(){let t="desktop";if(tve_frontend_options.is_editor_page)TVE&&TVE.main&&TVE.main.device?t=TVE.main.device:TCB_Front.$body.is(".preview-tablet")?t="tablet":TCB_Front.$body.is(".preview-mobile")&&(t="mobile");else{const e=this.Utils.windowWidth();e<=767?t="mobile":e<=1023&&(t="tablet")}return t},isValidUrl:t=>/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t),pageSectionHeight(){const t=TCB_Front.$window;ThriveGlobal.$j(".pdfbg.pdwbg").css({"box-sizing":"border-box",height:t.height()+"px"}),ThriveGlobal.$j(".pddbg").css("max-width",t.width()+"px"),ThriveGlobal.$j(".pddbg.pdfbg").each((function(){const t=ThriveGlobal.$j(this).css("height",""),e=t.attr("data-height"),o=t.attr("data-width");if(void 0!==e&&void 0!==o){const i=t.parent().width(),n=i*e/o;i<=o?t.css("min-height",n+"px"):t.css({"min-height":e+"px"})}}))},openLightbox:o(91806),event_triggers(t){!tve_frontend_options.is_editor_page&&window.TVE_Event_Manager_Registered_Callbacks&&t.find(".tve_evt_manager_listen").each((function(){const t=ThriveGlobal.$j(this);let e=t.attr("data-tcb-events");if(e||(e=t.closest(".thrv_wrapper").attr("data-tcb-events")),e)try{e=JSON.parse(e.replace("__TCB_EVENT_","").replace("_TNEVE_BCT__","")),ThriveGlobal.$j.each(e,(function(e,o){if(TVE_Event_Manager_Registered_Callbacks[o.a]){const e="mouseover"===o.t?"mouseenter":o.t;t.off(e+".tcbevt"+o.t).on(e+".tcbevt"+o.t,(function(){return TVE_Event_Manager_Registered_Callbacks[o.a].call(t[0],o.t,o.a,o.config||o.c||{})}))}}))}catch(t){console.warn(t,"Could not parse events!")}}))},showDataElements(t){ThriveGlobal.$j(".thrv_data_element").not(".thrv_data_element_start").each((function(){const e=ThriveGlobal.$j(this),o=TCB_Front.$window.height();t+o>=e.offset().top+e.outerHeight()&&"hidden"!==e.css("visibility")&&e.addClass("thrv_data_element_start").trigger("tve.start-animation")}))},onDOMReady(t){if(this.$body=ThriveGlobal.$j("body"),this.isRTL="rtl"===ThriveGlobal.$j("html").attr("dir"),this.body_offset=this.$body.offset(),void 0===t&&(t=this.$body),this.notificationElement=new this.notification,TCB_Front.$window.on("tve_after_content_toggle",((t,e,o=!0)=>{TCB_Front.handleIframes(e,o)})),TCB_Front.$window.trigger("tve_after_content_toggle",[t]),this.icons.migrate(t),this.$body.addClass(`tve-${this.getDisplayType()}-browser`),Object.keys(TCB_Front.browser).length&&Object.keys(TCB_Front.browser).forEach((t=>{-1===t.indexOf("webkit")&&TCB_Front.browser[t]&&this.$body.addClass(`tve-${t}-browser`)})),this.smartComplete.init(t),tve_frontend_options.is_editor_page&&ThriveGlobal.$j("head").append('<div id="tve-clipboard-container" style="display:none !important;"></div>'),tve_frontend_options.is_editor_page||(this.add_scroll_callback(this.showDataElements,this),this.header(t),this.sticky.initSticky(t,!!tve_frontend_options.is_editor_page)),this.fix_compat_issues(t),this.replaceDynamicContent(),tve_frontend_options.is_editor_page||("undefined"!=typeof ResizeObserver?new ResizeObserver((()=>{this.$body.trigger("tcb.body.resize"),TCB_Front.resizePageSection()})).observe(document.body):TCB_Front.addResizeCallback(TCB_Front.resizePageSection)),tve_frontend_options.is_editor_page)try{ThriveGlobal.$j("html").getNiceScroll().remove()}catch(t){}else{if(void 0===window.tcb_autofill){window.tcb_autofill=TCB_Front.getCookie("account_create_fields");try{window.tcb_autofill&&(window.tcb_autofill=decodeURIComponent(window.tcb_autofill),window.tcb_autofill=JSON.parse(window.tcb_autofill))}catch(t){window.tcb_autofill=null}window.tcb_autofill||(window.tcb_autofill=null)}window.tcb_autofill&&ThriveGlobal.$j.isArray(window.tcb_autofill)&&(ThriveGlobal.$j.each(window.tcb_autofill,(function(e,o){-1===o.name.indexOf("[]")&&t.find("input[name="+o.name+"]").each((function(){const t=ThriveGlobal.$j(this);t.data("tcb-autofill")||(t.val(o.value).hide(),t.parent().append('<div class="tve-editable-field"><p>'+o.value+'</p><span class="tve_sc_icon icon-lock tve-edit-field"></span></div>'),t.data("tcb-autofill",1))}))})),setTimeout((function(){TCB_Front.setCookie("account_create_fields",null,{path:"/"})}),2500)),ThriveGlobal.$j("input[type=password], input[name=confirm_password]").on("keyup",(function(){const t=ThriveGlobal.$j(this),o=this.value.trim(),i=t.siblings(".tve-password-strength-wrapper");let n,s="#e3ecef",r="";if(i.find(".tve-password-strength").css({"background-color":"#e3ecef"}),!o)return void i.find(".tve-password-strength").css("background-color","");const a=e(o);a<30?(s="#ef5350",r="Weak",n=i.find(".tve-password-strength:lt(1)")):a>=30&&a<60?(s="#ffa726",r="So-so",n=i.find(".tve-password-strength:lt(2)")):a>=60&&a<80?(s="#8bc34a",r="Good",n=i.find(".tve-password-strength:lt(3)")):(s="#4caf50",r="Great!",n=i.find(".tve-password-strength:lt(4)")),n.each((function(){ThriveGlobal.$j(this).css({"background-color":s})})),i.attr("data-score",a).find(".tve-password-strength-text").text(r).css({color:s})}));const e=function(t){let e=0;if(!t||t.length<5||/(passwd|mypass|password|wordpress)/g.test(t))return e;e=5*String.prototype.concat(...new Set(t)).length,/[a-z]/.test(t)&&(e+=10),/[A-Z]/.test(t)&&(e+=10);const o=t.match(/\d/g);o&&(e+=2*o.length);const i=t.match(/\W/g);return i&&(e+=10*i.length),parseInt(e)};TCB_Front.$document.on("click",".tve-edit-field",(function(){ThriveGlobal.$j(this).parent().hide().prev().show()})),TCB_Front.$document.on("click",".tve-close-error-message",(function(){ThriveGlobal.$j(this).parent().hide().prev().show()})),TCB_Front.$document.on("click",".tve-image-overlay",(function(){const t=ThriveGlobal.$j(this).parent();t.is("a")||t.find("img").trigger("click")})),TCB_Front.$document.on("mouseenter mouseout",".tve-image-overlay",(function(t){ThriveGlobal.$j(this).parent().find("img").trigger(t.type)})),TCB_Front.queryString.get("tcb_lightbox")||TCB_Front.$window.trigger("tve_after_content_toggle",[ThriveGlobal.$j(".tve_p_lb_content"),!1]),this.init_typefocus(t)}if(TCB_Front.remove_empty_symbols(t),TCB_Front.footer_styling(t),!tve_frontend_options.is_editor_page){const t=ThriveGlobal.$j(".tve-fb-comments");t.length&&(ThriveGlobal.$j("#fb-root").length&&ThriveGlobal.$j("head").append('<div id="fb-root"></div>'),t.each((function(){const t=this.parentNode;""===this.getAttribute("data-href")&&(this.setAttribute("data-href",window.location.href.split("?")[0]),this.setAttribute("data-width","100%")),this.classList.add("fb-comments"),setTimeout((()=>{FB.XFBML.parse(t)}),200)})));const e=ThriveGlobal.$j(".thrv_disqus_comments #disqus_thread");e.length&&(window.disqus_shortname=e.attr("data-disqus_shortname"),""===e.attr("data-disqus_url")?window.disqus_url=window.location:window.disqus_url=e.attr("data-disqus_url"),window.disqus_identifier=window.disqus_url,"undefined"==typeof DISQUS&&ThriveGlobal.$j.getScript("//"+disqus_shortname+".disqus.com/embed.js"))}window.mejs&&ThriveGlobal.$j(".tcb-video-shortcode").not(".mejs-container").filter((function(){return!ThriveGlobal.$j(this).parent().hasClass(".mejs-mediaelement")})).mediaelementplayer(),this.resizePageSection(),setTimeout((()=>{try{window.dispatchEvent(new CustomEvent("resize",{detail:{fromTcb:!0}}))}catch(t){}})),this.init_scroll(),this.initResize(),this.enableHighlightViewportAnimations(t),TCB_Front.add_scroll_callback((e=>{e>0&&this.enableHighlightViewportAnimations(t)})),this.handleAds(),setTimeout(this.handleAds,5e3),ThriveGlobal.$j(window).trigger("tcb_after_dom_ready")},handleAds(){TCB_Front.$body.find('ins[data-adsbygoogle-status="done"]').each(((t,e)=>{ThriveGlobal.$j(e).parentsUntil("body").each(((t,e)=>{e.style.setProperty("height",""),e.style.setProperty("min-height","")}))}))},enableHighlightViewportAnimations(t){t.find('[data-tcb-highlight-animation^="viewport"]').each(((t,e)=>{const o=ThriveGlobal.$j(e),i=o.data("tcb-highlight-animation"),n=e.classList.contains("tcb-animated");TCB_Front.isInViewport(e)?(n||tve_frontend_options.is_editor_page||this.refreshCachedSvg(o),o.addClass("tcb-animated")):n&&"viewport_repeat"===i&&e.classList.remove("tcb-animated")}))},refreshCachedSvg(t){let e=t.css("--tve-highlight-background");void 0!==e&&e.length&&(e=decodeURIComponent(e.replace('url("data:image/svg+xml,',"").replace('")',"")),e=e.replace("</svg>",`<span id="tcb-${Math.random()}"></span></svg>`),t.css("--tve-highlight-background",`url("data:image/svg+xml,${encodeURIComponent(e)}")`))},replaceDynamicContent(){const t=TCB_Front.detectBrowser();ThriveGlobal.$j(".tve-browser-data").text(Object.keys(t).filter((e=>t[e]&&"webkit"!==e)).toString())},resizePageSection(t){void 0===t&&(t=ThriveGlobal.$j(".tcb-window-width"));const e=!!TCB_Front.$body.length&&TCB_Front.inlineCssVariable(TCB_Front.$body,"--off-screen-sidebar-size");let o=tve_frontend_options.is_editor_page?TCB_Front.$body.outerWidth():TCB_Front.$window.width(),i=0;e&&("left"===TCB_Front.$body.attr("data-off-screen-side")?(i=parseInt(TCB_Front.$body.css("padding-left")),o-=i):o-=parseInt(TCB_Front.$body.css("padding-right"))),o+="px",t.each(((t,e)=>{const n=ThriveGlobal.$j(e);let s=n.css("left");s="auto"===s?0:Number(n.css("left").replace("px","")),s=s+i-n.offset().left,n.css({width:o,left:s+"px"})}))},remove_empty_symbols(t){t.find("div.thrv_symbol").each((function(){const t=jQuery(this);if(t.closest(".tve-symbol-container").length)return;const e=t.clone();e.find(".thrive-shortcode-config").remove(),""===e.html()&&t.remove()}))},footer_styling:o(18684),init_scroll:o(49110),initResize:o(41523),sticky:o(98079),fix_compat_issues:o(41954),reservedTerms:o(68382),init_typefocus:o(22138),header:o(43569),queryString:o(69810),smartComplete:o(5540),icons:o(73771),notification:o(15039)}),"undefined"!=typeof ThriveGlobal&&(TCB_Front.$window=ThriveGlobal.$j(window),TCB_Front.$document=ThriveGlobal.$j(document),TCB_Front.$body=ThriveGlobal.$j("body"),TCB_Front.browser=TCB_Front.detectBrowser(),TCB_Front.$document.ready((function(){setTimeout((function t(){if(void 0!==Object.values(TCB_Front.js_modules).find((t=>!t.loaded)))return console.log("Thrive Architect - not all JS modules are loaded, re-trying in 20ms..."),void setTimeout(t,20);let e=ThriveGlobal.$j(tve_frontend_options.is_editor_page?"#tve_editor":"body");"undefined"!=typeof TVE&&"function"==typeof TVE.apply_filters&&(e=TVE.apply_filters("editor_wrapper",e)),TCB_Front.$window.trigger("tve_after_content_toggle",[e]),tve_frontend_options.is_editor_page||"undefined"!=typeof TVE_Event_Manager_Registered_Callbacks&&(TCB_Front.event_triggers(e),tve_frontend_options.page_events&&ThriveGlobal.$j.each(tve_frontend_options.page_events,(function(t,e){TVE_Event_Manager_Registered_Callbacks[e.a]&&TCB_Front.$document.on("tve-page-event-"+e.t,(function(t,o){let i=!0;return"timer"===e.t&&o&&e.config&&e.config.t_delay!==o&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[e.a].call(document,e.t,e.a,e.config?e.config:{})}))}))),"undefined"==typeof ThriveApp&&(TCB_Front.pageSectionHeight(),TCB_Front.addResizeCallback(TCB_Front.pageSectionHeight)),TCB_Front.onDOMReady()}))}))),TCB_Front.isModuleLoaded=t=>TCB_Front.js_modules[t]&&TCB_Front.js_modules[t].loaded,TCB_Front.setModuleLoadedStatus=(t,e)=>{void 0===TCB_Front.js_modules[t]&&(TCB_Front.js_modules[t]={}),TCB_Front.js_modules[t].loaded=e},TCB_Front.Utils=o(66640),TCB_Front.Base64=o(46967),o(64743),o(11481),o(74468)})();}catch(e){}
try{(()=>{window.TL_Front=window.TL_Front||{},window.ThriveGlobal=window.ThriveGlobal||{$j:jQuery.noConflict()};var t=!1;TL_Front.add_page_css=function(t){ThriveGlobal.$j.each(t,(function(t,e){if(t+="-css",-1!==(e=e.replace(/^http(s)?:\/\//,"//")).indexOf("thrive_flat")){var o=document.createElement("div");if(o.classList.add("tve-cb"),document.body.append(o),"both"===getComputedStyle(o).clear)return void o.remove();o.remove()}ThriveGlobal.$j("#"+t).length||ThriveGlobal.$j('link[href="http:'+e+'"]').length||ThriveGlobal.$j('link[href="https:'+e+'"]').length||ThriveGlobal.$j('<link rel="stylesheet" id="'+t+'" type="text/css" href="'+e+'"/>').prependTo("head")}))},TL_Front.lightspeed_assets=function(e){var o=function(){return ThriveGlobal.$j('link[href*="thrive_flat.css"]').length>0},r=[];if(e.css){if(e.css.files)for(var n in e.css.files){var a="flat"===n;(!o()&&a||!a)&&ThriveGlobal.$j('<link rel="stylesheet" href="'+e.css.files[n]+'"/>').prependTo("head")}e.css.inline&&e.css.inline.length&&e.css.inline.forEach((function(t){o()||ThriveGlobal.$j(t).prependTo("head")}))}if(e.js)for(var i in e.js)TCB_Front&&!TCB_Front.isModuleLoaded(i)&&r.push(i);!function o(){if(r.length){var n=r.shift();TL_Front.add_head_script(e.js[n],"tl-lightspeed-"+n,o)}else t=!0}()},TL_Front.conditional_display=function(t){void 0!==t&&t.lazy_load_conditional_preview&&tcb_condition_sets&&t.lazy_load_conditional_preview.forEach((function(t){-1===tcb_condition_sets.findIndex((function(e){return e.key===t.key}))&&tcb_condition_sets.push(t)}))},TL_Front.$document=ThriveGlobal.$j(document),TL_Front.extendConst=function(t){TL_Const.current_screen&&delete t.current_screen,ThriveGlobal.$j.extend(!0,TL_Const,t)},TL_Front.document_write=function(t){ThriveGlobal.$j("body").append(t)},TL_Front.add_head_script=function(t,e,o){var r=document.createElement("script"),n=ThriveGlobal.$j("head")[0];r.async=!0,"function"==typeof o&&(r.onload=r.onreadystatechange=o),void 0!==e&&(r.id=e),r.src=t,n.insertBefore(r,n.firstChild)},TL_Front.add_page_js=function(t,e){"function"!=typeof e&&(e=function(){});var o=0;ThriveGlobal.$j.each(t,(function(t,e){if("tve_frontend"===t&&"undefined"!=typeof TCB_Front)return!0;if(t+="-js",e&&!ThriveGlobal.$j("#"+t).length&&!ThriveGlobal.$j('script[src="'+e+'"]').length){if(o++,-1!==e.indexOf("connect.facebook.net"))return TL_Front.add_head_script(e,t,(function(){o--})),!0;ThriveGlobal.$j.getScript(e,(function(){o--}))}})),function t(){0!==o?setTimeout(t,50):e()}()},TL_Front.do_impression=function(){var t=TL_Front.impressions_data;if(void 0!==t){var e={security:TL_Const.security,action:TL_Const.action_impression,tl_data:t,current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,o){e[t]=o})),window.TVE_Dash&&!TVE_Dash.ajax_sent?TVE_Dash.add_load_item("tl_impression",e):ThriveGlobal.$j.post(TL_Const.ajax_url,e)}else console.log("No form to register impression for !")},ThriveGlobal.$j((function(){if("undefined"!=typeof TL_Const){if(ThriveGlobal.$j(".tve-leads-screen-filler iframe, .tve-leads-ribbon iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each((function(){var t=ThriveGlobal.$j(this).addClass("tcb-dr-done");t.attr("src")&&t.attr("data-src",t.attr("src")),t.attr("src","")})),"undefined"!=typeof TCB_Front&&ThriveGlobal.$j(TCB_Front).on("content_loaded.thrive",(function(t,e){e.find(".tve-tl-anim").each((function(){var t=ThriveGlobal.$j(this);ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:t})}))})),ThriveGlobal.$j(window).on("tcb_after_dom_ready",(function(){if(!tve_frontend_options.is_editor_page){var t=TCB_Front.queryString.get("post_type");t&&"tve_lead_2s_lightbox"===t&&setTimeout((function(){TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"))}),100)}})),ThriveGlobal.$j(TL_Front).on("showform.thriveleads",(function(t,e){var o,r=e.$target?e.$target:ThriveGlobal.$j("."+e.form_id);r.length&&(e.TargetEvent&&"exit"===e.TargetEvent.tve_trigger&&r.data("shown-on-exit")||(e.first&&(r=r.first()),r.attr("data-s-state")&&(r=r.closest(".tl-states-root").find('[data-state="'+r.attr("data-s-state")+'"] .tl-lb-target')),e&&e.$parentStateEl&&r.closest(".tl-style").first().data("parentStateEl",e.$parentStateEl),o=r.hasClass("tve-tl-anim")?r:r.find(".tve-tl-anim"),r.css("display",""),setTimeout((function(){o.addClass("tve-leads-triggered"),TL_Front.handle_typefocus(o,"start"),ThriveGlobal.$j(".tve_post_grid_masonry").length&&TCB_Front.postGridLayout()}),0),"function"==typeof TL_Front["open_"+e.form_type]?TL_Front["open_"+e.form_type](r,e.TargetEvent):r.show(),TCB_Front.resizePageSection(),r.on("switchstate",(function(t,e){e.offset().top-ThriveGlobal.$j(window).scrollTop()+e.outerHeight()<0&&ThriveGlobal.$j("html, body").animate({scrollTop:e.offset().top+"px"},50),TCB_Front.resizePageSection()})),setTimeout((function(){r.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))}))}),200)))})),ThriveGlobal.$j("body").on("click",".tve-ribbon-close",(function(){var t=ThriveGlobal.$j(this).closest(".tve-leads-ribbon"),e=t.data("position");t.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),t.removeClass("tve-leads-triggered"),"top"===e?ThriveGlobal.$j("body").animate({marginTop:0},200,(function(){document.body.style.removeProperty("margin-top"),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")})):"bottom"===e&&ThriveGlobal.$j("body").animate({marginBottom:"0px"},200,(function(){document.body.style.removeProperty("margin-bottom")})),TL_Front.handle_typefocus(t,"pause"),setTimeout((function(){t.css(e,"")}),400),ThriveGlobal.$j("#tve-lg-error-container").hide()})),ThriveGlobal.$j(window).on("conditional_display_loaded",(function(){var t=Object.keys(TL_Front.contentHtml||{});t.length&&t.forEach((function(t){var e=ThriveGlobal.$j(".tl-placeholder-f-type-".concat(t));if(e.length){var o=ThriveGlobal.$j(TL_Front.contentHtml[t]);e.replaceWith(o),setTimeout((function(){ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:o})}))}}))})),TL_Const.ajax_load||TL_Front.do_impression(),TL_Front.ajax_load_callback=function(o,n){if(n&&TL_Front.conditional_display(n),o&&o.res&&o.js&&o.html){var a,i;if(TL_Front.lightspeed_assets(o.lightspeed||{}),TL_Front.add_page_css(o.res.css),TL_Front.add_page_css(o.res.fonts),o.html&&(o.html.widget||ThriveGlobal.$j(".tl-widget-container").remove(),ThriveGlobal.$j.each(o.html,(function(t,e){if(!e)return!0;if(TL_Front.contentHtml=TL_Front.contentHtml||{},TL_Front.contentHtml[t]=e,"in_content"===t){var r=parseInt(o.in_content_pos),n="after",a=ThriveGlobal.$j(".tve-tl-cnt-wrap");a.length||(a=ThriveGlobal.$j("#tve_editor.tar-main-content")),a.length||(a=ThriveGlobal.$j("#post_content"));var i=a.find("p").filter(":visible").not(".thrv_table p, form p, .tcb-post-list p, .thrv_text_element div p, p.wp-caption-text, .thrv_responsive_video p, .thrv_header p");0===i.length&&0===r?a.prepend(e):(0===r&&(r=1,n="before"),i.eq(r-1)[n](e))}else{var s=ThriveGlobal.$j(".tl-placeholder-f-type-"+t);if(o.js[t]&&o.js[t].content_locking){var l=s.parents(".tve_content_lock").first();if(o.js[t].has_conversion)return s.remove(),l.removeClass("tve_lock_hide"),!0;"tve_lock_blur"===o.js[t].lock&&l.removeClass("tve_lock_hide").addClass(o.js[t].lock)}"widget"===t?s.hasClass("tl-preload-form")?s.first().replaceWith(ThriveGlobal.$j(e).addClass("tve-leads-triggered")):(s.replaceWith(e),ThriveGlobal.$j(".tl-widget-container").children().unwrap()):s.replaceWith(e),0===t.indexOf("two_step")&&(c=t,ThriveGlobal.$j(".tl-2step-trigger-".concat(c.replace("two_step_",""))).show())}var c})),i=-1,"Microsoft Internet Explorer"==navigator.appName?(a=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(a)&&(i=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(a=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(a)&&(i=parseFloat(RegExp.$1))),i>0&&setTimeout((function(){var t="";ThriveGlobal.$j("body style.tve_custom_style").each((function(){t=this.innerText,this.innerText=t}))}))),o.body_end){var s=ThriveGlobal.$j(o.body_end);s.find(".tve_wistia_popover").each((function(){ThriveGlobal.$j("#"+this.id).length&&this.parentNode.removeChild(this)})),s.filter("link[href]").each((function(){ThriveGlobal.$j('link[href="'+this.getAttribute("href")+'"]').length&&(s=s.not(this))})),s.filter("script[src]").each((function(){ThriveGlobal.$j('script[src="'+this.getAttribute("src")+'"]').length&&(s=s.not(this))}));try{ThriveGlobal.$j("body").append(s)}catch(t){console.log("Body append: "+t)}}void 0!==o.js.TVO_Form&&(TVO_Form=o.js.TVO_Form),TL_Front.add_page_js(o.res.js,(function(){e=!0})),setTimeout((function o(){e&&t?(TCB_Front.event_triggers(ThriveGlobal.$j("body")),TCB_Front.onDOMReady(),r(),ThriveGlobal.$j(TCB_Front).trigger("tl-ajax-loaded"),TCB_Front.add_scroll_callback((function(){var t=ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]'),e=t.find(".tve_shortcode_editor"),o=t.is(":visible")&&Number(t.css("opacity"))?Math.max(t.outerHeight(),e.outerHeight()):0,r=ThriveGlobal.$j('[data-elementor-type="header"] .elementor-top-section.elementor-sticky.elementor-sticky--active');r.length||(r=ThriveGlobal.$j(".she-header")),r.length&&r[0].style.setProperty("margin-top",o+"px","important")}))):setTimeout(o,50)}),50),TL_Const.forms=o.js,setTimeout((function(){ThriveGlobal.$j(".tl-preload-form").remove()}),1e3)}},TL_Const.ajax_load){var e=!1,o=(ThriveGlobal.$j(".tve-leads-two-step-trigger").hide(),{tcb_js:"undefined"!=typeof TCB_Front?1:0,main_group_id:TL_Const.main_group_id,shortcode_ids:TL_Const.shortcode_ids,two_step_ids:TL_Const.two_step_ids,action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen});return ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){o[t]=e})),void(window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",(function(t){TVE_Dash.add_load_item("tl_lazy_load",o,TL_Front.ajax_load_callback)})):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:o,xhrFields:{withCredentials:!0}}).done(TL_Front.ajax_load_callback))}r()}function r(){if(!TL_Const.forms)return!1;function t(t){if(t.find('[data-validation="email"]').length)return t.find('[data-validation="email"]').val();var e="";return t.find("input").each((function(){if(this.name&&this.name.match(/email/i))return e=this.value,!1})),e}ThriveGlobal.$j("body").on("submit",".tve-leads-conversion-object form",(function(e){var o=ThriveGlobal.$j(this),r=o.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),n={};if(o.data("tve-force-submit")||o.closest(".thrv_custom_html_shortcode").length||o.data("tl-do-submit")||!r||!TL_Const.forms[r]||function(t){var e=t.attr("id"),o=window.fluentFormVars,r=!1;return o&&o.forms&&(r=o.forms.some((function(t){return t.form_id_selector===e}))),r}(o)||function(t){var e=t.attr("id");return e&&e.includes("happyforms")&&window.HappyForms}(o))return!0;o.tve_form_loading(),o.find("input").each((function(){var t=ThriveGlobal.$j(this),e=t.attr("name");void 0!==e&&-1===TL_Const.ignored_fields.indexOf(e)&&(n[t.attr("name")]=t.val())}));var a={security:TL_Const.security,action:TL_Const.action_conversion,type:r,tl_data:TL_Const.forms[r],custom_fields:n,email:t(o),current_screen:TL_Const.current_screen};return ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){a[t]=e})),ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,data:a,type:"post",xhrFields:{withCredentials:!0}}).always((function(){void 0===o.attr("action")?location.reload():o.data("tve-force-submit",!0).submit()})),!1})),ThriveGlobal.$j("body").on("form_conversion.tcb",".tve-leads-conversion-object form",(function(t){var e=ThriveGlobal.$j(this).parents(".tve-leads-conversion-object").first().attr("data-tl-type");if(!e||!TL_Const.hasOwnProperty("forms")||!TL_Const.forms[e])return!0;var o={type:e,tl_data:TL_Const.forms[e],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){o[t]=e})),t.post_data=t.post_data||{},t.post_data.thrive_leads=o})).on("lead_conversion_success.tcb",".tve_lead_lock_shortcode form, .tve_post_lightbox form",(function(t){var e=ThriveGlobal.$j(this),o=e.parents(".tve_content_lock");if(e.closest(".tve_post_lightbox").length){var r=e.closest(".tve-leads-conversion-object").attr("data-tl-type");TL_Front.parent_state&&TL_Front.parent_state.parent().hasClass("tve-leads-track-"+r)&&(o=TL_Front.parent_state.closest(".tve_content_lock"))}o.length&&o.hasClass("tve_content_lock")&&(o.removeClass("tve_lead_lock").find(".tve_lead_lock_shortcode").remove(),o.find(".tve_lead_locked_overlay").remove(),t.content_unlocked=!0)})).on("leads_states.tcb",".tve-leads-conversion-object form",(function(t,e){var o=ThriveGlobal.$j(this);switch(o.find("#_form_type").val()){case"ribbon":var r=o.parents(".tve-leads-ribbon");o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_ribbon(r);break;case"lightbox":case"tve_lead_2s_lightbox":o.parents(".tve_p_lb_control").empty().html(e);break;case"widget":case"in-content":case"post-footer":case"php-insert":o.parents(".tve_shortcode_editor").empty().html(e);break;case"slide-in":var n=o.parents(".tve-leads-slide-in");o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_slide_in(n);break;case"screen-filler-lightbox":var a=o.parents(".tve-leads-screen-filler");o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_screen_filler(a);break;case"scroll-mat":r=o.parents(".tve-leads-greedy_ribbon"),o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_ribbon(r);break;case"tve_lead_shortcode":o.parents(".tve-leads-shortcode").empty().html(e);break;default:t.change_states=!1}t.change_states=!0})).on("leads_messages.tcb",".tve-leads-conversion-object form",(function(t){var e=ThriveGlobal.$j(this);switch(e.find("#_form_type").val()){case"tve_lead_shortcode":t.lightbox_state&&e.parents(".tve-leads-shortcode").hide();break;case"ribbon":e.parents(".thrv-ribbon").find(".tve-ribbon-close").click();break;case"lightbox":case"tve_lead_2s_lightbox":e.parents(".tve_p_lb_content").find(".tve_p_lb_close").click(),e.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"slide-in":e.parents(".thrv-leads-slide-in").find(".tve-leads-close").click();break;case"screen-filler-lightbox":e.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"scroll-mat":e.parents(".thrv-greedy-ribbon").find(".tve_et_click").click();break;default:e.find('input:not(:hidden):not([type="checkbox"]):not([type="radio"])').val("")}e.parents(".tve-leads-conversion-object").find(".tve_ea_thrive_leads_form_close").click(),TL_Front.parent_state&&TL_Front.close_form(TL_Front.parent_state)})),TL_Front.$document.on("switchstate",(function(t,e){e.find("script.tcb-lazyload-template").each((function(){ThriveGlobal.$j(this).replaceWith(this.innerHTML)}))}))}})),TL_Front.switch_lightbox_state=function(t,e){return t.find(".tve_p_lb_overlay").css("opacity","0.8"),t.find(".tve_p_lb_content").css("top",e.find(".tve_p_lb_content").css("top")).addClass("tve-leads-triggered"),window.tve_lb_switch_state=!0,TL_Front.open_lightbox(t.find(".tl-lb-target"))},TL_Front.close_lightbox=function(){var t=ThriveGlobal.$j("body"),e=ThriveGlobal.$j("html"),o="tve-o-hidden tve-l-open tve-hide-overflow",r=arguments[0]||t.data("tl-open-lightbox");r&&r.length&&(r.find(".tve-tl-anim").removeClass("tve-leads-triggered"),window.tve_lb_switch_state||(1===ThriveGlobal.$j(".tve_lb_open").length&&(t.removeClass(o).css("padding-right",""),e.removeClass(o),r.data("doc-scroll-top")?(document.documentElement.scrollTop=r.data("doc-scroll-top"),r.data("doc-scroll-top","")):r.data("bdy-scroll-top")&&(document.body.scrollTop=r.data("bdy-scroll-top"),r.data("bdy-scroll-top",""))),e.removeClass(e.data("tl-anim-class"))),window.tve_lb_switch_state=!1,setTimeout((function(){r.addClass("tve_lb_closing"),r.removeClass("tve_lb_open tve_lb_opening tve_lb_closing tve_p_lb_background").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")}),200),r.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),TL_Front.handle_typefocus(r,"pause"),ThriveGlobal.$j("#tve-lg-error-container").hide())},TL_Front.open_lightbox=function(t,e){if(!t.hasClass("tve_lb_open")&&!t.hasClass("tve_lb_opening")){var o=window.tve_lb_switch_state;ThriveGlobal.$j.fn.thrive_iphone_placeholder&&t.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.close_lightbox(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open")),t.css({visibility:"",position:"",left:"",display:""}).parents(".tl-style").css({visibility:"",position:"",left:"",display:""});var r,n,a,i,s,l=ThriveGlobal.$j("body"),c=ThriveGlobal.$j("html"),d="tve-o-hidden tve-l-open tve-hide-overflow",_=(r=ThriveGlobal.$j,n={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},a=r("<div>").css(r.extend({},n)),i=r("<div>").css(r.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},n)).append(a).appendTo("body").scrollLeft(1e3).scrollTop(1e3),s={height:i.offset().top-a.offset().top||0,width:i.offset().left-a.offset().left||0},i.remove(),s).width,v=parseInt(l.css("paddingRight")),h=ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open").length;isNaN(v)&&(v=0),t.find(".tve_p_lb_close").off().on("click",(function(){return TL_Front.close_lightbox(),!1})),l.off("keyup.tve_lb_close").on("keyup.tve_lb_close",(function(t){if(27==t.which)return TL_Front.close_lightbox(),!1})),t.find(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",(function(){return TL_Front.close_lightbox(),!1})),l.data("tl-open-lightbox",t),t.addClass("tve_p_lb_background"),t.data("doc-scroll-top",document.documentElement.scrollTop),t.data("bdy-scroll-top",document.body.scrollTop),l.addClass(d),c.addClass(d);var p=ThriveGlobal.$j(window).height()<ThriveGlobal.$j(document).height();!o&&p&&l.css("padding-right",v+_+"px"),t.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=jQuery(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))})),t.find(".thrv_responsive_video").each((function(){var t=ThriveGlobal.$j(this);TCB_Front.makeAutoplayVideo(t)}));var f="";ThriveGlobal.$j.each(t.parents(".tl-states-root").attr("class").split(" "),(function(t,e){if(0===e.indexOf("tl-anim"))return f=e,!1})),c.addClass(f).data("tl-anim-class",f),setTimeout((function(){function e(){var e=t.find(".tve_p_lb_content").outerHeight(!0)+2*parseInt(t.css("padding-top")),o=t.find(".tve_p_lb_content"),r=ThriveGlobal.$j(window).height(),n=(r-e)/2;t.find(".tve_p_lb_overlay").css({height:e+80+"px","min-height":r+"px"}),h?o.animate({top:n<40?40:n},100):o.css("top",(n<40?40:n)+"px"),e+40>r&&t.addClass("tve-scroll")}setTimeout((function(){t.addClass("tve_lb_opening")}),0),t.find("iframe").not(".thrv_social_default iframe").each((function(){var t=ThriveGlobal.$j(this);!t.data("tve_ifr_loaded")&&t.attr("data-src")&&t.data("tve_ifr_loaded",1).attr("src",t.attr("data-src"))})),TCB_Front.resizePageSection(),e(),ThriveGlobal.$j(window).on("resize",e)}),20),setTimeout((function(){t.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open"),ThriveGlobal.$j(window).trigger("scroll")}),300),e&&e.preventDefault&&(e.preventDefault(),e.stopPropagation()),t.parents(".tl-states-root").off("switchstate").on("switchstate",(function(t,e){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_lightbox_state.apply(TL_Front,o)})),e&&"exit"===e.tve_trigger&&t.data("shown-on-exit",!0),TCB_Front.$window.trigger("tl_after_lightbox_open",t),setTimeout((function(){TCB_Front.$window.trigger("tve_after_content_toggle",[t])}),500)}},TL_Front.open_two_step_lightbox=TL_Front.open_lightbox,TL_Front.open_ribbon=function(t){function e(){t.addClass("tve-leads-triggered");var e=t.find(".tve_shortcode_editor"),o=e.length?e.outerHeight():0,r=t.attr("data-position")||"top";switch(r){case"above":t.css("bottom","auto");case"top":t.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");break;case"bottom":t.css("bottom","0px"),t.css("top","auto")}var n=0,a=Math.max(t.outerHeight(),o),i=setInterval((function(){n++;var e=Math.max(t.outerHeight(),o);e==a&&10!=n||clearInterval(i),"top"===r?(ThriveGlobal.$j("body").animate({"margin-top":e+"px"},200,(function(){document.body.style.setProperty("margin-top",e+"px","important")})),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")):"bottom"===r&&ThriveGlobal.$j("body").animate({"margin-bottom":e+"px"},200)}),100),s=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(s.length&&"top"===r){var l=parseFloat(TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset"))||0;TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset",l+a+"px")}t.off("switchstate").on("switchstate",(function(t,e){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_ribbon_state.apply(TL_Front,o)}))}TL_Const.forms.greedy_ribbon?(TL_Const.close_callbacks=TL_Const.close_callbacks||{},TL_Const.close_callbacks.greedy_ribbon=[e]):e()},TL_Front.switch_ribbon_state=function(t){var e=t.outerHeight(!0),o={};o["top"===t.parent().attr("data-position")?"margin-top":"margin-bottom"]=e+"px",t.find(".tve-tl-anim").removeClass((function(t,e){return(e.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")})).removeClass("tve-tl-anim"),ThriveGlobal.$j("body").animate(o,200)},TL_Front.open_greedy_ribbon=function(t){var e=ThriveGlobal.$j("body"),o=ThriveGlobal.$j(window),r=e.css("position");o.scrollTop(0),e.css("position","static"),e.addClass("tve-tl-gr-anim"),TCB_Front.$window.trigger("scroll"),t.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");var n=t.outerHeight();e[0].style.setProperty("margin-top",n+"px","important");var a=1;setTimeout((function(){ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]').removeClass("tve-leads-triggered")}),50),o.scroll((function(){var i=e.hasClass("tve-tl-gr-anim");if(a&&i){var s=o.scrollTop();if(s>n){(t.find(".tve_ea_thrive_wistia").length||t.find(".tve_with_wistia_popover"))&&ThriveGlobal.$j(".wistia_placebo_close_button").trigger("click"),e.removeClass("tve-tl-gr-anim"),t.addClass("tve-no-animation");var l=s-n;t.removeClass("tve-leads-triggered"),t.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),e.css("margin-top",""),e.css("position",r),o.scrollTop(l),t.removeClass("tve-no-animation"),a=0,TL_Front.form_closed("greedy_ribbon"),TL_Const.forms.greedy_ribbon.allow_callbacks=!1}}})),t.off("switchstate").on("switchstate",(function(t,e){}))},TL_Front.open_screen_filler=function(t,e){var o="tve-so-hidden tve-sl-open tve-s-hide-overflow",r=ThriveGlobal.$j("html,body"),n=ThriveGlobal.$j("html");if(ThriveGlobal.$j.fn.thrive_iphone_placeholder&&t.find("input[placeholder]").thrive_iphone_placeholder(),t.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px").css("visibility",""),!0===t.hasClass("stl-anim-slip_from_top")){var a=ThriveGlobal.$j(window).scrollTop();t.css("top",a).css("visibility","")}t.find(".tve-screen-filler-close").on("click",(function(){s(t)})),t.data("doc-scroll-top",document.documentElement.scrollTop),t.data("bdy-scroll-top",document.body.scrollTop),"none"!==t.find(".thrv-leads-screen-filler.thrv_wrapper ").css("display")&&r.addClass(o);var i="";function s(t){t.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),t.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(t,"pause"),ThriveGlobal.$j(document).off("keyup.close-screenfiller"),0==ThriveGlobal.$j.find(".tve-leads-ribbon").length&&ThriveGlobal.$j("body").animate({"margin-top":"0px"},200),r.removeClass(o),n.removeClass(n.data("tl-s-anim-class")),setTimeout((function(){t.css("top","").hide(),"none"===t.css("display")&&(r.removeClass(o),t.removeClass("tve-leads-triggered"))}),400),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("bdy-scroll-top","")),ThriveGlobal.$j("#tve-lg-error-container").hide()}ThriveGlobal.$j.each(t.attr("class").split(" "),(function(t,e){if(0===e.indexOf("stl-anim"))return i=e,!1})),n.addClass(i).data("tl-s-anim-class",i);var l=t.find("> .tl-style").hide(),c=t.find('> .tl-style[data-form-state="already_subscribed"]');c.length?c.show():l.first().show(),TL_Front.close_screen_filler=s,e&&e.preventDefault&&(e.preventDefault(),e.stopPropagation()),ThriveGlobal.$j(document).off("keyup.close-screenfiller").on("keyup.close-screenfiller",(function(e){27==e.which&&s(t)})),t.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=jQuery(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))})),setTimeout((function(){TCB_Front.resizePageSection()}),500)},TL_Front.switch_slide_in_state=function(t){t.find(".tve-tl-anim").removeClass((function(t,e){return(e.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")})).removeClass("tve-tl-anim"),TL_Front.slide_in_position(t.find(".thrv-leads-slide-in"))},TL_Front.slide_in_position=function(t){var e=ThriveGlobal.$j(window),o=t.outerHeight();if(e.width()<=782||e.height()<o){t.parents(".tve-leads-slide-in").addClass("tve-lb");var r=e.height();setTimeout((function(){var e;e=t.parents(".tve-leads-slide-in").is('[class*="bot"]')?r-o:0,t.closest(".tve-leads-slide-in").data("doc-scroll-top",document.documentElement.scrollTop).data("bdy-scroll-top",document.body.scrollTop),t.parents(".tve-leads-conversion-object").first().css({height:o+80+"px","min-height":r+"px"}),t.css("top",(e<40?40:e)+"px"),o+40>r&&t.parents(".tve-leads-slide-in").css("overflow-y","scroll")}),0)}},TL_Front.open_slide_in=function(t,e){var o="tve-o-hidden tve-l-open tve-hide-overflow",r=ThriveGlobal.$j("body"),n=ThriveGlobal.$j("html");function a(e){e.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(e,"pause"),ThriveGlobal.$j(document).off("keyup.close-slidein"),ThriveGlobal.$j(".tve_lb_open").length||(r.removeClass(o),n.removeClass(o)),e.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),ThriveGlobal.$j("#tve-lg-error-container").hide(),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("bdy-scroll-top",""))}ThriveGlobal.$j.fn.thrive_iphone_placeholder&&t.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.slide_in_position(t.find(".thrv-leads-slide-in").filter(":visible")),t.off().on("click",".tve-leads-close",(function(){a(t)})),t.find(".tve_ea_thrive_leads_form_close").on("click",(function(){a(t)})),t.on("switchstate",(function(t,e){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_slide_in_state.apply(TL_Front,o)})),ThriveGlobal.$j(document).off("keyup.close-slidein").on("keyup.close-slidein",(function(e){27==e.which&&a(t)})),e&&e.preventDefault&&(e.preventDefault(),e.stopPropagation())},TL_Front.close_form=function(t,e,o,r){var n=ThriveGlobal.$j(t).parents(".tve-leads-triggered"),a=n.attr("data-tl-type");if(void 0===a&&n.hasClass("tve-leads-widget"))a="widget";else if(void 0===a&&n.hasClass("tve-leads-post-footer"))a="post-footer";else if(void 0===a&&n.hasClass("tve-leads-slide-in"))a="slide-in";else if(void 0===a&&n.hasClass("tve-leads-in-content"))a="in-content";else if(void 0===a&&n.hasClass("tve-leads-shortcode"))a="shortcode";else if(void 0===a&&n.hasClass("tve-leads-greedy_ribbon"))a="greedy_ribbon";else{if(void 0===a&&n.hasClass("tve_p_lb_content"))return TL_Front.close_lightbox(),!1;if(void 0===a&&n.hasClass("tve-leads-screen-filler"))return TL_Front.close_screen_filler(n),!1}switch(n.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(n,"pause"),a){case"ribbon":var i=n.find(".tve-ribbon-close");i.length||(i=jQuery('<span class="tve-ribbon-close" style="display: none"></span>').appendTo(n)),i.trigger("click");var s=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(s.length&&"top"===n.attr("data-position")){var l=parseFloat(TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset"))-n.outerHeight(!0)+"px";TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset",l)}break;case"slide-in":n.find(".tve_ea_thrive_leads_form_close").trigger("click"),n.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")}));break;case"post-footer":case"in-content":case"shortcode":n.fadeOut(200,(function(){TL_Front.form_closed(a)}));break;case"widget":n.parent().slideUp(200);break;case"greedy_ribbon":var c=ThriveGlobal.$j("body"),d=ThriveGlobal.$j(window),_=c.css("margin-top");c[0].style.removeProperty("margin-top"),n.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),c.css("margin-top",_),d.scrollTop(0),c.animate({"margin-top":"0px"},300,"linear",(function(){TL_Front.form_closed(a)})).removeClass("tve-tl-gr-anim")}},TL_Front.form_closed=function(t){TL_Const.close_callbacks&&TL_Const.close_callbacks[t]&&ThriveGlobal.$j.each(TL_Const.close_callbacks[t],(function(t,e){ThriveGlobal.$j.isFunction(e)&&e()}))},TL_Front.handle_typefocus=function(t,e){t.find(".tve_typefocus").each((function(){jQuery(this).attr("data-typefocus",e)}))}})();}catch(e){}