PageSourceSearch

https://kids.gominno.com/_build/assets/routing-BGUfu_lA.js

js gominno.com collected 2026-09-24 09:51:55 UTC 9,161 bytes, 1 lines download raw bytes

1import{$ as H,a as v,g as ue,R as M,u as X,T as G,o as le,f as F,v as fe,d as J,Y as he,a0 as de,a1 as pe,_ as ge,b as me}from"./routes-DQCdgJlT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"27.2.3"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1f53d3f2-7d8f-4e1b-b247-0bd21534c1a0",e._sentryDebugIdIdentifier="sentry-dbid-1f53d3f2-7d8f-4e1b-b247-0bd21534c1a0")}catch{}})();function ye(){let e=new Set;function t(r){return e.add(r),()=>e.delete(r)}let n=!1;function s(r,a){if(n)return!(n=!1);const o={defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const c of e)c.listener({to:r,options:a,get defaultPrevented(){return o.defaultPrevented},preventDefault:o.preventDefault,from:c.location,retry:i=>{i&&(n=!0),c.navigate(r,{...a,resolve:!1})}});return!o.defaultPrevented}return{subscribe:t,confirm:s}}let q;function Q(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),q=window.history.state._depth}Q();function Ue(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function Te(e,t){let n=!1;return()=>{const s=q;Q();const r=s==null?null:q-s;if(n){n=!1;return}r&&t(r)?(n=!0,window.history.go(-r)):e()}}const we=/^(?:[a-z0-9]+:)?\/\//i,ve=/^\/+|(\/)\/+$/g,B="http://sr";function A(e,t=!1){const n=e.replace(ve,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function O(e,t,n){if(we.test(t))return;const s=A(e),r=n&&A(n);let a="";return!r||t.startsWith("/")?a=s:r.toLowerCase().indexOf(s.toLowerCase())!==0?a=s+r:a=r,(a||"/")+A(t,!a)}function be(e,t){if(e==null)throw new Error(t);return e}function Re(e,t){return A(e).replace(/\/*(\*.*)?$/g,"")+A(t)}function V(e){const t={};return e.searchParams.forEach((n,s)=>{s in t?Array.isArray(t[s])?t[s].push(n):t[s]=[t[s],n]:t[s]=n}),t}function Pe(e,t,n){const[s,r]=e.split("/*",2),a=s.split("/").filter(Boolean),o=a.length;return c=>{const i=c.split("/");if(i[0]===""&&i.shift(),i.length&&i[i.length-1]===""&&i.pop(),i.includes(""))return null;const h=i.length-o;if(h<0||h>0&&r===void 0&&!t)return null;const l={path:o?"":"/",params:{}},g=p=>n===void 0?void 0:n[p];for(let p=0;p<o;p++){const d=a[p],y=d[0]===":",b=y?i[p]:i[p].toLowerCase(),E=y?d.slice(1):d.toLowerCase();if(y&&T(b,g(E)))l.params[E]=b;
1else if(y||!T(b,E))return null;l.path+=`/${b}`}if(r){const p=h?i.slice(-h).join("/"):"";if(T(p,g(r)))l.params[r]=p;else return null}return l}}function T(e,t){const n=s=>s===e;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function xe(e){const[t,n]=e.pattern.split("/*",2),s=t.split("/").filter(Boolean);return s.reduce((r,a)=>r+(a.startsWith(":")?2:3),s.length-(n===void 0?0:1))}function Z(e){const t=new Map,n=ue();return new Proxy({},{get(s,r){return t.has(r)||H(n,()=>t.set(r,v(()=>e()[r]))),t.get(r)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(s,r){return r in e()}})}function Se(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach(([r,a])=>{a==null||a===""||a instanceof Array&&!a.length?n.delete(r):a instanceof Array?(n.delete(r),a.forEach(o=>{n.append(r,String(o))})):n.set(r,String(a))});const s=n.toString();return s?`?${s}`:""}function k(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),s=e.slice(t.index+t[0].length);const r=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(s);)r.push(n+=t[1]),s=s.slice(t[0].length);return k(s).reduce((a,o)=>[...a,...r.map(c=>c+o)],[])}function $e(e,t){return Object.defineProperty(e,"name",{value:t,writable:!1,configurable:!1}),e}const Ee=100,Le=G(),ee=G(),w=()=>be(M(Le),"<A> and 'use' router primitives can be only used inside a Route."),Ae=()=>M(ee)||w().base,qe=e=>{const t=Ae();return v(()=>t.resolvePath(e()))},Me=e=>{const t=w();return v(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},te=()=>w().navigatorFactory(),Ce=()=>w().location,We=()=>w().isRouting,Ne=()=>{const e=w().preloadRoute;return(t,n={})=>e(t instanceof URL?t:new URL(t,B),n.preloadData)},ze=()=>{const e=w();return()=>e.matches().slice()},Ke=()=>w().params,Ye=()=>{const e=w(),t=e.location,n=te(),s=(r,a)=>{const o=X(()=>{const c=e.pendingTarget&&new URL(e.pendingTarget.value,B),i=c?c.pathname:t.pathname,h=c?c.search:t.search,l=c?c.hash:t.hash;return i+Se(h,r)+l});n(o,{scroll:!1,resolve:!1,...a})};return[t.query,s]},He=e=>{const t=w().beforeLeave.subscribe({listener:e,location:Ce(),navigate:te()});le(t)},_e=e=>encodeURIComponent(e).replace(/%(2B|40|3A|24|26|2C|3B|3D)/g,t=>decodeURIComponent(t));function Ie(e,t=""){const{component:n,preload:s,load:r,children:a,info:o}=e,c=!a||Array.isArray(a)&&!a.length,i={key:e,component:n,preload:s||r,info:o};return ne(e.path).reduce((h,l)=>{for(const g of k(l)){const p=Re(t,g);let d=c?p:p.split("/*",1)[0];d=d.split("/").map(y=>y.startsWith(":")||y.startsWith("*")?y:_e(y)).join("/"),h.push({...i,originalPath:l,pattern:d,matcher:Pe(d,!c,e.matchFilters)})}return h},[])}function De(e,t=0){return{routes:e,score:xe(e[e.length-1])*1e4-t,matcher(n){const s=[];for(let r=e.length-1;r>=0;r--){const a=e[r],o=a.matcher(n);if(!o)return null;s.unshift({...o,route:a})}return s}}}function ne(e){return Array.isArray(e)?e:[e]}function Fe(e,t="",n=[],s=[]){const r=ne(e);for(let a=0,o=r.length;a<o;a++){const c=r[a];if(c&&typeof c=="object"){c.hasOwnProperty("path")||(c.path="");const i=Ie(c,t);for(const h of i){n.push(h);const l=Array.isArray(c.children)&&c.children.length===0;if(c.children&&!l)Fe(c.children,h.pattern,n,s);else{const g=De([...n],s.length);s.push(g)}n.pop()}}}return n.length?s:s.sort((a,o)=>o.score-a.score)}function $(e,t){for(let n=0,s=e.length;n<s;n++){const r=e[n].matcher(t);if(r)return r}return[]}function Oe(e,t,n){const s=new URL(B),r=v(l=>{const g=e();try{return new URL(g[0]==="/"?B+g:g,s)}catch{return console.error(`Invalid path ${g}`),l}},s,{equals:(l,g)=>l.href===g.href}),a=v(()=>r().pathname),o=v(()=>r().search,!0),c=v(()=>r().hash),i=()=>"",h=J(o,()=>V(r()));return{get pathname(){return a()},get search(){return o()},get hash(){return c()},get state(){return t()},get key(){return i()},query:n?n(h):Z(h)}}let R;function Xe(){return R}let S=!1;function Ge(){return S}function Je(e){S=e}function Qe(e,t,n,s={}){const{signal:[r,a],utils:o={}}=e,c=o.parsePath||(u=>u),i=o.renderPath||(u=>u),h=o.beforeLeave||ye(),l=O("",s.base||"");if(l===void 0)throw new Error(`${l} is not a valid base path`);l&&!r().value&&a({value:l,replace:!0,scroll:!1});const[g,p]=F(!1);let d;const y=(u,f)=>{f.value===b()&&f.state===C()||(d===void 0&&p(!0),R=u,d=f,he(()=>{d===f&&(E(d.value),re(d.state),de(),W[1](m=>m.filter(P=>P.pending)))}).finally(()=>{d===f&&pe(()=>{R=void 0,u==="navigate"&&ce(d),p(!1),d=void 0})}))},[b,E]=F(r().value),[C,re]=F(r().state),_=Oe(b,C,o.queryWrapper),I=[],W=F([]),N=v(()=>typeof s.transformUrl=="function"?$(t(),s.transformUrl(_.pathname)):$(t(),_.pathname)),z=()=>{const u=N(),f={};for(let m=0;m<u.length;m++)Object.assign(f,u[m].params);return f},se=o.paramsWrapper?o.paramsWrapper(z,t):Z(z),K={pattern:l,path:()=>l,outlet:()=>null,resolvePath(u){return O(l,u)}};return fe(J(r,u=>y("native",u),{defer:!0})),{base:K,location:_,params:se,isRouting:g,get pendingTarget(){return d},renderPath:i,parsePath:c,navigatorFactory:oe,matches:N,beforeLeave:h,preloadRoute:ie,singleFlight:s.singleFlight===void 0?!0:s.singleFlight,submissions:W};function ae(u,f,m){X(()=>
1{if(typeof f=="number"){f&&(o.go?o.go(f):console.warn("Router integration does not support relative routing"));return}const P=!f||f[0]==="?",{replace:j,resolve:x,scroll:U,state:L}={replace:!1,resolve:!P,scroll:!0,...m},D=x?u.resolvePath(f):O(P&&_.pathname||"",f);if(D===void 0)throw new Error(`Path '${f}' is not a routable path`);if(I.length>=Ee)throw new Error("Too many redirects");const Y=b();(D!==Y||L!==C())&&(ge||h.confirm(D,m)&&(I.push({value:Y,replace:j,scroll:U,state:C()}),y("navigate",{value:D,state:L})))})}function oe(u){return u=u||M(ee)||K,(f,m)=>ae(u,f,m)}function ce(u){const f=I[0];f&&(a({...u,replace:f.replace,scroll:f.scroll}),I.length=0)}function ie(u,f){const m=$(t(),u.pathname),P=R;R="preload";for(let j in m){const{route:x,params:U}=m[j];x.component&&x.component.preload&&x.component.preload();const{preload:L}=x;S=!0,f&&L&&H(n(),()=>L({params:U,location:{pathname:u.pathname,search:u.search,hash:u.hash,query:V(u),state:null,key:""},intent:"preload"})),S=!1}R=P}}function Ve(e,t,n,s){const{base:r,location:a,params:o}=e,{pattern:c,component:i,preload:h}=s().route,l=v(()=>s().path);i&&i.preload&&i.preload(),S=!0;const g=h?h({params:o,location:a,intent:R||"initial"}):void 0;return S=!1,{parent:t,pattern:c,path:l,outlet:()=>i?me(i,{params:o,location:a,data:g,get children(){return n()}}):n(),resolvePath(d){return O(r.path(),d,l())}}}export{Le as R,Qe as a,Ve as b,Fe as c,ee as d,Q as e,ye as f,Xe as g,Ce as h,ze as i,We as j,Ue as k,te as l,B as m,Te as n,Ke as o,Ye as p,Ne as q,qe as r,Je as s,Me as t,He as u,A as v,$e as w,Ge as x};

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.