function a0_0x12f6(t,r){return t-=432,a0_0x3ba0()[t]}function a0_0x3ba0(){let t=["userAgent","join","split","parts","fpp_responses","length","dataLayer","ecommerce","referrer","get","now","co.uk","replace","forEach","POST","endsWith","currency","5640108cXKPQn","/collect","searchParams","_gcl_aw","application/json","toUTCString","gbraid","2200866VIStJT","custom_session_id","gclid","stringify","1705394gLWTFF","firstPartyPixelLayer","substring","tax","5282015AlXoRl","host","then","gov.uk","custom_user_id","1CFohdn","pop","_ga","shift","random","wbraid","transaction_id","ac.uk","slice","floor","json","hostname","_gbraid","apply","catch","metro.tokyo.lg.jp","15552552NjTkud","toISOString","cookie","match","https://fpp.","2625189WqduvS","href","message","event","location","/collect_all","stack","getTime","items","pref.nilgata.lg.jp","expires=","suffix","_wbraid","3477780PcdWEt","toString","push","domain=.","value"];return(a0_0x3ba0=function(){return t})()}(()=>{for(var t=a0_0x12f6,r=a0_0x3ba0();;)try{if(561141==-parseInt(t(506))*(-parseInt(t(497))/2)+-parseInt(t(493))/3+parseInt(t(464))/4+-parseInt(t(501))/5+-parseInt(t(486))/6+-parseInt(t(451))/7+parseInt(t(446))/8)break;r.push(r.shift())}catch(t){r.push(r.shift())}})(),(()=>{let T=a0_0x12f6,L=(window.dataLayer=window[T(475)]||[],window[T(475)][T(466)]);function C(){var r=T;try{var t=(r=>{var e=T;try{let t=r;return function(){return(t=(t=(t^=t<<13)^t>>17)^t<<5)>>>0}}catch(t){window.fpp_responses[e(466)]({error:t[e(453)],stack:t.stack})}})(Math.floor(9999*Math[r(434)]()))().toString()[r(499)](0,5),e=Date[r(479)]()[r(465)]();return parseInt(t+e)}catch(t){window[r(473)].push({error:t[r(453)],stack:t[r(457)]})}}function D(t){var r=T;try{var e=("; "+document[r(448)])[r(471)]("; "+t+"=");if(2===e[r(474)])return e[r(507)]()[r(471)](";")[r(433)]()}catch(t){window[r(473)].push({error:t.message,stack:t[r(457)]})}}function t(t,r,e){var a,n=T,o=new Date,o=(o.setTime(o[n(458)]()+24*e*60*60*1e3),o[n(491)]()),e=e?n(461)+o+";":"",i=window[n(455)].hostname,o=i[n(471)](".");let s,c=null;for(a of[{suffix:n(445),parts:5},{suffix:n(460),parts:5},{suffix:n(480),parts:3},{suffix:n(504),parts:3},{suffix:n(437),parts:3}])if(i[n(484)](a[n(462)])){c=a;break}s=c?o[n(438)](-c[n(472)]).join("."):o.slice(-2)[n(470)](".");o=n(467)+s+";";document[n(448)]=t+"="+encodeURIComponent(r)+";"+o+e+"path=/"}function O(){var r=T;try{var t=new URL(window[r(455)][r(452)]).searchParams[r(478)](r(495));return t?"GCL."+Math[r(439)](Date[r(479)]()/1e3)+"."+t:null}catch(t){window.fpp_responses[r(466)]({error:t[r(453)],stack:t[r(457)]})}}if(window[T(473)]=window[T(473)]||[],window.firstPartyPixelLayer=window[T(498)]||[],window[T(475)].push=function(r){var e=T;try{if(L[e(443)](this,arguments),"purchase"===r?.[e(454)]){var a=r;var n=T;try{var t=a?.[n(476)]||{},o=t?.[n(436)]||"",i=t?.[n(468)]||0,s=t?.[n(500)]||0,c=t?.shipping||0,w=t?.[n(485)]||"",d=D(n(432))||null,u=O()||D(n(489)),p=R("wbraid")||D("_wbraid"),f=R(n(492))||D(n(442)),h=C(),l=parseInt(D(n(505))),_=parseInt(D(n(494))),m={timestamp:(new Date)[n(447)](),event_name:a?.[n(454)],transaction_id:o,value:i,tax:s,shipping:c,currency:w,client_id:d,gclid:u,wbraid:p,gbraid:f,items:t?.[n(459)],custom_user_id:l,custom_session_id:_,custom_event_id:h,user_agent:navigator[n(469)]||"",referrer:document[n(477)],domain:window[n(455)].hostname,page_location:window[n(455)][n(452)],cookies:U()};window.firstPartyPixelLayer[n(466)](m),(t=>{let e=T;try{fetch(W(e(487)),{method:e(483),headers:{"Content-Type":e(490)},body:JSON[e(496)](t)})[e(503)](t=>t[e(440)]()).then(t=>{var r=e;window[r(473)][r(466)](t)})[e(444)](t=>{var r=e;window[r(473)][r(466)]({error:t[r(453)],stack:t[r(457)]})})}catch(t){window[e(473)][e(466)]({error:t[e(453)],stack:t[e(457)]})}})(m)}catch(t){window[n(473)].push({error:t[n(453)],stack:t.stack,event:a})}}var g=r,v=T;try{var k=O()||D(v(489)),y=R(v(435))||D(v(463)),b=R(v(492))||D(v(442)),x=C(),I=parseInt(D(v(505))),P=parseInt(D(v(494))),j=D(v(432))||null,S={timestamp:(new Date)[v(447)](),event_name:g?.event,event_data:g,client_id:j,gclid:k,wbraid:y,gbraid:b,custom_user_id:I,custom_session_id:P,custom_event_id:x,user_agent:navigator.userAgent||"",referrer:document.referrer,domain:window[v(455)][v(441)],page_location:window[v(455)][v(452)],cookies:U()};window[v(498)][v(466)](S),(t=>{let e=T;try{fetch(W(e(456)),{method:"POST",headers:{"Content-Type":e(490)},body:JSON[e(496)](t)}).then(t=>t[e(440)]())[e(503)](t=>{var r=e;window[r(473)][r(466)](t)}).catch(t=>{var r=e;window.fpp_responses.push({error:t[r(453)],stack:t[r(457)]})})}catch(t){window[e(473)][e(466)]({error:t[e(453)],stack:t.stack})}})(S)}catch(t){window[v(473)][v(466)]({error:t[v(453)],stack:t[v(457)],event:g})}}catch(t){window[e(473)][e(466)]({error:t[e(453)],stack:t.stack,event:r})}},!D("custom_user_id"))try{t(T(505),C(),365)}catch(t){window[T(473)][T(466)]({error:t[T(453)],stack:t[T(457)]})}if(!D(T(494)))try{t("custom_session_id",C(),0)}catch(t){window[T(473)][T(466)]({error:t[T(453)],stack:t.stack})}function R(t){var r=T;try{return new URL(window[r(455)].href)[r(488)].get(t)||null}catch(t){window[r(473)][r(466)]({error:t.message,stack:t[r(457)]})}}function U(){let a=T;try{let t=document[a(448)][a(471)]("; "),e={};return t[a(482)](t=>{var[t,...r]=t[a(471)]("="),r=r.join("=");t&&(e[t]=decodeURIComponent(r||""))}),e}catch(t){window[a(473)][a(466)]({error:t[a(453)],stack:t.stack})}}function W(t){var r=T,e=window[r(455)][r(502)][r(449)](/^(group-buy\.(?:jp|pref\.niigata\.lg\.jp|metro\.tokyo\.lg\.jp))$/i);return(e?e[1]:null)?"https://fpp."+window.location[r(502)][r(481)](/^www\./,"")+t:(e=window[r(455)].host[r(449)](/([^.]+)\.\w{2,3}(?:\.\w{2})?$/)[0][r(481)](/^www\./,""),r(450)+e+t)}})();