"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var IIT=IIT||{};!function(){var e;e=function(){var e=["4a0d3f51-773e-4e91-a657-38f22ae6ab49"];IIT.siteName="15km",IIT.flurry=!1,IIT.ypa=!1,IIT.keywords=void 0!==IIT.keywords?IIT.keywords:[],IIT.flurryDesktopSticky=void 0!==IIT.flurryDesktopSticky&&IIT.flurryDesktopSticky,IIT.flurryMobileSticky=void 0!==IIT.flurryMobileSticky&&IIT.flurryMobileSticky,IIT.ypaDesktopSticky=void 0!==IIT.ypaDesktopSticky&&IIT.ypaDesktopSticky,IIT.ypaMobileSticky=void 0!==IIT.ypaMobileSticky&&IIT.ypaMobileSticky,IIT.flurryDesktopPopup=void 0!==IIT.flurryDesktopPopup&&IIT.flurryDesktopPopup,IIT.flurryMobilePopup=void 0!==IIT.flurryMobilePopup&&IIT.flurryMobilePopup,IIT.ypaDesktopPopup=void 0!==IIT.ypaDesktopPopup&&IIT.ypaDesktopPopup,IIT.ypaMobilePopup=void 0!==IIT.ypaMobilePopup&&IIT.ypaMobilePopup,IIT.popupCookieTimeout=void 0!==IIT.popupCookieTimeout?IIT.popupCookieTimeout:180;var t;(t=void 0===t||!t?{}:t).tool={};var n=t.tool;n.mobilecheck=function(){var e=!1,t=navigator.userAgent||navigator.vendor||window.opera;return e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))?!0:e},n.Dom={_reClassNameCache:{},_getClassRegEx:function(e){var t=n.Dom._reClassNameCache[e];return t||(t=new RegExp("(?:^|\\s+)"+e+"(?:\\s+|$)"),n.Dom._reClassNameCache[e]=t),t},hasClass:function(e,t){if(void 0===e||null==e||!RegExp)return!1;t=new RegExp("(^|\\s)"+t+"(\\s|$)");return"string"==typeof e?t.test(e):!("object"!=_typeof(e)||!e.className)&&t.test(e.className)},getElementsByClassName:function(e,t,o,i){var a=[];t=(o=o||document).getElementsByTagName(t||"*"),e=n.Dom._getClassRegEx(e),o=0;for(var r=t.length;o<r;o++)e.test(t[o].className)&&(a[a.length]=t[o],i&&i.call(t[o],t[o]));return a},getAncestorByTagName:function(e,t){for(;e=e.parentNode;)if(e.tagName.toLowerCase()==t)return e;return null}},n.createEl={get:function(e,t,o,i){for(var a in e=document.createElement(e),t)e[a]=t[a];return o&&(e.innerHTML=o),this.append(e),e.onload=i,e},append:function(e){(document.getElementsByTagName("head")[0]||document.body).appendChild(e)},remove:function(e){setTimeout(function(){e.parentNode.removeChild(e),e=null},0)},css:function(e,t){return this.get("link",{href:e,rel:"stylesheet",type:"text/css",media:t=t||"all"},null,"head")},js:function(e,t,o){return e=this.get("script",{src:e,type:"text/javascript"},null,o),t&&e.setAttribute("charset",t),e}},n.getUrlArgument=function(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");e=new RegExp("[\\?&]"+e+"=([^&#]*)");return e.exec(t)?e.exec(t)[1]:""};function o(e,t){t=t||"div";var o=document.createDocumentFragment(),i=document.createElement(t);for(i.innerHTML=e;i.firstChild;)o.appendChild(i.firstChild);return o}function c(e){return document.querySelector(e)}function i(e,t){var o=document.createElement("script");o.async=!1,o.src=e,o.setAttribute("data-cfasync","false"),o.setAttribute("data-rocketoptimized","false"),o.onload=t,document.body.appendChild(o)}function a(){var d=0,s=+new Date,p=setInterval(function(){for(var e,t=!0,o=+new Date,i=0,a=l.length;i<a;i++){var r,n=l[i];n.done||((r=c(n.el))?(e="yap-loaded",-1<(" "+r.className+" ").indexOf(" "+e+" ")?(n.done=!0,n.cb()):-1!=n.timeout&&o>s+n.timeout?(n.done=!0,n.noAdCB()):t=!1):t=!1)}d++,(t||40<d)&&clearInterval(p)},500);window.adUnitCode=e,window.apiKey="RFSH8CPPFF6BN2M6R7NJ",i("https://s.yimg.com/av/yap/ga/yap.js")}function r(e,t,o){var i=new Date;i.setTime(i.getTime()+1e3*o),i="expires="+i.toUTCString(),document.cookie=e+"="+t+";"+i+";path=/"}var d,s,l=[],p=function(e,t,o,i){l.push({el:e,done:!1,cb:t,timeout:o=o||-1,noAdCB:i=i||function(){}})},u=function(e){for(var t=e+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var a=o[i];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""},m=t.tool.mobilecheck();d="https://admax.network/"+IIT.siteName+"/v1/ysm.css",(s=document.createElement("link")).rel="stylesheet",s.type="text/css",s.href=d,document.body.appendChild(s);for(var y,v=document.querySelectorAll(".iit-ad-wrapper-728x90"),f=0;f<v.length;f++)v[f].classList.contains("iit-loaded")||(m?v[f].className="iit-ad-wrapper-300x250":(y=o('<div class="yap-ad-'+e[0]+'"></div>                    <div class="iit-ad-subblock yap-ad-'+e[0]+'"></div>'),v[f].appendChild(y),v[f].className+=" iit-loaded"));for(var k,h,b=document.querySelectorAll(".iit-ad-wrapper-300x250"),f=0;f<b.length;f++)b[f].classList.contains("iit-loaded")||(y=o('<div class="yap-ad-'+e[0]+'"></div>'),b[f].appendChild(y),b[f].className+=" iit-loaded");IIT.jsLoaded||(m?(IIT.flurryMobilePopup&&""==u("iitPopup")&&(y=o('<div class="iitad-popup-overlay"><div class="iitad-popup-overlay-background"></div><div class="iitad-popup-ad-container"><div class="iitad-popup-ad yap-ad-'+e[0]+'"></div><div class="iit-ad-btn-close">✕</div></div></div>'),document.body.insertBefore(y,document.body.firstElementChild),p(".iitad-popup-ad",function(){c(".iitad-popup-overlay").style.display="block"}),c(".iitad-popup-overlay .iit-ad-btn-close").onclick=function(){var e=c(".iitad-popup-overlay");e.parentNode.removeChild(e),r("iitPopup","shown",IIT.popupCookieTimeout)}),IIT.flurryMobileSticky&&(k=function(){var e=window.innerWidth/320,t=window.innerHeight/70;e=window.innerHeight>window.innerWidth?e<t?e:t:1;t=document.querySelector(".iit-ad-sticky-bottom-mobile-wrapper .iit-ad-sticky-scaler");null!==t&&(t.style.webkitTransform="scale("+e+")",t.style.transform="scale("+e+")")},window.onresize=function(){k()},y=o('<div class="iit-ad-sticky-bottom-mobile-wrapper"><div class="iit-ad-sticky-scaler"><div class="iit-ad-item yap-ad-'+e[0]+'"></div><div class="iit-ad-btn-close">✕</div></div></div>'),document.body.insertBefore(y,document.body.firstElementChild),k(),p(".iit-ad-sticky-bottom-mobile-wrapper .iit-ad-item",function(){c(".iit-ad-sticky-bottom-mobile-wrapper").style.display="block"}),null!==(h=document.querySelector(".iit-ad-sticky-bottom-mobile-wrapper .iit-ad-btn-close"))&&(h.onclick=function(){var e=this.parentNode.parentNode;e.parentNode.removeChild(e)}))):(IIT.flurryDesktopSticky&&(y=o('<div class="iit-ad-sticky-wrapper"><div class="iit-ad-item iit-ad-sticky-container yap-ad-'+e[0]+'"></div><div class="iit-ad-btn-close">×</div></div>'),document.body.insertBefore(y,document.body.firstElementChild),p(".iit-ad-sticky-container",function(){c(".iit-ad-sticky-wrapper").style.display="block"}),c(".iit-ad-sticky-wrapper .iit-ad-btn-close").onclick=function(){var e=this.parentNode;e.parentNode.removeChild(e)}),IIT.flurryDesktopPopup&&""==u("iitPopup")&&(y=o('<div class="iitad-desktop-popup-overlay"><div class="iitad-popup-overlay-background"></div><div class="iitad-popup-ad-container"><div class="iitad-popup-ad yap-ad-'+e[0]+'"></div><div class="iit-ad-btn-close">✕</div></div></div>'),document.body.insertBefore(y,document.body.firstElementChild),p(".iitad-popup-ad",function(){c(".iitad-desktop-popup-overlay").style.display="block"}),c(".iitad-desktop-popup-overlay .iit-ad-btn-close").onclick=function(){var e=c(".iitad-desktop-popup-overlay");e.parentNode.removeChild(e),r("iitPopup","shown",IIT.popupCookieTimeout)}))),""==window.location.search||null!=(h=function(e){for(var t={},o=("?"===(e=e.split("?")[1])[0]?e.substr(1):e).split("&"),i=0;i<o.length;i++){var a=o[i].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]||"")}return t}(window.location.href)).queryKeyword&&(u=document.querySelector(".article-sorting-keyword-div"),(p=document.createElement("iframe")).class="searchypa",p.frameborder=0,p.scrolling="no",p.src="//www.15km.hk/ad.php?s="+h.queryKeyword+"&AdSlotId=3&coNo=tno&tt="+h.queryKeyword+"&css=admax.networks/default",p.style="width: 100%; background-color: #fff",p.height="270px",void(p.frameBorder=0)!==u&&(u.parentNode.insertBefore(p,u.parentNode.querySelector(".article-sorting-keyword-div")),window.addEventListener("message",function(e){var t;e.data;"kiwisearch"==e.data.substr(0,10)&&(t=document.querySelector(".searchypa"),e=e.data.substr(11),e=JSON.parse(e),t.height=e+30+"px")},!1))),i("https://s.yimg.com/uv/dm/scripts/syndication.js"),i("https://admax.network/ypa_keywords.js",function(){var e=document.querySelectorAll('[id*="iit-text-hotspot"]');if(0<e.length)for(var t=function(){var e=Math.floor(Math.random()*keywords.length);return{keyword:keywords[e].Keyword,image:keywords[e].Image,title:keywords[e].Title,type:keywords[e].Type}},o=0;o<e.length;o++){var i,a,r,n,d=t(),s=document.createElement("div");document.getElementsByClassName("iit-ad-ypa-floating2").length<=0&&(s.className="iit-ad-ypa-text_hotspot",(i=document.createElement("a")).className="iit-ad-ypa-text_hotspot-a",i.href="/index.php?comCat=article&articleCatagoryId=0&queryKeyword="+d.keyword.replace(/\s/g,"+"),i.target="_blank",(a=document.createElement("span")).className="iit-ad-ypa-text_hotspot-arrow",a.appendChild(document.createTextNode("↓")),(r=document.createElement("span")).className="iit-ad-ypa-text_hotspot-sponsored",r.appendChild(document.createTextNode("[搜尋]")),(n=document.createElement("span")).className="iit-ad-ypa-text_hotspot-keyword",n.appendChild(document.createTextNode(d.keyword)),i.appendChild(a),i.appendChild(r),i.appendChild(n),s.appendChild(i),e[0].appendChild(s),0)}return!1}),a()},"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}();