1const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,u=/^[A-Za-z0-9_-]{1,32}$/,l="plink_1O2m02Ket0RLQ5355VOKbuRq",h="wa_download_daily_pass_1d",a=Object.freeze({download:Object.freeze({extensionType:1}),easySender:Object.freeze({extensionType:0})});function p(e){const t=`${e||""}`.trim();return t&&t!==h?t:l}function o(e){return`${(Array.isArray(e)?e[0]:e)||""}`.trim()}function c(e){if(typeof e>"u")return"card";if(e==="card"||e==="local")return e;throw new Error("Unsupported payment method.")}function _(e){const t=o(e.transaction_id);if(t)return{kind:"prepared",transactionId:t};const r=o(e.price_id);if(r)try{return{kind:"email",priceId:r,paymentMethod:c(e.payment_method)}}catch{return{kind:"invalid"}}return{kind:"invalid"}}function i(e){const t=e?.extensionType;if(t!==0&&t!==1)throw new Error("Unsupported checkout product.");return t}function w(e,t=a.download){const r=e.trim();if(!u.test(r))throw new Error("Invalid checkout transaction.");return{currency:"usd",payment_method:"card",metadata:{extension_type:i(t),transaction_id:r}}}function y(e,t=a.download){const r=e.email.trim().toLowerCase();if(r.length>254||!s.test(r))throw new Error("Enter a valid email address.");const n=e.priceId.trim();if(!n)throw new Error("Choose a plan before continuing.");const d=i(t);return{currency:"usd",payment_method:c(e.paymentMethod),metadata:{extension_type:d,price_id:n,email:r,whatsapp_number:`${e.whatsappNumber||""}`.trim(),extension_id:`${e.extensionId||""}`.trim()}}}function f(e){if(e?.code!==1e5){const r=e?.message||e?.data?.message;throw new Error(r||"The payment page could not be created.")}const t=(e.data?.checkout_url||e.data?.url||e.checkout_url||e.url||"").trim();try{if(new URL(t).protocol!=="https:")throw new Error("invalid protocol")}catch{throw new Error("The server did not return a secure checkout URL.")}return t}function E(e){let t=null;return(...r)=>t||(t=Promise.resolve().then(()=>e(...r)).catch(n=>{throw t=null,n}),t)}export{a as C,y as a,w as b,E as c,c as d,p as e,f as g,_ as r};
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.