").append(b.parseHTML(e)).find(o):e)}).complete(i&&function(e,t){s.each(i,r||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,i,o,r){return b.isFunction(i)&&(r=r||o,o=i,i=t),b.ajax({url:e,type:n,dataType:r,data:i,success:o})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ht,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ft[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_t(_t(e,b.ajaxSettings),t):_t(b.ajaxSettings,e)},ajaxPrefilter:Nt(kt),ajaxTransport:Nt(Et),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,r,a,s,l,c,u,d=b.ajaxSetup({},n),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?b(p):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=d.statusCode||{},y={},v={},w=0,T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!u)for(u={};t=bt.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return w||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||T;return c&&c.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,d.url=((e||d.url||ht)+"").replace(yt,"").replace(xt,ft[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=b.trim(d.dataType||"*").toLowerCase().match(x)||[""],null==d.crossDomain&&(i=Tt.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===ft[1]&&i[2]===ft[2]&&(i[3]||("http:"===i[1]?80:443))==(ft[3]||("http:"===ft[1]?80:443)))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=b.param(d.data,d.traditional)),St(kt,d,n,C),2===w)return C;for(o in(l=d.global)&&0==b.active++&&b.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!wt.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(mt.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=vt.test(r)?r.replace(vt,"$1_="+gt++):r+(mt.test(r)?"&":"?")+"_="+gt++)),d.ifModified&&(b.lastModified[r]&&C.setRequestHeader("If-Modified-Since",b.lastModified[r]),b.etag[r]&&C.setRequestHeader("If-None-Match",b.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+At+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(!1===d.beforeSend.call(p,C,d)||2===w))return C.abort();for(o in T="abort",{success:1,error:1,complete:1})C[o](d[o]);if(c=St(Et,d,n,C)){C.readyState=1,l&&f.trigger("ajaxSend",[C,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},d.timeout));try{w=1,c.send(y,k)}catch(e){if(!(2>w))throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,n,i,o){var u,y,v,x,T,k=n;2!==w&&(w=2,s&&clearTimeout(s),c=t,a=o||"",C.readyState=e>0?4:0,i&&(x=function(e,n,i){var o,r,a,s,l=e.contents,c=e.dataTypes,u=e.responseFields;for(s in u)s in i&&(n[u[s]]=i[s]);for(;"*"===c[0];)c.shift(),r===t&&(r=e.mimeType||n.getResponseHeader("Content-Type"));if(r)for(s in l)if(l[s]&&l[s].test(r)){c.unshift(s);break}if(c[0]in i)a=c[0];else{for(s in i){if(!c[0]||e.converters[s+" "+c[0]]){a=s;break}o||(o=s)}a=a||o}return a?(a!==c[0]&&c.unshift(a),i[a]):t}(d,C,i)),e>=200&&300>e||304===e?(d.ifModified&&((T=C.getResponseHeader("Last-Modified"))&&(b.lastModified[r]=T),(T=C.getResponseHeader("etag"))&&(b.etag[r]=T)),204===e?(u=!0,k="nocontent"):304===e?(u=!0,k="notmodified"):(k=(u=function(e,t){var n,i,o,r,a={},s=0,l=e.dataTypes.slice(),c=l[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l[1])for(o in e.converters)a[o.toLowerCase()]=e.converters[o];for(;i=l[++s];)if("*"!==i){if("*"!==c&&c!==i){if(!(o=a[c+" "+i]||a["* "+i]))for(n in a)if((r=n.split(" "))[1]===i&&(o=a[c+" "+r[0]]||a["* "+r[0]])){!0===o?o=a[n]:!0!==a[n]&&(i=r[0],l.splice(s--,0,i));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+c+" to "+i}}}c=i}return{state:"success",data:t}}(d,x)).state,y=u.data,u=!(v=u.error))):(v=k,(e||!k)&&(k="error",0>e&&(e=0))),C.status=e,C.statusText=(n||k)+"",u?h.resolveWith(p,[y,k,C]):h.rejectWith(p,[C,k,v]),C.statusCode(m),m=t,l&&f.trigger(u?"ajaxSuccess":"ajaxError",[C,d,u?y:v]),g.fireWith(p,[C,k]),l&&(f.trigger("ajaxComplete",[C,d]),--b.active||b.event.trigger("ajaxStop")))}return C},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,i=r.head||b("head")[0]||r.documentElement;return{send:function(t,o){(n=r.createElement("script")).async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var $t=[],Dt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||b.expando+"_"+gt++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,i,o){var r,a,s,l=!1!==n.jsonp&&(Dt.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dt.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(r=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Dt,"$1"+r):!1!==n.jsonp&&(n.url+=(mt.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return s||b.error(r+" was not called"),s[0]},n.dataTypes[0]="json",a=e[r],e[r]=function(){s=arguments},o.always(function(){e[r]=a,n[r]&&(n.jsonpCallback=i.jsonpCallback,$t.push(r)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Lt,Ot,jt=0,It=e.ActiveXObject&&function(){var e;for(e in Lt)Lt[e](t,!0)};function Pt(){try{return new e.XMLHttpRequest}catch(e){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Pt()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Pt,Ot=b.ajaxSettings.xhr(),b.support.cors=!!Ot&&"withCredentials"in Ot,(Ot=b.support.ajax=!!Ot)&&b.ajaxTransport(function(n){var i;if(!n.crossDomain||b.support.cors)return{send:function(o,r){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(s in o)l.setRequestHeader(s,o[s])}catch(e){}l.send(n.hasContent&&n.data||null),i=function(e,o){var s,c,u,d;try{if(i&&(o||4===l.readyState))if(i=t,a&&(l.onreadystatechange=b.noop,It&&delete Lt[a]),o)4!==l.readyState&&l.abort();else{d={},s=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(d.text=l.responseText);try{u=l.statusText}catch(e){u=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(e){o||r(-1,e)}d&&r(s,u,d,c)},n.async?4===l.readyState?setTimeout(i):(a=++jt,It&&(Lt||(Lt={},b(e).unload(It)),Lt[a]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(t,!0)}}});var Bt,Ht,Mt=/^(?:toggle|show|hide)$/,Rt=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Ft=/queueHooks$/,qt=[function(e,t,n){var i,o,r,a,s,l,c,u,d,p=this,f=e.style,h={},g=[],m=e.nodeType&&et(e);for(o in n.queue||(null==(u=b._queueHooks(e,"fx")).unqueued&&(u.unqueued=0,d=u.empty.fire,u.empty.fire=function(){u.unqueued||d()}),u.unqueued++,p.always(function(){p.always(function(){u.unqueued--,b.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==rt(e.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",b.support.shrinkWrapBlocks||p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),t)if(a=t[o],Mt.exec(a)){if(delete t[o],l=l||"toggle"===a,a===(m?"hide":"show"))continue;g.push(o)}if(r=g.length){"hidden"in(s=b._data(e,"fxshow")||b._data(e,"fxshow",{}))&&(m=s.hidden),l&&(s.hidden=!m),m?b(e).show():p.done(function(){b(e).hide()}),p.done(function(){var t;for(t in b._removeData(e,"fxshow"),h)b.style(e,t,h[t])});for(o=0;r>o;o++)i=g[o],c=p.createTween(i,m?s[i]:0),h[i]=s[i]||b.style(e,i),i in s||(s[i]=c.start,m&&(c.end=c.start,c.start="width"===i||"height"===i?1:0))}}],Wt={"*":[function(e,t){var n,i,o=this.createTween(e,t),r=Rt.exec(t),a=o.cur(),s=+a||0,l=1,c=20;if(r){if(n=+r[2],"px"!==(i=r[3]||(b.cssNumber[e]?"":"px"))&&s){s=b.css(o.elem,e,!0)||n||1;do{s/=l=l||".5",b.style(o.elem,e,s+i)}while(l!==(l=o.cur()/a)&&1!==l&&--c)}o.unit=i,o.start=s,o.end=r[1]?s+(r[1]+1)*n:n}return o}]};function zt(){return setTimeout(function(){Bt=t}),Bt=b.now()}function Ut(e,t,n){var i,o,r=0,a=qt.length,s=b.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Bt||zt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,a=c.tweens.length;a>r;r++)c.tweens[r].run(i);return s.notifyWith(e,[c,i,n]),1>i&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Bt||zt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=b.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,o,r,a;for(o in e)if(i=b.camelCase(o),r=t[i],n=e[o],b.isArray(n)&&(r=n[1],n=e[o]=n[0]),o!==i&&(e[i]=n,delete e[o]),(a=b.cssHooks[i])&&"expand"in a)for(o in n=a.expand(n),delete e[i],n)o in e||(e[o]=n[o],t[o]=r);else t[i]=r}(u,c.opts.specialEasing);a>r;r++)if(i=qt[r].call(c,e,u,c.opts))return i;return function(e,t){b.each(t,function(t,n){for(var i=(Wt[t]||[]).concat(Wt["*"]),o=0,r=i.length;r>o;o++)if(i[o].call(e,t,n))return})}(c,u),b.isFunction(c.opts.start)&&c.opts.start.call(e,c),b.fx.timer(b.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function Vt(e,t,n,i,o){return new Vt.prototype.init(e,t,n,i,o)}function Xt(e,t){var n,i={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)i["margin"+(n=Ge[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Jt(e){return b.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}b.Animation=b.extend(Ut,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,o=e.length;o>i;i++)n=e[i],Wt[n]=Wt[n]||[],Wt[n].unshift(t)},prefilter:function(e,t){t?qt.unshift(e):qt.push(e)}}),b.Tween=Vt,Vt.prototype={constructor:Vt,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(b.cssNumber[n]?"":"px")},cur:function(){var e=Vt.propHooks[this.prop];return e&&e.get?e.get(this):Vt.propHooks._default.get(this)},run:function(e){var t,n=Vt.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Vt.propHooks._default.set(this),this}},Vt.prototype.init.prototype=Vt.prototype,Vt.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Vt.propHooks.scrollTop=Vt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Xt(t,!0),e,i,o)}}),b.fn.extend({fadeTo:function(e,t,n,i){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=b.isEmptyObject(e),r=b.speed(t,n,i),a=function(){var t=Ut(this,b.extend({},e),r);a.finish=function(){t.stop(!0)},(o||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(e,n,i){var o=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=n,n=e,e=t),n&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",r=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&o(a[n]);else for(n in a)a[n]&&a[n].stop&&Ft.test(n)&&o(a[n]);for(n=r.length;n--;)r[n].elem!==this||null!=e&&r[n].queue!==e||(r[n].anim.stop(i),t=!1,r.splice(n,1));(t||!i)&&b.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=b.timers,a=i?i.length:0;for(n.finish=!0,b.queue(this,e,[]),o&&o.cur&&o.cur.finish&&o.cur.finish.call(this),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;a>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),b.each({slideDown:Xt("show"),slideUp:Xt("hide"),slideToggle:Xt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),b.speed=function(e,t,n){var i=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return i.duration=b.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in b.fx.speeds?b.fx.speeds[i.duration]:b.fx.speeds._default,(null==i.queue||!0===i.queue)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){b.isFunction(i.old)&&i.old.call(this),i.queue&&b.dequeue(this,i.queue)},i},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=Vt.prototype.init,b.fx.tick=function(){var e,n=b.timers,i=0;for(Bt=b.now();n.length>i;i++)(e=n[i])()||n[i]!==e||n.splice(i--,1);n.length||b.fx.stop(),Bt=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Ht||(Ht=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Ht),Ht=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,i,r={top:0,left:0},a=this[0],s=a&&a.ownerDocument;return s?(n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==o&&(r=a.getBoundingClientRect()),i=Jt(s),{top:r.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0),left:r.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):r):void 0},b.offset={setOffset:function(e,t,n){var i=b.css(e,"position");"static"===i&&(e.style.position="relative");var o,r,a=b(e),s=a.offset(),l=b.css(e,"top"),c=b.css(e,"left"),u={},d={};("absolute"===i||"fixed"===i)&&b.inArray("auto",[l,c])>-1?(o=(d=a.position()).top,r=d.left):(o=parseFloat(l)||0,r=parseFloat(c)||0),b.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+r),"using"in t?t.using.call(e,u):a.css(u)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===b.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(i,"marginTop",!0),left:t.left-n.left-b.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||r.documentElement;e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position");)e=e.offsetParent;return e||r.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i=/Y/.test(n);b.fn[e]=function(o){return b.access(this,function(e,o,r){var a=Jt(e);return r===t?a?n in a?a[n]:a.document.documentElement[o]:e[o]:(a?a.scrollTo(i?b(a).scrollLeft():r,i?r:b(a).scrollTop()):e[o]=r,t)},e,o,arguments.length,null)}}),b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(i,o){b.fn[o]=function(o,r){var a=arguments.length&&(i||"boolean"!=typeof o),s=i||(!0===o||!0===r?"margin":"border");return b.access(this,function(n,i,o){var r;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+e],r["scroll"+e],n.body["offset"+e],r["offset"+e],r["client"+e])):o===t?b.css(n,i,s):b.style(n,i,o,s)},n,a?o:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})}(window),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?e(document).find(n):null;return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(i).remove(),e(o).each(function(){var i=e(this),o=t(i),r={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(o[0],n.target)||(o.trigger(n=e.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))}))}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.4.1",r.prototype.toggle=function(i){var o=e(this);if(!o.is(".disabled, :disabled")){var r=t(o),a=r.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(r.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},r.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=r.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l
document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidthl;l++)if(i.match(r[l]))return!0;return!1}function n(n,i,o){if(0===n.length)return n;if(o&&"function"==typeof o)return o(n);if(!document.implementation||!document.implementation.createHTMLDocument)return n;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=n;for(var a=e.map(i,function(e,t){return t}),s=e(r.body).find("*"),l=0,c=s.length;c>l;l++){var u=s[l],d=u.nodeName.toLowerCase();if(-1!==e.inArray(d,a))for(var p=e.map(u.attributes,function(e){return e}),f=[].concat(i["*"]||[],i[d]||[]),h=0,g=p.length;g>h;h++)t(p[h],f)||u.removeAttribute(p[h].nodeName);else u.parentNode.removeChild(u)}return r.body.innerHTML}var i=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,l=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:r},l.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var a=o[r];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(t){var o=this.$element.data();for(var r in o)o.hasOwnProperty(r)&&-1!==e.inArray(r,i)&&delete o[r];return(t=e.extend({},this.getDefaults(),o,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},l.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},l.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,c=s.test(a);c&&(a=a.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(e(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var f=a,h=this.getPosition(this.$viewport);a="bottom"==a&&u.bottom+p>h.bottom?"top":"top"==a&&u.top-ph.width?"left":"left"==a&&u.left-da.top+a.height&&(o.top=a.top+a.height-l)}else{var c=t.left-r,u=t.left+r+n;ca.right&&(o.left=a.left+a.width-u)}return o},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},l.prototype.sanitizeHtml=function(e){return n(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=function(t){return this.each(function(){var n=e(this),i=n.data("bs.tooltip"),o="object"==typeof t&&t;!i&&/destroy|hide/.test(t)||(i||n.data("bs.tooltip",i=new l(this,o)),"string"==typeof t&&i[t]())})},e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery),function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(i)}function n(t){return this.each(function(){var n=e(this),o=n.data("bs.collapse"),r=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!o&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),o||n.data("bs.collapse",o=new i(this,r)),"string"==typeof t&&o[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(t=o.data("bs.collapse"),t&&t.transitioning))){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),t||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var o=e(i);this.addAriaAndCollapsedClass(t(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=e(this);o.attr("data-target")||i.preventDefault();var r=t(o),a=r.data("bs.collapse")?"toggle":o.data();n.call(r,a)})}(jQuery),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||e(i).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery);var dfpObj={units:[],init:function(e){if(e=void 0!==e?e:null)for(var t=0;t0&&!$(this).hasClass("ad-decorated")&&!$(this).hasClass("ad-collapsed")){$(this).addClass("display-inline-block");var e=!0;($(this).closest("#trips-view-bottomfix,#trips-view-right").length||$(this).closest(".trip-description").length||$(this).closest(".article-spot").length)&&(e=!1),e&&($(this).css({padding:"0 5px 5px 5px",margin:"5px 0"}),$(this).find(".banner-heading").removeClass("hidden").addClass("show")),$(this).closest(".tripoto-interstitial").length&&($(this).closest(".tripoto-interstitial").removeClass("hidden"),$(body).addClass("modal-open"));var t=document.createEvent("CustomEvent");t.initCustomEvent("adSlotRendered",!0,!0,$(this)[0]),window.dispatchEvent(t)}})},collapseAd:function(e){var t=$("#"+e).closest(".ad-section");t&&(t.css({padding:"0px",margin:"0px"}),t.removeClass("display-inline-block").addClass("hidden").addClass("ad-collapsed"),t.find(".banner-heading").removeClass("show").addClass("hidden"))},renderParallaxFrame:function(e,t,n){if(e&&t&&n){var i=document.getElementById("header"),o=document.getElementById(e);if(o){var r=o.parentElement,a=r.parentElement,s=a.parentElement,l=s.parentElement,c=l.querySelector(".banner-heading"),u=0;i&&(u=i.getBoundingClientRect().height),c.classList.remove("hidden"),c.classList.remove("text-left"),c.style.display="block",c.style.height="20px",c.style.lineHeight="20px",c.style.background="#000",c.style.textAlign="center",c.style.position="absolute",c.style.width="100%",c.style.zIndex=9;var d=c.querySelector("a");d&&(d.style.color="#FFF");var p=0;if(c&&(n+=p=c.getBoundingClientRect().height),r.setAttribute("style","position: absolute;"),a.setAttribute("style","position: fixed;top: 0;left: 0;width: 100%;height: 100%;margin: 0;padding: 0;"),s.setAttribute("style","position: absolute;top: 0;left: 0;width: 100%;height: 100%;padding: 0;overflow: hidden;-webkit-clip-path: inset(0 0);clip-path: rect(0, auto, auto, 0);"),l.setAttribute("style","position: relative; width: 100%; min-height: "+n+"px; border-bottom: solid 1px #333;"),l&&r){var f=l.getBoundingClientRect(),h=f.x+(f.width-t)/2;r.style.left=h+"px";var g=Math.min(u+p+r.getBoundingClientRect().top+window.scrollY,(window.innerHeight+u-n)/2);r.style.top=g+"px"}}}},renderFullWidthFrame:function(e,t,n){if(e&&t&&n){var i=document.getElementById(e);if(i){var o=i.parentElement.getBoundingClientRect().width*n/t;i.width="100%",i.height=o+"px"}}},renderAdCube:function(e){if(e){var t=document.getElementById(e);if(t)$(t).closest(".ad-section").attr("style","position:absolute;bottom:0;right:0;"),$(t).closest(".bottom-dfp-ad").parent().css("height","0")}}};trackUTMSource();var googleAdRenderCheck=0,googleAdRenderWatch=null,googleAdScriptWatch=setInterval(function(){"undefined"!=typeof googletag&&googletag&&googletag.pubads&&(googleAdRenderWatch=setInterval(function(){dfpObj.decorateRenderedAds(),++googleAdRenderCheck>=40&&clearInterval(googleAdRenderWatch)},500),clearInterval(googleAdScriptWatch))},500),googleMapScriptWatch=null;googleMapScriptWatch=setInterval(function(){if("undefined"!=typeof google){var e=new CustomEvent("placesScriptLoaded");window.dispatchEvent(e),clearInterval(googleMapScriptWatch)}},500);function createNewSession(){var e=getPageCategory();if(void 0!==e&&e){var t=new Date,n=t.getTime();t.setHours(23),t.setMinutes(59),t.setSeconds(59);var i,o,r=t.getTime(),a=r>n?r-n>18e5?30:(r-n)/6e4:30,s={},l=readCookie("__SSN"),c=!!l,u=null==readCookie("utm_params")?"direct":readCookie("utm_params"),d="";try{c&&(d=(s=JSON.parse(l)).utm_params,s.utm_params===u&&s.id&&(o=s.id))}catch(e){}finally{o||(o=n+"-"+getUniqueVisitorId()),i={utm_params:u,id:o},createUpdateCookie("__SSN",JSON.stringify(i),a),c&&d===u||"undefined"==typeof tripotoAnalytics||"function"!=typeof tripotoAnalytics.customTrack||tripotoAnalytics.customTrack("SessionLogging",i.id)}}}function trackUTMSource(){var e=getParameterByName("utm_source"),t=getParameterByName("utm_medium"),n=getParameterByName("utm_campaign"),i=getParameterByName("utm_content"),o=document.referrer,r="",a="direct";if(readCookie("rf_tr")||(o.indexOf("facebook")>=0||o.indexOf("fb")>=0?(r="facebook",a="social"):o.indexOf("google")>=0?(r="google",a="search"):o.indexOf("instagram")>=0?(r="instagram",a="social"):o.indexOf("twitter")>=0?(r="twitter",a="social"):o.indexOf("ampproject")>=0?(r="google_amp",a="search_amp"):o.indexOf("bing")>=0?(r="bing",a="search"):o.indexOf("yahoo")>=0?(r="yahoo",a="search"):o.indexOf("tripoto")>=0&&(a="direct"),createUpdateCookie("rf_tr",r),createUpdateCookie("ch_tr",a)),e.length>0||t.length>0||n.length>0){createUpdateCookie("utm_params","source="+e+"&medium="+t+"&campaign="+n,43200),createUpdateCookie("us_tr",e,43200),createUpdateCookie("uc_tr",n,43200),createUpdateCookie("um_tr",t,43200),createUpdateCookie("uo_tr",i,43200)}}function getParameterByName(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function createUpdateCookie(e,t,n){var i="";if(n||(n=30),n){var o=new Date;o.setTime(o.getTime()+60*n*1e3),i="; expires="+o.toUTCString()}document.cookie=e+"="+t+i+"; path=/"}function capitalize(e){return e&&e[0].toUpperCase()+e.slice(1)}function getPageCategory(e){var t=window.__INITIAL_STATE__&&window.__INITIAL_STATE__.pageCategory||"";if(t)return t;e||(e=window.location.href);var n=e.split("/"),i=n[3];return i&&-1!==i.indexOf("?")&&(i=i.split("?")[0]),i&&-1!==i.indexOf("#")&&(i=i.split("#")[0]),(t=i)?"hotels"===t?n.length>3&&n[3]&&-1!=n[3].indexOf("?")?"hotels_search":"hotels":"trip"===t&&(window.location.href.indexOf("/photos")>-1||window.location.href.indexOf("/media")>-1)?"Photo Modal":t:"home"}function fbTripotoEventsForActions(e,t,n){if(void 0!==n&&n||(n="function"==typeof getPageCategory?getPageCategory():""),"admin"!==n){var i="";if("undefined"!=typeof tripotoAnalytics&&"function"==typeof tripotoAnalytics.getPageTrafficSource&&(i=tripotoAnalytics.getPageTrafficSource()),"function"==typeof fbq)try{var o=-1!==["ViewContent","Search","AddToCart","AddToWishList","Purchase","Lead","CompleteRegistration"].indexOf(e)?"track":"trackCustom";(t=t||{}).page_type=n,t.traffic_source=i,fbq(o,e,t)}catch(e){}}}function clevertapTripotoEvents(e,t,n){void 0!==window.clevertap&&window.clevertap.event.push(e,{eventLabel:t,eventProperties:n})}function gaTripotoEvents(e,t,n,i,o){void 0===o&&(o=0),n||(n="function"==typeof getPageCategory?getPageCategory():"");var r=["tag_verified","tag_unverified"];if("travel-guide"===n&&r.indexOf(e.toLowerCase())>-1&&(e="Tag_Verified"),"admin"!==n&&"function"==typeof ga){var a=readCookie("user_origin_category"),s=readCookie("user_origin"),l=readCookie("__rmtc"),c=(readCookie("__atv_mtv_ptv"),readCookie("utm_params")),u=readCookie("__atv_mtv_ptv")?"true":"false";ga("set","dimension2",s),ga("set","dimension3",a),ga("set","dimension4",l),ga("set","dimension5",u),ga("set","dimension6",0),void 0===i&&(i={}),i.eventIndex&&ga("set","dimension6",i.eventIndex);try{if(r.indexOf(e.toLowerCase())>-1){var d=i,p=d.misc||"";if(p){delete d.misc;for(var f=p.split(","),h=0;h4&&(m=window.location.href.split("/")[4].split("?")[0]),i.title=document.title,i.label=t,i.slug=m,i.user_origin=s,i.user_origin_category=a,i.user_logged_in=u,i.utm_params=c,i.referrer=document.referrer,r.indexOf(e.toLowerCase())>-1){categories={trip:1,"travel-guide":2,search:3,"tour-packages":2};var y;y=categories[n],i.score=y}-1==window.location.href.indexOf("dev.tripoto")&&-1==window.location.href.indexOf("staging.tripoto")?fbTripotoEventsForActions(e,i,n):(console.log(i),console.log(e)),i.send_to="AW-984113598/69pJCKX2r3oQvsOh1QM","function"==typeof gtag&>ag("event",e,i)}"undefined"!=typeof tripotoAnalytics&&"function"==typeof tripotoAnalytics.customTrack&&tripotoAnalytics.customTrack(e,t,n)}}catch(e){}}}function gaTripotoSiteSearch(e,t){var n="/site_search"+e.slice(FULL_BASE_URL.length-1),i=[];t&&i.push("keywords_site_search="+t),"function"==typeof getPageCategory&&i.push("page_category="+getPageCategory());var o=n.indexOf("?")>=0?"&":"?";n+=i.length?o+i.join("&"):"","function"==typeof ga&&(ga("set","page",n),ga("send","pageview"),gtagNew("event","pageview"))}function getUniqueVisitorId(){return staticParams&&staticParams.visitorUniqueId?staticParams.visitorUniqueId:""}function LinkedInTracking(e){var t=!1;if("function"!=typeof window.lintrk)return null;"BookSimilar"==e?t=7791356:"PackageView"==e?t=7791364:"PurchaseSuccess"==e&&(t=7791372),window.lintrk("track",{conversion_id:t})}function readCookie(e){if("undefined"==typeof document)return null;for(var t=e+"=",n=document.cookie.split(";"),i=0;i=0||eventLabel.indexOf("get_customised_packages")>=0||eventLabel.indexOf("book_similar")>=0||eventLabel.indexOf("book_package")>=0)&&fbTripotoEventsForActions("Lead_Intent",{title:document.title}),$(this).hasClass("ga-search-link")){var t=eventLabel.replace("keyword_","");gaTripotoSiteSearch(window.location.href,t)}gaTripotoEvents(eventAction,eventLabel.toLowerCase())}else gaTripotoEvents(eventAction,"")}),$('[data-toggle="tooltip"]').tooltip();var enableAds=function(e){if(window.__INITIAL_STATE__&&window.__INITIAL_STATE__.adConfig){var t=window.__INITIAL_STATE__.adConfig.config;for(var n in dfpObj.enableServices(t,e),t){var i=t[n];dfpObj.displayAd(i.div)}}};function deleteCookie(e,t,n){if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="; expires="+i.toGMTString()}else o="";void 0!==t&&(t=""),document.cookie=e+"="+t+o+"; path=/"}function isAbsoluteUrl(e){return/^([a-z0-9]*:|.{0})\/\/.*$/gim.test(e)}function bindImpressionTracker(){var e=400,t={};function n(e,t,n,i,o){var r=e.getBoundingClientRect(),a=r.right>o,s=r.leftt,c=r.top0&&i&&i.trim().length>0)gaTripotoEvents(n,i);else for(var o=["booking","guesthouser","airbnb"],r=0;r-1){gaTripotoEvents("Book_Intent",t,"",{type:"hotel",link:t,title:document.title});break}}isAbsoluteUrl(t)&&!t.match(baseAbsUrl.split("//")[1])&&gaTripotoEvents("OutBound_Click",t),window.open(t,"_blank")})}function trackPageView(){var e="";"undefined"!=typeof tripotoAnalytics&&"function"==typeof tripotoAnalytics.getPageTrafficSource&&(e=tripotoAnalytics.getPageTrafficSource()),"undefined"!=typeof fbq&&fbq("track","PageView",{traffic_source:e}),category="","function"==typeof getPageCategory&&(category=getPageCategory()),"undefined"!=typeof category&&category&&"admin"!==category&&category&&"undefined"!=typeof tripotoAnalytics&&"function"==typeof tripotoAnalytics.customTrack&&tripotoAnalytics.customTrack("PageView",window.location.href,category)}function sendPageTagsToFb(){"undefined"!=typeof tripotoAnalytics&&"function"==typeof tripotoAnalytics.getPageTags&&tripotoAnalytics.getPageTags(window.location.href,!0),"undefined"!=typeof window&&window.addEventListener("pageTagsFetchedFromAnalytics",function(e){var t=e.detail||{},n=t.is_tag_verified||0?"Tag_Verified":"Tag_Unverified",i=window.__INITIAL_STATE__.locationBasedBreadcrumbs||[],o=[];i.forEach(function(e,n){e&&(t["breadcrumb_"+(n+1)]=e,o.push(e))}),o=o.join(","),"function"==typeof getUniqueVisitorId&&(t.user_id=getUniqueVisitorId()),t&&(o=t.city||t.region||t.country||o||""),"function"==typeof gaTripotoEvents&&gaTripotoEvents(n,o,"",t)})}function htmlEncode(e){return e?String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"):""}function htmlDecode(e){return e?$("").html(e).text():""}function googleAutocompletePlaces(e,t){if("undefined"!=typeof google){var n=new google.maps.places.Autocomplete(document.getElementById(e)),i="",o=function(e){return e.target.value!==i&&n.set("place",void 0),google.maps.event.trigger(n,"place_changed"),!1};$("#"+e).on("blur",o);var r=google.maps.event.addListener(n,"place_changed",function(){var o=n.getPlace(),r="";if(o&&void 0!==o.geometry&&void 0!==o.geometry){r=o.formatted_address;var a=o.geometry.location.lat(),s=o.geometry.location.lng()}else if(o){r=o.name;a=null,s=null}else{r=$("#"+e).val();a=null,s=null}r=$("#"+e).val(),i=$("#"+e).val(),"function"==typeof t&&t(htmlEncode(r),a,s,o)});return{cancel:function(){$("#"+e).off("blur",o),google.maps.event.removeListener(r),google.maps.event.clearInstanceListeners(n)}}}}var intentMediaAds={isEnabled:function(){return window.IntentMediaProperties&&window.IntentMediaProperties.site_name},openExitUnit:function(e){intentMediaAds.isEnabled()&&window.IntentMedia&&e.country&&(intentMediaAds.populateParams(e),gaTripotoEvents("Click","intentmedia-exit-unit"),IntentMedia.trigger("open_exit_unit"))},populateParams:function(e){window.IntentMediaProperties.hotel_country=e.country,e.checkin&&(window.IntentMediaProperties.travel_date_start=e.checkin.split("-").join("")),e.checkout&&(window.IntentMediaProperties.travel_date_end=e.checkout.split("-").join("")),e.guests&&(window.IntentMediaProperties.travelers=e.guests+""),e.city&&(window.IntentMediaProperties.hotel_city=e.city)},loadJs:function(e){var t=document.createElement("script");t.src="//a.cdn.intentmedia.net/javascripts/v1/intent_media_core.js",t.async=!0,"function"==typeof e&&(t.onload=e),document.getElementsByTagName("head")[0].appendChild(t)}};function getQueryParam(e){}async function openAppStoreIfApplicable(){var e=new URLSearchParams(window.location.search).get("applink"),t=navigator.userAgent||navigator.vendor||window.opera,n=encodeURIComponent(window.location.href);if("1"===e)if(/android/i.test(t)){var i="https://play.google.com/store/apps/details?id=com.tripoto&referrer="+n;window.location.href=i}else if(/iPad|iPhone|iPod/.test(t)){var o="https://apps.apple.com/app/apple-store/id931179037?pt=2169443&ct=tripoto&mt=8&ref="+n;window.location.href=o}}!function(){openAppStoreIfApplicable(),setTimeout(function(){gaTripotoEvents("Browse","one_minute")},6e4),setTimeout(function(){gaTripotoEvents("Browse","two_minutes")},12e4),setTimeout(function(){gaTripotoEvents("Browse","five_minutes")},3e5),"function"==typeof sendPageTagsToFb&&sendPageTagsToFb();var e={content_name:document.title};window.__INITIAL_STATE__.cartEventData&&(e={content_name:window.__INITIAL_STATE__.cartEventData.content_name,content_ids:window.__INITIAL_STATE__.cartEventData.content_ids,content_type:"product"}),fbTripotoEventsForActions("ViewContent",e);var t=navigator.userAgent,n=/iPad|iPhone|iPod/.test(t),i=/OS 11_0_1|OS 11_0_2|OS 11_0_3|OS 11_1|OS 11_1_1|OS 11_1_2|OS 11_2|OS 11_2_1/.test(t);n&&i&&$(document).on("show.bs.modal",".modal",function(){scrollPos=$(window).scrollTop()}).on("hide.bs.modal",".modal",function(e){setTimeout(function(){window.scrollTo(0,scrollPos)},500)}),bindImpressionTracker(),bindOutBoundClick(),trackPageView(),"undefined"!=typeof isAdBlockON&&isAdBlockON()}();