/*! For license information please see matahari.6c61f9d6.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[3550],{45298(e,o,n){n.d(o,{GeniallyLogrocketAppId:()=>l,GeniallyLogrocketPlayAppId:()=>p,GeniallyLogrocketViewAppId:()=>u,loadLogRocketIntegration:()=>h});var t=n(9795),i=n(36026);let r=0;const a=(e,o)=>new Promise((n=>{setTimeout((()=>window[e]?n(!0):r>=o?n(!1):(r+=1,n(a(e,o)))),100)}));var s=n(3208),c=(e,o,n)=>new Promise(((t,i)=>{var r=e=>{try{s(n.next(e))}catch(o){i(o)}},a=e=>{try{s(n.throw(e))}catch(o){i(o)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,a);s((n=n.apply(e,o)).next())}));const l="genially-z2e5p/genially",u="genially-z2e5p/view-em2xk",p="genially-z2e5p/play-ioyop";function d(e){return c(this,arguments,(function*(e){let{releaseVersion:o,appId:i,parentDomain:r,childDomains:a}=e;const s={release:o,mergeIframes:!0,childDomains:a,parentDomain:r,rootHostname:t.qC,network:{isEnabled:!1}},c=yield n.e(5775).then(n.t.bind(n,84671,23)).then((e=>e.default)),l=yield n.e(7461).then(n.t.bind(n,61737,23)).then((e=>e.default));var u;return u=s,Object.keys(u).forEach((e=>e in u&&void 0===u[e]?delete u[e]:{})),c.init(i,s),l(c),c}))}const h=function(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c(null,null,(function*(){if(i.A.appEnv!==t.H.Local&&i.A.appEnv!==t.H.Dynamic){if(o)return d(e);if((yield(n="Optanon",new Promise((e=>{r=0,e(a(n,20))}))))&&window.Optanon){if((()=>{var e;return!0===(null==(e=window.OnetrustActiveGroups)?void 0:e.includes(s.$i.Performance))})())return d(e);if((yield new Promise((e=>{var o;null==(o=window.Optanon)||o.OnConsentChanged((o=>{e(o.detail)}))}))).includes(s.$i.Performance))return d(e)}}var n;return Promise.resolve(!1)}))}},3208(e,o,n){n.d(o,{$i:()=>d,J0:()=>f});var t=n(63720),i=n(74579),r=n(36026);const{filter:a,pipe:s,map:c,chain:l,whereEq:u,forEach:p}=i.A;var d=(e=>(e.Necessary="C0001",e.Performance="C0002",e.Functional="C0003",e.Targeting="C0004",e.SocialMedia="C0005",e))(d||{});const h=[{cookie:"Google Analytics",group:"C0002".toString()},{cookie:"Snowplow",group:"C0002".toString()}],g=e=>e.Cookies,m=c((e=>e.Name));const f=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.window=window,this.hasCookiesManager=()=>!!window.Optanon,this.getGroupFromCookie=e=>{const o=h.find((n="cookie",t=e,e=>e[n]===t));var n,t;return o?o.group:null},this.groupHasPermissions=e=>this.onetrustActiveGroups.split(",").filter(Boolean).includes(e),this.triggerModal=()=>{!this.debug&&this.hasCookiesManager()&&this.optanon.ToggleInfoDisplay()},this.checkPermission=e=>{if(this.debug)return!0;if(!this.hasCookiesManager())return!1;const o=this.getGroupFromCookie(e);if(!o)throw new Error(`The cookie "${e}" is not grouped in our dictionary`);return this.groupHasPermissions(o)},this.debug=e}get optanon(){return this.window.Optanon}get onetrustActiveGroups(){return this.window.OnetrustActiveGroups||""}areSnowplowCookiesEnabled(){return this.checkPermission("Snowplow")}removeTargetingCookies(){this.removeCookies("C0004")}removeSocialMediaCookies(){this.removeCookies("C0005")}removeCookies(e){if(!this.hasCookiesManager())return;const o=p((e=>{t.A.remove(e,{path:"/",domain:".genially.com"}),t.A.remove(e,{path:"/",domain:window.location.hostname})})),n=s((e=>a(u({CustomGroupId:e})))(e),l(g),m);o(n(this.optanon.GetDomainData().Groups))}}(r.A.debug)},63720(e,o,n){function t(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)"__proto__"!==t&&(e[t]=n[t])}return e}n.d(o,{A:()=>i});var i=function e(o,n){function i(e,i,r){if("undefined"!==typeof document){"number"===typeof(r=t({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in r)r[s]&&(a+="; "+s,!0!==r[s]&&(a+="="+r[s].split(";")[0]));return document.cookie=e+"="+o.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],t={},i=0;i<n.length;i++){var r=n[i].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(s in t||(t[s]=o.read(a,s)),e===s)break}catch{}}return e?t[e]:t}},remove:function(e,o){i(e,"",t({},o,{expires:-1}))},withAttributes:function(o){return e(this.converter,t({},this.attributes,o))},withConverter:function(o){return e(t({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/matahari.6c61f9d6.chunk.js.map