PageSourceSearch

https://www.umbra.com/cdn/shop/files/pandectes-rules.js?v=6470608164240409124

js umbra.com collected 2026-09-24 18:21:46 UTC 26,965 bytes, 1 lines download raw bytes

1if (!window.pandectesRulesSettings) {window.pandectesRulesSettings={"version":"5","timestamp":1790070903871,"store":{"id":19353632834,"plan":"enterprise","primaryLocale":"en","headless":false},"banner":{"enabled":true},"regions":{"strict":"*","visible":"*"},"storage":{"type":"http","domain":"","duration":365,"lastReset":1713298954},"gpc":{"enabled":false},"klaviyo":{"enabled":true},"customEvent":{"enabled":false},"rakuten":{"enabled":false,"cmp":false,"ccpa":false},"facebook":{"enabled":false,"id":""},"amazon":{"enabled":false},"microsoft":{"uet":{"enabled":false,"tags":""},"clarity":{"enabled":false,"id":""}},"google":{"enabled":true,"gtmId":"GTM-58RLFMF","ga4Id":"","adsId":"","gtmOnly":false,"adStorageCategory":4,"analyticsStorageCategory":2,"functionalityStorageCategory":1,"personalizationStorageCategory":1,"securityStorageCategory":0,"redactData":false,"urlPassthrough":false,"dataLayerName":"dataLayer","waitForUpdate":0,"sendPageView":true,"debugMode":false,"basicMode":false},"blocker":{"enabled":true,"scripts":{"0":[],"1":["bazaarvoice.com","curalate.com","analytics.google.com|google-analytics.com|googletagmanager.com/gtag/destination|googletagmanager.com/gtag/js?id=UA|googletagmanager.com/gtag/js?id=G","www.paypal.com","static.hotjar.com/c/hotjar"],"2":["clarity.ms","https://www.googletagmanager.com/gtm.js?id=GTM","amplitude.com"],"4":["getshogun.com","shopper.shop.pe","shop.pe","bing.com","googleads.g.doubleclick.net","facebook.net","static.klaviyo.com|www.klaviyo.com|static-tracking.klaviyo.com|a.klaviyo.com","s.pinimg.com/ct/core.js|s.pinimg.com/ct/lib","s.adroll.com/j/","googletagmanager.com/gtag/js\\?id=AW|googleadservices.com","intg.snapchat.com/shopify/shopify-scevent-init.js","tiktok.com","static.ads-twitter.com/uwt.js|static.ads-twitter.com/oct.js","intelligems.io","shgcdn3.com","getelevar.com"],"8":[]},"css":{"0":[],"1":[],"2":[],"4":[],"8":[]},"iframes":{"0":[],"1":["player.vimeo.com","www.youtube.com|www.youtube-nocookie.com"],"2":[],"4":[],"8":[]},"pixels":{"0":[],"1":[],"2":[],"4":[],"8":[]}}};var PandectesRules=function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var t=function(e){return e.http="http",e.html="html",e}({}),n=new URLSearchParams(window.location.search).get("trace")||sessionStorage.getItem("pandectes-trace")||"",o=n.split(","),r=e=>null==e;var a=e=>(t,r="debug")=>{(o.includes(e)||"*"===n)&&console[r](`[${function(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}`}()}] ${e}@pandectes → ${t}`)},i=()=>Math.floor(Date.now()/1e3),s="_pandectes_gdpr",l=a("storage");function c(e,t){const n=Number(e);return Number.isFinite(n)?n>1e11?(l(`${t} looks like milliseconds, reading it as seconds: ${n}`,"warn"),Math.floor(n/1e3)):n:(r(e)||l(`ignoring ${t}, not a usable timestamp: ${String(e)}`,"warn"),null)}var d=e=>Number(e.timestamp);function u(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch(s){return l(`could not parse a stored consent: ${String(s)}`,"warn"),null}if(!t||"object"!=typeof t)return null;const{cookieDomain:n,lastReset:o,...a}=t;if(r(a.preferences))return null;const i="string"==typeof n;return{consent:a,cookieDomain:i?n:"",lastReset:c(o,"stored lastReset"),tagged:i}}function p(){const e=function(){const e=[];let t=0;for(const n of document.cookie.split(";")){const o=n.indexOf("=");if(o<0)continue;if(n.slice(0,o).trim()!==s)continue;const r=n.slice(o+1).trim();if(!r)continue;let a;try{a=window.atob(r)}catch{l("invalid consent cookie","warn"),t+=1;continue}const i=u(a);i?e.push(i):t+=1}return{stored:e,unreadable:t}}(),t=e.stored.map(e=>({stored:e,origin:"cookie"})),n=(e=>{try{return window.localStorage.getItem(e)}catch(t){return l("localStorage is not available","warn"),null}})(s),o=u(n);let r=e.unreadable;return o?t.push({stored:o,origin:"localStorage"}):n&&(r+=1),{candidates:t,unreadable:r}}function g(e,t){const n=e.filter(e=>function(e){const t=d(e);return!!Number.isFinite(t)&&i()-t>=-86400}(e.stored.consent));return(n.length>0?n:e).reduce((e,n)=>{if(!e)return n;const o=d(n.stored.consent),r=d(e.stored.consent);return o>r||o===r&&n.origin===t&&e.origin!==t?n:e},null)}var h=e=>{if(!e)return null;const n=g(p().candidates,(e=>e.type===t.html?"localStorage":"cookie")(e));return n?function(e,t){const n=d(e.consent);if(!Number.isFinite(n))return l(`consent has no usable timestamp: ${String(e.consent.timestamp)}`,"warn"),"invalid";const o=c(t.lastReset,"lastReset");if(null!==o)if(null!==e.lastReset){if(o>e.lastReset)return"reset"}else if(n<o)return"reset";const r=Number(t.duration);if(!Number.isFinite(r)||r<=0)return l(`ignoring expiry, duration is not usable: ${String(t.duration)}`,"warn"),null;const a=i()-n;return a<-86400?(l(`consent is stamped in the future by ${-a}s, discarding`,"warn"),"invalid"):a>86400*r?"expired":null}(n.stored,e)?null:n.stored.consent:null};function m(e,t,n,o=100,r=5e3){const a=Array.isArray(t)?t:[t],i=a.map(t=>e===window&&t.startsWith("window.")?t.substring(7):t);return new Promise((s,l)=>{let c=null;if(n?.aborted)return l(new Error("Aborted"));const d=()=>{c&&clearTimeout(c),n?.removeEventListener("abort",u)},u=()=>{d(),l(new Error("Aborted"))};n?.addEventListener("abort",u,{once:!0});const p=Date.now(),g=()=>{const n=i.map(t=>function(e,t){return t?null!=e?t.replace(/\[(\d+)\]/g,".$1").replace(/\["([^"]+)"\]/g,".$1").replace(/\['([^']+)'\]/g,".$1").split(".").filter(
1Boolean).reduce((e,t)=>{if(null!=e&&("object"==typeof e||"function"==typeof e))return e[t]},e):void 0:e}(e,t));if(n.every(e=>null!=e)){d();const e=n;return s({value:Array.isArray(t)?e:e[0]})}if(Date.now()-p>=r){d();const e=a.filter((e,t)=>void 0===n[t]||null===n[t]);return l(new Error(`Property path(s) "${e.join('", "')}" not found within ${r}ms.`))}c=setTimeout(g,o)};g()})}var f=function(e){return e[e.Necessary=0]="Necessary",e[e.Preferences=1]="Preferences",e[e.Analytics=2]="Analytics",e[e.Marketing=4]="Marketing",e[e.Unclassified=8]="Unclassified",e}({}),y=function(e){return e[e.AllBlocked=f.Preferences|f.Marketing|f.Analytics]="AllBlocked",e[e.PreferencesOnlyAllowed=e.AllBlocked^f.Preferences]="PreferencesOnlyAllowed",e[e.AnalyticsOnlyAllowed=e.AllBlocked^f.Analytics]="AnalyticsOnlyAllowed",e[e.MarketingOnlyAllowed=e.AllBlocked^f.Marketing]="MarketingOnlyAllowed",e[e.PreferencesAndAnalyticsAllowed=e.AllBlocked^f.Preferences^f.Analytics]="PreferencesAndAnalyticsAllowed",e[e.PreferencesAndMarketingAllowed=e.AllBlocked^f.Preferences^f.Marketing]="PreferencesAndMarketingAllowed",e[e.AnalyticsAndMarketingAllowed=e.AllBlocked^f.Analytics^f.Marketing]="AnalyticsAndMarketingAllowed",e[e.AllAllowed=0]="AllAllowed",e}({}),w=function(e){return e.Granted="granted",e.Denied="denied",e}({}),b=(e,t)=>0===(e&t),A=e=>b(e,f.Preferences),k=e=>b(e,f.Analytics),C=e=>b(e,f.Marketing),E=function(e){return e.Optin="optin",e.Optout="optout",e}({}),v=a("amazon"),P=(e,t,n)=>{m(window,"amznConsent").then(({value:o})=>{const r=null===e?n===E.Optout:C(e);v(`permission: ${r}`),v(`country: ${t}`);const a=o();t&&2==t.length&&a.setCountryCode(t),a.setEnableAdStorage(r).setEnableUserData(r).build()}).catch(()=>{v("window.amznConsent not found","warn")})},S=e=>e.amazon.enabled??!1,_=(e,t,n,o)=>{S(e)&&((()=>{if(window.amznConsent||document.querySelector("script[data-amzn-consent]"))return;const e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://c.amazon-adsystem.com/aat/amzn-consent.js",e.dataset.amznConsent="true",document.head.appendChild(e)})(),P(t,n,o))},M=(e,t,n)=>{S(e)&&P(t,n)},B={functionality:f.Preferences,performance:f.Analytics,targeting:f.Marketing},N=Object.keys(B),O="javascript/blocked",$=class e{config;currentConsent=y.AllBlocked;scriptPatterns;linkPatterns;pixelPatterns;iframePatterns;blockedAjaxCalls=[];cookieCategoryAttribute="data-cookiecategory";mutationObserver=null;static originalCreateElement=document.createElement;static originalAppendChild=Node.prototype.appendChild;static originalInsertBefore=Node.prototype.insertBefore;static originalReplaceChild=Node.prototype.replaceChild;static originalXMLHttpReqSend=XMLHttpRequest.prototype.send;static originalXMLHttpReqOpen=XMLHttpRequest.prototype.open;static originalFetch=window.fetch.bind(window);constructor(e){this.config=e,this.scriptPatterns=e.scripts,this.linkPatterns=e.css,this.pixelPatterns=e.pixels,this.iframePatterns=e.iframes}initialize(e){this.config.enabled&&(null!==e&&(this.currentConsent=e),this.currentConsent!==y.AllAllowed&&(console.log("Blocker is running."),this.setupMutationObserver(),this.patchCreateElement(),this.patchNodeInsertionMethods()))}destroy(){this.unPatchNodeInsertionMethods(),this.unPatchCreateElement(),this.disconnectMutationObserver(),console.log("Blocker not running.")}createElement(t){return e.originalCreateElement.call(document,t)}getBlockPatterns(e){return{script:this.scriptPatterns,link:this.linkPatterns,iframe:this.iframePatterns,pixel:this.pixelPatterns}[e]}copyScriptElement(e){const t=this.createElement("script"),n=e.getAttribute("data-src")??e.getAttribute("src");return n&&(t.src=n),e.textContent&&(t.textContent=e.textContent),e.hasAttribute("nomodule")&&t.setAttribute("nomodule",""),"module"!==e.getAttribute("type")&&(t.type="text/javascript"),t}replaceWithOrAppendToBody(t,n){t.parentNode?e.originalReplaceChild.call(t.parentNode,n,t):(e.originalAppendChild.call(document.body,n),t.remove())}getBlockedScripts(){return document.querySelectorAll(`script[type="${O}"][${this.cookieCategoryAttribute}]`)}getBlockedLinks(){return document.querySelectorAll(`link[${this.cookieCategoryAttribute}]`)}getBlockedIframes(){return document.querySelectorAll(`iframe[${this.cookieCategoryAttribute}]`)}getBlockedPixels(){return document.querySelectorAll(`img[${this.cookieCategoryAttribute}]`)}getBlockedAjaxCalls(){return this.blockedAjaxCalls}unblockScriptElement(e){const t=this.copyScriptElement(e);this.replaceWithOrAppendToBody(e,t)}removeBlockStateAttributes(e){const t=this.isLinkElement(e)?"data-href":"data-src";e.removeAttribute(t),e.removeAttribute(this.cookieCategoryAttribute)}
1addBlockStateAttributes(e,t,n){const o=this.isLinkElement(e)?"data-href":"data-src";e.setAttribute(o,t),e.setAttribute(this.cookieCategoryAttribute,n?.toString())}getBlockstateUrl(e){const t=this.isLinkElement(e)?"data-href":"data-src";return e.getAttribute(t)}unblockLinkElement(e){const t=this.getBlockstateUrl(e);t&&(e.href=t),this.removeBlockStateAttributes(e)}unblockIframeElement(e){const t=this.getBlockstateUrl(e);t&&(e.src=t),this.removeBlockStateAttributes(e)}unblockImgElement(e){const t=this.getBlockstateUrl(e);t&&(e.src=t),this.removeBlockStateAttributes(e)}getAssociatedCookieCategory(e){const t=e.getAttribute(this.cookieCategoryAttribute);return t?N.includes(t)?B[t]:Number(t):f.Preferences}isLinkElement(e){return"LINK"===e.nodeName}isIframeElement(e){return"IFRAME"===e.nodeName}isImgElement(e){return"IMG"===e.nodeName}isScriptElement(e){return"SCRIPT"===e.nodeName}update(e){if(!this.config.enabled)return;this.currentConsent=e,this.getBlockedScripts().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockScriptElement(t)}),this.getBlockedLinks().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockLinkElement(t)}),this.getBlockedIframes().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockIframeElement(t)}),this.getBlockedPixels().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockImgElement(t)});const t=this.getBlockedAjaxCalls();for(let n=t.length-1;n>=0;n--){const o=t[n];b(e,o.category)&&(o.unblock(),t.splice(n,1))}}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{this.blockElement(e)})})}),this.mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})}disconnectMutationObserver(){this.mutationObserver?.disconnect()}blockElement(e){this.isScriptElement(e)?this.blockScriptElement(e):this.isLinkElement(e)?this.blockLinkElement(e):this.isIframeElement(e)?this.blockIframeElement(e):this.isImgElement(e)&&this.blockImgElement(e)}domManipulationMethods={insertBefore:{original:Node.prototype.insertBefore,proto:Node.prototype,methodName:"insertBefore",nodeArgsExtractor:e=>[e[0]]},appendChild:{original:Node.prototype.appendChild,proto:Node.prototype,methodName:"appendChild",nodeArgsExtractor:e=>[e[0]]},replaceChild:{original:Node.prototype.replaceChild,proto:Node.prototype,methodName:"replaceChild",nodeArgsExtractor:e=>[e[0]]},before:{original:Element.prototype.before,proto:Element.prototype,methodName:"before",nodeArgsExtractor:e=>[...e]},after:{original:Element.prototype.after,proto:Element.prototype,methodName:"after",nodeArgsExtractor:e=>[...e]},prepend:{original:Element.prototype.prepend,proto:Element.prototype,methodName:"prepend",nodeArgsExtractor:e=>[...e]},append:{original:Element.prototype.append,proto:Element.prototype,methodName:"append",nodeArgsExtractor:e=>[...e]},replaceChildren:{original:Element.prototype.replaceChildren,proto:Element.prototype,methodName:"replaceChildren",nodeArgsExtractor:e=>[...e]},insertAdjacentElement:{original:Element.prototype.insertAdjacentElement,proto:Element.prototype,methodName:"insertAdjacentElement",nodeArgsExtractor:e=>[e[1]]},replaceWith:{original:Element.prototype.replaceWith,proto:Element.prototype,methodName:"replaceWith",nodeArgsExtractor:e=>[...e]}};patchNodeInsertionMethods(){const e=this;Object.entries(this.domManipulationMethods).forEach(([,{original:t,proto:n,methodName:o,nodeArgsExtractor:r}])=>{try{n[o]=function(...n){return r(n).forEach(t=>
1e.blockElement(t)),t.call(this,...n)}}catch(a){console.warn(`Pandectes: could not patch ${o}.`,a)}})}unPatchNodeInsertionMethods(){Object.entries(this.domManipulationMethods).forEach(([,{original:e,proto:t,methodName:n}])=>{t[n]=e})}patchFetch(){const e=window.fetch.bind(window),t=this;window.fetch=function(n,o){const r="string"==typeof n?n:n.url,a=t.shouldBlockUrlUnderCurrentConsent(r,"script");if(!1!==a){let i,s;const l=new Promise((e,t)=>{i=e,s=t});return t.blockedAjaxCalls.push({category:a,url:r,unblock:()=>{e(n,o).then(i).catch(s)}}),l}return e(n,o)}}unPatchFetch(){window.fetch=e.originalFetch}patchXhrSend(){const e=XMLHttpRequest.prototype.send,t=XMLHttpRequest.prototype.open,n=this;XMLHttpRequest.prototype.send=function(t){const o=this,r=o._url,a=n.shouldBlockUrlUnderCurrentConsent(r,"script");if(!1===a)return e.call(this,t);n.blockedAjaxCalls.push({category:a,url:r,unblock:()=>{e.call(o,t)}})},XMLHttpRequest.prototype.open=function(e,n,...o){return this._url="string"==typeof n?n:n.toString(),t.apply(this,[e,n,...o])}}patchCreateElement(){const t=this,n=(n,o)=>{const r=e.originalCreateElement.call(document,n,o);if("script"===n.toLowerCase()){const e=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");e&&e.set&&Object.defineProperty(r,"src",{set(n){const o=t.shouldBlockUrlUnderCurrentConsent(n,"script");if(o)return this.type=O,void t.addBlockStateAttributes(this,n,o);e.set?.call(this,n)},get:e.get})}return r};try{Object.defineProperty(document,"createElement",{value:n,writable:!0,configurable:!0})}catch(o){console.warn("Pandectes: could not patch document.createElement; relying on MutationObserver for blocking.",o)}}unPatchCreateElement(){try{Object.defineProperty(document,"createElement",{value:e.originalCreateElement,writable:!0,configurable:!0})}catch{}}blockScriptElement(e){const t=e.src||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"script");n&&t.length&&(e.type=O,e.async=!1,e.removeAttribute("src"),this.addBlockStateAttributes(e,t,n))}blockLinkElement(e){if("stylesheet"!==e.rel)return;const t=e.href||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"link");n&&(e.removeAttribute("href"),this.addBlockStateAttributes(e,t,n))}blockIframeElement(e){const t=e.src||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"iframe");n&&(e.removeAttribute("src"),this.addBlockStateAttributes(e,t,n))}blockImgElement(e){const t=e.src||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"pixel");n&&(e.removeAttribute("src"),this.addBlockStateAttributes(e,t,n))}urlMatchesPattern(e,t){return e.toString().match(t)}urlMatchesCategoryPattern(e,t,n){return this.getBlockPatterns(t)[n].some(t=>this.urlMatchesPattern(e,t))}shouldBlockUrlUnderCurrentConsent(e,t){return[f.Preferences,f.Analytics,f.Marketing].find(n=>{const o=b(this.currentConsent,n),r=this.urlMatchesCategoryPattern(e,t,n);return!o&&r})||!1}},L=a("facebook"),j=e=>e.facebook.enabled??!1,x=(e,t,n)=>{if(!j(e))return;var o,r,a,i,s,l;o=window,r=document,a="script",o.fbq||(i=o.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)},o._fbq||(o._fbq=i),i.push=i,i.loaded=!0,i.version="2.0",i.queue=[],(s=r.createElement(a)).async=!0,s.src="https://connect.facebook.net/en_US/fbevents.js",(l=r.getElementsByTagName(a)[0]).parentNode.insertBefore(s,l));const c="undefined"!=typeof navigator&&!!navigator.globalPrivacyControl,d=null===t?n===E.Optout:C(t);L(`granted: ${d}`),m(window,"fbq").then(({value:t})=>{t("consent",d?"grant":"revoke"),e.facebook.id?.length&&t("init",e.facebook.id),c&&t("dataProcessingOptions",["LDU"],0,0),d&&t("track","PageView")}).catch(()=>{L("window.fbq not found","warn")})},q=(e,t)=>{if(!j(e))return;const n=C(t);L(`granted: ${n}`),m(window,"fbq").then(({value:e})=>{e("consent",n?"grant":"revoke")}).catch(()=>{L("window.fbq not found","warn")})},I=e=>{const t=document.createElement("script");t.async=!0,t.type="text/javascript",t.src=e,document.head.appendChild(t)},D=function(e){return e.basic="basic",e.plus="plus",e.premium="premium",e.enterprise="enterprise",e}({}),U="[Pandectes :: Google Consent Mode debug]:";function z(e){const{ad_storage:t,ad_user_data:n,ad_personalization:o,functionality_storage:r,analytics_storage:a,personalization_storage:i}=e;return"denied"===t&&"denied"===n&&"denied"===o&&"denied"===r&&"denied"===a&&"denied"===i}function G(e){return Array.isArray(e)?e.length>0:null!=e}function R(e){return Array.isArray(e)?e.join(", "):String(e)}var T=e=>{const t=e[0],n=e[1],o=e[2];if("consent"!==t)return"config"===t?"config":void 0;const{ad_storage:r,ad_user_data:a,ad_personalization:i,functionality_storage:s,analytics_storage:l,personalization_storage:c,security_storage:d,region:u}=o,p={Command:t,Mode:n,...G(u)?{region:R(u)}:{},ad_storage:r,ad_user_data:a,ad_personalization:i,functionality_storage:s,analytics_storage:l,personalization_storage:c,security_storage:d};return console.table(p),"default"===n&&(G(u)&&z(o)?X=!0:z(o)||X||console.warn(`${U} all types in a "default" command should be set to "denied" except for security_storage that should be set to "granted"`)),n},F=!1,H=!1,X=!1;function W(e){e&&("default"===e?(F=!0,H&&console.warn(`${U} "default" command was sent but there was already an "update" command before it.`)):"update"===e?(H=!0,F||console.warn(`${U} "update" command was sent but there was no "default" command before it.`)):"config"===e&&(F||console.warn(`${U}
1 a tag read consent state before a default was set (late consent signal). This often happens if Google Tag Gateway has been adopted. To verify visit https://help.pandectes.io/en/article/google-tag-gateway-gtg-and-consent-cl8mqk/.`)))}function J(e){window[e].forEach(e=>{W(T(e))}),window[e].push=function(...e){var t;return t=e[0],"[object Arguments]"===Object.prototype.toString.call(t)&&W(T(e[0])),Array.prototype.push.apply(this,e)}}var V="https://www.googletagmanager.com",K=a("gcm"),Y=e=>{const t=e?.trim();return t||"dataLayer"},Z=!1,Q=e=>A(e)||k(e)||C(e),ee=(e,t)=>{const{securityStorageCategory:n,functionalityStorageCategory:o,analyticsStorageCategory:r,adStorageCategory:a}=e,i={[f.Necessary]:w.Granted,[f.Preferences]:A(t)?w.Granted:w.Denied,[f.Analytics]:k(t)?w.Granted:w.Denied,[f.Marketing]:C(t)?w.Granted:w.Denied,[f.Unclassified]:w.Denied};return{security_storage:i[n],functionality_storage:i[o],personalization_storage:i[o],analytics_storage:i[r],ad_storage:i[a],ad_user_data:i[a],ad_personalization:i[a]}},te=(e,t)=>{if(t.length){const n=t.split(",");for(let t=0;t<n.length;t++){const o="dataLayer"!==e?`&l=${e}`:"";I(`${V}/gtm.js?id=${n[t].trim()}${o}`),K("loading GTM with ID: '"+n[t].trim()+"'")}}},ne=(e,t,n)=>{if(e.length){const o=e.split(",");for(let e=0;e<o.length;e++){const r=o[e].trim();r.length&&(I(`${V}/gtag/js?id=${r}`),K("loading GA4 property: '"+r+"'"),window.gtag("config",r,{debug_mode:t,send_page_view:n}))}}},oe=e=>{if(e.length){const t=e.split(",");for(let e=0;e<t.length;e++){const n=t[e].trim();n.length&&(I(`${V}/gtag/js?id=${n}`),K("loading AW property: '"+n+"'"),window.gtag("config",n,{allow_enhanced_conversions:!0}))}}},re=(e,t)=>{const{google:n}=e,{enabled:o,basicMode:r,gtmOnly:a}=n,{store:{plan:i}}=e;if(((e,t,n)=>{null!==t&&m(window,"pandectesConsentListeners").then(({value:n})=>{e!==D.basic?n.forEach(e=>{const n={preferences:t,consentType:"new"};K("pandectesConsentListeners: "+JSON.stringify(n)),e(n)}):console.warn("%c Pandectes: Upgrade your plan to use Pandectes CMP Template for Google Tag Manager","background: orange; color: black; font-weight: bold")}).catch(e=>{n&&console.warn(e+" Check that you have loaded the Pandectes CMP Template for Google Tag Manager correctly.")})})(i,t,a),o&&!a&&(window.gtag("consent","update",ee(n,t)),r&&!Z&&Q(t))){const{gtmId:e="",ga4Id:t="",adsId:o="",debugMode:r=!1,sendPageView:a=!0,dataLayerName:i}=n,s=Y(i);window.gtag("js",new Date),te(s,e),ne(t,r,a),oe(o),Z=!0}},ae=a("klaviyo"),ie=(e,t,n)=>{if(!(e=>e.klaviyo.enabled??!1)(e))return;const o=null===t?n===E.Optin?w.Denied:w.Granted:C(t)?w.Granted:w.Denied;ae(`permission: ${o}`),m(window,"klaviyo").then(({value:e})=>{e.push(["identify",{ad_personalization:o,ad_user_data:o}])}).catch(()=>{ae("Klaviyo object not found on window","warn")})},se=ie,le=ie,ce=a("clarity"),de=e=>e.microsoft?.clarity?.enabled??!1,ue=(e,t,n)=>{if(!de(e))return;const o=null===t?{source:162,ad_Storage:n===E.Optin?w.Denied:w.Granted,analytics_Storage:n===E.Optin?w.Denied:w.Granted}:{source:162,ad_Storage:C(t)?w.Granted:w.Denied,analytics_Storage:k(t)?w.Granted:w.Denied};ce(`signal: ${JSON.stringify(o)}`),window.clarity||(window.clarity=(...e)=>{(window.clarity.q=window.clarity.q||[]).push(e)}),window.clarity("consentv2",o)},pe=(e,t,n)=>{var o,r,a,i,s,l,c,d;de(e)&&(e.microsoft?.clarity?.id?(o=e.microsoft.clarity.id,document.querySelector("script[data-clarity-tag]")||o.length&&(r=window,a=document,s="script",l=o,r[i="clarity"]=r[i]||function(){(r[i].q=r[i].q||[]).push(arguments)},(c=a.createElement(s)).async=1,c.src="https://www.clarity.ms/tag/"+l,c.dataset.clarityTag="true",(d=a.getElementsByTagName(s)[0]).parentNode.insertBefore(c,d)),ue(e,t,n)):ce("Microsoft Clarity id missing","warn"))},ge=ue,he=a("uet"),me=e=>{const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="//bat.bing.com/bat.js",t.onload=function(){window.uetq=new UET({ti:e,q:window.uetq}),window.uetq.push("pageLoad")},document.head.appendChild(t)},fe=(e,t,n)=>{const o=null===e?n===E.Optin?w.Denied:w.Granted:C(e)?w.Granted:w.Denied;he(`ad_storage: ${o} / ${t}`),window.uetq.push("consent",t,{ad_storage:o})},ye=(e,t)=>{e.microsoft.uet.enabled&&fe(t,"update")}
1,we="Pandectes_Consent_Update",be=a("customEvent"),Ae=(e,t,n)=>{let o,r;null!==e?(r=t?"new":"stored",o=e===y.AllBlocked?"deny":e===y.AllAllowed?"allow":"mixed"):(e=n===E.Optin?y.AllBlocked:y.AllAllowed,o=n===E.Optin?"deny":"allow",r="default");const a={event:we,pandectes_action:r,pandectes_status:o,pandectes_categories:{C0000:"allow",C0001:A(e)?"allow":"deny",C0002:k(e)?"allow":"deny",C0003:C(e)?"allow":"deny"}};return be(JSON.stringify(a)),a},ke=e=>{m(window,"Shopify.analytics").then(({value:t})=>{t?.publish(we,e)}).catch(()=>{be("Shopify.analytics object not found on window","warn")})},Ce=e=>e.customEvent.enabled??!1,Ee=(e,t)=>{const n=Ae(t,!0,null);ke(n),Ce(e)&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(n))},ve=a("rakuten"),Pe=navigator.globalPrivacyControl,Se=(e,t,n)=>{const{rakuten:{enabled:o,cmp:r,ccpa:a}}=e;if(!o)return;const i=null!==t?C(t)?w.Granted:w.Denied:n===E.Optin?w.Denied:w.Granted;ve(`permission: ${i}`);const s=Pe?"N":"Y",l=i===w.Granted?"Y":"N";a&&(window.__rmuspc=s+l),r&&(window.__rmcp2=i===w.Granted?[1,2,3,4,5,6,7,8,9,10]:[])},_e=Se,Me=Se,Be=function(e){return e.DialogOpened="PandectesDialogOpened",e.DialogClosed="PandectesDialogClosed",e.ButtonClicked="PandectesButtonClicked",e.Consent="PandectesConsentUpdate",e.ConsentLegacy="PandectesConsentUpdateLegacy",e.Api="PandectesApi",e.Initialized="PandectesInitialized",e}({});function Ne(e){const{storage:t,banner:{enabled:n}}=e,o=h(t)?.preferences??null;if(n){const t=new $(e.blocker);try{t.initialize(o)}catch(r){console.error("pandectes-rules: blocker failed to initialize",r)}((e,t)=>{const{google:n}=e,{regions:{strict:o,visible:r}}=e,{enabled:a,basicMode:i=!1,debugMode:s=!1,gtmOnly:l=!1,redactData:c=!1,urlPassthrough:d=!1,gtmId:u="",ga4Id:p="",adsId:g="",waitForUpdate:h=500,sendPageView:m=!0,dataLayerName:f}=n;if(!a)return;const w=Y(f);if(window.gtag=function(...e){window[w].push(arguments)},window[w]=window[w]||[],s&&J(w),l)return window.gtag("js",new Date),void te(w,u);const b={"developer_id.dMTZkMj":!0,...c?{ads_data_redaction:!0}:{},...d?{url_passthrough:!0}:{}};window.gtag("set",b),"*"===o||"object"==typeof o&&o.length===r.length?window.gtag("consent","default",{...ee(n,y.AllBlocked),wait_for_update:h}):(o.length&&window.gtag("consent","default",{...ee(n,y.AllBlocked),wait_for_update:h,region:o.map(e=>2===e.length?e:4===e.length?e.slice(0,2)+"-"+e.slice(2,4):void 0)}),window.gtag("consent","default",{...ee(n,y.AllAllowed),wait_for_update:h})),null!==t&&window.gtag("consent","update",ee(n,t)),(!i||null!==t&&Q(t))&&(window.gtag("js",new Date),te(w,u),ne(p,s,m),oe(g),Z=!0)})(e,o),window.addEventListener(Be.Initialized,n=>{const{detail:{policy:r,region:a,banner:i}}=n;i?(((e,t,n)=>{const o=Ae(t,!1,n);ke(o),Ce(e)&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(o))})(e,o,r),x(e,o,r),pe(e,o,r),((e,t,n)=>{e.microsoft.uet.enabled&&(window.uetq=window.uetq||[],fe(t,"default",n),e.microsoft.uet.tags.split(",").forEach(me))})(e,o,r),se(e,o,r),_e(e,o,r),_(e,o,a,r),null===o?r===E.Optin?t.update(y.AllBlocked):t.update(y.AllAllowed):t.update(o)):(t.update(y.AllAllowed),t.destroy(),re(e,y.AllAllowed),q(e,y.AllAllowed),M(e,y.AllAllowed,a),ye(e,y.AllAllowed),ge(e,y.AllAllowed),Me(e,y.AllAllowed),le(e,y.AllAllowed),Ee(e,y.AllAllowed))}),window.addEventListener(Be.ConsentLegacy,n=>{const{detail:o}=n,r=o?.preferences??null,a=o?.country&&o.country.code||"";t.update(r),re(e,r),q(e,r),M(e,r,a),ye(e,r),ge(e,r),Me(e,r),le(e,r),Ee(e,r)})}}return m(window,"pandectesRulesSettings").then(({value:e})=>Ne(e)).catch(e=>{(e instanceof Error?e.message:String(e)).includes("pandectesRulesSettings")?console.error("pandectes-rules: could not find pandectesRulesSettings",e):console.error("pandectes-rules: failed to initialize",e)}),e.initialize=Ne,e}({});}

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.