1import{a8 as m,a9 as u,f as p}from"./esnext-vendor.7EcvH7tF.js";import{S as l,fA as h,a4 as b}from"./utilities-previous.DaWdZv41.js";function g(t,e){try{const a=new URL(t),o=new URL(e);return a.origin===t&&a.protocol==="https:"&&a.protocol===o.protocol&&a.port===o.port&&(a.hostname===o.hostname||a.hostname.endsWith(`.${o.hostname}`))}catch{return!1}}const x="data-special-id";function I({id:t,url:e,privileges:a,title:o,name:r,iframeSpecialId:i,onLoad:s}){const f=document.getElementById(`sandbox-${t}`);if(f&&f.tagName==="IFRAME")return f;const n=document.createElement("iframe");if(n.setAttribute("id",`sandbox-${t}`),n.setAttribute("src",e),n.setAttribute("sandbox",a.join(" ")),n.setAttribute("tabIndex","-1"),n.setAttribute("aria-hidden","true"),i&&n.setAttribute(x,i),o&&n.setAttribute("title",o),r&&n.setAttribute("name",r),n.setAttribute("style","display:none; height:0; width:0; visibility: hidden;"),y(n),s){const d=s(n);n.addEventListener("load",d,{once:!0})}return n}const c={};function L(t,e,a,o,r){const i=t.getAttribute("id");if(!i)throw Error("Endpoint cannot be created without an iframe id");o&&A(e,o);const s=`${i}-endpoint-${a}`,f=c[s];
1f&&(o?.leaveErrorBreadcrumb(`Terminating existing RPC endpoint ${s}`),f.terminate());const n=r?.isSandboxedWithNullOrigin?"*":new URL(e).origin,d=m(u(t,{targetOrigin:n}));return c[s]=d,d}function A(t,e){let a;try{a=new URL(t,window.location.href)}catch{return}const o=a.searchParams.get("shopHost");if(!o)return;const r=`https://${o}`,i=window.location.origin;g(i,r)||e.log("sandbox_parent_origin_mismatch","Sandbox shopHost does not match the parent origin",{sandbox:a.pathname,expectedOrigin:r,actualOrigin:i})}function y(t){let e=document.querySelector("#SandboxContainer");e==null&&(e=document.createElement("div"),e.setAttribute("id","SandboxContainer"),document.body.appendChild(e)),e.appendChild(t)}const P=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function S(t){return typeof t=="string"&&P.test(t)}function $(){const t=l().paymentLines;return p(()=>{const[e]=h(t.value,[b.AmazonPay]);return e})}export{x as D,y as a,L as b,I as c,A as r,$ as u,S as v};
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.