PageSourceSearch

https://proxyscrape.com/new-assets/_next/static/chunks/8597.631f3a2c8ea26110.js

js proxyscrape.com collected 2026-10-02 04:32:46 UTC 16,365 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8597],{62177:function(e,t,n){var r=n(94630),a=n(57437);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},87489:function(e,t,n){var r=n(94630),a=n(57437);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},30662:function(e,t,n){var r=n(94630),a=n(57437);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},50952:function(e,t,n){var r=n(94630),a=n(57437);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile")},42596:function(e,t,n){n.d(t,{V:function(){return i}});var r=n(94143),a=n(50738);function i(e){return(0,a.ZP)("MuiDivider",e)}let l=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=l},3127:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(94143),a=n(50738);function i(e){return(0,a.ZP)("MuiListItemText",e)}let l=(0,r.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=l},21177:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(2265),a=n(61994),i=n(20801),l=n(18417),o=n(34765),s=n(16210),c=n(21086),d=n(37053),u=n(15566),p=n(52559),f=n(84217),m=n(60118),h=n(42596),x=n(94143);let v=(0,x.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var g=n(3127),j=n(50738);function y(e){return(0,j.ZP)("MuiMenuItem",e)}let b=(0,x.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var Z=n(57437);let w=e=>{let{disabled:t,dense:n,divider:r,disableGutters:a,selected:l,classes:o}=e,s=(0,i.Z)({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",l&&"selected"]},y,o);return{...o,...s}},C=(0,s.default)(p.Z,{shouldForwardProp:e=>(0,o.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,c.Z)(e=>{let{theme:t}=e;return{...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(b.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(b.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(b.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(b.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(b.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(h.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(h.Z.inset)]:{marginLeft:52},["& .".concat(g.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(g.Z.inset)]:{paddingLeft:36},["& .".concat(v.root)]:{minWidth:36},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;
1return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:e=>{let{ownerState:t}=e;return!t.dense},style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,["& .".concat(v.root," svg")]:{fontSize:"1.25rem"}}}]}}));var S=r.forwardRef(function(e,t){let n;let i=(0,d.i)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:o="li",dense:s=!1,divider:c=!1,disableGutters:p=!1,focusVisibleClassName:h,role:x="menuitem",tabIndex:v,className:g,...j}=i,y=r.useContext(u.Z),b=r.useMemo(()=>({dense:s||y.dense||!1,disableGutters:p}),[y.dense,s,p]),S=r.useRef(null);(0,f.Z)(()=>{l&&S.current&&S.current.focus()},[l]);let z={...i,dense:b.dense,divider:c,disableGutters:p},M=w(i),k=(0,m.Z)(S,t);return i.disabled||(n=void 0!==v?v:-1),(0,Z.jsx)(u.Z.Provider,{value:b,children:(0,Z.jsx)(C,{ref:k,role:x,tabIndex:n,component:o,focusVisibleClassName:(0,a.Z)(M.focusVisible,h),className:(0,a.Z)(M.root,g),...j,ownerState:z,classes:M})})})},341:function(e,t,n){n.d(t,{S:function(){return l}});var r=n(57437),a=n(67208),i=n(87269);function l(e){let{children:t,sx:n}=e,{panelSx:l,formControlsSx:o}=(0,i.R)();return(0,r.jsx)(a.Z,{elevation:0,sx:[l,o,{p:3,width:"100%",boxSizing:"border-box"},n],children:t})}},70272:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(57437),a=n(95656);function i(e){let{left:t,right:n,splitAt:i="md",spacing:l=3}=e;return(0,r.jsxs)(a.default,{sx:{display:"grid",gridTemplateColumns:"lg"===i?{xs:"1fr",lg:"1fr 1fr"}:{xs:"1fr",md:"1fr 1fr"},gap:l,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 p}});var r=n(57437),a=n(2265),i=n(89051),l=n(59832),o=n(31691),s=n(18417),c=n(87489),d=n(62177),u=n(71483);function p(e){let{text:t}=e,n=(0,o.default)(),[p,f]=(0,a.useState)(!1),m=async()=>{await navigator.clipboard.writeText(t),f(!0),window.setTimeout(()=>f(!1),2e3)};return(0,r.jsx)(i.Z,{title:p?"Copied!":"Copy to clipboard",children:(0,r.jsx)(l.Z,{size:"small",onClick:m,"aria-label":"Copy to clipboard",sx:{flexShrink:0,color:p?n.palette.success.main:(0,s.Fq)(n.palette.common.white,.75),"&:hover":{color:n.palette.common.white,backgroundColor:(0,s.Fq)(u.m3[500],.12)}},children:p?(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 l}});var r=n(57437),a=n(94013),i=n(30662);function l(e){let{content:t,filename:n,label:l="Download"}=e;return(0,r.jsx)(a.Z,{variant:"outlined",size:"small",startIcon:(0,r.jsx)(i.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:l})}},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)},84079:function(e,t,n){n.d(t,{R:function(){return g}});var r=n(57437),a=n(2265),i=n(41530),l=n(46387),o=n(94013),s=n(97404),c=n(95656),d=n(15735),u=n(50952),p=n(42941),f=n(35822),m=n(46159),h=n(14347),x=n(82861),v=n(63846);function g(e){let{inputLabel:t,outputLabel:n,input:g,onInputChange:j,output:y,error:b,inputPlaceholder:Z,outputPlaceholder:w="Output will appear here...",outputFilename:C="output.json",inputAccept:S=".csv,.txt,.json",minRows:z=12,inputFooter:M,inputExtraActions:k,showInputActions:I=!0,about:O}=e,{headingSx:L,faint:R,monoInputSx:F}=(0,v.f)(),H=(0,a.useRef)(null);return(0,r.jsx)(h.p,{compactTop:!0,children:(0,r.jsxs)(i.default,{spacing:3,sx:{width:"100%"},children:[(0,r.jsx)(x.j,{left:(0,r.jsx)(i.default,{spacing:3,children:(0,r.jsxs)(m.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)(l.default,{variant:"h6",sx:{...L,fontSize:"1.125rem"},children:t}),(0,r.jsxs)(i.default,{direction:"row",flexWrap:"wrap",gap:1,alignItems:"center",children:[k,I&&g?(0,r.jsx)(p.q,{text:g}):null,(0,r.jsxs)(o.Z,{component:"label",variant:"outlined",size:"small",startIcon:(0,r.jsx)(u.Z,{}),children:["Upload",(0,r.jsx)("input",{ref:H,type:"file",hidden:!0,accept:S,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&&j(n)},r.readAsText(n),e.target.value=""}})]})]})]}),(0,r.jsx)(s.Z,{multiline:!0,minRows:z,fullWidth:!0,value:g,onChange:e=>j(e.target.value),placeholder:Z,sx:F}),M?(0,r.jsx)(c.default,{sx:{mt:2},children:M}):null,b?(0,r.jsx)(d.Z,{severity:"error",variant:"outlined",sx:{mt:2},children:b}):null]})}),right:(0,r.jsxs)(m.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)(l.default,{variant:"h6",sx:{...L,fontSize:"1.125rem"},children:n}),y?(0,r.jsxs)(i.default,{direction:"row",flexWrap:"wrap",gap:1,children:[(0,r.jsx)(p.q,{text:y}),(0,r.jsx)(f.o,{content:y,filename:C})]}):null]}),(0,r.jsx)(c.default,{component:"pre",sx:{m:0,minHeight:200,maxHeight:600,overflow:"auto",p:2,borderRadius:"8px",fontFamily:"ui-monospace, monospace",fontSize:"0.875rem",color:"common.white",backgroundColor:"rgba(0,0,0,0.25)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:y||(0,r.jsx)(l.default,{component:"span",sx:{color:R},children:w})})]})}),O?(0,r.jsx)(m.A,{children:O}):null]})})}},65341:function(e,t,n){n.d(t,{n:function(){return o}});var r=n(57437),a=n(95656),i=n(46387),l=n(63846);function o(e){let{label:t,value:n}=e,{panelSx:o,subheadingSx:s,headingSx:c}=(0,l.f)();return(0,r.jsxs)(a.default,{sx:{...o,p:2},children:[(0,r.jsx)(i.default,{variant:"body2",sx:s,children:t}),(0,r.jsx)(i.default,{variant:"h5",sx:{...c,mt:.5},children:n})]})}},73126:function(e,t,n){n.d(t,{M:function(){return i}});var r=n(57437),a=n(21843);function i(e){let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.ToolDetailHero,{}),t]})}},78597:function(e,t,n){n.r(t),n.d(t,{DataSamplingTool:function(){return b}});var r=n(57437),a=n(2265),i=n(41530),l=n(41327),o=n(10020),s=n(33833),c=n(21177),d=n(97404),u=n(94013),p=n(46387),f=n(95656),m=n(89414),h=n(84079),x=n(65341),v=n(73126),g=n(32897),j=n(63846);function y(e,t){return[...e].sort(()=>
1t?(Math.sin(t+e.indexOf(e[0]))+1)/2-.5:Math.random()-.5)}function b(){var e,t;let{formControlsSx:n,proseListSx:b,headingSx:Z,resultBoxSx:w}=(0,j.f)(),[C,S]=(0,a.useState)(""),[z,M]=(0,a.useState)(""),[k,I]=(0,a.useState)(""),[O,L]=(0,a.useState)(null),[R,F]=(0,a.useState)({method:"random",size:{type:"percentage",value:10}}),H=(0,a.useCallback)(()=>{try{let e,t;let n=(0,g.tH)(C);if(0===n.length)throw Error("Input array is empty");let r=n.length,a="percentage"===R.size.type?Math.round(R.size.value/100*r):Math.min(R.size.value,r);if("stratified"===R.method&&R.stratifyBy){let i=new Map;n.forEach(e=>{var t,n;let r=null!==(n=null===(t=e[R.stratifyBy])||void 0===t?void 0:t.toString())&&void 0!==n?n:"null";i.has(r)||i.set(r,[]),i.get(r).push(e)});let l=new Map,o={};i.forEach((e,t)=>{let n=e.length/r,i=Math.round(a*n);l.set(t,i),o[t]={total:e.length,sampled:i,percentage:i/e.length*100}}),e=[],i.forEach((t,n)=>{let r=l.get(n);e.push(...y(t,R.seed).slice(0,r))}),t={field:R.stratifyBy,groups:o}}else e=y(n,R.seed).slice(0,a);M((0,g.KD)(e)),L({totalRecords:r,sampleSize:e.length,samplePercentage:e.length/r*100,stratificationInfo:t}),I("")}catch(e){I(e instanceof Error?e.message:"Failed to generate sample"),M(""),L(null)}},[R,C]),V=(0,r.jsxs)(i.default,{spacing:2,sx:n,children:[(0,r.jsxs)(l.Z,{size:"small",fullWidth:!0,children:[(0,r.jsx)(o.Z,{children:"Sampling method"}),(0,r.jsxs)(s.Z,{label:"Sampling method",value:R.method,onChange:e=>F(t=>({...t,method:e.target.value})),children:[(0,r.jsx)(c.Z,{value:"random",children:"Simple random"}),(0,r.jsx)(c.Z,{value:"stratified",children:"Stratified"})]})]}),"stratified"===R.method?(0,r.jsx)(d.Z,{size:"small",label:"Stratify by field",value:null!==(e=R.stratifyBy)&&void 0!==e?e:"",onChange:e=>F(t=>({...t,stratifyBy:e.target.value})),fullWidth:!0}):null,(0,r.jsxs)(i.default,{direction:{xs:"column",sm:"row"},spacing:2,children:[(0,r.jsxs)(l.Z,{size:"small",sx:{minWidth:160},children:[(0,r.jsx)(o.Z,{children:"Sample size type"}),(0,r.jsxs)(s.Z,{label:"Sample size type",value:R.size.type,onCh
1ange:e=>F(t=>({...t,size:{...t.size,type:e.target.value}})),children:[(0,r.jsx)(c.Z,{value:"percentage",children:"Percentage"}),(0,r.jsx)(c.Z,{value:"count",children:"Count"})]})]}),(0,r.jsx)(d.Z,{size:"small",type:"number",label:"percentage"===R.size.type?"Sample size (%)":"Sample size (count)",value:R.size.value,onChange:e=>F(t=>({...t,size:{...t.size,value:Math.max(0,Number(e.target.value))}})),inputProps:{min:0,max:"percentage"===R.size.type?100:void 0},fullWidth:!0})]}),(0,r.jsx)(d.Z,{size:"small",type:"number",label:"Random seed (optional)",value:null!==(t=R.seed)&&void 0!==t?t:"",onChange:e=>F(t=>({...t,seed:e.target.value?Number(e.target.value):void 0})),placeholder:"Reproducible sampling",fullWidth:!0}),(0,r.jsx)(u.Z,{variant:"contained",onClick:H,disabled:!C.trim(),children:"Generate sample"})]}),W=(0,a.useMemo)(()=>(0,r.jsxs)(i.default,{spacing:2,children:[(0,r.jsx)(p.default,{variant:"h6",sx:Z,children:"Example input"}),(0,r.jsx)(f.default,{component:"pre",sx:w,children:'[\n  { "id": 1, "category": "Electronics", "product": "Laptop", "price": 1200 },\n  { "id": 2, "category": "Electronics", "product": "Phone", "price": 800 },\n  { "id": 3, "category": "Books", "product": "Guide", "price": 50 }\n]'}),(0,r.jsxs)(f.default,{component:"ul",sx:b,children:[(0,r.jsx)("li",{children:"Simple random sample: 50% of records"}),(0,r.jsx)("li",{children:"Stratified sample by category: proportional draw per group"}),(0,r.jsx)("li",{children:"Fixed size with seed for reproducibility"})]})]}),[Z,b,w]);return(0,r.jsxs)(v.M,{children:[O?(0,r.jsxs)(m.default,{container:!0,spacing:2,sx:{mb:2,px:{xs:2,md:0}},children:[(0,r.jsx)(m.default,{item:!0,xs:12,sm:4,children:(0,r.jsx)(x.n,{label:"Total records",value:O.totalRecords})}),(0,r.jsx)(m.default,{item:!0,xs:12,sm:4,children:(0,r.jsx)(x.n,{label:"Sample size",value:O.sampleSize})}),(0,r.jsx)(m.default,{item:!0,xs:12,sm:4,children:(0,r.jsx)(x.n,{label:"Sample percentage",value:"".concat(O.samplePercentage.toFixed(1),"%")})})]}):null,(null==O?void 0:O.stratificationInfo)?(0,r.jsxs)(f.default,{sx:{mb:2,px:{xs:2,md:0}},children:[(0,r.jsxs)(p.default,{variant:"subtitle2",sx:Z,gutterBottom:!0,children:["Stratification (",O.stratificationInfo.field,")"]}),(0,r.jsx)(f.default,{component:"pre",sx:w,children:(0,g.KD)(O.stratificationInfo.groups)})]}):null,(0,r.jsx)(h.R,{inputLabel:"Input data (JSON array)",outputLabel:"Sample result",input:C,onInputChange:S,output:z,error:k,inputPlaceholder:"Enter JSON array to sample from...",outputFilename:"sample.json",inputFooter:V,about:W})]})}},32897:function(e,t,n){function r(e){let t=e.trim();if(!t)throw Error("Please provide input data");let n=JSON.parse(t);if(Array.isArray(n))return n;if(n&&"object"==typeof n)return[n];throw Error("Input must be a JSON array or object")}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return JSON.stringify(e,null,t)}function i(e){try{let t=r(e);if(0===t.length)return[];let n=t[0];if(!n||"object"!=typeof n||Array.isArray(n))return[];return Object.entries(n).filter(e=>{let[,t]=e;return"number"==typeof t}).map(e=>{let[t]=e;return t})}catch(e){return[]}}function l(e){return/^-?\d+$/.test(e)?parseInt(e,10):/^-?\d*\.\d+$/.test(e)?parseFloat(e):"true"===e.toLowerCase()||"false"!==e.toLowerCase()&&("null"===e.toLowerCase()?null:e)}n.d(t,{KD:function(){return a},ZZ:function(){return l},tH:function(){return r},xq:function(){return i}})}}]);

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.