PageSourceSearch

https://alquran.cloud/_next/static/chunks/0w42ucrmoly4q.js

js alquran.cloud collected 2026-10-02 10:25:51 UTC 70,259 bytes, 52 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,488143,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:l}){let o=r?40*r:e,s=i?40*i:t,d=o&&s?`viewBox='0 0 ${o} ${s}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%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='${d?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${a}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},987690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["default","imgix","cloudinary","akamai","custom"],l={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}},908927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return d}}),e.r(233525);let n=e.r(543369),i=e.r(488143),a=e.r(987690),l=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function s(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 d({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:u=!1,loading:p,className:f,quality:h,width:g,height:x,fill:m=!1,style:b,overrideSrc:y,onLoad:v,onLoadingComplete:j,placeholder:w="empty",blurDataURL:S,fetchPriority:k,decoding:C="async",layout:z,objectFit:I,objectPosition:M,lazyBoundary:P,lazyRoot:E,..._},L){var R;let F,T,A,{imgConf:N,showAltText:W,blurComplete:O,defaultLoader:$}=L,B=N||a.imageConfigDefault;if("allSizes"in B)F=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),r=B.qualities?.sort((e,t)=>e-t);F={...B,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===$)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 D=_.loader||$;delete _.loader,delete _.srcSet;let q="__next_img_default"in D;if(q){if("custom"===F.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=D;D=t=>{let{config:r,...n}=t;return e(n)}}if(z){"fill"===z&&(m=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[z];e&&(b={...b,...e});let r={responsive:"100vw",fill:"100vw"}[z];r&&!t&&(t=r)}let H="",U=s(g),V=s(x);if((R=e)&&"object"==typeof R&&(o(R)||void 0!==R.src)){let t=o(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)}
2`),"__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=t.blurWidth,A=t.blurHeight,S=S||t.blurDataURL,H=t.src,!m)if(U||V){if(U&&!V){let e=U/t.width;V=Math.round(t.height*e)}else if(!U&&V){let e=V/t.height;U=Math.round(t.width*e)}}else U=t.width,V=t.height}let G=!c&&!u&&("lazy"===p||void 0===p);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,G=!1),F.unoptimized&&(r=!0),q&&!F.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let X=s(h),J=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:M}:{},W?{}:{color:"transparent"},b),Y=O||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:U,heightInt:V,blurWidth:T,blurHeight:A,blurDataURL:S||"",objectFit:J.objectFit})}")`:`url("${w}")`,Q=l.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,K=Y?{backgroundSize:Q,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Z=function({config:e,src:t,unoptimized:r,width:i,quality:a,sizes:l,loader:o}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:s,kind:d}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,l),c=s.length-1;return{sizes:l||"w"!==d?l:"100vw",srcSet:s.map((r,n)=>`${o({config:e,src:t,quality:a,width:r})} ${"w"===d?r:n+1}${d}`).join(", "),src:o({config:e,src:t,quality:a,width:s[c]})}}({config:F,src:e,unoptimized:r,width:U,quality:X,sizes:t,loader:D}),ee=G?"lazy":p;return{props:{..._,loading:ee,fetchPriority:k,width:U,height:V,decoding:C,className:f,style:{...J,...K},sizes:Z.sizes,srcSet:Z.srcSet,src:y||Z.src},meta:{unoptimized:r,preload:u||c,placeholder:w,fill:m}}}},898879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(271645),i="u"<typeof window,a=i?()=>{}:n.useLayoutEffect,l=i?()=>{}:n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),o()),a(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),a(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},325633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},defaultHead:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(555682),l=e.r(190809),o=e.r(843476),s=l._(e.r(271645)),d=a._(e.r(898879)),c=e.r(742732);function u(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(233525);let f=["name","httpEquiv","charSet","itemProp"];function h(e){let t,r,n,i;return e.reduce(p,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let a=!0,l=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){l=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?a=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?a=!1:r.add(e.type);break;case"meta":for(let t=0,r=f.length;t<r;t++){let r=f[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?a=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!l)&&n.has(t)?a=!1:(n.add(t),i[r]=n)}}}return a})).reverse().map((e,t)=>{let r=e.key||t;return s.default.cloneElement(e,{key:r})})}let g=function({children:e}){let t=(0,s.useContext)(c.HeadManagerContext);return(0,o.jsx)(d.default,{reduceComponentsToState:h,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
2dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},918556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=e.r(555682)._(e.r(271645)),i=e.r(987690),a=n.default.createContext(i.imageConfigDefault)},65856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(555682)._(e.r(271645)).default.createContext(null)},670965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},1948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(670965),i=e.r(543369);function a({config:e,src:t,width:r,quality:l}){let o=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){o=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}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 s=(0,n.findClosestQuality)(l,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${s}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}a.__next_img_default=!0;let l=a},605500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return v}});let n=e.r(555682),i=e.r(190809),a=e.r(843476),l=i._(e.r(271645)),o=n._(e.r(174080)),s=n._(e.r(325633)),d=e.r(908927),c=e.r(987690),u=e.r(918556);e.r(233525);let p=e.r(65856),f=n._(e.r(1948)),h=e.r(818581),g={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:!1,unoptimized:!1};function x(e,t,r,n,i,a,l){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function m(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,l.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:o,className:s,style:d,fetchPriority:c,placeholder:u,loading:p,unoptimized:f,fill:g,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:v,setShowAltText:j,sizesInput:w,onLoad:S,onError:k,...C},z)=>{let I=(0,l.useCallback)(e=>{e&&(k&&(e.src=e.src),e.complete&&x(e,u,b,y,v,f,w))},[e,u,b,y,v,k,f,w]),M=(0,h.useMergedRef)(z,I);return(0,a.jsx)("img",{...C,...m(c),loading:p,width:i,height:n,decoding:o,"data-nimg":g?"fill":"1",className:s,style:d,sizes:r,srcSet:t,src:e,ref:M,onLoad:e=>{x(e.currentTarget,u,b,y,v,f,w)},onError:e=>{j(!0),"empty"!==u&&v(!0),k&&k(e)}})});function y({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...m(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,r),null):(0,a.jsx)(s.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let v=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(p.RouterContext),n=(0,l.useContext)(u.ImageConfigContext),i=(0,l.useMemo)(()=>{let e=g||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:o,onLoadingComplete:s}=e,h=(0,l.useRef)(o);(0,l.useEffect)(()=>{h.current=o},[o]);let x=(0,l.useRef)(s);(0,l.useEffect)(()=>{x.current=s},[s]);let[m,v]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),{props:S,meta:k}=(0,d.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:m,showAltText:j});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{...S,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:h,onLoadingCompleteRef:x,setBlurComplete:v,setShowAltText:w,sizesInput:e.sizes,ref:t}),k.preload?(0,a.jsx)(y,{isAppRouter:!r,imgAttributes:S}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},794909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(555682),l=e.r(908927),o=e.r(605500),s=a._(e.r(1948));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:s.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:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=o.Image},657688,(e,t,r)=>{t.exports=e.r(794909)},988065,e=>{"use strict";var t=e.i(843476),r=e.i(618566),n=e.i(522016),i=e.i(657688),a=e.i(271645),l=e.i(87753),o=e.i(276053);function s(){let{account:e,signIn:r,signOut:n}=(0,l.useAccount)(),[i,o]=(0,a.useState)(!1),s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{function e(e){s.current&&!s.current.contains(e.target)&&o(!1)}return i&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]),(0,t.jsxs)("div",{ref:s,style:{position:"relative"},children:[(0,t.jsx)("button",{type:"button",onClick:()=>o(e=>!e),"aria-haspopup":"dialog","aria-expanded":i,style:{display:"inline-flex",alignItems:"center",gap:8,padding:"5px 12px",background:e?"linear-gradient(180deg, #1a2c63 0%, #26408b 100%)":"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)",color:e?"var(--gold-light)":"#3a1f0c",border:"1px solid var(--gold-deep)",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.82rem",cursor:"pointer",boxShadow:"0 1px 0 rgba(255,255,255,0.4) inset, 0 -1px 0 rgba(0,0,0,0.15) inset"},children:e?(0,t.jsx)(c,{account:e}):(0,t.jsx)(d,{})}),i&&(0,t.jsx)("div",{role:"dialog","aria-modal":"true",style:{position:"absolute",right:0,top:"calc(100% + 6px)",width:300,background:"var(--paper)",border:"1.5px solid var(--gold-deep)",padding:16,zIndex:70,boxShadow:"0 20px 50px -16px rgba(20,15,5,0.45)"},children:e?(0,t.jsx)(f,{account:e,signOut:()=>{n(),o(!1)}}):(0,t.jsx)(u,{signIn:()=>{r(),o(!1)}})})]})}function d(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M8 1 a 3.5 3.5 0 1 0 0 7 a 3.5 3.5 0 1 0 0 -7 z M2 15 c 0 -3 3 -5 6 -5 s 6 2 6 5",fill:"none",stroke:"currentColor",strokeWidth:"1.4"})}),"Sign in"]})}function c({account:e}){let r=e.name.slice(0,1).toUpperCase();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{width:22,height:22,borderRadius:"50%",background:"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)",color:"#3a1f0c",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:"0.7rem",fontWeight:600},children:r}),e.name]})}function u({signIn:e}){return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.78rem",color:"var(--gold-deep)",letterSpacing:"0.1em",textTransform:"uppercase"},children:"Account"}),(0,t.jsx)("h3",{className:"display",style:{fontSize:"1.1rem",margin:"4px 0 6px",color:"var(--islamic-700)"},children:"Sign in to sync"}),(0,t.jsxs)("p",{style:{fontFamily:"var(--font-serif)",fontSize:"0.86rem",lineHeight:1.5,color:"var(--ink-2)",margin:0},children:["Your saved āyāt and reading preferences will sync across devices. Authentication is via"," ",(0,t.jsx)("em",{style:{color:"var(--lapis)"}
3,children:"Mamluk Identity for Islamic Network"}),"."]})]}),(0,t.jsx)("div",{style:{height:1,background:"rgba(184,134,11,0.3)"}}),(0,t.jsx)("button",{type:"button",onClick:e,style:{padding:"8px 14px",background:"linear-gradient(180deg, #1a2c63 0%, #26408b 100%)",color:"var(--gold-light)",border:"1px solid var(--gold-deep)",fontFamily:"var(--font-sans)",fontSize:"0.78rem",letterSpacing:"0.06em",cursor:"pointer",textTransform:"uppercase",fontWeight:500},children:"Continue signing in"}),(0,t.jsx)("p",{style:{margin:0,fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.7rem",color:"var(--ink-muted)"},children:"You will be redirected to the Islamic Network sign-in page and returned here."})]})}let p={local:"Local only",syncing:"Syncing…",synced:"Synced — your saved āyāt follow you",error:"Sync interrupted — changes kept locally"};function f({account:e,signOut:r}){let{syncState:n}=(0,o.useBookmarks)();return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"4px 0 10px",borderBottom:"1px solid rgba(184,134,11,0.3)"},children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{width:38,height:38,borderRadius:"50%",background:"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)",color:"#3a1f0c",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:"1rem",fontWeight:600},children:e.name.slice(0,1).toUpperCase()}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",lineHeight:1.2},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontSize:"1rem",color:"var(--islamic-700)",fontWeight:600},children:e.name}),(0,t.jsx)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"0.72rem",color:"var(--ink-muted)"},children:e.email})]})]}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.78rem",color:"error"===n?"var(--vermilion-2)":"var(--emerald)"},children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{width:8,height:8,borderRadius:"50%",background:"error"===n?"var(--vermilion)":"var(--emerald)"}}),p[n]]}),(0,t.jsx)("button",{type:"button",onClick:r,style:{marginTop:6,padding:"7px 12px",background:"transparent",color:"var(--vermilion-2)",border:"1px solid var(--vermilion)",fontFamily:"var(--font-sans)",fontSize:"0.75rem",letterSpacing:"0.06em",cursor:"pointer",textTransform:"uppercase"},children:"Sign out"})]})}var h=e.i(763361);let g="transliteration";function x(e){return"/quran"===e||e.startsWith("/quran/")}function m(e){if(!x(e))return null;let t=e.slice(6).split("/").filter(Boolean).map(e=>{try{return decodeURIComponent(e)}catch{return e}});return 0===t.length?{transliteration:!1}:1===t.length?t[0]===g?{transliteration:!0}:{edition:t[0],transliteration:!1}:2===t.length&&t[1]===g?{edition:t[0],transliteration:!0}:{transliteration:!1}}function b(e){let t=[];return e.edition&&t.push(encodeURIComponent(e.edition)),e.transliteration&&t.push(g),t.length?`/quran/${t.join("/")}`:"/quran"}let y=[{kind:"link",href:"/",label:"Home"},{kind:"link",href:"/quran",label:"Quran"},{kind:"link",href:"/juzs",label:"Juz"},{kind:"link",href:"/surahs",label:"Surah"},{kind:"link",href:"/ayah",label:"Ayah"},{kind:"link",href:"/mushaf/1",label:"Mushaf"},{kind:"link",href:"/saved",label:"Saved"},{kind:"dropdown",label:"API",items:[{href:"/api",label:"API Documentation"},{href:"/tajweed-guide",label:"Tajweed Guide"},{href:"/arabic-font-edition-tester",label:"Font Edition Tester"}]},{kind:"link",href:"/cdn",label:"CDN"}];function v(){let e=(0,r.usePathname)()??"",[l,o]=(0,a.useState)(!1),[d,c]=(0,a.useState)(e);return d!==e&&(c(e),o(!1)),(0,a.useEffect)(()=>{if(!l)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[l]),(0,t.jsxs)("header",{className:"site-topnav",style:{position:"sticky",top:0,zIndex:50,background:"rgba(250,247,242,0.86)",borderBottom:"1px solid rgba(184,134,11,0.32)",backdropFilter:"saturate(140%) blur(12px)",WebkitBackdropFilter:"saturate(140%) blur(12px)"},children:[(0,t.jsxs)("div",{style:{maxWidth:1200,margin:"0 auto",padding:"10px 24px",display:"flex",alignItems:"center",gap:24,fontFamily:"var(--font-serif)"},children:[(0,t.jsxs)(n.default,{href:"/","aria-label":"Al-Qurʾān al-Karīm — home",style:{display:"flex",alignItems:"center",gap:12,textDecoration:"none",color:"var(--islamic-700)",flexShrink:0},children:[(0,t.jsx)(i.default,{src:"/brand/seljuk-star.svg",alt:"Islamic Network",width:44,height:44,priority:!0,style:{display:"block",height:44,width:44}}),(0,t.jsxs)("span",{className:"topnav-mark-text",style:{display:"flex",flexDirection:"column",lineHeight:1.1},children:[(0,t.jsx)("span",{className:"arabic",style:{fontSize:"1.5rem",color:"var(--islamic-700)",lineHeight:1.25},children:"ٱلْقُرْآنُ ٱلْكَرِيم"}),(0,t.jsx)("span",{className:"display",style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"1.05rem",fontWeight:500,color:"var(--islamic-700)",letterSpacing:"0.02em",lineHeight:1.15},children:"Al-Qurʾān al-Karīm"})]})]}),(0,t.jsx)("nav",{className:"topnav-desktop",style:{display:"flex",alignItems:"center",gap:4,flex:1,justifyContent:"center"},children:y.map((r,n)=>"dropdown"===r.kind?(0,t.jsx)(I,{label:r.label,items:r.items,pathname:e},`d-${n}`):(0,t.jsx)(z,{link:r,pathname:e},r.href))}),h.SIGN_IN_ENABLED&&(0,t.jsx)("div",{className:"topnav-desktop-account",style:{flexShrink:0},children:(0,t.jsx)(s,{})}),(0,t.jsx)("button",{type:"button",className:"topnav-mobile-toggle","aria-label":l?"Close menu":"Open menu","aria-expanded":l,"aria-controls":"topnav-mobile-drawer",onClick:()=>o(e=>!e),style:{marginInlineStart:"auto",padding:"8px 10px",background:"transparent",border:"1px solid var(--gold-deep)",color:"var(--islamic-700)",cursor:"pointer",display:"none",alignItems:"center",justifyContent:"center",lineHeight:0},children:l?(0,t.jsx)(w,{}):(0,t.jsx)(j,{})})]}),(0,t.jsx)(S,{open:l,onClose:()=>o(!1),pathname:e})]})}function j(){return(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22","aria-hidden":!0,
3children:(0,t.jsx)("path",{d:"M3 6 h16 M3 11 h16 M3 16 h16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function w(){return(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 5 L17 17 M17 5 L5 17",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function S({open:e,onClose:r,pathname:n}){return(0,t.jsx)("div",{id:"topnav-mobile-drawer",role:"dialog","aria-modal":"true","aria-hidden":!e,className:"topnav-mobile-drawer",style:{position:"absolute",top:"100%",left:0,right:0,background:"var(--paper)",borderBottom:"1px solid var(--gold-deep)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.6),0 18px 36px -20px rgba(20,15,5,0.4)",overflow:"hidden",maxHeight:e?"85vh":0,overflowY:e?"auto":"hidden",transition:"max-height 240ms ease",display:"none"},children:(0,t.jsxs)("nav",{style:{padding:"8px 0 16px",fontFamily:"var(--font-serif)"},children:[y.map((e,i)=>"dropdown"===e.kind?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{padding:"16px 24px 6px",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.7rem",letterSpacing:"0.28em",textTransform:"uppercase",color:"var(--gold-deep)",borderTop:"1px dotted rgba(184,134,11,0.32)",marginTop:6},children:e.label}),e.items.map(e=>(0,t.jsx)(k,{href:e.href,label:e.label,pathname:n,onClose:r,indent:!0},e.href))]},`md-${i}`):(0,t.jsx)(k,{href:e.href,label:e.label,pathname:n,onClose:r},e.href)),h.SIGN_IN_ENABLED&&(0,t.jsx)("div",{style:{marginTop:14,padding:"16px 24px 4px",borderTop:"1px dotted rgba(184,134,11,0.32)"},children:(0,t.jsx)(s,{})})]})})}function k({href:e,label:r,pathname:i,onClose:a,indent:l=!1}){let o=C(e,i);return(0,t.jsx)(n.default,{href:e,onClick:a,style:{display:"block",padding:l?"10px 24px 10px 40px":"12px 24px",textDecoration:"none",fontSize:l?"0.95rem":"1.05rem",color:o?"var(--islamic-700)":"var(--ink-2)",background:o?"rgba(184,134,11,0.10)":"transparent",fontWeight:o?600:400,borderBottom:"1px dotted rgba(184,134,11,0.18)"},children:r})}function C(e,t){return"/"===e?"/"===t:"/quran"===e?x(t):"/cdn"===e?"/cdn"===t:t.startsWith(e.replace(/\/1$/,""))}function z({link:e,pathname:r}){let i=C(e.href,r);return(0,t.jsx)(n.default,{href:e.href,style:M(i),children:e.label})}function I({label:e,items:r,pathname:i}){let[l,o]=(0,a.useState)(!1),s=(0,a.useRef)(null),d=(0,a.useRef)(null),c=r.some(e=>i===e.href),u=()=>{null!==d.current&&(window.clearTimeout(d.current),d.current=null)};return(0,a.useEffect)(()=>{function e(e){s.current&&!s.current.contains(e.target)&&o(!1)}return l&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[l]),(0,a.useEffect)(()=>u,[]),(0,t.jsxs)("div",{ref:s,style:{position:"relative"},onMouseEnter:()=>{u(),o(!0)},onMouseLeave:()=>{u(),d.current=window.setTimeout(()=>{o(!1),d.current=null},1e3)},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(e=>!e),"aria-haspopup":"menu","aria-expanded":l,style:{...M(c),background:"transparent",border:"none",borderBottom:c?"2px solid var(--gold-deep)":"2px solid transparent",fontFamily:"inherit",cursor:"pointer",display:"inline-flex",alignItems:"center",gap:6},children:[e,(0,t.jsx)("span",{"aria-hidden":!0,style:{fontSize:"0.65rem",marginTop:1},children:"▾"})]}),l&&(0,t.jsx)("div",{role:"menu",style:{position:"absolute",top:"calc(100% + 2px)",left:0,minWidth:220,background:"var(--paper)",border:"1px solid var(--gold-deep)",boxShadow:"0 0 0 1px var(--paper) inset,0 0 0 2px var(--gold) inset,0 18px 40px -16px rgba(20,15,5,0.4)",padding:"4px 0",zIndex:60},children:r.map(e=>{let r=i===e.href;return(0,t.jsx)(n.default,{href:e.href,role:"menuitem",onClick:()=>o(!1),style:{display:"block",padding:"8px 16px",fontFamily:"var(--font-serif)",fontSize:"0.92rem",color:r?"var(--islamic-700)":"var(--ink-2)",background:r?"rgba(184,134,11,0.10)":"transparent",textDecoration:"none",borderBottom:"1px dotted rgba(184,134,11,0.18)",fontWeight:r?600:400},onMouseEnter:e=>e.currentTarget.style.background="rgba(184,134,11,0.12)",onMouseLeave:e=>e.currentTarget.style.background=r?"rgba(184,134,11,0.10)":"transparent",children:e.label},e.href)})})]})}function M(e){return{position:"relative",padding:"6px 12px",textDecoration:"none",color:e?"var(--islamic-700)":"var(--ink-2)",fontSize:"0.95rem",letterSpacing:"0.06em",fontWeight:e?600:400,borderBottom:e?"2px solid var(--gold-deep)":"2px solid transparent"}}e.i(837375);var P=e.i(109076),E=e.i(244477);function _(){return(0,t.jsxs)("footer",{className:"site-footer",style:{marginTop:20,paddingTop:32,position:"relative",fontFamily:"var(--font-serif)",color:"var(--ink-2)",zIndex:5},children:[(0,t.jsx)(E.KnotworkBorder,{height:18,color:"var(--gold-deep)"}),(0,t.jsxs)("div",{className:"footer-grid",style:{maxWidth:1240,margin:"0 auto",padding:"32px 24px 24px",display:"grid",gap:28},children:[(0,t.jsx)(L,{}),(0,t.jsxs)(R,{heading:"The Quran",children:[(0,t.jsx)(F,{href:"/surah/1",children:"Read"}),(0,t.jsx)(F,{href:"/mushaf/1",children:"Muṣḥaf"}),(0,t.jsx)(F,{href:"/surahs",children:"All sÅ«rahs"}),(0,t.jsx)(F,{href:"/juzs",children:"All juz"}),(0,t.jsx)(F,{href:"/search",children:"Search"}),(0,t.jsx)(F,{href:"/saved",children:"Saved āyāt"})]}),(0,t.jsxs)(R,{heading:"Developers",children:[(0,t.jsx)(F,{href:"/api",children:"REST API"}),(0,t.jsx)(F,{href:"/cdn",children:"Audio & image CDN"}),(0,t.jsx)(F,{href:"/api-clients",children:"Client libraries"}),(0,t.jsx)(F,{href:"/tajweed-guide",children:"Tajweed guide"})]}),(0,t.jsxs)(R,{heading:"Project",children:[(0,t.jsx)(F,{href:"/contributors",children:"Contributors"}),(0,t.jsx)(F,{external:!0,href:"https://islamic.network/contact.html",children:"Contact"}),(0,t.jsx)(F,{href:"/terms-and-conditions",children:"Terms & conditions"}),(0,t.jsx)(F,{external:!0,href:"https://legacy.alquran.cloud",children:"Legacy site"})]}),(0,t.jsxs)(R,{heading:"Sibling projects",children:[(0,t.jsx)(F,{external:!0,href:"https://aladhan.com",children:"AlAdhan — Prayer Times App & API"}),(0,t.jsx)(F,{external:!0,href:"https://sermons.islamic.network",children:"Sermons"}),(0,t.jsx)(F,{external:!0,href:"https://perennialism.org",children:"Perennialism"}),(0,t.jsx)(F,{external:!0,href:"https://alaqida.com",children:"AlAqida — Imam Tahawi's Ê
3¿AqÄ«da"}),(0,t.jsx)(F,{external:!0,href:"https://marifa.org",children:"Marifa — Stories about Saints"})]})]}),(0,t.jsxs)("div",{style:{maxWidth:1200,margin:"0 auto",padding:"12px 24px 28px",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:14,fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.78rem",color:"var(--ink-muted)",borderTop:"1px solid rgba(184,134,11,0.25)"},children:[(0,t.jsxs)("span",{children:["An"," ",(0,t.jsx)("a",{href:"https://islamic.network",target:"_blank",rel:"noreferrer",style:{color:"var(--islamic-700)",textDecoration:"none",borderBottom:"1px dotted var(--islamic-700)"},children:"Islamic Network"})," ","Project, hosted on"," ",(0,t.jsx)("a",{href:"https://bahriya.cloud",target:"_blank",rel:"noreferrer",style:{color:"var(--islamic-700)",textDecoration:"none",borderBottom:"1px dotted var(--islamic-700)"},children:"Bahriya"}),"."]}),(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:10},children:[(0,t.jsx)(P.EightPointStar,{size:12,stroke:"var(--gold-deep)"}),"© Islamic Network and contributors since 2014",(0,t.jsx)(P.EightPointStar,{size:12,stroke:"var(--gold-deep)"})]})]})]})}function L(){return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,t.jsxs)("div",{style:{fontFamily:"var(--font-serif)",fontSize:"1.05rem",fontWeight:600,color:"var(--islamic-700)"},children:["Al Quran ",(0,t.jsx)("span",{style:{color:"var(--gold-deep)"},children:"·"})," Cloud"]}),(0,t.jsx)("p",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.86rem",lineHeight:1.5,color:"var(--ink-2)",margin:0,maxWidth:240},children:"The Noble Quran online — read, listen, study and build with the open REST API."})]})}function R({heading:e,children:r}){return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.72rem",letterSpacing:"0.26em",textTransform:"uppercase",color:"var(--gold-deep)"},children:e}),(0,t.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:6},children:r})]})}function F({href:e,children:r,external:i}){let a={fontFamily:"var(--font-serif)",fontSize:"0.92rem",color:"var(--ink-2)",textDecoration:"none",borderBottom:"1px solid transparent",paddingBottom:1,display:"inline-block",transition:"color 0.15s ease, border-color 0.15s ease"};return(0,t.jsx)("li",{children:i?(0,t.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",style:a,children:[r,(0,t.jsx)("span",{"aria-hidden":!0,style:{marginInlineStart:4,color:"var(--gold-deep)",fontSize:"0.7em"},children:"↗"})]}):(0,t.jsx)(n.default,{href:e,style:a,children:r})})}var T=e.i(966335);function A({motif:e}){return"iznik"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.IznikFloral,{size:260,color:"rgba(38, 64, 139, 0.07)",style:{position:"fixed",inset:0,pointerEvents:"none",zIndex:0,opacity:.5}}),(0,t.jsx)(B,{})]}):"girih"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N,{}),(0,t.jsx)(B,{})]}):"rahman"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($,{}),(0,t.jsx)(B,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O,{}),(0,t.jsx)(B,{})]})}function N(){let e=18*Math.tan(Math.PI/8),r=[];for(let t=0;t<16;t++){let n=t*Math.PI/8-Math.PI/2,i=t%2==0?18:e;r.push(`${(50+i*Math.cos(n)).toFixed(2)},${(50+i*Math.sin(n)).toFixed(2)}`)}let n=`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>
4    <g fill='none' stroke='rgba(184,134,11,0.16)' stroke-width='0.9'>
5      <!-- centre 8-point star -->
6      <polygon points='${r.join(" ")}'/>
7      <!-- corner partial stars -->
8      <polygon points='${W(0,0,18,e)}'/>
9      <polygon points='${W(100,0,18,e)}'/>
10      <polygon points='${W(0,100,18,e)}'/>
11      <polygon points='${W(100,100,18,e)}'/>
12      <!-- bowtie connectors (4 cardinal) -->
13      <polygon points='38.84,50 50,43.16 18,18 0,50 18,61.16'/>
14      <polygon points='61.16,50 50,43.16 82,18 100,50 82,61.16'/>
15      <polygon points='38.84,50 50,56.84 18,82 0,50 18,38.84'/>
16      <polygon points='61.16,50 50,56.84 82,82 100,50 82,38.84'/>
17      <!-- inner accent dots -->
18      <circle cx='50' cy='50' r='1.6' fill='rgba(184,134,11,0.3)'/>
19    </g>
20  </svg>`,i=`url("data:image/svg+xml;utf8,${encodeURIComponent(n)}")`;return(0,t.jsx)("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,pointerEvents:"none",backgroundImage:i,backgroundSize:"180px 180px",backgroundRepeat:"repeat",opacity:.85}})}function W(e,t,r,n){let i=[];for(let a=0;a<16;a++){let l=a*Math.PI/8-Math.PI/2,o=a%2==0?r:n;i.push(`${(e+o*Math.cos(l)).toFixed(2)},${(t+o*Math.sin(l)).toFixed(2)}`)}return i.join(" ")}function O(){let e=`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>
21    <g fill='none' stroke='rgba(11,110,79,0.14)' stroke-width='0.9'>
22      <rect x='28' y='28' width='44' height='44'/>
23      <rect x='28' y='28' width='44' height='44' transform='rotate(45 50 50)'/>
24      <circle cx='50' cy='50' r='6'/>
25      <circle cx='50' cy='50' r='2' fill='rgba(184,134,11,0.35)'/>
26    </g>
27    <g fill='none' stroke='rgba(184,134,11,0.10)' stroke-width='0.6'>
28      <circle cx='0'   cy='0'   r='12'/>
29      <circle cx='100' cy='0'   r='12'/>
30      <circle cx='0'   cy='100' r='12'/>
31      <circle cx='100' cy='100' r='12'/>
32    </g>
33  </svg>`,r=`url("data:image/svg+xml;utf8,${encodeURIComponent(e)}")`;return(0,t.jsx)("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,pointerEvents:"none",backgroundImage:r,backgroundSize:"120px 120px",backgroundRepeat:"repeat",opacity:.9}})}function $(){let e=[];for(let t=0;t<16;t++){let r=t*Math.PI/8-Math.PI/2,n=t%2==0?28:12.04;e.push(`${(50+n*Math.cos(r)).toFixed(2)},${(50+n*Math.sin(r)).toFixed(2)}`)}let r=(e,t)=>`<polygon points='${[[e-16,t-28],[e+16,t-28],[e+16,t-16],[e+28,t-16],[e+28,t+16],[e+16,t+16],[e+16,t+28],[e-16,t+28],[e-16,t+16],[e-28,t+16],[e-28,t-16],[e-16,t-16]].map(e=>e.join(",")).join(" ")}'/>`,n=`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>
34    <g fill='none' stroke='rgba(11,110,79,0.20)' stroke-width='1.05' stroke-linejoin='round'>
35      <polygon points='${e.join(" ")}'/>
36    </g>
37    <g fill='none' stroke='rgba(184,134,11,0.24)' stroke-width='1.05' stroke-linejoin='round'>
38      ${r(0,0)}
39      ${r(100,0)}
40      ${r(0,100)}
41      ${r(100,100)}
42    </g>
43    <g fill='rgba(184,134,11,0.40)'>
44      <circle cx='50' cy='50' r='1.8'/>
45    </g>
46    <g fill='rgba(200,49,43,0.25)'>
47      <circle cx='0' cy='0' r='1.4'/>
48      <circle cx='100' cy='0' r='1.4'/>
49      <circle cx='0' cy='100' r='1.4'/>
50      <circle cx='100' cy='100' r='1.4'/>
51    </g>
52  </svg>`,i=`url("data:image/svg+xml;utf8,${encodeURIComponent(n)}")`;return(0,t.jsx)("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,pointerEvents:"none",backgroundImage:i,backgroundSize:"160px 160px",backgroundRepeat:"repeat",opacity:.92}})}function B(){return(0,t.jsx)("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:0,pointerEvents:"none",backgroundImage:"radial-gradient(2px 2px at 17% 23%, rgba(200,49,43,0.08), transparent 50%),radial-gradient(2px 2px at 73% 61%, rgba(184,134,11,0.10), transparent 50%),radial-gradient(2px 2px at 41% 82%, rgba(11,110,79,0.07), transparent 50%)"}})}var D=e.i(33357);
52let q=[1,2,50,77,106,128,151,177,187,208,221,235,249,255,262,267,282,293,305,312,322,332,342,350,359,367,377,385,396,404,411,415,418,428,434,440,446,453,458,467,477,483,489,496,499,502,507,511,515,518,520,523,526,528,531,534,537,542,545,549,551,553,554,556,558,560,562,564,566,568,570,572,574,575,577,578,580,582,583,585,586,587,587,589,590,591,591,592,593,594,595,595,596,596,597,597,598,598,599,599,600,600,601,601,601,602,602,602,603,603,603,604,604,604];function H({basePath:e="/surah",compact:n=!1}){let i=(0,r.useRouter)(),l=(0,r.usePathname)()??"",[o,s]=(0,a.useState)(!1),[d,c]=(0,a.useState)(""),u=(0,a.useRef)(null),p=x(l),f=l.startsWith("/mushaf/");(0,a.useEffect)(()=>{function e(e){u.current&&!u.current.contains(e.target)&&s(!1)}return o&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o]);let h=d.trim().toLowerCase(),g=h?D.SURAH_INDEX.filter(e=>e.name_en.toLowerCase().includes(h)||e.name_translated.toLowerCase().includes(h)||String(e.number)===h):D.SURAH_INDEX;return(0,t.jsxs)("div",{ref:u,style:{position:"relative"},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>s(e=>!e),"aria-haspopup":"listbox","aria-expanded":o,style:{display:"inline-flex",alignItems:"center",gap:10,padding:n?"4px 10px":"5px 14px",background:"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)",border:"1px solid var(--gold-deep)",color:"#3a1f0c",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:n?"0.78rem":"0.85rem",cursor:"pointer",boxShadow:"0 1px 0 rgba(255,255,255,0.4) inset, 0 -1px 0 rgba(0,0,0,0.15) inset"},children:[(0,t.jsx)("svg",{viewBox:"0 0 20 20",width:"14",height:"14","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 5 h14 M3 10 h14 M3 15 h14",stroke:"#3a1f0c",strokeWidth:"1.4",strokeLinecap:"round"})}),n?(0,t.jsx)("span",{children:"Sūrah"}):(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{style:{fontStyle:"normal",letterSpacing:"0.04em",textTransform:"uppercase",fontSize:"0.62rem",color:"#5a3a1f",marginRight:6},children:"Jump to"}),"Sūrah"]}),(0,t.jsx)("span",{"aria-hidden":!0,style:{fontSize:"0.7rem"},children:"▾"})]}),o&&(0,t.jsxs)("div",{role:"listbox",style:{position:"absolute",top:"calc(100% + 6px)",left:0,width:340,maxHeight:380,display:"flex",flexDirection:"column",background:"var(--paper)",border:"1.5px solid var(--gold-deep)",boxShadow:"0 20px 50px -16px rgba(20,15,5,0.45)",zIndex:60},children:[(0,t.jsx)("div",{style:{padding:10,borderBottom:"1px solid rgba(184,134,11,0.3)"}
52,children:(0,t.jsx)("input",{autoFocus:!0,type:"text",placeholder:"Search by name or number…",value:d,onChange:e=>c(e.target.value),style:{width:"100%",padding:"6px 8px",border:"1px solid rgba(184,134,11,0.5)",background:"rgba(255,253,247,0.7)",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.95rem",outline:"none",color:"var(--ink)"}})}),(0,t.jsxs)("div",{className:"no-scrollbar",style:{overflowY:"auto",flex:1,padding:"4px 0"},children:[0===g.length&&(0,t.jsx)("div",{style:{padding:16,fontStyle:"italic",color:"var(--ink-muted)",textAlign:"center"},children:"No surahs match."}),g.map(r=>(0,t.jsxs)("button",{type:"button",onClick:()=>(t=>{if(s(!1),c(""),p){let e=document.getElementById(`surah-${t}`);if(e){history.replaceState(null,"",`#surah-${t}`),e.scrollIntoView({behavior:"smooth",block:"start"});return}}f?i.push(`/mushaf/${function(e){if(e<1||e>114)throw Error(`Invalid surah number: ${e}`);return q[e-1]}(t)}`):i.push(`${e}/${t}`)})(r.number),style:{display:"grid",gridTemplateColumns:"32px 1fr auto",alignItems:"center",gap:10,width:"100%",padding:"7px 12px",border:"none",background:"transparent",borderBottom:"1px dotted rgba(184,134,11,0.2)",cursor:"pointer",textAlign:"left",color:"var(--ink)"},onMouseEnter:e=>e.currentTarget.style.background="rgba(201,168,106,0.13)",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{fontFamily:"var(--font-serif)",color:"var(--gold-deep)",fontSize:"0.85rem",textAlign:"right",fontVariantNumeric:"tabular-nums"},children:r.number}),(0,t.jsxs)("span",{style:{display:"flex",flexDirection:"column",lineHeight:1.2},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontSize:"0.92rem",color:"var(--ink)"},children:r.name_en}),(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.75rem",color:"var(--ink-muted)"},children:r.name_translated})]}),(0,t.jsx)("span",{className:"arabic",style:{fontSize:"1.1rem",color:"var(--islamic-700)",lineHeight:1.2},children:r.name_ar})]},r.number))]})]})]})}function U({compact:e=!1}){let n=(0,r.useRouter)(),[i,l]=(0,a.useState)(!1),[o,s]=(0,a.useState)(""),d=(0,a.useRef)(null);(0,a.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&l(!1)}return i&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]);let c=o.trim().toLowerCase(),u=c?D.JUZ_INDEX.filter(e=>String(e.number)===c||e.name_ar.includes(c)||`juz ${e.number}`.includes(c)):D.JUZ_INDEX;return(0,t.jsxs)("div",{ref:d,style:{position:"relative"},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l(e=>!e),"aria-haspopup":"listbox","aria-expanded":i,style:{display:"inline-flex",alignItems:"center",gap:10,padding:e?"4px 10px":"5px 14px",background:"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)",border:"1px solid var(--gold-deep)",color:"#3a1f0c",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:e?"0.78rem":"0.85rem",cursor:"pointer",boxShadow:"0 1px 0 rgba(255,255,255,0.4) inset, 0 -1px 0 rgba(0,0,0,0.15) inset"},children:[(0,t.jsx)("svg",{viewBox:"0 0 20 20",width:"14",height:"14","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 5 h14 M3 10 h14 M3 15 h14",stroke:"#3a1f0c",strokeWidth:"1.4",strokeLinecap:"round"})}),e?(0,t.jsx)("span",{children:"Juz"}):(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{style:{fontStyle:"normal",letterSpacing:"0.04em",textTransform:"uppercase",fontSize:"0.62rem",color:"#5a3a1f",marginRight:6},children:"Jump to"}),"Juz"]}),(0,t.jsx)("span",{"aria-hidden":!0,style:{fontSize:"0.7rem"},children:"▾"})]}),i&&(0,t.jsxs)("div",{role:"listbox",style:{position:"absolute",top:"calc(100% + 6px)",left:0,width:320,maxHeight:380,display:"flex",flexDirection:"column",background:"var(--paper)",border:"1.5px solid var(--gold-deep)",boxShadow:"0 20px 50px -16px rgba(20,15,5,0.45)",zIndex:60},children:[(0,t.jsx)("div",{style:{padding:10,borderBottom:"1px solid rgba(184,134,11,0.3)"}
52,children:(0,t.jsx)("input",{autoFocus:!0,type:"text",placeholder:"Search juz number or opening word…",value:o,onChange:e=>s(e.target.value),style:{width:"100%",padding:"6px 8px",border:"1px solid rgba(184,134,11,0.5)",background:"rgba(255,253,247,0.7)",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.95rem",outline:"none",color:"var(--ink)"}})}),(0,t.jsxs)("div",{className:"no-scrollbar",style:{overflowY:"auto",flex:1,padding:"4px 0"},children:[0===u.length&&(0,t.jsx)("div",{style:{padding:16,fontStyle:"italic",color:"var(--ink-muted)",textAlign:"center"},children:"No juz match."}),u.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.number,void(l(!1),s(""),n.push(`/juz/${t}`))},style:{display:"grid",gridTemplateColumns:"32px 1fr auto",alignItems:"center",gap:10,width:"100%",padding:"7px 12px",border:"none",background:"transparent",borderBottom:"1px dotted rgba(184,134,11,0.2)",cursor:"pointer",textAlign:"left",color:"var(--ink)"},onMouseEnter:e=>e.currentTarget.style.background="rgba(201,168,106,0.13)",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{fontFamily:"var(--font-serif)",color:"var(--gold-deep)",fontSize:"0.85rem",textAlign:"right",fontVariantNumeric:"tabular-nums"},children:e.number}),(0,t.jsxs)("span",{style:{display:"flex",flexDirection:"column",lineHeight:1.2},children:[(0,t.jsxs)("span",{style:{fontFamily:"var(--font-serif)",fontSize:"0.92rem",color:"var(--ink)"},children:["Juz ",e.number]}),(0,t.jsxs)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.75rem",color:"var(--ink-muted)"},children:[e.start_surah,":",e.start_ayah," – ",e.end_surah,":",e.end_ayah]})]}),(0,t.jsx)("span",{className:"arabic",style:{fontSize:"1.1rem",color:"var(--islamic-700)",lineHeight:1.2},children:e.name_ar})]},e.number))]})]})]})}var V=e.i(184907),G=e.i(856912);function X(e){return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(Y,{...e}),children:(0,t.jsx)(J,{...e})})}function J({label:e="Translation",alignRight:n=!0}){let[i,a]=(0,V.useV2Prefs)(),l=(0,r.useRouter)(),o=(0,r.usePathname)()??"",s=(0,r.useSearchParams)(),d=m(o),c=null!==d,u=d?d.edition??"":i.translationId,p=c?[{v:"",label:"None",hint:"Arabic only"},...D.TRANSLATIONS.map(e=>({v:e.id,label:e.name,hint:e.language}))]:D.TRANSLATIONS.map(e=>({v:e.id,label:e.name,hint:e.language}));return(0,t.jsx)(G.Dropdown,{label:e,value:u,onChange:e=>{if(e&&a({translationId:e}),d)return void l.push(b({edition:e||void 0,transliteration:d.transliteration}));let t=new URLSearchParams(s?.toString()??"");e?t.set("translation",e):t.delete("translation");let r=t.toString();l.push(r?`${o}?${r}`:o)},options:p,accent:"lapis",alignRight:n})}function Y({label:e="Translation",alignRight:r=!0}){let[n]=(0,V.useV2Prefs)();return(0,t.jsx)(G.Dropdown,{label:e,value:n.translationId,onChange:()=>{},options:D.TRANSLATIONS.map(e=>({v:e.id,label:e.name,hint:e.language})),accent:"lapis",alignRight:r})}var Q=e.i(198687);function K({label:e="Reciter",alignRight:r=!0}){let[n,i]=(0,V.useV2Prefs)(),a=(0,Q.useReciters)();return(0,t.jsx)(G.Dropdown,{label:e,value:n.reciterId,onChange:e=>i({reciterId:e}),options:a.map(e=>({v:e.identifier,label:e.englishName,hint:e.name})),accent:"emerald",alignRight:r})}function Z({label:e="Arabic"}){let[n,i]=(0,V.useV2Prefs)(),a=((0,r.usePathname)()??"").startsWith("/mushaf/"),l=a?n.arabicSizeMushaf:n.arabicSize;return(0,t.jsx)(G.Group,{label:e,children:(0,t.jsx)(G.Seg,{value:l,onChange:e=>i(a?{arabicSizeMushaf:e}:{arabicSize:e}),options:[{v:"sm",label:"A"},{v:"md",label:"A"},{v:"lg",label:"A"},{v:"xl",label:"A"}],renderLabel:e=>{let r={sm:11,md:13,lg:16,xl:19}[e.v]??13;return(0,t.jsx)("span",{style:{fontFamily:"var(--font-quran)",fontSize:r,lineHeight:1},children:e.label})}})})}function ee({label:e="Layout"}){let[r,n]=(0,V.useV2Prefs)();return(0,t.jsx)(G.Group,{label:e,children:(0,t.jsx)(G.Seg,{value:r.mushafLayout,onChange:e=>n({mushafLayout:e}),options:[{v:"spread",label:"Spread"},{v:"single",label:"Single"}],renderLabel:e=>(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontSize:"0.8rem",letterSpacing:"0.04em"},children:e.label})})})}function et({label:e="Translation"}){let[r,n]=(0,V.useV2Prefs)();return(0,t.jsx)(G.Group,{label:e,children:(0,t.jsx)(G.Seg,{value:r.translationSize,onChange:e=>n({translationSize:e}),options:[{v:"sm",label:"A"},{v:"md",label:"A"},{v:"lg",label:"A"},{v:"xl",label:"A"}],renderLabel:e=>{let r={sm:11,md:13,lg:16,xl:19}[e.v]??13;return(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:r,lineHeight:1},children:e.label})}})})}function er({label:e="Translation"}){let[r,n]=(0,V.useV2Prefs)();return(0,t.jsx)(G.Toggle,{label:e,on:"on"===r.translation,onClick:()=>n({translation:"on"===r.translation?"off":"on"})})}function en({label:e="Transliteration"}){return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(ea,{label:e}),children:(0,t.jsx)(ei,{label:e})})}function ei({label:e}){let[n,i]=(0,V.useV2Prefs)(),a=(0,r.usePathname)()??"",l=(0,r.useRouter)(),o=m(a),s=o?o.transliteration:"on"===n.transliteration;return(0,t.jsx)(G.Toggle,{label:e,on:s,onClick:()=>{let e=s?"off":"on";i({transliteration:e}),o&&l.push(b({edition:o.edition,transliteration:"on"===e}))}})}function ea({label:e}){let[r]=(0,V.useV2Prefs)();return(0,t.jsx)(G.Toggle,{label:e,on:"on"===r.transliteration,onClick:()=>{}})}let el=[{v:"iznik",label:"Iznik"},{v:"girih",label:"Girih"},{v:"stars",label:"Stars"},{v:"rahman",label:"Nafas"}];function eo({label:e="Motif"}){let[r,n]=(0,V.useV2Prefs)();return(0,t.jsx)(G.Group,{label:e,children:(0,t.jsx)(G.Seg,{value:r.motif,onChange:e=>n({motif:e}),options:el,renderLabel:e=>(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,t.jsx)(es,{motif:e.v}),e.label]})})})}function es({motif:e}){return"iznik"===e?(0,t.jsx)("svg",{width:14,height:14,viewBox:"0 0 20 20","aria-hidden":!0,
52children:(0,t.jsx)("path",{d:"M 10 4 q -3 4 -3 7 q 0 3 3 4 q 3 -1 3 -4 q 0 -3 -3 -7 z",fill:"currentColor"})}):"girih"===e?(0,t.jsx)("svg",{width:14,height:14,viewBox:"0 0 20 20","aria-hidden":!0,children:(0,t.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.1",children:(0,t.jsx)("polygon",{points:"10,2 12,7 17,8 13,11 14,17 10,14 6,17 7,11 3,8 8,7"})})}):"stars"===e?(0,t.jsx)("svg",{width:14,height:14,viewBox:"0 0 20 20","aria-hidden":!0,children:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.1",children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"12",height:"12"}),(0,t.jsx)("rect",{x:"4",y:"4",width:"12",height:"12",transform:"rotate(45 10 10)"})]})}):(0,t.jsx)("svg",{width:14,height:14,viewBox:"0 0 20 20","aria-hidden":!0,children:(0,t.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1",children:(0,t.jsx)("polygon",{points:"10,2 11.2,5.8 15,4 13.2,7.8 17,9 13.2,10.2 15,14 11.2,12.2 10,16 8.8,12.2 5,14 6.8,10.2 3,9 6.8,7.8 5,4 8.8,5.8"})})})}function ed(){let e=(0,r.usePathname)()??"",n=e.startsWith("/mushaf/"),i=e.startsWith("/juz/"),[l,o]=(0,a.useState)(!1),[s,d]=(0,a.useState)(e);e!==s&&(d(e),o(!1));let c=n?(0,t.jsx)(H,{}):i?(0,t.jsx)(U,{}):(0,t.jsx)(H,{});return(0,t.jsx)("div",{"data-prefs-strip":!0,style:{position:"sticky",top:49,zIndex:49,background:"linear-gradient(180deg, rgba(243,236,221,0.94) 0%, rgba(236,226,203,0.92) 100%)",borderBottom:"1px solid rgba(184,134,11,0.32)",backdropFilter:"saturate(140%) blur(10px)",WebkitBackdropFilter:"saturate(140%) blur(10px)"},children:(0,t.jsxs)("div",{style:{maxWidth:1200,margin:"0 auto",padding:"10px 24px",fontFamily:"var(--font-sans)",fontSize:"0.78rem",color:"var(--ink-2)"},children:[(0,t.jsx)("div",{className:"prefs-desktop",children:n?(0,t.jsx)(eu,{}):(0,t.jsx)(ec,{isJuz:i})}),(0,t.jsx)("div",{className:"prefs-mobile",children:(0,t.jsx)(ep,{jumper:c,open:l,onToggle:()=>o(e=>!e),children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Z,{}),(0,t.jsx)(ee,{}),(0,t.jsx)(ef,{}),(0,t.jsx)(eo,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X,{}),(0,t.jsx)(K,{}),(0,t.jsx)(ef,{}),(0,t.jsx)(Z,{}),(0,t.jsx)(et,{}),(0,t.jsxs)("div",{style:{display:"flex",gap:12,flexWrap:"wrap"},children:[(0,t.jsx)(er,{}),(0,t.jsx)(en,{})]}),(0,t.jsx)(ef,{}),(0,t.jsx)(eo,{})]})})})]})})}function ec({isJuz:e}){return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,flexWrap:"wrap"},children:[e?(0,t.jsx)(U,{}):(0,t.jsx)(H,{}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexWrap:"wrap"},children:[(0,t.jsx)(X,{}),(0,t.jsx)(K,{})]})]}),(0,t.jsx)(ef,{}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,flexWrap:"wrap"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:18,flexWrap:"wrap"},children:[(0,t.jsx)(Z,{}),(0,t.jsx)(et,{}),(0,t.jsx)(er,{}),(0,t.jsx)(en,{})]}),(0,t.jsx)(eo,{})]})]})}function eu(){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,flexWrap:"wrap"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexWrap:"wrap"},children:[(0,t.jsx)(H,{}),(0,t.jsx)(Z,{}),(0,t.jsx)(ee,{})]}),(0,t.jsx)(eo,{})]})}function ep({jumper:e,open:r,onToggle:n,children:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},children:[e,(0,t.jsxs)("button",{type:"button","aria-label":r?"Hide reading options":"Show reading options","aria-expanded":r,"aria-controls":"prefs-mobile-drawer",onClick:n,style:{display:"inline-flex",alignItems:"center",gap:8,flexShrink:0,padding:"8px 12px",background:r?"rgba(184,134,11,0.12)":"transparent",border:"1px solid var(--gold-deep)",color:"var(--islamic-700)",cursor:"pointer",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.85rem",letterSpacing:"0.06em",lineHeight:1},children:[r?(0,t.jsx)(eg,{}):(0,t.jsx)(eh,{}),(0,t.jsx)("span",{children:r?"Close":"Display"})]})]}),(0,t.jsx)("div",{id:"prefs-mobile-drawer",role:"region","aria-label":"Reading options","aria-hidden":!r,style:{overflow:"hidden",maxHeight:r?"80vh":0,overflowY:r?"auto":"hidden",transition:"max-height 240ms ease"},children:(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:14,padding:"14px 0 4px"},children:i})})]})}function ef(){return(0,t.jsx)("div",{style:{height:1,background:"linear-gradient(90deg, transparent 0%, rgba(184,134,11,0.32) 50%, transparent 100%)",margin:"1px 0"}})}function eh(){return(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 22 22","aria-hidden":!0,
52children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",fill:"none",children:[(0,t.jsx)("path",{d:"M3 6 h10 M17 6 h2"}),(0,t.jsx)("circle",{cx:"15",cy:"6",r:"2",fill:"var(--paper)"}),(0,t.jsx)("path",{d:"M3 11 h4 M11 11 h8"}),(0,t.jsx)("circle",{cx:"9",cy:"11",r:"2",fill:"var(--paper)"}),(0,t.jsx)("path",{d:"M3 16 h10 M17 16 h2"}),(0,t.jsx)("circle",{cx:"15",cy:"16",r:"2",fill:"var(--paper)"})]})})}function eg(){return(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 22 22","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 5 L17 17 M17 5 L5 17",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}var ex=e.i(47728),em=e.i(376800),eb=e.i(450271);function ey(){let{current:e,playing:r,togglePlayPause:n,next:i,prev:l,pause:o,resume:s,autoAdvance:d,peekNext:c,loop:u,toggleLoop:p}=(0,ex.useAudio)(),f=(0,ex.useSelectedReciter)(),h=(0,a.useRef)(null),[g,x]=(0,a.useState)(0),[m,b]=(0,a.useState)(0),[y,v]=(0,a.useState)(0),j=(0,a.useRef)({src:"",attempts:0,timer:null}),[,w]=(0,a.useState)(0),S=(0,a.useRef)(null),[k,C]=(0,a.useState)(!1);(0,a.useEffect)(()=>{try{C("1"===localStorage.getItem("alquran-cloud:player-compact"))}catch{}},[]);let z=e?(0,eb.audioUrlFor)(e.globalNumber,f.identifier):"",I=()=>{null!==S.current&&(window.clearTimeout(S.current),S.current=null)},M=()=>{null!==j.current.timer&&(window.clearTimeout(j.current.timer),j.current.timer=null)},P=()=>{let t=h.current;if(!t||!e)return;let r=t.play();r&&"function"==typeof r.catch&&r.catch(()=>E())},E=()=>{if(M(),j.current.src!==z&&(j.current={src:z,attempts:0,timer:null}),j.current.attempts>=3){j.current={...j.current,timer:null},o();return}j.current.attempts+=1,w(j.current.attempts),j.current.timer=window.setTimeout(()=>{j.current.timer=null;let t=h.current;t&&e&&t.src===z&&(t.load(),P())},1500)};(0,a.useEffect)(()=>{let t=h.current;if(t){if(j.current.src!==z&&(M(),j.current={src:z,attempts:0,timer:null},w(0)),!e){t.pause(),M();return}t.src!==z&&(t.src=z,t.load()),r?P():(t.pause(),M())}},[z,r,e]),(0,a.useEffect)(()=>M,[]),(0,a.useEffect)(()=>I,[]);let _=c(),L=_&&r?(0,eb.audioUrlFor)(_.globalNumber,f.identifier):"",R=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!L||L===z||!m)return;let e=R.current;e||((e=new Audio).preload="auto",R.current=e),e.src!==L&&(e.src=L,e.load())},[L,z,m]),(0,a.useEffect)(()=>()=>{let e=R.current;e&&(e.removeAttribute("src"),e.load(),R.current=null)},[]);let F=e?(0,D.getSurah)(e.surah):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("audio",{ref:h,preload:"auto",onTimeUpdate:e=>{let t=e.currentTarget;v(t.currentTime),x(t.duration?t.currentTime/t.duration:0)},onLoadedMetadata:e=>b(e.currentTarget.duration||0),onPlay:()=>{I(),s()},onPause:()=>{I(),S.current=window.setTimeout(()=>{S.current=null;let e=h.current;e&&e.paused&&!e.ended&&o()},250)},onEnded:()=>{d()},onError:()=>{e&&r&&E()}}),(0,t.jsxs)("div",{role:"region","aria-label":"Audio player",style:{position:"fixed",bottom:18,left:"50%",transform:"translateX(-50%)",zIndex:60,width:k?"auto":"min(720px, calc(100vw - 32px))",background:"linear-gradient(180deg, #faf3df 0%, #f1e8cf 100%)",boxShadow:"0 0 0 1px var(--gold-deep) inset,0 0 0 3px #f3eee5 inset,0 0 0 4px var(--vermilion) inset,0 0 0 6px #f3eee5 inset,0 0 0 7px var(--gold) inset,0 24px 60px -20px rgba(20,15,5,0.5)",padding:k?"8px 14px":"12px 22px",display:k?"flex":"grid",...k?{}:{gridTemplateColumns:"auto 1fr auto"},alignItems:"center",gap:k?10:18,fontFamily:"var(--font-sans)"},children:[(0,t.jsx)("button",{type:"button",onClick:()=>{C(e=>{let t=!e;try{localStorage.setItem("alquran-cloud:player-compact",t?"1":"0")}catch{}return t})},"aria-label":k?"Expand player":"Collapse player",title:k?"Expand player":"Collapse player",style:{position:"absolute",top:6,right:6,width:22,height:22,borderRadius:"50%",border:"1px solid var(--gold-deep)",background:"linear-gradient(180deg, #faf3df 0%, #ece2cb 100%)",color:"var(--gold-deep)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0,zIndex:1,boxShadow:"0 1px 0 rgba(255,255,255,0.45) inset, 0 -1px 0 rgba(0,0,0,0.12) inset"},children:(0,t.jsx)("svg",{viewBox:"0 0 12 12",width:"9",height:"9","aria-hidden":!0,
52children:k?(0,t.jsx)("path",{d:"M2 5 L2 2 L5 2 M10 7 L10 10 L7 10 M2 2 L5 5 M10 10 L7 7",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}):(0,t.jsx)("path",{d:"M5 2 L5 5 L2 5 M7 10 L7 7 L10 7 M5 5 L2 2 M7 7 L10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:n,disabled:!e,"aria-label":r?"Pause":"Play",style:{width:32,height:32,borderRadius:"50%",border:"1px solid var(--gold-deep)",background:e?r?"linear-gradient(180deg, #c8312b 0%, #a82420 100%)":"linear-gradient(180deg, #1a2c63 0%, #26408b 100%)":"linear-gradient(180deg, #ece2cb 0%, #c9a86a 100%)",color:e?"var(--gold-light)":"var(--ink-muted)",opacity:e?1:.6,display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:e?"pointer":"not-allowed",boxShadow:"0 1px 0 rgba(255,255,255,0.45) inset, 0 -2px 0 rgba(0,0,0,0.2) inset",padding:0},children:r?(0,t.jsxs)("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"3",y:"2",width:"3.5",height:"12",fill:"currentColor"}),(0,t.jsx)("rect",{x:"9.5",y:"2",width:"3.5",height:"12",fill:"currentColor"})]}):(0,t.jsx)("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":!0,children:(0,t.jsx)("polygon",{points:"4,2 14,8 4,14",fill:"
52currentColor"})})}),e?(0,t.jsxs)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.78rem",color:"var(--ink-2)",paddingInlineEnd:18,whiteSpace:"nowrap"},children:[e.surah,":",e.ayah,(0,t.jsxs)("span",{style:{marginInlineStart:8,color:"var(--ink-muted)",fontFamily:"var(--font-sans)",fontSize:"0.7rem",letterSpacing:"0.05em"},children:[ev(y)," / ",ev(m)]})]}):(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.78rem",color:"var(--ink-muted)",paddingInlineEnd:18,whiteSpace:"nowrap"},children:"ready"})]}),!k&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,t.jsx)(eS,{onClick:l,label:"Previous ayah",disabled:!e,children:(0,t.jsxs)("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":!0,children:[(0,t.jsx)("polygon",{points:"13,2 5,8 13,14",fill:"currentColor"}),(0,t.jsx)("rect",{x:"3",y:"2",width:"2",height:"12",fill:"currentColor"})]})}),(0,t.jsx)("button",{type:"button",onClick:n,disabled:!e,"aria-label":r?"Pause":"Play",style:{width:42,he
52ight:42,borderRadius:"50%",border:"1px solid var(--gold-deep)",background:e?r?"linear-gradient(180deg, #c8312b 0%, #a82420 100%)":"linear-gradient(180deg, #1a2c63 0%, #26408b 100%)":"linear-gradient(180deg, #ece2cb 0%, #c9a86a 100%)",color:e?"var(--gold-light)":"var(--ink-muted)",opacity:e?1:.6,display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:e?"pointer":"not-allowed",boxShadow:"0 1px 0 rgba(255,255,255,0.45) inset, 0 -2px 0 rgba(0,0,0,0.2) inset"},children:r?(0,t.jsxs)("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"3",y:"2",width:"3.5",height:"12",fill:"currentColor"}),(0,t.jsx)("rect",{x:"9.5",y:"2",width:"3.5",height:"12",fill:"currentColor"})]}):(0,t.jsx)("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":!0,children:(0,t.jsx)("polygon",{points:"4,2 14,8 4,14",fill:"currentColor"})})}),(0,t.jsx)(eS,{onClick:i,label:"Next ayah",disabled:!e,children:(0,t.jsxs)("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":!0,children:[(0,t.jsx)("polygon",{points:"3,2 11,8 3,14",fill:"currentColor"}),(0,t.jsx)("rect",{x:"11",y:"2",width:"2",height:"12",fill:"currentColor"})]})}),(0,t.jsx)("button",{type:"button",onClick:p,"aria-pressed":u,"aria-label":u?"Looping enabled — click to disable":"Looping disabled — click to enable",title:u?"Looping enabled":"Looping disabled",style:{width:30,height:30,borderRadius:"50%",marginInlineStart:4,border:`1px solid ${u?"var(--gold-deep)":"rgba(184,134,11,0.4)"}`,background:u?"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)":"rgba(255,253,247,0.4)",color:u?"#3a1f0c":"var(--ink-muted)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:u?"0 1px 0 rgba(255,255,255,0.4) inset, 0 -1px 0 rgba(0,0,0,0.15) inset":"none"},children:(0,t.jsx)("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3.5 6.5 a 4.5 4.5 0 0 1 8 -2.5 L 14 4 M3.5 6.5 L 5.5 5 M 2 4.5 L 3.5 6.5 M12.5 9.5 a 4.5 4.5 0 0 1 -8 2.5 L 2 12 M12.5 9.5 L 10.5 11 M 14 11.5 L 12.5 9.5",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),!k&&(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:e&&F?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:10,minWidth:0},children:[(0,t.jsxs)("span",{className:"arabic",style:{fontSize:"0.95rem",color:"var(--islamic-700)",lineHeight:1.1,whiteSpace:"nowrap"},children:["سُورَةُ ",F.name_ar]}),(0,t.jsxs)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.78rem",color:"var(--ink-2)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[F.name_en," · ayah ",(0,em.toArabicNumerals)(e.ayah)]}),(0,t.jsxs)("span",{style:{marginLeft:"auto",fontFamily:"var(--font-sans)",fontSize:"0.65rem",letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--ink-muted)",whiteSpace:"nowrap"},children:[ev(y)," / ",ev(m)]})]}),(0,t.jsx)(ek,{progress:g,onSeek:e=>{let t=h.current;if(!t||!m)return;let r=e.currentTarget.getBoundingClientRect();t.currentTime=Math.max(0,Math.min(1,(e.clientX-r.left)/r.width))*m}})]}):(0,t.jsx)(ej,{reciterName:f.englishName})}),!k&&(0,t.jsx)(ew,{name:f.englishName})]})]})}function ev(e){if(!Number.isFinite(e))return"0:00";let t=Math.max(0,Math.floor(e)),r=Math.floor(t/60);return`${r}:${(t%60).toString().padStart(2,"0")}`}function ej({reciterName:e}){return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,lineHeight:1.2},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.92rem",color:"var(--ink-2)"},children:"Tap any āyah ▷ to begin"}),(0,t.jsxs)("span",{style:{fontFamily:"var(--font-sans)",fontSize:"0.66rem",letterSpacing:"0.1em",textTransform:"uppercase",color:"var(--ink-muted)"},children:["ready · ",e]})]})}function ew({name:e}){let r=e.split(" ").map(e=>e[0]).join("").slice(0,2);return(0,t.jsx)("span",{"aria-hidden":!0,title:e,style:{width:32,height:32,borderRadius:"50%",background:"linear-gradient(180deg, #f1e4b3 0%, #c9a86a 55%, #a8801f 100%)",color:"#3a1f0c",border:"1px solid var(--gold-deep)",display:"inline-flex",alignItems:"center",justifyContent:"center",fontFamily:"var(--font-serif)",fontWeight:600,fontSize:"0.82rem"},children:r})}function eS({onClick:e,label:r,disabled:n,children:i}){return(0,t.jsx)("button",{type:"button",onClick:e,disabled:n,"aria-label":r,style:{width:30,height:30,borderRadius:"50%",border:"1px solid rgba(184,134,11,0.55)",background:"rgba(255,253,247,0.4)",color:"var(--ink-2)",opacity:n?.4:1,cursor:n?"not-allowed":"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:i})}function ek({progress:e,onSeek:r}){return(0,t.jsxs)("div",{onClick:r,role:r?"slider":void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*e),style:{position:"relative",height:5,background:"linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 100%)",borderRadius:4,boxShadow:"0 0 0 1px rgba(184,134,11,0.4)",cursor:r?"pointer":void 0},children:[(0,t.jsx)("div",{style:{position:"absolute",inset:"0 auto 0 0",width:`${Math.round(100*e)}%`,background:"linear-gradient(90deg, #b8860b 0%, #c9a86a 50%, #b8860b 100%)",borderRadius:4}}),(0,t.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",top:"50%",left:`calc(${Math.round(100*e)}% - 6px)`,transform:"translateY(-50%)",width:12,height:12,borderRadius:"50%",background:"var(--vermilion)",boxShadow:"0 0 0 1px var(--gold-deep), 0 2px 4px rgba(0,0,0,0.3)"}})]})}function eC(){let[e,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>{let e=!!document.fullscreenElement;r(e);let t=document.querySelector(".v2");t&&(e?t.setAttribute("data-fullscreen","true"):t.removeAttribute("data-fullscreen"))};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]),(0,t.jsx)("button",{type:"button",onClick:()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},"aria-label":e?"Exit full screen":"Enter full screen",title:e?"Exit full screen":"Enter full screen",style:{position:"fixed",top:14,right:14,zIndex:70,width:36,height:36,borderRadius:"50%",border:"1px solid var(--gold-deep)",background:"linear-gradient(180deg, #faf3df 0%, #ece2cb 100%)",color:"var(--gold-deep)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 1px 0 rgba(255,255,255,0.45) inset, 0 -1px 0 rgba(0,0,0,0.12) inset,0 6px 14px -6px rgba(20,15,5,0.35)",padding:0},children:(0,t.jsx)("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":!0,
52children:e?(0,t.jsx)("path",{d:"M6 2 L6 6 L2 6 M10 14 L10 10 L14 10 M6 6 L2 2 M10 10 L14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}):(0,t.jsx)("path",{d:"M2 6 L2 2 L6 2 M14 10 L14 14 L10 14 M2 2 L6 6 M14 14 L10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function ez({children:e}){let[n]=(0,V.useV2Prefs)(),i=(0,r.usePathname)()??"",a=!!(x(i)||i.startsWith("/surah/")||i.startsWith("/juz/")||i.startsWith("/ayah/")||i.startsWith("/mushaf/"))||"/saved"===i,l=i.startsWith("/mushaf/")?n.arabicSizeMushaf:n.arabicSize,o=x(i)||i.startsWith("/mushaf/");return(0,t.jsxs)("div",{className:"v2","data-motif":n.motif,"data-arabic-size":l,"data-mushaf-layout":n.mushafLayout,"data-translation-size":n.translationSize,"data-translation":n.translation,"data-transliteration":n.transliteration,style:{minHeight:"100vh",position:"relative",backgroundColor:"#ece2cb",backgroundImage:"radial-gradient(1400px 800px at 12% -10%, rgba(184,134,11,0.14), transparent 60%),radial-gradient(1100px 600px at 90% 110%, rgba(38,64,139,0.10), transparent 60%),radial-gradient(900px 500px at 50% 50%, rgba(243,236,221,0.55), transparent 70%),repeating-linear-gradient(0deg, rgba(120,90,40,0.030) 0 1px, transparent 1px 3px),repeating-linear-gradient(90deg, rgba(120,90,40,0.024) 0 1px, transparent 1px 4px)",color:"var(--ink)",fontFamily:"var(--font-serif)"},children:[(0,t.jsx)(A,{motif:n.motif}),(0,t.jsxs)("div",{style:{position:"relative",zIndex:1},children:[(0,t.jsx)(v,{}),a&&(0,t.jsx)(ed,{}),e,(0,t.jsx)(_,{})]}),(0,t.jsx)(ey,{}),o&&(0,t.jsx)(eC,{})]})}e.s(["V2Shell",0,function({children:e,reciters:r}){return(0,t.jsx)(V.PrefsProvider,{children:(0,t.jsx)(Q.RecitersProvider,{reciters:r,children:(0,t.jsx)(l.AccountProvider,{children:(0,t.jsx)(o.BookmarkProvider,{children:(0,t.jsx)(ex.AudioProvider,{children:(0,t.jsx)(ez,{children:e})})})})})})}],988065)}]);

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.