fas-amazonia.org Open in urlscan Pro
172.67.149.154  Public Scan

URL: https://fas-amazonia.org/wp-content/cache/wpfc-minified/2z64zh9g/hqsp5.js
Submission: On November 30 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

// source --> https://fas-amazonia.org/wp-content/plugins/cookie-law-info/lite/frontend/js/script.min.js?ver=3.2.4 
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var c=t[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(o,c,function(t){return e[t]}.bind(null,c));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){const n=window._ckyConfig,o=window._ckyStyles;n._backupNodes=[],n._resetConsentID=!1,n._bannerState=!1,n._preferenceOriginTag=!1,window.cookieyes=window.cookieyes||{};const c=window.cookieyes;c._ckyConsentStore=new Map,c._ckyGetCookieMap=function(){const e={};try{document.cookie.split(";").map(t=>{const[n,o]=t.split("=");n&&(e[n.trim()]=o)})}catch(e){}return e};const r=c._ckyGetCookieMap();c._ckyGetFromStore=function(e){return c._ckyConsentStore.get(e)||""},c._ckySetInStore=function(e,t){c._ckyConsentStore.set(e,t);let o=[];for(const[e,t]of c._ckyConsentStore)o.push(`${e}:${t}`);const r=n&&n._expiry?n._expiry:365;c._ckySetCookie("cookieyes-consent",o.join(","),r)};const s=(r["cookieyes-consent"]||"").split(",").reduce((e,t)=>{if(!t)return e;const[n,o]=t.split(":");return e[n]=o,e},{});function i(e){const t=document.querySelector("[data-cky-tag="+e+"]");return t||!1}function a(e,t){const n=d(e);n&&n.addEventListener("click",t)}function u(){return l("remove",...arguments)}function l(e,t,n,o=!0){const c=d(t,o);return c&&c.classList[e](n)}function d(e,t){let n=e;switch(!0){case e.startsWith("="):n=`[data-cky-tag="${e.substring(1)}"]`}const o=document.querySelector(n);return!o||t&&!o.parentElement?null:t?o.parentElement:o}function y(){v(),!0===n._bannerConfig.config.revisitConsent.status&&T()}function f(){!function(){if(document.getElementById("cky-style")||!o)return;document.head.insertAdjacentHTML("beforeend",` <style id="cky-style">${o.css}</style>`)}(),function(){const e=n._tags;Array.prototype.forEach.call(e,(function(e){document.querySelectorAll("[data-cky-tag="+e.tag+"]").forEach((function(t){let n="";for(const t in e.styles)n+=`${t}: ${e.styles[t]};`;t.style.cssText=n}))}))}(),function(){const e=document.getElementById("ckyBannerTemplate").innerHTML,t=(new DOMParser).parseFromString(e,"text/html");(function(e){const t=e.querySelector('[data-cky-tag="detail"] .cky-footer-shadow'),n=e.querySelector('[data-cky-tag="detail"]');if(!t)return;const o=n&&n.style.backgroundColor||"#ffffff";t.style.background=`linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, ${o} 100%)`})(t),document.body.insertAdjacentHTML("afterbegin",t.body.innerHTML),"classic"===b()&&p("=settings-button","false");N(),function(){if(!n._bannerConfig.config.auditTable.status)return;const e=n._categories.map(({slug:e})=>e);e.map(t=>{const n="#ckyDetailCategory"+t,o=n+"  .cky-accordion-btn";p(o,"false"),a(n,({target:{id:c}})=>{c!=="ckySwitch"+t&&function(){return l("toggle",...arguments)}(n,"cky-accordion-active",!1)?(p(o,"true"),e.filter(e=>e!==t).map(e=>{u("#ckyDetailCategory"+e,"cky-accordion-active",!1),p(`#ckyDetailCategory${e} .cky-accordion-btn`,"false")})):p(o,"false")})})}(),function(){for(const{slug:e}of n._categories)a("detail-category-title",()=>document.getElementById("ckyCategory"+e).classList.toggle("cky-tab-active"));a("=settings-button",()=>x("settings-button")),a("=detail-close",()=>w()),a("=optout-cancel-button",()=>w()),a("=close-button",()=>(c._ckySetInStore("action","yes"),void y())),a("=donotsell-button",()=>x("donotsell-button")),a("=reject-button",P("reject")),a("=accept-button",P("all")),a("=detail-accept-button",P("all")),a("=detail-save-button",P()),a("=detail-category-preview-save-button",P()),a("=optout-confirm-button",P()),a("=detail-reject-button",P("reject")),a("=revisit-consent",()=>_revisitCkyConsent()),a("=optout-close",()=>w())}(),function(){const e=n._bannerConfig.config.optOption.toggle,t=e.states.active.styles["background-color"],o=e.states.inactive.styles["background-color"];u("=optout-option","cky-disabled",!1);const r=n._shortCodes.find(e=>"cky_optout_toggle_label"===e.key),s=n._shortCodes.find(e=>"cky_optout_option_title"===e.key),i=r.content.replace("[cky_optout_option_title]",s.content),l="yes"===c._ckyGetFromStore("consent");!function(e,t,{checked:n,disabled:o,addListeners:c},{activeColor:r,inactiveColor:s},i=!1){if(!e)return;i&&c&&a("=optout-option-title",()=>e.click());if(e.checked=n,e.disabled=o,e.style.backgroundColor=n?r:s,D(e,n,t,i),!c)return;e.addEventListener("change",({currentTarget:n})=>{const o=n.checked;n.style.backgroundColor=o?r:s,D(e,o,t,i)})}(document.getElementById("ckyCCPAOptOut"),i,{checked:l,disabled:!1,addListeners:!0},{activeColor:t,inactiveColor:o},!0)}(),function(){const e=n._bannerConfig.config.videoPlaceholder.status,t=n._bannerConfig.config.videoPlaceholder.styles;if(!e)return;if(!e)return;const o=document.querySelectorAll('[data-cky-tag="placeholder-title"]');if(o.length<1)return;Array.from(o).forEach(e=>{e.style.display="block",e.addEventListener("click",()=>{c._ckyGetFromStore("action")&&_revisitCkyConsent()});for(const n in t)t[n]&&(e.style[n]=t[n])})}(),function(){const e=n._shortCodes.find(e=>"cky_readmore"===e.key);if(!e.status)return;const t=e.content,o=n._bannerConfig.config.readMore.styles,c=document.querySelector('[data-cky-tag="description"]');if(!c)return;if(c.childNodes.length>1){const e=document.querySelector('[data-cky-tag="description"] p:last-child');e&&e.insertAdjacentHTML("beforeend","&nbsp;"+t)}else c.insertAdjacentHTML("beforeend","&nbsp;"+t);const r=document.querySelectorAll('[data-cky-tag="readmore-button"]');if(r.length<1)return;Array.from(r).forEach(e=>{for(const t in o)o[t]&&(e.style[t]=o[t])})}(),function(){const e=document.getElementById("cky-style-inline");e&&e.remove()}(),function(){const e=i("notice");if(!e)return!1;const t=e.closest(".cky-consent-container");if(!t)return!1;const o=n._bannerConfig.settings.type;let c=n._bannerConfig.settings.position,r=o;"popup"===r&&(c="center");r="pushdown"===_()?"classic":r;const s=`cky-${r}-${c}`;t.classList.add(s);const a=i("revisit-consent");if(!a)return!1;const u="cky-revisit-"+n._bannerConfig.config.revisitConsent.position;a.classList.add(u)}(),function(){if(!n._rtl)return;["notice","detail","optout-popup","revisit-consent","video-placeholder"].forEach((function(e){i(e)&&i(e).classList.add("cky-rtl")}))}(),["detail-powered-by","optout-powered-by"].map(e=>{const t=document.querySelector(`[data-cky-tag="${e}"]`);t&&(t.style.display="flex",t.style.justifyContent="flex-end",t.style.alignItems="center")}),function(){const e=m(),t=b();if("classic"===t)return;if("popup"===t){const[e,t]=j("notice");I(e,t,!0),I(t,e)}const[n,o]=j("ccpa"===e?"optout-popup":"detail");I(n,o,!0),I(o,n)}(),function(){const e="ccpa"===m()?i("optout-popup"):i("detail");if(!e)return!1;const t=e.closest(".cky-modal");if(!t)return!1;if("pushdown"!==_()&&"popup"!==_()){const e="cky-"+n._bannerConfig.settings.preferenceCenterType;t.classList.add(e)}}()}(),function(){const e=m(),t=n._shortCodes.find(e=>"cky_show_desc"===e.key),o=n._shortCodes.find(e=>"cky_hide_desc"===e.key);if(!t||!o)return;const c=o.content,r=t.content,s=window.innerWidth<376?150:300,i=document.querySelector(`[data-cky-tag="${"gdpr"===e?"detail":"optout"}-description"]`);if(i.textContent.length<s)return;const u=i.innerHTML,l=(new DOMParser).parseFromString(u,"text/html").querySelectorAll("body > p");if(l.length<=1)return;let d="";for(let e=0;e<l.length;e++){if(e===l.length-1)return;const t=l[e];if(`${d}${t.outerHTML}`.length>s&&t.insertAdjacentHTML("beforeend","...&nbsp;"+r),d=`${d}${t.outerHTML}`,d.length>s)break}function y(){i.innerHTML=`${u}${c}`,a("=hide-desc-button",f)}function f(){i.innerHTML=d,a("=show-desc-button",y)}f()}(),!c._ckyGetFromStore("action")||function(){let e=new URL(document.location).searchParams;return e.get("cky_preview")&&"true"===e.get("cky_preview")}()?(C(),function(){const e=m();c._ckySetInStore("consent","no");const t=K(),o={accepted:[],rejected:[]};let r="yes";for(const s of n._categories)("gdpr"===e&&!s.isNecessary&&!s.defaultConsent[e]||"ccpa"===e&&t&&!s.defaultConsent.ccpa)&&(r="no"),"no"===r?o.rejected.push(s.slug):o.accepted.push(s.slug),c._ckySetInStore(""+s.slug,r);H()}(),function(){if(c._ckyGetFromStore("consentid"))return;const e=c._ckyRandomString(32);c._ckySetInStore("consentid",e),n._resetConsentID=!0}()):y()}function p(e,t=null){const n=d(e);if(!n)return;if(t)return n.setAttribute("aria-expanded",t);const o="true"===n.getAttribute("aria-expanded")?"false":"true";n.setAttribute("aria-expanded",o)}async function g(){try{f(),function(){for(const e of n._categories)"yes"!==c._ckyGetFromStore(e.slug)&&M(e)}(),document.querySelector("body").addEventListener("click",e=>{const t=".cky-banner-element, .cky-banner-element *";(e.target.matches?e.target.matches(t):e.target.msMatchesSelector(t))&&_revisitCkyConsent()})}catch(e){console.error(e)}}var k;function m(){return n._bannerConfig.settings.applicableLaw}function b(){return n._bannerConfig.settings.type}function _(){return"classic"===b()?"pushdown":n._bannerConfig.settings.preferenceCenterType}function h(){const e=i("notice"),t=e&&e.closest(".cky-consent-container")||!1;return t&&t||!1}function v(){const e=h();e&&e.classList.add("cky-hide")}function C(){const e=h();e&&e.classList.remove("cky-hide")}function S(){if("classic"===b())return h();let e="ccpa"===m()?i("optout-popup"):i("detail");return e&&e.closest(".cky-modal")||!1}function w(){const e=S();e&&e.classList.remove(E()),"classic"!==b()?(!function(){const e=document.querySelector(".cky-overlay");e&&e.classList.add("cky-hide")}(),c._ckyGetFromStore("action")||C()):(p("=settings-button","false"),u("=notice","cky-consent-bar-expand")),c._ckyGetFromStore("action")&&T();const t=n._preferenceOriginTag;t&&function(e){const t=i(e);if(!t)return;t.focus()}(t)}function L(){const e=S();e&&e.classList.add(E()),"classic"!==b()?(!function(){const e=document.querySelector(".cky-overlay");e&&e.classList.remove("cky-hide")}(),v()):(p("=settings-button"),function(){l("add",...arguments)}("=notice","cky-consent-bar-expand"))}function $(){const e=S();e&&e.classList.toggle(E()),"pushdown"!==_()&&function(){const e=document.querySelector(".cky-overlay");e&&e.classList.toggle("cky-hide")}()}function E(){return"pushdown"===_()?"cky-consent-bar-expand":"cky-modal-open"}function A(){const e=i("revisit-consent");return e&&e||!1}function T(){const e=A();e&&e.classList.remove("cky-revisit-hide")}function x(e=!1){n._preferenceOriginTag=e,"classic"===b()?($(),p("=settings-button")):L()}function j(e){const t=document.querySelector(`[data-cky-tag="${e}"]`);if(!t)return[];const n=Array.from(t.querySelectorAll('a:not([disabled]), button:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])')).filter(e=>"none"!==e.style.display);return n.length<=0?[]:[n[0],n[n.length-1]]}function I(e,t,n=!1){e&&t&&e.addEventListener("keydown",e=>{9!==e.which||n&&!e.shiftKey||!n&&e.shiftKey||(e.preventDefault(),t.focus())})}function M({cookies:e}){const t=c._ckyGetCookieMap();for(const{cookieID:n,domain:o}of e)t[n]&&[o,""].map(e=>c._ckySetCookie(n,"",0,e))}function N(e=!1){for(const t of n._categories){const o=c._ckyGetFromStore(t.slug);O(t,"yes"===o||!o&&t.defaultConsent[m()]||t.isNecessary,t.isNecessary,n._shortCodes.find(e=>"cky_category_toggle_label"===e.key).content.replace("[cky_preference_{{category_slug}}_title]",t.name),e),q(t)}}function O(e,t,o,c,r=!1){const s=n._bannerConfig.config.preferenceCenter.toggle,i=s.states.active.styles["background-color"],a=s.states.inactive.styles["background-color"];["ckyCategoryDirect","ckySwitch"].map(s=>{const u=document.getElementById(`${s}${e.slug}`);u&&(!function(e,t={},o=!1){if(o)return;"detail-category-toggle"===e.parentElement.getAttribute("data-cky-tag")?function(e,t){let o=e.closest(".cky-accordion-item");if(!o)return;const c=o.querySelector(".cky-switch");t.isNecessary?c&&c.remove():("classic"===b()&&n._bannerConfig.config.categoryPreview.status||t.cookies&&0===t.cookies.length)&&c&&c.remove()}(e,t):"detail-category-preview-toggle"===e.parentElement.getAttribute("data-cky-tag")&&function(e,t){t.cookies&&0===t.cookies.length&&!t.isNecessary&&e.parentElement.parentElement.remove()}(e,t);if(!t.isNecessary){const e=t.name,n=document.querySelector(`[data-cky-tag="detail-category-title"][aria-label="${e}"]`);if(n){const e=n.closest(".cky-accordion-item").querySelector(".cky-always-active");e&&e.remove()}}}(u,e,r),u.checked=t,u.disabled=o,u.style.backgroundColor=t?i:a,D(u,t,c),r||u.addEventListener("change",({currentTarget:e})=>{const t=e.checked;e.style.backgroundColor=t?i:a,D(u,t,c)}))})}function q(e){if(!1===n._bannerConfig.config.auditTable.status){const t=document.querySelector(`#ckyDetailCategory${e.slug} [data-cky-tag="audit-table"]`);t&&t.remove();const n=document.querySelector(`#ckyDetailCategory${e.slug} .cky-accordion-chevron`);n&&n.classList.add("cky-accordion-chevron-hide")}}function D(e,t,o,c=!1){if(!e)return;const r=t?"disable":"enable",s=`cky_${r}_${c?"optout":"category"}_label`,i=n._shortCodes.find(e=>e.key===s);if(!i)return;const a=o.replace(/{{status}}/g,r).replace(`[${s}]`,i.content);e.setAttribute("aria-label",a)}function P(e="custom"){return()=>{!function(e="all"){const t=m(),o=K();c._ckySetInStore("action","yes"),"gdpr"===t?c._ckySetInStore("consent","reject"===e?"no":"yes"):c._ckySetInStore("consent",o?"yes":"no");const r={accepted:[],rejected:[]};for(const s of n._categories){let n="no";n="gdpr"===t?s.isNecessary||"reject"!==e&&("custom"!==e||K(s.slug))?"yes":"no":o&&!s.defaultConsent.ccpa?"no":"yes",c._ckySetInStore(""+s.slug,n),"no"===n?(r.rejected.push(s.slug),M(s)):r.accepted.push(s.slug)}H()}(e),y(),w(),function(){"gdpr"===m()&&N(!0);!0===n._bannerConfig.behaviours.reloadBannerOnAccept&&window.location.reload()}()}}["consentid","consent","action"].concat(n._categories.map(({slug:e})=>e)).map(e=>c._ckyConsentStore.set(e,s[e]||"")),c._ckyGetCookie=function(e){const t=new RegExp(e+"=([^;]+)").exec(document.cookie);return t&&Array.isArray(t)&&t[1]?unescape(t[1]):null},c._ckySetCookie=function(e,t,o=0,c=n._rootDomain){const r=new Date;c&&(c="domain="+c);const s=0===o?0:r.setTime(r.getTime()+24*o*60*60*1e3);document.cookie=`${e}=${t}; expires=${new Date(s).toUTCString()}; path=/;${c}; SameSite=Strict;`},_revisitCkyConsent=function(){"classic"===b()&&C(),x(),function(e=!1){const t=A();t&&(!0===e?_ckyRevisitHide():t.classList.toggle("cky-revisit-hide"))}()},c._ckyRandomString=function(e,t=!0){const n=(t?"0123456789":"")+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz",o=[];for(let t=0;t<e;t++)o.push(n[Math.floor(Math.random()*n.length)]);return t?btoa(o.join("")).replace(/\=+$/,""):o.join("")},k=async function(){try{await g()}catch(e){console.error(e)}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",k):k());const B=document.createElement;function H(){if(1===navigator.doNotTrack)return;const e=c._ckyGetFromStore("consent");("gdpr"!==m()||e&&"yes"===e)&&(n._backupNodes=n._backupNodes.filter(({position:e,node:t,uniqueID:n})=>{try{if(U(t.src))return!0;if("script"===t.nodeName.toLowerCase()){const n=document.createElement("script");n.src=t.src,n.type="text/javascript",document[e].appendChild(n)}else{const e=document.getElementById(n);if(!e)return!1;const o=document.createElement("iframe");o.src=t.src,o.width=e.offsetWidth,o.height=e.offsetHeight,e.parentNode.insertBefore(o,e),e.parentNode.removeChild(e)}return!1}catch(e){return console.error(e),!1}}))}function G(e,t){const o=e.hasAttribute("data-cookieyes")&&e.getAttribute("data-cookieyes");if(!o)return;const c=o.replace("cookieyes-","");for(const e of n._categories)if(e.isNecessary&&e.slug===c)return;const r=n._providersToBlock.find(({re:e})=>e===t);r?r.isOverridden?r.categories.includes(c)||r.categories.push(c):(r.categories=[c],r.isOverridden=!0):n._providersToBlock.push({re:t,categories:[c],fullPath:!1})}document.createElement=(...e)=>{const t=B.call(document,...e);if("script"!==t.nodeName.toLowerCase())return t;const n=t.setAttribute.bind(t);return Object.defineProperties(t,{src:{get:function(){return t.getAttribute("src")},set:function(e){return W(t,e)&&n("type","javascript/blocked"),n("src",e),!0}},type:{get:function(){return t.getAttribute("type")},set:function(e){return e=W(t)?"javascript/blocked":e,n("type",e),!0}}}),t.setAttribute=(e,o)=>{if("type"===e||"src"===e)return t[e]=o;n(e,o),"data-cookieyes"!==e||W(t)||n("type","text/javascript")},t};const F=new MutationObserver((function(e){for(const{addedNodes:t}of e)for(const e of t)if(e.src&&e.nodeName&&["script","iframe"].includes(e.nodeName.toLowerCase()))try{const t=e.src.startsWith("//")?`${window.location.protocol}${e.src}`:e.src,{hostname:o,pathname:r}=new URL(t),s=`${o}${r}`.replace(/^www./,"");if(G(e,s),!U(s))continue;const i=c._ckyRandomString(8,!1);if("iframe"===e.nodeName.toLowerCase())Q(e,i);else{e.type="javascript/blocked";const t=function(n){n.preventDefault(),e.removeEventListener("beforescriptexecute",t)};e.addEventListener("beforescriptexecute",t)}const a=document.head.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?"head":"body";e.remove(),n._backupNodes.push({position:a,node:e.cloneNode(),uniqueID:i})}catch(e){}}));function R(e){const t=c._ckyGetFromStore(e);return"no"===t||!t&&n._categories.some(t=>t.slug===e&&!t.isNecessary)}function U(e){const t=n._providersToBlock.find(({re:t})=>{return new RegExp((n=t,n.replace(/[.*+?^${}()[\]\\]/g,"\\$&"))).test(e);var n});return t&&t.categories.some(e=>R(e))}function W(e,t){return e.hasAttribute("data-cookieyes")&&R(e.getAttribute("data-cookieyes").replace("cookieyes-",""))||U(t||e.src)}function K(e=""){return(e?["ckySwitch","ckyCategoryDirect"]:["ckyCCPAOptOut"]).some(t=>{const n=document.getElementById(`${t}${e}`);return n&&n.checked})}function Q(e,t){const o=n._shortCodes.find(e=>"cky_video_placeholder"===e.key).content,{offsetWidth:c,offsetHeight:r}=e;if(0===c||0===r)return;e.insertAdjacentHTML("beforebegin",(""+o).replace("[UNIQUEID]",t));const s=document.getElementById(t);s.style.width=c+"px",s.style.height=r+"px";const i=document.querySelector(`#${t} .video-placeholder-text-normal`);i.style.display="none";const a=function(e){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!!(t&&Array.isArray(t)&&t[2]&&11===t[2].length)&&t[2]}(e.src);a&&(s.classList.replace("video-placeholder-normal","video-placeholder-youtube"),s.style.backgroundImage=`linear-gradient(rgba(76,72,72,.7),rgba(76,72,72,.7)),url('https://img.youtube.com/vi/${a}/maxresdefault.jpg')`,i.classList.replace("video-placeholder-text-normal","video-placeholder-text-youtube"))}F.observe(document.documentElement,{childList:!0,subtree:!0}),window.revisitCkyConsent=()=>_revisitCkyConsent()}]);
// source --> https://fas-amazonia.org/wp-content/plugins/swift-framework/public/js/lib/imagesloaded.pkgd.min.js 
/*!
 * imagesLoaded PACKAGED v4.1.3
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */

!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=0,o=i[n];t=t||[];for(var r=this._onceEvents&&this._onceEvents[e];o;){var s=r&&r[o];s&&(this.off(e,o),delete r[o]),o.apply(this,t),n+=s?0:1,o=i[n]}return this}},t.allOff=t.removeAllListeners=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){var t=[];if(Array.isArray(e))t=e;else if("number"==typeof e.length)for(var i=0;i<e.length;i++)t.push(e[i]);else t.push(e);return t}function o(e,t,r){return this instanceof o?("string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=n(e),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(function(){this.check()}.bind(this))):new o(e,t,r)}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
// source --> https://fas-amazonia.org/wp-content/plugins/swift-framework/public/js/lib/jquery.viewports.min.js 
!function(e){e.belowthefold=function(t,o){return e(window).height()+e(window).scrollTop()<=e(t).offset().top-o.threshold},e.abovethetop=function(t,o){return e(window).scrollTop()>=e(t).offset().top+e(t).height()-o.threshold},e.rightofscreen=function(t,o){return e(window).width()+e(window).scrollLeft()<=e(t).offset().left-o.threshold},e.leftofscreen=function(t,o){return e(window).scrollLeft()>=e(t).offset().left+e(t).width()-o.threshold},e.inviewport=function(t,o){return!(e.rightofscreen(t,o)||e.leftofscreen(t,o)||e.belowthefold(t,o)||e.abovethetop(t,o))},e.extend(e.expr[":"],{"below-the-fold":function(t,o,n){return e.belowthefold(t,{threshold:parseInt(n[3])||0})},"above-the-top":function(t,o,n){return e.abovethetop(t,{threshold:parseInt(n[3])||0})},"left-of-screen":function(t,o,n){return e.leftofscreen(t,{threshold:parseInt(n[3])||0})},"right-of-screen":function(t,o,n){return e.rightofscreen(t,{threshold:parseInt(n[3])||0})},"in-viewport":function(t,o,n){return e.inviewport(t,{threshold:parseInt(n[3])||0})}})}(jQuery);