PageSourceSearch

https://proxyscrape.com/new-assets/_next/static/chunks/8102.85f64787a4dc2e2e.js

js proxyscrape.com collected 2026-10-02 04:32:35 UTC 10,756 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8102],{341:function(e,t,n){n.d(t,{S:function(){return s}});var r=n(57437),a=n(67208),l=n(87269);function s(e){let{children:t,sx:n}=e,{panelSx:s,formControlsSx:i}=(0,l.R)();return(0,r.jsx)(a.Z,{elevation:0,sx:[s,i,{p:3,width:"100%",boxSizing:"border-box"},n],children:t})}},70272:function(e,t,n){n.d(t,{k:function(){return l}});var r=n(57437),a=n(95656);function l(e){let{left:t,right:n,splitAt:l="md",spacing:s=3}=e;return(0,r.jsxs)(a.default,{sx:{display:"grid",gridTemplateColumns:"lg"===l?{xs:"1fr",lg:"1fr 1fr"}:{xs:"1fr",md:"1fr 1fr"},gap:s,alignItems:"start",width:"100%"},children:[(0,r.jsx)(a.default,{sx:{minWidth:0,width:"100%"},children:t}),(0,r.jsx)(a.default,{sx:{minWidth:0,width:"100%"},children:n})]})}},42941:function(e,t,n){n.d(t,{q:function(){return h}});var r=n(57437),a=n(2265),l=n(89051),s=n(59832),i=n(31691),o=n(18417),c=n(87489),d=n(62177),u=n(71483);function h(e){let{text:t}=e,n=(0,i.default)(),[h,x]=(0,a.useState)(!1),f=async()=>{await navigator.clipboard.writeText(t),x(!0),window.setTimeout(()=>x(!1),2e3)};return(0,r.jsx)(l.Z,{title:h?"Copied!":"Copy to clipboard",children:(0,r.jsx)(s.Z,{size:"small",onClick:f,"aria-label":"Copy to clipboard",sx:{flexShrink:0,color:h?n.palette.success.main:(0,o.Fq)(n.palette.common.white,.75),"&:hover":{color:n.palette.common.white,backgroundColor:(0,o.Fq)(u.m3[500],.12)}},children:h?(0,r.jsx)(d.Z,{fontSize:"small"}):(0,r.jsx)(c.Z,{fontSize:"small"})})})}},35822:function(e,t,n){n.d(t,{o:function(){return s}});var r=n(57437),a=n(94013),l=n(30662);function s(e){let{content:t,filename:n,label:s="Download"}=e;return(0,r.jsx)(a.Z,{variant:"outlined",size:"small",startIcon:(0,r.jsx)(l.Z,{}),onClick:()=>{let e=t.startsWith("data:"),r=e?t:URL.createObjectURL(new Blob([t],{type:"text/plain"})),a=document.createElement("a");a.href=r,a.download=n,document.body.appendChild(a),a.click(),document.body.removeChild(a),e||URL.revokeObjectURL(r)},children:s})}},46159:function(e,t,n){n.d(t,{A:function(){return r.S}});var r=n(341)},82861:function(e,t,n){n.d(t,{j:function(){return r.k}});var r=n(70272)},73126:function(e,t,n){n.d(t,{M:function(){return l}});var r=n(57437),a=n(21843);function l(e){let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.ToolDetailHero,{}),t]})}},28102:function(e,t,n){n.r(t),n.d(t,{TextStatisticsTool:function(){return T}});var r=n(57437),a=n(2265),l=n(95656),s=n(46387),i=n(41530),o=n(94013),c=n(97404),d=n(89414),u=n(17162),h=n(70208),x=n(32281),f=n(54301),g=n(61201),m=n(59469),p=n(50952),j=n(42941),b=n(35822),v=n(73126),w=n(46159),y=n(14347),S=n(82861);function C(e){let t=e.toLowerCase(),n=(t=(t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,"")).replace(/^y/,"")).match(/[aeiouy]{1,2}/g);return n?n.length:1}var W=n(63846);function Z(e){let{label:t,value:n,sub:a}=e,{headingSx:i,faint:o}=(0,W.f)();return(0,r.jsxs)(l.default,{children:[(0,r.jsx)(s.default,{variant:"subtitle2",sx:{color:"grey.400",mb:.5},children:t}),(0,r.jsx)(s.default,{variant:"h5",sx:{...i,fontSize:"1.5rem"},children:n}),a?(0,r.jsx)(s.default,{variant:"caption",sx:{color:o},children:a}):null]})}function T(){let{headingSx:e,inputSx:t,monoInputSx:n,faint:T,borderSoft:k}=(0,W.f)(),[F,q]=(0,a.useState)(""),[z,L]=(0,a.useState)(null),[R,I]=(0,a.useState)(!1);(0,a.useEffect)(()=>{L(F.trim()?function(e){let t=e.length,n=e.replace(/\s/g,"").length,r=e.trim().split(/\s+/).filter(e=>e.length>0),a=new Set(r.map(e=>e.toLowerCase())).size,l=e.trim().split(/[.!?]+/).filter(e=>e.trim().length>0),s=e.trim().split(/\n\s*\n/).filter(e=>e.trim().length>0),i=r.reduce((e,t)=>e+C(t),0),o=r.reduce((e,t)=>{var n;let r=t.toLowerCase();return e[r]=(null!==(n=e[r])&&void 0!==n?n:0)+1,e},{}),c=Math.ceil(r.length/200),d="".concat(c," minute").concat(1!==c?"s":"");return{characters:t,charactersNoSpaces:n,words:r.length,sentences:l.length,paragraphs:s.length,uniqueWords:a,readingTime:d,readabilityScores:function(e,t,n){let r=e.length;return 0===r||0===t?{fleschKincaid:0,gunningFog:0,colemanLiau:0}:{fleschKincaid:Math.round(10*(r/t*.39+n/r*11.8-15.59))/10,gunningFog:Math.round(.4*(r/t+100*e.filter(e=>C(e)>
12).length/r)*10)/10,colemanLiau:Math.round(10*(e.join("").length/r*5.88-t/r*100*.296-15.8))/10}}(r,l.length,i),averages:{wordsPerSentence:l.length>0?Math.round(r.length/l.length*10)/10:0,charactersPerWord:r.length>0?Math.round(n/r.length*10)/10:0,syllablesPerWord:r.length>0?Math.round(i/r.length*10)/10:0},wordFrequency:o}}(F):null)},[F]);let P=(0,a.useMemo)(()=>z?"Text Statistics Report\n\nBasic Counts:\n- Characters: ".concat(z.characters,"\n- Characters (excluding spaces): ").concat(z.charactersNoSpaces,"\n- Words: ").concat(z.words,"\n- Unique Words: ").concat(z.uniqueWords,"\n- Sentences: ").concat(z.sentences,"\n- Paragraphs: ").concat(z.paragraphs,"\n\nAverages:\n- Words per Sentence: ").concat(z.averages.wordsPerSentence,"\n- Characters per Word: ").concat(z.averages.charactersPerWord,"\n- Syllables per Word: ").concat(z.averages.syllablesPerWord,"\n\nReadability Scores:\n- Flesch-Kincaid Grade Level: ").concat(z.readabilityScores.fleschKincaid,"\n- Gunning Fog Index: ").concat(z.readabilityScores.gunningFog,"\n- Coleman-Liau Index: ").concat(z.readabilityScores.colemanLiau,"\n\nEstimated Reading Time: ").concat(z.readingTime,"\n\nWord Frequency (Top 50):\n").concat(Object.entries(z.wordFrequency).sort((e,t)=>{let[,n]=e,[,r]=t;return r-n}).slice(0,50).map(e=>{let[t,n]=e;return"".concat(t,": ").concat(n)}).join("\n")):"",[z]),M=(0,a.useMemo)(()=>z?Object.entries(z.wordFrequency).sort((e,t)=>{let[,n]=e,[,r]=t;return r-n}).map(e=>{let[t,n]=e;return"".concat(t,": ").concat(n," time").concat(1!==n?"s":"")}).join("\n"):"",[z]);return(0,r.jsx)(v.M,{children:(0,r.jsx)(y.p,{compactTop:!0,children:(0,r.jsx)(S.j,{left:(0,r.jsxs)(w.A,{children:[(0,r.jsxs)(i.default,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2,sx:{mb:2},children:[(0,r.jsx)(s.default,{variant:"h6",sx:{...e,fontSize:"1.125rem"},children:"Input Text"}),(0,r.jsxs)(i.default,{direction:"row",gap:1,flexWrap:"wrap",children:[(0,r.jsx)(o.Z,{size:"small",variant:"text",onClick:()=>q("The quick brown fox jumps over the lazy dog. This pangram contains every letter of the English alphabet at least once. Pangrams are sentences constructed to contain all letters of the alphabet. They are commonly used to display font samples and test keyboards.\n\nThe first paragraph demonstrates a simple pangram. This second paragraph adds more complexity to the text sample, allowing for better statistical analysis. It includes longer sentences with varied punctuation!\n\nHow many words do you think this sample contains? Count them yourself or let our tool do the work for you. Text statistics can reveal interesting patterns in writing."),children:"Load Sample"}),F?(0,r.jsx)(j.q,{text:F}):null,(0,r.jsxs)(o.Z,{component:"label",variant:"outlined",size:"small",startIcon:(0,r.jsx)(p.Z,{}),children:["Upload",(0,r.jsx)("input",{type:"file",hidden:!0,accept:".txt",onChange:e=>{var t;let n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;let r=new FileReader;r.onload=e=>{var t;let n=null===(t=e.target)||void 0===t?void 0:t.result;"string"==typeof n&&q(n)},r.readAsText(n),e.target.value=""}})]})]})]}),(0,r.jsx)(c.Z,{multiline:!0,minRows:14,fullWidth:!0,value:F,onChange:e=>q(e.target.value),placeholder:"Enter or paste text here...",sx:{...t,...n}})]}),right:(0,r.jsx)(i.default,{spacing:3,children:z?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(w.A,{children:[(0,r.jsxs)(i.default,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2,sx:{mb:2},children:[(0,r.jsx)(s.default,{variant:"h6",sx:{...e,fontSize:"1.125rem"},children:"Basic Statistics"}),(0,r.jsxs)(i.default,{direction:"row",gap:1,children:[(0,r.jsx)(j.q,{text:P}),(0,r.jsx)(b.o,{content:P,filename:"text-statistics.txt"})]})]}),(0,r.jsxs)(d.default,{container:!0,spacing:3,children:[(0,r.jsx)(d.default,{item:!0,xs:6,children:(0,r.jsx)(Z,{label:"Character Count",value:z.characters,sub:"".concat(z.charactersNoSpaces," without spaces")})}),(0,r.jsx)(d.default,{item:!0,xs:6,children:(0,r.jsx)(Z,{label:"Word Count",value:z.words,sub:"".concat(z.uniqueWords," unique")})}),(0,r.jsx)(d.default,{item:!0,xs:6,children:(0,r.jsx)(Z,{label:"Sentence Count",value:z.sentences})}),(0,r.jsx)(d.default,{item:!0,xs:6,children:(0,r.jsx)(Z,{label:"Paragraph Count",value:z.paragraphs})})]}),(0,r.jsxs)(l.default,{sx:{mt:3},children:[(0,r.jsx)(s.default,{variant:"subtitle2",sx:{color:"grey.400",mb:.5},children:"Reading Time"}),(0,r.jsx)(s.default,{sx:{color:"common.white"},children:z.readingTime})]})]}),(0,r.jsxs)(w.A,{children:[(0,r.jsx)(s.default,{variant:"h6",sx:{...e,mb:2,fontSize:"1.125rem"},children:"Readability Scores"}),(0,r.jsxs)(i.default,{spacing:2,children:[(0,r.jsx)(Z,{label:"Flesch-Kincaid Grade Level",value:z.readabilityScores.fleschKincaid}),(0,r.jsx)(Z,{label:"Gunning Fog Index",value:z.readabilityScores.gunningFog}),(0,r.jsx)(Z,{label:"Coleman-Liau Index",value:z.readabilityScores.colemanLiau})]})]}),(0,r.jsxs)(w.A,{children:[(0,r.jsx)(s.default,{variant:"h6",sx:{...e,mb:2,fontSize:"1.125rem"},children:"Averages"}),(0,r.jsxs)(i.default,{spacing:2,children:[(0,r.jsx)(Z,{label:"Words per Sentence",value:z.averages.wordsPerSentence}),(0,r.jsx)(Z,{label:"Characters per Word",value:z.averages.charactersPerWord}),(0,r.jsx)(Z,{label:"Syllables per Word",value:z.averages.syllablesPerWord})]})]}),(0,r.jsxs)(w.A,{children:[(0,r.jsxs)(i.default,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2,sx:{mb:2},children:[(0,r.jsx)(s.default,{variant:"h6",sx:{...e,fontSize:"1.125rem"},children:"Word Frequency"}),(0,r.jsxs)(i.default,{direction:"row",gap:1,children:[(0,r.jsx)(o.Z,{size:"small",variant:"text",onClick:()=>I(e=>!e),children:R?"Hide":"Show"}),(0,r.jsx)(j.q,{text:M}),(0,r.jsx)(b.o,{content:M,filename:"word-frequency.txt"})]})]}),(0,r.jsx)(u.Z,{in:R,children:(0,r.jsx)(l.default,{sx:{maxHeight:240,overflow:"auto",border:"1px solid ".concat(k),borderRadius:"8px"},children:(0,r.jsxs)(h.Z,{size:"small",children:[(0,r.jsx)(x.Z,{children:(0,r.jsxs)(f.Z,{children:[(0,r.jsx)(g.Z,{sx:{color:"grey.400"},children:"Word"}),(0,r.jsx)(g.Z,{align:"right",sx:{color:"grey.400"},children:"Count"})]})}),(0,r.jsx)(m.Z,{children:Object.entries(z.wordFrequency).sort((e,t)=>
1{let[,n]=e,[,r]=t;return r-n}).map(e=>{let[t,n]=e;return(0,r.jsxs)(f.Z,{children:[(0,r.jsx)(g.Z,{sx:{color:"common.white"},children:t}),(0,r.jsx)(g.Z,{align:"right",sx:{color:"common.white"},children:n})]},t)})})]})})})]})]}):(0,r.jsx)(w.A,{children:(0,r.jsx)(s.default,{sx:{color:T},children:"Enter text to see statistics."})})})})})})}}}]);

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.