1const y={loadWidget(e){const m=["destination","project","reporter","customShimUrl","customData","silent","source","ssr","extension","keyboardShortcuts","beta","demo"];Object.keys(e).forEach(o=>{m.includes(o)||console.warn('(Marker.io SDK) unknown param "'+o+'" (need to upgrade?)')});const{reporter:p,customData:a,silent:d,ssr:u,extension:s,keyboardShortcuts:b,beta:l,demo:w}=e,f=e.project||e.destination;if(typeof f!="string")throw new Error("project must be a string");if("customData"in e&&typeof a!="object")throw new Error("customData must be an object");if("silent"in e&&typeof d!="boolean")throw new Error("silent must be a boolean");if("ssr"in e&&typeof u!="object")throw new Error("ssr must be a boolean");if("extension"in e&&typeof s!="boolean"&&typeof s!="object")throw new Error("extension must be a boolean/object");if("beta"in e&&typeof l!="object")throw new Error("extension must be a boolean/object");if("keyboardShortcuts"in e&&typeof b!="boolean")throw new Error("keyboardShortcuts must be a boolean");if("demo"in e&&typeof w!="boolean")throw new Error("demo must be a boolean/object");window.Marker&&window.Marker.unload(),window.markerConfig={project:f,reporter:p,customData:a,silent:d,ssr:u,extension:s,keyboardShortcuts:b,beta:l,demo:w,source:"browser-sdk"};const h=[],n={__cs:h};for(const o of["show","hide","isVisible","capture","cancelCapture","unload","reload","isExtensionInstalled","setReporter","setCustomData","on","off"])n[o]=function(){const r=Array.prototype.slice.call(arguments);r.unshift(o),h.push(r)};window.Marker=n;const t=document.createElement("script");t.async=!0,t.src=e.customShimUrl||"https://edge.marker.io/latest/shim.js";const i=document.getElementsByTagName("script")[0];return i.parentNode?i.parentNode.insertBefore(t,i):(document.body||document.head).appendChild(t),new Promise((o,r)=>{n.on("load",()=>{o(window.Marker)}),n.on("loaderror",c=>{r(c)}),t.onerror=c=>r(c)})}};export{y as default};
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.