var BOOKING_ROOT = "https://booking.previo.cz";var IFRAME_STYLESHEET_URL = "https://booking.previo.cz/css-95833/iframe.css";!function(){"use strict";var e={BOOKING_ROOT:window.BOOKING_ROOT||null},t=function t(e){var t=this;this._getIframe=function(){if(t._iframe=document.getElementById("previo-booking-iframe")||document.getElementById("hotelgram-booking-iframe"),t._iframe)return t._receiver=t._iframe.contentWindow,t._waitForIframe(),t._iframe},this._waitForIframe=function(){var e=t._iframe,checkState=function(){e.onload=function(){try{t._iframeReady=!0,t._emptyBuffer()}catch(e){console.log(e),setTimeout(checkState,100)}}};checkState()},this._emptyBuffer=function(){if(t._messageBuffer.length)for(var e;e=t._messageBuffer.pop();)t.postMessageToIframe(e)},this.postMessageToIframe=function(e){if(!t._getIframe())throw new Error("Iframe not found!");"string"!=typeof e&&(e=JSON.stringify(e)),t._iframeReady?t._receiver.postMessage(e,t._cfg.BOOKING_ROOT):t._messageBuffer.push(e)},this.postMessageToParentPage=function(e){var r=t._getParentUrl();r&&window.parent.postMessage(e,r)},this._getParentUrl=function(){if(""===t._parentUrl&&window.parent.frames.length>1){var e=parent.frames.__previo_proxy_iframe,r=e.location.hash;e&&"string"==typeof r&&(t._parentUrl=decodeURIComponent(r.replace(/^#/,"")))}return t._parentUrl},this._cfg=e,this._parentUrl="",this._iframeReady=!1,this._messageBuffer=[],this._getIframe()};var r=function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var a="object"==typeof n&&n&&n.Object===Object&&n,i="object"==typeof self&&self&&self.Object===Object&&self,u=a||i||Function("return this")(),now_1=function(){return u.Date.now()},c=/\s/;var f=function trimmedEndIndex(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t},g=/^\s+/;var b=function baseTrim(e){return e?e.slice(0,f(e)+1).replace(g,""):e},m=u.Symbol,I=Object.prototype,S=I.hasOwnProperty,O=I.toString,A=m?m.toStringTag:void 0;var R=function getRawTag(e){var t=S.call(e,A),r=e[A];try{e[A]=void 0;var n=!0}catch(e){}var a=O.call(e);return n&&(t?e[A]=r:delete e[A]),a},k=Object.prototype.toString;var C=function objectToString(e){return k.call(e)},E=m?m.toStringTag:void 0;var L=function baseGetTag(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?R(e):C(e)};var T=function isObjectLike(e){return null!=e&&"object"==typeof e};var P=function isSymbol(e){return"symbol"==typeof e||T(e)&&"[object Symbol]"==L(e)},F=/^[-+]0x[0-9a-f]+$/i,D=/^0b[01]+$/i,U=/^0o[0-7]+$/i,M=parseInt;var W=function toNumber(e){if("number"==typeof e)return e;if(P(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=b(e);var n=D.test(e);return n||U.test(e)?M(e.slice(2),n?2:8):F.test(e)?NaN:+e},z=Math.max,N=Math.min;var B=function debounce(e,t,n){var a,i,u,c,f,g,b=0,m=!1,I=!1,S=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function invokeFunc(t){var r=a,n=i;return a=i=void 0,b=t,c=e.apply(n,r)}function leadingEdge(e){return b=e,f=setTimeout(timerExpired,t),m?invokeFunc(e):c}function shouldInvoke(e){var r=e-g;return void 0===g||r>=t||r<0||I&&e-b>=u}function timerExpired(){var e=now_1();if(shouldInvoke(e))return trailingEdge(e);f=setTimeout(timerExpired,function remainingWait(e){var r=t-(e-g);return I?N(r,u-(e-b)):r}(e))}function trailingEdge(e){return f=void 0,S&&a?invokeFunc(e):(a=i=void 0,c)}function debounced(){var e=now_1(),r=shouldInvoke(e);if(a=arguments,i=this,g=e,r){if(void 0===f)return leadingEdge(g);if(I)return clearTimeout(f),f=setTimeout(timerExpired,t),invokeFunc(g)}return void 0===f&&(f=setTimeout(timerExpired,t)),c}return t=W(t)||0,r(n)&&(m=!!n.leading,u=(I="maxWait"in n)?z(W(n.maxWait)||0,t):u,S="trailing"in n?!!n.trailing:S),debounced.cancel=function cancel(){void 0!==f&&clearTimeout(f),b=0,a=g=i=f=void 0},debounced.flush=function flush(){return void 0===f?c:trailingEdge(now_1())},debounced};var H=function throttle(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),B(e,t,{leading:a,maxWait:t,trailing:i})},extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var G=function(){function ConversionHandlerAbstract(e){var t=this;this.getObkNamesString=function(){return t.reservationDetails.commissions.map((function(e){return e.name}))},this._reservationDetails=e}return Object.defineProperty(ConversionHandlerAbstract.prototype,"reservationDetails",{get:function(){return this._reservationDetails},enumerable:!1,configurable:!0}),ConversionHandlerAbstract.prototype.getProductName=function(){return"".concat(this.reservationDetails.isStayReservation?this.reservationDetails.stayName:"Reservation"," - ").concat(this.reservationDetails.hotName)},ConversionHandlerAbstract.prototype.getProductType=function(){return"".concat(this.reservationDetails.isStayReservation?this.reservationDetails.stayName:"Reservation"," - ").concat(this.getObkNamesString())},ConversionHandlerAbstract.prototype.getApproxPricePerPerson=function(e){return void 0===e&&(e=!1),(e?this.reservationDetails.totalPrice:this.reservationDetails.totalPriceInHotelDefaultCurrency)/this.reservationDetails.numOfGuests},ConversionHandlerAbstract}();Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,n;if(null===this)throw new TypeError(" this is null or not defined");var a=Object(this),i=a.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1"']/g,se=RegExp(oe.source),ue=RegExp(ie.source),ce=/<%-([\s\S]+?)%>/g,le=/<%([\s\S]+?)%>/g,fe=/<%=([\s\S]+?)%>/g,he=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pe=/^\w*$/,de=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,ye=RegExp(ge.source),ve=/^\s+/,be=/\s/,_e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,me=/\{\n\/\* \[wrapped with (.+)\] \*/,Ie=/,? & /,Se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/[()=,{}\[\]\/\s]/,Oe=/\\(\\)?/g,Ae=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/\w*$/,ke=/^[-+]0x[0-9a-f]+$/i,Ce=/^0b[01]+$/i,Ee=/^\[object .+?Constructor\]$/,je=/^0o[0-7]+$/i,Le=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Te=/($^)/,Pe=/['\n\r\u2028\u2029\\]/g,Fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",De="\\u2700-\\u27bf",Ue="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",We="\\ufe0e\\ufe0f",ze="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['’]",Be="[\\ud800-\\udfff]",He="["+ze+"]",Ge="["+Fe+"]",qe="\\d+",Ke="[\\u2700-\\u27bf]",Ve="["+Ue+"]",$e="[^\\ud800-\\udfff"+ze+qe+De+Ue+Me+"]",Ye="\\ud83c[\\udffb-\\udfff]",Ze="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Je="[\\ud800-\\udbff][\\udc00-\\udfff]",Qe="["+Me+"]",et="(?:"+Ve+"|"+$e+")",tt="(?:"+Qe+"|"+$e+")",rt="(?:['’](?:d|ll|m|re|s|t|ve))?",nt="(?:['’](?:D|LL|M|RE|S|T|VE))?",at="(?:"+Ge+"|"+Ye+")"+"?",ot="[\\ufe0e\\ufe0f]?",it=ot+at+("(?:\\u200d(?:"+[Ze,Xe,Je].join("|")+")"+ot+at+")*"),st="(?:"+[Ke,Xe,Je].join("|")+")"+it,ut="(?:"+[Ze+Ge+"?",Ge,Xe,Je,Be].join("|")+")",ct=RegExp(Ne,"g"),lt=RegExp(Ge,"g"),ft=RegExp(Ye+"(?="+Ye+")|"+ut+it,"g"),ht=RegExp([Qe+"?"+Ve+"+"+rt+"(?="+[He,Qe,"$"].join("|")+")",tt+"+"+nt+"(?="+[He,Qe+et,"$"].join("|")+")",Qe+"?"+et+"+"+rt,Qe+"+"+nt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,st].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+Fe+We+"]"),dt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yt=-1,vt={};vt[V]=vt[$]=vt[Y]=vt[Z]=vt[X]=vt[J]=vt[Q]=vt[ee]=vt[te]=!0,vt[k]=vt[C]=vt[q]=vt[E]=vt[K]=vt[L]=vt[T]=vt[P]=vt[D]=vt[U]=vt[M]=vt[z]=vt[N]=vt[B]=vt[G]=!1;var bt={};bt[k]=bt[C]=bt[q]=bt[K]=bt[E]=bt[L]=bt[V]=bt[$]=bt[Y]=bt[Z]=bt[X]=bt[D]=bt[U]=bt[M]=bt[z]=bt[N]=bt[B]=bt[H]=bt[J]=bt[Q]=bt[ee]=bt[te]=!0,bt[T]=bt[P]=bt[G]=!1;var _t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mt=parseFloat,It=parseInt,St="object"==typeof n&&n&&n.Object===Object&&n,wt="object"==typeof self&&self&&self.Object===Object&&self,Ot=St||wt||Function("return this")(),At=t&&!t.nodeType&&t,Rt=At&&e&&!e.nodeType&&e,kt=Rt&&Rt.exports===At,Ct=kt&&St.process,Et=function(){try{var e=Rt&&Rt.require&&Rt.require("util").types;return e||Ct&&Ct.binding&&Ct.binding("util")}catch(e){}}(),jt=Et&&Et.isArrayBuffer,Lt=Et&&Et.isDate,xt=Et&&Et.isMap,Tt=Et&&Et.isRegExp,Pt=Et&&Et.isSet,Ft=Et&&Et.isTypedArray;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayAggregator(e,t,r,n){for(var a=-1,i=null==e?0:e.length;++a-1}function arrayIncludesWith(e,t,r){for(var n=-1,a=null==e?0:e.length;++n-1;);return r}function charsEndIndex(e,t){for(var r=e.length;r--&&baseIndexOf(t,e[r],0)>-1;);return r}function countHolders(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Ut=basePropertyOf({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mt=basePropertyOf({"&":"&","<":"<",">":">",'"':""","'":"'"});function escapeStringChar(e){return"\\"+_t[e]}function hasUnicode(e){return pt.test(e)}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function overArg(e,t){return function(r){return e(t(r))}}function replaceHolders(e,t){for(var r=-1,n=e.length,a=0,i=[];++r",""":'"',"'":"'"});var zt=function runInContext(e){var t,n=(e=null==e?Ot:zt.defaults(Ot.Object(),e,zt.pick(Ot,gt))).Array,be=e.Date,Fe=e.Error,De=e.Function,Ue=e.Math,Me=e.Object,We=e.RegExp,ze=e.String,Ne=e.TypeError,Be=n.prototype,He=De.prototype,Ge=Me.prototype,qe=e["__core-js_shared__"],Ke=He.toString,Ve=Ge.hasOwnProperty,$e=0,Ye=(t=/[^.]+$/.exec(qe&&qe.keys&&qe.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",Ze=Ge.toString,Xe=Ke.call(Me),Je=Ot._,Qe=We("^"+Ke.call(Ve).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=kt?e.Buffer:r,tt=e.Symbol,rt=e.Uint8Array,nt=et?et.allocUnsafe:r,at=overArg(Me.getPrototypeOf,Me),ot=Me.create,it=Ge.propertyIsEnumerable,st=Be.splice,ut=tt?tt.isConcatSpreadable:r,ft=tt?tt.iterator:r,pt=tt?tt.toStringTag:r,_t=function(){try{var e=getNative(Me,"defineProperty");return e({},"",{}),e}catch(e){}}(),St=e.clearTimeout!==Ot.clearTimeout&&e.clearTimeout,wt=be&&be.now!==Ot.Date.now&&be.now,At=e.setTimeout!==Ot.setTimeout&&e.setTimeout,Rt=Ue.ceil,Ct=Ue.floor,Et=Me.getOwnPropertySymbols,Dt=et?et.isBuffer:r,Nt=e.isFinite,Bt=Be.join,Ht=overArg(Me.keys,Me),Gt=Ue.max,qt=Ue.min,Kt=be.now,Vt=e.parseInt,$t=Ue.random,Yt=Be.reverse,Zt=getNative(e,"DataView"),Xt=getNative(e,"Map"),Jt=getNative(e,"Promise"),Qt=getNative(e,"Set"),er=getNative(e,"WeakMap"),tr=getNative(Me,"create"),rr=er&&new er,nr={},ar=toSource(Zt),or=toSource(Xt),ir=toSource(Jt),sr=toSource(Qt),ur=toSource(er),cr=tt?tt.prototype:r,lr=cr?cr.valueOf:r,fr=cr?cr.toString:r;function lodash(e){if(isObjectLike(e)&&!yn(e)&&!(e instanceof LazyWrapper)){if(e instanceof LodashWrapper)return e;if(Ve.call(e,"__wrapped__"))return wrapperClone(e)}return new LodashWrapper(e)}var hr=function(){function object(){}return function(e){if(!isObject(e))return{};if(ot)return ot(e);object.prototype=e;var t=new object;return object.prototype=r,t}}();function baseLodash(){}function LodashWrapper(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function LazyWrapper(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=A,this.__views__=[]}function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function baseClone(e,t,n,a,i,u){var c,f=1&t,g=2&t,b=4&t;if(n&&(c=i?n(e,a,i,u):n(e)),c!==r)return c;if(!isObject(e))return e;var m=yn(e);if(m){if(c=function initCloneArray(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ve.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!f)return copyArray(e,c)}else{var I=Ar(e),S=I==P||I==F;if(bn(e))return cloneBuffer(e,f);if(I==M||I==k||S&&!i){if(c=g||S?{}:initCloneObject(e),!f)return g?function copySymbolsIn(e,t){return copyObject(e,Or(e),t)}(e,function baseAssignIn(e,t){return e&©Object(t,keysIn(t),e)}(c,e)):function copySymbols(e,t){return copyObject(e,wr(e),t)}(e,baseAssign(c,e))}else{if(!bt[I])return i?e:{};c=function initCloneByTag(e,t,r){var n=e.constructor;switch(t){case q:return cloneArrayBuffer(e);case E:case L:return new n(+e);case K:return function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case V:case $:case Y:case Z:case X:case J:case Q:case ee:case te:return cloneTypedArray(e,r);case D:return new n;case U:case B:return new n(e);case z:return function cloneRegExp(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new n;case H:return function cloneSymbol(e){return lr?Me(lr.call(e)):{}}(e)}}(e,I,f)}}u||(u=new Stack);var O=u.get(e);if(O)return O;u.set(e,c),Sn(e)?e.forEach((function(r){c.add(baseClone(r,t,n,r,e,u))})):mn(e)&&e.forEach((function(r,a){c.set(a,baseClone(r,t,n,a,e,u))}));var A=m?r:(b?g?getAllKeysIn:getAllKeys:g?keysIn:keys)(e);return arrayEach(A||e,(function(r,a){A&&(r=e[a=r]),assignValue(c,a,baseClone(r,t,n,a,e,u))})),c}function baseConformsTo(e,t,n){var a=n.length;if(null==e)return!a;for(e=Me(e);a--;){var i=n[a],u=t[i],c=e[i];if(c===r&&!(i in e)||!u(c))return!1}return!0}function baseDelay(e,t,n){if("function"!=typeof e)throw new Ne(a);return Cr((function(){e.apply(r,n)}),t)}function baseDifference(e,t,r,n){var a=-1,i=arrayIncludes,u=!0,c=e.length,f=[],g=t.length;if(!c)return f;r&&(t=arrayMap(t,baseUnary(r))),n?(i=arrayIncludesWith,u=!1):t.length>=200&&(i=cacheHas,u=!1,t=new SetCache(t));e:for(;++a-1},ListCache.prototype.set=function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Xt||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){var r=getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(e){return this.__data__.set(e,i),this},SetCache.prototype.has=function setCacheHas(e){return this.__data__.has(e)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Stack.prototype.get=function stackGet(e){return this.__data__.get(e)},Stack.prototype.has=function stackHas(e){return this.__data__.has(e)},Stack.prototype.set=function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!Xt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(n)}return r.set(e,t),this.size=r.size,this};var pr=createBaseEach(baseForOwn),dr=createBaseEach(baseForOwnRight,!0);function baseEvery(e,t){var r=!0;return pr(e,(function(e,n,a){return r=!!t(e,n,a)})),r}function baseExtremum(e,t,n){for(var a=-1,i=e.length;++a0&&r(c)?t>1?baseFlatten(c,t-1,r,n,a):arrayPush(a,c):n||(a[a.length]=c)}return a}var gr=createBaseFor(),yr=createBaseFor(!0);function baseForOwn(e,t){return e&&gr(e,t,keys)}function baseForOwnRight(e,t){return e&&yr(e,t,keys)}function baseFunctions(e,t){return arrayFilter(t,(function(t){return isFunction(e[t])}))}function baseGet(e,t){for(var n=0,a=(t=castPath(t,e)).length;null!=e&&nt}function baseHas(e,t){return null!=e&&Ve.call(e,t)}function baseHasIn(e,t){return null!=e&&t in Me(e)}function baseIntersection(e,t,a){for(var i=a?arrayIncludesWith:arrayIncludes,u=e[0].length,c=e.length,f=c,g=n(c),b=1/0,m=[];f--;){var I=e[f];f&&t&&(I=arrayMap(I,baseUnary(t))),b=qt(I.length,b),g[f]=!a&&(t||u>=120&&I.length>=120)?new SetCache(f&&I):r}I=e[0];var S=-1,O=g[0];e:for(;++S=c?f:f*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function basePickBy(e,t,r){for(var n=-1,a=t.length,i={};++n-1;)c!==e&&st.call(c,f,1),st.call(e,f,1);return e}function basePullAt(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a=t[r];if(r==n||a!==i){var i=a;isIndex(a)?st.call(e,a,1):baseUnset(e,a)}}return e}function baseRandom(e,t){return e+Ct($t()*(t-e+1))}function baseRepeat(e,t){var r="";if(!e||t<1||t>S)return r;do{t%2&&(r+=e),(t=Ct(t/2))&&(e+=e)}while(t);return r}function baseRest(e,t){return Er(overRest(e,t,identity),e+"")}function baseSample(e){return arraySample(values(e))}function baseSampleSize(e,t){var r=values(e);return shuffleSelf(r,baseClamp(t,0,r.length))}function baseSet(e,t,n,a){if(!isObject(e))return e;for(var i=-1,u=(t=castPath(t,e)).length,c=u-1,f=e;null!=f&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var u=n(i);++a>>1,u=e[i];null!==u&&!isSymbol(u)&&(r?u<=t:u=200){var g=t?null:Ir(e);if(g)return setToArray(g);u=!1,a=cacheHas,f=new SetCache}else f=t?[]:c;e:for(;++n=a?e:baseSlice(e,t,n)}var mr=St||function(e){return Ot.clearTimeout(e)};function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,n=nt?nt(r):new e.constructor(r);return e.copy(n),n}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new rt(t).set(new rt(e)),t}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function compareAscending(e,t){if(e!==t){var n=e!==r,a=null===e,i=e==e,u=isSymbol(e),c=t!==r,f=null===t,g=t==t,b=isSymbol(t);if(!f&&!b&&!u&&e>t||u&&c&&g&&!f&&!b||a&&c&&g||!n&&g||!i)return 1;if(!a&&!u&&!b&&e1?n[i-1]:r,c=i>2?n[2]:r;for(u=e.length>3&&"function"==typeof u?(i--,u):r,c&&isIterateeCall(n[0],n[1],c)&&(u=i<3?r:u,i=1),t=Me(t);++a-1?i[u?t[c]:c]:r}}function createFlow(e){return flatRest((function(t){var n=t.length,i=n,u=LodashWrapper.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if("function"!=typeof c)throw new Ne(a);if(u&&!f&&"wrapper"==getFuncName(c))var f=new LodashWrapper([],!0)}for(i=f?i:n;++i1&&b.reverse(),S&&mf))return!1;var b=u.get(e),m=u.get(t);if(b&&m)return b==t&&m==e;var I=-1,S=!0,O=2&n?new SetCache:r;for(u.set(e,t),u.set(t,e);++I-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(_e,"{\n/* [wrapped with "+t+"] */\n")}(n,function updateWrapDetails(e,t){return arrayEach(R,(function(r){var n="_."+r[0];t&r[1]&&!arrayIncludes(e,n)&&e.push(n)})),e.sort()}(function getWrapDetails(e){var t=e.match(me);return t?t[1].split(Ie):[]}(n),r)))}function shortOut(e){var t=0,n=0;return function(){var a=Kt(),i=16-(a-n);if(n=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function shuffleSelf(e,t){var n=-1,a=e.length,i=a-1;for(t=t===r?a:t;++n1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,unzipWith(e,n)}));function chain(e){var t=lodash(e);return t.__chain__=!0,t}function thru(e,t){return t(e)}var $r=flatRest((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,interceptor=function(t){return baseAt(t,e)};return!(t>1||this.__actions__.length)&&a instanceof LazyWrapper&&isIndex(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:r}),new LodashWrapper(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(interceptor)}));var Yr=createAggregator((function(e,t,r){Ve.call(e,r)?++e[r]:baseAssignValue(e,r,1)}));var Zr=createFind(findIndex),Xr=createFind(findLastIndex);function forEach(e,t){return(yn(e)?arrayEach:pr)(e,getIteratee(t,3))}function forEachRight(e,t){return(yn(e)?arrayEachRight:dr)(e,getIteratee(t,3))}var Jr=createAggregator((function(e,t,r){Ve.call(e,r)?e[r].push(t):baseAssignValue(e,r,[t])}));var Qr=baseRest((function(e,t,r){var a=-1,i="function"==typeof t,u=isArrayLike(e)?n(e.length):[];return pr(e,(function(e){u[++a]=i?apply(t,e,r):baseInvoke(e,t,r)})),u})),en=createAggregator((function(e,t,r){baseAssignValue(e,r,t)}));function map(e,t){return(yn(e)?arrayMap:baseMap)(e,getIteratee(t,3))}var tn=createAggregator((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var rn=baseRest((function(e,t){if(null==e)return[];var r=t.length;return r>1&&isIterateeCall(e,t[0],t[1])?t=[]:r>2&&isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),baseOrderBy(e,baseFlatten(t,1),[])})),nn=wt||function(){return Ot.Date.now()};function ary(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,createWrap(e,b,r,r,r,r,t)}function before(e,t){var n;if("function"!=typeof t)throw new Ne(a);return e=toInteger(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var an=baseRest((function(e,t,r){var n=1;if(r.length){var a=replaceHolders(r,getHolder(an));n|=f}return createWrap(e,n,t,r,a)})),on=baseRest((function(e,t,r){var n=3;if(r.length){var a=replaceHolders(r,getHolder(on));n|=f}return createWrap(t,n,e,r,a)}));function debounce(e,t,n){var i,u,c,f,g,b,m=0,I=!1,S=!1,O=!0;if("function"!=typeof e)throw new Ne(a);function invokeFunc(t){var n=i,a=u;return i=u=r,m=t,f=e.apply(a,n)}function leadingEdge(e){return m=e,g=Cr(timerExpired,t),I?invokeFunc(e):f}function shouldInvoke(e){var n=e-b;return b===r||n>=t||n<0||S&&e-m>=c}function timerExpired(){var e=nn();if(shouldInvoke(e))return trailingEdge(e);g=Cr(timerExpired,function remainingWait(e){var r=t-(e-b);return S?qt(r,c-(e-m)):r}(e))}function trailingEdge(e){return g=r,O&&i?invokeFunc(e):(i=u=r,f)}function debounced(){var e=nn(),n=shouldInvoke(e);if(i=arguments,u=this,b=e,n){if(g===r)return leadingEdge(b);if(S)return mr(g),g=Cr(timerExpired,t),invokeFunc(b)}return g===r&&(g=Cr(timerExpired,t)),f}return t=toNumber(t)||0,isObject(n)&&(I=!!n.leading,c=(S="maxWait"in n)?Gt(toNumber(n.maxWait)||0,t):c,O="trailing"in n?!!n.trailing:O),debounced.cancel=function cancel(){g!==r&&mr(g),m=0,i=b=u=g=r},debounced.flush=function flush(){return g===r?f:trailingEdge(nn())},debounced}var sn=baseRest((function(e,t){return baseDelay(e,1,t)})),un=baseRest((function(e,t,r){return baseDelay(e,toNumber(t)||0,r)}));function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(a);var memoized=function(){var r=arguments,n=t?t.apply(this,r):r[0],a=memoized.cache;if(a.has(n))return a.get(n);var i=e.apply(this,r);return memoized.cache=a.set(n,i)||a,i};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(e){if("function"!=typeof e)throw new Ne(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}memoize.Cache=MapCache;var cn=_r((function(e,t){var r=(t=1==t.length&&yn(t[0])?arrayMap(t[0],baseUnary(getIteratee())):arrayMap(baseFlatten(t,1),baseUnary(getIteratee()))).length;return baseRest((function(n){for(var a=-1,i=qt(n.length,r);++a=t})),gn=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&Ve.call(e,"callee")&&!it.call(e,"callee")},yn=n.isArray,vn=jt?baseUnary(jt):function baseIsArrayBuffer(e){return isObjectLike(e)&&baseGetTag(e)==q};function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}var bn=Dt||stubFalse,_n=Lt?baseUnary(Lt):function baseIsDate(e){return isObjectLike(e)&&baseGetTag(e)==L};function isError(e){if(!isObjectLike(e))return!1;var t=baseGetTag(e);return t==T||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!isPlainObject(e)}function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==P||t==F||"[object AsyncFunction]"==t||"[object Proxy]"==t}function isInteger(e){return"number"==typeof e&&e==toInteger(e)}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=S}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function isObjectLike(e){return null!=e&&"object"==typeof e}var mn=xt?baseUnary(xt):function baseIsMap(e){return isObjectLike(e)&&Ar(e)==D};function isNumber(e){return"number"==typeof e||isObjectLike(e)&&baseGetTag(e)==U}function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=M)return!1;var t=at(e);if(null===t)return!0;var r=Ve.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ke.call(r)==Xe}var In=Tt?baseUnary(Tt):function baseIsRegExp(e){return isObjectLike(e)&&baseGetTag(e)==z};var Sn=Pt?baseUnary(Pt):function baseIsSet(e){return isObjectLike(e)&&Ar(e)==N};function isString(e){return"string"==typeof e||!yn(e)&&isObjectLike(e)&&baseGetTag(e)==B}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&baseGetTag(e)==H}var wn=Ft?baseUnary(Ft):function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!vt[baseGetTag(e)]};var On=createRelationalOperation(baseLt),An=createRelationalOperation((function(e,t){return e<=t}));function toArray(e){if(!e)return[];if(isArrayLike(e))return isString(e)?stringToArray(e):copyArray(e);if(ft&&e[ft])return function iteratorToArray(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[ft]());var t=Ar(e);return(t==D?mapToArray:t==N?setToArray:values)(e)}function toFinite(e){return e?(e=toNumber(e))===I||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function toInteger(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}function toLength(e){return e?baseClamp(toInteger(e),0,A):0}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return O;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=Ce.test(e);return r||je.test(e)?It(e.slice(2),r?2:8):ke.test(e)?O:+e}function toPlainObject(e){return copyObject(e,keysIn(e))}function toString(e){return null==e?"":baseToString(e)}var Rn=createAssigner((function(e,t){if(isPrototype(t)||isArrayLike(t))copyObject(t,keys(t),e);else for(var r in t)Ve.call(t,r)&&assignValue(e,r,t[r])})),kn=createAssigner((function(e,t){copyObject(t,keysIn(t),e)})),Cn=createAssigner((function(e,t,r,n){copyObject(t,keysIn(t),e,n)})),En=createAssigner((function(e,t,r,n){copyObject(t,keys(t),e,n)})),jn=flatRest(baseAt);var Ln=baseRest((function(e,t){e=Me(e);var n=-1,a=t.length,i=a>2?t[2]:r;for(i&&isIterateeCall(t[0],t[1],i)&&(a=1);++n1),t})),copyObject(e,getAllKeysIn(e),r),n&&(r=baseClone(r,7,customOmitClone));for(var a=t.length;a--;)baseUnset(r,t[a]);return r}));var Wn=flatRest((function(e,t){return null==e?{}:function basePick(e,t){return basePickBy(e,t,(function(t,r){return hasIn(e,r)}))}(e,t)}));function pickBy(e,t){if(null==e)return{};var r=arrayMap(getAllKeysIn(e),(function(e){return[e]}));return t=getIteratee(t),basePickBy(e,r,(function(e,r){return t(e,r[0])}))}var zn=createToPairs(keys),Nn=createToPairs(keysIn);function values(e){return null==e?[]:baseValues(e,keys(e))}var Bn=createCompounder((function(e,t,r){return t=t.toLowerCase(),e+(r?capitalize(t):t)}));function capitalize(e){return Yn(toString(e).toLowerCase())}function deburr(e){return(e=toString(e))&&e.replace(xe,Ut).replace(lt,"")}var Hn=createCompounder((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Gn=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),qn=createCaseFirst("toLowerCase");var Kn=createCompounder((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Vn=createCompounder((function(e,t,r){return e+(r?" ":"")+Yn(t)}));var $n=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Yn=createCaseFirst("toUpperCase");function words(e,t,n){return e=toString(e),(t=n?r:t)===r?function hasUnicodeWord(e){return dt.test(e)}(e)?function unicodeWords(e){return e.match(ht)||[]}(e):function asciiWords(e){return e.match(Se)||[]}(e):e.match(t)||[]}var Zn=baseRest((function(e,t){try{return apply(e,r,t)}catch(e){return isError(e)?e:new Fe(e)}})),Xn=flatRest((function(e,t){return arrayEach(t,(function(t){t=toKey(t),baseAssignValue(e,t,an(e[t],e))})),e}));function constant(e){return function(){return e}}var Jn=createFlow(),Qn=createFlow(!0);function identity(e){return e}function iteratee(e){return baseIteratee("function"==typeof e?e:baseClone(e,1))}var ea=baseRest((function(e,t){return function(r){return baseInvoke(r,e,t)}})),ta=baseRest((function(e,t){return function(r){return baseInvoke(e,r,t)}}));function mixin(e,t,r){var n=keys(t),a=baseFunctions(t,n);null!=r||isObject(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=baseFunctions(t,keys(t)));var i=!(isObject(r)&&"chain"in r&&!r.chain),u=isFunction(e);return arrayEach(a,(function(r){var n=t[r];e[r]=n,u&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__),a=r.__actions__=copyArray(this.__actions__);return a.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,arrayPush([this.value()],arguments))})})),e}function noop(){}var ra=createOver(arrayMap),na=createOver(arrayEvery),aa=createOver(arraySome);function property(e){return isKey(e)?baseProperty(toKey(e)):function basePropertyDeep(e){return function(t){return baseGet(t,e)}}(e)}var oa=createRange(),ia=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var sa=createMathOperation((function(e,t){return e+t}),0),ua=createRound("ceil"),ca=createMathOperation((function(e,t){return e/t}),1),la=createRound("floor");var fa,ha=createMathOperation((function(e,t){return e*t}),1),pa=createRound("round"),da=createMathOperation((function(e,t){return e-t}),0);return lodash.after=function after(e,t){if("function"!=typeof t)throw new Ne(a);return e=toInteger(e),function(){if(--e<1)return t.apply(this,arguments)}},lodash.ary=ary,lodash.assign=Rn,lodash.assignIn=kn,lodash.assignInWith=Cn,lodash.assignWith=En,lodash.at=jn,lodash.before=before,lodash.bind=an,lodash.bindAll=Xn,lodash.bindKey=on,lodash.castArray=function castArray(){if(!arguments.length)return[];var e=arguments[0];return yn(e)?e:[e]},lodash.chain=chain,lodash.chunk=function chunk(e,t,a){t=(a?isIterateeCall(e,t,a):t===r)?1:Gt(toInteger(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var u=0,c=0,f=n(Rt(i/t));ui?0:i+n),(a=a===r||a>i?i:toInteger(a))<0&&(a+=i),a=n>a?0:toLength(a);n>>0)?(e=toString(e))&&("string"==typeof t||null!=t&&!In(t))&&!(t=baseToString(t))&&hasUnicode(e)?castSlice(stringToArray(e),0,n):e.split(t,n):[]},lodash.spread=function spread(e,t){if("function"!=typeof e)throw new Ne(a);return t=null==t?0:Gt(toInteger(t),0),baseRest((function(r){var n=r[t],a=castSlice(r,0,t);return n&&arrayPush(a,n),apply(e,this,a)}))},lodash.tail=function tail(e){var t=null==e?0:e.length;return t?baseSlice(e,1,t):[]},lodash.take=function take(e,t,n){return e&&e.length?baseSlice(e,0,(t=n||t===r?1:toInteger(t))<0?0:t):[]},lodash.takeRight=function takeRight(e,t,n){var a=null==e?0:e.length;return a?baseSlice(e,(t=a-(t=n||t===r?1:toInteger(t)))<0?0:t,a):[]},lodash.takeRightWhile=function takeRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!1,!0):[]},lodash.takeWhile=function takeWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3)):[]},lodash.tap=function tap(e,t){return t(e),e},lodash.throttle=function throttle(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Ne(a);return isObject(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),debounce(e,t,{leading:n,maxWait:t,trailing:i})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=zn,lodash.toPairsIn=Nn,lodash.toPath=function toPath(e){return yn(e)?arrayMap(e,toKey):isSymbol(e)?[e]:copyArray(jr(toString(e)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(e,t,r){var n=yn(e),a=n||bn(e)||wn(e);if(t=getIteratee(t,4),null==r){var i=e&&e.constructor;r=a?n?new i:[]:isObject(e)&&isFunction(i)?hr(at(e)):{}}return(a?arrayEach:baseForOwn)(e,(function(e,n,a){return t(r,e,n,a)})),r},lodash.unary=function unary(e){return ary(e,1)},lodash.union=Wr,lodash.unionBy=zr,lodash.unionWith=Nr,lodash.uniq=function uniq(e){return e&&e.length?baseUniq(e):[]},lodash.uniqBy=function uniqBy(e,t){return e&&e.length?baseUniq(e,getIteratee(t,2)):[]},lodash.uniqWith=function uniqWith(e,t){return t="function"==typeof t?t:r,e&&e.length?baseUniq(e,r,t):[]},lodash.unset=function unset(e,t){return null==e||baseUnset(e,t)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(e,t,r){return null==e?e:baseUpdate(e,t,castFunction(r))},lodash.updateWith=function updateWith(e,t,n,a){return a="function"==typeof a?a:r,null==e?e:baseUpdate(e,t,castFunction(n),a)},lodash.values=values,lodash.valuesIn=function valuesIn(e){return null==e?[]:baseValues(e,keysIn(e))},lodash.without=Br,lodash.words=words,lodash.wrap=function wrap(e,t){return ln(castFunction(t),e)},lodash.xor=Hr,lodash.xorBy=Gr,lodash.xorWith=qr,lodash.zip=Kr,lodash.zipObject=function zipObject(e,t){return baseZipObject(e||[],t||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(e,t){return baseZipObject(e||[],t||[],baseSet)},lodash.zipWith=Vr,lodash.entries=zn,lodash.entriesIn=Nn,lodash.extend=kn,lodash.extendWith=Cn,mixin(lodash,lodash),lodash.add=sa,lodash.attempt=Zn,lodash.camelCase=Bn,lodash.capitalize=capitalize,lodash.ceil=ua,lodash.clamp=function clamp(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=toNumber(n))==n?n:0),t!==r&&(t=(t=toNumber(t))==t?t:0),baseClamp(toNumber(e),t,n)},lodash.clone=function clone(e){return baseClone(e,4)},lodash.cloneDeep=function cloneDeep(e){return baseClone(e,5)},lodash.cloneDeepWith=function cloneDeepWith(e,t){return baseClone(e,5,t="function"==typeof t?t:r)},lodash.cloneWith=function cloneWith(e,t){return baseClone(e,4,t="function"==typeof t?t:r)},lodash.conformsTo=function conformsTo(e,t){return null==t||baseConformsTo(e,t,keys(t))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(e,t){return null==e||e!=e?t:e},lodash.divide=ca,lodash.endsWith=function endsWith(e,t,n){e=toString(e),t=baseToString(t);var a=e.length,i=n=n===r?a:baseClamp(toInteger(n),0,a);return(n-=t.length)>=0&&e.slice(n,i)==t},lodash.eq=eq,lodash.escape=function escape(e){return(e=toString(e))&&ue.test(e)?e.replace(ie,Mt):e},lodash.escapeRegExp=function escapeRegExp(e){return(e=toString(e))&&ye.test(e)?e.replace(ge,"\\$&"):e},lodash.every=function every(e,t,n){var a=yn(e)?arrayEvery:baseEvery;return n&&isIterateeCall(e,t,n)&&(t=r),a(e,getIteratee(t,3))},lodash.find=Zr,lodash.findIndex=findIndex,lodash.findKey=function findKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwn)},lodash.findLast=Xr,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwnRight)},lodash.floor=la,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(e,t){return null==e?e:gr(e,getIteratee(t,3),keysIn)},lodash.forInRight=function forInRight(e,t){return null==e?e:yr(e,getIteratee(t,3),keysIn)},lodash.forOwn=function forOwn(e,t){return e&&baseForOwn(e,getIteratee(t,3))},lodash.forOwnRight=function forOwnRight(e,t){return e&&baseForOwnRight(e,getIteratee(t,3))},lodash.get=get,lodash.gt=pn,lodash.gte=dn,lodash.has=function has(e,t){return null!=e&&hasPath(e,t,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(e,t,r,n){e=isArrayLike(e)?e:values(e),r=r&&!n?toInteger(r):0;var a=e.length;return r<0&&(r=Gt(a+r,0)),isString(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&baseIndexOf(e,t,r)>-1},lodash.indexOf=function indexOf(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:toInteger(r);return a<0&&(a=Gt(n+a,0)),baseIndexOf(e,t,a)},lodash.inRange=function inRange(e,t,n){return t=toFinite(t),n===r?(n=t,t=0):n=toFinite(n),function baseInRange(e,t,r){return e>=qt(t,r)&&e=-9007199254740991&&e<=S},lodash.isSet=Sn,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=wn,lodash.isUndefined=function isUndefined(e){return e===r},lodash.isWeakMap=function isWeakMap(e){return isObjectLike(e)&&Ar(e)==G},lodash.isWeakSet=function isWeakSet(e){return isObjectLike(e)&&"[object WeakSet]"==baseGetTag(e)},lodash.join=function join(e,t){return null==e?"":Bt.call(e,t)},lodash.kebabCase=Hn,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=a;return n!==r&&(i=(i=toInteger(n))<0?Gt(a+i,0):qt(i,a-1)),t==t?function strictLastIndexOf(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):baseFindIndex(e,baseIsNaN,i,!0)},lodash.lowerCase=Gn,lodash.lowerFirst=qn,lodash.lt=On,lodash.lte=An,lodash.max=function max(e){return e&&e.length?baseExtremum(e,identity,baseGt):r},lodash.maxBy=function maxBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseGt):r},lodash.mean=function mean(e){return baseMean(e,identity)},lodash.meanBy=function meanBy(e,t){return baseMean(e,getIteratee(t,2))},lodash.min=function min(e){return e&&e.length?baseExtremum(e,identity,baseLt):r},lodash.minBy=function minBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseLt):r},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=ha,lodash.nth=function nth(e,t){return e&&e.length?baseNth(e,toInteger(t)):r},lodash.noConflict=function noConflict(){return Ot._===this&&(Ot._=Je),this},lodash.noop=noop,lodash.now=nn,lodash.pad=function pad(e,t,r){e=toString(e);var n=(t=toInteger(t))?stringSize(e):0;if(!t||n>=t)return e;var a=(t-n)/2;return createPadding(Ct(a),r)+e+createPadding(Rt(a),r)},lodash.padEnd=function padEnd(e,t,r){e=toString(e);var n=(t=toInteger(t))?stringSize(e):0;return t&&nt){var a=e;e=t,t=a}if(n||e%1||t%1){var i=$t();return qt(e+i*(t-e+mt("1e-"+((i+"").length-1))),t)}return baseRandom(e,t)},lodash.reduce=function reduce(e,t,r){var n=yn(e)?arrayReduce:baseReduce,a=arguments.length<3;return n(e,getIteratee(t,4),r,a,pr)},lodash.reduceRight=function reduceRight(e,t,r){var n=yn(e)?arrayReduceRight:baseReduce,a=arguments.length<3;return n(e,getIteratee(t,4),r,a,dr)},lodash.repeat=function repeat(e,t,n){return t=(n?isIterateeCall(e,t,n):t===r)?1:toInteger(t),baseRepeat(toString(e),t)},lodash.replace=function replace(){var e=arguments,t=toString(e[0]);return e.length<3?t:t.replace(e[1],e[2])},lodash.result=function result(e,t,n){var a=-1,i=(t=castPath(t,e)).length;for(i||(i=1,e=r);++aS)return[];var r=A,n=qt(e,A);t=getIteratee(t),e-=A;for(var a=baseTimes(n,t);++r=u)return e;var f=n-stringSize(a);if(f<1)return a;var g=c?castSlice(c,0,f).join(""):e.slice(0,f);if(i===r)return g+a;if(c&&(f+=g.length-f),In(i)){if(e.slice(f).search(i)){var b,m=g;for(i.global||(i=We(i.source,toString(Re.exec(i))+"g")),i.lastIndex=0;b=i.exec(m);)var I=b.index;g=g.slice(0,I===r?f:I)}}else if(e.indexOf(baseToString(i),f)!=f){var S=g.lastIndexOf(i);S>-1&&(g=g.slice(0,S))}return g+a},lodash.unescape=function unescape(e){return(e=toString(e))&&se.test(e)?e.replace(oe,Wt):e},lodash.uniqueId=function uniqueId(e){var t=++$e;return toString(e)+t},lodash.upperCase=$n,lodash.upperFirst=Yn,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(fa={},baseForOwn(lodash,(function(e,t){Ve.call(lodash.prototype,t)||(fa[t]=e)})),fa),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){lodash[e].placeholder=lodash})),arrayEach(["drop","take"],(function(e,t){LazyWrapper.prototype[e]=function(n){n=n===r?1:Gt(toInteger(n),0);var a=this.__filtered__&&!t?new LazyWrapper(this):this.clone();return a.__filtered__?a.__takeCount__=qt(n,a.__takeCount__):a.__views__.push({size:qt(n,A),type:e+(a.__dir__<0?"Right":"")}),a},LazyWrapper.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;LazyWrapper.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:getIteratee(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),arrayEach(["head","last"],(function(e,t){var r="take"+(t?"Right":"");LazyWrapper.prototype[e]=function(){return this[r](1).value()[0]}})),arrayEach(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");LazyWrapper.prototype[e]=function(){return this.__filtered__?new LazyWrapper(this):this[r](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(e){return this.filter(e).head()},LazyWrapper.prototype.findLast=function(e){return this.reverse().find(e)},LazyWrapper.prototype.invokeMap=baseRest((function(e,t){return"function"==typeof e?new LazyWrapper(this):this.map((function(r){return baseInvoke(r,e,t)}))})),LazyWrapper.prototype.reject=function(e){return this.filter(negate(getIteratee(e)))},LazyWrapper.prototype.slice=function(e,t){e=toInteger(e);var n=this;return n.__filtered__&&(e>0||t<0)?new LazyWrapper(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=toInteger(t))<0?n.dropRight(-t):n.take(t-e)),n)},LazyWrapper.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(A)},baseForOwn(LazyWrapper.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),i=lodash[a?"take"+("last"==t?"Right":""):t],u=a||/^find/.test(t);i&&(lodash.prototype[t]=function(){var t=this.__wrapped__,c=a?[1]:arguments,f=t instanceof LazyWrapper,g=c[0],b=f||yn(t),interceptor=function(e){var t=i.apply(lodash,arrayPush([e],c));return a&&m?t[0]:t};b&&n&&"function"==typeof g&&1!=g.length&&(f=b=!1);var m=this.__chain__,I=!!this.__actions__.length,S=u&&!m,O=f&&!I;if(!u&&b){t=O?t:new LazyWrapper(this);var A=e.apply(t,c);return A.__actions__.push({func:thru,args:[interceptor],thisArg:r}),new LodashWrapper(A,m)}return S&&O?e.apply(this,c):(A=this.thru(interceptor),S?a?A.value()[0]:A.value():A)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Be[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);lodash.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(yn(a)?a:[],e)}return this[r]((function(r){return t.apply(yn(r)?r:[],e)}))}})),baseForOwn(LazyWrapper.prototype,(function(e,t){var r=lodash[t];if(r){var n=r.name+"";Ve.call(nr,n)||(nr[n]=[]),nr[n].push({name:t,func:r})}})),nr[createHybrid(r,2).name]=[{name:"wrapper",func:r}],LazyWrapper.prototype.clone=function lazyClone(){var e=new LazyWrapper(this.__wrapped__);return e.__actions__=copyArray(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=copyArray(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=copyArray(this.__views__),e},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var e=new LazyWrapper(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},LazyWrapper.prototype.value=function lazyValue(){var e=this.__wrapped__.value(),t=this.__dir__,r=yn(e),n=t<0,a=r?e.length:0,i=function getView(e,t,r){var n=-1,a=r.length;for(;++n=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(e){for(var t,n=this;n instanceof baseLodash;){var a=wrapperClone(n);a.__index__=0,a.__values__=r,t?i.__wrapped__=a:t=a;var i=a;n=n.__wrapped__}return i.__wrapped__=e,t},lodash.prototype.reverse=function wrapperReverse(){var e=this.__wrapped__;if(e instanceof LazyWrapper){var t=e;return this.__actions__.length&&(t=new LazyWrapper(this)),(t=t.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:r}),new LodashWrapper(t,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,ft&&(lodash.prototype[ft]=function wrapperToIterator(){return this}),lodash}();Rt?((Rt.exports=zt)._=zt,At._=zt):Ot._=zt}).call(n)}));var V="[[ProxyTarget]]",$="[[Get]]",Y="[[Set]]",Z="[[Call]]",X=Object.defineProperty,J=Object.defineProperties,Q=Object.getPrototypeOf,ee=Object.getOwnPropertyDescriptor,te=!!J&&s(J),re=te?Object.__proto__?Q:function(e){return"function"==typeof e?e.__proto__||{}:Q(e)}:function(e){return _isVbObject(e)&&_getVbInternalOf(e).__proto__||{}};function s(e){return"function"==typeof e&&/\[native code\]/.test(e.toString())}function p(e,t){if(this instanceof p)return l(new y(e,t));v("Constructor Proxy requires 'new'")}function l(e){var t=e[V];return"function"==typeof t?function(e){var t=e[V];function o(){return this instanceof o?e["[[Construct]]"](arguments,o):e[Z](this,arguments)}if(o.prototype=t.prototype,te){var r=j(e),n=oe(Q(t),r);for(var a in ae(o,n),r=x(t,e))d(o,a)&&delete r[a];J(o,r)}else ie(o,t);return o}(e):t instanceof Array?function(e){var t,r,n=e[V];return te&&((t=j(e)).concat.get=function(){var t=e[$]("concat",this);return t===Array.prototype.concat?t.bind(n):t},r=oe(Q(n),t)),(t=x(n,e)).length.set=function(t){var r=t-n.length;e[Y]("length",t,this),r&&function(e,t,r){var n=r[V];if(e>0)for(var a=n.length,i=a-e;i=0;--a)n[r[a]]=w(e,r[a],t);return n}function w(e,t,r){var n=ee(e,t);return{get:function(){return r[$](t,this)},set:function(e){r[Y](t,e,this)},enumerable:n.enumerable,configurable:n.configurable}}var se="undefined"==typeof Proxy?p:Proxy,ue=window.PageParams;new se({activeTab:void 0!==ue?ue.ACTIVE_TAB:"default",bookingRoot:void 0!==ue?ue.BOOKING_ROOT:null,langShortcut:void 0!==ue?ue.LANG_SHORTCUT:"CS",hotId:void 0!==ue?ue.HOT_ID:null,couId:void 0!==ue?ue.HOTEL_COU_ID:null,hotName:void 0!==ue?ue.HOT_NAME:null,arrivalTime:void 0!==ue?ue.ARRIVAL_TIME:"14:00:00",prpId:void 0!==ue?ue.PRP_ID:1,curRound:void 0!==ue?ue.CUR_ROUND:0,parId:void 0!==ue?ue.PAR_ID:null,theme:void 0!==ue?ue.THEME:null,locale:void 0!==ue?ue.LOCALE:"cs_CZ",alfredUrl:void 0!==ue?ue.ALFRED_URL:null,redirectType:void 0!==ue?ue.REDIRECT_TYPE:"iframe",redirectUrl:void 0!==ue?ue.REDIRECT_URL:null,curSymbol:void 0!==ue?ue.CUR_SYMBOL:null,curCode:void 0!==ue?ue.CUR_CODE:null,curId:void 0!==ue?ue.CUR_ID:null,expandPrices:void 0!==ue?ue.EXPAND_PRICES:0,mandatoryData:void 0!==ue?ue.MANDATORY_DATA:[],showTabs:void 0!==ue?ue.SHOW_TABS:null,hideTabs:void 0!==ue?ue.HIDE_TABS:null,showRoomType:void 0!==ue?ue.SHOW_ROOM_TYPE:null,hideCurrencies:void 0!==ue?ue.HIDE_CURRENCIES:null,showGuestFilter:void 0!==ue&&ue.SHOW_GUEST_FILTER,appliedDiscountCoupon:void 0!==ue?ue.APPLIED_DISCOUNT_COUPON:null,discountCouponFromParam:void 0!==ue?ue.DISCOUNT_COUPON_FROM_PARAM:null,guestCategories:void 0!==ue?ue.GUEST_CATEGORIES:[],countries:void 0!==ue?ue.COUNTRIES:[],objectKinds:void 0!==ue?ue.OBJECT_KINDS:[],services:void 0!==ue?ue.SERVICES:[],guaIdDefault:void 0!==ue?ue.GUA_ID_DEFAULT:null,phpSessId:void 0!==ue?ue.PHPSESSID:null,reservationDetails:void 0!==ue?ue.RESERVATION_DETAILS:{},gaPrevioAccount:void 0!==ue?ue.GA_PREVIO_ACCOUNT:null,gaUserAccountFromParam:void 0!==ue?ue.GA_USER_ACCOUNT_FROM_PARAM:null,chmProxyUrl:void 0!==ue?ue.CHM_PROXY_URL:null,isApartmentType:void 0!==ue?ue.IS_APARTMENT_TYPE:0,isDevelopEnvironment:void 0===ue||ue.IS_DEVELOP_ENVIRONMENT,paymentHash:void 0!==ue?ue.PAYMENT_HASH:null,isPricesPerRoom:void 0!==ue&&ue.IS_PRICES_PER_ROOM,allowCookies:void 0!==ue&&ue.ALLOW_COOKIES,trackingData:void 0!==ue?ue.TRACKING_DATA:{hotId:null,adwordsConversionId:null,adwordsConversionLabel:null,analyticsAccount:null,analytics4Account:null,sklikConversionId:null,templateAnalyticsAccount:null},scrollPosition:{top:0,bottom:0},alfredIframeHeight:700,cardValidityEndDate:void 0!==ue?ue.CARD_VALIDITY_END_DATE:null,prescriptionAmount:void 0!==ue?ue.PRESCRIPTION_AMOUNT:null,isKioskMode:void 0!==ue&&ue.IS_KIOSK_MODE,meals:void 0!==ue?ue.MEALS:[],stays:void 0!==ue?ue.STAYS:[],hotTimezone:void 0!==ue&&ue.HOT_TIMEZONE,isTestHotel:void 0!==ue&&ue.IS_TEST_HOTEL},{get:function(e,t){return t in e?e[t]:null},set:function(e,t,r){return e[t]=r,!0}}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),createIterator=function(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(r[Symbol.iterator]=function(){return r}),r},serializeParam=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},deserializeParam=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var URLSearchParams=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof URLSearchParams){var r=this;e.forEach((function(e,t){r.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var n=0;nt[0]?1:0})),e._entries&&(e._entries={});for(var r=0;r1?deserializeParam(n[1]):"")}})}(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n),function(e){var t,r,n;if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||(t=e.URL,n=(r=function(t,r){"string"!=typeof t&&(t=String(t)),r&&"string"!=typeof r&&(r=String(r));var n,a=document;if(r&&(void 0===e.location||r!==e.location.href)){r=r.toLowerCase(),(n=(a=document.implementation.createHTMLDocument("")).createElement("base")).href=r,a.head.appendChild(n);try{if(0!==n.href.indexOf(r))throw new Error(n.href)}catch(e){throw new Error("URL unable to set base "+r+" due to "+e)}}var i=a.createElement("a");i.href=t,n&&(a.body.appendChild(i),i.href=i.href);var u=a.createElement("input");if(u.type="url",u.value=t,":"===i.protocol||!/:/.test(i.href)||!u.checkValidity()&&!r)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var c=new e.URLSearchParams(this.search),f=!0,g=!0,b=this;["append","delete","set"].forEach((function(e){var t=c[e];c[e]=function(){t.apply(c,arguments),f&&(g=!1,b.search=c.toString(),g=!0)}})),Object.defineProperty(this,"searchParams",{value:c,enumerable:!0});var m=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==m&&(m=this.search,g&&(f=!1,this.searchParams._fromString(this.search),f=!0))}})}).prototype,["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(n,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),r.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},r.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=r),void 0!==e.location&&!("origin"in e.location)){var getOrigin=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:getOrigin,enumerable:!0})}catch(t){setInterval((function(){e.location.origin=getOrigin()}),100)}}}(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n);var ce=function(e){function SklikHandler(t){var r=e.call(this,t)||this;return r.measureConversion=function(){!function loadScript(e,t){var r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=function(){"loaded"!=r.readyState&&"complete"!=r.readyState||(r.onreadystatechange=null,t())}:r.onload=function(){t()},r.src=e,document.getElementsByTagName("head")[0].appendChild(r)}("https://c.seznam.cz/js/rc.js",(function(){window.rc&&window.rc.conversionHit&&(console.log("Sklik conversion HIT, id: "+r.conversionId),window.rc.conversionHit({id:r.conversionId,value:r.reservationDetails.totalPriceInHotelDefaultCurrency,consent:1}))}))},r}return __extends(SklikHandler,e),Object.defineProperty(SklikHandler.prototype,"conversionId",{get:function(){return this._conversionId},set:function(e){this._conversionId=e},enumerable:!1,configurable:!0}),SklikHandler}(G),le=function(e){function FacebookHandler(t){var r=e.call(this,t)||this;return r.measureConversion=function(){if("function"==typeof fbq){var e=r.reservationDetails.paymentMethod.isOnline?"InitiateCheckout":"Purchase";fbq("track",e,{value:r.reservationDetails.totalPrice,currency:r.reservationDetails.curCode})}},r}return __extends(FacebookHandler,e),FacebookHandler}(G),fe=function fe(e,t){var r=this;this.measure=function(){var e=r._trackingData;e.analytics4Account&&r.measureGoogleAnalytics(e.analytics4Account),e.adwordsConversionId&&e.adwordsConversionLabel&&r.measureAdwords(e.adwordsConversionId,e.adwordsConversionLabel),e.sklikConversionId&&r.measureSklik(e.sklikConversionId),r.measureFacebook()},this.measureGoogleAnalytics=function(e){var t=[];e&&(t=e.includes(";")?e.split(";"):e.includes(",")?e.split(","):[e]),r._googleAnalytics.ga4accounts=t,r._googleAnalytics.measureConversion()},this.measureAdwords=function(e,t){r._googleAdwords.conversionLabel=t,r._googleAdwords.conversionId=e,r._googleAdwords.measureConversion()},this.measureSklik=function(e){r._sklik.conversionId=e,r._sklik.measureConversion()},this.measureFacebook=function(){r._facebook.measureConversion()},this._trackingData=e,this._reservationDetails=t,this._googleAnalytics=new q(t),this._googleAdwords=new K(t),this._sklik=new ce(t),this._facebook=new le(t)},he="__previo_proxy_iframe",pe=function pe(){var r=this;this.iframeActiveTab="booking",this.styleSheetAppended=!1,this.mouseClickTriggered=!1,this.isTitleReminderAllowed=function(){return"stay"===r.iframeActiveTab||"default"===r.iframeActiveTab},this.initMessages=function(){window.addEventListener("message",r.receiveMessage.bind(r))},this.titleReminder=function(){var t=document.title,n=r.getInactiveTabStringTranslation(),a=document.querySelector("link[rel*='icon']");if(a){var i=a.getAttribute("href"),u=document.createElement("link");u.type="image/x-icon",u.rel="shortcut icon",n&&-1===window.location.href.indexOf("penzion.cz")&&(document.addEventListener("visibilitychange",(function(){r.isTitleReminderAllowed()&&r.mouseClickTriggered&&(document.hidden?(document.title=n+" | "+t,u.href=e.BOOKING_ROOT+"/img/favicon-reminder/favicon.ico"):(document.title=t,u.href=i))})),document.getElementsByTagName("head")[0].appendChild(u))}},this.appendStyleSheet=function(){if(!r.styleSheetAppended){var e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href=window.IFRAME_STYLESHEET_URL,document.getElementsByTagName("head")[0].appendChild(e),r.styleSheetAppended=!0}},this.getInactiveTabStringTranslation=function(){var e=navigator.languages[0]||navigator.language;return-1!==e.indexOf("cs")?"Nezapomeňte na svoji rezervaci":-1!==e.indexOf("sk")?"Nezabudnite na svoju rezerváciu":-1!==e.indexOf("pl")?"Nie zapomnij o swojej rezerwacji":-1!==e.indexOf("hu")?"Ne felejtse el a foglalását":-1!==e.indexOf("en")?"Don’t forget about your reservation":null},this.receiveMessage=function(e){if("string"==typeof e.data){document.body.contains(r.iframe)||(r.iframe=document.getElementById("previo-booking-iframe")||document.getElementById("hotelgram-booking-iframe"));var t=(e.data.indexOf(":")?e.data.split(":"):[e.data])[0],n=e.data.substring(e.data.indexOf(":")+1);"function"==typeof r[t]&&r[t].call(r,n)}},this.getCustomScrollContainer=function(){var e=null;if(r.bookingEngineConfig.scrollContainerSelector){var t=document.getElementById(r.bookingEngineConfig.scrollContainerSelector);"fixed"===window.getComputedStyle(t).getPropertyValue("position")?e=t:console.warn("Defined custom scroll container is not fixed.")}else if(r.bookingEngineConfig.scrollContainer)return r.bookingEngineConfig.scrollContainer;return e},this.initScrollListener=function(){var e,t,n=r.getCustomScrollContainer(),a=(e=r.iframe,{top:(t=e.getBoundingClientRect()).top+(n?n.scrollTop:window.scrollY),left:t.left+(n?n.scrollLeft:window.scrollX)}),i=null,update=function(){var e=r.iframe.getBoundingClientRect(),t=n?e.top:e.top+window.scrollY,u=(n?n.offsetTop:window.pageYOffset)-t,c=u+(n?n.offsetHeight:window.innerHeight),f=r.bookingEngineConfig.priceSummaryBarBottomOffset||0;r.transmitter.postMessageToIframe("setScrollPosition:"+u+"|"+c+"|"+f);var g=function(e,t){var r=document.elementFromPoint(t.left,Math.max(t.top-(n?n.scrollTop:window.scrollY),0));return r===e?null:r?r.offsetParent||r:null}(r.iframe,a),b=window.scrollY;g&&(b+=g.offsetHeight);var m=Math.max(b-a.top,0);null!==i&&m===i||(i=m)};(n||window).addEventListener("scroll",H(update.bind(r),50)),update.call(r),setTimeout((function(){(n||window).dispatchEvent(new Event("scroll"))}),1e3)},this.iframeLoaded=function(){r.initScrollListener()},this.setActiveTab=function(e){r.iframeActiveTab=e},this.mouseClick=function(){r.mouseClickTriggered=!0},this.setHeight=function(e){r.iframe.setAttribute("height",String(e))},this.setScrolling=function(e){void 0===e&&(e=!1),r.iframe.setAttribute("scrolling",e?"yes":"no")},this.measureConversions=function(e){var t=JSON.parse(e),r=t.trackingData,n=t.reservationDetails;new fe(r,n).measure()},this.measureGTMEvent=function(e){var t=JSON.parse(e);window.dataLayer instanceof Array&&window.dataLayer.push(t)},this.logEvent=function(e){"function"==typeof reservationPlusStepEvent&&reservationPlusStepEvent(e)},this.redirectTo=function(e){window.location.href=e},this.scrollTop=function(){var e=window.pageYOffset,t=r.getCustomScrollContainer(),n=(t||document.body).getBoundingClientRect(),a=r.iframe.getBoundingClientRect().top-n.top;e>a&&(t||window).scroll({top:t?0:a-75,left:0,behavior:"smooth"})},this.simulateScroll=function(){var e=window.pageYOffset;window.scrollTo(0,e+1),window.scrollTo(0,e)},this.scrollTo=function(e){var t=r.getCustomScrollContainer(),n=(t||document.body).getBoundingClientRect(),a=r.iframe.getBoundingClientRect().top-n.top;(t||window).scroll({top:a+(e-75),left:0,behavior:"smooth"})},this.pictureFullScreen=function(){var e=r.iframe;e.style.position="fixed",e.style.top="0",e.style.bottom="0",e.style.left="0",e.style.height="100%",e.style.right="0",e.style.zIndex="99999999999",e.classList.add("_fullScreenMode")},this.exitPictureFullScreen=function(){r.iframe.removeAttribute("style"),r.iframe.classList.remove("_fullScreenMode")},this.initProxyIframe=function(){document.getElementById(he)||r.insertProxyIframe(e.BOOKING_ROOT,he)},this.insertProxyIframe=function(e,t){var r=e+"/iframe/proxy/",n=document.createElement("iframe");n.name=t,n.id=t,n.src=r+"#"+encodeURIComponent(window.location.href),n.width="0",n.height="0",n.style.display="none",document.body.appendChild(n)},this.bookingEngineConfig=window.bookingEngineConfig||{},this.fsMode=!1,this.iframe=document.getElementById("previo-booking-iframe")||document.getElementById("hotelgram-booking-iframe"),this.initProxyIframe(),this.transmitter=new t(e),this.initMessages(),this.appendStyleSheet(),this.titleReminder()};(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?window.reservationFormIframe=new pe:document.addEventListener("DOMContentLoaded",(function(){window.reservationFormIframe=new pe}))}();