https://www.vistaprint.nl/assets/ubik/web/@vp/up-reader/1.2.3/lib/web/systemjs/up-reader-CH-HMf4V.js
1System.register([],(function(s){"use strict";return{execute:(function(){s("isAvailable",v);var n={},c=n&&n.__assign||function(){return c=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++){r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},c.apply(this,arguments)};n.__esModule=!0;function a(e,r){if(!r)return"";var t="; "+e;return r===!0?t:t+"="+r}function A(e){if(typeof e.expires=="number"){var r=new Date;r.setMilliseconds(r.getMilliseconds()+e.expires*864e5),e.expires=r}return a("Expires",e.expires?e.expires.toUTCString():"")+a("Domain",e.domain)+a("Path",e.path)+a("Secure",e.secure)+a("SameSite",e.sameSite)}function u(e,r,t){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(r).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+A(t)}n.encode=u;function d(e){for(var r={},t=e?e.split("; "):[],i=/(%[\dA-F]{2})+/gi,o=0;o<t.length;o++){var h=t[o].split("="),l=h.slice(1).join("=");l.charAt(0)==='"'&&(l=l.slice(1,-1));try{var O=h[0].replace(i,decodeURIComponent);r[O]=l.replace(i,decodeURIComponent)}catch{}}return r}n.parse=d;function f(){return d(document.cookie)}n.getAll=f;function y(e){return f()[e]}n.get=y;function p(e,r,t){document.cookie=u(e,r,c({path:"/"},t))}n.set=p;function I(e,r){p(e,"",c(c({},r),{expires:-1}))}n.remove=I;const E=e=>{const r={};return decodeURIComponent(e).split(",").map(i=>i.trim()).filter(i=>i!="").forEach(i=>{const o=i.split(":");if(o.length==2&&typeof o[0]=="string"&&o[0]!=="")r[o[0]]=o[1]||"";else throw new Error("malformed puc-up cookie: "+e)}),r},w=e=>{const r=JSON.parse(decodeURIComponent(e));return r.userProfile?r.userProfile.v1?r.userProfile.v1:{}:{}},g="puc-up",m="userContext",U=s("getTrait",e=>{try{return C()[e]}catch(r){console.warn("up-reader in getTrait failed.",r)}}),_=s("getAllTraits",()=>{try{return C()}catch(e){return console.warn("up-reader in getAllTraits failed.",e),{}}}),C=()=>{const e=n.get(m);if(!e){const r=n.get(g);return r?E(r):(console.warn("up-reader: Context cookie are missing. If you are developing locally check the readme;)"),{})}return w(e)};function v(){try{return!!n.get(m)||!!n.get(g)}catch(e){return console.warn("up-reader in isAvailable failed.",e),!1}}var R=s("default",{isAvailable:v,getTrait:U,getAllTraits:_})})}})); 2//# sourceMappingURL=up-reader-CWqQ6AYs.js.map
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.