PageSourceSearch

https://lode-cesko.cz/build/assets/@orchidjs-Cf2WJ1nI.js

js lode-cesko.cz collected 2026-10-08 00:35:46 UTC 7,011 bytes, 1 lines download raw bytes

1var e=e=>(e=e.filter(Boolean),e.length<2?e[0]||``:a(e)==1?`[`+e.join(``)+`]`:`(?:`+e.join(`|`)+`)`),t=e=>{if(!r(e))return e.join(``);let t=``,n=0,i=()=>{n>1&&(t+=`{`+n+`}`)};return e.forEach((r,a)=>{if(r===e[a-1]){n++;return}i(),t+=r,n=1}),i(),t},n=t=>e(Array.from(t)),r=e=>new Set(e).size!==e.length,i=e=>(e+``).replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,`\\$1`),a=e=>e.reduce((e,t)=>Math.max(e,o(t)),0),o=e=>Array.from(e).length,s=e=>{if(e.length===1)return[[e]];let t=[];return s(e.substring(1)).forEach(function(n){let r=n.slice(0);r[0]=e.charAt(0)+r[0],t.push(r),r=n.slice(0),r.unshift(e.charAt(0)),t.push(r)}),t},c=[[0,65535]],l,u,d=3,f={},p={"/":`⁄∕`,0:`߀`,a:`ⱥɐɑ`,aa:`ꜳ`,ae:`æǽǣ`,ao:`ꜵ`,au:`ꜷ`,av:`ꜹꜻ`,ay:`ꜽ`,b:`ƀɓƃ`,c:`ꜿƈȼↄ`,d:`đɗɖᴅƌꮷԁɦ`,e:`ɛǝᴇɇ`,f:`ꝼƒ`,g:`ǥɠꞡᵹꝿɢ`,h:`ħⱨⱶɥ`,i:`ɨı`,j:`ɉȷ`,k:`ƙⱪꝁꝃꝅꞣ`,l:`łƚɫⱡꝉꝇꞁɭ`,m:`ɱɯϻ`,n:`ꞥƞɲꞑᴎлԉ`,o:`øǿɔɵꝋꝍᴑ`,oe:`œ`,oi:`ƣ`,oo:`ꝏ`,ou:`ȣ`,p:`ƥᵽꝑꝓꝕρ`,q:`ꝗꝙɋ`,r:`ɍɽꝛꞧꞃ`,s:`ßȿꞩꞅʂ`,t:`ŧƭʈⱦꞇ`,th:`þ`,tz:`ꜩ`,u:`ʉ`,v:`ʋꝟʌ`,vy:`ꝡ`,w:`ⱳ`,y:`ƴɏỿ`,z:`ƶȥɀⱬꝣ`,hv:`ƕ`};for(let e in p){let t=p[e]||``;for(let n=0;n<t.length;n++){let r=t.substring(n,n+1);f[r]=e}}var m=RegExp(Object.keys(f).join(`|`)+`|[̀-ͯ·ʾʼ]`,`gu`),h=e=>{l===void 0&&(l=x(e||c))},g=(e,t=`NFKD`)=>e.normalize(t),_=e=>Array.from(e).reduce((e,t)=>e+v(t),``),v=e=>(e=g(e).toLowerCase().replace(m,e=>f[e]||``),g(e,`NFC`));function*y(e){for(let[t,n]of e)for(let e=t;e<=n;e++){let t=String.fromCharCode(e),n=_(t);n!=t.toLowerCase()&&(n.length>d||n.length!=0&&(yield{folded:n,composed:t,code_point:e}))}}var b=e=>{let t={},r=(e,r)=>{let a=t[e]||new Set,o=RegExp(`^`+n(a)+`$`,`iu`);r.match(o)||(a.add(i(r)),t[e]=a)};for(let t of y(e))r(t.folded,t.folded),r(t.folded,t.composed);return t},x=t=>{let r=b(t),a={},o=[];for(let e in r){let t=r[e];t&&(a[e]=n(t)),e.length>1&&o.push(i(e))}o.sort((e,t)=>t.length-e.length);let s=e(o);return u=RegExp(`^`+s,`u`),a},S=(e,n=1)=>{let r=0;return e=e.map(e=>(l[e]&&(r+=e.length),l[e]||e)),r>=n?t(e):``},C=(t,n=1)=>(n=Math.max(n,t.length-1),e(s(t).map(e=>S(e,n)))),w=(n,r=!0)=>{let i=+(n.length>1);return e(n.map(e=>{let n=[],a=r?e.length():e.length()-1;for(let t=0;t<a;t++)n.push(C(e.substrs[t]||``,i));return t(n)}))},T=(e,t)=>{for(let n of t){if(n.start!=e.start||n.end!=e.end||n.substrs.join(``)!==e.substrs.join(``))continue;let t=e.parts;if(!(n.parts.filter(e=>{for(let n of t){if(n.start===e.start&&n.substr===e.substr)return!1;if(!(e.length==1||n.length==1)&&(e.start<n.start&&e.end>n.start||n.start<e.start&&n.end>e.start))return!0}return!1}).length>0))return!0}return!1},E=class e{parts;substrs;start;end;constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(e){e&&(this.parts.push(e),this.substrs.push(e.substr),this.start=Math.min(e.start,this.start),this.end=Math.max(e.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(t,n){let r=new e,i=JSON.parse(JSON.stringify(this.parts)),a=i.pop();for(let e of i)r.add(e);let o=n.substr.substring(0,t-a.start),s=o.length;return r.add({start:a.start,end:a.start+s,length:s,substr:o}),r}},D=e=>{h(),e=_(e);let t=``,n=[new E];for(let r=0;r<e.length;r++){let i=e.substring(r).match(u),a=e.substring(r,r+1),o=i?i[0]:null,s=[],c=new Set;for(let e of n){let t=e.last();if(!t||t.length==1||t.end<=r)if(o){let t=o.length;e.add({start:r,end:r+t,length:t,substr:o}),c.add(`1`)}else e.add({start:r,end:r+1,length:1,substr:a}),c.add(`2`);else if(o){let n=e.clone(r,t),i=o.length;n.add({start:r,end:r+i,length:i,substr:o}),s.push(n)}else c.add(`3`)}if(s.length>0){s=s.sort((e,t)=>e.length()-t.length());for(let e of s)T(e,n)||n.push(e);continue}if(r>0&&c.size==1&&!c.has(`3`)){t+=w(n,!1);let e=new E,r=n[0];r&&e.add(r.last()),n=[e]}}return t+=w(n,!0),t},O=(e,t)=>{if(e)return e[t]},k=(e,t)=>{if(e){for(var n,r=t.split(`.`);(n=r.shift())&&(e=e[n]););return e}},A=(e,t,n)=>{var r,i;return!e||(e+=``,t.regex==null)||(i=e.search(t.regex),i===-1)?0:(r=t.string.length/e.length,i===0&&(r+=.5),r*n)},j=(e,t)=>{var n=e[t];if(typeof n==`function`)return n;n&&!Array.isArray(n)&&(e[t]=[n])},M=(e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},N=(e,t)=>typeof e==`number`&&typeof t==`number`?e>t?1:e<t?-1:0:(e=_(e+``).toLowerCase(),t=_(t+``).toLowerCase(),e>t?1:t>e?-1:0),P=class{items;settings;constructor(e,t){this.items=e,this.settings=t||{diacritics:!0}}tokenize(e,t,n){if(!e||!e.length)return[];let r=[],a=e.split(/\s+/);var o;return n&&(o=RegExp(`^(`+Object.keys(n).map(i).join(`|`)+`):(.*)$`)),a.forEach(e
vendor: 2,348 bytes, line 1
1=>{let n,a=null,s=null;o&&(n=e.match(o))&&(a=n[1],e=n[2]),e.length>0&&(s=this.settings.diacritics?D(e)||null:i(e),s&&t&&(s=`\\b`+s)),r.push({string:e,regex:s?new RegExp(s,`iu`):null,field:a})}),r}getScoreFunction(e,t){var n=this.prepareSearch(e,t);return this._getScoreFunction(n)}_getScoreFunction(e){let t=e.tokens,n=t.length;if(!n)return function(){return 0};let r=e.options.fields,i=e.weights,a=r.length,o=e.getAttrFn;if(!a)return function(){return 1};let s=(function(){return a===1?function(e,t){let n=r[0].field;return A(o(t,n),e,i[n]||1)}:function(e,t){var n=0;if(e.field){let r=o(t,e.field);!e.regex&&r?n+=1/a:n+=A(r,e,1)}else M(i,(r,i)=>{n+=A(o(t,i),e,r)});return n/a}})();return n===1?function(e){return s(t[0],e)}:e.options.conjunction===`and`?function(e){var r,i=0;for(let n of t){if(r=s(n,e),r<=0)return 0;i+=r}return i/n}:function(e){var r=0;return M(t,t=>{r+=s(t,e)}),r/n}}getSortFunction(e,t){var n=this.prepareSearch(e,t);return this._getSortFunction(n)}_getSortFunction(e){var t,n=[];let r=this,i=e.options,a=!e.query&&i.sort_empty?i.sort_empty:i.sort;if(typeof a==`function`)return a.bind(this);let o=function(t,n){return t===`$score`?n.score:e.getAttrFn(r.items[n.id],t)};if(a)for(let t of a)(e.query||t.field!==`$score`)&&n.push(t);if(e.query){t=!0;for(let e of n)if(e.field===`$score`){t=!1;break}t&&n.unshift({field:`$score`,direction:`desc`})}else n=n.filter(e=>e.field!==`$score`);return n.length?function(e,t){var r,i;for(let a of n)if(i=a.field,r=(a.direction===`desc`?-1:1)*N(o(i,e),o(i,t)),r)return r;return 0}:null}prepareSearch(e,t){let n={};var r=Object.assign({},t);if(j(r,`sort`),j(r,`sort_empty`),r.fields){j(r,`fields`);let e=[];r.fields.forEach(t=>{typeof t==`string`&&(t={field:t,weight:1}),e.push(t),n[t.field]=`weight`in t?t.weight:1}),r.fields=e}return{options:r,query:e.toLowerCase().trim(),tokens:this.tokenize(e,r.respect_word_boundaries,n),total:0,items:[],weights:n,getAttrFn:r.nesting?k:O}}search(e,t){var n=this,r,i=this.prepareSearch(e,t);t=i.options,e=i.query;let a=t.score||n._getScoreFunction(i);e.length?M(n.items,(e,n)=>{r=a(e),(t.filter===!1||r>0)&&i.items.push({score:r,id:n})}):M(n.items,(e,t)=>{i.items.push({score:1,id:t})});let o=n._getSortFunction(i);return o&&i.items.sort(o),i.total=i.items.length,typeof t.limit==`number`&&(i.items=i.items.slice(0,t.limit)),i}};export{i as n,P 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.