PageSourceSearch

https://logic.lk/assets/index-B6hOWifV.js

js logic.lk collected 2026-10-08 07:20:42 UTC 34,099 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/hero-desktop-CtWD9Fxj.js","assets/rolldown-runtime-CCT_m2FY.js","assets/react-Fyjr9G8a.js","assets/lucide-Du5NTjuW.js","assets/motion-DIT2RfQy.js","assets/google-g-icon-q_xrBf5C.js","assets/navbar-uiJVGSd5.js","assets/auth-context-kM9U-ZIA.js","assets/utils-CbNGOHui.js","assets/scroll-progress-CRmuv1VJ.js","assets/cookie-consent-BLlwWO50.js","assets/features-BXKNj671.js","assets/section-badge-CQrM04A0.js","assets/tgs-loader-CNcyYf3s.js","assets/about-BUlF8hW1.js","assets/results-CPmCtvTW.js","assets/testimonials-DSZAiOvp.js","assets/contact-Dyg_sdjv.js","assets/dist-BYY8pDaS.js","assets/dist-BVbUjs3x.js","assets/faq-data-Bpbsi2da.js","assets/site-search-Bo02Vfxv.js","assets/footer-BouLYsu0.js","assets/auth-callback-AhwSLLki.js","assets/not-found-Ds3Kayqp.js","assets/privacy-policy-CJPp0j8Y.js","assets/layout-DzuuRlVh.js","assets/page-spinner-BYrX_ere.js","assets/claim-index-context-o-C5eRr0.js","assets/gated-routes-DSUJ7ub-.js","assets/dashboard-CWFE0i_k.js","assets/student-index-badge-CnLmddQ9.js","assets/api-CDoApT6I.js","assets/classes-Bj6bsTIN.js","assets/badge-Bm5zCjgJ.js","assets/page-header-DdcYubPZ.js","assets/shimmer-BNQTmbds.js","assets/skeleton-counts-BbAFJePS.js","assets/classroom-B9mLKWnC.js","assets/use-now-BkI5PJpG.js","assets/recording-player-Oy1Exdm0.js","assets/paper-D37h4PCW.js","assets/enroll-BRBSECJd.js","assets/my-classes-C_IKarbV.js","assets/payments-BXk1HbQa.js","assets/results-7s5izMX2.js","assets/notices-CyBOHaYN.js","assets/settings-s3BwdKCh.js","assets/help-DxlORXWO.js","assets/dist-BOwBLSOW.js"])))=>i.map(i=>d[i]);
2import{a as t}from"./rolldown-runtime-CCT_m2FY.js";import{c as e,g as i,h as s,i as o,m as n,r,s as l,v as a}from"./react-Fyjr9G8a.js";import{At as h,Ot as c,V as d}from"./lucide-Du5NTjuW.js";import{l as p}from"./motion-DIT2RfQy.js";import{n as u,o as m,t as g}from"./auth-context-kM9U-ZIA.js";import{t as v}from"./google-g-icon-q_xrBf5C.js";var f=t(h(),1),w=i(),x=new Map;function _(t){const e=`${t.message}::${t.stack?.slice(0,200)??""}`,i=Date.now(),s=x.get(e);if(s&&i-s<1e4)return;x.set(e,i);const o=JSON.stringify({message:t.message.slice(0,500),stack:t.stack?.slice(0,3e3),componentStack:t.componentStack?.slice(0,3e3),url:window.location.href}),n=localStorage.getItem("token");fetch("https://student-api.logic.lk/api/client-errors",{method:"POST",headers:{"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{}},body:o,keepalive:!0}).catch(()=>{})}var y=p(),S=class extends f.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,e){_({message:t.message,stack:t.stack,componentStack:e.componentStack??void 0})}render(){return this.state.hasError?(0,y.jsxs)("div",{className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center",children:[(0,y.jsx)("h1",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),(0,y.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:"Please refresh the page. If the problem continues, contact support."}),(0,y.jsx)("button",{type:"button",onClick:()=>window.location.reload(),className:"rounded-full bg-primary px-5 py-2 text-sm font-medium text-primary-foreground",children:"Refresh"})]}):this.props.children}},j=(0,f.lazy)(()=>a(()=>import("./hero-desktop-CtWD9Fxj.js").then(t=>({default:t.HeroDesktop})),__vite__mapDeps([0,1,2,3,4,5])));function E(){return(0,y.jsx)("section",{className:"relative min-h-[100dvh] lg:min-h-[80dvh] lg:h-[800px] w-full bg-white"})}function b(){const t="https://student-api.logic.lk/auth/google",{user:e,loading:i}=u(),s=e?"authed":i&&m()?"checking":"guest";return"undefined"!=typeof window&&window.innerWidth<1024?(0,y.jsxs)("section",{id:"hero",className:"relative min-h-[100dvh] lg:min-h-[80dvh] lg:h-[800px] w-full overflow-hidden bg-white flex items-center lg:items-end",children:[(0,y.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,y.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/[0.06] via-white to-accent/[0.04]"}),(0,y.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:["radial-gradient(70% 70% at 75% 20%, rgba(232,0,42,0.12) 0%, transparent 60%)","radial-gradient(65% 65% at 18% 63%, rgba(232,0,42,0.08) 0%, transparent 60%)","radial-gradient(45% 45% at 75% 60%, rgba(255,183,0,0.08) 0%, transparent 60%)"].join(",")}}),(0,y.jsx)("div",{className:"absolute inset-0 opacity-[0.12]",children:(0,y.jsxs)("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",role:"img",children:[(0,y.jsx)("title",{children:"Backgroun
2d Pattern"}),(0,y.jsx)("defs",{children:(0,y.jsxs)("pattern",{id:"topography",width:"200",height:"200",patternUnits:"userSpaceOnUse",patternTransform:"rotate(-15)",children:[(0,y.jsx)("path",{d:"M0,50 Q50,0 100,50 T200,50",fill:"none",stroke:"#e8002a",strokeWidth:"1"}),(0,y.jsx)("path",{d:"M0,100 Q50,50 100,100 T200,100",fill:"none",stroke:"#e8002a",strokeWidth:"1"}),(0,y.jsx)("path",{d:"M0,150 Q50,100 100,150 T200,150",fill:"none",stroke:"#e8002a",strokeWidth:"1"}),(0,y.jsx)("path",{d:"M50,0 Q0,50 50,100 T50,200",fill:"none",stroke:"#ffb700",strokeWidth:"1",opacity:"0.5"})]})}),(0,y.jsx)("rect",{width:"100%",height:"100%",fill:"url(#topography)"})]})})]}),(0,y.jsx)("div",{className:"max-w-7xl mx-auto px-4 w-full lg:h-full relative z-10 flex items-center lg:items-end",children:(0,y.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-end pt-20 lg:pt-16",children:(0,y.jsxs)("div",{className:"flex flex-col items-center text-center justify-center min-h-[calc(100dvh-6rem)] pb-8",children:[(0,y.jsx)("h1",{className:"sr-only",children:"Hiruni Hewage Logic Class — A/L තාර්කික ශාස්ත්‍රය"}),(0,y.jsx)("div",{className:"animate-hero-fade-up mb-2",children:(0,y.jsx)("img",{src:"/images/hero/Text.avif",srcSet:"/images/hero/Text-280.avif 280w, /images/hero/Text-560.avif 560w, /images/hero/Text.avif 640w",sizes:"280px",alt:"වැඩ කරන Logic පන්තිය",width:"640",height:"467",fetchPriority:"high",loading:"eager",decoding:"sync",className:"h-auto w-full max-w-[280px] object-contain mx-auto"})}),(0,y.jsx)("h2",{className:"animate-hero-fade-up text-2xl font-bold text-primary italic mb-8 font-heading",style:{animationDelay:"0.06s"},children:"Hiruni Hewage"}),(0,y.jsx)("p",{className:"animate-hero-fade-up text-gray-600 text-base max-w-[480px] mb-14 font-sinhala leading-relaxed opacity-80 text-center",style:{animationDelay:"0.12s"},children:"පළමු කණ්ඩායමෙන්ම Logic විෂය වෙනුවෙන් දිවයිනේ ඉහළම ප්‍රතිඵලය බිහිකල, ඔබේ අනාගත නීති සිහිනය වෙනුවෙන් පාර දන්න කෙනෙක් පාර කියන ලංකාවේ එකම Logic පන්තිය."}),(0,y.jsx)("div",{className:"animate-hero-fade-up flex flex-col items-stretch gap-3 mb-6 w-full",style:{animationDelay:"0.18s"},children:"authed"===s?(0,y.jsxs)(o,{to:"/dashboard",className:"group inline-flex items-center justify-center h-12 px-8 rounded-full bg-gradient-to-br from-[#ff0033] to-primary text-white hover:opacity-90 text-base font-bold shadow-xl shadow-primary/20 transition-all active:scale-95 w-full",children:["Go to Dashboard",(0,y.jsx)(c,{className:"ml-2 w-5 h-5"})]}):"checking"===s?(0,y.jsx)("button",{type:"button",disabled:!0,"aria-busy":"true","aria-label":"Signing you in",className:"inline-flex items-center justify-center h-12 px-8 rounded-full bg-gradient-to-br from-[#ff0033] to-primary text-white text-base font-bold shadow-xl shadow-primary/20 w-full cursor-default opacity-90",children:(0,y.jsx)(d,{className:"w-5 h-5 animate-spin"})}):(0,y.jsxs)("a",{href:t,className:"group inline-flex items-center justify-center gap-2.5 h-12 px-8 rounded-full bg-gradient-to-br from-[#ff0033] to-primary text-white hover:opacity-90 text-base font-bold shadow-xl shadow-primary/20 transition-all active:scale-95 w-full",children:[(0,y.jsx)(v,{className:"w-5 h-5"}),"Sign In with Google"]})})]})})})]}):(0,y.jsx)(f.Suspense,{fallback:(0,y.jsx)(E,{}),children:(0,y.jsx)(j,{ctaState:s,googleUrl:t})})}var T="1.3.23";function L(t,e,i){return Math.max(t,Math.min(e,i))}var z=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;const i=L(0,this.currentTime/this.duration,1);e=i>=1;const s=e?1:this.easing(i);this.value=this.from+(this.to-this.from)*s}else this.lerp?(this.value=function(t,e,i,s){return function(t,e,i){return(1-i)*t+i*e}(t,e,1-Math.exp(-i*s))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:s,easing:o,onStart:n,onUpdate:r}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,n?.(),this.onUpdate=r}};var N=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(t,e,{autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...s){clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(this,s)},e)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},k=class{events={};emit(t,...e){const i=this.events[t]||[];for(let s=0,o=i.length;s<o;s++)i[s]?.(...e)}on(t,e){return this.events[t]?this.events[t].push(e):this.events[t]=[e],()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}},R=100/6,O={passive:!1};function D(t,e){return 1===t?R:2===t?e:1}var I=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new k;constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,O),this.element.addEventListener("touchstart",this.onTouchStart,O),this.element.addEventListener("touchmove",this.onTouchMove,O),this.element.addEventListener("touchend",this.onTouchEnd,O)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,O),this.element.removeEventListener("touchstart",this.onTouchStart,O),this.element.removeEventListener("touchmove",this.onTouchMove,O),this.element.removeEventListener("touchend",this.onTouchEnd,O)}onTouchStart=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.options.touchMultiplier,o=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:o},this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t;e*=D(s,this.window.width),i*=D(s,this.window.height),e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},P=t=>Math.min(1,1.001-2**(-10*t)),A=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new z;emitter=new k;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:s=!0,syncTouch:o=!1,syncTouchLerp:n=.075,touchInertiaExponent:r=1.7,duration:l,easing:a,lerp:h=.1,infinite:c=!1,orientation:d="vertical",gestureOrientation:p=("horizontal"===d?"both":"vertical"),touchMultiplier:u=1,wheelMultiplier:m=1,autoResize:g=!0,prevent:v,virtualScroll:f,overscroll:w=!0,autoRaf:x=!1,anchors:_=!1,autoToggle:y=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:j=!1,naiveDimensions:E=j,stopInertiaOnNavigate:b=!1}={}){window.lenisVersion=T,window.lenis||(window.lenis={}),window.lenis.version=T,"horizontal"===d&&(window.lenis.horizontal=!0),!0===o&&(window.lenis.touch=!0),t&&t!==document.documentElement||(t=window),"number"==typeof l&&"function"!=typeof a?a=P:"function"==typeof a&&"number"!=typeof l&&(l=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:s,syncTouch:o,syncTouchLerp:n,touchInertiaExponent:r,duration:l,easing:a,lerp:h,infinite:c,gestureOrientation:p,orientation:d,touchMultiplier:u,wheelMultiplier:m,autoResize:g,prevent:v,virtualScroll:f,overscroll:w,autoRaf:x,anchors:_,autoToggle:y,allowNestedScroll:S,naiveDimensions:E,stopInertiaOnNavigate:b},this.dimensions=new N(t,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=ne
2w I(i,{touchMultiplier:u,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){const t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName?.includes("overflow")&&t.target===this.rootElement&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{const e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){const t=e.find(t=>i.host===t.host&&i.pathname===t.pathname&&t.hash);if(t){const e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=`#${t.hash.split("#")[1]}`;return void this.scrollTo(i,e)}}this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname)&&this.reset()};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;const{deltaX:e,deltaY:i,event:s}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:s}),s.ctrlKey)return;if(s.lenisStopPropagation)return;const o=s.type.includes("touch"),n=s.type.includes("wheel");this.isTouching="touchstart"===s.type||"touchmove"===s.type;const r=0===e&&0===i;if(this.options.syncTouch&&o&&"touchstart"===s.type&&r&&!this.isStopped&&!this.isLocked)return void this.reset();const l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(r||l)return;let a=s.composedPath();a=a.slice(0,a.indexOf(this.rootElement));const h=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(a.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||"vertical"===c&&t.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===c&&t.hasAttribute?.("data-lenis-prevent-horizontal")||o&&t.hasAttribute?.("data-lenis-prevent-touch")||n&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(t,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked)return void(s.cancelable&&s.preventDefault());if(!(this.options.syncTouch&&o||this.options.smoothWheel&&n))return this.isScrolling="native",this.animate.stop(),void(s.lenisStopPropagation=!0);let d=i;"both"===this.options.gestureOrientation?d=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const p=o&&this.options.syncTouch,u=o&&"touchend"===s.type;u&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...p?{lerp:u?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
2()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent)this._preventNextNativeScrollEvent=!1;else if(!1===this.isScrolling||"native"===this.isScrolling){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.options.autoToggle?this.rootElement.style.removeProperty("overflow"):this.internalStart())}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.options.autoToggle?this.rootElement.style.setProperty("overflow","clip"):this.internalStop())}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{const e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:s=!1,programmatic:o=!0,lerp:n=(o?this.options.lerp:void 0),duration:r=(o?this.options.duration:void 0),easing:l=(o?this.options.easing:void 0),onStart:a,onComplete:h,force:c=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!c)return;let p=t,u=e;if("string"==typeof p&&["top","left","start","#"].includes(p))p=0;else if("string"==typeof p&&["bottom","right","end"].includes(p))p=this.limit;else{let t=null;if("string"==typeof p?(t=document.querySelector(p),t||("#top"===p?p=0:console.warn("Lenis: Target not found",p))):p instanceof HTMLElement&&p?.nodeType&&(t=p),t){if(this.options.wrapper!==window){const t=this.rootElement.getBoundingClientRect();u-=this.isHorizontal?t.left:t.top}const e=t.getBoundingClientRect(),i=getComputedStyle(t),s=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),o=getComputedStyle(this.rootElement),n=this.isHorizontal?Number.parseFloat(o.scrollPaddingLeft):Number.parseFloat(o.scrollPaddingTop);p=(this.isHorizontal?e.left:e.top)+this.animatedScroll-(Number.isNaN(s)?0:s)-(Number.isNaN(n)?0:n)}}if("number"==typeof p){if(p+=u,this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;const t=p-this.animatedScroll;t>this.limit/2?p-=this.limit:t<-this.limit/2&&(p+=this.limit)}}else p=L(0,p,this.limit);if(p===this.targetScroll)return a?.(this),void h?.(this);if(this.userData=d??{},i)return this.animatedScroll=this.targetScroll=p,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),h?.(this),this.userData={},void requestAnimationFrame(()=>{this.dispatchScrollendEvent()});o||(this.targetScroll=p),"number"==typeof r&&"function"!=typeof l?l=P:"function"==typeof l&&"number"!=typeof r&&(r=1),this.animate.fromTo(this.animatedScroll,p,{duration:r,easing:l,lerp:n,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),o&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(t,{deltaX:e,deltaY:i}){const s=Date.now();t._lenis||(t._lenis={});const o=t._lenis;let n,r,l,a,h,c,d,p,u,m;if(s-(o.time??0)>2e3){o.time=Date.now();const e=window.getComputedStyle(t);if(o.computedStyle=e,n=["auto","overlay","scroll"].includes(e.overflowX),r=["auto","overlay","scroll"].includes(e.overflowY),h=["auto"].includes(e.overscrollBehaviorX),c=["auto"].includes(e.overscrollBehaviorY),o.hasOverflowX=n,o.hasOverflowY=r,!n&&!r)return!1;d=t.scrollWidth,p=t.scrollHeight,u=t.clientWidth,m=t.clientHeight,l=d>u,a=p>m,o.isScrollableX=l,o.isScrollableY=a,o.scrollWidth=d,o.scrollHeight=p,o.clientWidth=u,o.clientHeight=m,o.hasOverscrollBehaviorX=h,o.hasOverscrollBehaviorY=c}else l=o.isScrollableX,a=o.isScrollableY,n=o.hasOverflowX,r=o.hasOverflowY,d=o.scrollWidth,p=o.scrollHeight,u=o.clientWidth,m=o.clientHeight,h=o.hasOverscrollBehaviorX,c=o.hasOverscrollBehaviorY;if(!(n&&l||r&&a))return!1;const g=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";let v,f,w,x,_,y;if("horizontal"===g)v=Math.round(t.scrollLeft),f=d-u,w=e,x=n,_=l,y=h;else{if("vertical"!==g)return!1;v=Math.round(t.scrollTop),f=p-m,w=i,x=r,_=a,y=c}return!y&&(v>=f||v<=0)||(w>0?v<f:v>0)&&x&&_}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){const t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?(t=this.animatedScroll,e=this.limit,(t%e+e)%e):this.animatedScroll;var t,e}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(t=>{this.rootElement.classList.add(t)})}cleanUpClassName(){for(const t of Array.from(this.rootElement.classList))("lenis"===t||t.startsWith("lenis-"))&&this.rootElement.classList.remove(t)}};var M=(0,f.lazy)(()=>a(()=>import("./navbar-uiJVGSd5.js").then(t=>({default:t.HomepageNavbar})),__vite__mapDeps([6,1,2,3,4,7,8]))),W=(0,f.lazy)(()=>a(()=>import("./scroll-progress-CRmuv1VJ.js").then(t=>({default:t.ScrollProgress})),__vite__mapDeps([9,4,1,3]))),V=(0,f.lazy)(()=>a(()=>
2import("./cookie-consent-BLlwWO50.js").then(t=>({default:t.CookieConsent})),__vite__mapDeps([10,1,4,3]))),H=(0,f.lazy)(()=>a(()=>import("./features-BXKNj671.js").then(t=>({default:t.FeaturesSection})),__vite__mapDeps([11,1,4,3,12,8,2,13]))),C=(0,f.lazy)(()=>a(()=>import("./about-BUlF8hW1.js").then(t=>({default:t.AboutSection})),__vite__mapDeps([14,1,4,3,12,8,2]))),X=(0,f.lazy)(()=>a(()=>import("./results-CPmCtvTW.js").then(t=>({default:t.ResultsSection})),__vite__mapDeps([15,4,1,3,12,8,2]))),Y=(0,f.lazy)(()=>a(()=>import("./testimonials-DSZAiOvp.js").then(t=>({default:t.Testimonials})),__vite__mapDeps([16,4,1,3,8,2,12]))),U=(0,f.lazy)(()=>a(()=>import("./contact-Dyg_sdjv.js").then(t=>({default:t.ContactSection})),__vite__mapDeps([17,1,2,3,18,4,19,8,12,20]))),F=(0,f.lazy)(()=>a(()=>import("./site-search-Bo02Vfxv.js").then(t=>({default:t.SiteSearch})),__vite__mapDeps([21,1,2,3,4,20]))),B=(0,f.lazy)(()=>a(()=>import("./footer-BouLYsu0.js").then(t=>({default:t.Footer})),__vite__mapDeps([22,4,1,3])));function q(){return(0,f.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t,e,i;const s=()=>{t=new A({autoRaf:!0,lerp:.1,duration:1.2,smoothWheel:!0,syncTouch:!0,syncTouchLerp:.075,touchInertiaExponent:1.7,anchors:!0,autoToggle:!0,stopInertiaOnNavigate:!0})};return"function"==typeof window.requestIdleCallback?e=window.requestIdleCallback(s):i=window.setTimeout(s,1),()=>{void 0!==e&&window.cancelIdleCallback(e),void 0!==i&&window.clearTimeout(i),t?.destroy()}},[]),(0,y.jsxs)("div",{className:"bg-white min-h-screen font-sans antialiased overflow-x-hidden relative",children:[(0,y.jsxs)(n,{children:[(0,y.jsx)("title",{children:"Hiruni Hewage Logic | logic.lk — A/L තාර්කික ශාස්ත්‍රය"}),(0,y.jsx)("meta",{name:"description",content:"Hiruni Hewage Logic — ශ්‍රී ලංකාවේ ඉහළම A/L Logic (තාර්කික ශාස්ත්‍රය) පන්තිය. 94% සමත් ප්‍රතිශතය, 42% A සාර්ථකත්වය. Online classes, recordings & study materials."})]}),(0,y.jsx)(f.Suspense,{fallback:null,children:(0,y.jsx)(W,{})}),(0,y.jsx)(f.Suspense,{fallback:null,children:(0,y.jsx)(M,{})}),(0,y.jsxs)("main",{id:"main-content",className:"relative z-10",children:[(0,y.jsx)(f.Suspense,{fallback:null,children:(0,y.jsx)(V,{})}),(0,y.jsxs)("div",{className:"relative z-10",children:[(0,y.jsx)(b,{}),(0,y.jsxs)(f.Suspense,{children:[(0,y.jsx)(H,{}),(0,y.jsx)(C,{}),(0,y.jsx)(X,{}),(0,y.jsx)(Y,{}),(0,y.jsx)(U,{}),(0,y.jsx)(B,{})]}),(0,y.jsx)(f.Suspense,{fallback:null,children:(0,y.jsx)(F,{})})]})]})]})}var Q=(0,f.lazy)(()=>a(()=>import("./auth-callback-AhwSLLki.js").then(t=>({default:t.AuthCallback})),__vite__mapDeps([23,1,2,3,4,7,8]))),$=(0,f.lazy)(()=>a(()=>import("./not-found-Ds3Kayqp.js").then(t=>({default:t.NotFound})),__vite__mapDeps([24,2,1,3,4]))),G=(0,f.lazy)(()=>a(()=>import("./privacy-policy-CJPp0j8Y.js").then(t=>({default:t.PrivacyPolicy})),__vite__mapDeps([25,1,2,3,4,22,6,7,8]))),J=(0,f.lazy)(()=>a(()=>import("./layout-DzuuRlVh.js").then(t=>({default:t.StudentPortalLayout})),__vite__mapDeps([26,1,2,3,4,19,8,5,27,7,28,29,20,13]))),K=(0,f.lazy)(()=>a(()=>import("./dashboard-CWFE0i_k.js").then(t=>({default:t.StudentDashboard})),__vite__mapDeps([30,1,2,3,4,8,31,19,7,28,32,13]))),Z=(0,f.lazy)(()=>a(()=>import("./classes-Bj6bsTIN.js"),__vite__mapDeps([33,1,2,3,34,18,8,4,35,36,32,29,20,37]))),tt=(0,f.lazy)(()=>a(()=>import("./classroom-B9mLKWnC.js"),__vite__mapDeps([38,1,2,3,4,8,27,32,39,13]))),et=(0,f.lazy)(()=>a(()=>import("./recording-player-Oy1Exdm0.js"),__vite__mapDeps([40,1,2,3,4,8,32]))),it=(0,f.lazy)(()=>a(()=>import("./paper-D37h4PCW.js"),__vite__mapDeps([41,1,2,3,4,19,8,36,7,28,32,39]))),st=(0,f.lazy)(()=>a(()=>import("./enroll-BRBSECJd.js"),__vite__mapDeps([42,1,2,3,34,18,8,4,27,7,32]))),ot=(0,f.lazy)(()=>a(()=>import("./my-classes-C_IKarbV.js"),__vite__mapDeps([43,1,2,3,34,18,8,4,35,36,32,37,13]))),nt=(0,f.lazy)(()=>a(()=>import("./payments-BXk1HbQa.js"),__vite__mapDeps([44,1,2,3,4,19,35,27,36,8,32]))),rt=(0,f.lazy)(()=>a(()=>import("./results-7s5izMX2.js"),__vite__mapDeps([45,1,2,3,4,19,8,35,27,31,7,28]))),lt=(0,f.lazy)(()=>a(()=>import("./notices-CyBOHaYN.js"),__vite__mapDeps([46,1,2,3,34,18,8,4,35,36,32,29,20,37]))),at=(0,f.lazy)(()=>a(()=>import("./settings-s3BwdKCh.js"),__vite__mapDeps([47,1,2,3,4,19,8,35,36,31,7,28,32]))),ht=(0,f.lazy)(()=>a(()=>
2import("./help-DxlORXWO.js"),__vite__mapDeps([48,1,2,3,4,8,35,20,29])));function ct(){return(0,f.useEffect)(()=>{const t=document.getElementById("boot-hero");if(!t)return;const e=setTimeout(()=>{t.classList.add("is-hidden"),t.addEventListener("transitionend",()=>t.remove(),{once:!0}),setTimeout(()=>t.remove(),800)},500);return()=>clearTimeout(e)},[]),(0,y.jsx)(g,{children:(0,y.jsx)(f.Suspense,{fallback:null,children:(0,y.jsxs)(e,{children:[(0,y.jsx)(l,{path:"/",element:(0,y.jsx)(q,{})}),(0,y.jsx)(l,{path:"/privacy-policy",element:(0,y.jsx)(G,{})}),(0,y.jsx)(l,{path:"/auth/callback",element:(0,y.jsx)(Q,{})}),(0,y.jsxs)(l,{element:(0,y.jsx)(J,{}),children:[(0,y.jsx)(l,{path:"/dashboard",element:(0,y.jsx)(K,{})}),(0,y.jsx)(l,{path:"/classes",element:(0,y.jsx)(Z,{})}),(0,y.jsx)(l,{path:"/classes/:id",element:(0,y.jsx)(tt,{})}),(0,y.jsx)(l,{path:"/classes/:id/recordings/:recordingId",element:(0,y.jsx)(et,{})}),(0,y.jsx)(l,{path:"/classes/:id/papers/:paperId",element:(0,y.jsx)(it,{})}),(0,y.jsx)(l,{path:"/classes/:id/enroll",element:(0,y.jsx)(st,{})}),(0,y.jsx)(l,{path:"/my-classes",element:(0,y.jsx)(ot,{})}),(0,y.jsx)(l,{path:"/payments",element:(0,y.jsx)(nt,{})}),(0,y.jsx)(l,{path:"/marks",element:(0,y.jsx)(rt,{})}),(0,y.jsx)(l,{path:"/notices",element:(0,y.jsx)(lt,{})}),(0,y.jsx)(l,{path:"/profile",element:(0,y.jsx)(at,{})}),(0,y.jsx)(l,{path:"/help",element:(0,y.jsx)(ht,{})})]}),(0,y.jsx)(l,{path:"*",element:(0,y.jsx)($,{})})]})})})}!function(t={}){const{immediate:e=!1,onNeedReload:i,onNeedRefresh:s,onOfflineReady:o,onRegistered:n,onRegisteredSW:r,onRegisterError:l}=t;let h,c,d;c=async function(){if("serviceWorker"in navigator){if(h=await a(async()=>{const{Workbox:t}=await import("./workbox-window.prod.es5-DawPXz5f.js");return{Workbox:t}},[]).then(({Workbox:t})=>new t("/sw.js",{scope:"/",type:"classic"})).catch(t=>{l?.(t)}),!h)return;d=()=>{h?.messageSkipWaiting()},h.addEventListener("activated",t=>{(t.isUpdate||t.isExternal)&&(i?i():window.location.reload())}),h.addEventListener("installed",t=>{t.isUpdate||o?.()}),h.register({immediate:e}).then(t=>{r?r("/sw.js",t):n?.(t)}).catch(t=>{l?.(t)})}}()}({immediate:!0}),window.addEventListener("error",t=>{_({message:t.message||"Unknown error",stack:t.error?.stack})}),window.addEventListener("unhandledrejection",t=>{const e=t.reason;_({message:e instanceof Error?e.message:`Unhandled rejection: ${String(e)}`,stack:e instanceof Error?e.stack:void 0})});var dt=(0,f.lazy)(()=>a(()=>import("./dist-BOwBLSOW.js").then(t=>({default:t.Toaster})),__vite__mapDeps([49,19,1,2,3]))),pt=document.getElementById("root");pt&&(0,w.createRoot)(pt).render((0,y.jsx)(f.StrictMode,{children:(0,y.jsx)(S,{children:(0,y.jsx)(s,{children:(0,y.jsxs)(r,{children:[(0,y.jsx)(ct,{}),(0,y.jsx)(f.Suspense,{fallback:null,children:(0,y.jsx)(dt,{position:"top-center",expand:!1,visibleToasts:4,gap:8,toastOptions:{classNames:{toast:"di-toast group !font-sans !rounded-full !border !border-white/[0.08] !bg-zinc-900/95 !backdrop-blur-2xl !text-white !shadow-[0_4px_16px_-4px_rgba(0,0,0,0.3),0_0_0_1px_rgba(255,255,255,0.04)] !px-5 !py-3 !gap-3 
2!w-auto !min-w-[200px] !max-w-[360px]",title:"!text-[13px] !font-semibold !text-white !leading-snug",description:"!text-[11px] !text-zinc-400 !leading-snug",icon:"!mt-0 !shrink-0",closeButton:"!rounded-full !bg-white/10 !border-white/10 !text-white hover:!bg-white/20 !left-auto !right-2 !top-1/2 !-translate-y-1/2"}}})})]})})})}));

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.