1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74536,e=>{"use strict";var t=e.i(65014),i=e.i(53326),r=e.i(76324);e.s(["default",0,function(e={}){let{initialState:l=!1,condition:n=!1,toggleClass:s,action:a="slide",actionOptions:o=250}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[u,m,f,p]=(0,r.default)(l),h=u||n,g=(0,i.useCallback)(()=>{let e=c.current?(0,t.default)(c.current):null;e&&s&&e[h?"addClass":"removeClass"](s)},[h]),b=(0,i.useCallback)(()=>{let e=d.current?(0,t.default)(d.current):null;e&&o&&e[h?"slide"===a?"slideDown":"fadeIn":"slide"===a?"slideUp":"fadeOut"](o)},[h]);return(0,i.useEffect)(()=>{g(),b()},[g,b]),[c,d,h,m,f,p]}])},80147,e=>{"use strict";var t=e.i(53326);e.s(["useDeviceType",0,function(e={}){let{breakpoint:i=1020,initialState:r="desktop"}=e,[l,n]=(0,t.useState)(r),s=(0,t.useCallback)(()=>{n(window.innerWidth<i?"mobile":"desktop")},[i]);return(0,t.useEffect)(()=>(s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)),[s]),{deviceType:l,isMobile:"mobile"===l,isDesktop:"desktop"===l}}])},48595,e=>{"use strict";async function t(e,{params:i,...r}={}){let l,n=i?`?${new URLSearchParams(i)}`:"";if("/onemap/common/elastic/search"===e)l=`/api/onemap/common/elastic/search${n}`;else if("/onemap/moe/querySchools"===e)l=`/api/onemap/moe/querySchools${n}`;else if("/onemap/moe/nearbySecondarySchools"===e)l=`/api/onemap/moe/nearbySecondarySchools${n}`;else if("/onemap/moe/queryKindergartens"===e)l=`/api/onemap/moe/queryKindergartens${n}`;else if("/courses"===e)l=`/api/courses${n}`;else throw Error("Path not allowed");return fetch(l,r)}e.s(["apiFetch",0,t,"getDirectusFileURL",0,function(e){return"string"!=typeof e?"":e}])},95874,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return l}});let r=e.r(53326);function l(e,t){let i=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=i.current;e&&(i.current=null,e());let t=l.current;t&&(l.current=null,t())}else e&&(i.current=n(e,r)),t&&(l.current=n(t,r))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let i=e(t);return"function"==typeof i?i:()=>e(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},90836,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var l in r)Object.defineProperty(i,l,{enumerable:!0,get:r[l]});let n=e.r(44066)._(e.r(85305)),s=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:i}=e,r=e.protocol||"",l=e.pathname||"",a=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:i&&(c=t+(~i.indexOf(":")?`[${i}]`:i),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(n.urlQueryToSearchParams(o)));let d=e.search||o&&`?${o}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==c?(c="//"+(c||""),l&&"/"!==l[0]&&(l="/"+l)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),d&&"?"!==d[0]&&(d="?"+d),l=l.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${c}${l}${d}${a}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},86724,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return n}});let r=e.r(30997),l=e.r(11198);function n(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),i=new URL(e,t);return i.origin===t&&(0,l.hasBasePath)(i.pathname)}catch(e){return!1}}},84307,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},66473,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return x}};for(var l in r)Object.defineProperty(i,l,{enumerable:!0,get:r[l]});let n=e.r(44066),s=e.r(3403),a=n._(e.r(53326)),o=e.r(90836),c=e.r(86133),d=e.r(95874),u=e.r(30997),m=e.r(31027);e.r(13725);let f=e.r(96934),p=e.r(99279),h=e.r(86724),g=e.r(73416);function b(t){var i,r;let l,n,b,[x,y]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),_=(0,a.useRef)(null),{href:j,as:w,children:N,prefetch:k=null,passHref:E,replace:S,shallow:C,scroll:O,onClick:P,onMouseEnter:R,onTouchStart:M,legacyBehavior:I=!1,onNavigate:L,transitionTypes:$,ref:T,unstable_dynamicOnHover:D,...z}=t;l=N,I&&("string"==typeof l||"number"==typeof l)&&(l=(0,s.jsx)("a",{children:l}));let A=a.default.useContext(c.AppRouterContext),U=!1!==k,F=!1!==k?null===(r=k)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(i=w||j)?i:(0,o.formatUrl)(i);if(I){if(l?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=a.default.Children.only(l)}let B=I?n&&"object"==typeof n&&n.ref:T,K=a.default.useCallback(e=>(null!==A&&(_.current=(0,p.mountLinkInstance)(e,q,A,F,U,y)),()=>{_.current&&((0,p.unmountLinkForCurrentNavigation)(_.current),_.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,q,A,F,y]),W={ref:(0,d.useMergedRef)(K,B),onClick(t){I||"function"!=typeof P||P(t),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!A||t.defaultPrevented||function(t,i,r,l,n,s,o){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(i)){l&&(t.preventDefault(),location.replace(i));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(30120);a.default.startTransition(()=>{u(i,l?"replace":"push",!1===n?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,r.current,o)})}}(t,q,_,S,O,L,$)},onMouseEnter(e){I||"function"!=typeof R||R(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),A&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof M||M(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),A&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,u.isAbsoluteUrl)(q)?W.href=q:I&&!E&&("a"!==n.type||"href"in n.props)||(W.href=(0,m.addBasePath)(q)),b=I?a.default.cloneElement(n,W):(0,s.jsx)("a",{...z,...W,children:l}),(0,s.jsx)(v.Provider,{value:x,children:b})}e.r(84307);let v=(0,a.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},62282,(e,t,i)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:i,blurHeight:l,blurDataURL:n,objectFit:s}){let a=i?40*i:e,o=l?40*l:t,c=a&&o?`viewBox='0 0 ${a} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},73262,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return s}};for(var l in r)Object.defineProperty(i,l,{enumerable:!0,get:r[l]});let n=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},72747,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return c}}),e.r(13725);let r=e.r(66469),l=e.r(62282),n=e.r(73262),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:i=!1,priority:d=!1,preload:u=!1,loading:m,className:f,quality:p,width:h,height:g,fill:b=!1,style:v,overrideSrc:x,onLoad:y,onLoadingComplete:_,placeholder:j="empty",blurDataURL:w,fetchPriority:N,decoding:k="async",layout:E,objectFit:S,objectPosition:C,lazyBoundary:O,lazyRoot:P,...R},M){var I;let L,$,T,{imgConf:D,showAltText:z,blurComplete:A,defaultLoader:U}=M,F=D||n.imageConfigDefault;if("allSizes"in F)L=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>
1e-t),t=F.deviceSizes.sort((e,t)=>e-t),i=F.qualities?.sort((e,t)=>e-t);L={...F,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let q=R.loader||U;delete R.loader,delete R.srcSet;let B="__next_img_default"in q;if(B){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=q;q=t=>{let{config:i,...r}=t;return e(r)}}if(E){"fill"===E&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];e&&(v={...v,...e});let i={responsive:"100vw",fill:"100vw"}[E];i&&!t&&(t=i)}let K="",W=o(h),G=o(g);if((I=e)&&"object"==typeof I&&(a(I)||void 0!==I.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if($=t.blurWidth,T=t.blurHeight,w=w||t.blurDataURL,K=t.src,!b)if(W||G){if(W&&!G){let e=W/t.width;G=Math.round(t.height*e)}else if(!W&&G){let e=G/t.height;W=Math.round(t.width*e)}}else W=t.width,G=t.height}let X=!d&&!u&&("lazy"===m||void 0===m);(!(e="string"==typeof e?e:K)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,X=!1),L.unoptimized&&(i=!0),B&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let H=o(p),V=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:S,objectPosition:C}:{},z?{}:{color:"transparent"},v),J=A||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,l.getImageBlurSvg)({widthInt:W,heightInt:G,blurWidth:$,blurHeight:T,blurDataURL:w||"",objectFit:V.objectFit})}")`:`url("${j}")`,Q=s.includes(V.objectFit)?"fill"===V.objectFit?"100% 100%":"cover":V.objectFit,Y=J?{backgroundSize:Q,backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},Z=function({config:e,src:t,unoptimized:i,width:l,quality:n,sizes:s,loader:a}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,r.getDeploymentId)();if(e){let i=t.indexOf("?");if(-1!==i){let r=new URLSearchParams(t.slice(i+1));r.get("dpl")||(r.append("dpl",e),t=t.slice(0,i)+"?"+r.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:c}=function({deviceSizes:e,allSizes:t},i,r){if(r){let i=/(^|\s)(1?\d?\d)vw/g,l=[];for(let e;e=i.exec(r);)l.push(parseInt(e[2]));if(l.length){let i=.01*Math.min(...l);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,l,s),d=o.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:o.map((i,r)=>`${a({config:e,src:t,quality:n,width:i})} ${"w"===c?i:r+1}${c}`).join(", "),src:a({config:e,src:t,quality:n,width:o[d]})}}({config:L,src:e,unoptimized:i,width:W,quality:H,sizes:t,loader:q}),ee=X?"lazy":m;return{props:{...R,loading:ee,fetchPriority:N,width:W,height:G,decoding:k,className:f,style:{...V,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:x||Z.src},meta:{unoptimized:i,preload:u||d,placeholder:j,fill:b}}}},57431,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let r=e.r(53326),l="u"<typeof window,n=l?()=>{}:r.useLayoutEffect,s=l?()=>{}:r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:i}=e;function a(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(
2Boolean));t.updateHead(i(e))}}return l&&(t?.mountedInstances?.add(e.children),a()),n(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),n(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},60688,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return h},defaultHead:function(){return u}};for(var l in r)Object.defineProperty(i,l,{enumerable:!0,get:r[l]});let n=e.r(81258),s=e.r(44066),a=e.r(3403),o=s._(e.r(53326)),c=n._(e.r(57431)),d=e.r(95753);function u(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function m(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(13725);let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,i,r,l;return e.reduce(m,[]).reverse().concat(u().reverse()).filter((t=new Set,i=new Set,r=new Set,l={},e=>{let n=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?n=!1:t.add(i)}switch(e.type){case"title":case"base":i.has(e.type)?n=!1:i.add(e.type);break;case"meta":for(let t=0,i=f.length;t<i;t++){let i=f[t];if(e.props.hasOwnProperty(i))if("charSet"===i)r.has(i)?n=!1:r.add(i);else{let t=e.props[i],r=l[i]||new Set;("name"!==i||!s)&&r.has(t)?n=!1:(r.add(t),l[i]=r)}}}return n})).reverse().map((e,t)=>{let i=e.key||t;return o.default.cloneElement(e,{key:i})})}let h=function({children:e}){let t=(0,o.useContext)(d.HeadManagerContext);return(0,a.jsx)(c.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},33375,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return n}});let r=e.r(81258)._(e.r(53326)),l=e.r(73262),n=r.default.createContext(l.imageConfigDefault)},204,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(81258)._(e.r(53326)).default.createContext(null)},26801,(e,t,i)=>{"use strict";function r(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return r}})},68046,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return s}});let r=e.r(26801),l=e.r(66469);function n({config:e,src:t,width:i,quality:s}){let a=(0,l.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),r=i.get("dpl");if(r){a=r,i.delete("dpl");let l=i.toString();t=t.slice(0,e)+(l?"?"+l:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,r.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${o}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}n.__next_img_default=!0;let s=n},86757,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return y}});let r=e.r(81258),l=e.r(44066),n=e.r(3403),s=l._(e.r(53326)),a=r._(e.r(27601)),o=r._(e.r(60688)),c=e.r(72747),d=e.r(73262),u=e.r(33375
3);e.r(13725);let m=e.r(204),f=r._(e.r(68046)),p=e.r(95874),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1};function g(e,t,i,r,l,n,s){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&l(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,l=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>l,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{l=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function b(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,s.forwardRef)(({src:e,srcSet:t,sizes:i,height:r,width:l,decoding:a,className:o,style:c,fetchPriority:d,placeholder:u,loading:m,unoptimized:f,fill:h,onLoadRef:v,onLoadingCompleteRef:x,setBlurComplete:y,setShowAltText:_,sizesInput:j,onLoad:w,onError:N,...k},E)=>{let S=(0,s.useCallback)(e=>{e&&(N&&(e.src=e.src),e.complete&&g(e,u,v,x,y,f,j))},[e,u,v,x,y,N,f,j]),C=(0,p.useMergedRef)(E,S);return(0,n.jsx)("img",{...k,...b(d),loading:m,width:l,height:r,decoding:a,"data-nimg":h?"fill":"1",className:o,style:c,sizes:i,srcSet:t,src:e,ref:C,onLoad:e=>{g(e.currentTarget,u,v,x,y,f,j)},onError:e=>{_(!0),"empty"!==u&&y(!0),N&&N(e)}})});function x({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...b(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,i),null):(0,n.jsx)(o.default,{children:(0,n.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,s.forwardRef)((e,t)=>{let i=(0,s.useContext)(m.RouterContext),r=(0,s.useContext)(u.ImageConfigContext),l=(0,s.useMemo)(()=>{let e=h||r||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),i=e.deviceSizes.sort((e,t)=>e-t),l=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:l,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:a,onLoadingComplete:o}=e,p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let[b,y]=(0,s.useState)(!1),[_,j]=(0,s.useState)(!1),{props:w,meta:N}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:l,blurComplete:b,showAltText:_});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{...w,unoptimized:N.unoptimized,placeholder:N.placeholder,fill:N.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:j,sizesInput:e.sizes,ref:t}),N.preload?(0,n.jsx)(x,{isAppRouter:!i,imgAttributes:w}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},2916,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return c}};for(var l in r)Object.defineProperty(i,l,{enumerable:!0,get:r[l]});let n=e.r(81258),s=e.r(72747),a=e.r(86757),o=n._(e.r(68046));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let d=a.Image},25790,(e,t,i)=>{t.exports=e.r(2916)},5201,e=>{"use strict";var t=e.i(3403),i=e.i(48595),r=e.i(25790);let l=(0,e.i(53326).forwardRef)((e,l)=>{let{alt:n,file:s,width:a,height:o,...c}=e,d=(0,i.getDirectusFileURL)(s);if(!d)return null;let u="object"==typeof s?s:null,m=n||u?.alternative_text||u?.title||"",f=+(a||0),p=+(o||0);return!f||isNaN(f)||!p||isNaN(p)?(0,t.jsx)("img",{ref:l,alt:m,src:d,...c}):(0,t.jsx)(r.default,{ref:l,alt:m,src:d,width:f,height:p,...c})});e.s(["default",0,l])},30877,e=>{"use strict";var t=e.i(53326);e.s(["default",0,function(e){(0,t.useEffect)(()=>(e(),window.addEventListener("shortlistUpdated",e),()=>window.removeEventListener("shortlistUpdated",e)),[e])}])},66315,e=>{"use strict";var t=e.i(53326),i=e.i(76324);e.s(["default",0,function(){let e=(0,t.useRef)(null),[r,,l]=(0,i.default)();return(0,t.useEffect)(()=>
3{if(!e.current||r)return;let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&l()})},{threshold:.1});return t.observe(e.current),()=>t.disconnect()},[r]),[e,r]}])},92649,e=>{"use strict";var t=e.i(3403),i=e.i(53326),r=e.i(3893);e.s(["default",0,function(e){let{data:l,isMobileStyle:n}=e,s=l?.global_search_client_id,[a,o]=(0,i.useState)(!1),c=(0,i.useCallback)(()=>{s&&o(!0)},[s]);return(0,t.jsxs)(t.Fragment,{children:[!!a&&(0,t.jsx)(r.default,{strategy:"immediate",children:!!s&&`https://api.search.gov.sg/v1/searchconfig.js?clientId=${s}`}),(0,t.jsx)("div",{id:n?"moe-search-bar-mobile":"moe-search-bar",onClick:c,onFocusCapture:c,onKeyDown:()=>{},role:"region","aria-label":"Search section",tabIndex:0,children:(0,t.jsx)("div",{className:`moe-sw-searchbar bgc:white ${n?"":"p-x:xl"} pos:r z:2 desktop(p-y:l)`,children:(0,t.jsx)("div",{className:"wrap:m m-x:a",children:(0,t.jsx)("div",{id:"searchsg-searchbar",role:"search","aria-label":"Search"})})})})]})}])},15250,e=>{"use strict";var t=e.i(3403),i=e.i(53326);e.s(["default",0,function(){let[e,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=()=>{r(window.scrollY>100)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsx)("button",{"aria-label":"Scroll to top",className:"moe-scroll-top moe-btn type--secondary size--small tsn:s",style:{opacity:+!!e,visibility:e?"visible":"hidden"},onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,t.jsx)("span",{className:"icon-chevron-up"})})}])},8459,e=>{"use strict";var t=e.i(3403),i=e.i(64213),r=e.i(80147),l=e.i(66315),n=e.i(66473),s=e.i(53326);e.s(["default",0,function({mainFooterData:e,mainFooterInfoData:a}){let{isMobile:o}=(0,r.useDeviceType)(),[c,d]=(0,l.default)();return(0,s.useLayoutEffect)(()=>{if(!d)return;let e=()=>{document.querySelectorAll("optical-attributions").forEach(e=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".copyright");t&&(t.style.display="none"),e.classList.add("processed")}})};e();let t=[100,500,1e3].map(t=>setTimeout(e,t));return()=>{t.forEach(e=>clearTimeout(e))}},[d]),(0,t.jsx)("div",{ref:c,className:"moe-page__footer-bottom bgc:grey-1 c:grey-5 lc:grey-5 p-x:xl p-y:l",children:(0,t.jsx)("div",{className:"wrap:m m-x:a",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("ul",{className:"stack-x:l nm-t:xs m-b:s desktop(m-b:0)",children:e.map((e,i)=>(0,t.jsx)("li",{className:"va:m d:ib",children:(0,t.jsx)("div",{children:(0,t.jsxs)(n.default,{rel:"noopener noreferrer",className:"p:xs",href:e.url,target:"_blank",children:[e.title,!!e.is_icon_arrow&&(0,t.jsx)("span",{className:"icon-arrow-upper-right"})]})})},i))}),(0,t.jsxs)("div",{className:"p:xs",style:o?{display:"flex",flexDirection:"column",gap:"2rem",marginBottom:"1.5rem"}:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[d?s.default.createElement("optical-attributions",{variant:"white"}):(0,t.jsx)("div",{}),(0,t.jsx)(i.default,{className:"desktop(p-y:xl) desktop(ta:r) tablet(ta:l) tablet(m-t:s)",children:a?.title})]})]})})})}])},20459,e=>{"use strict";var t=e.i(3403),i=e.i(66473),r=e.i(11844),l=e.i(53326);let n=!1,s=e=>{e.currentTarget.blur()},a=e=>{("Enter"===e.key||" "===e.key)&&(n=!0)},o=e=>{let t=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(!t.current){t.current=!0;return}if(!n)return;n=!1;let e=document.body.getAttribute("tabindex");document.body.setAttribute("tabindex","-1"),document.body.focus(),requestAnimationFrame(()=>{null===e?document.body.removeAttribute("tabindex"):document.body.setAttribute("tabindex",e)})},[e])};e.s(["MenuLink",0,function(e){let{data:l}=e,n=(0,r.usePathname)();return o(n),(0,t.jsx)("li",{className:l?.url&&(n.startsWith(l.url)||n.endsWith(l.url))?"active":"",children:(0,t.jsx)(i.default,{href:l?.url||"",onClick:s,onKeyDown:a,children:l?.title})})},"MenuTitle",0,function(e){let{data:l}=e,n=(0,r.usePathname)();return o(n),(0,t.jsx)(i.default,{href:l?.is_clickable&&l?.url||"#",className:l?.url&&(n.startsWith(l.url)||n.endsWith(l.url))?"active-link":"",onClick:s,onKeyDown:a,children:l?.title})}])},57322,60787,e=>{"use strict";var t=e.i(98768),i=e.i(53326),r=e.i(30877);function l(){let[e,l]=(0,i.useState)(0),n=(0,i.useCallback)(()=>{let e=[],i=[];try{e=JSON.parse(localStorage.getItem("shortlist")||"[]"),i=JSON.parse(localStorage.getItem("shortlistcourses")||"[]")}
3catch{console.error("[OPERATION-LOG] [EXCEPTION] [useShortlist] Error parsing localStorage data for shortlist",{pod:t.default.env.HOSTNAME})}l((Array.isArray(e)?e.length:0)+(Array.isArray(i)?i.length:0))},[]);return(0,r.default)(n),e}e.s(["default",0,l],57322);var n=e.i(3403);e.s(["default",0,function(){let e=l();return(0,n.jsx)("span",{className:"moe-nav-shortlist__value m-l:2xs",children:"("+e+")"})}],60787)},45605,e=>{"use strict";var t=e.i(3403),i=e.i(20459),r=e.i(57322),l=e.i(7284);function n(){let e=(0,r.default)();return(0,t.jsx)("span",{className:(0,l.default)("icon-heart",e>0?"ic-filled":"ic-empty")})}var s=e.i(60787),a=e.i(5201),o=e.i(92649),c=e.i(76324),d=e.i(74536),u=e.i(48595),m=e.i(66473),f=e.i(11844),p=e.i(53326);function h(e){let{menu:r}=e,l=r.links?.map(e=>"object"==typeof e?e:null)?.filter(e=>e&&e.is_show_mobile).sort((e,t)=>(e?.order_mobile||0)-(t?.order_mobile||0)),n=!!l?.length,[s,a,,o]=(0,d.default)({toggleClass:"is--open"});return(0,t.jsxs)("li",{className:n?"has-children":"",children:[(0,t.jsx)(m.default,{ref:s,className:"w:100 d:f fld:r ai:c jc:sb p:0 c:grey-1",href:r.is_clickable?n?"#":r.url:"#",role:n?"button":void 0,onClick:n?o:void 0,children:(0,t.jsx)("h3",{className:"ts:m",children:r.title})}),!!n&&(0,t.jsx)("div",{className:"moe-site-navigation__menulist__dropdown-menu",children:(0,t.jsx)("ul",{ref:a,style:{display:"none"},children:l.map(e=>(0,t.jsx)(i.MenuLink,{data:e},e?.id))})})]})}e.s(["MainMenuItem",0,h,"default",0,function(e){let{isMk:i,logoData:r,headerData:l,mkHeaderData:g,topBarData:b,searchSgSettingData:v}=e,x=(0,f.usePathname)(),[y,_]=(0,c.default)(),[,j,,w]=(0,d.default)();return((0,p.useEffect)(()=>{if("u"<typeof document)return;let e=document.documentElement,t=document.body;if(e&&t)return y?(e.style.position="relative",e.style.overflow="hidden",t.style.width="100%",t.style.position="fixed",t.style.overflow="hidden"):(e.style.position="",e.style.overflow="",t.style.width="",t.style.position="",t.style.overflow=""),()=>{e.style.position="",e.style.overflow="",t.style.width="",t.style.position="",t.style.overflow=""}},[y]),l?.length||b?.length)?(0,t.jsxs)("div",{className:"d:b ipad(d:b) desktop(d:n)",children:[(0,t.jsxs)("nav",{className:"moe-site-navigation moe-site-navigation--mobile",children:[(0,t.jsx)("div",{className:"p-x:xl bsh:xs",children:(0,t.jsx)("div",{className:"wrap:m m-x:a",children:(0,t.jsxs)("div",{className:"d:f fld:r ai:c jc:sb p-y:s",children:[(0,t.jsxs)("div",{className:"d:f ai:c",children:[(0,t.jsx)("h1",{className:"nm:xs",children:(0,t.jsx)(m.default,{"aria-label":"MOE home",className:"d:b p:xs",href:r?.url||"",children:(0,t.jsx)(a.default,{className:"moe-logo",file:r?.logo,style:{backgroundImage:"none"},alt:"MOE logo"})})}),!!i&&(0,t.jsx)(m.default,{href:"/preschool/moe-kindergarten",className:"moe-site-navigation__seperator d:b p-l:s p:xs m-l:xl",children:(0,t.jsx)("span",{className:"moe-logo-mk",style:{backgroundImage:`url(${(0,u.getDirectusFileURL)(g?.icon)})`},children:"MOE Kindergarten"})})]}),(0,t.jsxs)("div",{className:"d:f jc:c ai:c",children:[(0,t.jsx)(m.default,{className:"mobile-shortlist d:f",href:"/shortlist","aria-label":"Shortlist",children:(0,t.jsx)(n,{})}),(0,t.jsx)("button",{className:`moe-site-navigation__button ts:2xl hv(c:grey-3) ${y?"icon-close":"icon-menu"}`,"aria-label":"Toggle navigation menu",type:"button",onClick:_})]})]})})}),(0,t.jsx)("div",{className:`moe-site-navigation__menu bgc:grey-6 pos:a l:0 w:100 h:100 z:max of-y:s ${y?"d:b":"d:n"}`,children:(0,t.jsxs)("div",{className:"pos:a t:0 l:0 w:100 h:100 p-x:xl p-t:l p-b:2xl bgc:grey-6",children:["/"!==x&&(0,t.jsx)(o.default,{isMobileStyle:!0,data:v}),(0,t.jsx)("div",{className:"moe-site-navigation__journeys m-t:l",children:(0,t.jsx)("ul",{className:"moe-site-navigation__globals-mobile stack-y:s m-t:m",children:b?.filter(e=>e.is_show_mobile).sort((e,t)=>(e.order_mobile||0)-(t.order_mobile||0)).map(e=>(0,t.jsx)(h,{menu:e},e.title))})}),(0,t.jsx)("ul",{className:"moe-site-navigation__globals stack-y:m m-t:l p-t:l bd-t:1 bdc:grey-5 lc:grey-1 p-b:6xl m-b:6xl",children:l?.filter(e=>i?e.is_show_mobile_mk_school:e.is_show_mobile).sort((e,t)=>
3(e.order_mobile||0)-(t.order_mobile||0)).map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"pos:r",children:(0,t.jsxs)(m.default,{href:e.url,children:[e.title,!!e.is_shortlisted&&(0,t.jsx)("span",{className:"moe-nav-shortlist-mobile__value m-l:2xs",children:(0,t.jsx)(s.default,{})})]})})},e.id))})]})})]}),!!i&&(0,t.jsx)("div",{className:"mobile-side-timeline type--sub-nav p-x:xl",children:(0,t.jsx)("div",{className:"features mobile-sideline-container",children:(0,t.jsxs)("div",{className:"mobile-btn-group w:100",children:[(0,t.jsxs)("button",{"aria-haspopup":"listbox",className:"dropdown-toggle",onClick:w,children:[(0,t.jsx)("span",{className:"dropdown-toggle-text",children:"MOE Kindergarten"}),(0,t.jsx)("span",{className:"icon-dropdown"})]}),(0,t.jsx)("ul",{ref:j,role:"listbox",className:"dropdown-menu m-large",style:{display:"none"},children:g?.item?.map(e=>"object"!=typeof e||"object"!=typeof e.mk_header_item_id?null:e.mk_header_item_id).filter(Boolean).map(e=>(0,t.jsx)("li",{className:"dropdown-link",children:(0,t.jsx)(m.default,{href:e?.url||"",className:e?.url===x?"active":"",children:e?.title})},e?.id))})]})})})]}):null}],45605)},62963,e=>{"use strict";var t=e.i(3403),i=e.i(20459),r=e.i(76324),l=e.i(74536),n=e.i(66473);function s(e){let{menu:r}=e,s=r.links,a=!!s?.length,[o,c,,d]=(0,l.default)({toggleClass:"is--open"});return(0,t.jsxs)("li",{className:a?"has-children":"",children:[(0,t.jsx)(n.default,{ref:o,href:r.is_clickable?a?"#":r.url:"#",role:a?"button":void 0,onClick:a?d:void 0,children:r.title}),!!a&&(0,t.jsx)("ul",{ref:c,style:{display:"none"},children:s.map(e=>(0,t.jsx)(i.MenuLink,{data:e},e.id))})]})}function a(e){let{data:i}=e,[n,,a,o]=(0,r.default)(!1),[c,d,u,m,,f]=(0,l.default)({condition:n,toggleClass:"active",action:"fade"});return i?.length?(0,t.jsxs)("div",{className:"moe-site-navigation__menulist",children:[(0,t.jsxs)("button",{className:"moe-site-navigation__menulist__btn fz:s-desktop m-t:2xs m-b:s",onClick:()=>{n?o():m()},onBlur:()=>{setTimeout(f,100)},children:[(0,t.jsx)("span",{className:`moe-site-navigation__menulist__btn__icon icon-${u?"close":"menu"}`}),"MOE Menu"]}),(0,t.jsx)("div",{ref:e=>{c.current=e,d.current=e},className:"moe-site-navigation__menulist__dropdown-menu",children:(0,t.jsx)("ul",{onClick:a,onKeyDown:void 0,children:i.map(e=>(0,t.jsx)(s,{menu:e},e.id))})})]}):null}var o=e.i(5201),c=e.i(92649),d=e.i(11844),u=e.i(53326);let m=()=>{let e=document.querySelector("#moe-search-bar");return{bar:e,page:document.querySelector(".moe-page__main"),inner:document.querySelector("#moe-search .moe-sw-searchbar")}};function f(){let e=(0,d.usePathname)(),[i,,l,n]=(0,r.default)(),s=(0,u.useCallback)(()=>{let{bar:e,page:t,inner:i}=m();e&&(e.style.top="100%"),i&&(i.style.display="none"),t?.classList.add("add-overlay"),"u">typeof document&&document.body.classList.add("searchbar-opened"),l()},[]),a=(0,u.useCallback)(()=>{let{bar:e,page:t,inner:i}=m();e&&(e.style.top="0"),i&&(i.style.display="block"),t?.classList.remove("add-overlay"),"u">typeof document&&document.body.classList.remove("searchbar-opened"),n()},[]),o=(0,u.useCallback)(()=>{i?a():s()},[i,s,a]);return((0,u.useEffect)(()=>{let e=e=>{let t=e.target;if(!t)return;let i=document.querySelector(".moe-page__main");i&&i.contains(t)&&i.classList.contains("add-overlay")&&a()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e),i&&a()}},[i,a]),"/"===e)?null:(0,t.jsx)("button",{className:"moe-btn moe-btn-header-s lh:1 d:f jc:c ai:c","aria-label":"search button",onClick:o,children:(0,t.jsx)("span",{className:`moe-btn-header-s__icon c:white fz:body ${i?"icon-close":"icon-search"}`})})}var p=e.i(48595);e.s(["default",0,function(e){let{isMk:r,data:l,mkData:s,logoData:d,searchSgSettingData:m}=e,[h,g]=(0,u.useState)(null),b=e=>{g(t=>t===e?null:e)};return l?.length?(0,t.jsxs)("nav",{className:`moe-site-navigation ${r?"theme--mk":""} moe-site-navigation--desktop pos:r z:1 ts:s d:n desktop(d:b)`,children:[(0,t.jsx)("div",{className:"pos:r z:3 p-x:xl p-y:s bgc:white bsh:xs moe-site-navigation-wrap",children:(0,t.jsx)("div",{className:"wrap:m m-x:a",children:(0,t.jsxs)("div",{className:"g:12 nm-x:m",children:[(0,t.jsx)("div",{className:`gcol:2 ${r?"p-l:m p-r:xl d:f fld:c jc:sb ai:c":"p-x:m"}`,children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{href:d?.url||"","aria-label":"MOE home",className:"d:b p-l:xs",children:(0,t.jsx)(o.default,{className:"moe-logo",file:d?.logo,style:{backgroundImage:"none"},alt:"MOE logo"})}),(0,t.jsx)(a,{data:l})]}):(0,t.jsxs)("div",{className:"h:100 d:f fld:r ai:c",children:[(0,t.jsx)("div",{children:(0,t.jsx)("div",{children:(0,t.jsx)(n.default,{className:"d:b p-l:xs","aria-label":"MOE home",href:d?.url||"",children:(0,t.jsx)(o.default,{className:"moe-logo",file:d?.logo,style:{backgroundImage:"none"},alt:"MOE logo"})})})}),(0,t.jsx)("div",{className:"m-l:3xl desktop(d:n)",children:(0,t.jsxs)("button",{className:"p:0 d:f fld:r ai:c fw:7 hv(c:grey-3)","aria-controls":"moe-navigation-menu",children:[(0,t.jsx)("span",{className:"icon-menu"}),(0,t.jsx)("span",{className:"m-l:s",children:"Education level"})]})})]})}),(0,t.jsx)("div",{className:`gcol:10 p-r:m d:f ai:fe ${r?"fld:c p-l:xl moe-site-navigation__seperator":"fld:r"}`,children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"d:f w:100 jc:sb",children:[(0,t.jsx)("div",{className:"h:100 d:f fld:r ai:c",children:(0,t.jsx)("div",{children:(0,t.jsx)(n.default,{className:"d:b",href:"/preschool/moe-kindergarten",children:(0,t.jsx)("span",{className:"moe-logo-mk",style:{backgroundImage:`url(${(0,p.getDirectusFileURL)(s?.icon)})`},children:"MOE Kindergarten"})})})}),(0,t.jsx)("div",{className:"d:f fld:r ai:c jc:sb m-b:l as:fe",children:(0,t.jsx)("ul",{className:"moe-control-panel stack-x:m ts:l m-r:m",children:(0,t.jsx)("li",{className:"d:ib",children:(0,t.jsx)(f,{})})})})]}),(0,t.jsx)("div",{className:"gcol:12 p-r:m d:f fld:r ai:fs",children:(0,t.jsx)("div",{className:"moe-site-navigation__globals flg:1",children:(0,t.jsx)("div",{className:"moe-site-navigation__global-utilities d:f fld:c ai:fs jc:sb m-t:s",children:(0,t.jsx)("ul",{className:"global-main-list theme--mk d:f fld:r",children:s?.item?.map(e=>"object"!=typeof e||"object"!=typeof e.mk_header_item_id?null:e.mk_header_item_id).filter(
3Boolean).map(e=>(0,t.jsx)("li",{className:e?.is_show_desktop?void 0:"tablet(d:n)",children:(0,t.jsx)(i.MenuTitle,{data:e})},e?.id))})})})})]}):(0,t.jsx)("div",{className:"moe-site-navigation__globals flg:1 m-l:xl",children:(0,t.jsxs)("div",{className:"moe-site-navigation__global-utilities d:f fld:r ai:c jc:sb",children:[(0,t.jsx)("ul",{className:"global-main-list d:f fld:r",children:l.map(e=>{let r,l;return(0,t.jsxs)("li",{className:e.links?.length?`has-children${h===e.id?" is-open":""}`:"",onBlur:e.links?.length?(r=e.id,e=>{let t=e.relatedTarget;t&&e.currentTarget.contains(t)||g(e=>e===r?null:e)}):void 0,children:[(0,t.jsx)(i.MenuTitle,{data:e}),!!e.links?.length&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"navigation-arrow",type:"button",tabIndex:0,"aria-pressed":h===e.id,"aria-expanded":h===e.id,onClick:()=>b(e.id),onKeyDown:(l=e.id,e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),b(l))}),children:[(0,t.jsx)("span",{className:"icon icon-chevron-down--after"}),(0,t.jsxs)("span",{className:"visuallyhidden",children:["show submenu for ",e.title]})]}),(0,t.jsxs)("div",{className:"moe-site-navigation__globals__dropdown-menu",children:[(0,t.jsx)("div",{className:"arrow"}),(0,t.jsx)("ul",{children:e.links.map(e=>(0,t.jsx)(i.MenuLink,{data:e},e.id))})]})]})]},e.id)})}),(0,t.jsx)("div",{className:"d:f fld:r ai:c jc:sb",children:(0,t.jsx)("ul",{className:"moe-control-panel stack-x:m ts:l m-r:m d:f jc:c ai:c",children:(0,t.jsx)("li",{className:"d:ib",children:(0,t.jsx)(f,{})})})})]})})})]})})}),(0,t.jsx)(c.default,{data:m}),(0,t.jsx)("style",{children:` 4 @media (min-width: 1005px) { 5 .moe-site-navigation--desktop .global-main-list li.has-children .navigation-arrow:focus, 6 .moe-site-navigation--desktop .global-main-list li.has-children .navigation-arrow:focus-visible { 7 outline: 5px solid #0b81da80; 8 outline-offset: 2px; 9 } 10 11 .moe-site-navigation--desktop .global-main-list li.has-children .navigation-arrow .icon-chevron-down--after, 12 .moe-site-navigation--desktop .global-main-list li.has-children .navigation-arrow .icon-chevron-down { 13 display: inline-block; 14 transition: transform 0.2s ease; 15 } 16 17 .moe-site-navigation--desktop .global-main-list li.has-children.is-open .navigation-arrow .icon-chevron-down--after, 18 .moe-site-navigation--desktop .global-main-list li.has-children.is-open .navigation-arrow .icon-chevron-down { 19 transform: rotate(180deg); 20 } 21 22 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu { 23 position: absolute; 24 display: block; 25 text-align: left; 26 width: 200px; 27 top: 2.25rem; 28 right: -20px; 29 background-color: #fff; 30 z-index: 2; 31 box-shadow: 0 0 8px rgba(212, 213, 217, 0.7); 32 border-radius: 4px; 33 } 34 35 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li { 36 border-bottom: 2px solid #f5f6f6; 37 margin-right: 0; 38 } 39 40 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li a { 41 display: block; 42 padding: 0.75rem 1.5rem; 43 color: #282e45; 44 } 45 46 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li a:hover { 47 color: #006afb; 48 } 49 50 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li.active { 51 background: #f5f6f6; 52 border-left: 6px solid #f9c621; 53 } 54 55 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li.active a { 56 color: #006afb; 57 } 58 59 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li:last-child { 60 border-bottom-left-radius: 4px; 61 border-bottom: 0; 62 bottom: 0; 63 } 64 65 .moe-site-navigation--desktop .global-main-list li.has-children.is-open > .moe-site-navigation__globals__dropdown-menu li:last-child a { 66 padding-bottom: 1rem; 67 } 68 } 69 `})]}):null}],62963)},42423,e=>{"use strict";var t=e.i(3403),i=e.i(5201),r=e.i(64213),l=e.i(76324);e.s(["default",0,function(e){let{data:n}=e,s=n?.links,[a,o]=(0,l.default)();return n&&s?.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"moe-government-masthead",children:(0,t.jsx)("div",{className:"p-x:xl",children:(0,t.jsx)("div",{className:"wrap:m m-x:a p-y:2xs ts:xs",children:(0,t.jsxs)("div",{className:"d:f fld:r ai:c",children:[(0,t.jsx)(i.default,{file:n.icon,width:15,height:18}),(0,t.jsx)("span",{className:"m-l:xs",children:n.title}),(0,t.jsxs)("span",{className:`government-masthead__toggle icon-chevron-down--after ${a?"government-masthead__toggle--active":""}`,onClick:o,onKeyDown:void 0,children:[(0,t.jsx)("span",{children:n.masthead_toggle_title}),"Â "]})]})})})}),(0,t.jsx)("div",{className:`government-masthead__content ${a?"government-masthead__content--active":""}`,children:(0,t.jsx)("div",{className:"p-x:xl",children:(0,t.jsx)("div",{className:"wrap:m m-x:a container",children:s.map(e=>(0,t.jsx)("div",{className:"government-masthead__banner",children:(0,t.jsxs)("div",{className:"government-masthead__wrap",children:[(0,t.jsx)(i.default,{file:e.icon}),(0,t.jsxs)("div",{className:"government-masthead__text",children:[(0,t.jsx)("strong",{children:e.title}),(0,t.jsx)(r.default,{children:e.content_text})]})]})},e.id))})})})]}):null}])}]);
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.