1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3888],{33704:(e,t,n)=>{n.d(t,{Ut:()=>l,Wk:()=>i,ZB:()=>a,bM:()=>o,qd:()=>r});let r={headingPrimary:"#2E1E72",headingSecondary:"#2E1E72",bodyPrimary:"#2E1E72",bodySecondary:"#4B5563",muted:"#6B7280",accent:"#8577B7",white:"#FFFFFF",error:"#991B1B",success:"#166534",warning:"#92400E"},a={stat:"font-playfair text-[20px] md:text-[24px] font-bold leading-[130%]",display:"font-playfair text-[26px] md:text-[30px] font-semibold leading-[130%]",h1:"font-playfair text-[28px] md:text-[36px] font-bold leading-[130%]",h2:"font-playfair text-[24px] md:text-[28px] font-semibold leading-[130%]",h3:"font-playfair text-[20px] md:text-[24px] font-semibold leading-[140%]",h4:"font-playfair text-[18px] md:text-[20px] font-semibold leading-[140%]",h5:"font-playfair text-[16px] md:text-[18px] font-semibold leading-[150%]",h6:"font-playfair text-[14px] md:text-[16px] font-semibold leading-[150%]",subheader:"font-red-hat text-[20px] md:text-[24px] font-semibold leading-[140%]"},o={xl:"text-[18px] md:text-[22px] leading-[160%]",lg:"text-[17px] md:text-[20px] leading-[160%]",base:"text-[18px] md:text-[20px] leading-[160%]",sm:"text-[14px] md:text-[16px] leading-[150%]",xs:"text-[12px] md:text-[14px] leading-[150%]"},i={headingPrimary:"text-[#2E1E72]",headingSecondary:"text-[#2E1E72]",bodyPrimary:"text-[#2E1E72]",bodySecondary:"text-gray-600",muted:"text-gray-500",accent:"text-[#8577B7]",white:"text-white",error:"text-red-800",success:"text-green-800",warning:"text-amber-800"},l={pageHeader:"".concat(a.display," ").concat(i.headingPrimary),pageTitle:"".concat(a.h1," ").concat(i.headingPrimary),sectionTitle:"".concat(a.h2," ").concat(i.headingPrimary),subsectionTitle:"".concat(a.h3," ").concat(i.headingPrimary),cardTitle:"".concat(a.h2," ").concat(i.headingSecondary),minorHeading:"".concat(a.h4," ").concat(i.headingPrimary),pageTitleLight:"".concat(a.h1," ").concat(i.white),sectionTitleLight:"".concat(a.h2," ").concat(i.white),lead:"".concat(o.xl," ").concat(i.bodyPrimary),bodyLarge:"".concat(o.lg," ").concat(i.bodyPrimary),body:"".concat(o.base," ").concat(i.bodyPrimary),bodySmall:"".concat(o.sm," ").concat(i.bodySecondary),caption:"".concat(o.xs," ").concat(i.muted),moduleNumber:"font-semibold text-[16px] leading-[150%] text-[#8577B7]",button:"font-semibold text-[14px] md:text-[16px]",link:"font-medium hover:underline",label:"".concat(o.sm," font-medium ").concat(i.bodyPrimary),errorText:"".concat(o.sm," ").concat(i.error),successText:"".concat(o.sm," ").concat(i.success)}}
1,71033:(e,t,n)=>{n.d(t,{nX:()=>i,tE:()=>c});var r=n(95155),a=n(12115),o=n(33704);let i=[{id:"multiply",label:"Multiply",description:"input1 \xd7 input2"},{id:"divide",label:"Divide",description:"input1 \xf7 input2"},{id:"percentage",label:"Percentage",description:"(input1 \xf7 input2) \xd7 100"},{id:"percent-change",label:"Percent change (ROI)",description:"(input1 â input2) \xf7 input2 \xd7 100"},{id:"percent-of",label:"Percent of",description:"input1 \xd7 (input2 \xf7 100) â second input is a %"},{id:"subtract",label:"Subtract",description:"input1 â input2"},{id:"add",label:"Add",description:"sum of all inputs (2+)"}];function l(e,t){if(t.length<2)return 0;let[n,r]=t;switch(e){case"multiply":return n*r;case"divide":return 0!==r?n/r:0;case"percentage":return 0!==r?n/r*100:0;case"percent-change":return 0!==r?(n-r)/r*100:0;case"percent-of":return r/100*n;case"subtract":return n-r;case"add":return t.reduce((e,t)=>e+t,0);default:return 0}}function s(e,t,n){return"%"===n?e.toFixed(2):"$"===t?e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):e.toLocaleString("en-US",{maximumFractionDigits:2})}function c(e){var t,n;let{config:i,onComplete:c}=e,[d,u]=(0,a.useState)(()=>{let e={};return i.fields.forEach(t=>{e[t.id]=void 0!==t.defaultValue?String(t.defaultValue):""}),e}),m=Array.isArray(i.steps)&&i.steps.length>0,p=(0,a.useMemo)(()=>{let e={};return i.fields.forEach(t=>{e[t.id]=parseFloat(d[t.id])||0}),e},[d,i.fields]),x=(0,a.useMemo)(()=>{let e=i.fields.map(e=>parseFloat(d[e.id])||0);return l(i.formula,e)},[d,i.fields,i.formula]),f=(0,a.useMemo)(()=>m?function(e,t){let n={};return e.map(e=>{let r=(e.inputs||[]).map(e=>{if(e in t)return t[e]||0;if(e in n)return n[e];let r=Number(e);return Number.isFinite(r)?r:0}),a=l(e.formula,r);return n[e.id]=a,{step:e,result:a}})}(i.steps,p):[],[m,i.steps,p]),h=function(e,t){if(t&&0!==t.length)return t.find(t=>{let n="number"==typeof t.min?t.min:-1/0,r="number"==typeof t.max?t.max:1/0;return e>=n&&e<=r})}(m?null!=(n=null==(t=f[f.length-1])?void 0:t.result)?n:0:x,i.classifications);return(0,r.jsxs)("div",{className:"my-6 rounded-xl border-2 border-[#8577B7] bg-white p-6",children:[(0,r.jsx)("h3",{className:"".concat(o.ZB.h3," ").concat(o.Wk.headingPrimary," mb-2"),children:i.title}),i.description&&(0,r.jsx)("p",{className:"".concat(o.bM.base," ").concat(o.Wk.bodyPrimary," mb-6"),children:i.description}),(0,r.jsx)("div",{className:"mb-6 space-y-4",children:i.fields.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mb-1 block text-sm font-medium text-[#2E1E72]",children:e.label}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[e.prefix&&(0,r.jsx)("span",{className:"font-medium text-[#8577B7]",children:e.prefix}),(0,r.jsx)("input",{type:"number",value:d[e.id]||"",onChange:t=>{var n,r;return n=e.id,r=t.target.value,void u(e=>({...e,[n]:r}))},placeholder:e.placeholder||"0",className:"w-full rounded-lg border border-[#8577B7]/30 px-3 py-2 text-[#2E1E72] focus:border-[#2E1E72] focus:ring-1 focus:ring-[#2E1E72] focus:outline-none"}),e.suffix&&(0,r.jsx)("span",{className:"font-medium text-[#8577B7]",children:e.suffix})]})]},e.id))}),m?(0,r.jsx)("div",{className:"space-y-3",children:f.map((e,t)=>{let{step:n,result:a}=e,o=t===f.length-1;return(0,r.jsx)("div",{className:o?"rounded-lg bg-[#E5DEEF] p-4 text-center":"flex items-center justify-between gap-4 rounded-lg border border-[#8577B7]/30 bg-[#F8F6FF] px-4 py-3",children:o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"mb-1 text-sm text-[#8577B7]",children:n.label}),(0,r.jsxs)("p",{className:"text-2xl font-bold text-[#2E1E72]",children:[n.resultPrefix||"",s(a,n.resultPrefix,n.resultSuffix),n.resultSuffix||""]}),n.description&&(0,r.jsx)("p",{className:"mt-2 text-sm text-[#8577B7]",children:n.description})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-[#2E1E72]",children:[(0,r.jsxs)("span",{className:"mr-2 text-[#8577B7]",children:["Step ",t+1,"."]}),n.label]}),n.description&&(0,r.jsx)("p",{className:"mt-0.5 text-xs text-[#8577B7]",children:n.description})]}),(0,r.jsxs)("p",{className:"text-lg font-bold whitespace-nowrap text-[#2E1E72]",children:[n.resultPrefix||"",s(a,n.resultPrefix,n.resultSuffix),n.resultSuffix||""]}
1)]})},n.id||t)})}):(0,r.jsxs)("div",{className:"rounded-lg bg-[#E5DEEF] p-4 text-center",children:[(0,r.jsx)("p",{className:"mb-1 text-sm text-[#8577B7]",children:i.resultLabel}),(0,r.jsxs)("p",{className:"text-2xl font-bold text-[#2E1E72]",children:[i.resultPrefix||"",s(x,i.resultPrefix,i.resultSuffix),i.resultSuffix||""]}),i.resultDescription&&(0,r.jsx)("p",{className:"mt-2 text-sm text-[#8577B7]",children:i.resultDescription})]}),h&&(0,r.jsxs)("div",{className:"mt-3 rounded-lg border-2 border-[#8577B7]/40 bg-[#F8F6FF] p-4 text-center",children:[(0,r.jsx)("p",{className:"text-lg font-bold text-[#2E1E72]",children:h.label}),h.description&&(0,r.jsx)("p",{className:"mt-1 text-sm text-[#8577B7]",children:h.description})]})]})}},79149:(e,t,n)=>{n.d(t,{$m:()=>r,B8:()=>s,Gz:()=>l,p:()=>o,wy:()=>c,zo:()=>u});let r={spotify:"Spotify",apple:"Apple Podcasts",soundcloud:"SoundCloud",youtube:"YouTube"};function a(e){try{return new URL(e.trim())}catch(e){return null}}function o(e){let t=a(e);if(!t||"https:"!==t.protocol&&"http:"!==t.protocol)return null;let n=t.hostname.toLowerCase();return"open.spotify.com"===n?"spotify":"podcasts.apple.com"===n||"embed.podcasts.apple.com"===n?"apple":"soundcloud.com"===n||"www.soundcloud.com"===n||"w.soundcloud.com"===n||"on.soundcloud.com"===n?"soundcloud":"youtube.com"===n||"www.youtube.com"===n||"m.youtube.com"===n||"music.youtube.com"===n||"youtu.be"===n||"www.youtube-nocookie.com"===n?"youtube":null}function i(e){if("youtu.be"===e.hostname.toLowerCase())return e.pathname.split("/").filter(Boolean)[0]||null;let t=e.searchParams.get("v");if(t)return t;let n=e.pathname.split("/").filter(Boolean);return n.length>=2&&["embed","shorts","live"].includes(n[0].toLowerCase())&&n[1]||null}function l(e){let t=o(e),n=a(e);if(!t||!n)return null;switch(t){case"spotify":{var r,l;let e=n.pathname.split("/").filter(Boolean),a=(null==(r=e[0])?void 0:r.startsWith("intl-"))?e.slice(1):e;if("embed"===a[0])return{platform:t,src:n.toString(),height:232};let o=a[0],i=null==(l=a[1])?void 0:l.split("?")[0];if(!o||!i)return null;return{platform:t,src:"https://open.spotify.com/embed/".concat(o,"/").concat(i),height:"show"===o||"playlist"===o||"album"===o?352:232}}case"apple":return{platform:t,src:"https://embed.podcasts.apple.com".concat(n.pathname).concat(n.search),height:n.searchParams.has("i")?175:450};case"soundcloud":{if("w.soundcloud.com"===n.hostname.toLowerCase())return{platform:t,src:n.toString(),height:166};let e=new URLSearchParams({url:n.toString(),color:"#2E1E72",auto_play:"false",hide_related:"true",show_comments:"false",show_user:"true",visual:"false"});return{platform:t,src:"https://w.soundcloud.com/player/?".concat(e.toString()),height:166}}case"youtube":{let e=i(n);if(!e)return null;return{platform:t,src:"https://www.youtube.com/embed/".concat(encodeURIComponent(e)),aspectRatio:"16 / 9"}}}}function s(e){let t=e.trim();if(!t)return t;if(/^[A-Za-z0-9_-]{11}$/.test(t))return"https://www.youtube.com/embed/".concat(t);let n=a(t);if(!n||"youtube"!==o(t))return t;let r=i(n);if(!r)return t;let l="www.youtube-nocookie.com"===n.hostname.toLowerCase()?"https://www.youtube-nocookie.com":"https://www.youtube.com";return"".concat(l,"/embed/").concat(encodeURIComponent(r))}function c(e){let t=e.trim(),n=a(t);if(!n)return t;let r=n.hostname.toLowerCase();if("arcade.software"!==r&&!r.endsWith(".arcade.software"))return t;let o=n.pathname.match(/^\/share\/([A-Za-z0-9_-]+)\/?$/);if(o)return d(o[1]);let i=n.pathname.match(/^\/([A-Za-z0-9_-]+)\/?$/);return i&&"demo.arcade.software"===r?d(i[1]):t}function d(e){return"https://demo.arcade.software/".concat(e,"?embed&embed_mobile=inline&embed_desktop=inline&show_copy_link=true")}function u(e){let t=a(e.trim());if(!t)return null;let n=t.hostname.toLowerCase().replace(/^www\./,"");if("tiktok.com"!==n&&!n.endsWith(".tiktok.com"))return null;let r=t.pathname.match(/^\/@([A-Za-z0-9._-]+)\/video\/(\d+)\/?$/);return r?{username:r[1],videoId:r[2]}:null}},87208:(e,t,n)=>{n.d(t,{l:()=>i});var r=n(12115),a=n(40550),o=n(19708);function i(e,t){let[n,i]=(0,r.useState)(null),[l,s]=(0,r.useState)(!0),[c,d]=(0,r.useState)(null);(0,r.useEffect)(()=>
1{if(!e||!t)return void s(!1);let n=(0,o.H9)(a.db,"unit_structure","".concat(e,"_").concat(t)),r=(0,o.aQ)(n,e=>{e.exists()?(i(e.data()),d(null)):(i(null),d(Error("Unit structure not found"))),s(!1)},e=>{console.error("Error fetching unit structure:",e),d(e),s(!1)});return()=>{r()}},[e,t]);let u=(0,r.useMemo)(()=>{var e,t;return null!=(t=null==n||null==(e=n.pages)?void 0:e.filter(e=>!e.hidden))?t:[]},[n]);return{structure:n,visiblePages:u,loading:l,error:c}}}}]);
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.