PageSourceSearch

https://www.xadsacademy.com/vite/assets/query-string-UQcpApSg.js

js xadsacademy.com collected 2026-09-24 15:16:56 UTC 5,799 bytes, 1 lines download raw bytes

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