!function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function c(e,r){return function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],s=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(e,r)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(){try{var t,e,r;return document.referrer||(null===(t=window.opener)||void 0===t||null===(t=t.document)||void 0===t?void 0:t.URL)||(null===(e=window.parent)||void 0===e||null===(e=e.document)||void 0===e?void 0:e.referrer)||(null===(r=window.parent)||void 0===r||null===(r=r.opener)||void 0===r||null===(r=r.document)||void 0===r?void 0:r.referrer)||""}catch(t){return""}}var l=function(){var t=document.URL;if(t.includes("%")&&(t=decodeURIComponent(t)),t.includes("#")){var e=t.split("#"),r=e[1].split("&");t=e[0]+(r.length>1?"&"+r.slice(1).join("&"):"")}return t},h=function(t){if("function"!=typeof URL)return null;try{return new URL(t)}catch(t){return null}},f=function(){var t=l(),e=h(t),r=e?e.origin:"",n="",i=!0;try{n=window.top.location.origin}catch(t){i=!1,n=function(){if(!document.referrer)return"";var t=h(document.referrer);return t?t.origin:""}()}return{currentOrigin:r,topOrigin:n,isSameOrigin:i}},d=function(t){return null===t||""===t||void 0===t},p=function(t){return new Promise((function(e,r){var n,i;(null===(n=ECLOG)||void 0===n||null===(n=n.EXTERNAL_ID)||void 0===n||null===(i=n.chk)||void 0===i?void 0:i.call(n,t,(function(n,i){var o,a;n?r(n):null===(o=ECLOG)||void 0===o||null===(o=o.EVENT_ID)||void 0===o||null===(a=o.chk)||void 0===a||a.call(o,t,(function(t,n){t?r(t):e({event_id:n||"",external_id:i||""})}))})))||e({event_id:"",external_id:""})}))},_=function(t){if(!t)return"1";var e=parseInt(t,10);return isNaN(e)||e<=0?"1":t.toString()}; /*! js-cookie v3.0.5 | MIT */ function v(t){for(var e=1;ee.expiration){try{localStorage.removeItem(t)}catch(t){}return"F"}return e.value?e.value:"F"}for(var x,E=function(t,e,r){w(t,e,r/86400)},D=[],I=0;I<256;++I)D.push((I+256).toString(16).slice(1));var O=new Uint8Array(16);var C={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function L(t,e,r){var n,i,o,a;if(C.randomUUID&&!e&&!t)return C.randomUUID();var c=null!==(n=null!==(i=(t=t||{}).random)&&void 0!==i?i:null===(o=(a=t).rng)||void 0===o?void 0:o.call(a))&&void 0!==n?n:function(){if(!x){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");x=crypto.getRandomValues.bind(crypto)}return x(O)}();if(c.length<16)throw new Error("Random bytes length must be >= 16");if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError("UUID byte range ".concat(r,":").concat(r+15," is out of buffer bounds"));for(var s=0;s<16;++s)e[r+s]=c[s];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(D[t[e+0]]+D[t[e+1]]+D[t[e+2]]+D[t[e+3]]+"-"+D[t[e+4]]+D[t[e+5]]+"-"+D[t[e+6]]+D[t[e+7]]+"-"+D[t[e+8]]+D[t[e+9]]+"-"+D[t[e+10]]+D[t[e+11]]+D[t[e+12]]+D[t[e+13]]+D[t[e+14]]+D[t[e+15]]).toLowerCase()}(c)}function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var A,T,U={},j={};function P(){if(T)return A;function t(t,e){if(!t)throw new Error(e||"Assertion failed")}return T=1,A=t,t.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)},A}var N,z,V={exports:{}};function F(){if(z)return j;z=1;var t=P(),e=(N||(N=1,"function"==typeof Object.create?V.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:V.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),V.exports);function r(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function n(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function i(t){return 1===t.length?"0"+t:t}function o(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}return j.inherits=e,j.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o>6|192,n[i++]=63&a|128):r(t,o)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++o)),n[i++]=a>>18|240,n[i++]=a>>12&63|128,n[i++]=a>>6&63|128,n[i++]=63&a|128):(n[i++]=a>>12|224,n[i++]=a>>6&63|128,n[i++]=63&a|128)}else for(o=0;o>>0}return a},j.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},j.rotr32=function(t,e){return t>>>e|t<<32-e},j.rotl32=function(t,e){return t<>>32-e},j.sum32=function(t,e){return t+e>>>0},j.sum32_3=function(t,e,r){return t+e+r>>>0},j.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},j.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},j.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o>>0,t[e+1]=o},j.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},j.sum64_lo=function(t,e,r,n){return e+n>>>0},j.sum64_4_hi=function(t,e,r,n,i,o,a,c){var s=0,u=e;return s+=(u=u+n>>>0)>>0)>>0)>>0},j.sum64_4_lo=function(t,e,r,n,i,o,a,c){return e+n+o+c>>>0},j.sum64_5_hi=function(t,e,r,n,i,o,a,c,s,u){var l=0,h=e;return l+=(h=h+n>>>0)>>0)>>0)>>0)>>0},j.sum64_5_lo=function(t,e,r,n,i,o,a,c,s,u){return e+n+o+c+u>>>0},j.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},j.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},j.shr64_hi=function(t,e,r){return t>>>r},j.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},j}var H,K={};function B(){if(H)return K;H=1;var t=F(),e=P();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return K.BlockHash=r,r.prototype.update=function(e,r){if(e=t.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=t.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>3},nt.g1_256=function(e){return t(e,17)^t(e,19)^e>>>10},nt}function ot(){if(Y)return W;Y=1;var t=F(),e=B(),r=it(),n=P(),i=t.sum32,o=t.sum32_4,a=t.sum32_5,c=r.ch32,s=r.maj32,u=r.s0_256,l=r.s1_256,h=r.g0_256,f=r.g1_256,d=e.BlockHash,p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function _(){if(!(this instanceof _))return new _;d.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=p,this.W=new Array(64)}return t.inherits(_,d),W=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(t,e){for(var r=this.W,d=0;d<16;d++)r[d]=t[e+d];for(;dthis.blockSize&&(t=(new this.Hash).update(t).digest()),e(t.length<=this.blockSize);for(var r=t.length;r0&&"/"===t[e-1];)e--;return t.substring(0,e)}function Ft(t){var e="string"==typeof t&&t.trim().length>0?t.trim():xt;if(/^https?:\/\//i.test(e))if("function"==typeof URL)try{var r=new URL(e);zt=Vt(r.toString())}catch(t){return}else zt=Vt(e)}var Ht=function(t,e){var r;"function"==typeof(null===(r=window.EC_JET)||void 0===r?void 0:r.message)&&window.EC_JET.message(t,e)},Kt=/(?:^|;\s*)iscache=F(?:\s*|$|;)/,Bt=function(){return null!==document.cookie.match(Kt)},Gt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;"undefined"==typeof CAPP_ASYNC_METHODS||"complete"!==CAPP_ASYNC_METHODS.STATUS?function(t,e){setTimeout((function(){return t(e+1)}),100)}((function(e){return Gt(t,e)}),e):t(!0)},Jt=function(){return new Promise((function(t){Gt(t)}))},Mt=function(){var t=r(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Jt();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();var Wt=function(t,e,r){var n=function(){var t=window.crypto||window.msCrypto;if(t&&t.randomUUID)return t.randomUUID().toUpperCase().substring(0,7);if(t&&t.getRandomValues){var e=new Uint8Array(7);return t.getRandomValues(e),Array.from(e,(function(t){return("0"+t.toString(36)).slice(-2)})).join("").toUpperCase().substring(0,7)}for(var r=4294967296,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=Date.now()%r,o="",a=0;a<7;a++)o+=n.charAt((i=(1664525*i+1013904223)%r)%36);return o}(),i=function(t){var e,r,n=t.uid,i=t.shopNo;i&&"undefined"!==i?(e=n+"_"+i,r=n+"_"+i):(e=n,r=n+"_0");return{baseCookieKey:e,shopCookieKey:r}}({uid:t,shopNo:e}),o=i.baseCookieKey,a=i.shopCookieKey,c=Yt({baseCookieKey:o,shopCookieKey:a,cfa_domain:r,rid:n}),s=c.analytics_session_id,u=c.is_session_new,l=Zt({baseCookieKey:o,shopCookieKey:a,cfa_domain:r,rid:n}),h=l.analytics_longterm,f=l.new_visit,d=function(t,e){for(var r=new TextEncoder,n=r.encode(t),i=r.encode(e),o=new Uint8Array(n.length),a=0;a60&&(r="T");return r}(o,n)&&(i=o):(i="CVID."+e+"."+St.getTime(),a="F")}else a="F";return w("CVID",i,null,r),b("CVID_"+t,i),{cvid_val:i,ck_vid_ad2:a}}(a,d,r),_=p.cvid_val,v=p.ck_vid_ad2,g=function(t,e){var r="CVID_Y."+t+"."+St.getTime(),n=y("CVID_Y");if(n){r=n.split(".")[1]===t?n:"CVID_Y."+t+"."+St.getTime()}return w("CVID_Y",r,365,e),r}(d,r),m=function(t,e,r,n){"T"===n&&(w("CVID_E","",-1,r),sessionStorage.removeItem("CVID_E_"+t));var i,o=document.URL;o.includes("%")&&(o=decodeURIComponent(o));return o=function(t){var e=t;if(e.includes("#")){var r=e.split("#"),n="",i=r[1].split("&");i.length>1&&(n="&"+i.slice(1).join("&")),e=r[0]+n}return e}(o),i=function(t,e,r,n){var i="CVID_E_"+e,o=t.match(/_cus_ad_inf=([^&]*)/);if(o){var a=o[1];return w("CVID_E","".concat(r,"_").concat(a),null,n),b(i,a),a}var c=y("CVID_E");if(c){var s=c.split("_");if(s[0]===r&&s[0].length>0){var u=c.replace("".concat(r,"_"),"");return b(i,u),u}}var l=sessionStorage.getItem(i);if(null!==l&&"null"!==l)return w("CVID_E","".concat(r,"_").concat(l),null,n),b(i,l),l;return""}(o,t,e,r),i}(a,d,r,u),S=function(t,e){var r="",n=new Date,i=document.URL;i.includes("#")&&(i=i.split("#")[0]);i.includes("%")&&(i=decodeURIComponent(i));var o=i.match(/utm_source=([^&]*)/),a=i.match(/utm_content=([^&]*)/);a&&w("utm_content",a[1],null,e);if(o)w("CVID_AD",r=n.getTime()+"."+o[1],null,e);else{var c=y("CVID_AD");c&&"T"===t&&w("CVID_AD",r=c,null,e)}return r}(v,r);return{analytics_session_id:s,analytics_longterm:h,new_visit:f,is_session_new:u,cvid_val:_,cvid_y_val:g,cvid_e:m,cvid_ad:S}},Yt=function(t){var e,r,n=t.baseCookieKey,i=t.shopCookieKey,o=t.cfa_domain,a=t.rid,c="analytics_session_id",s=y(c),u="".concat(c,"_").concat(i),l=sessionStorage.getItem(u),h="T",f=(new Date).getTime(),d="F"===(null===(r=l)||"null"===r||void 0===r||"string"==typeof r&&""===r.trim()?"F":r)?qt(c,i,a):l;if(s){var p=kt.exec(s),_="analytics_session_id.".concat(n).concat(p?p[0]:"");if(s.match(_)){var v=!1;if(p)v=f-parseInt(p[0].replace(/^\.[A-Z\d]{7}\./,""),10)>72e5;if(v)w(c,e=qt(c,i,a),null,o),w("siteSID",_t("siteSID"));else e=s.replace(n,i),h="F"}else w(c,e=d,null,o)}else w(c,e=d,null,o);return b(u,e),{analytics_session_id:e,is_session_new:h}};var Qt=function(t,e,r){var n,i="analytics_longterm_"+t,o=k(i);if(null!==(n=o)&&"null"!==n&&"F"!==n&&"F2"!==n)return w("analytics_longterm",o,bt,e),o;var a=sessionStorage.getItem(i);if(a&&"null"!==a)return w("analytics_longterm",a,bt,e),a;var c="analytics_longterm.".concat(t,".").concat(r,".").concat(St.getTime());return w("analytics_longterm",c,bt,e),c},Zt=function(t){var e=t.baseCookieKey,r=t.shopCookieKey,n=t.cfa_domain,i=t.rid,o="T",a=y("analytics_longterm");if(a){var c="analytics_longterm."+e+kt.exec(a);if(a.match(c))if(o="F",(a=a.replace(e,r)).startsWith("analytics_longterm"))w("analytics_longterm",a,bt,n);else try{a=JSON.parse(decodeURIComponent(a)).value,w("analytics_longterm","",-1,n),w("analytics_longterm",a,bt,n)}catch(t){console.error("analytics_longterm 쿠키 파싱 실패:",t)}else a=Qt(r,n,i)}else a=Qt(r,n,i);var s="analytics_longterm_"+r;return b(s,a),function(t,e,r){if("undefined"==typeof localStorage)return"Err_LS_not_available";var n=Date.now();try{var i=localStorage.getItem(t);return i?n>JSON.parse(i).expiration?(localStorage.removeItem(t),S(t,e,r,n),"LS removed and created"):(S(t,e,r,n),"LS updated"):(S(t,e,r,n),"LS created")}catch(t){return"QuotaExceededError"===t.name?"Err_QuotaExceededError":"SecurityError"===t.name?"Err_SecurityError":"Err_not_setting"}}(s,a,bt),{analytics_longterm:a,new_visit:o}};function qt(t,e,r){return"".concat(t,".").concat(e,".").concat(r,".").concat(St.getTime())}var Xt=function(t){return!d(null==t?void 0:t.member_id)&&!d(null==t?void 0:t.h_member_id)},$t=function(){var t=r(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Bt()){t.next=2;break}return t.abrupt("return",Et);case 2:return t.prev=2,t.next=5,Jt();case 5:return e=CAPP_ASYNC_METHODS.member.getData(),t.abrupt("return",Xt(e)?e:Et);case 9:throw t.prev=9,t.t0=t.catch(2),t.t0;case 12:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(){return t.apply(this,arguments)}}(),te=function(){var t=r(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Bt()){t.next=2;break}return t.abrupt("return",{m_id:"",h_m_id:""});case 2:return t.prev=2,t.next=5,$t();case 5:return e=t.sent,t.abrupt("return",{m_id:e.member_id?btoa(e.member_id):"",h_m_id:e.h_member_id});case 9:throw t.prev=9,t.t0=t.catch(2),t.t0.message="Failed to initialize: ".concat(t.t0.message),t.t0;case 13:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(){return t.apply(this,arguments)}}();function ee(t){var e=ee._cache||(ee._cache={});if(void 0!==e[t])return e[t];var r=document.querySelector('meta[name="'.concat(t,'"], meta[property="').concat(t,'"]')),n=r?r.getAttribute("content"):"";return e[t]=n,n}function re(t,e){var r=e.category_no,n=e.category_name,i="",o="",a=t("ec_category");a&&decodeURIComponent(a).split("&").forEach((function(t){var e=t.split("="),a=e[0],c=e[1]||"";"category_no"===a?i=null!=c?c:r:"category_name"===a&&(o=null!=c?c:n)}));return{category_id:i,category_name:o}}function ne(t,e){if(!t||!e)return"";if(!/^https?:\/\//i.test(t)||"function"!=typeof URL)return ie(t,e);try{return new URL(t).searchParams.get(e)||""}catch(r){return ie(t,e)}}function ie(t,e){var r=new RegExp("[?&]".concat(e,"=([^&#]*)")),n=t.match(r);return n?decodeURIComponent(n[1]):""}var oe,ae,ce,se,ue=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.mid,n=e.stype,i=e.domain,o=e.send_endpoint,a=e.shop_no,c=e.lang,s=e.path_role;return{uid:r,service_type:n,type:"conn",etc:"",domain:i,send_endpoint:o,third_party_persistent_id:"",third_party_session_id:"",site_long_term_id:"",site_session_id:"",s_url:"",ref:"",current_origin:"",top_level_origin:"",is_same_origin:!0,mkt_click_type:"",mkt_click_id:"",path_role:null!==(t=ee("path_role"))&&void 0!==t?t:s,screen_resolution:"",ts:(new Date).getTime(),ttp:y("_ttp"),is_login:Bt(),browser_session_id:"",cookie_1y_id:"",visitor_id:"",visitor_id_yearly:"",visitor_ad_id:"",visitor_id_extra:"",new_visit:"",is_session_new:"",member_id_enc:"",h_member_id:"",shop_no:null!=a?a:_(),lang:null!=c?c:"ko_KR"}},le=function(t){return{product_id:"",product_name:"",product_price:"",product_sale_price:"",product_currency:"KRW",product_img_url:"",fbp:"",fbc:"",language_code:"ko_KR",category_id:t.category_id,category_name:t.category_name,category_path:"",d_collection_category:"",event_id:"",external_id:""}},he=function(){return{third_party_persistent_id:sessionStorage.getItem("_ca2_pid"),third_party_session_id:sessionStorage.getItem("_ca2_sid"),site_long_term_id:yt(),site_session_id:wt()}},fe=function(){var t=f(),e=t.currentOrigin,r=t.topOrigin;return{s_url:l(),ref:u(),current_origin:e,top_level_origin:r,is_same_origin:e===r}},de=function(t,e){var r=y("_cl_ad_tp"),n=y("_cl_ad_id"),i=t.match(/gclid=([^&]*)/),o=null!==i,a=Object.entries({ttclid:"ttclid",fbclid:"fbclid",wbraid:"wbraid"}).reduce((function(e,r){var n=c(r,2),i=n[0],o=n[1];if(e)return e;var a=t.match(new RegExp("".concat(i,"=([^&]*)")));return a?{param:i,type:o,value:a[1]}:null}),null);return a?(r=a.type,n=a.value):o&&(r="gclid",n=i[1]),r&&n&&(w("_cl_ad_tp",r,null,e),w("_cl_ad_id",n,null,e)),{mkt_click_type:r,mkt_click_id:n}},pe=function(t,e){var r,n=t.uid,i=t.shop_no,a=t.service_type,c=t.path_role,s=e.sessionData,u=e.urlData,l=e.cookieData,h=e.memberData,f=e.marketingData,d=e.hasErrorOccurred,p=o(o({browser_session_id:l.analytics_session_id,cookie_1y_id:l.analytics_longterm,visitor_id:l.cvid_val,visitor_id_yearly:l.cvid_y_val,visitor_ad_id:l.cvid_ad,visitor_id_extra:l.cvid_e,new_visit:l.new_visit,is_session_new:l.is_session_new},s),{},{member_id_enc:h.m_id,h_member_id:h.h_m_id,current_url:u.s_url,referrer_url:u.ref,current_origin:u.current_origin,top_level_origin:u.top_level_origin,is_same_origin:u.is_same_origin},f);return delete p.has_error_recovery,o(o({uid:n,shop_no:i,service_type:a,type:"conn"},p),{},{path_role:null!==(r=ee("path_role"))&&void 0!==r?r:c,screen_resolution:"".concat(window.screen.width,"*").concat(window.screen.height),ts:(new Date).getTime(),ttp:y("_ttp"),is_login:Bt(),has_error_recovery:d})},_e=function(){var t=r(a().mark((function t(e){var r,n,i,c,s,u,h;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.uid,n=e.shop_no,i=e.lang,c=o(o({product_id:ee("product:productId"),product_name:ee("og:title"),product_price:ee("product:price:amount"),product_sale_price:ee("product:sale_price:amount"),product_currency:ee("product:price:currency"),product_img_url:ee("og:image"),fbp:y("_fbp"),fbc:y("_fbc"),language_code:i},re(y,e)),{},{d_collection_category:ne(l(),"d_ct"),has_error_recovery:!1}),t.next=4,p("".concat(r,".").concat(n)).catch((function(){return c.has_error_recovery=!0,{event_id:"",external_id:""}}));case 4:return s=t.sent,u=s.event_id,h=s.external_id,t.abrupt("return",o(o({},c),{},{event_id:u,external_id:h}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ve=function(t,e,r){try{for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o2&&void 0!==N[2])||N[2],i=e.uid,c=e.shop_no,s=e.third_party_persistent_id,u=e.third_party_session_id,l=e.site_long_term_id,h=e.site_session_id,f=e.s_url,d=e.ref,p=e.current_origin,_=e.top_level_origin,v=e.is_same_origin,g=e.browser_session_id,m=e.cookie_1y_id,w=e.visitor_id,b=e.visitor_id_yearly,S=e.visitor_ad_id,k=e.visitor_id_extra,x=e.new_visit,E=e.is_session_new,D=e.mkt_click_type,I=e.mkt_click_id,O={sessionData:{third_party_persistent_id:s,third_party_session_id:u,site_long_term_id:l,site_session_id:h},urlData:{s_url:f,ref:d,current_origin:p||window.location.origin,top_level_origin:_||window.location.origin,is_same_origin:v},cookieData:{analytics_session_id:g,analytics_longterm:m,cvid_val:w,cvid_y_val:b,cvid_ad:S,cvid_e:k,new_visit:x,is_session_new:E},memberData:Et,marketingData:{mkt_click_type:D,mkt_click_id:I}},n){t.next=5;break}return t.abrupt("return",o(o({},O),{},{hasErrorOccurred:!0}));case 5:return C=ve(he,It,O.sessionData),L=ve(fe,Ct,O.urlData),R=ve(Wt,Lt,O.cookieData,i,c,r),A=ve(de,Rt,O.marketingData,L.s_url||"",r),t.prev=9,t.next=12,te();case 12:T=t.sent,t.next=20;break;case 15:t.prev=15,t.t0=t.catch(9),Ht(t.t0,Ut),(T=Et).has_error_recovery=!0;case 20:return R.analytics_session_id&&""!==R.analytics_session_id||(U=y("analytics_session_id"))&&(R.analytics_session_id=U),!(j=y("siteSID"))||C.site_session_id&&C.site_session_id===j||(C.site_session_id=j),P=C&&C.has_error_recovery||L&&L.has_error_recovery||R&&R.has_error_recovery||A&&A.has_error_recovery||T&&T.has_error_recovery||!1,t.abrupt("return",{sessionData:C,urlData:L,cookieData:R,memberData:T,marketingData:A,hasErrorOccurred:P});case 25:case"end":return t.stop()}}),t,null,[[9,15]])})));return function(e,r){return t.apply(this,arguments)}}(),me=function(){var t=r(a().mark((function t(e){var n,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=ue(e),i=function(){var t=r(a().mark((function t(e){var i,o,c=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=c.length>1&&void 0!==c[1]&&c[1],o=m(n.domain),t.abrupt("return",ge(n,o,e).then((function(t){t.hasErrorOccurred=t.hasErrorOccurred||i;var e=function(){var e=r(a().mark((function e(){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e(n);case 2:return r=e.sent,t.hasErrorOccurred&&(r.has_error_recovery=!0),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{createLogData:function(){return pe(n,t)},createProductDetailData:e}})));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.prev=2,t.abrupt("return",i(!0));case 6:return t.prev=6,t.t0=t.catch(2),Ht(t.t0,Ot),t.abrupt("return",i(!1,!0));case 10:case"end":return t.stop()}}),t,null,[[2,6]])})));return function(e){return t.apply(this,arguments)}}(),ye=function(t,e,r){return t.field?o(o({},e),{},n({},t.field,r[t.field])):e},we=function(t,e,r){if(!t.fields||!Array.isArray(t.fields))return e;var n=o({},e);return t.fields.forEach((function(t){t in r&&(n[t]=r[t])})),n},be=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o({message:t.message,error:t},r);Ht(n,e)},Se=function(t,e,r){try{return t()}catch(t){return be(t,r),e}},ke=function(t,e,r){try{return e()}catch(e){return Ht({message:"Error generating field: ".concat(t),error:e.message,field:t},Ot),n({},t,r[t]||"")}},xe=function(t){return o(o({},ke("third_party_persistent_id",(function(){return{third_party_persistent_id:sessionStorage.getItem("_ca2_pid")||""}}),t)),ke("third_party_session_id",(function(){return{third_party_session_id:sessionStorage.getItem("_ca2_sid")||""}}),t))},Ee=function(t){return o(o({},ke("site_long_term_id",(function(){return{site_long_term_id:yt()}}),t)),ke("site_session_id",(function(){return{site_session_id:wt()}}),t))},De=function(t){return o({},ke("screen_resolution",(function(){return{screen_resolution:"".concat(window.screen.width,"*").concat(window.screen.height)}}),t))},Ie=function(t){return ke("url_info",(function(){var t=f(),e=t.currentOrigin,r=t.topOrigin;return{current_origin:e,top_level_origin:r,is_same_origin:e===r}}),t)},Oe=function(){var t=r(a().mark((function t(e,r){var n,i,c,s,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,n=o(o({},r),e),i={};try{i=xe(e)}catch(t){be(t,It),i={third_party_persistent_id:r.third_party_persistent_id||"",third_party_session_id:r.third_party_session_id||""}}c={};try{c=Ee(e)}catch(t){be(t,Ot),c={site_long_term_id:r.site_long_term_id||"",site_session_id:r.site_session_id||""}}s={};try{s=De(e)}catch(t){be(t,Ot),s={screen_resolution:r.screen_resolution||""}}u={};try{u=Ie(e)}catch(t){be(t,Ct),u={current_origin:r.current_origin||"",top_level_origin:r.top_level_origin||"",is_same_origin:r.is_same_origin||!0}}return t.abrupt("return",o(o(o(o(o(o({},n),i),c),s),u),{},{send_trigger:e.send_trigger||""}));case 13:return t.prev=13,t.t0=t.catch(0),be(t.t0,At),t.abrupt("return",r);case 17:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(e,r){return t.apply(this,arguments)}}(),Ce=function(){var t=r(a().mark((function t(e,n,i){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",n(e));case 4:return t.prev=4,t.t0=t.catch(0),be(t.t0,Tt),t.abrupt("return",Se(r(a().mark((function r(){var o;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n(e);case 2:return o=r.sent,r.abrupt("return",we(t.t0,o,i));case 4:case"end":return r.stop()}}),r)}))),i,Tt));case 8:case"end":return t.stop()}}),t,null,[[0,4]])})));return function(e,r,n){return t.apply(this,arguments)}}(),Le=function(){var t=r(a().mark((function t(e,r,n,i){var o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o=Oe(e,i),t.abrupt("return",ye(r,o,i));case 5:return t.prev=5,t.t0=t.catch(0),be(t.t0,Nt),t.abrupt("return",n);case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e,r,n,i){return t.apply(this,arguments)}}(),Re={session:{fn:(se=r(a().mark((function t(e){var r,n,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ft(e.send_endpoint),r=sessionStorage.getItem("_ca2_pid"),n=sessionStorage.getItem("_ca2_sid"),r&&n){t.next=15;break}return t.prev=4,i=new Promise((function(t,e){window.addEventListener("message",(function(r){if("https://ca-log.cafe24data.com"===r.origin)try{var n=JSON.parse(r.data);if("setIds"===n.method&&n.params){var i=n.params,o=i.permanentId,a=i.sessionId;sessionStorage.setItem("_ca2_pid",o),sessionStorage.setItem("_ca2_sid",a),t()}}catch(t){e(t)}}))})),t.next=8,new Promise((function(t){var e=document.createElement("iframe");e.src="https://ca-log.cafe24data.com/session-handler",e.style.width="0",e.style.height="0",e.style.border="0",e.onload=function(){t()},document.body.appendChild(e)}));case 8:return t.next=10,i;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),Ht({message:"Session initialization failed, pid/sid will be empty",error:t.t0.message},Dt);case 15:case"end":return t.stop()}}),t,null,[[4,12]])}))),function(t){return se.apply(this,arguments)}),options:{code:Dt}},initializeData:{fn:(ce=r(a().mark((function t(e){var r,n,i,o,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,me(e);case 3:return r=t.sent,n=r.createLogData,i=r.createProductDetailData,t.abrupt("return",{createLogData:n,createProductDetailData:i});case 9:return t.prev=9,t.t0=t.catch(0),Ht(t.t0,Ot),o=ue(e),c=le(e),t.abrupt("return",{createLogData:function(){return Oe(e,o)},createProductDetailData:function(){return Ce(e,(function(){return c}),c)}});case 15:case"end":return t.stop()}}),t,null,[[0,9]])}))),function(t){return ce.apply(this,arguments)}),options:{code:Ot}},baseLogData:{fn:(ae=r(a().mark((function t(e,r){var n,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.initializeData,t.prev=1,t.abrupt("return",n.createLogData(e));case 5:return t.prev=5,t.t0=t.catch(1),Ht(t.t0,At),i=ue(e),t.abrupt("return",Le(e,t.t0,i,i));case 10:case"end":return t.stop()}}),t,null,[[1,5]])}))),function(t,e){return ae.apply(this,arguments)}),options:{code:At}},finalLogData:{fn:(oe=r(a().mark((function t(e,r){var n,i,c,s,u,l;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.initializeData,(i=r.baseLogData)&&"PRODUCT_DETAIL"===i.path_role){t.next=7;break}if(i){t.next=6;break}return(c=ue(e)).has_error_recovery=!0,t.abrupt("return",c);case 6:return t.abrupt("return",i);case 7:return t.prev=7,t.next=10,n.createProductDetailData(e);case 10:return s=t.sent,t.abrupt("return",o(o({},i),s));case 14:return t.prev=14,t.t0=t.catch(7),Ht(t.t0,Tt),u=le(e),l=Ce(e,n.createProductDetailData,u),t.abrupt("return",o(o({},i),l));case 20:case"end":return t.stop()}}),t,null,[[7,14]])}))),function(t,e){return oe.apply(this,arguments)}),options:{code:Tt}}};function Ae(t){var e=function(){try{return"function"==typeof URL?Vt(new URL(zt).toString()):Vt(zt)}catch(t){return xt}}()+"/sendlog",r=new Blob([JSON.stringify(t)],{type:"text/plain"});navigator.sendBeacon?navigator.sendBeacon(e,r):fetch(e,{method:"POST",body:r,keepalive:!0})}var Te,Ue=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()},je=function(){var t,e=!1,n=(t=Ue(),{getDuration:function(){var e=Ue(),r=Math.round(e-t),n=r<0||r>3e5;return{duration:r,isAbnormal:n,measurementInfo:n?{startTime:t,endTime:e}:null}}}),i=function(t){return Math.round(t)},c=function(t,e){var r=i(t.startTime),n=i(t.endTime);Ht("[".concat(e,"] Duration error: current(").concat(n,") start(").concat(r,") = ").concat(t.duration,"ms"),jt)},s=function(){var t=r(a().mark((function t(r,i){var s,u,l,h=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=!(h.length>2&&void 0!==h[2])||h[2],!e){t.next=3;break}return t.abrupt("return");case 3:if(t.prev=3,!s||!Bt()){t.next=7;break}return t.next=7,Mt();case 7:e=!0,u=n.getDuration(),Ae(o(o({},r),{},{process_duration:u.duration,send_trigger:i})),u.isAbnormal&&(l=u.measurementInfo,c({duration:u.duration,startTime:l.startTime,endTime:l.endTime},i)),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(3),Ht("Process log failed: ".concat(t.t0.message),Pt);case 16:case"end":return t.stop()}}),t,null,[[3,13]])})));return function(e,r){return t.apply(this,arguments)}}();return{sendLogOnce:s}},Pe=function(t,e){var r=!1,n=function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(e.sendLogOnce(t,"load_interactive"),document.removeEventListener("readystatechange",n))},i=function(){e.sendLogOnce(t,"pagehide",!1),a()},o=function(){"hidden"===document.visibilityState&&e.sendLogOnce(t,"visibilitychange",!1)},a=function(){r||(document.removeEventListener("readystatechange",n),window.removeEventListener("pagehide",i),document.removeEventListener("visibilitychange",o),r=!0)};return{setupEventListeners:function(){window._caJsEventCleanup&&window._caJsEventCleanup(),"complete"===document.readyState?e.sendLogOnce(t,"load_complete"):document.addEventListener("readystatechange",n),window.addEventListener("pagehide",i),document.addEventListener("visibilitychange",o),window._caJsEventCleanup=a},cleanupEventListeners:a}},Ne=(Te=Re,r(a().mark((function t(){var e,r,n,i,o,s,u,l,h,f,d,p,_=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e={},r=_.length,n=new Array(r),i=0;i