PageSourceSearch

https://shipping-explorer-production.up.railway.app/static/js/UriUtil.FL3SkPFA.js

js shipping-explorer-production.up.railway.app collected 2026-10-03 12:14:21 UTC 18,971 bytes, 1 lines download raw bytes

vendor: 4,607 bytes, line 1
1import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{et as n,u as r}from"./protobuf.Cj15o6C6.js";var i=(0,e(t(),1).createContext)({locale:window.navigator.language,mapboxToken:void 0,enforceDownloadInNewTab:void 0,resourceCrossOriginMode:void 0,showErrorLinks:r.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO});i.displayName=`LibConfigContext`;var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=class{type=3;name=``;prefix=``;value=``;suffix=``;modifier=3;constructor(e,t,n,r,i,a){this.type=e,this.name=t,this.prefix=n,this.value=r,this.suffix=i,this.modifier=a}hasCustomName(){return this.name!==``&&typeof this.name!=`number`}};o(s,`Part`);var c=/[$_\p{ID_Start}]/u,l=/[$_\u200C\u200D\p{ID_Continue}]/u,u=`.*`;function d(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}o(d,`isASCII`);function f(e,t=!1){let n=[],r=0;for(;r<e.length;){let i=e[r],a=o(function(i){if(!t)throw TypeError(i);n.push({type:`INVALID_CHAR`,index:r,value:e[r++]})},`ErrorOrInvalid`);if(i===`*`){n.push({type:`ASTERISK`,index:r,value:e[r++]});continue}if(i===`+`||i===`?`){n.push({type:`OTHER_MODIFIER`,index:r,value:e[r++]});continue}if(i===`\\`){n.push({type:`ESCAPED_CHAR`,index:r++,value:e[r++]});continue}if(i===`{`){n.push({type:`OPEN`,index:r,value:e[r++]});continue}if(i===`}`){n.push({type:`CLOSE`,index:r,value:e[r++]});continue}if(i===`:`){let t=``,i=r+1;for(;i<e.length;){let n=e.substr(i,1);if(i===r+1&&c.test(n)||i!==r+1&&l.test(n)){t+=e[i++];continue}break}if(!t){a(`Missing parameter name at ${r}`);continue}n.push({type:`NAME`,index:r,value:t}),r=i;continue}if(i===`(`){let t=1,i=``,o=r+1,s=!1;if(e[o]===`?`){a(`Pattern cannot start with "?" at ${o}`);continue}for(;o<e.length;){if(!d(e[o],!1)){a(`Invalid character '${e[o]}' at ${o}.`),s=!0;break}if(e[o]===`\\`){i+=e[o++]+e[o++];continue}if(e[o]===`)`){if(t--,t===0){o++;break}}else if(e[o]===`(`&&(t++,e[o+1]!==`?`)){a(`Capturing groups are not allowed at ${o}`),s=!0;break}i+=e[o++]}if(s)continue;if(t){a(`Unbalanced pattern at ${r}`);continue}if(!i){a(`Missing pattern at ${r}`);continue}n.push({type:`REGEX`,index:r,value:i}),r=o;continue}n.push({type:`CHAR`,index:r,value:e[r++]})}return n.push({type:`END`,index:r,value:``}),n}o(f,`lexer`);function p(e,t={}){let n=f(e);t.delimiter??=`/#?`,t.prefixes??=`./`;let r=`[^${m(t.delimiter)}]+?`,i=[],a=0,c=0,l=new Set,d=o(e=>{if(c<n.length&&n[c].type===e)return n[c++].value},`tryConsume`),p=o(()=>d(`OTHER_MODIFIER`)??d(`ASTERISK`),`tryConsumeModifier`),h=o(e=>{let t=d(e);if(t!==void 0)return t;let{type:r,index:i}=n[c];throw TypeError(`Unexpected ${r} at ${i}, expected ${e}`)},`mustConsume`),g=o(()=>{let e=``,t;for(;t=d(`CHAR`)??d(`ESCAPED_CHAR`);)e+=t;return e},`consumeText`),_=o(e=>e,`DefaultEncodePart`),v=t.encodePart||_,y=``,b=o(e=>{y+=e},`appendToPendingFixedValue`),x=o(()=>{y.length&&(i.push(new s(3,``,``,v(y),``,3)),y=``)},`maybeAddPartFromPendingFixedValue`),S=o((e,t,n,o,c)=>{let d=3;switch(c){case`?`:d=1;break;case`*`:d=0;break;case`+`:d=2;break}if(!t&&!n&&d===3){b(e);return}if(x(),!t&&!n){if(!e)return;i.push(new s(3,``,``,v(e),``,d));return}let f;f=n?n===`*`?u:n:r;let p=2;f===r?(p=1,f=``):f===u&&(p=0,f=``);let m;if(t?m=t:n&&(m=a++),l.has(m))throw TypeError(`Duplicate name '${m}'.`);l.add(m),i.push(new s(p,m,v(e),f,v(o),d))},`addPart`);for(;c<n.length;){let e=d(`CHAR`),n=d(`NAME`),r=d(`REGEX`);if(!n&&!r&&(r=d(`ASTERISK`)),n||r){let i=e??``;t.prefixes.indexOf(i)===-1&&(b(i),i=``),x();let a=p();S(i,n,r,``,a);continue}let i=e??d(`ESCAPED_CHAR`);if(i){b(i);continue}if(d(`OPEN`)){let e=g(),t=d(`NAME`),n=d(`REGEX`);!t&&!n&&(n=d(`ASTERISK`));let r=g();h(`CLOSE`);let i=p();S(e,t,n,r,i);continue}x(),h(`END`)}return i}o(p,`parse`);function m(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}o(m,`escapeString`);function h(e){return e&&e.ignoreCase?`ui`:`u`}o(h,`flags`);function g(e,t,n){return v(p(e,n),t,n)}o(g,`stringToRegexp`);function _(e){switch(e){case 0:return`*`;case 1:return`?`;case 2:return`+`;case 3:return``}}o(_,`modifierToString`);function v(e,t,n={}){n.delimiter??=`/#?`,n.prefixes??=`./`,n.sensitive??=!1,n.strict??=!1,n.end??=!0,n.start??=!0,n.endsWith=``;let r=n.start?`^`:``;for(let i of e){if(i.type===3){i.modifier===3?r+=m(i.value):r+=`(?:${m(i.value)})${_(i.modifier)}`;continue}t&&t.push(i.name);let e=`[^${m(n.delimiter)}]+?`,a=i.value;if(i.type===1?a=e:i.type===0&&(a=u),!i.prefix.length&&!i.suffix.length){i.modifier===3||i.modifier===1?r+=`(${a})${_(i.modifier)}`:r+=`((?:${a})${_(i.modifier)})`;continue}if(i.modifier===3||i.modifier===1){r+=`(?:${m(i.prefix)}(${a}
1)${m(i.suffix)})`,r+=_(i.modifier);continue}r+=`(?:${m(i.prefix)}`,r+=`((?:${a})(?:`,r+=m(i.suffix),r+=m(i.prefix),r+=`(?:${a}))*)${m(i.suffix)})`,i.modifier===0&&(r+=`?`)}let i=`[${m(n.endsWith)}]|$`,a=`[${m(n.delimiter)}]`;if(n.end)return n.strict||(r+=`${a}?`),n.endsWith.length?r+=`(?=${i})`:r+=`$`,new RegExp(r,h(n));n.strict||(r+=`(?:${a}(?=${i}))?`);let o=!1;if(e.length){let t=e[e.length-1];t.type===3&&t.modifier===3&&(o=n.delimiter.indexOf(t)>-1)}return o||(r+=`(?=${a}|${i})`),new RegExp(r,h(n))}o(v,`partsToRegexp`);var y={delimiter:``,prefixes:``,sensitive:!0,strict:!0},b={delimiter:`.`,prefixes:``,sensitive:!0,strict:!0},x={delimiter:`/`,prefixes:`/`,sensitive:!0,strict:!0};function S(e,t){return e.length?e[0]===`/`?!0:!t||e.length<2?!1:(e[0]==`\\`||e[0]==`{`)&&e[1]==`/`:!1}o(S,`isAbsolutePathname`);function C(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}o(C,`maybeStripPrefix`);function w(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}o(w,`maybeStripSuffix`);function T(e){return!e||e.length<2?!1:e[0]===`[`||(e[0]===`\\`||e[0]===`{`)&&e[1]===`[`}o(T,`treatAsIPv6Hostname`);var E=[`ftp`,`file`,`http`,`https`,`ws`,`wss`];function D(e){if(!e)return!0;for(let t of E)if(e.test(t))return!0;return!1}o(D,`isSpecialScheme`);function O(e,t){if(e=C(e,`#`),t||e===``)return e;let n=new URL(`https://example.com`);return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):``}o(O,`canonicalizeHash`);function k(e,t){if(e=C(e,`?`),t||e===``)return e;let n=new URL(`https://example.com`);return n.search=e,n.search?n.search.substring(1,n.search.length):``}o(k,`canonicalizeSearch`);function A(e,t){return t||e===``?e:T(e)?V(e):B(e)}o(A,`canonicalizeHostname`);function j(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.password=e,n.password}o(j,`canonicalizePassword`);function M(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.username=e,n.username}o(M,`canonicalizeUsername`);function N(e,t,n){if(n||e===``)return e;if(t&&!E.includes(t))return new URL(`${t}:${e}`).pathname;let r=e[0]==`/`;return e=new URL(r?e:`/-`+e,`https://example.com`).pathname,r||(e=e.substring(2,e.length)),e}o(N,`canonicalizePathname`);function P(e,t,n){return I(t)===e&&(e=``),n||e===``?e:H(e)}o(P,`canonicalizePort`);function F(e,t){return e=w(e,`:`),t||e===``?e:L(e)}o(F,`canonicalizeProtocol`);function I(e){switch(e){case`ws`:case`http`:return`80`;case`wws`:case`https`:return`443`;case`ftp`:return`21`;default:return``}}o(I,`defaultPortForProtocol`);function L(e){if(e===``)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw TypeError(`Invalid protocol '${e}'.`)}o(L,`protocolEncodeCallback`);function R(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.username=e,t.username}o(R,`usernameEncodeCallback`);function z(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.password=e,t.password}o(z,`passwordEncodeCallback`);function B(e){if(e===``)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw TypeError(`Invalid hostname '${e}'`);let t=new URL(`https://example.com`);return t.hostname=e,t.hostname}o(B,`hostnameEncodeCallback`);function V(e){if(e===``)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}o(V,`ipv6HostnameEncodeCallback`);function H(e){if(e===``||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw TypeError(`Invalid port '${e}'.`)}o(H,`portEncodeCallback`);function U(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.pathname=e[0]===`/`?e:`/-`+e,e[0]===`/`?t.pathname:t.pathname.substring(2,t.pathname.length)}o(U,`standardURLPathnameEncodeCallback`);function W(e){return e===``?e:new URL(`data:${e}`).pathname}o(W,`pathURLPathnameEncodeCallback`);function G(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.search=e,t.search.substring(1,t.search.length)}o(G,`searchEncodeCallback`);function K(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.hash=e,t.hash.substring(1,t.hash.length)}o(K,`hashEncodeCallback`);var q=class{#e;#t=[];#n={};#r=0;#i=1;#a=0;#o=0;#s=0;#c=0;#l=!1;constructor(e){this.#e=e}get result(){return this.#n}parse(){for(this.#t=f(this.#e,!0);this.#r<this.#t.length;this.#r+=this.#i){if(this.#i=1,this.#t[this.#r].type===`END`){if(this.#o===0){this.#f(),this.#C()?this.#u(9,1):this.#S()?this.#u(8,1):this.#u(7,0);continue}else if(this.#o===2){this.#p(5);continue}this.#u(10,0);break}if(this.#s>0)if(this.#T())--this.#s;else continue;if(this.#w()){this.#s+=1;continue}switch(this.#o){case 0:this.#g()&&this.#p(1);break;case 1:if(this.#g()){this.#k();let e=7,t=1;this.#_()?(e=2,t=3):this.#l&&(e=2),this.#u(e,t)}break;case 2:this.#v()?this.#p(3):(this.#x()||this.#S()||this.#C())&&this.#p(5);break;case 3:this.#y()?this.#u(4,1):this.#v()&&this.#u(5,1);break;case 4:this.#v()&&this.#u(5,1);break;case 5:this.#E()?this.#c+=1:this.#D()&&--this.#c,this.#b()&&!this.#c?this.#u(6,1):this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 6:this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 7:this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 8:this.#C()&&this.#u(9,1);break;case 9:break;case 10:break}}this.#n.hostname!==void 0&&this.#n.port===void 0&&(this.#n.port=``)}#u(e,t){switch(this.#o){case 0:break;case 1:this.#n.protocol=this.#O();break;case 2:break;case 3:this.#n.username=this.#O();break;case 4:this.#n.password=this.#O();break;case 5:this.#n.hostname=this.#O();break;case 6:this.#n.port=this.#O();break;case 7:this.#n.pathname=this.#O();break;case 8:this.#n.search=this.#O();break;case 9:this.#n.hash=this.#O();break;case 10:break}this.#o!==0&&e!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(e)&&(this.#n.hostname??=``),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(e)&&(this.#n.pathname??=this.#l?`/`:``),[1,2,3,4,5,6,7].includes(this.#o)&&e===9&&(this.#n.search??=``)),this.#d(e,t)}#d(e,t){this.#o=e,this.#a=this.#r+t,this.#r+=t,this.#i=0}#f(){this.#r=this.#a,this.#i=0}#p(e){this.#f(),this.#o=e}#m(e){return e<0&&(e=this.#t.length-e),e<this.#t.length?this.#t[e]:this.#t[this.#t.length-1]}#h(e,t){let n=this.#m(e);return n.value===t&&(n.type===`CHAR`||n.type===`ESCAPED_CHAR`||n.type===`INVALID_CHAR`)}#g(){return this.#h(this.#r,`:`)}#_(){return this.#h(this.#r+1,`/`)&&this.#h(this.#r+2,`/`)}#v(){return this.#h(this.#r,`@`)}#y(){return this.#h(this.#r,`:`)}#b(){return this.#h(this.#r,`:`)}#x(){return this.#h(this.#r,`/`)}#S(){if(this.#h(this.#r,`?`))return!0;
1if(this.#t[this.#r].value!==`?`)return!1;let e=this.#m(this.#r-1);return e.type!==`NAME`&&e.type!==`REGEX`&&e.type!==`CLOSE`&&e.type!==`ASTERISK`}#C(){return this.#h(this.#r,`#`)}#w(){return this.#t[this.#r].type==`OPEN`}#T(){return this.#t[this.#r].type==`CLOSE`}#E(){return this.#h(this.#r,`[`)}#D(){return this.#h(this.#r,`]`)}#O(){let e=this.#t[this.#r],t=this.#m(this.#a).index;return this.#e.substring(t,e.index)}#k(){let e={};Object.assign(e,y),e.encodePart=L;let t=g(this.#O(),void 0,e);this.#l=D(t)}};o(q,`Parser`);var J=[`protocol`,`username`,`password`,`hostname`,`port`,`pathname`,`search`,`hash`],Y=`*`;function X(e,t){if(typeof e!=`string`)throw TypeError(`parameter 1 is not of type 'string'.`);let n=new URL(e,t);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search===``?void 0:n.search.substring(1,n.search.length),hash:n.hash===``?void 0:n.hash.substring(1,n.hash.length)}}o(X,`extractValues`);function Z(e,t){return t?$(e):e}o(Z,`processBaseURLString`);function Q(e,t,n){let r;if(typeof t.baseURL==`string`)try{r=new URL(t.baseURL),t.protocol===void 0&&(e.protocol=Z(r.protocol.substring(0,r.protocol.length-1),n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&(e.username=Z(r.username,n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&t.password===void 0&&(e.password=Z(r.password,n)),t.protocol===void 0&&t.hostname===void 0&&(e.hostname=Z(r.hostname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&(e.port=Z(r.port,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&(e.pathname=Z(r.pathname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&(e.search=Z(r.search.substring(1,r.search.length),n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&t.hash===void 0&&(e.hash=Z(r.hash.substring(1,r.hash.length),n))}catch{throw TypeError(`invalid baseURL '${t.baseURL}'.`)}if(typeof t.protocol==`string`&&(e.protocol=F(t.protocol,n)),typeof t.username==`string`&&(e.username=M(t.username,n)),typeof t.password==`string`&&(e.password=j(t.password,n)),typeof t.hostname==`string`&&(e.hostname=A(t.hostname,n)),typeof t.port==`string`&&(e.port=P(t.port,e.protocol,n)),typeof t.pathname==`string`){if(e.pathname=t.pathname,r&&!S(e.pathname,n)){let t=r.pathname.lastIndexOf(`/`);t>=0&&(e.pathname=Z(r.pathname.substring(0,t+1),n)+e.pathname)}e.pathname=N(e.pathname,e.protocol,n)}return typeof t.search==`string`&&(e.search=k(t.search,n)),typeof t.hash==`string`&&(e.hash=O(t.hash,n)),e}o(Q,`applyInit`);function $(e){return e.replace(/([+*?:{}()\\])/g,`\\$1`)}o($,`escapePatternString`);function ee(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}o(ee,`escapeRegexpString`);function te(e,t){t.delimiter??=`/#?`,t.prefixes??=`./`,t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=``;let n=`[^${ee(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,i=``;for(let a=0;a<e.length;++a){let o=e[a];if(o.type===3){if(o.modifier===3){i+=$(o.value);continue}i+=`{${$(o.value)}}${_(o.modifier)}`;continue}let s=o.hasCustomName(),c=!!o.suffix.length||!!o.prefix.length&&(o.prefix.length!==1||!t.prefixes.includes(o.prefix)),l=a>0?e[a-1]:null,u=a<e.length-1?e[a+1]:null;if(!c&&s&&o.type===1&&o.modifier===3&&u&&!u.prefix.length&&!u.suffix.length)if(u.type===3){let e=u.value.length>0?u.value[0]:``;c=r.test(e)}else c=!u.hasCustomName();if(!c&&!o.prefix.length&&l&&l.type===3){let e=l.value[l.value.length-1];c=t.prefixes.includes(e)}c&&(i+=`{`),i+=$(o.prefix),s&&(i+=`:${o.name}`),o.type===2?i+=`(${o.value})`:o.type===1?s||(i+=`(${n})`):o.type===0&&(!s&&(!l||l.type===3||l.modifier!==3||c||o.prefix!==``)?i+=`*`:i+=`(.*)`),o.type===1&&s&&o.suffix.length&&r.test(o.suffix[0])&&(i+=`\\`),i+=$(o.suffix),c&&(i+=`}`),o.modifier!==3&&(i+=_(o.modifier))}return i}o(te,`partsToPattern`);var ne=class{#e;#t={};#n={};#r={};#i={};#a=!1;constructor(e={},t,n){try{let r;if(typeof t==`string`?r=t:n=t,typeof e==`string`){let t=new q(e);if(t.parse(),e=t.result,r===void 0&&typeof e.protocol!=`string`)throw TypeError(`A base URL must be provided for a relative constructor string.`);e.baseURL=r}else{if(!e||typeof e!=`object`)throw TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`);if(r)throw TypeError(`parameter 1 is not of type 'string'.`)}typeof n>`u`&&(n={ignoreCase:!1});let i={ignoreCase:n.ignoreCase===!0},a={pathname:Y,protocol:Y,username:Y,password:Y,hostname:Y,port:Y,search:Y,hash:Y};this.#e=Q(a,e,!0),I(this.#e.protocol)===this.#e.port&&(this.#e.port=``);let o;for(o of J){if(!(o in this.#e))continue;let e={},t=this.#e[o];switch(this.#n[o]=[],o){case`protocol`:Object.assign(e,y),e.encodePart=L;break;case`username`:Object.assign(e,y),e.encodePart=R;break;case`password`:Object.assign(e,y),e.encodePart=z;break;case`hostname`:Object.assign(e,b),T(t)?e.encodePart=V:e.encodePart=B;break;case`port`:Object.assign(e,y),e.encodePart=H;break;case`pathname`:D(this.#t.protocol)?(Object.assign(e,x,i),e.encodePart=U):(Object.assign(e,y,i),e.encodePart=W);break;case`search`:Object.assign(e,y,i),e.encodePart=G;break;case`hash`:Object.assign(e,y,i),e.encodePart=K;break}try{this.#i[o]=p(t,e),this.#t[o]=v(this.#i[o],this.#n[o],e),this.#r[o]=te(this.#i[o],e),this.#a=this.#a||this.#i[o].some(e=>e.type===2)}catch{throw TypeError(`invalid ${o} pattern '${this.#e[o]}'.`)}}}catch(e){throw TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}get[Symbol.toStringTag](){return`URLPattern`}test(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return!1;try{n=typeof e==`object`?Q(n,e,!1):Q(n,X(e,t),!1)}catch{return!1}let r;for(r of J)if(!this.#t[r].exec(n[r]))return!1;return!0}exec(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return;try{n=typeof e==`object`?Q(n,e,!1):Q(n,X(e,t),!1)}catch{return null}let r={};t?r.inputs=[e,t]:r.inputs=[e];let i;for(i of J){let e=this.#t[i].exec(n[i]);if(!e)return null;let t={};for(let[n,r]of this.#n[i].entries())(typeof r==`string`||typeof r==`number`)&&(t[r]=e[n+1]);r[i]={input:n[i]??``,groups:t}}return r}static compareComponent(e,t,n){let r=o((e,t)=>{for(let n of[`type`,`modifier`,`prefix`,`value`,`suffix`]){if(e[n]<t[n])return-1;if(e[n]!==t[n])return 1}return 0},`comparePart`),i=new s(3,``,``,``,``,3),a=new s(0,``,``,``,``,3),c=o((e,t)=>{let n=0;for(;n<Math.min(e.length,t.length);++n){let i=r(e[n],t[n]);if(i)return i}return e.length===t.length?0:r(e[n]??i,t[n]??i)},`comparePartList`);return!t.#r[e]&&!n.#r[e]?0:t.#r[e]&&!n.#r[e]?c(t.#i[e],[a]):!t.#r[e]&&n.#r[e]?c([a],n.#i[e]):c(t.#i[e],n.#i[e])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#a}};o(ne,`URLPattern`),globalThis.URLPattern||(globalThis.URLPattern=ne);function re(e,t){let n,r,i;try{n=new URLPattern(e),r=new URLPattern({protocol:n.protocol,hostname:n.hostname}),i=new URL(t)}catch{return!1}return i.hostname===`localhost`&&r.test(i)?!0:n.test(i)}function ie(e,t){if(t)try{let r=new URL(t);return n.BACKEND_BASE_URL&&r.origin===new URL(n.BACKEND_BASE_URL).origin?e:void 0}catch{return n.BACKEND_BASE_URL?e:void 0}}export{re as n,i as r,ie 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.