PageSourceSearch

https://captioner.io/assets/path-CUt2ulxA.js

js captioner.io collected 2026-09-24 13:28:23 UTC 13,256 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`543da1f7503b97d6fc2de993698f7953dabf1c1c`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`aa514a91-ec53-4355-bda8-3f59d3c6fbdb`,e._sentryDebugIdIdentifier=`sentry-dbid-aa514a91-ec53-4355-bda8-3f59d3c6fbdb`)}catch{}})();import{d as e,w as t}from"./useStore-COExswfC.js";function n(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var r=4,i=5;function a(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function o(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,o=e.substring(t,i);if(!o||!o.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(o===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(o.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let s=a(o);if(s){let[r,a]=s,c=o.charCodeAt(r+1);if(c===45){if(r+2<o.length&&o.charCodeAt(r+2)===36){let e=r+3,o=a;if(e<o)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+o,n[4]=t+a+1,n[5]=i,n}}else if(c===36){let o=r+1,s=r+2;return s===a?(n[0]=2,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+a+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+s,n[3]=t+a,n[4]=t+a+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function s(e,t,n,a,c,l,f){f?.(n);let p=a;{let a=n.fullPath??n.from,s=a.length,f=n.options?.caseSensitive??e,m=n.options?.params?.parse??n.options?.parseParams;for(;p<s;){let e=o(a,p,t),r,i=p,s=e[5];switch(p=s+1,l++,e[0]){case 0:{let t=a.substring(e[2],e[3]);if(f){let e=c.static?.get(t);if(e)r=e;else{c.static??=new Map;let e=u(n.fullPath??n.from);e.parent=c,e.depth=l,r=e,c.static.set(t,e)}}else{let e=t.toLowerCase(),i=c.staticInsensitive?.get(e);if(i)r=i;else{c.staticInsensitive??=new Map;let t=u(n.fullPath??n.from);t.parent=c,t.depth=l,r=t,c.staticInsensitive.set(e,t)}}break}case 1:{let t=a.substring(i,e[1]),o=a.substring(e[4],s),u=f&&!!(t||o),p=t?u?t:t.toLowerCase():void 0,h=o?u?o:o.toLowerCase():void 0,g=!m&&c.dynamic?.find(e=>!e.parse&&e.caseSensitive===u&&e.prefix===p&&e.suffix===h);if(g)r=g;else{let e=d(1,n.fullPath??n.from,u,p,h);r=e,e.depth=l,e.parent=c,c.dynamic??=[],c.dynamic.push(e)}break}case 3:{let t=a.substring(i,e[1]),o=a.substring(e[4],s),u=f&&!!(t||o),p=t?u?t:t.toLowerCase():void 0,h=o?u?o:o.toLowerCase():void 0,g=!m&&c.optional?.find(e=>!e.parse&&e.caseSensitive===u&&e.prefix===p&&e.suffix===h);if(g)r=g;else{let e=d(3,n.fullPath??n.from,u,p,h);r=e,e.parent=c,e.depth=l,c.optional??=[],c.optional.push(e)}break}case 2:{let t=a.substring(i,e[1]),o=a.substring(e[4],s),u=f&&!!(t||o),p=t?u?t:t.toLowerCase():void 0,m=o?u?o:o.toLowerCase():void 0,h=d(2,n.fullPath??n.from,u,p,m);r=h,h.parent=c,h.depth=l,c.wildcard??=[],c.wildcard.push(h)}}c=r}if(m&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=u(n.fullPath??n.from);e.kind=i,e.parent=c,l++,e.depth=l,c.pathless??=[],c.pathless.push(e),c=e}let h=(n.path||!n.children)&&!n.isRoot;if(h&&a.endsWith(`/`)){let e=u(n.fullPath??n.from);e.kind=r,e.parent=c,l++,e.depth=l,c.index=e,c=e}c.parse=m??null,c.priority=n.options?.params?.priority??0,h&&!c.route&&(c.route=n,c.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)s(e,t,r,p,c,l,f)}function c(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function l(e){if(e.pathless)for(let t of e.pathless)l(t);if(e.static)for(let t of e.static.values())l(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())l(t);if(e.dynamic?.length){e.dynamic.sort(c);for(let t of e.dynamic)l(t)}if(e.optional?.length){e.optional.sort(c);for(let t of e.optional)l(t)}if(e.wildcard?.length){e.wildcard.sort(c);for(let t of e.wildcard)l(t)}}function u(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function d(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function f(e,t){let r=u(`/`),i=new Uint16Array(6);for(let t of e)s(!1,i,t,1,r,0);l(r),t.masksTree=r,t.flatCache=n(1e3)}function p(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=v(e,t.masksTree);return t.flatCache.set(e,r),r}function m(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=u(`/`),s(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),v(r,o,n)}function h(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=v(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=b(a.route)),t.matchCache.set(r,a),a}function g(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function _(t,r=!1,i){let a=u(t.fullPath),o=new Uint16Array(6),c={},d={},f=0;return s(r,o,t,1,a,0,t=>{if(i?.(t,f),t.id in c&&e(),c[t.id]=t,f!==0&&t.path){let e=g(t.fullPath);(!d[e]||t.fullPath.endsWith(`/`))&&(d[e]=t)}f++}),l(a),{processedTree:{segmentTree:a,singleCache:n(1e3),matchCache:n(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:d}}function v(e,t,n=!1){let r=e.split(`/`),i=S(e,r,t,n);if(!i)return null;let[a]=y(e,r,i);return{route:i.node.route,rawParams:a}}function y(e,t,n){let a=x(n.node),o=null,s=Object.create(null),c=n.extract?.part??0,l=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;l<a.length;c++,l++,u++,d++){let f=a[l];if(f.kind===r)break;
1if(f.kind===i){d--,c--,u--;continue}let p=t[c],m=u;if(p&&(u+=p.length),f.kind===1){o??=n.node.fullPath.split(`/`);let e=o[d],t=f.prefix?.length??0;if(e.charCodeAt(t)===123){let n=f.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=p.substring(t,p.length-n);s[r]=decodeURIComponent(i)}else{let t=e.substring(1);s[t]=decodeURIComponent(p)}}else if(f.kind===3){if(n.skipped&1<<l){c--,u=m-1;continue}o??=n.node.fullPath.split(`/`);let e=o[d],t=f.prefix?.length??0,r=f.suffix?.length??0,i=e.substring(t+3,e.length-r-1),a=f.suffix||f.prefix?p.substring(t,p.length-r):p;a&&(s[i]=decodeURIComponent(a))}else if(f.kind===2){let t=f,n=e.substring(m+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);s[`*`]=r,s._splat=r;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:c,node:l,path:u,segment:d}]}function b(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function x(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function S(e,n,i,a){if(e===`/`&&i.index)return{node:i.index,skipped:0};let o=!t(n),s=o&&e!==`/`,c=n.length-+!!o,l=[{node:i,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],u=null,d=null;for(;l.length;){let t=l.pop(),{node:i,index:o,skipped:f,depth:p,statics:m,dynamics:h,optionals:g}=t,{extract:_,rawParams:v}=t;if(i.kind===2&&i.route&&!E(d,t))continue;if(i.parse){if(!T(e,n,t))continue;v=t.rawParams,_=t.extract}a&&i.route&&i.kind!==r&&E(u,t)&&(u=t);let y=o===c;if(y&&(i.route&&(!s||i.kind===r||i.kind===2)&&E(d,t)&&(d=t),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let b=y?void 0:n[o],x;if(y&&i.index){let t={node:i.index,index:o,skipped:f,depth:p+1,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v},r=!0;if(i.index.parse&&(T(e,n,t)||(r=!1)),r){if(!h&&!g&&!f&&w(m,c))return t;E(d,t)&&(d=t)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let t=i.wildcard[e],{prefix:r,suffix:a}=t;if(!(r&&(y||!(t.caseSensitive?b:x??=b.toLowerCase()).startsWith(r)))){if(a){if(y)continue;let e=n.slice(o).join(`/`).slice(-a.length);if((t.caseSensitive?e:e.toLowerCase())!==a)continue}l.push({node:t,index:c,skipped:f,depth:p+1,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v})}}if(i.optional){let e=f|1<<p,t=p+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];l.push({node:r,index:o,skipped:e,depth:t,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v})}if(!y)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?b:x??=b.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}l.push({node:n,index:o+1,skipped:f,depth:t,statics:m,dynamics:h,optionals:g+C(c,o),extract:_,rawParams:v})}}if(!y&&i.dynamic&&b)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?b:x??=b.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}l.push({node:t,index:o+1,skipped:f,depth:p+1,statics:m,dynamics:h+C(c,o),optionals:g,extract:_,rawParams:v})}if(!y&&i.staticInsensitive){let e=i.staticInsensitive.get(x??=b.toLowerCase());e&&l.push({node:e,index:o+1,skipped:f,depth:p+1,statics:m+C(c,o),dynamics:h,optionals:g,extract:_,rawParams:v})}if(!y&&i.static){let e=i.static.get(b);e&&l.push({node:e,index:o+1,skipped:f,depth:p+1,statics:m+C(c,o),dynamics:h,optionals:g,extract:_,rawParams:v})}if(i.pathless){let e=p+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];l.push({node:n,index:o,skipped:f,depth:e,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v})}}}if(d)return d;if(a&&u){let t=u.index;for(let e=0;e<u.index;e++)t+=n[e].length;let r=t===e.length?`/`:e.slice(t);return u.rawParams??=Object.create(null),u.rawParams[`**`]=decodeURIComponent(r),u}return null}function C(e,t){return 2**(e-t-1)}function w(e,t){return e===2**(t-1)-1}function T(e,t,n){let r,i;try{[r,i]=y(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function E(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===r)>(e.node.kind===r)||t.node.kind===r==(e.node.kind===r)&&t.depth>e.depth))):!0}function D(e){return O(e.filter(e=>e!==void 0).join(`/`))}function O(e){return e.replace(/\/{2,}/g,`/`)}function k(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function A(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function j(e){return A(k(e))}function M(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function N(e,t,n){return M(e,n)===M(t,n)}function P({base:e,to:n,trailingSlash:r=`never`,cache:i}){let a=n.startsWith(`/`),o=!a&&n===`.`,s;if(i){s=a?n:o?e:e+`\0`+n;let t=i.get(s);if(t)return t}let c;if(o)c=e.split(`/`);else if(a)c=n.split(`/`);else{for(c=e.split(`/`);c.length>1&&t(c)===``;)c.pop();let r=n.split(`/`);for(let e=0,t=r.length;e<t;e++){let n=r[e];n===``?e?e===t-1&&c.push(n):c=[n]:n===`..`?c.pop():n===`.`||c.push(n)}}c.length>1&&(t(c)===``?r===`never`&&c.pop():r===`always`&&c.push(``));let l=O(c.join(`/`))||`/`;return s&&i&&i.set(s,l),l}function F(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function I(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>R(e,n)).join(`/`):R(r,n):r}function L({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let s=e.length,c=0,l,u=``;for(;c<s;){let r=c;l=o(e,r,l);let s=l[5];if(c=s+1,r===s)continue;let d=l[0];if(d===0){u+=`/`+e.substring(r,s);continue}if(d===2){let o=t._splat;a._splat=o,a[`*`]=o;let c=e.substring(r,l[1]),d=e.substring(l[4],s);if(!o){i=!0,(c||d)&&(u+=`/`+c+d);continue}let f=I(`_splat`,t,n);
1u+=`/`+c+f+d;continue}if(d===1){let o=e.substring(l[2],l[3]);!i&&!(o in t)&&(i=!0),a[o]=t[o];let c=e.substring(r,l[1]),d=e.substring(l[4],s),f=I(o,t,n)??`undefined`;u+=`/`+c+f+d;continue}if(d===3){let i=e.substring(l[2],l[3]),o=t[i];if(o==null)continue;a[i]=o;let c=e.substring(r,l[1]),d=e.substring(l[4],s),f=I(i,t,n)??``;u+=`/`+c+f+d;continue}}return e.endsWith(`/`)&&(u+=`/`),{usedParams:a,interpolatedPath:u||`/`,isMissingParams:i}}function R(e,t){let n=encodeURIComponent(e);return t?.(n)??n}export{n as _,D as a,j as c,b as d,p as f,_ as g,f as h,L as i,k as l,m,F as n,M as o,h as p,N as r,P as s,O as t,A as u};

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.