PageSourceSearch

https://www.locize.com/assets/chunks/chunk-DjF0vTT6.js

js locize.com collected 2026-10-03 21:31:26 UTC 1,391 bytes, 1 lines download raw bytes

1function e(e){return String(e||``).toLowerCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^a-z0-9\s]/g,` `).replace(/\s+/g,` `).trim()}function t(t){return e(t).split(` `).map(e=>e.trim()).filter(Boolean)}function n(e,t,n){if(e===t)return 0;let r=e.length,i=t.length;if(Math.abs(r-i)>n)return n+1;if(r===0)return i;if(i===0)return r;let a=Array(i+1),o=Array(i+1);for(let e=0;e<=i;e++)a[e]=e;for(let s=1;s<=r;s++){o[0]=s;let r=o[0],c=e.charCodeAt(s-1);for(let e=1;e<=i;e++){let n=c===t.charCodeAt(e-1)?0:1,i=a[e]+1,s=o[e-1]+1,l=a[e-1]+n,u=Math.min(i,s,l);o[e]=u,u<r&&(r=u)}if(r>n)return n+1;[a,o]=[o,a]}return a[i]}function r(r,i){let a=e(i);if(!a)return 0;let o=e([r.title,r.href,r.description,r.searchText,r.category].filter(Boolean).join(` `)),s=o.indexOf(a);if(s!==-1)return 1e3+Math.max(0,50-s/50);let c=t(i);if(c.length===0)return 0;if(c.every(e=>o.includes(e)))return 700+c.length;let l=o.split(` `).filter(Boolean);if(l.length===0)return 0;let u=0,d=0;for(let e of c){if(e.length<=2)continue;let t=0;for(let r of l){if(!r)continue;if((r.startsWith(e)||e.startsWith(r))&&(t=Math.max(t,.92),t>=.92))break;(r.includes(e)||e.includes(r))&&(t=Math.max(t,.85));let i=Math.max(1,Math.floor(Math.max(e.length,r.length)*.34)),a=n(e,r,i);if(a<=i){let n=1-a/Math.max(e.length,r.length);n>t&&(t=n)}}t>0&&(u+=t,d++)}if(d===0)return 0;let f=u/d;return f<.72?0:400*f}export{r as t};

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.