;window.replace=function(){return ''};function logTimer(){var e=document.getElementById("page_id");if(e)var t="jsfiles_complete_load",n=(window.__uidc_init?new Date-window.__uidc_init:-1),r=setInterval(function(){window.UIMonitor2&&window.UIMonitor2.trackLog&&(clearInterval(r),window.UIMonitor2.trackLog(e.value,t,n))},30)}!function(e){function t(e){return"[object Function]"==Object.prototype.toString.call(e)
}function n(e){return"[object Array]"==Object.prototype.toString.call(e)}function r(e,t){var n=(/^\w+\:\/\//);return((/^\/\/\/?/).test(e)?e=location.protocol+e:n.test(e)||"/"==e.charAt(0)||(e=(t||"")+e)),(n.test(e)?e:(("/"==e.charAt(0)?_:y))+e)}function i(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t
}function c(e){for(var t=!1,n=0;n<e.scripts.length;n++)e.scripts[n].ready&&e.scripts[n].exec_trigger&&(t=!0,e.scripts[n].exec_trigger(),e.scripts[n].exec_trigger=null);return t}function o(e,t,n,r){e.onload=e.onreadystatechange=function(){e.readyState&&"complete"!=e.readyState&&"loaded"!=e.readyState||t[n]||(e.onload=e.onreadystatechange=null,r())
},e.onerror=function(){try{var e=this.src;"undefined"==typeof window.__bfi&&(window.__bfi=[]),window.__bfi.push(["_trackError",{message:"[Error loading script - status "+n+"]",line:0,file:e,category:"scriptload-error",framework:"cQuery_110421"}])}catch(t){}}}function a(e){e.ready=e.finished=!0;for(var t=0;t<e.finished_listeners.length;t++)e.finished_listeners[t]();
e.ready_listeners=[],e.finished_listeners=[]}function s(e,t,n,r,i){setTimeout(function(){var c,a,s=t.real_src;if("item"in w){if(!w[0])return void setTimeout(arguments.callee,25);w=w[0]}c=document.createElement("script"),t.type&&(c.type=t.type),t.charset&&(c.charset=t.charset),(i?(x?(e[m]&&b("start script preload: "+s),n.elem=c,(E?(c.preload=!0,c.onpreload=r):c.onreadystatechange=function(){"loaded"==c.readyState&&r()
}),c.src=s):(i&&0==s.indexOf(_)&&e[d]?(a=new XMLHttpRequest,e[m]&&b("start script preload (xhr): "+s),a.onreadystatechange=function(){4==a.readyState&&(a.onreadystatechange=function(){},n.text=a.responseText+"\n//@ sourceURL="+s,r())},a.open("GET",s),a.send()):(e[m]&&b("start script preload (cache): "+s),c.type="text/cache-script",o(c,n,"ready",function(){w.removeChild(c),r()
}),c.src=s,w.insertBefore(c,w.firstChild)))):(B?(e[m]&&b("start script load (ordered async): "+s),c.async=!1,o(c,n,"finished",r),c.src=s,w.insertBefore(c,w.firstChild)):(e[m]&&b("start script load: "+s),o(c,n,"finished",r),c.src=s,w.insertBefore(c,w.firstChild))))},0)}function u(){function y(e,t,n){function r(){null!=i&&(i=null,a(n))
}var i;O[t.src].finished||(e[p]||(O[t.src].finished=!0),i=n.elem||document.createElement("script"),t.type&&(i.type=t.type),t.charset&&(i.charset=t.charset),o(i,n,"finished",r),(n.elem?n.elem=null:(n.text?(i.onload=i.onreadystatechange=null,i.text=n.text):i.src=t.real_src)),w.insertBefore(i,w.firstChild),n.text&&r())
}function _(e,t,n,i){var c,o,u=function(){t.ready_cb(t,function(){y(e,t,c)})},l=function(){t.finished_cb(t,n)};t.src=r(t.src,e[g]),t.real_src=t.src+((e[h]?(((/\?.*$/).test(t.src)?"&_":"?_"))+~~(1e9*Math.random())+"=":"")),O[t.src]||(O[t.src]={items:[],finished:!1}),o=O[t.src].items,(e[p]||0==o.length?(c=o[o.length]={ready:!1,finished:!1,ready_listeners:[u],finished_listeners:[l]},s(e,t,c,(i?function(){c.ready=!0;
for(var e=0;e<c.ready_listeners.length;e++)c.ready_listeners[e]();c.ready_listeners=[]}:function(){a(c)}),i)):(c=o[0],(c.finished?l():c.finished_listeners.push(l))))}function v(){function e(e,t){l[m]&&b("script preload finished: "+e.real_src),e.ready=!0,e.exec_trigger=t,o()}function r(e,t){l[m]&&b("script execution finished: "+e.real_src),e.ready=e.finished=!0,e.exec_trigger=null;
for(var n=0;n<t.scripts.length;n++)if(!t.scripts[n].finished)return;t.finished=!0,o()}function o(){for(;p<d.length;)if(t(d[p])){l[m]&&b("$LAB.wait() executing: "+d[p]);try{d[p++]()}catch(e){l[m]&&S("$LAB.wait() error caught: ",e),"undefined"==typeof window.__bfi&&(window.__bfi=[]),window.__bfi.push(["_trackError",{message:e.message,line:0,file:location.href,category:"labjs_wait_function-error",framework:"cQuery_110421",stack:e.stack}])
}}else{if(!d[p].finished){if(c(d[p]))continue;break}p++}p==d.length&&(h=!1,u=!1)}function a(){u&&u.scripts||d.push(u={scripts:[],finished:!0})}var s,u,l=i(E,{}),d=[],p=0,h=!1;return s={script:function(){for(var c=0;c<arguments.length;c++)!function(c,o){var d;n(c)||(o=[c]);for(var p=0;p<o.length;p++)a(),c=o[p],t(c)&&(c=c()),c&&((n(c)?(d=[].slice.call(c),d.unshift(p,1),[].splice.apply(o,d),p--):("string"==typeof c&&(c={src:c}),c=i(c,{ready:!1,ready_cb:e,finished:!1,finished_cb:r}),u.finished=!1,u.scripts.push(c),_(l,c,u,B&&h),h=!0,l[f]&&s.wait())))
}(arguments[c],arguments[c]);return s},padScript:function(){var e=(navigator.userAgent.match((/(iPad).*OS\s([\d_]+)/))?!0:!1),t=arguments;return e||(t[0]=""),s.script.apply(null,t)},miniScript:function(){return s.script.apply(null,arguments)},wait:function(){if(arguments.length>0){for(var e=0;e<arguments.length;e++)d.push(arguments[e]);
u=d[d.length-1]}else u=!1;return o(),s}},{script:s.script,wait:s.wait,padScript:s.padScript,miniScript:s.miniScript,setOptions:function(e){return i(e,l),s}}}var L,E={},B=x||A,j=[],O={};return E[d]=!1,E[f]=!1,E[p]=!1,E[h]=!1,E[m]=!1,E[g]="",L={setGlobalDefaults:function(e){return i(e,E),L},setOptions:function(){return v().setOptions.apply(null,arguments)
},script:function(){return v().script.apply(null,arguments)},padScript:function(){return v().padScript.apply(null,arguments)},miniScript:function(){return v().miniScript.apply(null,arguments)},wait:function(){return v().wait.apply(null,arguments)},queueScript:function(){return j[j.length]={type:"script",args:[].slice.call(arguments)},L
},queueWait:function(){return j[j.length]={type:"wait",args:[].slice.call(arguments)},L},runQueue:function(){for(var e,t=L,n=j.length,r=n;--r>=0;)e=j.shift(),t=t[e.type].apply(null,e.args);return t},noConflict:function(){return e.$LAB=l,L},sandbox:function(){return u()}}}var l=e.$LAB,d="UseLocalXHR",f="AlwaysPreserveOrder",p="AllowDuplicates",h="CacheBust",m="Debug",g="BasePath",y=(/^[^?#]*\//).exec(location.href)[0],_=(/^\w+\:\/\/\/?[^\/]+/).exec(y)[0],w=document.head||document.getElementsByTagName("head"),v=e.opera&&"[object Opera]"==Object.prototype.toString.call(e.opera)||"MozAppearance"in document.documentElement.style,b=function(){},S=b,L=document.createElement("script"),E="boolean"==typeof L.preload,x=E||L.readyState&&"uninitialized"==L.readyState,B=!x&&L.async===!0,A=!x&&!B&&!v;
e.console&&e.console.log&&(e.console.error||(e.console.error=e.console.log),b=function(t){e.console.log(t)},S=function(t,n){e.console.error(t,n)}),e.$LAB=u(),function(e,t,n){null==document.readyState&&document[e]&&(document.readyState="loading",document[e](t,n=function(){document.removeEventListener(t,n,!1),document.readyState="complete"
},!1))}("addEventListener","DOMContentLoaded")}(this),"undefined"==typeof window.__uidc_init&&(window.__uidc_init=1*new Date),function(){function e(){try{document.documentElement.doScroll("left"),$LAB.isReady=!0}catch(t){setTimeout(e,1)}}if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){$LAB.isReady=!0
},!1),window.addEventListener("load",function(){$LAB.isLoaded=!0},!1);else if(document.attachEvent){window.attachEvent("onload",function(){$LAB.isLoaded=!0});var t;try{t=null==window.frameElement}catch(n){}document.documentElement.doScroll&&t&&setTimeout(e,1)}}(),function(){for(var e=document.getElementsByTagName("script")||[],t=(/_bfa\.min\.js/i),n=0;n<e.length;n++)if(t.test(e[n].src))return;
if(!window.$_bf){var r=new Date,i="?v="+r.getFullYear()+r.getMonth()+"_"+r.getDate()+".js",c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0;try{var o="https:"==document.location.protocol}catch(a){var o="https:"==document.URL.match((/[^:]+/))+":"}c.src=(o?"https://webresource.c-ctrip.com/code/ubt/_bfa.min.js"+i:"http://webresource.c-ctrip.com/code/ubt/_bfa.min.js"+i);
var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(c,s)}}();
