1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,823256,118153,937814,e=>{"use strict";let t,r,n,i,o,a,s;var l,d=e.i(796747),c=e.i(121678),u=e.i(832356);let f=u.z.string().regex(/^[a-z0-9_]{1,64}$/),h=u.z.object({id:u.z.string().uuid(),name:f,occurredAt:u.z.string().datetime({offset:!0}),deviceId:u.z.string().min(1).max(64),surface:u.z.string().regex(/^[a-z0-9_]{1,32}$/).default("web"),appVersion:u.z.string().max(32).default(""),browser:u.z.string().max(64).default(""),browserVersion:u.z.string().max(32).default(""),os:u.z.string().max(64).default(""),osVersion:u.z.string().max(32).default(""),locale:u.z.string().max(32).default(""),timezone:u.z.string().max(64).default(""),timezoneOffsetMinutes:u.z.number().int().min(-840).max(840).default(0),pathname:u.z.string().max(512).default(""),referrer:u.z.string().max(1024).default(""),utmSource:u.z.string().max(256).default(""),utmMedium:u.z.string().max(256).default(""),utmCampaign:u.z.string().max(256).default(""),utmTerm:u.z.string().max(256).default(""),utmContent:u.z.string().max(256).default(""),flags:u.z.record(u.z.string().max(64)).default({}),properties:u.z.record(u.z.unknown()).nullish()});function m(e,t){return e.match(t)?.[1]??""}u.z.object({events:u.z.array(h).min(1).max(50)});let g="/relay/e",p="jamie_device_id",w="meetjamie.ai",x=new Set(["meetjamie.ai","www.meetjamie.ai","app.meetjamie.ai"]),E=/^[0-9a-f-]{36}$/i;function C(){let{hostname:e}=window.location;return x.has(e)?"shared":e.endsWith(`.${w}`)?"none":"host"}function v(e,t){let r=C();if("none"===r)return;let n="shared"===r?`; Domain=${w}`:"",i="https:"===window.location.protocol?"; Secure":"";document.cookie=`${p}=${encodeURIComponent(e)}; Path=/; Max-Age=${t}; SameSite=Lax${n}${i}`}function y({preferShared:e,fallback:t}){let r=function(){if("none"===C())return"";let e=`${p}=`,t=document.cookie.split("; ").find(t=>t.startsWith(e)),r=t?decodeURIComponent(t.slice(e.length)):"";return E.test(r)?r:""}(),n=function(){try{return window.localStorage.getItem(p)??""}catch{return""}}(),i=(e?r||n:n||r)||t||crypto.randomUUID();try{window.localStorage.setItem(p,i)}catch{}return v(i,34128e3),i}let A="",_="",M=(r=(l={getAppContext:()=>({surface:"marketing",appVersion:""}),getDeviceId:function(){return A||(_||(_=crypto.randomUUID()),_)}}).getDeviceId??(t="",()=>(t||(t=y({preferShared:!1})),t)),n=[],i=null,o={},a=(e,t)=>{let r=JSON.stringify({events:e});if(t&&navigator.sendBeacon){let e=new Blob([r],{type:"application/json"});if(navigator.sendBeacon(g,e))return}fetch(g,{method:"POST",keepalive:!0,headers:{"content-type":"application/json"},body:r}).catch(()=>{n=[...e,...n]})},s=(e=!1)=>{for(i&&(clearTimeout(i),i=null);n.length>0;){let t=n.slice(0,50);n=n.slice(t.length),a(t,e)}},window.addEventListener("pagehide",()=>s(!0)),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&s(!0)}),{track:(e,t)=>{let a,d,c,u;(n.push({id:crypto.randomUUID(),name:e,occurredAt:new Date().toISOString(),deviceId:r(),...l.getAppContext(),...(d=function(e){let t=m(e,/Edg(?:A|iOS)?\/([\d.]+)/);if(t)return{browser:"Edge",browserVersion:t};let r=m(e,/(?:OPR|Opera)\/([\d.]+)/);if(r)return{browser:"Opera",browserVersion:r};let n=m(e,/(?:Firefox|FxiOS)\/([\d.]+)/);if(n)return{browser:"Firefox",browserVersion:n};let i=m(e,/(?:Chrome|CriOS)\/([\d.]+)/);if(i)return{browser:"Chrome",browserVersion:i};let o=m(e,/Version\/([\d.]+).*Safari/);return o?{browser:"Safari",browserVersion:o}:{browser:"",browserVersion:""}}(a=navigator.userAgent),c=function(e){let t=m(e,/Windows NT ([\d.]+)/);if(t)return{os:"Windows",osVersion:t};let r=m(e,/Android ([\d.]+)/);if(r)return{os:"Android",osVersion:r};let n=m(e,/(?:CPU (?:iPhone )?OS|iPhone OS) ([\d_]+)/);if(n)return{os:"iOS",osVersion:n.replaceAll("_",".")};let i=m(e,/Mac OS X ([\d_]+)/);if(i)return{os:"macOS",osVersion:i.replaceAll("_",".")};let o=m(e,/CrOS [^ )]+ ([\d.]+)/);return o?{os:"Chrome OS",osVersion:o}:e.includes("Linux")?{os:"Linux",osVersion:""}:{os:"",osVersion:""}}(a),{...d,...c,locale:navigator.language??"",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return""}}(),timezoneOffsetMinutes:new Date().getTimezoneOffset()}),pathname:window.location.pathname,referrer:document.referrer,...{utmSource:(u=new URLSearchParams(window.location.search)).get("utm_source")??"",utmMedium:u.get("utm_medium")??"",utmCampaign:u.get("utm_campaign")??"",utmTerm:u.get("utm_term")??"",utmContent:u.get("utm_content")??""},flags:o,properties:t??null}),n.length>=20)?s():i||(i=setTimeout(()=>
1{i=null,s()},1e4))},flush:s,setFlags:e=>{o=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,String(t)]))}});e.s(["marketingAnalytics",0,M,"setMarketingAnalyticsConsent",0,function(e){if("pending"!==e){if("denied"===e){A="";try{window.localStorage.removeItem(p)}catch{}v("",0);return}A||(A=y({preferShared:!0,fallback:_}))}}],118153);let P="ai-in-deal-teams-2026";function b({companyType:e,role:t,email:r,marketingConsent:n}){let i=r.split("@")[1]?.toLowerCase();return{report_id:P,company_type:e,role:t,marketing_consent:n,...i&&{email_domain:i}}}function N(e,t){M.track(e,t)}e.s(["trackReportDownloaded",0,function(e){var t;t=b(e),M.track("ai_report_downloaded",t),M.flush()},"trackReportFormFailed",0,function(e,t){N("ai_report_form_failed",{...b(e),reason:t})},"trackReportFormInvalid",0,function(e){N("ai_report_form_invalid",{report_id:P,invalid_fields:e,invalid_field_count:e.length})},"trackReportFormStarted",0,function(){N("ai_report_form_started",{report_id:P})},"trackReportFormSubmitted",0,function(e){N("ai_report_form_submitted",b(e))},"trackReportReady",0,function(e){N("ai_report_ready",b(e))}],937814);let O=!1;e.s(["setAdPixelConsent",0,function(e){e!==O&&(O=e,(0,c.setOpenAiPixelConsent)(e))},"trackAdPixelDemoBooked",0,function(e){O&&(0,c.trackOpenAiPixelAppointment)(e)},"trackAdPixelLead",0,function(){O&&(0,c.trackOpenAiPixelLead)()},"trackAdPixelPageView",0,function(e){if(O){if("function"==typeof window.fbq)try{window.fbq("track","PageView")}catch(e){console.error("[Meta Pixel] Failed to track page view:",e)}(0,c.trackOpenAiPixelPageView)(e)}},"trackConsentDecision",0,function(e,t){M.track(e,t),M.flush()},"trackDownload",0,function(e){let{platform:t,device:r,url:n,source:i}=e;if(O){let e=d.env.NEXT_PUBLIC_GOOGLE_ADS_ID,t=d.env.NEXT_PUBLIC_GOOGLE_ADS_DOWNLOAD_LABEL;if(e&&t){var o=`${e}/${t}`;if("function"==typeof window.gtag)try{window.gtag("event","conversion",{send_to:o,...void 0})}catch(e){console.error("[GoogleAds] Failed to track conversion:",e)}}(0,c.trackOpenAiPixelDownload)()}M.track("download_initiated",{platform:t,device:r,...n&&{url:n},...i&&{source:i}}),M.flush()},"trackPageView",0,function(e){M.track("page_viewed",{consent:e})}],823256)},121678,e=>{"use strict";function t(...e){if("function"==typeof window.oaiq)try{window.oaiq("measure",...e)}catch(e){console.error("[OpenAI Pixel] Failed to measure event:",e)}}e.s(["OPENAI_PIXEL_ID",0,"FbgR71uAcXWqT2PffRcA3t","setOpenAiPixelConsent",0,function(e){if("function"==typeof window.oaiq)try{window.oaiq("consent",e)}catch(e){console.error("[OpenAI Pixel] Failed to set consent:",e)}},"trackOpenAiPixelAppointment",0,function(e){t("appointment_scheduled",{type:"customer_action"},...e?[{event_id:e}]:[])},"trackOpenAiPixelDownload",0,function(){t("trial_started",{type:"plan_enrollment",plan_id:"free"})},"trackOpenAiPixelLead",0,function(){t("lead_created",{type:"customer_action"})},"trackOpenAiPixelPageView",0,function(e){t("page_viewed",{type:"contents",contents:[{id:e,name:e,content_type:"page"}]})}])},702788,e=>{"use strict";var t=e.i(796747),r=e.i(595394);function n(){let e=window.navigator.userAgent.toLowerCase();return e.includes("iphone")||e.includes("ipad")||e.includes("ipod")?{device:"mobile",os:"ios"}:e.includes("android")?{device:"mobile",os:"android"}:e.includes("mac")?{device:"desktop",os:"mac"}:e.includes("win")?{device:"desktop",os:"windows"}:{device:"desktop",os:"mac"}}function i(e){let t="android"===e?"android":"ios";return{platform:t,label:"android"===t?"Download for Android":"Download for iPhone"}}e.s(["DEFAULT_DESKTOP_OS",0,"mac","generateGetStartedUrl",0,function(e){let t=new URLSearchParams({from:"meetjamie.ai"});return e&&t.set("plan",e),`${r.siteConfig.appUrl}/?${t.toString()}`},"getMobileDownload",0,i,"getMobileDownloadTarget",0,function(){return i(n().os).platform},"getOS",0,n,"getTemplateAppUrl",0,function(e){let r=t.env.NEXT_PUBLIC_APP_URL;return`${r}/?template=${e??""}`}])},15777,931016,e=>{"use strict";let t,r;e.s(["DownloadProvider",()=>B,"useDownloadProvider",()=>$],15777);var n,i,o,a,s,l=e.i(538947),d=e.i(459170),c=e.i(793907),u=e.i(135031);let f=(0,e.i(198631).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,f],931016);var h=e.i(83803),m=e.i(702788);let g=({isOpen:e,onClose:t})=>{let{device:r}=(0,m.getOS)(),{downloadTargetPlatform:n}=$();return(0,l.jsx)(u.Dialog,{open:e,onOpenChange:t,children:"mobile"===r?(0,l.jsx)(p,{}):"mac"===n?(0,l.jsx)(w,{}):(0,l.jsx)(x,{})})},p=()=>(0,l.jsxs)(u.DialogContent,{className:"sm:max-w-none w-full sm:w-auto gap-0 px-7 py-10 rounded-[26px] overflow-hidden border-none",closeClassName:"bg-[#E5E5E5] rounded-full opacity-100 border size-[28px] top-3 right-3 text-muted-foreground flex items-center justify-center",children:[(0,l.jsx)(u.DialogTitle,{className:"text-3xl font-semibold leading-normal mt-2",children:"Get Jamie for Desktop"}),(0,l.jsxs)("ol",{className:"mt-8 space-y-3",children:[(0,l.jsx)("li",{children:"1. Go to meetjamie.ai on your Mac/Windows PC"}),(0,l.jsx)("li",{children:"2. Click Download"}),(0,l.jsx)("li",{children:"3. Install Jamie on your machine"})]})]}),w=()=>{let{download:e}=$();return(0,l.jsxs)(u.DialogContent,{className:"sm:max-w-none w-full sm:w-auto gap-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-primary text-sm",children:[(0,l.jsx)(f,{className:"size-3"}),(0,l.jsx)("span",{children:"Downloaded"})]}),(0,l.jsx)(u.DialogTitle,{className:"text-3xl font-semibold leading-normal mt-2",children:"How to install Jamie"}),(0,l.jsxs)("div",{className:"flex items-start justify-between gap-5 mt-10 overflow-x-scroll",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 w-[300px]",children:[(0,l.jsx)(h.default,{src:"/download/mac/instruction-1.avif",alt:"instruction-1",width:314,height:189,className:"w-full h-full object-contain"}),(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:"Open Jamie.dmg from your downloads folder."})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 w-[300px]",children:[(0,l.jsx)(h.default,{src:"/download/mac/instruction-2.avif",alt:"instruction-1",width:314,height:189,className:"w-full h-full object-contain"}),(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:"Drag and drop the Jamie app into your application folder."})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 w-[300px]",children:[(0,l.jsx)(h.default,{src:"/download/mac/instruction-3.avif",alt:"instruction-1",width:314,height:189,className:"w-full h-full object-contain"}),(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:"Open Jamie inside your application folder."})]})]}),(0,l.jsxs)("div",{className:"mt-15 flex items-center justify-center text-sm gap-1.5",children:[(0,l.jsx)("p",{children:"Problems?"}),(0,l.jsx)(c.Button,{variant:"link",size:"sm",className:"px-0 text-foreground font-medium underline cursor-pointer focus-visible:ring-0",onClick:()=>e("mac"),children:"Download again"})]})]})},x=()=>{let{download:e}=$();return(0,l.jsxs)(u.DialogContent,{className:"sm:max-w-none w-auto gap-0",children:[(0,l.jsx)(u.DialogTitle,{className:"sr-only",children:"Download Jamie"}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center text-3xl gap-2 mx-48 mt-20",children:[(0,l.jsx)(f,{className:"size-13.5 text-primary"}),(0,l.jsx)("span",{children:"Downloaded"})]}),(0,l.jsxs)("div",{className:"mt-18 flex items-center justify-center text-sm gap-1.5",children:[(0,l.jsx)("p",{children:"Problems?"}),(0,l.jsx)(c.Button,{variant:"link",size:"sm",className:"px-0 text-foreground font-medium underline cursor-pointer",onClick:()=>e("windows"),children:"Download again"})]})]})};var E=Object.defineProperty,C=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,A=(e,t,r)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>
vendor: 12,391 bytes, line 1
1{for(var r in t||(t={}))v.call(t,r)&&A(e,r,t[r]);if(C)for(var r of C(t))y.call(t,r)&&A(e,r,t[r]);return e},M=(e,t)=>{var r={};for(var n in e)v.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&C)for(var n of C(e))0>t.indexOf(n)&&y.call(e,n)&&(r[n]=e[n]);return r};(e=>{let t=class t{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(o<-1||o>7)throw RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(o=t,e=r),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(r,n){let i=e.QrSegment.makeSegments(r);return t.encodeSegments(i,n)}static encodeBinary(r,n){let i=e.QrSegment.makeBytes(r);return t.encodeSegments([i],n)}static encodeSegments(e,n,o=1,s=40,l=-1,d=!0){let c,u;if(!(t.MIN_VERSION<=o&&o<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw RangeError("Invalid value");for(c=o;;c++){let r=8*t.getNumDataCodewords(c,n),i=a.getTotalBits(e,c);if(i<=r){u=i;break}if(c>=s)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&u<=8*t.getNumDataCodewords(c,e)&&(n=e);let f=[];for(let t of e)for(let e of(r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(c),f),t.getData()))f.push(e);i(f.length==u);let h=8*t.getNumDataCodewords(c,n);i(f.length<=h),r(0,Math.min(4,h-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<h;e^=253)r(e,8,f);let m=[];for(;8*m.length<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(c,n,m,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)(0!=r||0!=n)&&(0!=r||n!=t-1)&&(r!=t-1||0!=n)&&this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,r=t;for(let e=0;e<10;e++)r=r<<1^(r>>>9)*1335;let o=(t<<10|r)^21522;i(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(o,e));this.setFunctionModule(8,7,n(o,6)),this.setFunctionModule(8,8,n(o,7)),this.setFunctionModule(7,8,n(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(o,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let r=n(t,e),i=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(i,o,r),this.setFunctionModule(o,i,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,a=t+r;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){let r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw RangeError("Invalid argument");let o=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],a=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(t.getNumRawDataModules(r)/8),l=o-s%o,d=Math.floor(s/o),c=[],u=t.reedSolomonComputeDivisor(a);for(let r=0,n=0;r<o;r++){let i=e.slice(n,n+d-a+(r<l?0:1));n+=i.length;let o=t.reedSolomonComputeRemainder(i,u);r<l&&i.push(0),c.push(i.concat(o))}let f=[];for(let e=0;e<c[0].length;e++)c.forEach((t,r)=>{(e!=d-a||r>=l)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let i=0;i<this.size;i++)for(let o=0;o<2;o++){let a=t-o,s=(t+1&2)==0?this.size-1-i:i;!this.isFunction[s][a]&&r<8*e.length&&(this.modules[s][a]=n(e[r>>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[r][a]==n?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[r][a],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][r]==n?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[a][r],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){let i=this.modules[r][n];i==this.modules[r][n+1]&&i==this.modules[r+1][n]&&i==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(let e of this.modules)r=e.reduce((e,t)=>e+ +!!t,r);let n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=o&&o<=9),i(0<=(e+=o*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return i(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let i=0;i<e;i++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map(e=>0);for(let i of e){let e=i^n.shift();n.push(0),r.forEach((r,i)=>n[i]^=t.reedSolomonMultiply(r,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285^(t>>>n&1)*e;return i(r>>>8==0),r}finderPenaltyCountPatterns(e){let t=e[1];i(t<=3*this.size);let r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let o=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(let e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+i),10),3*i+1,n),e+=i}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){let n;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let i=[];for(n=0;n+2<=t.length;n+=2){let o=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));r(o+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,i)}return n<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)r(t,8,n);else if(t<16384)r(2,2,n),r(t,14,n);else if(t<1e6)r(6,3,n),r(t,21,n);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(let n of e){let e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=o;e.QrSegment=o})(s||(s={})),i=(n=s||(s={})).QrCode||(n.QrCode={}),(t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),i.Ecc=t,a=(o=s||(s={})).QrSegment||(o.QrSegment={}),(r=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),a.Mode=r;var P=s,b={L:P.QrCode.Ecc.LOW,M:P.QrCode.Ecc.MEDIUM,Q:P.QrCode.Ecc.QUARTILE,H:P.QrCode.Ecc.HIGH},N="#FFFFFF",O="#000000";function S(e,t=0){let r=[];return e.forEach(function(e,n){let i=null;e.forEach(function(o,a){if(!o&&null!==i){r.push(`M${i+t} ${n+t}h${a-i}v1H${i+t}z`),i=null;return}if(a===e.length-1){if(!o)return;null===i?r.push(`M${a+t},${n+t} h1v1H${a+t}z`):r.push(`M${i+t},${n+t} h${a+1-i}v1H${i+t}z`);return}o&&null===i&&(i=a)})}),r.join("")}function R(e,t){return e.slice().map((e,r)=>r<t.y||r>=t.y+t.h?e:e.map((e,r)=>(r<t.x||r>=t.x+t.w)&&e))}function k({value:e,level:t,minVersion:r,includeMargin:n,marginSize:i,imageSettings:o,size:a,boostLevel:s}){let l=d.default.useMemo(()=>{let n=(Array.isArray(e)?e:[e]).reduce((e,t)=>
1(e.push(...P.QrSegment.makeSegments(t)),e),[]);return P.QrCode.encodeSegments(n,b[t],r,void 0,void 0,s)},[e,t,r,s]),{cells:c,margin:u,numCells:f,calculatedImageSettings:h}=d.default.useMemo(()=>{let e=l.getModules(),t=null!=i?Math.max(Math.floor(i),0):4*!!n,r=e.length+2*t,s=function(e,t,r,n){if(null==n)return null;let i=e.length+2*r,o=Math.floor(.1*t),a=i/t,s=(n.width||o)*a,l=(n.height||o)*a,d=null==n.x?e.length/2-s/2:n.x*a,c=null==n.y?e.length/2-l/2:n.y*a,u=null==n.opacity?1:n.opacity,f=null;if(n.excavate){let e=Math.floor(d),t=Math.floor(c),r=Math.ceil(s+d-e),n=Math.ceil(l+c-t);f={x:e,y:t,w:r,h:n}}return{x:d,y:c,h:l,w:s,excavation:f,opacity:u,crossOrigin:n.crossOrigin}}(e,a,t,o);return{cells:e,margin:t,numCells:r,calculatedImageSettings:s}},[l,a,o,n,i]);return{qrcode:l,margin:u,cells:c,numCells:f,calculatedImageSettings:h}}var D=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();d.default.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:o=N,fgColor:a=O,includeMargin:s=!1,minVersion:l=1,boostLevel:c,marginSize:u,imageSettings:f}=e,h=M(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=h,g=M(h,["style"]),p=null==f?void 0:f.src,w=d.default.useRef(null),x=d.default.useRef(null),E=d.default.useCallback(e=>{w.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[C,v]=d.default.useState(!1),{margin:y,cells:A,numCells:P,calculatedImageSettings:b}=k({value:r,level:i,minVersion:l,boostLevel:c,includeMargin:s,marginSize:u,imageSettings:f,size:n});d.default.useEffect(()=>{if(null!=w.current){let e=w.current,t=e.getContext("2d");if(!t)return;let r=A,i=x.current,s=null!=b&&null!==i&&i.complete&&0!==i.naturalHeight&&0!==i.naturalWidth;s&&null!=b.excavation&&(r=R(A,b.excavation));let l=window.devicePixelRatio||1;e.height=e.width=n*l;let d=n/P*l;t.scale(d,d),t.fillStyle=o,t.fillRect(0,0,P,P),t.fillStyle=a,D?t.fill(new Path2D(S(r,y))):A.forEach(function(e,r){e.forEach(function(e,n){e&&t.fillRect(n+y,r+y,1,1)})}),b&&(t.globalAlpha=b.opacity),s&&t.drawImage(i,b.x+y,b.y+y,b.w,b.h)}}),d.default.useEffect(()=>{v(!1)},[p]);let j=_({height:n,width:n},m),z=null;return null!=p&&(z=d.default.createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{v(!0)},ref:x,crossOrigin:null==b?void 0:b.crossOrigin})),d.default.createElement(d.default.Fragment,null,d.default.createElement("canvas",_({style:j,height:n,width:n,ref:E,role:"img"},g)),z)}).displayName="QRCodeCanvas";var j=d.default.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:o=N,fgColor:a=O,includeMargin:s=!1,minVersion:l=1,boostLevel:c,title:u,marginSize:f,imageSettings:h}=e,m=M(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:p,numCells:w,calculatedImageSettings:x}=k({value:r,level:i,minVersion:l,boostLevel:c,includeMargin:s,marginSize:f,imageSettings:h,size:n}),E=p,C=null;null!=h&&null!=x&&(null!=x.excavation&&(E=R(p,x.excavation)),C=d.default.createElement("image",{href:h.src,height:x.h,width:x.w,x:x.x+g,y:x.y+g,preserveAspectRatio:"none",opacity:x.opacity,crossOrigin:x.crossOrigin}));let v=S(E,g);return d.default.createElement("svg",_({height:n,width:n,viewBox:`0 0 ${w} ${w}`,ref:t,role:"img"},m),!!u&&d.default.createElement("title",null,u),d.default.createElement("path",{fill:o,d:`M0,0 h${w}v${w}H0z`,shapeRendering:"crispEdges"}),d.default.createElement("path",{fill:a,d:v,shapeRendering:"crispEdges"}),C)});j.displayName="QRCodeSVG";var z=e.i(595394);let I=({isOpen:e,onClose:t})=>{let{downloadTargetPlatform:r}=$();return(0,l.jsx)(u.Dialog,{open:e,onOpenChange:t,children:(0,l.jsxs)(u.DialogContent,{className:"sm:max-w-none w-full sm:w-auto gap-0 p-0 rounded-[26px] overflow-hidden border-none",closeClassName:"bg-[#E5E5E5] rounded-full opacity-100 border size-[28px] top-3 right-3 text-muted-foreground flex items-center justify-center",children:[(0,l.jsx)(h.default,{src:"/download/mobile.avif",alt:"mobile",width:562,height:351,priority:!0,fetchPriority:"high",quality:75,className:"w-[560px] h-full object-contain"}),(0,l.jsx)("div",{className:"mt-7 px-5 pb-10",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(u.DialogTitle,{className:"text-2xl font-medium leading-normal",children:"android"===r?"Get Jamie for Android":"Get Jamie for iPhone"}),(0,l.jsx)("p",{className:"text-sm mt-4",children:"Scan the QR Code to open the app store"})]}),(0,l.jsx)("div",{className:"size-[90px]",children:(0,l.jsx)(j,{value:z.siteConfig.appsFlyerUrl,className:"w-full h-full"})})]})})]})})};var L=e.i(683575);async function T(){let e={mac:"#",windows:"#"};try{let t=await fetch("https://api.github.com/repos/meetjamie/releases/releases/latest",{headers:{Accept:"application/vnd.github.v3+json","User-Agent":"Jamie-App/1.0"}});if(!t.ok)return console.warn(`GitHub API error: ${t.status} ${t.statusText}`),e;let r=t.headers.get("content-type");if(!r?.includes("application/json"))return console.warn(`Expected JSON but got: ${r}`),e;let n=await t.json();if(!n.assets||0===n.assets.length)return console.warn("No assets found in GitHub release"),e;let i=n.assets.find(e=>/\.dmg$/.test(e.name)),o=n.assets.find(e=>/\.exe$/.test(e.name)&&!/\.exe\.sig$/.test(e.name));if(!i||!o)return console.warn("Missing required assets (mac or windows) in GitHub release"),e;return{mac:i.browser_download_url,windows:o.browser_download_url}}catch(t){return console.warn("Error fetching GitHub download URLs:",t),e}}var F=e.i(823256);let U=(0,d.createContext)(void 0);function B({children:e}){let[t,r]=(0,d.useState)(!1),[n,i]=(0,d.useState)(!1),[o,a]=(0,d.useState)(m.DEFAULT_DESKTOP_OS),[s,c]=(0,d.useState)(m.DEFAULT_DESKTOP_OS),{data:u,isLoading:f}=(0,L.useQuery)({queryKey:["download-urls"],queryFn:async()=>{try{let e=await fetch("https://app.meetjamie.ai/api/external/downloads",{method:"GET",headers:{"Content-Type":"application/json"}});if(e.ok){let t=await e.json();return{mac:t.mac,windows:t.windows,ios:z.siteConfig.appsFlyerUrl,android:z.siteConfig.appsFlyerUrl}}}catch(e){console.warn("Server request failed, falling back to GitHub API:",e)}let{mac:e,windows:t}=await T();return{mac:e,windows:t,ios:z.siteConfig.appsFlyerUrl,android:z.siteConfig.appsFlyerUrl}}});(0,d.useEffect)(()=>{let{os:e}=(0,m.getOS)();a(e)},[]);let h={currentPlatform:o,setCurrentPlatform:a,downloadTargetPlatform:s,download:e=>{if(e&&"string"!=typeof e&&(console.warn("download() called with invali
1d platform:",e),e=void 0),f||!u)return;let{device:t,os:n}=(0,m.getOS)(),a=e??n??o,s=u[a];if(!s)return;c(a);let l="mac"===a||"windows"===a,d="ios"===a||"android"===a,h="mobile"===t;((0,F.trackDownload)({platform:a,device:t,url:s,source:"download_provider"}),l)?h?r(!0):(window.location.href=s,setTimeout(()=>r(!0),1e3)):d&&(h?window.open(s,"_blank"):i(!0))},downloadMobile:()=>{if(!u)return;let{device:e}=(0,m.getOS)(),t=u.ios;t&&((0,F.trackDownload)({platform:"ios",device:e,url:t,source:"download_mobile_cta"}),window.open(t,"_blank"))},downloadDesktop:()=>{if(!u)return;let{os:e,device:t}=(0,m.getOS)(),n=u[e];n&&(c(e),(0,F.trackDownload)({platform:e,device:t,url:n,source:"download_desktop_cta"}),"mobile"===t?r(!0):(window.location.href=n,setTimeout(()=>r(!0),1e3)))},downloadUrls:u,isLoading:f};return(0,l.jsxs)(U.Provider,{value:h,children:[e,(0,l.jsx)(g,{isOpen:t,onClose:()=>r(!1)}),(0,l.jsx)(I,{isOpen:n,onClose:()=>i(!1)})]})}function $(){let e=(0,d.useContext)(U);if(!e)throw Error("useDownloadProvider must be used within a DownloadProvider");return 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.