var e=`europack-euromanut-cfia-2019`;if(typeof document<`u`&&typeof window<`u`){Array.prototype.find||Object.defineProperty(Array.prototype,`find`,{value:function(e){if(this==null)throw TypeError(`"this" is null or not defined`);var t=Object(this),n=t.length>>>0;if(typeof e!=`function`)throw TypeError(`predicate must be a function`);for(var r=arguments[1],i=0;i>>0;if(r===0)return!1;var i=t|0,a=Math.max(i>=0?i:r-Math.abs(i),0);function o(e,t){return e===t||typeof e==`number`&&typeof t==`number`&&isNaN(e)&&isNaN(t)}for(;a0?1:-1)*Math.floor(Math.abs(t))},r=2**53-1,i=function(e){var t=n(e);return Math.min(Math.max(t,0),r)};return function(e){var n=this,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);var a=arguments.length>1?arguments[1]:void 0,o;if(a!==void 0){if(!t(a))throw TypeError(`Array.from: when provided, the second argument must be a function`);arguments.length>2&&(o=arguments[2])}for(var s=i(r.length),c=t(n)?Object(new n(s)):Array(s),l=0,u;l>>0;if(typeof e!=`function`)throw TypeError(e+` is not a function`);for(arguments.length>1&&(t=arguments[1]),n=0;n1?arguments[1]:void 0,s=o?Number(o):0;s!==s&&(s=0);var c=Math.min(Math.max(s,0),r);if(a+c>r)return!1;for(var l=-1;++le.name===`data-lang`||e.name===`data-locale`),o=a?a.value:void 0,s=`https://platform.revolugo.com/${o&&[`en`,`en-US`,`fr`,`fr-FR`].includes(o)?`${o}/`:``}hotels?embedded=true`;e.length&&i.setAttribute(`data-wid`,`europack-euromanut-cfia-2019`);let c=i.attributes[`data-wid`]&&i.attributes[`data-wid`].value;c&&i.setAttribute(`data-wid`,c);function l(e){try{return decodeURIComponent(e)!==e}catch{return!0}}function u(e){return l(e)?e:encodeURIComponent(e)}Array.from(i.attributes).forEach(e=>{switch(e.name){case`data-height`:r+=`height: ${e.value};`;break;default:e.name.startsWith(`data-`)&&e.name!==`data-metadata`&&(s+=`&${e.name.replace(`data-`,``)}=${u(e.value.replace(`#`,``))}`)}}),n.setAttribute(`style`,r),n.setAttribute(`src`,s);let d=document.getElementById(`revolugo-widget`);if(!d){let e=document.getElementsByTagName(`script`);for(var t=0;t-1&&(d=e[t])}if(d){let e=d.parentNode;e.appendChild(n),e.removeChild(d)}}