1/* Birrdi ad attribution tag. 2 * Persists Google/Meta click IDs and UTM parameters for 90 days, then forwards 3 * them to app.birrdi.com so Birrdi can report completed purchases server-side. 4 */ 5!function(){"use strict";var T=[["fbclid","birrdi_fbclid"],["gclid","birrdi_gclid"],["utm_source","birrdi_utm_source"],["utm_medium","birrdi_utm_medium"],["utm_campaign","birrdi_utm_campaign"]];function e(e,t,n){if(!n)return e;var r=-1!==e.indexOf("?")?"&":"?";return e+r+t+"="+encodeURIComponent(n)}function t(e,t){return new RegExp("[?&]"+t+"=").test(e)}function n(e,t){var n=function(e){e=e.replace(/[[]/,"\[").replace(/[]]/,"\]");var t=new RegExp("[\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].split("+").join(" "))}(e);return n?(function(e,t,n){var r="";if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; SameSite=Lax"}(t,n,90),n):function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length)}return null}(t)}function r(r){var i=r.getAttribute("href");if(i){var o=i;for(var c=0;c<T.length;c++){var d=T[c],a=n(d[0],d[1]);a&&!t(o,d[0])&&(o=e(o,d[0],a))}o!==i&&r.setAttribute("href",o)}}function i(){for(var e=document.querySelectorAll('a[href*="app.birrdi.com"]'),t=0;t<e.length;t++){var n=e[t];n.__birrdiTrackingBound?r(n):(n.__birrdiTrackingBound=!0,r(n),n.addEventListener("click",(function(e){r(e.currentTarget)})))}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i();var o=new MutationObserver((function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];if("childList"===r.type&&r.addedNodes&&r.addedNodes.length>0){t=!0;break}}t&&setTimeout(i,100)}));try{document.body&&o.observe(document.body,{childList:!0,subtree:!0})}catch(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.