!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.klk_common=t():e.klk_common=t()}(window,function(){return function(){var e={706:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:1,n=1===t?i.default.get(e):(0,a.tryCatch)(function(){return localStorage.getItem(e)}),r=n?n.split(".."):["",""];return{session_id:r[0],iht_last_event_time:parseInt(r[1])}},y=function(e){var t=_(e);return b(t)?t:_(e,2)},v=function(e,t){var n=[t.session_id,t.iht_last_event_time].join("..");i.default.set(e,n,{expires:new Date(p()+c.DefaultOpt.cacheTime)}),(0,a.tryCatch)(function(){return localStorage.setItem(e,n)})},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return!1;var t=parseInt(e.iht_last_event_time||0),n=p()-t;return e.session_id&&n&&n<=c.DefaultOpt.cacheTime},g=function(e,t){var n=new Event(c.SessionChange);n.args=e,n.changetype=t,window.dispatchEvent(n)},h=function(e){var t=e.key,n=e.renew;try{var r=y(t),o=p();if(b(r)){if(n){var i=r.iht_last_event_time;r.iht_last_event_time=o,o-i>6e4?v(t,r):!l[t]&&(l[t]=!0,v(t,r),setTimeout(function(){l[t]=!1},3e3)),g(r,e.type)}}else r={iht_last_event_time:o,session_id:d()},v(t,r),g(r,e.type);return r}catch(e){}},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},c.IhtDefaultOpt,e);if(!1!==window[c.DefaultOpt.ais]){var n=h(t);return f.iht=n,n}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},c.GaDefaultOpt,e);if(!1!==window[c.GaDefaultOpt.ais]){var n=h(t);return f.ga=n,n}},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O(o._({},s,e))},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(o._({},s,e))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f.ga;return!e.force&&t&&t.session_id?t:m(o._({},s,e))},S=function(){j(s),P(s)},C=function(){(0,u.ael)(u.PushStateChange,function(){return P()}),(0,u.ael)(u.ReplaceStateChange,function(){return P()})},D=function(){return{ga:w(),iht:O()}},k=function(){var e;return e={},r._(e,c.GaDefaultOpt.gaKey,(w()||{}).session_id),r._(e,c.IhtDefaultOpt.gaKey,(O()||{}).session_id),e}},987:function(e,t,n){"use strict";function r(e){(e||!r.ok)&&!function(e,t,n){try{var o=t.querySelector("["+n.p+"]"),i=e[n.d]||[];o&&(o=o.dataset.spmPage||"")&&(o=o.split("?")[0])&&i.push({spm:o})&&(e[n.d]=i)&&(r.ok=!0)}catch(e){n.c.info(e)}}(window,document,{d:"dataLayer",c:console,p:"data-spm-page"})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectSpm",{enumerable:!0,get:function(){return r}})},581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"tryCatch",{enumerable:!0,get:function(){return r}});var r=function(e){try{return e()}catch(e){}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return!function(){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}n.ir=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=i?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=t[u]}return o.default=t,r&&r.set(t,o),o}}(),n("744")}()}); //# sourceMappingURL=klk_common.js.map