1import{r as h,b as j,j as t,M as w,c as v,S as A,d as b,w as T,e as $,f as k,g as z,O as I,i as H}from"./chunk-NL6KNZEE-Dh7cvbf_.js";import{u as x}from"./user-DA6gLG_U.js";import{d as g,c as f}from"./utils-BW_aBSMx.js";const N="/assets/app-Qj7stRyr.css";function y({lang:o="en",theme:e="light",children:a,DOMAIN:n,GOOGLE_ADS_ID:r,GOOGLE_ANALYTICS_ID:i,title:p}){const s=h.useRef(null),l=j();return h.useEffect(()=>{s.current&&(s.current.lang=o)},[o]),h.useEffect(()=>{let c,d,u,m;return r&&!l&&(c=document.createElement("script"),c.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-${r}`,c.async=!0,c.crossOrigin="anonymous",document.head.appendChild(c)),i&&(d=document.createElement("script"),d.src=`https://www.googletagmanager.com/gtag/js?id=${i}`,d.async=!0,document.head.appendChild(d),u=document.createElement("script"),u.id="gtag-init",u.async=!0,u.textContent=` 2 window.dataLayer = window.dataLayer || []; 3 function gtag(){dataLayer.push(arguments);} 4 gtag('js', new Date()); 5 gtag('config', '${i}', { 6 page_path: window.location.pathname, 7 }); 8 `,document.head.appendChild(u)),n&&(m=document.createElement("script"),m.src="https://app.pageview.app/js/script.js",m.dataset.domain=new URL(n).hostname,m.defer=!0,document.head.appendChild(m)),()=>{c&&c.remove(),d&&d.remove(),u&&u.remove(),m&&m.remove()}},[r,i,n,l]),t.jsxs("html",{ref:s,lang:o,"data-theme":e,children:[t.jsxs("head",{children:[t.jsx("meta",{charSet:"utf-8"}),t.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),p&&t.jsx("title",{children:p}),r&&t.jsx("meta",{name:"google-adsense-account",content:`ca-${r}`}),t.jsx(w,{}),t.jsx(v,{})]}),t.jsxs("body",{children:[a,t.jsx(A,{}),t.jsx(b,{})]})]})}const P=()=>[{rel:"stylesheet",href:N}],R=({location:o})=>{const e=o.pathname,a=["en","zh","ja","ko","pt","es","de","fr"];let n=e;for(const s of a)if(s!==g&&(e.startsWith(`/${s}/`)||e===`/${s}`)){n=e.replace(`/${s}`,"")||"/";break}const r="https://humanizetext.pro",i=`${r}${f(n,g)}`,p=a.map(s=>{const l=`${r}${f(n,s)}`;return{tagName:"link",rel:"alternate",hreflang:s,href:l}});return p.push({tagName:"link",rel:"alternate",hreflang:"x-default",href:`${r}${f(n,g)}`}),p.push({tagName:"link",rel:"canonical",href:i}),[...p,{title:"Humanize AI Text | Free AI to Human Text Converter"},{name:"description",content:"Humanize AI text with our free AI to human text converter. Bypass AI detection from Turnitin, GPTZero, and others. Best AI humanizer for students and writers."},{property:"og:site_name",content:"HumanizeText.pro"},{property:"og:type",content:"website"},{property:"og:url",content:i},{property:"og:title",content:"Humanize AI Text | Free AI to Human Text Converter"},{property:"og:description",content:"Humanize AI text with our free AI to human text converter. Bypass AI detection from Turnitin, GPTZero, and others. Best AI humanizer for students and writers."},{property:"og:image",content:`${r}/og-image.png`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Humanize AI Text | Free AI to Human Text Converter"},{name:"twitter:description",content:"Humanize AI text with our free AI to human text converter. Bypass AI detection from Turnitin, GPTZero, and others. Best AI humanizer for students and writers."},{name:"twitter:image",content:`${r}/og-image.png`}]},L=({children:o})=>{const e=k(),n=z().lang||g,r=(e==null?void 0:e.DOMAIN)||"https://humanizetext.pro",i={"@context":"https://schema.org","@type":"WebSite",name:"HumanizeText.pro",url:r,potentialAction:{"@type":"SearchAction",target:`${r}/search?q={search_term_string}`,"query-input":"required name=search_term_string"}};return t.jsxs(y,{lang:n,theme:"cupcake",DOMAIN:e==null?void 0:e.DOMAIN,GOOGLE_ANALYTICS_ID:e==null?void 0:e.GOOGLE_ANALYTICS_ID,children:[t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}}),o]})},S=T(function({}){const e=x(n=>n.setUser),a=x(n=>n.setCredits);return h.useEffect(()=>{fetch("/api/auth").then(async n=>{if(n.ok){const r=await n.json();e(r.profile),a(r.credits)}else e(null)})},[]),t.jsx(I,{})}),U=$(function({error:e}){let a="Oops!",n="An unexpected error occurred.",r;return H(e)&&(a=e.status===404?"404 - Page Not Found":"Error",n=e.status===404?"The requested page could not be found. Please check the URL or return to the homepage.":e.statusText||n),t.jsx(y,{title:a,children:t.jsx("div",{className:"hero min-h-screen bg-base-200",children:t.jsx("div",{className:"hero-content text-center",children:t.jsxs("div",{className:"max-w-md",children:[t.jsx("h1",{className:"text-5xl font-bold text-error",children:a}),t.jsx("p",{className:"py-6 text-lg",children:n}),t.jsxs("div",{className:"flex justify-center gap-4",children:[t.jsx("a",{href:"/",className:"btn btn-primary",children:"Go Home"}),t.jsx("button",{onClick:()=>window.history.back(),className:"btn btn-outline",children:"Go Back"})]}),r]})})})})});export{U as ErrorBoundary,L as Layout,S as default,P as links,R as meta};
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.