PageSourceSearch

https://bnbverdict.com/assets/Home-DkUP2nk8.js

js bnbverdict.com collected 2026-10-02 01:24:47 UTC 29,241 bytes, 1 lines download raw bytes

1import{b as s,j as e}from"./react-B0wc2Any.js";import{E as D,b as S,a as M}from"./motion-C2wTwHAc.js";import{s as L}from"./ArrowRight.es-CzDpO1EH.js";import{p as ae,u as re,t as le,n as ue,c as T}from"./index-BbZMmn1j.js";import{m as me}from"./AndroidLogo.es-D9oKqNqv.js";import{a as xe,s as fe,h as pe}from"./chrome-hero-CrQ27Dpi.js";import{l as _e,d as ge}from"./illustrationI18n-D6RVZQCe.js";import{u as w}from"./i18n-DJc_5yFS.js";import{c as B,m as v,u as k,b as ye,a as b,e as F}from"./motion-BiWdWbHC.js";import{L as je,c as be,u as ve}from"./router-r2PZsM_J.js";import{i as ie,a as we,e as Ne}from"./schemas-CaH-3pEq.js";import{g as Ee}from"./grade-D2Ak0PjX.js";import{r as ne,a as G,C as Ce}from"./limits-C6_KYMA6.js";import{S as Ae}from"./Seo-C6l5hBL1.js";import"./helmet-yHwi_Tly.js";import"./validators-UcdDTck4.js";const He=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),s.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),ke=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),s.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),oe=s.forwardRef((t,a)=>s.createElement(ae,{ref:a,...t,weights:He}));oe.displayName="ClipboardTextIcon";const Fe=oe,ce=s.forwardRef((t,a)=>s.createElement(ae,{ref:a,...t,weights:ke}));ce.displayName="PlusIcon";const Se=ce;function Ie(){const{t}=w(),a=re(),r=B(),n=s.useRef(null);s.useEffect(()=>{const h=n.current;
1if(h)return xe(h,{still:!0,decimal:ge(a)})},[a]);const c=s.useMemo(()=>_e(pe,t),[t,a]),o=[{key:"android",to:`/${a}/android`,Icon:me,art:e.jsx("img",{className:"platform__svg",src:"/share-menu-still.svg",alt:"",width:534,height:806})},{key:"chrome",to:`/${a}/chrome`,Icon:fe,art:e.jsx("div",{className:"platform__illu","aria-hidden":!0,dangerouslySetInnerHTML:{__html:c}})}];return e.jsxs(v.section,{ref:n,id:"platforms",className:"platforms","aria-labelledby":"platforms-title",initial:r?!1:{opacity:0,y:16},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.2},transition:{duration:.4,ease:[.16,1,.3,1]},children:[e.jsxs("div",{className:"platforms__header",children:[e.jsx("h2",{id:"platforms-title",className:"platforms__title",children:t("platforms.title")}),e.jsx("p",{className:"platforms__subtitle",children:t("platforms.subtitle")})]}),e.jsx("div",{className:"platforms__grid",children:o.map(({key:h,to:m,Icon:i,art:u})=>e.jsxs(je,{to:m,className:"platform",children:[e.jsxs("div",{className:"platform__art",children:[e.jsx("span",{className:"platform__halo","aria-hidden":!0}),u]}),e.jsxs("span",{className:"platform__name",children:[e.jsx(i,{size:18,weight:"fill","aria-hidden":!0}),t(`${h}.eyebrow`)]}),e.jsx("p",{className:"platform__line",children:t(`platforms.${h}`)}),e.jsxs("span",{className:"platform__cta",children:[t(`${h}.learn_more`),e.jsx(L,{size:16,weight:"bold","aria-hidden":!0})]})]},h))})]})}function Ve(){window.scrollTo({top:0,behavior:"smooth"}),window.setTimeout(()=>{document.querySelector('input[type="url"]')?.focus({preventScroll:!0})},520)}function Me(){const{t}=w(),a=t("home.anecdotes.items",{returnObjects:!0}),r=t("home.anecdotes.cta_label"),n=t("home.anecdotes.cta_aria");return e.jsx(v.section,{className:"anecdote-wall","aria-label":t("home.anecdotes.section_label"),initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.15},variants:{hidden:{},visible:{transition:{staggerChildren:.1,delayChildren:.05}}},children:a.map((c,o)=>{const h=o===0,m=["anecdote-card",h?"anecdote-card--master":"anecdote-card--satellite",h?"":`anecdote-card--sat-${o}`].filter(Boolean).join(" ");return e.jsxs(v.article,{className:m,variants:{hidden:{opacity:0},visible:{opacity:1,transition:{duration:.42,ease:D}}},children:[e.jsx("blockquote",{className:"anecdote-card__quote",children:c.quote}),e.jsxs("div",{className:"anecdote-card__footer",children:[e.jsx("p",{className:"anecdote-card__signature",children:c.signature}),e.jsxs("button",{type:"button",className:"anecdote-card__cta","aria-label":n,onClick:()=>{le("anecdote_cta_click",{index:o}),Ve()},children:[e.jsx("span",{className:"anecdote-card__cta-label",children:r}),e.jsx(L,{size:16,weight:"bold","aria-hidden":!0,className:"anecdote-card__cta-arrow"})]})]})]},o)})})}const z=5,Te=/^[\p{L}\p{N} \-'’]+$/u;function Oe(t){return t.trim().toLowerCase()}function $e(t){const a=s.useId(),{t:r}=w(),[n,c]=s.useState("");function o(i){const u=Oe(i);if(!(!u||u.length>30)&&Te.test(u)){if(t.value.includes(u)){c("");return}t.value.length>=z||(t.onChange([...t.value,u]),c(""))}}function h(i){i.key==="Enter"||i.key===","?(i.preventDefault(),o(n)):i.key==="Backspace"&&n===""&&t.value.length>0&&t.onChange(t.value.slice(0,-1))}function m(i){t.onChange(t.value.filter((u,_)=>_!==i))}return e.jsxs("div",{className:"axes-input",children:[e.jsxs("label",{htmlFor:a,className:"axes-input__label",children:[r("home.axes_label")," ",e.jsx("span",{className:"axes-input__hint",children:r("home.axes_hint",{count:z})})]}),e.jsxs("div",{className:"axes-input__field",children:[t.value.map((i,u)=>e.jsxs("span",{className:"axes-input__chip",children:[i,e.jsx("button",{type:"button",className:"axes-input__chip-x","aria-label":r("home.axes_remove",{value:i}),onClick:()=>m(u),disabled:t.disabled,children:"×"})]},`${i}-${u}`)),e.jsx("input",{id:a,type:"text",className:"axes-input__entry",value:n,onChange:i=>c(i.target.value),onKeyDown:h,onBlur:()=>n&&o(n),placeholder:t.value.length===0?r("home.axes_placeholder"):"",maxLength:30,disabled:t.disabled||t.value.length>=z})]})]})}const de=32,W=ne(de,0).circumference,Ze=[{key:"good",score:"9.5",scoreFraction:.95,ringColor:"#1f7a3b",flags:[{severity:"low"},{severity:"low"},{severity:"low"}]},{key:"mixed",score:"6.3",scoreFraction:.63,ringColor:"#a85a0e",flags:[{severity:"medium"},{severity:"low"},{severity:"medium"}]},{key:"bad",score:"3.8",scoreFraction:.38,ringColor:"#c12d2d",flags:[{severity:"high"},{severity:"high"},{severity:"medium"}]}],E=Ze.map(t=>({...t,gradeKey:Ee(t.scoreFraction*10).key}
1)),Re=3200,O=.28,$=.46,Z=.08,P=.9,De=.7,q=1.1,X=.35,Y=-12,K=14;function R(t){return ne(de,t).dashOffset}function Le(){const t=B()??!1,[a,r]=s.useState(0),n=E[a],c=k(1),o=k(0),h=k(1),m=k(0),i=k(t?R(E[0].scoreFraction):W),u=k(E[0].ringColor),_=k(t?E[0].scoreFraction*10:0),[g,C]=s.useState(t?E[0].score:"0.0");return ye(_,"change",y=>{C(y.toFixed(1))}),s.useEffect(()=>{t&&(c.set(1),o.set(0),h.set(1),m.set(0),i.set(R(n.scoreFraction)),u.set(n.ringColor),_.set(n.scoreFraction*10),C(n.score))},[t,n,c,o,h,m,i,u,_]),s.useEffect(()=>{if(t)return;const y=b(i,R(E[0].scoreFraction),{duration:q,delay:X,ease:S}),N=b(_,E[0].scoreFraction*10,{duration:q,delay:X,ease:S});return()=>{y.stop(),N.stop()}},[]),s.useEffect(()=>{if(t)return;let y=!1,N,A=[];const I=x=>new Promise(l=>{N=window.setTimeout(l,x)}),V=()=>new Promise(x=>{requestAnimationFrame(()=>x())});let d=0;return(async()=>{for(;!y;){if(A=[],await I(Re),y)return;const x=b(h,0,{duration:O,ease:M,delay:Z});if(A.push(b(c,0,{duration:O,ease:M}),b(o,Y,{duration:O,ease:M}),x,b(m,Y,{duration:O,ease:M,delay:Z})),await x,y)return;d=(d+1)%E.length;const l=E[d];if(r(d),o.set(K),m.set(K),await V(),y)return;const j=b(h,1,{duration:$,ease:S,delay:Z});if(A.push(b(i,R(l.scoreFraction),{duration:P,ease:"easeInOut"}),b(_,l.scoreFraction*10,{duration:P,ease:"easeInOut"}),b(u,l.ringColor,{duration:De,ease:"easeInOut"}),b(c,1,{duration:$,ease:S}),b(o,0,{duration:$,ease:S}),j,b(m,0,{duration:$,ease:S,delay:Z})),await j,y)return}})(),()=>{y=!0,N!==void 0&&window.clearTimeout(N),A.forEach(x=>x.stop())}},[t,c,o,h,m,i,u,_]),{variant:n,scoreDisplay:g,backOpacity:c,backY:o,frontOpacity:h,frontY:m,ringOffset:i,ringColor:u}}const ze="20 96 1112 678",p={cx:250,cy:288,r:120},U=2*Math.PI*p.r,Q=[468,534,600],Ue="M-10 0 l7 8 l14 -16",We="M-9 -9 l18 18 M9 -9 l-18 18",Be={good:[470,412,360],mixed:[398,346,300],bad:[322,280,242]},Ge={low:"#B0A186",medium:"#a85a0e",high:"#c12d2d"},Pe={good:[186,150,206],mixed:[262,214,240],bad:[300,268,288]};function qe(){const{t}=w(),a=re(),{variant:r,scoreDisplay:n,frontOpacity:c,frontY:o,backOpacity:h,backY:m,ringOffset:i,ringColor:u}=Le(),_=F(i,l=>U*l/W),g=F(i,l=>1-l/W),C=F(g,l=>p.cx+p.r*Math.cos((-90+l*360)*Math.PI/180)),y=F(g,l=>p.cy+p.r*Math.sin((-90+l*360)*Math.PI/180)),N=F(g,l=>l>.02?1:0),A=F(o,l=>l*5),I=F(m,l=>l*5),V=a==="fr"?n.replace(".",","):n,d=r.key==="bad",f=Be[r.key],x=Pe[r.key];return e.jsxs(v.div,{className:"hero-illu",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.32,delay:.15,ease:D},children:[e.jsx("span",{className:"hero-illu__halo","aria-hidden":!0}),e.jsxs("svg",{viewBox:ze,role:"img","aria-label":t("home.illustration.alt"),xmlns:"http://www.w3.org/2000/svg",className:"hero-illu__svg",children:[e.jsxs("defs",{children:[e.jsxs("radialGradient",{id:"cl-card",cx:"0.34",cy:"0.08",r:"1.15",children:[e.jsx("stop",{offset:"0",stopColor:"#FFFFFF"}),e.jsx("stop",{offset:".55",stopColor:"#FFFCF7"}),e.jsx("stop",{offset:"1",stopColor:"#F8F0E4"})]}),e.jsxs("linearGradient",{id:"cl-rim",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:".9"}),e.jsx("stop",{offset:".5",stopColor:"#FFFFFF",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"cl-track",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:"#F2EADC"}),e.jsx("stop",{offset:"1",stopColor:"#E8DDCB"})]}),e.jsxs("linearGradient",{id:"cl-line",x1:"0",y1:"0",x2:"1",y2:"0",children:[e.jsx("stop",{offset:"0",stopColor:"#EFE7DA"}),e.jsx("stop",{offset:"1",stopColor:"#E6DCCB"})]}),e.jsxs("radialGradient",{id:"cl-circle",cx:"0.36",cy:"0.3",r:"1",children:[e.jsx("stop",{offset:"0",stopColor:"#FBF6EE"}),e.jsx("stop",{offset:"1",stopColor:"#EEE6D8"})]}),e.jsxs("linearGradient",{id:"cl-sheen",x1:"0",y1:"0",x2:"1",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:"#ffffff",stopOpacity:"0.4"}),e.jsx("stop",{offset:"0.5",stopColor:"#ffffff",stopOpacity:"0.08"}),e.jsx("stop",{offset:"1",stopColor:"#ffffff",stopOpacity:"0"})]}),e.jsx("filter",{id:"sh-amb",x:"-45%",y:"-45%",width:"190%",height:"200%",children:e.jsx("feDropShadow",{dx:"0",dy:"34",stdDeviation:"40",floodColor:"#bd9b7d",floodOpacity:"0.30"})}),e.jsx("filter",{id:"sh-key",x:"-45%",y:"-45%",width:"190%",height:"200%",children:e.jsx("feDropShadow",{dx:"0",dy:"10",stdDeviation:"14",floodColor:"#9c8268",floodOpacity:"0.16"})}),e.jsx("filter",{id:"glowF",x:"-150%",y:"-150%",width:"400%",height:"400%",children:e.jsx("feGaussianBlur",{stdDeviation:"7"})}),e.jsx("filter",{id:"blur3",x:"-70%",y:"-70%",width:"240%",height:"240%",children:e.jsx("feGaussianBlur",{stdDeviation:"2.6"})})]}),e.jsxs("g",{transform:"translate(-12 20)",children:[e.jsx("rect",{x:"150",y:"120",width:"788",height:"556",rx:"48",fill:"#F0E9DE",transform:"rotate(2.4 545 398)",filter:"url
1(#sh-key)"}),e.jsx("rect",{x:"52",y:"92",width:"816",height:"568",rx:"54",fill:"url(#cl-card)",filter:"url(#sh-amb)"}),e.jsx("rect",{x:"52",y:"92",width:"816",height:"568",rx:"54",fill:"url(#cl-card)",filter:"url(#sh-key)"}),e.jsx("rect",{x:"55",y:"95",width:"810",height:"562",rx:"51",fill:"none",stroke:"url(#cl-rim)",strokeWidth:"2"}),e.jsx("ellipse",{cx:"230",cy:"150",rx:"170",ry:"50",fill:"#fff",opacity:"0.55",filter:"url(#blur3)"}),e.jsx(v.circle,{cx:p.cx,cy:p.cy,r:"138",fill:u,filter:"url(#glowF)",style:{opacity:.18}}),e.jsx("circle",{cx:p.cx,cy:p.cy,r:p.r,fill:"none",stroke:"url(#cl-track)",strokeWidth:"17"}),e.jsx(v.circle,{cx:p.cx,cy:p.cy,r:p.r,fill:"none",stroke:u,strokeWidth:"17",strokeLinecap:"round",strokeDasharray:U,strokeDashoffset:_,transform:`rotate(-90 ${p.cx} ${p.cy})`}),e.jsx(v.circle,{cx:p.cx,cy:p.cy,r:p.r,fill:"none",stroke:"url(#cl-sheen)",strokeWidth:"17",strokeLinecap:"round",strokeDasharray:U,strokeDashoffset:_,transform:`rotate(-90 ${p.cx} ${p.cy})`}),e.jsx(v.circle,{cx:C,cy:y,r:"12",fill:"#fff",stroke:u,strokeWidth:"6",style:{opacity:N}}),e.jsx("text",{x:p.cx,y:"278",textAnchor:"middle",dominantBaseline:"central",fontWeight:"800",fontSize:"80",fill:"#1E2540",style:{fontVariantNumeric:"tabular-nums"},children:V}),e.jsx("text",{x:p.cx,y:"352",textAnchor:"middle",dominantBaseline:"central",fontWeight:"700",fontSize:"26",fill:"#AE9C84",children:"/10"}),e.jsx("path",{d:"M388 196 l4 11 l11 4 l-11 4 l-4 11 l-4 -11 l-11 -4 l11 -4 z",fill:"#F4C868"}),e.jsx("path",{d:"M132 250 l3 8 l8 3 l-8 3 l-3 8 l-3 -8 l-8 -3 l8 -3 z",fill:"#F2B45C"}),e.jsx("text",{x:"446",y:"232",fontWeight:"700",fontSize:"20",letterSpacing:"3.6",fill:"#B49C80",children:t("result.verdict_label").toUpperCase()}),Q.map(l=>e.jsx("circle",{cx:"150",cy:l,r:"24",fill:"url(#cl-circle)"},l)),e.jsxs(v.g,{style:{opacity:c,y:A},children:[e.jsx("text",{x:"446",y:"298",fontWeight:"700",fontSize:"46",fill:"#1E2540",children:t(`home.illustration.${r.key}.verdict_short`)}),Q.map((l,j)=>e.jsxs("g",{children:[e.jsx("rect",{x:"196",y:l-10,width:f[j],height:"20",rx:"10",fill:"url(#cl-line)"}),e.jsx(v.path,{transform:`translate(150 ${l})`,d:d?We:Ue,fill:"none",stroke:u,strokeWidth:"5.5",strokeLinecap:"round",strokeLinejoin:"round"})]},l))]})]}),e.jsxs("g",{transform:"translate(694 404) scale(0.9) rotate(-3 235 200)",children:[e.jsx("rect",{x:"0",y:"0",width:"470",height:"400",rx:"40",fill:"url(#cl-card)",filter:"url(#sh-amb)"}),e.jsx("rect",{x:"0",y:"0",width:"470",height:"400",rx:"40",fill:"url(#cl-card)",filter:"url(#sh-key)"}),e.jsx("rect",{x:"4",y:"4",width:"462",height:"392",rx:"37",fill:"none",stroke:"url(#cl-rim)",strokeWidth:"2.6"}),e.jsx("text",{x:"44",y:"74",fontWeight:"700",fontSize:"26",letterSpacing:"4.0",fill:"#B49C80",children:t("result.red_flags").toUpperCase()}),e.jsx(v.g,{style:{opacity:h,y:I},children:r.flags.map((l,j)=>{const H=Ge[l.severity];return e.jsxs("g",{transform:`translate(0 ${j*84})`,children:[e.jsx("path",{d:"M68 150 l30 52 a8 8 0 0 1 -7 12 l-46 0 a8 8 0 0 1 -7 -12 z",fill:"none",stroke:H,strokeWidth:"6",strokeLinejoin:"round"}),e.jsx("rect",{x:"66.5",y:"176",width:"5",height:"20",rx:"2.5",fill:H}),e.jsx("circle",{cx:"69",cy:"205",r:"3.4",fill:H}),e.jsx("rect",{x:"128",y:"164",width:x[j],height:"20",rx:"10",fill:"url(#cl-line)"})]},j)})})]}),e.jsxs("g",{transform:"translate(700 120) scale(0.9) rotate(6 235 180)",children:[e.jsx("rect",{x:"0",y:"0",width:"470",height:"360",rx:"40",fill:"url(#cl-card)",filter:"url(#sh-amb)"}),e.jsx("rect",{x:"0",y:"0",width:"470",height:"360",rx:"40",fill:"url(#cl-card)",filter:"url(#sh-key)"}),e.jsx("rect",{x:"4",y:"4",width:"462",height:"352",rx:"37",fill:"none",stroke:"url(#cl-rim)",strokeWidth:"2.6"}),e.jsx("text",{x:"44",y:"74",fontWeight:"700",fontSize:"26",letterSpacing:"4.4",fill:"#B49C80",children:t("home.illustration.compare_label").toUpperCase()}),[{x:44,cx:102,score:"7,4",color:"#a85a0e",best:!1},{x:178,cx:236,score:"8,9",color:"#1f7a3b",best:!0},{x:312,cx:370,score:"5,2",color:"#c12d2d",best:!1}].map(l=>e.jsxs("g",{children:[e.jsx("rect",{x:l.x,y:"150",width:"116",height:"20",rx:"10",fill:"url(#cl-line)"}),e.jsx("text",{x:l.cx,y:"135",textAnchor:"middle",fontWeight:"800",fontSize:"52",fill:l.color,children:l.score}),l.best&&e.jsx("circle",{cx:l.cx,cy:"206",r:"9",fill:"#e00b41"})]},l.score)),e.jsx("rect",{x:"44",y:"266",width:"384",height:"18",rx:"9",fill:"url(#cl-line)"}),e.jsx("rect",{x:"44",y:"306",width:"300",height:"18",rx:"9",fill:"url(#cl-line)"})]})]})]})}function Xe(){const{t}=w(),a=()=>{typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})};return e.jsxs("section",{className:"home-cta",children:[e.jsx("h2",{className:"home-cta__title",children:t("home.cta_band.title")}),e.jsxs("button",{type:"button",className:"home-cta__btn",onClick:a,children:[e.jsx("span",{children:t("home.cta_band.button")}),e.jsx(L,{size:18,weight:"bold","aria-hidden":!0})]})]})}const Ye=[{key:"cleanliness",icon:"proprete"},{key:"noise",icon:"bruit"},{key:"photos",icon:"photos"},{key:"host",icon:"hote"},{key:"safety",icon:"securite"},{key:"value",icon:"qualite-prix"}];function Ke(){const{t}=w();return e.jsxs("section",{className:"home-signals","aria-labelledby":"signals-title",children:[e.jsxs("div",{className:"home-signals__head",children:[e.jsx("h2",{id:"signals-title",className:"home-signals__title",children:t("home.signals.title")}),e.jsx("p",{className:"home-signals__subtitle",children:t("home.signals.subtitle")})]}),e.jsx("ul",{className:"home-signals__grid",children:Ye.map(({key:a,icon:r})=>e.jsxs("li",{className:"home-signals__item",children:[e.jsx("span",{className:"home-signals__icon","aria-hidden":!0,
1children:e.jsx("img",{src:`/icons/home/${r}.png`,srcSet:`/icons/home/${r}-2x.png 2x`,alt:"",width:60,height:60,loading:"lazy",decoding:"async"})}),e.jsxs("div",{className:"home-signals__text",children:[e.jsx("h3",{className:"home-signals__label",children:t(`home.signals.${a}_label`)}),e.jsx("p",{className:"home-signals__desc",children:t(`home.signals.${a}_desc`)})]})]},a))})]})}const Qe=[{key:"all",icon:"avis"},{key:"worst",icon:"pires"},{key:"independent",icon:"independant"}];function Je(){const{t}=w();return e.jsxs("section",{className:"home-trust","aria-labelledby":"trust-title",children:[e.jsxs("div",{className:"home-trust__intro",children:[e.jsx("h2",{id:"trust-title",className:"home-trust__title",children:t("home.trust.title")}),e.jsx("p",{className:"home-trust__lead",children:t("home.trust.lead")})]}),e.jsx("ul",{className:"home-trust__points",children:Qe.map(({key:a,icon:r})=>e.jsxs("li",{className:"home-trust__point",children:[e.jsx("span",{className:"home-trust__icon","aria-hidden":!0,children:e.jsx("img",{src:`/icons/home/${r}.png`,srcSet:`/icons/home/${r}-2x.png 2x`,alt:"",width:52,height:52,loading:"lazy",decoding:"async"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"home-trust__point-label",children:t(`home.trust.${a}_label`)}),e.jsx("p",{className:"home-trust__point-desc",children:t(`home.trust.${a}_desc`)})]})]},a))})]})}const et=[{key:"paste",src:"/how-paste.svg",w:760,h:350},{key:"read",src:"/how-read.svg",w:760,h:380},{key:"verdict",src:"/how-verdict.svg",w:760,h:360}],J=[9,72,24,91],ee=[2,12,46,58],te=(t,a)=>{const r=1-t;return r*r*r*a[0]+3*r*r*t*a[1]+3*r*t*t*a[2]+t*t*t*a[3]},se=(t,a)=>{const r=1-t;return 3*r*r*(a[1]-a[0])+6*r*t*(a[2]-a[1])+3*t*t*(a[3]-a[2])},tt=Array.from({length:15},(t,a)=>a/14).map(t=>({left:te(t,J),top:te(t,ee)/60*100,angle:Math.atan2(se(t,ee),se(t,J))*180/Math.PI+90}));function st(){const{t}=w(),a=B();return e.jsxs("section",{className:"how home__how","aria-labelledby":"how-title",children:[e.jsxs("div",{className:"how__header",children:[e.jsx("h2",{id:"how-title",className:"how__title",children:t("home.how.title")}),e.jsx("p",{className:"how__subtitle",children:t("home.how.subtitle")})]}),e.jsxs("div",{className:"how__steps",children:[e.jsx("div",{className:"how__trail","aria-hidden":!0,children:tt.map((r,n)=>e.jsx("span",{className:"how__paw",style:{left:`${r.left}%`,top:`${r.top}%`,transform:`translate(-50%, -50%) rotate(${r.angle}deg) translateX(${n%2?7:-7}px)`},children:e.jsxs("svg",{viewBox:"0 0 24 26",fill:"currentColor",children:[e.jsx("ellipse",{cx:"4.6",cy:"13",rx:"1.85",ry:"3.2",transform:"rotate(-40 4.6 13)"}),e.jsx("ellipse",{cx:"8.5",cy:"8",rx:"2",ry:"3.5",transform:"rotate(-17 8.5 8)"}),e.jsx("ellipse",{cx:"12",cy:"6.3",rx:"2.1",ry:"3.7"}),e.jsx("ellipse",{cx:"15.5",cy:"8",rx:"2",ry:"3.5",transform:"rotate(17 15.5 8)"}),e.jsx("ellipse",{cx:"19.4",cy:"13",rx:"1.85",ry:"3.2",transform:"rotate(40 19.4 13)"}),e.jsx("path",{d:"M12 25.4 C 6.7 25.4 4.1 21 6.1 17.7 C 7.5 15.2 9.6 14.4 12 14.4 C 14.4 14.4 16.5 15.2 17.9 17.7 C 19.9 21 17.3 25.4 12 25.4 Z"})]})},n))}),e.jsx("ol",{className:"how__steps-list",children:et.map(({key:r,src:n,w:c,h:o},h)=>e.jsxs(v.li,{className:"how__step",initial:a?!1:{opacity:0,y:18},whileInView:a?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.4},transition:{duration:.4,delay:h*.08,ease:D},children:[e.jsx("img",{className:"how__illu",src:n,alt:"",width:c,height:o}),e.jsxs("div",{className:"how__step-body",children:[e.jsxs("h3",{className:"how__step-title",children:[e.jsx("span",{className:"how__num","aria-hidden":!0,children:h+1}),t(`home.how.${r}.title`)]}),e.jsx("p",{className:"how__step-desc",children:t(`home.how.${r}.desc`)})]})]},r))})]})]})}const he=ie,at=typeof navigator<"u"&&!!navigator.clipboard?.readText;function rt(t){const a=s.useId(),{t:r}=w(),n=t.value.length>0&&!he(t.value),c=async()=>{try{const i=await navigator.clipboard.readText();i.trim()&&t.onChange(i.trim())}catch{}},o=at&&t.value.length===0&&!t.disabled,h=!!t.trailing,m=["url-input__field-wrap"];return(o||h)&&m.push("url-input__field-wrap--has-trailing"),o&&m.push("url-input__field-wrap--has-paste"),o&&h&&m.push("url-input__field-wrap--has-both"),e.jsxs("div",{className:"url-input",children:[e.jsx("label",{htmlFor:a,className:"url-input__label",children:r("home.url_label")}),e.jsxs("div",{className:m.join(" "),children:[e.jsx("input",{id:a,type:"url",inputMode:"url",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"url-input__field","data-invalid":n,placeholder:r("home.url_placeholder"),value:t.value,onChange:i=>t.onChange(i.target.value),disabled:t.disabled}),(o||h)&&e.jsxs("div",{className:"url-input__trailing",children:[o&&e.jsxs("button",{type:"button",className:"url-input__paste",onClick:c,title:r("home.url_paste"),children:[e.jsx(Fe,{size:15,weight:"bold","aria-hidden":!0}),e.jsx("span",{children:r("home.url_paste")})]}),t.trailing]})]}),n&&e.jsx("span",{className:"url-input__hint url-input__hint--error",children:r("home.url_invalid")})]})}function lt(t,a,r){const n=t.map(i=>i.trim()),c={},o=new Map,h=[],m=[];
1return n.forEach((i,u)=>{if(!i){c[u]="url_required";return}if(!ie(i)){c[u]="url_invalid";return}const _=we.safeParse({url:i,lang:r,axes:a.length>0?a:void 0});if(!_.success){const C=_.error.issues[0]?.path[0];c[u]=C==="url"?"url_invalid":"generic";return}const g=Ne(_.data.url);if(!g){c[u]="url_invalid";return}if(o.has(g)){c[u]="url_duplicate";return}o.set(g,u),h.push(g),m.push(_.data.url)}),Object.keys(c).length>0?{ok:!1,errors:c}:{ok:!0,listingIds:h,validUrls:m}}function vt(){const{t}=w(),a=be(),r=ve(),[n,c]=s.useState([""]),[o,h]=s.useState([]),[m,i]=s.useState(!1),[u,_]=s.useState({}),g=s.useRef(null);s.useEffect(()=>()=>{g.current!=null&&(window.clearTimeout(g.current),g.current=null)},[]),s.useEffect(()=>{const d=r.state?.prefillUrl;typeof d=="string"&&d&&c(f=>f.length===1&&f[0]===""?[d]:f)},[]),s.useEffect(()=>{let d=!1;return(async()=>{try{if(!navigator.clipboard?.readText)return;try{if((await navigator.permissions.query({name:"clipboard-read"})).state!=="granted")return}catch{return}const f=(await navigator.clipboard.readText()).trim();if(d||!he(f))return;c(x=>x.length===1&&x[0]===""?[f]:x)}catch{}})(),()=>{d=!0}},[]);function C(d,f){c(x=>x.map((l,j)=>j===d?f:l)),u[d]&&_(x=>{const l={...x};return delete l[d],l})}function y(){c(d=>d.length>=G?d:[...d,""])}function N(d){c(f=>f.length<=1?f:f.filter((x,l)=>l!==d)),_(f=>{const x={};for(const[l,j]of Object.entries(f)){const H=Number(l);H<d?x[H]=j:H>d&&(x[H-1]=j)}return x})}function A(d){h(d)}function I(){if(m||g.current!=null)return;const d=lt(n,o,T());if(!d.ok){_(d.errors);return}const{listingIds:f,validUrls:x}=d;_({}),i(!0),le(f.length===1?"analyze_submit":"compare_submit",{listings:f.length,axes:o.length,lang:T()}),g.current=window.setTimeout(()=>{g.current=null;const l=o.length>0?o:void 0;f.length===1?a(`/${T()}/analyze/${f[0]}`,{state:{url:x[0],axes:l}}):a(`/${T()}/compare/${f.join("-")}`,{state:{axes:l}})},Ce)}const V=m?t("home.cta_loading"):n.length>=2?t("home.cta_compare"):t("home.cta");return e.jsxs(v.div,{className:"home",initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.24,ease:D},children:[e.jsx(Ae,{title:t("seo.home.title"),description:t("seo.home.description"),path:"/"}),e.jsxs("div",{className:"home__left",children:[e.jsxs("section",{className:"home__hero",children:[e.jsx("h1",{className:"home__title",children:t("home.title")}),e.jsx("p",{className:"home__subtitle",children:t("home.subtitle")})]}),e.jsxs("form",{className:"home__form",onSubmit:d=>{d.preventDefault(),I()},children:[e.jsxs("div",{className:"home__url-list",children:[n.map((d,f)=>{const x=u[f];return e.jsxs("div",{className:"home__field",children:[e.jsx(rt,{value:d,onChange:l=>C(f,l),disabled:m,trailing:n.length>1?e.jsx("button",{type:"button",className:"home__url-remove",onClick:()=>N(f),disabled:m,"aria-label":t("home.remove_url"),title:t("home.remove_url"),children:e.jsx(ue,{size:14,weight:"bold","aria-hidden":!0})}):null}),x&&e.jsx("p",{className:"home__form-error",role:"alert","aria-live":"polite",children:t(`home.error.${x}`)})]},f)}),n.length<G?e.jsxs("button",{type:"button",className:"home__url-add",onClick:y,disabled:m,children:[e.jsx(Se,{size:14,weight:"bold","aria-hidden":!0}),t("home.add_url")]}):e.jsx("p",{className:"home__url-max",role:"status",children:t("home.add_url_max")})]}),e.jsx($e,{value:o,onChange:A,disabled:m}),e.jsxs("button",{type:"submit",className:"home__cta","aria-busy":m,children:[e.jsx("span",{className:"home__cta-label",children:V}),e.jsx("span",{className:"home__cta-arrow","aria-hidden":!0,children:e.jsx(L,{size:18,weight:"bold"})})]})]})]}),e.jsx("div",{className:"home__right",children:e.jsx(qe,{})}),e.jsx(Me,{}),e.jsx(st,{}),e.jsx(Ie,{}),e.jsx(Ke,{}),e.jsx(Je,{}),e.jsx(Xe,{})]})}export{vt as default};

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.