1import{dh as A,di as P,dj as j,dk as x,dl as C,dm as D,dn as z,dp as I,dq as N,as as k,dr as w,ds as m}from"./B0_CeJP0.js";function B(e){return{endInclusive:!1,state:"idle",...e}}const R="..",p="...",K=/^(f|fExcluded|cf|nf|df|sf|af|mnf)-(.+)$/,U={f:!0,fExcluded:!0,cf:!0,sf:!0,af:!0,nf:!0,df:!0,mnf:!0},c="&",o="=";function q(e){return e in U}function J(e){const n=e in{nf:!0,df:!0,mnf:!0};return q(e)&&n}const L=e=>t=>Object.entries(t).map(e).filter(n=>n).join(c);function F(e,t){return`${e}${o}${encodeURIComponent(t)}`}function T(e){return f(e)?y(e,n=>typeof n=="string"):!1}function _(e){return f(e)?y(e,n=>f(n)&&"start"in n&&"end"in n):!1}function f(e){return!!(e&&typeof e=="object")}function y(e,t){return Object.entries(e).filter(r=>{const i=r[1];return!Array.isArray(i)||!i.every(t)}).length===0}function H(e,t){return Object.entries(t).map(([n,r])=>`${e}-${n}${o}${r.map(i=>encodeURIComponent(i)).join(",")}`).join(c)}function M(e,t){return Object.entries(t).map(([n,r])=>{const i=r.map(({start:s,end:a,endInclusive:u})=>`${s}${u?p:R}${a}`).join(",");return`${e}-${n}${o}${i}`}).join(c)}function W(e){const[t,...n]=e.split(o),r=n.join(o);return[t,r]}function G(e,t=K){const[n,r]=e,i=t.exec(n);if(!i)return e;const s=i[1],a=i[2],u=r.split(","),d=Q(s,u),V={[a]:d};return[s,JSON.stringify(V)]}function Q(e,t){return e==="nf"||e==="mnf"?X(t,"selected"):e==="df"?Y(t,"selected"):t}function X(e,t){const n=[];for(const r of e){const{startAsString:i,endAsString:s,isEndInclusive:a}=S(r),u=parseFloat(i),d=parseFloat(s);!Number.isFinite(u)||!Number.isFinite(d)||n.push(B({start:u,end:d,state:t,endInclusive:a}))}return n}function g(e){try{return j(e)?(x(e,C),!0):D(e)?(z(e),!0):!1}catch{return!1}}function Y(e,t){const n=[];for(const r of e){const{isEndInclusive:i,startAsString:s,endAsString:a}=S(r);!g(s)||!g(a)||n.push(P({start:s,end:a,state:t,endInclusive:i}))}return n}function Z(e){const t=JSON.parse(e),n={};return Object.entries(t).forEach(r=>{const[i,s]=r;n[i]=s.map(a=>A(a)?decodeURIComponent(a):a)}),n}function S(e){const t=e.indexOf(p)!==-1,[n,r]=e.split(t?p:R);return{isEndInclusive:t,startAsString:n,endAsString:r}}const v=" ",$=",",ee=/^(f|fExcluded|cf|nf|nfExcluded|df|dfExcluded|mnf|mnfExcluded|lf)-(.+)$/,pe={serialize:b,deserialize:h},me={serialize:b,deserialize:h},te={f:!0,fExcluded:!0,lf:!0,cf:!0,nf:!0,nfExcluded:!0,df:!0,dfExcluded:!0,mnf:!0,mnfExcluded:!0};function b(e){return de(L(ne)(e))}function ne(e){const[t,n]=e;return E(t)?t==="sortCriteria"?se(n)?re(t,n):"":l(t)&&!J(t)?T(n)?H(t,n):"":t==="nf"||t==="df"||t==="mnf"?_(n)?M(t,n):"":n!==void 0?F(t,n):"":""}function re(e,t){return F(e,ie(t))}function ie(e){return e?e.by===k.Relevance?"relevance":e.fields.map(t=>`${t.name}${v}${t.direction}`).join($):""}function E(e){return ae(e)||l(e)}function se(e){return!f(e)||!("by"in e)?!1:e.by==="relevance"?!0:e.by==="fields"&&"fields"in e&&w(e.fields)?e.fields.every(t=>f(t)&&"name"in t&&typeof t.name=="string"&&("direction"in t&&(t.direction===m.Ascending||t.direction===m.Descending)||!("direction"in t))):!1}function ae(e){return e in{q:!0,sortCriteria:!0,page:!0,perPage:!0}}function h(e){return e.split(c).map(W).map(r=>G(r,ee)).filter(ue).map(ce).reduce((r,i)=>{const[s,a]=i;
1if(l(s)){const u={...r[s],...a};return{...r,[s]:u}}if(s==="sortCriteria"){const u=oe(a);return{...r,[s]:u}}return{...r,[s]:a}},{})}function l(e){return e in te}function ue(e){const t=E(e[0]),n=e.length===2;return t&&n}function ce(e){const[t,n]=e;return t==="page"||t==="perPage"?[t,parseInt(n)]:l(t)?[t,Z(n)]:[t,decodeURIComponent(n)]}function oe(e){if(e==="relevance")return I();const t=e.split($);if(t.length)return t.reduce((n,r)=>{const i=r.trim().split(v);if(i.length!==2)return n;const s=i[0].toLowerCase(),a=i[1].toLowerCase();return n.fields.push({name:s,direction:a}),n},N([]))}const O=e=>e.startsWith("mnf-"),fe=e=>e.startsWith("nf-")||O(e);function de(e){const t=new Set,n=new Set,r=[];for(const i of e.split(c)){if(!fe(i)){r.push(i);continue}const s=i.replace(/^mnf-/,"nf-");if(!t.has(s)){t.add(s),n.add(i);continue}O(i)&&(n.delete(s),n.add(i))}return r.push(...n),r.join(c)}export{me as p,pe as s};
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.