1(()=>{"use strict";function t(t){const e=("; "+document.cookie).split("; "+t+"=");return 2===e.length?e.pop().split(";").shift():""}function e(t){document.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"}!function(){if(window.gtm4wp_visitordata_inited)return;window.gtm4wp_visitordata_inited=!0;const n=window.gtm4wp_visitordata_config||{fields:{}},o=window.gtm4wp_datalayer_name||"dataLayer",r=n.fields||{};function i(t,e){const o=n.events;if(o&&"object"==typeof o){const e=o[t];if("string"==typeof e&&""!==e)return e}return"visitor"===t&&"string"==typeof n.event&&""!==n.event?n.event:e}const c=i("visitor","gtm4wp.visitorData"),s=i("customer","gtm4wp.customerData"),a=i("cart","gtm4wp.cartData");let f=n.nonce||"";function u(){return window[o]=window[o]||[],window[o]}const d={};function p(t){t&&"object"==typeof t&&Object.keys(t).forEach(function(e){d[e]=t[e]})}function l(t,e){if("string"!=typeof t||""===t)return;if(!e||"object"!=typeof e)return;const n=Object.keys(e);if(!n.length)return;const o={};n.forEach(function(t){o[t]=e[t]}),o.event=t,u().push(o)}const g={searchTerm(){try{return new URLSearchParams(window.location.search).get("s")||""}catch(t){return""}},searchReferrer(){const t=document.referrer||"";if(""===t)return"";const e=t.split("?");return e.length<2?t:e[0]+"?"+encodeURIComponent(e[1])}},y="gtm4wp_orderid_tracked",h="gtm4wp_readded_to_cart";function w(){if(!window.localStorage)return[];try{const t=JSON.parse(window.localStorage.getItem(h)||"[]");return Array.isArray(t)?t:[]}catch(t){return[]}}function m(t){if(t)try{if("function"==typeof fetch){const e={};f&&(e["X-WP-Nonce"]=f);const n=fetch(t,{method:"POST",credentials:"same-origin",keepalive:!0,headers:e});return void(n&&"function"==typeof n.catch&&n.catch(function(){}))}if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon){const e=-1===t.indexOf("?")?"?":"&";navigator.sendBeacon(f?t+e+"_wpnonce="+encodeURIComponent(f):t)}}catch(t){}}const v={pendingPurchase:function(e,n){if(!e||"object"!=typeof e||!e.push)return;const o=void 0===e.orderNumber||null===e.orderNumber?"":String(e.orderNumber),r=!1!==e.flag;r&&o&&function(){if(!window.localStorage)return t(y);try{return window.localStorage.getItem(y)||""}catch(e){return t(y)}}()===o||(u().push(e.push),r&&o&&function(t){if(window.localStorage)try{return void window.localStorage.setItem(y,t)}catch(t){}!function(t,e,n,o=!1){const r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),document.cookie=t+"="+e+";expires="+r.toUTCString()+";path=/"+(o?";SameSite=Lax":"")}(y,t,365)}(o),r&&n&&m(n))},readdedToCart:function(t,e){if(!t||"object"!=typeof t||!t.push)return;const n=void 0===t.token||null===t.token?"":String(t.token);n&&-1!==w().indexOf(n)||(u().push(t.push),n&&function(t){if(!window.localStorage)return;const e=w();if(-1===e.indexOf(t)){for(e.push(t);e.length>20;)e.shift();try{window.localStorage.setItem(h,JSON.stringify(e))}catch(t){}}}(n),e&&m(e))}};function S(){const t=document.querySelector(".gtm4wp-wc-visitor-data");return t&&t.getAttribute("data-gtm4wp-visitor-cart")||null}let b=null,k=null;function O(t,e,n){if(!t||"object"!=typeof t||Array.isArray(t))return n;let o;try{o=JSON.stringify(t)}catch(t){return n}return o===n?n:(l(e,t),o)}function j(t){const e=function(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch(t){return null}return!e||"object"!=typeof e||Array.isArray(e)?null:e}(t);e&&(b=O(e.customer,s,b),k=O(e.cart,a,k))}Object.keys(r).forEach(function(t){const e=g[r[t]];if("function"!=typeof e)return;const n=e();""!==n&&null!=n&&(d[t]=n)}),function(o){if(!n.endpoint||!function(){try{const t="__gtm4wp_vd_probe";return window.sessionStorage.setItem(t,"1"),window.sessionStorage.removeItem(t),!0}catch(t){return!1}}())return void o();const r=n.sessionKey||"gtm4wp_visitor_session",i=Array.isArray(n.session)?n.session:[],c=Array.isArray(n.gates)?n.gates:[],s=Array.isArray(n.actions)?n.actions:[],a={},u={};let d;s.forEach(function(t){const e=t.confirm||{};(t.keys||[]).forEach(function(t){a[t]=!0,e[t]&&(u[t]=e[t])})});try{d=JSON.parse(window.sessionStorage.getItem(r)||"{}")}catch(t){d={}}d&&"object"==typeof d||(d={}),d.gates&&"object"==typeof d.gates||(d.gates={});let l=!1,g=!1;const y={},h=[];i.length&&(d.session&&"object"==typeof d.session?Object.assign(y,d.session):l=!0),c.forEac
1h(function(e){const n=t(e.cookie);if(n){h.push({cookie:e.cookie,value:n});const t=d.gates[e.cookie];t&&t.v===n&&t.data&&"object"==typeof t.data?Object.assign(y,t.data):l=!0}else d.gates[e.cookie]&&(delete d.gates[e.cookie],g=!0)});const w=[];if(s.forEach(function(e){t(e.cookie)&&(-1===w.indexOf(e.cookie)&&w.push(e.cookie),l=!0)}),!l){if(g)try{window.sessionStorage.setItem(r,JSON.stringify(d))}catch(t){}return p(y),void o()}if("function"!=typeof fetch)return void o();const m={Accept:"application/json"};n.nonce&&h.length&&(m["X-WP-Nonce"]=n.nonce),fetch(n.endpoint,{credentials:"same-origin",headers:m}).then(function(t){return t&&t.ok?t.json():null}).then(function(t){if(!t||"string"!=typeof t.payload)return;let n;"string"==typeof t.nonce&&t.nonce&&(f=t.nonce);try{n=JSON.parse(t.payload)}catch(t){return}if(!n||"object"!=typeof n)return;const o={gates:{}};i.length&&(o.session={},i.forEach(function(t){t in n&&(o.session[t]=n[t])})),c.forEach(function(t){const e=h.filter(function(e){return e.cookie===t.cookie})[0];if(!e)return;const r={};(t.keys||[]).forEach(function(t){t in n&&(r[t]=n[t])}),o.gates[t.cookie]={v:e.value,data:r}});try{window.sessionStorage.setItem(r,JSON.stringify(o))}catch(t){}Object.keys(a).forEach(function(t){if(t in n){const e=v[t];"function"==typeof e&&e(n[t],u[t]),delete n[t]}}
1),w.forEach(e),p(n)}).catch(function(){}).then(o)}(function(){l(c,d),j(S()),window.MutationObserver&&document.body&&document.querySelector(".gtm4wp-wc-visitor-data")&&new window.MutationObserver(function(){j(S())}).observe(document.body,{childList:!0,subtree:!0})})}()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.