1import{r as e}from"./rolldown-runtime.DAXXjFlN.js";var t=RegExp(`(%[a-f0-9]{2})|([^%]+?)`,`gi`),n=RegExp(`(%[a-f0-9]{2})+`,`gi`);function r(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],r(n),r(i))}function i(e){try{return decodeURIComponent(e)}catch{let n=e.match(t)||[];for(let i=1;i<n.length;i++)e=r(n,i).join(``),n=e.match(t)||[];return e}}function a(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},r=n.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=i(r[0]);e!==r[0]&&(t[r[0]]=e)}r=n.exec(e)}t[`%C2`]=`�`;let a=Object.keys(t);for(let n of a)e=e.replace(new RegExp(n,`g`),t[n]);return e}function o(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return a(e)}}function s(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function c(e,t){if(!(typeof e==`string`&&typeof t==`string`))throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var l=e({exclude:()=>k,extract:()=>C,parse:()=>w,parseUrl:()=>E,pick:()=>O,stringify:()=>T,stringifyUrl:()=>D}),u=e=>e==null,d=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),f=Symbol(`encodeFragmentIdentifier`);function p(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push([g(t,e),`[`,i,`]`].join(``)),n):(n.push([g(t,e),`[`,g(i,e),`]=`,g(r,e)].join(``)),n)};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push([g(t,e),`[]`].join(``)),n):(n.push([g(t,e),`[]=`,g(r,e)].join(``)),n);case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push([g(t,e),`:list=`].join(``)),n):(n.push([g(t,e),`:list=`,g(r,e)].join(``)),n);case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?(r.push([g(n,e),t,g(i,e)].join(``)),r):(r.push(g(i,e)),r))}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push(g(t,e)),n):(n.push([g(t,e),`=`,g(r,e)].join(``)),n)}}function m(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case`comma`:case`separator`:return(t,n,r)=>{r[t]=typeof n==`string`&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>_(t,e)):n===null?n:_(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&_(n,e);return}let a=n===null?[]:_(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}Array.isArray(r[t])||(r[t]=[r[t]]);for(let e of a)r[t].push(e)};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}if(Array.isArray(n[e])){n[e].push(t);return}n[e]=[n[e],t]}}}function h(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function g(e,t){return t.encode?t.strict?d(e):encodeURIComponent(e):e}function _(e,t){return t.decode?o(e):e}function v(e){return Array.isArray(e)?e.sort():typeof e==`object`?v(Object.keys(e)).sort((e,t)=>
1Number(e)-Number(t)).map(t=>e[t]):e}function y(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function b(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function x(e){let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)}function S(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function C(e){e=y(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function w(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},h(t.arrayFormatSeparator);let n=m(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;let i=0;for(let a=0;a<=e.length;a++){if(a<e.length&&e[a]!==`&`)continue;if(a===i){i=a+1;continue}let o=e.slice(i,a);i=a+1;let s=t.decode?o.replaceAll(`+`,` `):o,[l,u]=c(s,`=`);l===void 0&&(l=s),u=u===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?u:_(u,t),n(_(l,t),u,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e],o=typeof a==`function`?a:a?a.replace(`[]`,``):void 0;n[r]=S(i,t,o)}else typeof n==`object`&&n&&t.types[e]===`string`?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=S(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?v(n):n,e},Object.create(null))}function T(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},h(t.arrayFormatSeparator);let n=n=>t.skipNull&&u(e[n])||t.skipEmptyString&&e[n]===``,r=p(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];if(t.replacer&&(i=t.replacer(n,i),i===void 0)||i===void 0)return``;if(i===null)return g(n,t);if(Array.isArray(i)){if(i.length===0&&t.arrayFormat===`bracket-separator`)return g(n,t)+`[]`;let e=i;t.replacer&&(e=i.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>e!==void 0));let a=e.reduce(r(n),[]),o=[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?t.arrayFormatSeparator:`&`;return a.join(o)}return g(n,t)+`=`+g(i,t)}).filter(e=>e.length>0).join(`&`)}function E(e,t){t={decode:!0,...t};let[n,r]=c(e,`#`);return n===void 0&&(n=e),{url:x(n??``),query:w(C(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:_(r,t)}:{}}}function D(e,t){t={encode:!0,strict:!0,[f]:!0,...t};let n=x(y(e.url))||``,r=T({...w(C(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=b(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n,`https://query-string.invalid`);r.hash=e.fragmentIdentifier,i=t[f]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function O(e,t,n){n={parseFragmentIdentifier:!0,[f]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=E(e,n);return D({url:r,query:s(i,t),fragmentIdentifier:a},n)}function k(e,t,n){if(Array.isArray(t)){let r=new Set(t);return O(e,e=>!r.has(e),n)}return O(e,(e,n)=>!t(e,n),n)}var A=l;export{A 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.