PageSourceSearch

https://nanoporetech.com/_nuxt/C9UtrYSc.js

js nanoporetech.com collected 2026-09-24 15:20:54 UTC 21,787 bytes, 1 lines download raw bytes

1import{r as pe,v as ke,c as A,i as me,n as et,d as tt,p as nt,s as Pe,f as W,h as ue,j as rt,k as at,m as Se,S as I,l as ye,o as Ge,q as Q,t as fe,w as ot,x as st,y as it,z as Le,A as Ae,B as re,C as Y,D as te,E as lt,F as $,G as ct,H as ut,I as de,J as V,K as ne,L as ft,M as dt,N as Oe,O as ht,P as pt,_ as mt,a as gt}from"./CyF2INLC.js";import{d as ae,m as B,E as Ve,p as j,c as N,r as Fe,u as X,v as Ue,B as vt,z as yt,H as ge,X as ee,aN as Rt,o as bt,aF as wt,F as Et}from"./CH7hBqN2.js";import{P as De,L as kt,a as Ce}from"./EVrcZtat.js";import{a as Pt,g as xe,h as St}from"./Wu1TGH1t.js";(function(){try{var e=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{};e["__faroGitHash_Corporate website"]="398b77a0431d58485aa32c4e66620479c825652a"}catch{}})();(function(){try{var e=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{};e["__faroBundleId_Corporate website"]="1790088952739e4e15c68b6"}catch{}})();let At=()=>location.protocol+"//"+location.host;function qe(e,n){const{pathname:t,search:o,hash:r}=n,p=e.indexOf("#");if(p>-1){let g=r.includes(e.slice(p))?e.slice(p).length:1,k=r.slice(g);return k[0]!=="/"&&(k="/"+k),Ae(k,"")}return Ae(t,e)+o+r}function Ot(e,n,t,o){let r=[],p=[],g=null;const k=({state:c})=>{const i=qe(e,location),y=t.value,m=n.value;let S=0;if(c){if(t.value=i,n.value=c,g&&g===y){g=null;return}S=m?c.position-m.position:0}else o(i);r.forEach(O=>{O(t.value,y,{delta:S,type:"pop",direction:S?S>0?"forward":"back":""})})};function u(){g=t.value}function l(c){r.push(c);const i=()=>{const y=r.indexOf(c);y>-1&&r.splice(y,1)};return p.push(i),i}function d(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(A({},c.state,{scroll:re()}),"")}}function s(){for(const c of p)c();p=[],window.removeEventListener("popstate",k),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",k),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:l,destroy:s}}function _e(e,n,t,o=!1,r=!1){return{back:e,current:n,forward:t,replaced:o,position:window.history.length,scroll:r?re():null}}function Ct(e){const{history:n,location:t}=window,o={value:qe(e,t)},r={value:n.state};r.value||p(o.value,{back:null,current:o.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function p(u,l,d){const s=e.indexOf("#"),c=s>-1?(t.host&&document.querySelector("base")?e:e.slice(s))+u:At()+e+u;try{n[d?"replaceState":"pushState"](l,"",c),r.value=l}catch(i){console.error(i),t[d?"replace":"assign"](c)}}function g(u,l){p(u,A({},n.state,_e(r.value.back,u,r.value.forward,!0),l,{position:r.value.position}),!0),o.value=u}function k(u,l){const d=A({},r.value,n.state,{forward:u,scroll:re()});p(d.current,d,!0),p(u,A({},_e(o.value,u,null),{position:d.position+1},l),!1),o.value=u}return{location:o,state:r,push:k,replace:g}}function ln(e){e=et(e);const n=Ct(e),t=Ot(e,n.state,n.location,n.replace);function o(p,g=!0){g||t.pauseListeners(),history.go(p)}const r=A({location:"",base:e,go:o,createHref:tt.bind(null,e)},n,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>n.state.value}),r}const xt={type:0,value:""},_t=/[a-zA-Z0-9_]/;function Tt(e){if(!e)return[[]];if(e==="/")return[[xt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(i){throw new Error(`ERR (${t})/"${l}": ${i}`)}let t=0,o=t;const r=[];let p;function g(){p&&r.push(p),p=[]}let k=0,u,l="",d="";function s(){l&&(t===0?p.push({type:0,value:l}):t===1||t===2||t===3?(p.length>1&&(u==="*"||u==="+")&&n(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),p.push({type:1,value:l,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):n("Invalid state to consume buffer"),l="")}function c(){l+=u}for(;k<e.length;)switch(u=e[k++],t){case 0:u==="\\"?(o=t,t=4):u==="/"?(l&&s(),g()):u===":"?(s(),t=1):c();break;case 4:c(),t=o;break;case 1:u==="("?t=2:_t.test(u)?c():(s(),t=0,u!=="*"&&u!=="?"&&u!=="+"&&k--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:t=3:d+=u;break;case 3:s(),t=0,u!=="*"&&u!=="?"&&u!=="+"&&k--,d="";break;default:n("Unknown state");break}return t===2&&n(`Unfinished custom RegExp for param "${l}"`),s(),g(),r}const Te="[^/]+?",Ht={sensitive:!1,strict:!1,start:!0,end:!0},Kt=/[.+*?^${}()[\]/\\]/g;function Nt(e,n){const t=A({},Ht,n),o=[];let r=t.start?"^":"";const p=[];for(const l of e){const d=l.length?[]:[90];t.strict&&!l.length&&(r+="/");for(let s=0;s<l.length;s++){const c=l[s];let i=40+(t.sensitive?.25:0);if(c.type===0)s||(r+="/"),r+=c.value.replace(Kt,"\\$&"),i+=40;else if(c.type===1){const{value:y,repeatable:m,optional:S,regexp:O}=c;p.push({name:y,repeatable:m,optional:S});const R=O||Te;if(R!==Te){i+=10;try{new RegExp(`(${R}
1)`)}catch(T){throw new Error(`Invalid custom RegExp for param "${y}" (${R}): `+T.message)}}let w=m?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;s||(w=S&&l.length<2?`(?:/${w})`:"/"+w),S&&(w+="?"),r+=w,i+=20,S&&(i+=-8),m&&(i+=-20),R===".*"&&(i+=-50)}d.push(i)}o.push(d)}if(t.strict&&t.end){const l=o.length-1;o[l][o[l].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const g=new RegExp(r,t.sensitive?"":"i");function k(l){const d=l.match(g),s={};if(!d)return null;for(let c=1;c<d.length;c++){const i=d[c]||"",y=p[c-1];s[y.name]=i&&y.repeatable?i.split("/"):i}return s}function u(l){let d="",s=!1;for(const c of e){(!s||!d.endsWith("/"))&&(d+="/"),s=!1;for(const i of c)if(i.type===0)d+=i.value;else if(i.type===1){const{value:y,repeatable:m,optional:S}=i,O=y in l?l[y]:"";if(ne(O)&&!m)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const R=ne(O)?O.join("/"):O;if(!R)if(S)c.length<2&&(d.endsWith("/")?d=d.slice(0,-1):s=!0);else throw new Error(`Missing required param "${y}"`);d+=R}}return d||"/"}return{re:g,score:o,keys:p,parse:k,stringify:u}}function jt(e,n){let t=0;for(;t<e.length&&t<n.length;){const o=n[t]-e[t];if(o)return o;t++}return e.length<n.length?e.length===1&&e[0]===80?-1:1:e.length>n.length?n.length===1&&n[0]===80?1:-1:0}function We(e,n){let t=0;const o=e.score,r=n.score;for(;t<o.length&&t<r.length;){const p=jt(o[t],r[t]);if(p)return p;t++}if(Math.abs(r.length-o.length)===1){if(He(o))return 1;if(He(r))return-1}return r.length-o.length}function He(e){const n=e[e.length-1];return e.length>0&&n[n.length-1]<0}const Mt={strict:!1,end:!0,sensitive:!1};function $t(e,n,t){const o=Nt(Tt(e.path),t),r=A(o,{record:e,parent:n,children:[],alias:[]});return n&&!r.record.aliasOf==!n.record.aliasOf&&n.children.push(r),r}function It(e,n){const t=[],o=new Map;n=Se(Mt,n);function r(s){return o.get(s)}function p(s,c,i){const y=!i,m=Ne(s);m.aliasOf=i&&i.record;const S=Se(n,s),O=[m];if("alias"in s){const T=typeof s.alias=="string"?[s.alias]:s.alias;for(const M of T)O.push(Ne(A({},m,{components:i?i.record.components:m.components,path:M,aliasOf:i?i.record:m})))}let R,w;for(const T of O){const{path:M}=T;if(c&&M[0]!=="/"){const K=c.record.path,_=K[K.length-1]==="/"?"":"/";T.path=c.record.path+(M&&_+M)}if(R=$t(T,c,S),i?i.alias.push(R):(w=w||R,w!==R&&w.alias.push(R),y&&s.name&&!je(R)&&g(s.name)),Qe(R)&&u(R),m.children){const K=m.children;for(let _=0;_<K.length;_++)p(K[_],R,i&&i.children[_])}i=i||R}return w?()=>{g(w)}:Y}function g(s){if(Le(s)){const c=o.get(s);c&&(o.delete(s),t.splice(t.indexOf(c),1),c.children.forEach(g),c.alias.forEach(g))}else{const c=t.indexOf(s);c>-1&&(t.splice(c,1),s.record.name&&o.delete(s.record.name),s.children.forEach(g),s.alias.forEach(g))}}function k(){return t}function u(s){const c=Gt(s,t);t.splice(c,0,s),s.record.name&&!je(s)&&o.set(s.record.name,s)}function l(s,c){let i,y={},m,S;if("name"in s&&s.name){if(i=o.get(s.name),!i)throw te(1,{location:s});S=i.record.name,y=A(Ke(c.params,i.keys.filter(w=>!w.optional).concat(i.parent?i.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),s.params&&Ke(s.params,i.keys.map(w=>w.name))),m=i.stringify(y)}else if(s.path!=null)m=s.path,i=t.find(w=>w.re.test(m)),i&&(y=i.parse(m),S=i.record.name,i.keys.forEach(w=>{w.optional&&!y[w.name]&&delete y[w.name]}));else{if(i=c.name?o.get(c.name):t.find(w=>w.re.test(c.path)),!i)throw te(1,{location:s,currentLocation:c});S=i.record.name,y=A({},c.params,s.params),m=i.stringify(y)}const O=[];let R=i;for(;R;)O.unshift(R.record),R=R.parent;return{name:S,path:m,params:y,matched:O,meta:Bt(O)}}e.forEach(s=>p(s));function d(){t.length=0,o.clear()}return{addRoute:p,resolve:l,removeRoute:g,clearRoutes:d,getRoutes:k,getRecordMatcher:r}}function Ke(e,n){const t={};for(const o of n)o in e&&(t[o]=e[o]);return t}function Ne(e){const n={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:zt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(n,"mods",{value:{}}),n}function zt(e){const n={},t=e.props||!1;if("component"in e)n.default=t;else for(const o in e.components)n[o]=typeof t=="object"?t[o]:t;return n}function je(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bt(e){return e.reduce((n,t)=>A(n,t.meta),{})}function Gt(e,n){let t=0,o=n.length;for(;t!==o;){const p=t+o>>1;We(e,n[p])<0?o=p:t=p+1}const r=Lt(e);return r&&(o=n.lastIndexOf(r,o-1)),o}function Lt(e){let n=e;for(;n=n.parent;)if(Qe(n)&&We(e,n)===0)return n}function Qe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Me(e){const n=B(ye),t=B(Ge),o=N(()=>{const u=X(e.to);return n.resolve(u)}),r=N(()=>{const{matched:u}=o.value,{length:l}=u,d=u[l-1],s=t.matched;
vendor: 8,221 bytes, line 1
1if(!d||!s.length)return-1;const c=s.findIndex(me.bind(null,d));if(c>-1)return c;const i=$e(u[l-2]);return l>1&&$e(d)===i&&s[s.length-1].path!==i?s.findIndex(me.bind(null,u[l-2])):c}),p=N(()=>r.value>-1&&Dt(t.params,o.value.params)),g=N(()=>r.value>-1&&r.value===t.matched.length-1&&ft(t.params,o.value.params));function k(u={}){if(Ut(u)){const l=n[X(e.replace)?"replace":"push"](X(e.to)).catch(Y);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:o,href:N(()=>o.value.href),isActive:p,isExactActive:g,navigate:k}}function Vt(e){return e.length===1?e[0]:e}const Ft=ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Me,setup(e,{slots:n}){const t=yt(Me(e)),{options:o}=B(ye),r=N(()=>({[Ie(e.activeClass,o.linkActiveClass,"router-link-active")]:t.isActive,[Ie(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const p=n.default&&Vt(n.default(t));return e.custom?p:j("a",{"aria-current":t.isExactActive?e.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},p)}}});function Ut(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function Dt(e,n){for(const t in n){const o=n[t],r=e[t];if(typeof o=="string"){if(o!==r)return!1}else if(!ne(r)||r.length!==o.length||o.some((p,g)=>p.valueOf()!==r[g].valueOf()))return!1}return!0}function $e(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ie=(e,n,t)=>e??n??t,qt=ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:t}){const o=B(pe),r=N(()=>e.route||o.value),p=B(ke,0),g=N(()=>{let l=X(p);const{matched:d}=r.value;let s;for(;(s=d[l])&&!s.components;)l++;return l}),k=N(()=>r.value.matched[g.value]);ee(ke,N(()=>g.value+1)),ee(pt,k),ee(pe,r);const u=Fe();return Ve(()=>[u.value,k.value,e.name],([l,d,s],[c,i,y])=>{d&&(d.instances[s]=l,i&&i!==d&&l&&l===c&&(d.leaveGuards.size||(d.leaveGuards=i.leaveGuards),d.updateGuards.size||(d.updateGuards=i.updateGuards))),l&&d&&(!i||!me(d,i)||!c)&&(d.enterCallbacks[s]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=r.value,d=e.name,s=k.value,c=s&&s.components[d];if(!c)return ze(t.default,{Component:c,route:l});const i=s.props[d],y=i?i===!0?l.params:typeof i=="function"?i(l):i:null,S=j(c,A({},y,n,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(s.instances[d]=null)},ref:u}));return ze(t.default,{Component:S,route:l})||S}}});function ze(e,n){if(!e)return null;const t=e(n);return t.length===1?t[0]:t}const Ye=qt;function cn(e){const n=It(e.routes,e),t=e.parseQuery||nt,o=e.stringifyQuery||Pe,r=e.history,p=Q(),g=Q(),k=Q(),u=vt(I);let l=I;W&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=ue.bind(null,a=>""+a),s=ue.bind(null,rt),c=ue.bind(null,at);function i(a,h){let f,v;return Le(a)?(f=n.getRecordMatcher(a),v=h):v=a,n.addRoute(v,f)}function y(a){const h=n.getRecordMatcher(a);h&&n.removeRoute(h)}function m(){return n.getRoutes().map(a=>a.record)}function S(a){return!!n.getRecordMatcher(a)}function O(a,h){if(h=A({},h||u.value),typeof a=="string"){const b=fe(t,a,h.path),x=n.resolve({path:b.path},h),q=r.createHref(b.fullPath);return A(b,x,{params:c(x.params),redirectedFrom:void 0,href:q})}let f;if(a.path!=null)f=A({},a,{path:fe(t,a.path,h.path).path});else{const b=A({},a.params);for(const x in b)b[x]==null&&delete b[x];f=A({},a,{params:s(b)}),h.params=s(h.params)}const v=n.resolve(f,h),P=a.hash||"";v.params=d(c(v.params));const C=ot(o,A({},a,{hash:st(P),path:v.path})),E=r.createHref(C);return A({fullPath:C,hash:P,query:o===Pe?it(a.query):a.query||{}},v,{redirectedFrom:void 0,href:E})}function R(a){return typeof a=="string"?fe(t,a,u.value.path):A({},a)}function w(a,h){if(l!==a)return te(8,{from:h,to:a})}function T(a){return _(a)}function M(a){return T(A(R(a),{replace:!0}))}function K(a,h){const f=a.matched[a.matched.length-1];if(f&&f.redirect){const{redirect:v}=f;let P=typeof v=="function"?v(a,h):v;return typeof P=="string"&&(P=P.includes("?")||P.includes("#")?P=R(P):{path:P},P.params={}),A({query:a.query,hash:a.hash,params:P.path!=null?{}:a.params},P)}}function _(a,h){const f=l=O(a),v=u.value,P=a.state,C=a.force,E=a.replace===!0,b=K(f,v);if(b)return _(A(R(b),{state:typeof b=="object"?A({},P,b.state):P,force:C,replace:E}),h||f);const x=f;x.redirectedFrom=h;let q;return!C&&lt(o,v,f)&&(q=te(16,{to:x,from:v}),Ee(v,v,!0,!1)),(q?Promise.resolve(q):z(x,v)).catch(H=>$(H)?$(H,2)?H:ie(H):se(H,x,v)).then(H=>{if(H){if($(H,2))return _(A({replace:E},R(H.to),{state:typeof H.to=="object"?A({},P,H.to.state):P,force:C}),h||x)}else H=be(x,v,!0,E,P);return Re(x,v,H),H})}function F(a,h){const f=w(a,h);return f?Promise.reject(f):Promise.resolve()}function G(a){const h=J.values().next().value;return h&&typeof h.runWithContext=="function"?h.runWithContext(a):a()}function z(a,h){let f;const[v,P,C]=ut(a,h);f=de(v.reverse(),"beforeRouteLeave",a,h);for(const b of v)b.leaveGuards.forEach(x=>{f.push(V(x,a,h))});const E=F.bind(null,a,h);return f.push(E),L(f).then(()=>{f=[];for(const b of p.list())f.push(V(b,a,h));return f.push(E),L(f)}).then(()=>{f=de(P,"beforeRouteUpdate",a,h);for(const b of P)b.updateGuards.forEach(x=>{f.push(V(x,a,h))});return f.push(E),L(f)}).then(()=>{f=[];for(const b of C)if(b.beforeEnter)if(ne(b.beforeEnter))for(const x of b.beforeEnter)f.push(V(x,a,h));else f.push(V(b.beforeEnter,a,h));return f.push(E),L(f)}).then(()=>(a.matched.forEach(b=>b.enterCallbacks={}),f=de(C,"beforeRouteEnter",a,h,G),f.push(E),L(f))).then(()=>{f=[];for(const b of g.list())f.push(V(b,a,h));return f.push(E),L(f)}).catch(b=>$(b,8)?b:Promise.reject(b))}function Re(a,h,f){k.list().forEach(v=>G(()=>v(a,h,f)))}function be(a,h,f,v,P){const C=w(a,h);if(C)return C;const E=h===I,b=W?history.state:{};f&&(v||E?r.replace(a.fullPath,A({scroll:E&&b&&b.scroll},P)):r.push(a.fullPath,P)),u.value=a,Ee(a,h,f,E),ie()}let U;function Ze(){U||(U=r.listen((a,h,f)=>{if(!D.listening)return;const v=O(a),P=K(v,D.currentRoute.value);if(P){_(A(P,{replace:!0,force:!0}),v).catch(Y);return}l=v;const C=u.value;W&&dt(Oe(C.fullPath,f.delta),re()),z(v,C).catch(E=>$(E,12)?E:$(E,2)?(_(A(R(E.to),{force:!0}),v).then(b=>{$(b,20)&&!f.delta&&f.type==="pop"&&r.go(-1,!1)}).catch(Y),Promise.reject()):(f.delta&&r.go(-f.delta,!1),se(E,v,C))).then(E=>{E=E||be(v,C,!1),E&&(f.delta&&!$(E,8)?r.go(-f.delta,!1):f.type==="pop"&&$(E,20)&&r.go(-1,!1)),Re(v,C,E)}).catch(Y)}))}let oe=Q(),we=Q(),Z;function se(a,h,f){ie(a);const v=we.list();return v.length?v.forEach(P=>P(a,h,f)):console.error(a),Promise.reject(a)}function Je(){return Z&&u.value!==I?Promise.resolve():new Promise((a,h)=>{oe.add([a,h])})}function ie(a){return Z||(Z=!a,Ze(),oe.list().forEach(([h,f])=>a?f(a):h()),oe.reset()),a}function Ee(a,h,f,v){const{scrollBehavior:P}=e;if(!W||!P)return Promise.resolve();const C=!f&&ht(Oe(a.fullPath,0))||(v||!f)&&history.state&&history.state.scroll||null;return ge().then(()=>P(a,h,C)).then(E=>E&&ct(E)).catch(E=>se(E,a,h))}const le=a=>r.go(a);let ce;const J=new Set,D={currentRoute:u,listening:!0,addRoute:i,removeRoute:y,clearRoutes:n.clearRoutes,hasRoute:S,getRoutes:m,resolve:O,options:e,push:T,replace:M,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:p.add,beforeResolve:g.add,afterEach:k.add,onError:we.add,isReady:Je,install(a){a.component("RouterLink",Ft),a.component("RouterView",Ye),a.config.globalProperties.$router=D,Object.defineProperty(a.config.globalProperties,"$route",{enumerable:!0,get:()=>X(u)}),W&&!ce&&u.value===I&&(ce=!0,T(r.location).catch(v=>{}));const h={};for(const v in I)Object.defineProperty(h,v,{get:()=>u.value[v],enumerable:!0});a.provide(ye,D),a.provide(Ge,Ue(h)),a.provide(pe,u);const f=a.unmount;J.add(a),a.unmount=function(){J.delete(a),J.size<1&&(l=I,U&&U(),U=null,u.value=
1I,ce=!1,Z=!1),f()}}};function L(a){return a.reduce((h,f)=>h.then(()=>G(f)),Promise.resolve())}return D}const Wt=/(:\w+)\([^)]+\)/g,Qt=/(:\w+)[?+*]/g,Yt=/:\w+/g,Xt=(e,n)=>n.path.replace(Wt,"$1").replace(Qt,"$1").replace(Yt,t=>e.params[t.slice(1)]?.toString()||""),ve=(e,n)=>{const t=e.route.matched.find(r=>r.components?.default===e.Component.type),o=n??t?.meta.key??(t&&Xt(e.route,t));return typeof o=="function"?o(e.route):o},Zt=(e,n)=>({default:()=>e?j(Rt,e===!0?{}:e,n):n});function un(e){return Array.isArray(e)?e:[e]}const Xe=(e="RouteProvider")=>ae({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(n){const t=n.renderKey,o=n.route,r={};for(const p in n.route)Object.defineProperty(r,p,{get:()=>t===n.renderKey?n.route[p]:o[p],enumerable:!0});return ee(De,Ue(r)),()=>n.vnode?j(n.vnode,{ref:n.vnodeRef}):n.vnode}}),Jt=Xe(),Be=new WeakMap,fn=ae({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:n,slots:t,expose:o}){const r=Pt(),p=Fe(),g=B(De,null);let k;o({pageRef:p});const u=B(kt,null);let l;const d=r.deferHydration();let s=!1,c=!1,i=0;if(r.isHydrating){const m=r.hooks.hookOnce("app:error",d),S=Ce().beforeEach(()=>{m(),S()})}e.pageKey&&Ve(()=>e.pageKey,(m,S)=>{m!==S&&r.callHook("page:loading:start")});let y=!1;{const m=Ce().beforeResolve(()=>{y=!1});bt(()=>{m(),d()})}return()=>j(Ye,{name:e.name,route:e.route,...n},{default:m=>{const S=en(g,m.route,m.Component),O=g&&g.matched.length===m.route.matched.length;if(!m.Component){if(l&&!O&&!he(l))return l;d();return}if(l&&u&&!he(l)&&!u.isCurrent(m.route))return l;if(S&&g&&(!u||u?.isCurrent(g)))return(O||l)&&!he(l)?l:null;const R=ve(m,e.pageKey),w=tn(g,m.route,m.Component);!r.isHydrating&&k===R&&!w&&ge(()=>{y||(y=!0,r.callHook("page:loading:end"))}),s&&k!==R&&c&&i++,k=R;const T=!!(e.transition??m.route.meta.pageTransition??xe),M=T&&mt([e.transition,m.route.meta.pageTransition,xe,{onAfterLeave(){r["~transitionFinish"]?.(),delete r["~transitionFinish"],delete r["~transitionPromise"],r.callHook("page:transition:finish",m.Component)}}]),K=e.keepalive??m.route.meta.keepalive??St;return l=gt(T&&M,Zt(K,j(wt,{key:i,suspensible:!0,onPending:()=>{s=!0,T&&!r["~transitionPromise"]&&(r["~transitionPromise"]=new Promise(_=>{r["~transitionFinish"]=_})),r.callHook("page:start",m.Component)}
1,onResolve:async()=>{s=!1,c=!0;try{await ge(),r._route.sync?.(),await r.callHook("page:finish",m.Component),!y&&!w&&(y=!0,await r.callHook("page:loading:end"))}finally{d()}}},{default:()=>{const _={key:R||void 0,vnode:t.default?nn(t.default,m):m.Component,route:m.route,renderKey:R||void 0,trackRootNodes:T,vnodeRef:p};if(!K)return j(Jt,_);const F=m.Component.type,G=F;let z=Be.get(G);return z||(z=Xe(F.name||F.__name),Be.set(G,z)),j(z,_)}}))).default(),l}})}});function en(e,n,t){if(!e)return!1;const o=n.matched.findIndex(g=>g.components?.default===t?.type);if(o===-1)return!1;const r=n.matched.slice(0,o).filter(g=>g.components?.default);if(!r.length)return!1;const p=e.matched.filter(g=>g.components?.default);return r.some((g,k)=>g.components?.default!==p[k]?.components?.default)||t&&ve({route:n,Component:t})!==ve({route:e,Component:t})}function tn(e,n,t){return e?n.matched.findIndex(r=>r.components?.default===t?.type)<n.matched.length-1:!1}function nn(e,n){const t=e(n);return t.length===1?j(t[0]):j(Et,void 0,t)}function he(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}export{fn as _,cn as a,ln as c,un 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.