Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),a=u.length>>>0;if(typeof t!="function")throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i>>0;if(r===0)return!1;var i=u|0,e=Math.max(i>=0?i:r-Math.abs(i),0);function o(l,n){return l===n||typeof l=="number"&&typeof n=="number"&&isNaN(l)&&isNaN(n)}for(;e0?1:-1)*Math.floor(Math.abs(o))},r=Math.pow(2,53)-1,i=function(e){var o=a(e);return Math.min(Math.max(o,0),r)};return function(o){var l=this,n=Object(o);if(o==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f=arguments.length>1?arguments[1]:void 0,s;if(typeof f<"u"){if(!u(f))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(s=arguments[2])}for(var p=i(n.length),h=u(l)?Object(new l(p)):new Array(p),v=0,y;v"u"?f(y,v):f.call(s,y,v):h[v]=y,v+=1;return h.length=p,h}}());Array.prototype.forEach||(Array.prototype.forEach=function(t){var u,a;if(this==null)throw new TypeError("this is null or not defined");var r=Object(this),i=r.length>>>0;if(typeof t!="function")throw new TypeError(t+" is not a function");for(arguments.length>1&&(u=arguments[1]),a=0;a1?arguments[1]:void 0,f=n?Number(n):0;f!==f&&(f=0);var s=Math.min(Math.max(f,0),e);if(l+s>e)return!1;for(var p=-1;++pt.name==="data-lang"),E=N?N.value:void 0;let j=`https://platform.revolugo.com/${E&&["en","fr"].includes(E)?`${E}/`:""}hotels?embedded=true`;const M="";M.length&&m.setAttribute("data-wid","");const T=m.attributes["data-wid"]&&m.attributes["data-wid"].value;T&&m.setAttribute("data-wid",T);Array.from(m.attributes).forEach(t=>{switch(t.name){case"data-height":_+=`height: ${t.value};`;break;default:t.name.startsWith("data-")&&(j+=`&${t.name.replace("data-","")}=${t.value}`)}});b.setAttribute("style",_);b.setAttribute("src",encodeURI(j));let w=document.getElementById("revolugo-widget");if(!w){const t=document.getElementsByTagName("script");for(var O=0;O-1&&(w=t[O])}if(w){const t=w.parentNode;t.appendChild(b),t.removeChild(w)}