!function(e){function t(t){for(var a,i,s=t[0],c=t[1],u=t[2],d=0,f=[];d=0;n--){var a=e.charCodeAt(n);a>127&&a<=2047?t++:a>2047&&a<=65535&&(t+=2),a>=56320&&a<=57343&&n--}return t-1},r=function(e,t,a,r){throw new n[e](t,a,r)},o=function(e,t,n){for(var a=2,o=[],i=e.slice(t,t+1);i!==n;)a+t>e.length&&r("Error","Invalid"),o.push(i),i=e.slice(t+(a-1),t+a),a+=1;return[o.length,o.join("")]},i=function(e,t,n){var r,o,i;for(i=[],r=0;r0?n:CONFIG_NUM_LATEST_RESOURCES||2},e}();Object(k.a)(H,"Pixabay",n(395)),Object(k.a)(H,"PixabaySettings",["maxRows","rowHeight","truncate"]),Object(k.a)(H,"PixabayRowHeight",264),Object(k.a)(H,"namespace","showcase"),Object(k.a)(H,"data",["attribution_link","attribution_text","categories","comments","creation_ago","creation_date","typology","danger","download_file_url","download_landing_url","download_license_url","downloads","freepik_editor","freepik_stories","id","keywords","likes","main_keywords_sponsor","main_keywords_label","main_keywords","new","premium","preview_height","preview_width","print_type","selection","title","url_source","ris",{author:["id","user_id","link","name","total_resources"]},{print_type:["id","value"]},{thumbnails:["small","large","zoom"]}]),Object(k.a)(H,"layout","fixed"),Object(k.a)(H,"layoutInstance",{}),H.setup()},408:function(e,t){},437:function(e,t,n){"use strict";var a=n(407);n.d(t,"Showcase",(function(){return a.a}));n(408)},555:function(e,t,n){n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563)},556:function(e,t){"function"!=typeof Object.assign&&(Object.assign=function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),a=1;a=0;e--){var t=arguments[e];n.call(this,t)}}},a=t.length-1;a>=0;a--){var r=t[a];n(DOMTokenList.prototype,r)}if(e.classList.toggle("c",!1),e.classList.contains("c")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>0&&this.contains(e)===t?t:o.call(this,e)}}}}else{var i=function(e,t){for(var n=e.length-1;n>=0&&e[n]!=t;n--);return n};!function(){var e=function(e){this.element=e};e.prototype.contains=function(e){var t=this.element.className.split(/\s+/);return-1!=i(t,e)},e.prototype.add=function(){for(var e=this.element.className.split(/\s+/),t=arguments.length-1;t>=0;t--){var n=arguments[t];-1==i(e,n)&&e.push(n)}this.element.className=e.join(" ")},e.prototype.remove=function(e){for(var t=this.element.className.split(/\s+/),n=arguments.length-1;n>=0;n--){var a=i(t,e);-1!=a&&t.splice(a,1)}this.element.className=t.join(" ")},e.prototype.item=function(e){return this.element.className.split(/\s+/)[e]},e.prototype.toggle=function(e,t){var n=this.contains(e);return n===t?t:(n?this.remove(e):this.add(e),!n)},e.prototype.length=0,Object.defineProperty?(Object.defineProperty(Element.prototype,"classList",{get:function(){return new e(this)}}),Object.defineProperty(e.prototype,"length",(function(){return this.element.className.split(/\s+/).length}))):Element.prototype.__defineGetter__&&Element.prototype.__defineGetter__("classList",(function(){return new e(this)}))}()}}}()},558:function(e,t){!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}()},559:function(e,t){!function(){var e={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var t=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(e,t){if(!e)throw new Error("Not enough arguments");var n;if("createEvent"in document){n=document.createEvent("Event");var a=!(!t||void 0===t.bubbles)&&t.bubbles,r=!(!t||void 0===t.cancelable)&&t.cancelable;return n.initEvent(e,a,r),n}return(n=document.createEventObject()).type=e,n.bubbles=!(!t||void 0===t.bubbles)&&t.bubbles,n.cancelable=!(!t||void 0===t.cancelable)&&t.cancelable,n},t&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:t}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,a=arguments[0],r=arguments[1];if(t===window&&a in e)throw new Error("In IE8 the event: "+a+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");t._events||(t._events={}),t._events[a]||(t._events[a]=function(e){var a,r=t._events[e.type].list,o=r.slice(),i=-1,s=o.length;for(e.preventDefault=function(){!1!==e.cancelable&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=t,e.relatedTarget=e.fromElement||null,e.target=e.target||e.srcElement||t,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop);++i=0&&t.item(n)!==this;);return n>-1})},654:function(e,t,n){"use strict";n.r(t);var a=n(2),r=n.n(a),o=n(5),i=n(12),s=n(7),c=n(168),u=n(69),l=n(41),d=n.n(l),f=n(93),p=n.n(f),h=n(94),m=n.n(h),g=n(95),v=n.n(g),b=n(80),y=n.n(b),w=n(18),_=n.n(w),E=n(22),O=n.n(E),L=n(37),I=n.n(L),j=n(1),T=n.n(j),A=n(13),S=n.n(A),k=n(20),C=n.n(k),D=n(8),N=n.n(D),x=n(9),M=n.n(x),R=n(27),H=n.n(R),P=n(6),U=n.n(P),B=n(55),W=n(28),q=n(4),V=n(34),F=n(0),z=n(45),G=n(430),X=n(25),K=n(3),Y=n(190),Q=n(29),J=n(110);var $=n(84);function Z(e,t){var n,a;if(void 0===v.a||null==m()(e)){if(I()(e)||(a=function(e,t){var n;if(!e)return;if("string"==typeof e)return ee(e,t);var a=_()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return y()(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ee(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return a=p()(e),d()(n=a.next).call(n,a)}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n2?o-2:0),s=2;s1?s-1:0),u=1;u1?f-1:0),h=1;h1?i-1:0),c=1;c1e7?"∞":e},t}(V.b);Object(q.a)(ae,"defaultFormNames",["login","register","forgot-password"]),Object(q.a)(ae,"defaultSettings",{recaptcha:!0}),Object(q.a)(ae,"handlers",{loginHandler:null,registerHandler:null,forgotPasswordHandler:null}),Object(q.a)(ae,"recaptchaWidgets",{login:null,register:null,"forgot-password":null}),Object(q.a)(ae,"recaptachaDisableHanlder",!1);var re=function(e){function t(t){var n;return(n=e.call(this)||this).type="gr:login",n.extra={user:t},n}return Object(W.a)(t,e),t}(V.a),oe=function(e){function t(){var t;return(t=e.call(this)||this).type="gr:ready",t}return Object(W.a)(t,e),t}(V.a),ie=function(e){function t(t){var n;return(n=e.call(this)||this).type="gr:register",n.extra=t,n}return Object(W.a)(t,e),t}(V.a),se=function(e){function t(){var t;return(t=e.call(this)||this).type="gr:logout",t}return Object(W.a)(t,e),t}(V.a);function ce(e,t,n){var a,r=Object(F.c)(".message",e),o=t.message,i=t.message;if(T()(a=Object(F.d)(".notification--error",e)).call(a,(function(e){e.parentElement&&e.parentElement.removeChild(e)})),ae.errorCodes&&t.error_code){var s=Object(F.d)(".message--field",e);s&&T()(s).call(s,(function(e){e.parentElement&&e.parentElement.removeChild(e)}));try{var c;if("string"==typeof t.error_code&&ae.errorCodes[t.error_code]&&(i=ae.errorCodes[t.error_code]),I()(t.error_code))return void T()(c=t.error_code).call(c,(function(t){var a=Object(F.c)('input[name="'+t.field+'"]',e);if(a){var r=a.parent(".group");(r||a).insertAdjacentHTML("afterend",z.a.render(ne,{class:"notification--"+n+" notification--static animation--fade-in",html:""+(ae.errorCodes[t.code]?ae.errorCodes[t.code]:o[t.field][t.code])}))}}))}catch(u){}}if(r){if(i instanceof Array)r.innerHTML=O()(i).call(i,(function(e){return z.a.render(ne,{class:"notification--"+n+" notification--static animation--fade-in",html:e})})).join("");else if("string"==typeof i)r.innerHTML=z.a.render(ne,{class:"notification--"+n+" notification--static animation--fade-in",html:i});else{var u=[];for(var l in i){u=H()(u).call(u,i[l]);var d=Object(F.c)("input[name="+l+"]",e)||document.getElementById(l);if(d){var f=d.parent(".group");f&&1===Object(F.d)("input",f).length?f.classList.add("error"):d.classList.add("error")}}r.innerHTML=O()(u).call(u,(function(e){var t="string"==typeof e?e:e.getPathValue("messages");return z.a.render(ne,{class:"notification--"+n+" notification--static animation--fade-in",html:t})})).join("")}r&&(r.classList.add(n),r.style.display="block")}}function ue(e){var t=Object(F.c)(".message",e);if(t){t.innerHTML="",t.style.display="none",t.classList.remove("error","success");for(var n,a=Z(Object(F.d)("input",e));!(n=a()).done;){n.value.classList.remove("error","success")}}}var le,de=n(437),fe=n(58),pe=n.n(fe),he=!1,me=[],ge=!1;"IntersectionObserver"in window&&(le=new IntersectionObserver((function(e){T()(e).call(e,(function(e){if(e.isIntersecting){var t=e.target,n=t.parentNode||void 0;n&&_()([]).call(n.classList).join(",").match(/showcase__link/)&&we(t);var a=t.dataset.src||t.src,r=new Image;r.onload=function(){t.dataset.src&&(t.src=t.dataset.src),t.dataset.srcset&&(t.srcset=t.dataset.srcset),t.classList.add("loaded")},r.onerror=r.onabort=function(){return t.src=t.dataset.src||""},r.src=a,t.classList.remove("lzy","lazyload"),le.unobserve(t)}}))})));var ve=function(){!1===ge&&(ge=!0,S()((function(){T()(me).call(me,(function(e){if(e.getBoundingClientRect().top<=window.innerHeight&&e.getBoundingClientRect().bottom>=0&&"none"!==getComputedStyle(e).display){var t=e.parentNode||void 0;t&&_()([]).call(t.classList).join(",").match(/showcase__link/)&&we(e),e.dataset.src&&(e.src=e.dataset.src),e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.onload=function(){return e.classList.add("loaded")},e.classList.remove("lzy","lazyload"),me=M()(me).call(me,(function(t){return t!==e})),ye()}})),ge=!1}),200))},be=function(){he||(document.addEventListener("scroll",ve),window.addEventListener("resize",ve),window.addEventListener("orientationchange",ve),he=!0)},ye=function(){he&&0===me.length&&(document.removeEventListener("scroll",ve),window.removeEventListener("resize",ve),window.removeEventListener("orientationchange",ve),he=!1)},we=function(e){var t=e.dataset.src||e.src,n=e.dataset.srcset;if(t){var a=Ee(t);if(e.src=a,e.dataset.src=a,n){var r=Oe(n);r&&(e.srcset=r,e.dataset.srcset=r)}}},_e=function(e){var t=i.a.getItem("_ga")||"",n=gr.user,a="",r="";n&&(a=n.premium||!1?"P":"R",r=n.id.toString());if(!a&&!t)return"";var o=[],s=a?"uid="+a+r:"",c=t?"ga="+t:"";return s&&o.push(s),c&&o.push(c),o.join("&"),(e?"&":"?")+o.join("&")},Ee=function(e){var t=N()(e).call(e,"?")>-1;return""+e+_e(t)},Oe=function(e){var t;if(""!=e){var n=[];return T()(t=e.split(",")).call(t,(function(e){var t=pe()(e).call(e).split(" ");if(t){var a,r=N()(a=t[0]).call(a,"?")>-1,o=_e(r);t[0]=""+t[0]+o,n.push(t.join(" "))}})),n.join(",")}},Le=function(e,t,n){var a=new FormData;a.append("allow","1"),a.append("identity",t),a.append("option","exclusive-resources"),n.classList.add("button--loading"),fetch("/profile/request/login/newsletterstrategy",{method:"POST",body:a}).then((function(){n.classList.remove("button--loading"),e("subscribed")}))},Ie=(n(57),n(193).sprintf),je={E_UNKNOW:Object(K.a)("Something has gone wrong, but the system can not determine the exact cause, please try again later."),E_CHECK_RECAPTCHA:Object(K.a)("The recaptcha has not been verified. Are you a robot?"),E_USER_NOT_FOUND:Ie(Object(K.a)("The account or password you entered were invalid. Enter a different account or %sregister now%s"),'"),E_LOGIN_ATTEMPTS_REACHED:Object(K.a)("Maximum number of attempts reached, please try again later."),E_EMPTY_IDENTITY:Object(K.a)("The username is empty, please enter your username."),E_BANNED_ACCOUNT:Ie(Object(K.a)("The account has been banned. You can contact %ssupport%s if you think this is a mistake."),'',""),E_DISABLED_ACCOUNT:Ie(Object(K.a)("The account has been disabled. You can contact %ssupport%s if you think this is a mistake."),'',""),E_EMPTY_PASSWORD:Object(K.a)("The password is empty, please enter your password."),E_WRONG_PASSWORD:Ie(Object(K.a)("The account or password you entered were invalid. Enter a different account or %sregister now%s"),'"),E_PASSWORD_COMPROMISED:Ie(Object(K.a)("Your password could have been compromised.%sCan we help you change your %spassword%s?"),"
",'',""),E_SUSPICIOUS_ACTIVITY:Ie(Object(K.a)("Sorry, we are detecting suspicious activity on your account, we can't log you in. If you think it is an error, please contact our %sCustomer Support%s."),'',""),E_MAIL_EXISTS:Object(K.a)("Another user with this email already exists."),E_USERNAME_EXISTS:Object(K.a)("Another user with this username exists."),E_TWITTERID_EXISTS:Object(K.a)("The twitter account has already been registered."),E_GOOGLEID_EXISTS:Object(K.a)("The google account has already been registered."),E_FACEBOOKID_EXISTS:Object(K.a)("The facebook account has already been registered."),E_INSECURE_PASSWORD:Object(K.a)("The password you are trying to use has already been used."),E_VALIDATION_RULEUNDEFINED:Object(K.a)("The validation rule applied does not exist."),E_VALIDATION_ISDOMAIN:Object(K.a)("The value does not meet the domain format."),E_VALIDATION_ISVALIDIDNUMBER:Object(K.a)("The value does not meet the valid ID format."),E_VALIDATION_ISENDING:Object(K.a)("The value must end with the defined format."),E_VALIDATION_ISSTARTING:Object(K.a)("The value must start with the defined format."),E_VALIDATION_ISNUMERIC:Object(K.a)("The value must be numeric."),E_VALIDATION_ISURL:Object(K.a)("The value must comply with the URL format."),E_VALIDATION_ISEMAIL:Object(K.a)("The value must comply with the email format."),E_VALIDATION_ISINVALIDEMAIL:Object(K.a)("Invalid email address. Try again."),E_VALIDATION_ISSOCIAL:Object(K.a)('The value must contain only alphanumeric characters, periods ".", Hyphens "-, _" or positive sign "+".'),E_VALIDATION_ISSOCIAL2:Object(K.a)("The value must be a valid social network url."),E_VALIDATION_ISUSERNAME:Object(K.a)('The value must contain only alphanumeric characters, periods "." And hyphens "-, _"'),E_VALIDATION_ISDIFFERENT:Object(K.a)("The value must be different."),E_VALIDATION_ISDIFFERENT_PASSWORD:Object(K.a)("The password must be different from the previous one."),E_VALIDATION_ISEQUAL:Object(K.a)("The value does not match."),E_VALIDATION_ISEQUAL_PASSWORD:Object(K.a)("Passwords must match."),E_VALIDATION_ISSECURE:Object(K.a)("The value must be considered safe. It must include at least: 1 number, 1 capital letter, 1 symbol, and a length between 8 and 30."),E_VALIDATION_ISSECUREPASSWORD:Object(K.a)("The password has to be secure. Be sure it contains at least: 1 number, 1 letter, 1 capital letter, 1 symbol, is between 6 and 30 characters length and doesn't contain whitespaces"),E_VALIDATION_ISALPHALOGIN:Object(K.a)('The value must contain only alphanumeric values and underscore "_".'),E_VALIDATION_ISALPHA:Object(K.a)("The value must contain only alphanumeric values."),E_VALIDATION_ISMAX:Object(K.a)("The value exceeds the maximum size allowed."),E_VALIDATION_ISMIN:Object(K.a)("The value does not reach the minimum size allowed."),E_VALIDATION_ISREQUIRED:Object(K.a)("The field is mandatory."),E_VALIDATION_ISBETWEEN:Object(K.a)("The field must be between a maximum and a minimum value.")},Te=n(150),Ae=n(220),Se=function(e,t){if(void 0===t&&(t=!1),!t){var n=new Image;n.src=e.src,n.onload=function(){var t=e.parent(".watermark");if(e.classList.add("show"),t){var n,a=t.querySelector(".watermark__image"),r=.8*window.innerHeight,o=e.naturalHeight>r?640>r?640:r:e.naturalHeight,i=Object(Ae.a)({width:e.naturalWidth,height:e.naturalHeight,newHeight:o}),s=i.width,c=i.height;if(e.setAttribute("width",s.toString()),e.setAttribute("height",c.toString()),t.style.maxWidth=s+"px",t.style.maxHeight=c+"px",t.classList.add("loaded"),a)a.style.paddingBottom=_()(n=((c-IMG_ZOOM_STRIP)/s*100).toString()).call(n,0,5)+"%"}}}};F.e.addEventListener("resize",(function(){var e=Object(F.c)("#modal-detail.active .detail .watermark__image > img")||Object(F.c)("#main .detail .watermark__image > img");e&&Se(e)})),F.e.imageLoaded=Se;var ke,Ce=n(70),De=n(118),Ne=n(136);(n(109),n(555),n(192),F.e.FACEBOOK_APP_ID="117646314917595",F.e.FACEBOOK_PIXEL_ID="1470657753234558",F.e.GOOGLE_CLIENT_ID="645947318004-vpkoa2nspdlg3ehvrelfkaqekvjqmo4q.apps.googleusercontent.com",F.e.GOOGLE_API_KEY="AIzaSyDXxs5V0QdmQlNhgPiTB61IQM0lQntZqZM",F.e.SPONSOR_NAME="adobestock",F.e.AdobeHelpers=Ce.a.helpers,F.e.CampaignHelpers={showBanner:De.b},F.e.gr=new ae({defaultAvatar:Object(s.w)(),recaptcha:!navigator.userAgent.match(/Ghost Inspector/gi),recaptchaSitekey:RE_CAPTCHA_KEY_INVISIBLE,errorCodes:je,newsletterCallback:function(e,t){var n=document.getElementById("modal-login");n&&(n.classList.add("newsletter"),n.setAttribute("data-disable-mouse-up","")),new C.a((function(t){var n=Object(F.c)('.tabs__link[data-tab="tab-subscribe"]');if(n){var a=document.getElementById("subscribe-now"),r=document.getElementById("subscribe-cancel");n.click(),a&&r&&(r.addEventListener("click",(function(){return t("cancelled")})),a.addEventListener("click",(function(){return Le(t,e,a)})))}})).then((function(e){n&&(n.classList.remove("newsletter"),n.removeAttribute("data-disable-mouse-up")),i.a.setItem("gr_register_gratitude_status",e),t&&t()}))}}),F.e.ga2=Q.a,F.e.gtm=u.e,F.e.Lazyload={run:function(){me=Object(F.d)(".lzy, .lazyload"),le?T()(me).call(me,(function(e){return le.observe(e)})):be()}},F.e.SwiperInitialize=Ne.a,F.e.randomAvatarMethod=s.w,F.e.Showcase=de.Showcase,F.e.statcounter=Te.a,F.e.setupFilters=function(){c.a.toggle(),c.a.showGroups()},Object(s.g)()&&(window.onload=function(){document.body.classList.add("ie")}),i.a.getItem("gr_remember")&&fetch("/profile/request/login",{credentials:"include",method:"GET"}).then(function(){var e=Object(o.a)(r.a.mark((function e(t){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:n=e.sent,F.e.gr.triggerLogin(n.data),F.e.gr.updateUser(),F.e.gr.updateUI();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),!i.a.getItem("hotjar-tracker-active")&&Math.floor(100*Math.random())<=1&&i.a.setItem("hotjar-tracker-active","1"),OPTIMAL_BROWSER=Object(s.u)(),IS_MOBILE=Object(s.l)(),OPTIMAL_BROWSER)||(null==(ke=Object(F.c)("#link-editor-freepik"))||ke.classList.add("hide"))}}); //# sourceMappingURL=global.a328367c9d96008ac68accff69e9dba5.js.map