1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1603],{70512:function(e,t,r){r.d(t,{Mt:function(){return a},am:function(){return o},f2:function(){return s},mS:function(){return l}});let n={widthPx:1280,heightPx:720},a=[{id:"widescreen",page:n},{id:"standard",page:{widthPx:960,heightPx:720}}],l=e=>e??n,i=(e,t)=>e.widthPx===t.widthPx&&e.heightPx===t.heightPx,o=e=>a.find(t=>i(t.page,l(e)))?.id,s=e=>e?`${e.widthPx}x${e.heightPx}`:"unspecified"},48427:function(e,t,r){r.d(t,{j:function(){return b}});var n=r(43577),a=r(29167),l=r(70512),i=r(96841),o=r(63030),s=r.n(o),c=r(57242),u=r(17746);let d={onBackground:"#111827",primary:"#111827",secondary:"#2563EB",accent:"#F59E0B",surface:"#F3F4F6",background:"#FFFFFF"},p=(e,t)=>e&&(0,a.lK)(e)?e:t,h=e=>{let t=e.replace(/^#/,""),r=3===t.length?t.split("").map(e=>e+e).join(""):t,n=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*n(parseInt(r.slice(0,2),16))+.7152*n(parseInt(r.slice(2,4),16))+.0722*n(parseInt(r.slice(4,6),16))},f=(e,t)=>{let r=h(e),n=h(t),[a,l]=r>n?[r,n]:[n,r];return(a+.05)/(l+.05)},m=(e,t)=>f(t,e)>=3?t:h(e)>.5?"#111827":"#FFFFFF",g=({shape:e,color:t})=>{switch(e){case"circle-corner":return(0,n.jsx)("svg",{className:"absolute -top-[25%] -right-[20%] h-[75%] w-auto pointer-events-none",viewBox:"0 0 100 100","aria-hidden":!0,children:(0,n.jsx)("circle",{cx:"50",cy:"50",r:"50",fill:t,opacity:.18})});case"triangle-corner":return(0,n.jsx)("svg",{className:"absolute bottom-0 right-0 h-[45%] w-auto pointer-events-none",viewBox:"0 0 100 100","aria-hidden":!0,children:(0,n.jsx)("polygon",{points:"100,0 100,100 0,100",fill:t,opacity:.18})});case"diamond":return(0,n.jsx)("svg",{className:"absolute top-[10%] right-[4%] h-[38%] w-auto pointer-events-none",viewBox:"0 0 60 60","aria-hidden":!0,children:(0,n.jsx)("polygon",{points:"30,0 60,30 30,60 0,30",fill:t,opacity:.18})});case"arc":return(0,n.jsx)("svg",{className:"absolute -bottom-[10%] -right-[10%] h-[55%] w-auto pointer-events-none",viewBox:"0 0 100 100","aria-hidden":!0,children:(0,n.jsx)("path",{d:"M0,100 A100,100 0 0,1 100,0",fill:"none",stroke:t,strokeWidth:"14",opacity:.288})});case"dots":return(0,n.jsx)("svg",{className:"absolute top-[22%] right-[4%] h-[28%] w-auto pointer-events-none",viewBox:"0 0 36 60","aria-hidden":!0,children:[0,1,2].map(e=>[0,1].map(r=>(0,n.jsx)("circle",{cx:18*r+9,cy:22*e+9,r:"5",fill:t,opacity:.288},`${e}-${r}`)))});case"ring":return(0,n.jsx)("svg",{className:"absolute -top-[15%] -right-[15%] h-[60%] w-auto pointer-events-none",viewBox:"0 0 100 100","aria-hidden":!0,children:(0,n.jsx)("circle",{cx:"50",cy:"50",r:"42",fill:"none",stroke:t,strokeWidth:"12",opacity:.288})});case"chevron":return(0,n.jsx)("svg",{className:"absolute top-[22%] right-[4%] h-[40%] w-auto pointer-events-none",viewBox:"0 0 40 80","aria-hidden":!0,children:(0,n.jsx)("polyline",{points:"4,4 36,40 4,76",fill:"none",stroke:t,strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round",opacity:.288})});case"triangle-top-left":return(0,n.jsx)("svg",{className:"absolute top-0 right-0 h-[45%] w-auto pointer-events-none",viewBox:"0 0 100 100","aria-hidden":!0,children:(0,n.jsx)("polygon",{points:"0,0 100,0 100,100",fill:t,opacity:.18})});case"cross":return(0,n.jsx)("svg",{className:"absolute top-[50%] -translate-y-1/2 right-[5%] h-[28%] w-auto pointer-events-none",viewBox:"0 0 60 60","aria-hidden":!0,children:(0,n.jsx)("path",{d:"M20,0 H40 V20 H60 V40 H40 V60 H20 V40 H0 V20 H20 Z",fill:t,opacity:.18})});case"semicircle":return(0,n.jsx)("svg",{className:"absolute -bottom-[5%] right-[5%] h-[30%] w-auto pointer-events-none",viewBox:"0 0 100 50","aria-hidden":!0,children:(0,n.jsx)("path",{d:"M0,50 A50,50 0 0,1 100,50",fill:t,opacity:.18})})}},y=[{label:"Style",shape:"circle-corner"},{label:"Theme",shape:"chevron"},{label:"Design",shape:"triangle-corner"},{label:"Typography",shape:"arc"},{label:"Palette",shape:"semicircle"},{label:"Presentation",shape:"ring"},{label:"Impact",shape:"diamond"},{label:"Layout",shape:"dots"},{label:"Clarity",shape:"cross"},{label:"Sequence",shape:"triangle-top-left"}],x=e=>e.split("").reduce((e,t)=>
1e+t.charCodeAt(0),0);function b({id:e,title:t,caption:r,semanticColors:a,fonts:o,hideActions:h=!1,hideSelectedLabel:f=!1,isSelected:b,page:v,index:w,onSelect:F,onPreview:k}){let j=(0,i.aB)(e=>void 0!==b?null:e.selectedStyleId),{t:N}=(0,u.$G)("slidesai"),P=b??e===j,S=o?.heading||o?.body,B=o?.body||S,C=o?.subtitle||B,M=void 0!==w?3*w%y.length:x(e)%y.length,I=y[M],{widthPx:V,heightPx:$}=(0,l.mS)(v),A=`${V} / ${$}`,D=(0,c.useMemo)(()=>{let e=p(a?.background,d.background);return{background:e,onBackground:m(e,p(a?.onBackground,d.onBackground)),primary:m(e,p(a?.primary,d.primary)),secondary:p(a?.secondary,d.secondary),accent:p(a?.accent,d.accent),surface:p(a?.surface,d.surface),primarySwatch:p(a?.primary,d.primary)}},[a]),L=(0,c.useMemo)(()=>{let e=e=>["ffffff","fff","000000","000"].includes(e.toLowerCase().replace(/^#/,""));return Array.from(new Set([D.primarySwatch,D.secondary,D.accent,D.surface].map(e=>e.toLowerCase()))).filter(t=>!e(t)).slice(0,3)},[D]);return(0,n.jsxs)("div",{className:s()("relative w-full h-full rounded-lg hover",h?"cursor-default":"cursor-pointer"),style:{containerType:"inline-size"},tabIndex:0,role:"button","aria-label":`${t} style card. ${P?"Currently selected":"Click to select"}`,onClick:()=>F(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),F(e))},children:[(0,n.jsxs)("div",{className:"relative group",children:[(0,n.jsxs)("div",{className:s()("relative overflow-hidden rounded-lg ring-2 shadow-sm transition-shadow duration-100",!h&&"group-hover:shadow-md",{"ring-blue-600":P,"ring-gray-200":!P}),style:{aspectRatio:A,backgroundColor:D.background,color:D.onBackground},children:[I.shape&&(0,n.jsx)(g,{shape:I.shape,color:D.primary}),(0,n.jsxs)("div",{className:"relative flex h-full flex-col px-[6%] py-[6%]",children:[(0,n.jsx)("p",{className:"text-[clamp(2px,3.0cqi,10px)] font-semibold uppercase tracking-[0.22em]",style:{fontFamily:C,opacity:.5},children:I.label}),(0,n.jsxs)("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:[(0,n.jsx)("h3",{className:"font-bold leading-[1.02] text-[clamp(5px,8.5cqi,60px)] break-words",style:{fontFamily:S},children:t}),(0,n.jsx)("div",{className:"mt-[3%] h-[2px] w-[8%] rounded-sm",style:{backgroundColor:D.primary}})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-[4%]",children:[(0,n.jsxs)("p",{className:"truncate text-[clamp(2px,3.3cqi,11px)] min-w-0",style:{opacity:.55},children:[(0,n.jsx)("span",{style:{fontFamily:S},children:S}),(0,n.jsx)("span",{className:"mx-[0.4em] opacity-60",children:"\xb7"}),(0,n.jsx)("span",{style:{fontFamily:B},children:B})]}),(0,n.jsx)("div",{className:"flex shrink-0 gap-[3px]",children:L.map((e,t)=>(0,n.jsx)("span",{className:"block h-[clamp(4px,3.4cqi,14px)] w-[clamp(4px,3.4cqi,14px)] rounded-[2px] ring-1 ring-black/10",style:{backgroundColor:e}},t))})]})]})]}),!h&&(0,n.jsxs)("div",{className:"absolute bottom-0 right-0 flex w-full justify-between gap-2 overflow-hidden rounded-b-lg bg-black/80 opacity-0 transition-all duration-300 group-hover:opacity-100 group-focus-within:opacity-100",children:[(0,n.jsx)("button",{className:"w-full px-4 py-3 text-sm text-white transition-all duration-150 hover:bg-black focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white",onClick:t=>{t.stopPropagation(),F(e)},children:N("styleCardSelectLabel","Select")}),(0,n.jsx)("button",{className:"w-full px-4 py-3 text-sm text-white transition-all duration-150 hover:bg-black focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white",onClick:t=>{t.stopPropagation(),k(e)},children:N("styleCardPreviewLabel","Preview")})]})]}),P&&!f&&(0,n.jsx)("div",{className:"absolute left-0 top-0 rounded-br-lg rounded-tl-lg bg-blue-600 px-2 py-0.5 text-xs text-white",children:N("styleCardSelectedLabel","Selected")}),r&&(0,n.jsx)("p",{className:"mt-3 text-base font-medium text-left",children:r})]})}},88208:function(e,t,r){r.d(t,{J8:function(){return M},OJ:function(){return o},Pf:function(){return V},Q$:function(){return C},Qe:function(){return N},Wq:function(){return B},XF:function(){return u},hp:function(){return a},iT:function(){return d},jP:function(){return S},mU:function(){return I},sI:function(){return c}});var n=r(43087);let a=e=>({label:e,value:e}),l=e=>e.trim().toLowerCase(),i=(e,t,r)=>{let n=r.trim();if(!n)return;let i=l(n);t.has(i)||(t.add(i),e.push(a(n)))},o=({remoteItems:e,selectedFonts:t,extractedFonts:r,fallbackFonts:n,useFallbackCatalog:a})=>{let l=[],o=new Set;for(let t of e)i(l,o,t.family);for(let e of t)i(l,o,e);for(let e of r)i(l,o,e);if(a)for(let e of n)i(l,o,e.value);return l},s=e=>`https://fonts.googleapis.com/css?family=${encodeURIComponent(e.trim())}&display=swap`,c=(e,t="undefined"!=typeof document?document:void 0)=>{if(!t)return;let r=new Set;for(let n of e){let e=n.trim();if(!e)continue;let a=l(e);if(r.has(a))continue;r.add(a);let i=`font-link-${e}`;if(t.getElementById(i))continue;let o=t.createElement("link");o.id=i,o.href=s(e),o.rel="stylesheet",t.head.appendChild(o)}},u=e=>
1{let t=e.heading.trim(),r=e.body.trim(),n=e.all.map(e=>e.trim()).filter(Boolean),l=Array.from(new Set([t,r,...n].filter(Boolean)));return{heading:t||r||"Inter",body:r||t||"Inter",options:l.map(a)}},d=e=>{try{return new URL(e).host}catch{return e}},p={primary:"#111827",secondary:"#2563EB",accent:"#F59E0B",surface:"#F3F4F6",background:"#FFFFFF"},h=e=>e&&f(e)?e:void 0,f=e=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e),m=(...e)=>e.find(e=>!!h(e)),g=e=>{let t=h(e);if(!t)return;let r=t.slice(1);return 3===r.length?`#${r.split("").map(e=>e+e).join("").toUpperCase()}`:t.toUpperCase()},y=e=>{let t=g(e);if(!t)return null;let r=parseInt(t.slice(1),16);return[r>>16&255,r>>8&255,255&r]},x=e=>{let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},b=e=>{let t=y(e);if(!t)return null;let[r,n,a]=t;return .2126*x(r)+.7152*x(n)+.0722*x(a)},v=e=>{let t=b(e);return null===t||(t+.05)/.05>=1.05/(t+.05)},w=(e,t)=>{let r=b(e),n=b(t);return null===r||null===n?1:(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},F=e=>e>=7?"AAA":e>=4.5?"AA":"fail",k=["background","surface","primary","secondary","accent"],j={onSurface:"surface",onPrimary:"primary"},N=e=>{let t={onSurface:[],onPrimary:[]};for(let r of k)v(e[r])?t.onSurface.push(r):t.onPrimary.push(r);return t},P=(e,t)=>{let r=N(e)[t],n=r.length>0?r:[j[t]],a=n[0],l=Number.POSITIVE_INFINITY;for(let r of n){let n=w(e[t],e[r]);n<l&&(l=n,a=r)}return{ratio:l,backgroundKey:a}},S=(e,t)=>P(e,t).ratio>=4.5,B=e=>["onSurface","onPrimary"].map(t=>{let{ratio:r,backgroundKey:n}=P(e,t);return{key:t,ratio:r,ratioLabel:`${r.toFixed(1)}:1`,passes:r>=4.5,level:F(r),target:4.5,worstBackgroundKey:n}}),C=(e,t={})=>{let r=N(e),a=r.onSurface.map(t=>e[t]),l=r.onPrimary.map(t=>e[t]);return{...e,onPrimary:!1===t.preservePreferred?(0,n._V)(l):(0,n.Pu)(e.onPrimary,l),onSurface:!1===t.preservePreferred?(0,n._V)(a):(0,n.Pu)(e.onSurface,a),onBackground:(0,n.VD)(e.background),onSecondary:(0,n.VD)(e.secondary),onAccent:(0,n.VD)(e.accent)}},M=(e,t)=>{let r=t?.colors,a=t?.client?.preset,l=m(e?.background,r?.light1,r?.light2,a?.backgroundColor)??p.background,i=m(e?.surface,r?.light2,r?.light1,a?.accentFour)??p.surface,o=m(e?.primary,r?.dark1,r?.accent1,a?.accentOne)??p.primary,s=m(e?.secondary,r?.accent2,r?.accent1,a?.accentTwo)??p.secondary,c=m(e?.accent,r?.accent3,r?.accent1,a?.accentThree)??p.accent;return{background:l,surface:i,primary:o,secondary:s,accent:c,onPrimary:m(e?.onPrimary,a?.titleColor)??(0,n.VD)(o),onSurface:m(e?.onSurface,a?.bodyColor)??(0,n.VD)(i),onBackground:(0,n.VD)(l),onSecondary:(0,n.VD)(s),onAccent:(0,n.VD)(c)}},I=e=>M(e?.semanticColors,e),V=e=>({heading:e?.fonts?.heading||e?.fonts?.body||e?.client?.preset?.titleFont?.value||e?.client?.preset?.bodyFont?.value||"Inter",body:e?.fonts?.body||e?.fonts?.heading||e?.client?.preset?.bodyFont?.value||e?.client?.preset?.titleFont?.value||"Inter"})},43087:function(e,t,r){r.d(t,{Pu:function(){return h},VD:function(){return f},_V:function(){return m}});let n=e=>{let t=/^#?([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(e.trim());if(!t)return null;let r=t[1];3===r.length&&(r=r.split("").map(e=>e+e).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a=({r:e,g:t,b:r})=>`#${[e,t,r].map(e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,"0")).join("").toUpperCase()}`,l=e=>{let t=n(e);if(!t)return null;let[r,a,l]=t;return{r,g:a,b:l}},i=({r:e,g:t,b:r})=>{let n=e/255,a=t/255,l=r/255,i=Math.max(n,a,l),o=Math.min(n,a,l),s=i-o,c=0,u=(i+o)/2;return 0!==s&&(c=(i===n?(a-l)/s%6:i===a?(l-n)/s+2:(n-a)/s+4)*60)<0&&(c+=360),{h:c,s:0===s?0:s/(1-Math.abs(2*u-1)),l:u}},o=({h:e,s:t,l:r})=>{let n=(1-Math.abs(2*r-1))*t,a=e/60,l=n*(1-Math.abs(a%2-1)),i=0,o=0,s=0;a>=0&&a<1?[i,o,s]=[n,l,0]:a<2?[i,o,s]=[l,n,0]:a<3?[i,o,s]=[0,n,l]:a<4?[i,o,s]=[0,l,n]:a<5?[i,o,s]=[l,0,n]:[i,o,s]=[n,0,l];let c=r-n/2;return{r:(i+c)*255,g:(o+c)*255,b:(s+c)*255}},s=e=>{let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},c=e=>{let t=n(e);if(!t)return null;let[r,a,l]=t;return .2126*s(r)+.7152*s(a)+.0722*s(l)},u=(e,t)=>{let r=c(e),n=c(t);return null===r||null===n?0:(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},d=({hsl:e,backgroundHex:t,targetRatio:r,direction:n})=>{let l="darken"===n?0:e.l,i="darken"===n?e.l:1,s=null;for(let c=0;c<14;c+=1){let c=(l+i)/2;u(a(o({...e,l:c})),t)>=r?(s=c,"darken"===n?l=c:i=c):"darken"===n?i=c:l=c}return s},p=(e,t,r=4.5)=>
1{if(u(e,t)>=r)return a(l(e)??{r:0,g:0,b:0});let n=l(e);if(n){let e=i(n),l=["darken","lighten"].map(n=>{let l=d({hsl:e,backgroundHex:t,targetRatio:r,direction:n});if(null===l)return null;let i=a(o({...e,l:l}));return{color:i,distance:Math.abs(l-e.l),ratio:u(i,t)}}).filter(Boolean);if(l.length>0)return l.reduce((e,t)=>t.distance!==e.distance?t.distance<e.distance?t:e:t.ratio>e.ratio?t:e).color}return f(t)},h=(e,t,r=4.5)=>{let n=a(l(e)??{r:0,g:0,b:0});if(0===t.length)return n;let i=t.reduce((t,r)=>u(e,r)<u(e,t)?r:t);return p(e,i,r)},f=e=>u("#000000",e)>=u("#FFFFFF",e)?"#000000":"#FFFFFF",m=e=>{if(0===e.length)return"#000000";let t=t=>Math.min(...e.map(e=>u(t,e)));return t("#000000")>=t("#FFFFFF")?"#000000":"#FFFFFF"}}}]);
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.