-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.scripts.gen.min.js
1 lines (1 loc) · 47.1 KB
/
.scripts.gen.min.js
1
let C=e=>[...Array(e).keys()];function D(e){return document.querySelector(e)}function N(e){return document.querySelectorAll(e)}function a(e){return document.getElementById(e)}function B(e,t={}){var n,a=document.createElement(e);for(n in t)if("Dataset"===n)for(var r in t[n])a.dataset[r]=t[n][r];else a[n]=t[n];return a}function t(e,t={}){var n,a=document.createElementNS("http://www.w3.org/2000/svg",e);for(n in t)a.setAttribute(n,t[n]);return a}Element.prototype.Q=Element.prototype.querySelector,Element.prototype.Qall=Element.prototype.querySelectorAll;let R=t("svg",{id:"spinner-svg",viewBox:"-50 -50 100 100"}),o=(R.appendChild(t("circle",{id:"spinner",cx:0,cy:0,r:35,fill:"none","stroke-width":"10","stroke-dasharray":"40 30"})),location),r=localStorage,l=(e,t=!0)=>{t?r.setItem(e,"Y"):r.removeItem(e)},Q=a("dark"),p=a("body"),W=(a("all"),a("help"),a("helptoggle"),a("optiontoggle"),a("options"),a("guide"),a("darkmode_option"),a("darkmode_input")),F=a("teacher_option"),P=a("teacher"),V=a("qaris"),O=a("qariurl"),U=a("cn"),Y=a("zz"),X=a("quizmode_option"),u=a("quizmode"),Z=a("uthm_options"),h=(a("uthm_options_title"),a("tafsir_option")),G=a("mvbtns_input"),J=a("textclr_input"),ee=a("ayatnum_input"),te=a("linebreaks_input"),ne=a("tl_input"),ae=a("imla_options"),re=(a("imla_options_title"),a("feedbackrate")),le=(a("helpcontent"),a("player")),ie=a("preloader"),oe=a("title"),ue=a("selectors"),i=a("sura_bgn"),c=a("aaya_bgn"),s=a("sura_end"),d=a("aaya_end"),ce=a("ok"),se=a("show"),de=a("header"),he=a("hb"),pe=a("reshow"),fe=a("repeat"),me=a("new"),ve=a("zzignore"),ye=a("end_of_header"),ge=a("tafsirhint"),f=a("uthm_txt"),m=a("imla_txt_container"),v=a("imla_txt"),y=a("endmsg"),we=a("zzback"),g=a("mvbtns"),be=a("prevaaya"),ke=a("prevjmla"),Ke=a("prevword"),xe=a("nextword"),Le=a("nextjmla"),Te=a("nextaaya"),n=a("tl"),Me=(a("N"),a("X"),a("R"),a("Q"),a("L"),a("W"),a("J"),a("T"),a("tvc")),_e=(a("tv"),a("tvh")),Ae=a("tvt"),Ee=a("sxc"),$e=(a("sx"),a("sxi"),a("sura_sx")),w=a("sxq"),b=a("sxr"),qe=e=>e.scrollTo({top:0}),Se=e=>e.scrollTo({top:e.scrollHeight}),He=()=>qe(p),ze=()=>Se(p),Ie=()=>{Se(p),Se(v)},je=e=>{e.style.visibility="hidden",e.style.opacity="0"},Ce=e=>{e.style.visibility="visible",e.style.opacity="1"},k=e=>e.toString().replace(/[0٠]/g,"٠").replace(/[1١]/g,"١").replace(/[2٢]/g,"٢").replace(/[3٣]/g,"٣").replace(/[4٤]/g,"٤").replace(/[5٥]/g,"٥").replace(/[6٦]/g,"٦").replace(/[7٧]/g,"٧").replace(/[8٨]/g,"٨").replace(/[9٩]/g,"٩").replace(/[^٠١٢٣٤٥٦٧٨٩]/g,""),e,De,Ne=()=>""===i.value?0:L[+i.value],Be=()=>""===s.value?0:L[+s.value],Re=()=>""===i.value?"":+i.value,Qe=()=>""===s.value?"":+s.value,We=()=>""===c.value?"":+c.value,Fe=()=>""===d.value?"":+d.value,Pe=e=>C(e).map(e=>`<option value="${e+1}">${k(e+1)}</option>`).join(""),Ve=(e,t,n)=>{We(),e.innerHTML=Pe(t),e.value=n||t};function Oe(e){var t=e.target,e="blur"===e.type;t!==c&&d,e||t!==i?e||t!==s||(Ve(d,Be()),Qe()<Re()&&(i.value=Qe(),Ve(c,Ne(),1))):(Ve(c,Ne(),1),Qe()<Re()&&(s.value=Re(),Ve(d,Be())))}let K=(()=>{let t,n,a;function r(e){return null!=e?e:a}function l(e){return null==(e=r(e))||e<0||!n||!t||e>=t.length}function i(e){if(!l(e=r(e)))return n+t[e]+".mp3"}function o(e){l(e=r(e))||(ie.src=i(e))}function u(e){e=+e,isNaN(e)||(a=e,o())}function c(){(l()?je:Ce)(le)}function s(e){n=e?`https://www.everyayah.com/data/${e}/`:void 0,o()}return{update_qari:function(e){s(e),c()},init:function(e,t){s(e),!e&&t&&(n=t.endsWith("/")?t:t+"/"),u(0)},fill:function(e){t=e,u(0),c()},play:function(e){null!=e&&u(e),c(),l()||(le.src=i(),le.addEventListener("loadeddata",()=>o(a+1)),le.play().catch(()=>{}))},set_index:function(e){u(e)},next:function(){u(a+1)},back:function(){u(a-1)}}})();function Ue(e){var t=e.slice(-1);return""===t||"\n"===t?"a":e.match(/[\u06D6-\u06DC]\t/)?"j":""}function Ye(e,t,n,a){return""!==e&&""!==t&&""!==n&&""!==a&&e<=n&&(t<=a||e<n)&&1<=t&&t<=L[e]&&1<=a&&a<=L[n]}function x(e,t){(e="zz_set_"+e)in parent&&parent[e](t)}function change_qari(){var e=V.value;""!==e?r.setItem("qari",e):r.removeItem("qari"),K.update_qari(e),x("qari",e)}function change_quizmode(){x("quizmode",u.value),l("imla","imla"===u.value),"imla"===u.value?(Z.style.display="none",ae.style.display="block"):(ae.style.display="none",Z.style.display="block"),nt()}let Xe=e=>e.replace(/[\u064B-\u0652\xA0\u06DD٠-٩]+/g,""),Ze=e=>e,Ge=e=>e.replace(/\S*$/,""),Je=e=>e.replace(/[^\n]*$/,"");function change_feedbackrate(){var e=re.value;window.imlafilter="a"===e?Je:"w"===e?Ge:Ze,v.value&&v.oninput&&v.oninput(),"l"===e?r.removeItem("fbrate"):r.setItem("fbrate",e),x("feedbackrate",e)}window.imlafilter=Ze;let et=(e,t,n=window.imlafilter)=>Xe(e).startsWith(Xe(n(t))),tt=(e,t)=>f.classList.toggle(e,t);function nt(){var e=y.hidden,t=f.hidden,n=ue.hidden,a="uthm"!==u.value,r=!fe.innerText.startsWith("ابدأ");ge.hidden=(t||r&&e)&&(!e||n||a)}function at(){ne.checked?n.style.display=f.hidden||"taj"!==J.value?"none":"":("true"===n.getAttribute("aria-expanded")&&n.onclick({}),n.style.display="none")}function change_tajweed(){var e=J.value,t="taj"!==e;l("notajweed",t),tt("letter-parts","bas"===e),tt("letter-nocolor","no"===e),ne.disabled=t,ne.previousElementSibling.classList.toggle("disabled",t),at(),x("tajweed",e.slice(0,1))}function change_teacher(){var e=P.checked;l("teacher",e),x("teacher",e)}function change_ayatnum(){var e=!ee.checked;l("noayatnumcolor",e),tt("ayat-nocolor",e),x("ayatnum",!e)}function change_linebreaks(){var e=!te.checked;l("nolinebreaks",e),tt("nb",e),x("linebreaks",!e)}function change_dark(){var e=W.checked;r.setItem("dark",e?"Y":"N"),x("dark",Q.checked=e)}function change_mvbtns(){var e=G.value,t=("b"===e?r.removeItem("mvbtns"):r.setItem("mvbtns",e),"r"===e?"sidebtns rightside":"l"===e?"sidebtns leftside":"");g.className=t,f.classList.toggle("sidebtns",t),n.classList.toggle("right","l"===e),x("mvbtns",e)}function change_tafsir(){var e=h.value,t=("ar_muyassar"===(e=h.value)?r.removeItem("tafsir"):r.setItem("tafsir",e),a("tsel"));(t=a("tsel"))&&(t.value=e),x("tafsir",e)}function change_tajweedlegend(){l("notajweedlegend",!ne.checked),at()}function rt(e,t,n,a){e=+e,t=+t,n=+n,a=+a;var r=L[e-1],l=L[n-1],i=pt[e-1],o=pt[n-1],u=1===t?"الأولى":t===r?k(t)+" الأخيرة":k(t),c=1===a?"الأولى":a===l?k(a)+" الأخيرة":k(a);return e===n?t===a?`تسميع الآية ${u} من سورة `+i:a===t+1?`تسميع الآيتين ${u} و${c} من سورة `+i:1===t&&a===l?`تسميع سورة ${i} كاملة`:`تسميع سورة ${i} من الآية ${u} حتى الآية `+c:1===t&&a===l?n===e+1?`تسميع سورتي ${i} و${o} كاملتين`:`تسميع السور من ${i} حتى `+o:n===e+1&&t==r&&1==a?`تسميع الآية ${u} من سورة ${i} والآية ${c} من سورة `+o:`تسميع من سورة ${i} الآية ${u} حتى سورة ${o} الآية `+c}function lt(e,t){var n,a,r;t&&(n=e.selectionStart,r=e.selectionEnd,a=e.value.substring(0,n),r=e.value.substring(r,e.value.length),e.value=a+t+r,e.selectionStart=e.selectionEnd=n+t.length)}let it={arak:{Backquote:["`","~"],Minus:["[","{"],Equal:["]","}"],KeyQ:["ض",'"'],KeyW:["ع","غ"],KeyE:["ب","پ"],KeyR:["ح","َ"],KeyT:["س","ً"],KeyY:["خ","ٌ"],KeyU:["د","ُ"],KeyI:["أ","آ"],KeyO:["ك","گ"],KeyP:["ج","چ"],BracketLeft:["/","؟"],BracketRight:["=","+"],KeyA:["ه","؛"],KeyS:["ي","»"],KeyD:["م","«"],KeyF:["ن","ْ"],KeyG:["ف","ڤ"],KeyH:["ت","ث"],KeyJ:["ل","ّ"],KeyK:["ا","ء"],KeyL:["و","ؤ"],Semicolon:["ر",">"],Quote:["إ","<"],KeyZ:[".",":"],KeyX:["،","ـ"],KeyC:["ش","_"],KeyV:["ق","-"],KeyB:["ص","'"],KeyN:["ذ","ٍ"],KeyM:["ة","ِ"],Comma:["ى","ئ"],Period:["ز","ژ"],Slash:["ط","ظ"]},dv:{Backquote:["`","~"],Minus:["[","{"],Equal:["]","}"],KeyQ:["'",'"'],KeyW:["،","<"],KeyE:[".",">"],KeyR:["ط","ظ"],KeyT:["ى","آ"],KeyY:["ف","ڤ"],KeyU:["غ","ـ"],KeyI:["ص","ض"],KeyO:["ر","»"],KeyP:["ل","«"],BracketLeft:["/","؟"],BracketRight:["=","+"],KeyA:["ا","أ"],KeyS:["ع","إ"],KeyD:["ه","ة"],KeyF:["و","ؤ"],KeyG:["ي","ئ"],KeyH:["د","َ"],KeyJ:["ح","ً"],KeyK:["ت","ٌ"],KeyL:["ن","ُ"],Semicolon:["س","ش"],Quote:["-","_"],KeyZ:["؛",":"],KeyX:["ق","ء"],KeyC:["ج","چ"],KeyV:["ك","گ"],KeyB:["خ","ْ"],KeyN:["ب","پ"],KeyM:["م","ّ"],Comma:["ث","ٍ"],Period:["ذ","ِ"],Slash:["ز","ژ"]},ibm:{Backquote:["ذ","ّ"],Minus:["-","_"],Equal:["=","+"],KeyQ:["ض","َ"],KeyW:["ص","ً"],KeyE:["ث","ُ"],KeyR:["ق","ٌ"],KeyT:["ف","لإ"],KeyY:["غ","إ"],KeyU:["ع","`"],KeyI:["ه","÷"],KeyO:["خ","×"],KeyP:["ح","؛"],BracketLeft:["ج","<"],BracketRight:["د",">"],KeyA:["ش","ِ"],KeyS:["س","ٍ"],KeyD:["ي","]"],KeyF:["ب","["],KeyG:["ل","لأ"],KeyH:["ا","أ"],KeyJ:["ت","ـ"],KeyK:["ن","،"],KeyL:["م","/"],Semicolon:["ك",":"],Quote:["ط",'"'],KeyZ:["ئ","~"],KeyX:["ء","ْ"],KeyC:["ؤ","}"],KeyV:["ر","{"],KeyB:["لا","لآ"],KeyN:["ى","آ"],KeyM:["ة","'"],Comma:["و",","],Period:["ز","."],Slash:["ظ","؟"]},mac:{Backquote:["§","±"],Minus:["-","_"],Equal:["=","+"],KeyQ:["ض","َ"],KeyW:["ص","ً"],KeyE:["ث","ِ"],KeyR:["ق","ٍ"],KeyT:["ف","ُ"],KeyY:["غ","ٌ"],KeyU:["ع","ْ"],KeyI:["ه","ّ"],KeyO:["خ","]"],KeyP:["ح","["],BracketLeft:["ج","}"],BracketRight:["ة","{"],KeyA:["ش","»"],KeyS:["س","«"],KeyD:["ي","ى"],KeyF:["ب",""],KeyG:["ل",""],KeyH:["ا","آ"],KeyJ:["ت",""],KeyK:["ن",""],KeyL:["م",""],Semicolon:["ك",":"],Quote:["؛",'"'],KeyZ:["ظ",""],KeyX:["ط",""],KeyC:["ذ","ئ"],KeyV:["د","ء"],KeyB:["ز","أ"],KeyN:["ر","إ"],KeyM:["و","ؤ"],Comma:["،",">"],Period:[".","<"],Slash:["/","؟"]}},ot={l:"l",letter:"l",w:"w",word:"w",a:"a",aaya:"a"},ut={t:"taj",taj:"taj",tajweed:"taj",b:"bas",bas:"bas",basic:"bas",n:"no",no:"no",none:"no"},ct={i:"imla",imla:"imla",imlaai:"imla",u:"uthm",uthm:"uthm",uthmani:"uthm"};function st(e){return ct[e.toLowerCase()]}function dt(e,t,n,a){e.value=null!=t?t:r.getItem(n),e.value||(e.value=a),e.value!==a&&r.setItem(n,e.value),e.onchange()}function ht(e,t,n){e.checked=null!=t?!t:!r.getItem(n),l(n,!e.checked),e.onchange()}null==(e=(e=>{let r,l,i,o,u,c,s,d,h,p,f,m,v,y,g,w,b,k,K,x,L,T,M;return e.slice(1).split("&").map(e=>e.split("=")).forEach((t,e)=>{var n,a=(...e)=>e.includes(t[0]);a("dark","d")?r=!0:a("light","l")?r=!1:a("color","c")?l=(n=t[1],ut[n.toLowerCase()]||l):a("mvbtns","mv","m")?i=(""==(n=(n=t[1]).toLowerCase())||"b"==n?"b":"r"==n?"r":"l"==n?"l":void 0)||i:a("quizmode","qz","q")?o=st(t[1])||o:a("txt")?o=st("imlaai"):a("byaaya")?u="a":a("byword")?u="w":a("byletter")?u="l":a("by")?u=(n=t[1],ot[n.toLowerCase()]||u):a("linebreaks")?c=!1:a("nolinebreaks")?c=!0:a("t","teach","teacher")?h=!0:a("n","noteach","noteacher")?h=!1:a("dt","disableteacher")?p=!0:a("dq","disablequizmode")?f=!0:a("dv","dp","disablepreview")?m=!0:a("dc","disablecheat")?v=!0:a("hc","highcontrast")?y=!0:a("lc","lowcontrast")?g=!0:a("emu","emulate","emulation")?b=t[1]:a("qari")?s=t[1]:a("qariurl")?d=t[1]:a("tafsir")?w=t[1]:a("fp","fullpage")?k=!0:a("noborder")?K=!0:a("nc","numcolor")?x=!1:a("nonc","nonumcolor")?x=!0:a("tl","tajweedlegend")?L=!1:a("notl","notajweedlegend")?L=!0:a("cn")?T=!0:a("zz")&&(M=!0)}),{dark:r,color:l,mv:i,quizmode:o,fbrate:u,nolinebreaks:c,teacher:h,disableteacher:p,disablequizmode:f,disablepreview:m,disablecheat:v,highcontrast:y,lowcontrast:g,emulate:b,qari:s,qariurl:d,tafsir:w,fullpage:k,noborder:K,nonumcolor:x,notajweedlegend:L,cn:T,zz:M}})(o.search+o.hash.replace(/^#/,"&"))).quizmode?r.imla&&(u.value="imla",u.onchange()):(u.value=e.quizmode,u.onchange(),l("imla","imla"===e.quizmode)),e.highcontrast&&p.classList.add("highcontrast"),e.lowcontrast&&p.classList.add("lowcontrast"),null==e.dark&&null==r.getItem("dark")?e.dark=window.matchMedia("(prefers-color-scheme: dark)").matches:null!=e.dark&&r.setItem("dark",e.dark?"Y":"N"),W.checked=e.dark||"Y"===r.dark,W.onchange(),window.prefers_reduced_motion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,null==e.teacher?P.checked=!!r.teacher:(P.checked=e.teacher,l("teacher",e.teacher)),dt(h,e.tafsir,"tafsir","ar_muyassar"),dt(V,e.qari,"qari",""),dt(G,e.mv,"mvbtns","b"),dt(re,e.fbrate,"fbrate","l"),e.qariurl&&(V.value="_"),O.value=e.qariurl||"",J.value=null!=e.color?e.color:r.notajweed?"no":"taj","taj"!==J.value&&r.setItem("notajweed","Y"),J.onchange(),ht(te,e.nolinebreaks,"nolinebreaks"),ht(ee,e.nonumcolor,"noayatnumcolor"),ht(ne,e.notajweedlegend,"notajweedlegend"),De=e=>e.style.display="none",e.disableteacher&&De(F),e.disablequizmode&&(De(X),N(".mode_options_title").forEach(De)),e.disablepreview&&De(se),window.allow_cheating=!e.disablecheat,e.emulate&&it[e.emulate]&&(window.emulate=e.emulate),e.fullpage&&p.classList.add("fullpage"),e.noborder&&v.classList.add("noborder"),e.cn&&(U.value=e.cn?"1":""),e.zz&&(Y.value=e.zz?"1":"");let L=[7,286,200,176,120,165,206,75,129,109,123,111,43,52,99,128,111,110,98,135,112,78,118,64,77,227,93,88,69,60,34,30,73,54,45,83,182,88,75,85,54,53,89,59,37,35,38,29,18,45,60,49,62,55,78,96,29,22,24,13,14,11,11,18,12,12,30,52,52,44,28,28,20,56,40,31,50,40,46,42,29,19,36,25,22,17,19,26,30,20,15,21,11,8,8,19,5,8,8,11,11,8,3,9,5,4,7,3,6,3,5,4,5,6],pt=["الفاتحة","البقرة","آل عمران","النساء","المائدة","الأنعام","الأعراف","الأنفال","التوبة","يونس","هود","يوسف","الرعد","إبراهيم","الحجر","النحل","الإسراء","الكهف","مريم","طه","الأنبياء","الحج","المؤمنون","النور","الفرقان","الشعراء","النمل","القصص","العنكبوت","الروم","لقمان","السجدة","الأحزاب","سبأ","فاطر","يس","الصافات","ص","الزمر","غافر","فصلت","الشورى","الزخرف","الدخان","الجاثية","الأحقاف","محمد","الفتح","الحجرات","ق","الذاريات","الطور","النجم","القمر","الرحمن","الواقعة","الحديد","المجادلة","الحشر","الممتحنة","الصف","الجمعة","المنافقون","التغابن","الطلاق","التحريم","الملك","القلم","الحاقة","المعارج","نوح","الجن","المزمل","المدثر","القيامة","الإنسان","المرسلات","النبأ","النازعات","عبس","التكوير","الانفطار","المطففين","الانشقاق","البروج","الطارق","الأعلى","الغاشية","الفجر","البلد","الشمس","الليل","الضحى","الشرح","التين","العلق","القدر","البينة","الزلزلة","العاديات","القارعة","التكاثر","العصر","الهمزة","الفيل","قريش","الماعون","الكوثر","الكافرون","النصر","المسد","الإخلاص","الفلق","الناس"],ft=[0,32,50,66,81,98,112,130,148,164,183,195,209,225,239,249,259,269,278,289,307,325,344,367,385,405,425,445,463,478,493,504,516,528,550,566,580,592,606,627,640,655,669,680,695,709,719,735,750,765,777,801,824,847,862,883,899,915,929,939,954,984,1e3,1018,1041,1070,1095,1109,1124,1142,1160,1181,1200,1220,1235,1253,1268,1280,1294,1309,1327,1345,1356,1374,1389,1416,1434,1453,1478,1496,1513,1533,1556,1580,1602,1625,1648,1672,1696,1711,1725,1741,1759,1777,1802,1851,1901,1930,1951,1975,1990,2011,2029,2051,2078,2098,2127,2156,2171,2190,2214,2238,2271,2308,2348,2402,2430,2458,2483,2511,2533,2565,2595,2613,2632,2654,2673,2708,2747,2791,2811,2825,2843,2855,2875,2907,2932,2983,3042,3112,3159,3185,3214,3240,3263,3280,3302,3327,3340,3365,3385,3409,3439,3462,3490,3513,3533,3550,3563,3583,3592,3615,3629,3651,3674,3700,3732,3764,3809,3870,3932,3990,4021,4065,4089,4110,4133,4153,4173,4198,4226,4242,4264,4284,4298,4322,4348,4381,4430,4484,4510,4530,4554,4577,4600,4612,4625,4656,4705,4758,4809,4854,4901,4979,5053,5090,5104,5117,5136,5156,5177,5191,5217,5229,5241,5271,5323,5393,5447,5494,5551,5609,5672,5758,5829,5884,5948,6023,6090,6154,6236],mt=[0,7,12,23,31,36,44,55,64,68,76,83,90,95,100,108,112,119,126,133,141,148,152,160,170,176,183,188,193,197,203,209,217,222,226,231,237,240,244,252,255,259,263,266,271,276,281,288,289,293,302,308,315,322,330,338,345,354,363,370,376,384,393,401,408,414,425,433,441,446,450,458,466,473,479,487,493,499,504,507,512,516,519,526,530,537,544,552,558,567,572,579,584,587,594,598,606,614,620,627,633,640,647,655,663,668,671,674,678,682,686,692,700,705,710,714,719,726,733,739,745,751,758,764,772,777,782,789,797,807,816,824,833,841,848,857,862,870,879,883,890,899,907,913,920,926,931,935,940,946,954,965,976,984,991,997,1005,1011,1021,1027,1035,1041,1049,1058,1074,1084,1091,1097,1103,1109,1113,1117,1124,1132,1141,1149,1160,1168,1176,1185,1193,1200,1205,1212,1221,1229,1235,1241,1248,1255,1261,1266,1271,1275,1282,1289,1296,1303,1307,1314,1321,1328,1334,1341,1346,1352,1357,1364,1370,1378,1384,1389,1397,1406,1417,1425,1434,1442,1452,1461,1470,1478,1485,1492,1501,1510,1518,1526,1535,1544,1554,1561,1570,1581,1590,1600,1610,1618,1626,1633,1639,1648,1659,1665,1674,1682,1691,1699,1707,1712,1720,1725,1735,1741,1749,1755,1760,1768,1774,1783,1792,1802,1817,1833,1853,1872,1892,1907,1915,1927,1935,1943,1955,1965,1973,1980,1988,1994,2003,2011,2019,2029,2036,2046,2056,2067,2078,2087,2095,2104,2115,2125,2133,2144,2155,2160,2167,2174,2185,2193,2201,2214,2223,2237,2250,2261,2275,2288,2301,2314,2326,2345,2360,2385,2399,2412,2424,2435,2446,2461,2473,2483,2493,2507,2518,2527,2540,2555,2564,2573,2584,2595,2600,2610,2618,2625,2633,2641,2650,2659,2667,2673,2690,2700,2715,2732,2747,2762,2777,2791,2801,2811,2818,2822,2827,2834,2844,2849,2852,2857,2866,2875,2887,2898,2910,2922,2932,2951,2971,2992,3015,3043,3068,3091,3115,3138,3159,3172,3181,3194,3203,3214,3222,3235,3247,3257,3265,3273,3280,3287,3295,3302,3311,3322,3329,3336,3346,3354,3363,3370,3378,3385,3392,3403,3414,3424,3433,3441,3450,3459,3469,3480,3488,3497,3503,3514,3523,3533,3539,3548,3555,3563,3568,3576,3583,3587,3595,3606,3613,3620,3628,3637,3645,3654,3663,3671,3678,3690,3698,3704,3717,3732,3745,3759,3775,3788,3812,3839,3864,3890,3914,3941,3970,3986,3996,4012,4031,4053,4063,4068,4079,4089,4098,4105,4114,4125,4132,4140,4149,4158,4166,4173,4182,4191,4199,4210,4218,4229,4238,4247,4256,4264,4272,4282,4287,4294,4303,4316,4323,4335,4347,4358,4372,4385,4398,4414,4432,4453,4473,4486,4495,4505,4515,4524,4530,4538,4545,4556,4564,4574,4583,4592,4598,4606,4611,4616,4623,4630,4645,4665,4681,4705,4726,4749,4766,4784,4810,4828,4852,4873,4895,4917,4941,4968,4995,5029,5055,5078,5086,5093,5099,5104,5110,5115,5125,5129,5135,5142,5150,5155,5161,5168,5177,5185,5192,5199,5208,5217,5222,5229,5236,5241,5253,5267,5286,5313,5331,5357,5385,5414,5429,5447,5460,5475,5494,5512,5542,5570,5596,5616,5641,5672,5702,5727,5758,5800,5829,5854,5882,5909,5931,5963,5993,6016,6043,6072,6098,6125,6137,6155,6176,6193,6207,6221,6236],vt=[[1],[1,8,21,30,40,47,60,62,72,83,87,97,104,113,122,130,142,148,153,164,168,177,183,189,197,211,217,222,229,232,236,243,249,254,258,261,267,274,282,284],[1,10,21,31,42,55,64,72,81,92,102,110,121,130,144,149,156,172,181,190],[1,11,15,23,26,34,43,51,60,71,77,88,92,97,101,105,113,116,127,135,142,153,163,172],[1,6,12,20,27,35,44,51,57,67,78,87,94,101,109,116],[1,11,21,31,42,51,56,61,71,83,91,95,101,111,122,130,141,145,151,155],[1,11,26,32,40,48,54,59,65,73,85,94,100,109,127,130,142,148,152,158,163,172,182,189],[1,11,20,29,38,45,49,59,65,70],[1,7,17,25,30,38,43,60,67,73,81,90,100,111,119,123],[1,11,21,31,41,54,61,71,83,93,104],[1,9,25,36,50,61,69,84,96,110],[1,7,21,30,36,43,50,58,69,80,94,105],[1,8,19,27,32,38],[1,7,13,22,28,35,42],[1,16,26,45,61,80],[1,10,22,26,35,41,51,61,66,71,77,84,90,101,111,120],[1,11,23,31,41,53,61,71,78,85,94,101],[1,13,18,23,32,45,50,54,60,71,83,102],[1,16,41,51,66,83],[1,25,55,77,90,105,116,129],[1,11,30,42,51,76,94],[1,11,23,26,34,39,49,58,65,73],[1,23,33,51,78,93],[1,11,21,27,35,41,51,58,62],[1,10,21,35,45,61],[1,10,34,53,70,105,123,141,160,176,192],[1,15,32,45,59,67,83],[1,14,22,29,43,51,61,76],[1,14,23,31,45,52,64],[1,11,20,28,41,54],[1,12,20],[1,12,23],[1,9,21,28,35,41,53,59,69],[1,10,22,31,37,46],[1,8,15,27,38],[1,13,33,51,68],[1,22,75,114,139],[1,15,27,41,65],[1,10,22,32,42,53,64,71],[1,10,21,28,38,51,61,69,79],[1,9,19,26,33,45],[1,10,20,30,44],[1,16,26,36,46,57,68],[1,30,43],[1,12,22,27],[1,11,21,27],[1,12,20,29],[1,11,18,27],[1,11],[1,16,30],[1,24,47],[1,29],[1,26,33],[1,23,41],[1,26,46],[1,39,75],[1,11,20,26],[1,7,14],[1,11,18],[1,7],[1,10],[1,9],[1,9],[1,11],[1,8],[1,8],[1,15],[1,34],[1,38],[1,36],[1,21],[1,20],[1,20],[1,32],[1,31],[1,23],[1,41],[1,31],[1,27],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]];function T(e){return+L.slice(0,e).reduce((e,t)=>e+t,0)}let M=C(115).map(T);function yt(t){return C(115).find(e=>M[e]>=t)}let _=30,gt=60,wt=240,bt=6236,kt=114,Kt=604,xt=556;function Lt(e){return null==e?e:!!e.match(/^[0-9]+$/)}function Tt(e,t){return 2===(e=e.split(t)).length&&e.every(Lt)}function Mt(e){return""===e||Lt(e)||Tt(e,"//")||Tt(e,"/")}function _t(e){var t;return""===e?[null,null]:1===(t=e.split("-")).length&&t.every(Mt)?[e,e]:2===t.length&&t.every(Mt)?t:[null,null]}function At(t){var e;return t<0||6236<t?[null,null]:[(e=[...Array(114).keys()].find(e=>t>=T(e)&&t<T(e+1)))+1,t-T(e)+1]}function Et(e){if(e.includes("/")){if(2===(n=e.split("/")).length){var t,[n,a]=[+n[0],+n[1]];if(!isNaN(n)&&!isNaN(a)&&!(n<1||n>kt))return t=L[n-1],t=Math.max(1,Math.min(t,a)),T(n-1)+t}}else if(!(+e>bt))return+e}function $t(e,t){return t>vt[e-1].length?null:[T(e-1)+vt[e-1][t-1],t===vt[e-1].length?-1+T(e)+vt[e][0]:-1+T(e-1)+vt[e-1][t]]}function qt(n){var e;if(n.includes("/"))return 2!==(e=n.split("/")).length||+e[0]>kt?null:$t(+e[0],+e[1]);if(!(+n>xt))for(let t=0;t<kt;++t){var a=vt[t].length;for(let e=0;e<a;++e)if(0==--n)return $t(t+1,e+1)}}function St(e,t,n){if(2===n.length&&!(+n[0]<1||+n[0]>t||+n[1]<0||+n[1]>e))return(+n[0]-1)*e+ +n[1]+1}function Ht(e){return e.includes("//")?St(wt/_,_,e.split("//")):e.includes("/")?St(wt/gt,gt,e.split("/")):+e>wt?void 0:+e}function zt(e){return e.includes("/")?St(gt/_,_,e.split("/")):+e>gt?void 0:+e}var It,jt,Ct,A,Dt,E,Nt,Bt,$={maxCount:150,speed:2,frameInterval:15,alpha:1,gradient:!1,start:null,stop:null,toggle:null,pause:null,resume:null,togglePause:null,remove:null,isPaused:null,isRunning:null};function Rt(e,t,n){return e.color=jt[Math.random()*jt.length|0]+($.alpha+")"),e.color2=jt[Math.random()*jt.length|0]+($.alpha+")"),e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=Math.random()*Math.PI,e}function Qt(){A=!0}function Wt(){A=!1,Ft()}function Ft(){if(!A)if(0===E.length)Bt.clearRect(0,0,window.innerWidth,window.innerHeight);else{var e=Date.now(),t=e-Dt;if(!It||t>$.frameInterval){Bt.clearRect(0,0,window.innerWidth,window.innerHeight);var n,a=window.innerWidth,r=window.innerHeight;Nt+=.01;for(var l=0;l<E.length;l++)n=E[l],!Ct&&n.y<-15?n.y=r+100:(n.tiltAngle+=n.tiltAngleIncrement,n.x+=Math.sin(Nt)-.5,n.y+=.5*(Math.cos(Nt)+n.diameter+$.speed),n.tilt=15*Math.sin(n.tiltAngle)),(n.x>a+20||n.x<-20||n.y>r)&&(Ct&&E.length<=$.maxCount?Rt(n,a,r):(E.splice(l,1),l--));for(var i,o,u,c=Bt,s=0;s<E.length;s++){var d,h=E[s];c.beginPath(),c.lineWidth=h.diameter,i=(o=h.x+h.tilt)+h.diameter/2,u=h.y+h.tilt+h.diameter/2,$.gradient?((d=c.createLinearGradient(i,h.y,o,u)).addColorStop("0",h.color),d.addColorStop("1.0",h.color2),c.strokeStyle=d):c.strokeStyle=h.color,c.moveTo(i,h.y),c.lineTo(o,u),c.stroke()}Dt=e-t%$.frameInterval}requestAnimationFrame(Ft)}}function Pt(e,t,n){var a,r=window.innerWidth,l=window.innerHeight,i=(window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,$.frameInterval)},document.getElementById("confetti-canvas")),o=(null===i?((i=document.createElement("canvas")).setAttribute("id","confetti-canvas"),i.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(i),i.width=r,i.height=l,window.addEventListener("resize",function(){i.width=window.innerWidth,i.height=window.innerHeight},!0),Bt=i.getContext("2d")):null===Bt&&(Bt=i.getContext("2d")),$.maxCount);for(t?o=n?t==n?E.length+n:(n<t&&(a=t,t=n,n=a),E.length+(Math.random()*(n-t)+t|0)):E.length+t:n&&(o=E.length+n);E.length<o;)E.push(Rt({},r,l));A=!(Ct=!0),Ft(),e&&window.setTimeout(Vt,e)}function Vt(){Ct=!1}$.start=Pt,$.stop=Vt,$.toggle=function(){(Ct?Vt:Pt)()},$.pause=Qt,$.resume=Wt,$.togglePause=function(){(A?Wt:Qt)()},$.isPaused=function(){return A},$.remove=function(){stop(),A=!1,E=[]},$.isRunning=function(){return Ct},It=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,A=Ct=!(jt=["rgba(30,144,255,","rgba(107,142,35,","rgba(255,215,0,","rgba(255,192,203,","rgba(106,90,205,","rgba(173,216,230,","rgba(238,130,238,","rgba(152,251,152,","rgba(70,130,180,","rgba(244,164,96,","rgba(210,105,30,","rgba(220,20,60,"]),Dt=Date.now(),E=[],Nt=0,Bt=null;let Ot,Ut=h.parentElement.cloneNode(!0),Yt=Ut.Q("select"),Xt=(Ut.id="tsel_ujo",Yt.id="tsel",Yt.value=h.value,Yt.onchange=()=>{var e,t;h.value=Yt.value,"ar_muyassar"===(e=h.value)?r.removeItem("tafsir"):r.setItem("tafsir",e),(t=a("tsel"))&&(t.value=e),x("tafsir",e),an(Ot)},e=>new Set(e.split(" "))),Zt=[0,7,107,217,293,493,669,789,954,1160,1235,1364,1473,1596,1707,1750,1901,2029,2140,2250,2348,2483,2595,2673,2791,2855,2932,3159,3252,3340,3409,3533,3606,3705,3970,4058,4133,4272,4472,4583,4630,4901,5104,5163,5241,5447,5672,5993,6130,6236],Gt=[0,493,954,1473,2140,2932,3788,4735,6236],Jt=Xt("tanweer tabary qortoby waseet katheer baghawy sa3dy fa_khorramdel"),en=Xt("dv fa ku ps sd ug ur"),tn={},nn;function tv(e){an(e)}function an(r){let e,t=Ot,l=(Ot=r,h.value),n=(e=l.match(/^([a-z]+)_/))?e[1]:"ar",a="ar"===n?" ":en.has(n)?` lang="${n}" `:` lang="${n}" dir="ltr" `;var i,o=h.innerHTML.match('value="'+h.value+'"[^<>]*>([^<>]+)')[1],o=" "==a?o:`ترجمة <span${a}>${o}</span>`,u=(Me.style.display="block",Ce(Me),r+";"+l),u=(nn!==u&&qe(Me),nn=u,yt(r)-1),c=j.u[r-1].replace(/[#A-Z<>]+/g,"");_e.innerHTML="",_e.append(B("p",{innerHTML:`${o} للآية ${k(r-M[u])} من سورة `+pt[u]}),Ut,B("p",{className:"aya",innerText:c}),B("hr")),t!==Ot&&(Ae.innerHTML=""),Ae.prepend(R),i=e=>{Ae.innerHTML="<div"+a+'id="tvtxt">'+e+"</div>"};{var s=l,d=r;let t=Jt.has(s)?Zt:Gt,e=t.findIndex(e=>d<=e),n=e-1,a=()=>{return e=tn[s][n][d-t[n]-1],i(""===e?"<center>(لا يوجد تفسير لهذه الآية؛ اختر تفسيرا آخر أو آية أخرى)</center>":e.replace(/اً/g,"ًا"));var e};null==tn[s]&&(tn[s]=[]),tn[s][n]?a():Un(`rt/${s}-${e}.lzma`,e=>{tn[s][n]=e,a()})}}function rn(){je(Ee),setTimeout(()=>{Ee.style.display="none"},1e3)}D("#tvc > .x").onclick=()=>{je(Me),setTimeout(()=>{Me.style.display="none"},1e3)},D("#sxc > .x").onclick=rn;let ln="آأإئؤء]",on="<center>أدخل جزءًا من آية للبحث عنها</center>",q={},un=p.classList.contains("fullpage");function cn(){Ye(Re(),We(),Qe(),Fe())&&pn(M[Re()]+We(),M[Qe()]+Fe())}function sn(e){var t=e.target.id;"Enter"!==e.key||"aaya_bgn"!==t&&"aaya_end"!==t&&"sura_bgn"!==t&&"sura_end"!==t||("sura_bgn"===t?c:"aaya_bgn"===t?s:"sura_end"===t?d:"aaya_end"===t?ce:1).focus()}function dn(){removeEventListener("beforeunload",mn),y.hidden&&(y.hidden=!1,$.start(1200,50,150),"none"===we.style.display?(bn(),setTimeout(()=>ce.focus(),500)):(g.hidden=!0,setTimeout(()=>we.focus(),500)),m.hidden?f.classList.add("done"):(kn(),Ie()))}function tab_toggled(e){e.checked&&setTimeout(He,100)}function hn(e,t,n){D("title").innerHTML=n+" | رسيت",x("title",n),i.value=e[0]-1,s.value=t[0]-1,Ve(c,Ne(),e[1]),Ve(d,Be(),t[1])}function pn(e,t,n){q.st=e||q.st,q.en=t||q.en,wn("preview"),e=At(e-1),t=At(t-1),n||(o.hash=e.join("/")+"-"+t.join("/")+"&p"),n=rt(...e,...t).replace(/تسميع/g,"عرض"),hn(e,t,oe.innerHTML=n),ge.className="",f.style.textAlign="center",f.append(R),document.onkeyup=null,document.ondblclick=null,Yn("u",()=>{var e=q.st,t=q.en,n=!!U.value;f.style.textAlign="",f.innerHTML="",f.classList.remove("done"),at(),f.innerHTML=Xn(e,t,n).join("")})}function fn(e,t,n){q.st=e||q.st,q.en=t||q.en;var a=V.value,r=O.value,l=u.value,i=(P.checked,l.slice(0,1)),e=(wn(l),At(e-1)),t=At(t-1),n=(n||(o.hash=e.join("/")+"-"+t.join("/")),rt(...e,...t));hn(e,t,oe.innerHTML=n),n=e,e=t,t=a,a=r,K.init(t,a),K.fill(On(n[0]-1,n[1],e[0]-1,e[1])),Y.value&&parent.zz_show(),g.Qall("button").forEach(e=>e.disabled=!0),f.style.textAlign="center",f.append(R),Yn(i,"imla"===l?vn:yn)}document.body.addEventListener("click",e=>{"BUTTON"===e.target.tagName&&("new"===e.target.id?ce.focus():e.target.blur())}),n.onclick=e=>{"true"===n.getAttribute("aria-expanded")?(n.setAttribute("aria-expanded",!1),n.Qall("circle").forEach(e=>e.setAttribute("cx",875==e.getAttribute("cx")?125:45)),n.Qall("text").forEach(e=>je(e)),je(n.Q("line")),n.Q("rect").setAttribute("width",155),setTimeout(()=>n.setAttribute("viewBox","0 0 155 400"),500)):(n.setAttribute("viewBox","0 0 925 400"),n.setAttribute("aria-expanded",!0),n.Qall("circle").forEach(e=>e.setAttribute("cx",e.getAttribute("cx")<50?400:875)),n.Qall("text").forEach(e=>Ce(e)),Ce(n.Q("line")),n.Q("rect").setAttribute("width",925))},document.addEventListener("keyup",e=>{"Escape"===e.key&&(K.play(),!m.hidden)&&y.hidden&&v.focus()});let mn=e=>{e.preventDefault(),e.returnValue=""};function vn(){addEventListener("beforeunload",mn);var e=q.st,t=q.en;function a(){if(y.hidden){l&&(v.value=v.value.replace(/ \u06dd/g," ").replace(/[^ \xA0\nء-غف-\u0652٠-٩\u06DD]+/g,"").replace(/ +(\n)/g,"$1").replace(/(\A|\n| )[ \n]+/g,"$1"),l=!1);var e=v.value.slice(-2);if(" "!==e&&"\n"!==e||(v.value="")," "!==e&&"\n "!==e&&"\n\n"!==e||(v.value=v.value.slice(0,-1))," \n"===e&&(v.value=v.value.slice(0,-2)+"\n"),et(r,v.value)){if(m.classList="",!i)return;("\n"===(e=v.value.slice(-1))||"a"!==re.value&&" "===e)&&u(e),"\n"===e&&K.play(v.value.split("\n").length-2+(n?1:0)),v.value===r&&(v.value=v.value.slice(0,-1),dn(),ze(),v.disabled=!0,m.classList="done",me.focus())}else e=v.value.slice(-1),"a"!==re.value&&(" "===e&&et(r,v.value.slice(0,-1)+"\n")||"\n"===e&&et(r,v.value.slice(0,-1)+" "))?m.classList="spacewrong":m.classList="wrong";v.selectionStart===v.value.length&&requestAnimationFrame(Ie)}}let n=P.checked,r=(v.focus(),j.i.slice(e-1,t).map(e=>e.startsWith("#")?e.replace("#","بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ\n"):e).join("\n")+"\n"),l=!1,i=v.selectionStart===v.value.length,o=(e,t)=>{let n=0,a=e.replace(new RegExp("[^"+t+"]+","g"),"").length;for(let e=0;e<a;++e)n=r.indexOf(t,n)+1;return n},u=e=>{var t,e=o(v.value,e);v.selectionStart===v.value.length?v.value=r.slice(0,e):(t=Xe(v.value.slice(0,v.selectionStart)),t=o(t,t.slice(-1)),v.value=r.slice(0,e),v.selectionStart=v.selectionEnd=t+1)},c=0,s=0;v.onkeydown=e=>{var t=!e.altKey&&!e.ctrlKey;if(t&&"!"===e.key&&window.allow_cheating){e.preventDefault();var n=(new Date).getTime();if(n-s<250)return;if(s=n,10===(c+=1)&&(c=0,et(r,v.value,Ze))){for(u(Xe(v.value).slice(-1));v.value=r.slice(0,v.value.length+1),""===Xe(v.value.slice(-1)););return a(),void Ie()}}else c=0,s=0;t&&1===e.key.length&&(e.preventDefault(),(n=window.emulate&&it[window.emulate]&&it[window.emulate][e.code]?it[window.emulate][e.code][+e.shiftKey]:e.key).match(/^[ \nء-غف-\u0652]$|^ل[اأإآ]$/))&&(lt(v,n),a())},v.oninput=a,v.onpaste=e=>{l=!0},document.onkeyup=null,document.ondblclick=null,n&&K.play(0)}function yn(){function e(a){if(0!==i.length){let e="a"===a?e=>"a"!==e:"j"===a?e=>"a"!==e&&"j"!==e:e=>!1,t,n="";do{var r=i.shift()}while(n+=r,t=Ue(r.slice(-2)),e(t));"a"===t&&(K.next(),K.play()),f.innerHTML+=n,0===i.length&&dn(),ze()}}function t(e){let t=f.innerHTML;if(0!==t.length&&y.hidden){for(var n="a"===e?e=>"a"!==e:"j"===e?e=>"a"!==e&&"j"!==e:e=>!1;0<t.length;){var a=t.match(/(?:^|\t|\n)([^\n\t]+(?:\t|\n))$/)[1],a=(i.unshift(a),t=t.substring(0,t.length-a.length),a.match(/\n$/)&&(K.back(),l)&&K.play(),Ue(t.slice(-2)));if(K.set_index(f.innerHTML.split(/\u06dd/).length-1+P.checked),"a"===a&&K.play(),!n(a))break}f.innerHTML=t,ze()}}let n=q.st,a=q.en,r=!!U.value,l=P.checked,i=(g.Qall("button").forEach(e=>e.disabled=!1),f.style.textAlign="",f.innerHTML="",f.classList.remove("done"),f.focus(),K.set_index(l?0:-1),ge.className="",Xn(n,a,r)),o=()=>e(""),u=()=>e("a"),c=()=>e("j"),s=()=>t(""),d=()=>t("a"),h=()=>t("j");document.onkeyup=function(e){var t=e.target.nodeName,n=e.key,e=e.shiftKey||e.ctrlKey||e.altKey,a="Backspace"===n||"ArrowRight"===n;"INPUT"!==t&&"SELECT"!==t&&"BUTTON"!==t&&(" "===n||"Enter"===n||"ArrowLeft"===n?(e?u:o)():a?(e?d:s)():"0"!==n&&"["!==n||e?"1"!==n&&"]"!==n||e||h():c())},document.ondblclick=e=>{e.target!==f&&e.target!==p||o()},Te.onclick=u,Le.onclick=c,xe.onclick=o,Ke.onclick=s,ke.onclick=h,be.onclick=d,l&&K.play(0)}function gn(){f.hidden=!0,document.onkeyup=null,document.ondblclick=null,ge.className="f",m.hidden=!0,y.hidden=!0}ce.onclick=function(){Ye(Re(),We(),Qe(),Fe())&&fn(M[Re()]+We(),M[Qe()]+Fe())},se.onclick=cn,pe.onclick=cn,fe.onclick=function(){fn(q.st,q.en)};let wn=function(e){ue.hidden=!0,de.hidden=!1,y.hidden=!0,oe.style.display="inline-block",we.style.display=Y.value?"block":"none",ve.style.display=Y.value?"":"none",me.style.display=Y.value?"none":"";var t=document.documentElement;"preview"===e?(fe.innerHTML="ابدأ\nالاختبار",fe.title="ابدأ في تسميع الآيات.",pe.style.display="none",he.classList.remove("b3"),f.hidden=!1,f.innerHTML="",g.hidden=!0,m.hidden=!0,ye.style.color="",t.style.setProperty("--sticky","sticky")):(fe.innerText="إعادة",fe.title="اضغط لإعادة هذا الاختبار من البداية.","none"!==se.style.display?(pe.style.display="",he.classList.add("b3")):pe.style.display="none","imla"===e?(m.style.height=un?"100vh":"95vh",v.value="",v.disabled=!1,m.classList="",m.hidden=!1,f.hidden=!0,g.hidden=!0,ye.style.color="transparent",t.style.setProperty("--sticky",""),v.focus()):(f.hidden=!1,f.innerHTML="",g.hidden=!1,m.hidden=!0,ye.style.color="",t.style.setProperty("--sticky","sticky"))),at(),nt(),ze()},bn=function(){ue.hidden=!1,de.hidden=!0,g.hidden=!0,oe.style.display="none",nt()};function kn(){var e=getComputedStyle,t=(a=parseFloat)(e(ue).height)+a(e(ue.Q("hr")).marginBottom),t=isNaN(t)?a(e(de).height):t,n=a((e=e(y)).height)+a(e.marginTop)+a(e.marginBottom),a=a(e.marginTop),e=(e=visualViewport)?e.height:document.body.clientHeight;m.style.height=e-t-n-.1*a+"px"}me.onclick=function(){y.hidden&&(m.hidden||""!==v.value)&&f.hidden&&!confirm("هل تريد حقا بدء اختبار جديد وترك هذا؟")||(removeEventListener("beforeunload",mn),o.hash="",n.style.display="none",bn(),gn())},we.onclick=()=>{gn(),parent.zz_done()},ve.onclick=()=>{gn(),parent.zz_ignore()},onload=function(){{var e=pt.map((e,t)=>`<option value="${t}">${e}</option>`).join("");i.innerHTML=s.innerHTML=e,$e.innerHTML='<option value="">كل السور</option>'+e,c.innerHTML=d.innerHTML=Pe(L[0]),d.value=L[0],c.value=1,i.value=s.value=0,i.oninput=c.oninput=s.oninput=d.oninput=Oe,i.onblur=c.onblur=s.onblur=d.onblur=Oe,i.onkeyup=c.onkeyup=s.onkeyup=d.onkeyup=sn;let a="",r=0;c.onkeydown=d.onkeydown=e=>{var t,n;e.key.match(/[0-9]/)&&(t=(new Date).getTime(),r=(t-r<500?a+=e.key:a=e.key,t),n=+e.target.lastChild.value,1<=a&&a<=n?e.target.value=a:1<=e.key&&e.key<=n&&(e.target.value=a=e.key,r=t))},N(".search").forEach(e=>e.onclick=({target:n})=>{{var c=(n=(n="SPAN"===n.tagName?n.parentElement:n).previousElementSibling).previousElementSibling.previousElementSibling,s=n;w.value="",b.innerHTML=on,Ee.style.display="block",Ce(Ee),w.focus();let l=!1,e=()=>{l=!1;let e=$e.value,n=""===e?0:M[e],a=""===e?6236:n+L[e],r=w.value.replace(/وا?(?= |$)/g,"U").replace(/[هتة](?= |$)/g,"T").replace(/ا/g,"A").replace(/ى/g,"Y").replace(/ي/g,"I").replace(/و/g,"W").replace(/[آأإ]/g,"a").replace(/ئ/g,"i").replace(/ؤ/g,"w").replace(/ء/g,"x").replace(/U/g,"وا?").replace(/T/g,"[هتة]").replace(/A/g,"[اىأإآ]").replace(/Y/g,"[ايىئأإ]").replace(/I/g,"[يىئ]").replace(/W/g,"[وؤ]").replace(/a/g,"[ا"+ln).replace(/i/g,"[يى"+ln).replace(/w/g,"[و"+ln).replace(/x/g,"["+ln),o=j.p.map((e,t)=>n<=t&&t<a&&e.match(r)?t:-1).filter(e=>-1!==e);if(50<o.length)b.innerHTML="<center>يطابق بحثك "+k(o.length)+" من الآيات، وهو أكثر من ٥٠؛ حاول التحديد أكثر</center>";else if(0===o.length)b.innerHTML="<center>تعذر إيجاد العبارة التي أدخلتها</center>";else{b.innerHTML=`<center>يوجد ${k(o.length)} من الآيات</center>`;let t=C(o.length).map(e=>B("div",{className:"ac"}));t.forEach((e,t)=>{let n=o[t],a=yt(n+1)-1,r=n-M[a]+1,l=k(r),i=pt[a];e.onclick=()=>{c.value=a,Oe({target:c}),s.value=r,Oe({target:s}),rn()},e.append(B("span",{className:"s_a",innerHTML:`سورة ${i} آية ${l}:`}),B("span",{className:"aya",innerHTML:"<span>يحمّل</span>"}))}),b.append(...t,R),Yn("u",()=>{for(let e=0;e<o.length;++e)t[e].Q(".aya").innerText=j.u[o[e]].replace(/[#A-Z<>]+/g,"");b.removeChild(R)})}},i;function d(){clearTimeout(i),i=null,l||b.insertBefore(R,b.firstChild),l=!0,i=setTimeout(t,1e3)}let t=()=>(j.p?e:d)(),o=e=>e.replace(/\s+/g," ").replace(/\u06A9/g,"ك").replace(/\u06CC/g,"ي").replace(/[\u06BE\u06C1]/g,"ه").replace(/[^ء-غف-ي ]/g,""),u="";w.oninput=e=>{var t=w.selectionStart,n=w.value.length,a=w.value[t-1],r=w.value[t],t=(w.value=o(w.value),w.selectionStart=w.selectionEnd=t-(n-w.value.length)+(" "===a&&" "===r?1:0)," "===w.value?"":w.value);u===t?u=t:""===(u=t)?(clearTimeout(i),i=null,l=!1,b.innerHTML=on):d()},w.onkeydown=e=>{e.altKey||e.ctrlKey||1!==e.key.length||(e.preventDefault(),!(e=window.emulate&&it[window.emulate]&&it[window.emulate][e.code]?it[window.emulate][e.code][+e.shiftKey]:e.key).match(/^[ \nء-غف-\u0652]$|^ل[اأإآ]$/))||(lt(w,e),w.oninput())},$e.oninput=()=>{var e=o(w.value);""!==e&&" "!==e&&(clearTimeout(i),i=null,t())},j.p||Yn("i",()=>{j.p=j.i.map(e=>e.replace(/[^ ء-ي\n]/g,"").replace(/^|$/g," "))})}})}N("input, select").forEach(e=>e.onchange&&e.onchange()),e=a("xyz"),t=D("body").innerHTML.match(/github[.]com\/([a-z0-9]+)\//)[1],e.innerHTML=t+String.fromCharCode(64)+"pro"+(""+!0)[0]+"moc.liamno".split("").reverse().join(""),e.href=e.innerHTML.slice(16,20)+"to"+String.fromCharCode(64^"xyz".charCodeAt(2))+e.innerHTML;var[t,e,n]=(e=>{let a,r,l=0,i=0,o,u=e=>e.replace(/^([0-9]+\/+)([0-9]+)--([0-9]+)$/,"$1$2-$1$3");return e.slice(1).split("&").map(e=>e.split("=")).forEach((t,e)=>{t=t.map(u);var n=(...e)=>e.includes(t[0]);n("p")&&null==t[1]||n("v","preview")?o=!0:n("a")?l=isNaN(+t[1])?l:+t[1]:n("b")?i=isNaN(+t[1])?i:+t[1]:n("p")?[a,r]=((e,t)=>{if(null!=e&&(e=+e||1,t=+t||Kt,!(e>Kt||t>Kt)))return[mt[+e-1]+1,mt[+t]]})(..._t(t[1]))||[a,r]:n("s")?[a,r]=((e,t)=>{if(""===t&&(t="114"),Lt(e=""===e?"1":e)&&Lt(t)&&(e=+e||1,t=+t||kt,!(e<1||t<1||e>kt||t>kt)))return[T(e-1)+1,T(t-1)+L[t-1]]})(..._t(t[1]))||[a,r]:n("r")?[a,r]=((e,t)=>{if(null!=e&&(e=Ht(e),t=Ht(t),null!=e)&&null!=t)return[ft[(e||1)-1]+1,ft[t||240]]})(..._t(t[1]))||[a,r]:n("h")?[a,r]=((e,t)=>{if(null!=e){var n,e=zt(e),t=zt(t);if(null!=e&&null!=t)return n=wt/gt,[ft[((e||1)-1)*n]+1,ft[(t||60)*n]]}})(..._t(t[1]))||[a,r]:n("j")?[a,r]=((e,t)=>{var n;if(null!=e&&(e=+e||1,t=+t||_,!(e>_||t>_)))return n=wt/_,[ft[((e||1)-1)*n]+1,ft[(t||_)*n]]})(..._t(t[1]))||[a,r]:n("k")?[a,r]=((e,t)=>{if(null!=e&&(e=qt(e),t=qt(t),null!=e)&&null!=t)return[e[0],t[1]]})(..._t(t[1]))||[a,r]:[a,r]=((e,t)=>{if(e&&(e=Et(e),t=Et(t),null!=e)&&null!=t)return[+e||1,+t||bt]})(..._t(t[0]))||[a,r]}),null==a||null==r?[null,null]:(a-=i,r+=l,a<=0&&(a=1),6236<r&&(r=6236),[a=a>r?r=null:a,r,o])})(o.search+o.hash.replace(/^#/,"&"));null!=t&&null!=e&&(n?pn:fn)(t,e,!0),v.spellcheck=!1,N("details").forEach(t=>{t.addEventListener("toggle",e=>{t.open&&(window.prefers_reduced_motion?t.scrollIntoView({block:"nearest",inline:"nearest"}):t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))})})},v.onfocus=()=>v.scrollIntoView(window.scroll_behavior),window.visualViewport&&window.visualViewport.addEventListener("resize",e=>{m.hidden||(y.hidden?(m.style.height=un?e.target.height+"px":Math.trunc(.95*e.target.height)+"px",v.scrollIntoView()):kn())}),Kn="function"==typeof setImmediate?setImmediate:setTimeout,xn=[4294967295,-(S=4294967296)],Ln=[0,0],Tn=[1,0],"undefined"==typeof onmessage||"undefined"!=typeof window&&void 0!==window.document||(onmessage=function(e){e&&e.W&&2==e.W.action&&Mn.decompress(e.W.W,e.W.cbn)});var Kn,S,xn,Ln,Tn,Mn={decompress:function(e,r,l){var i,n,o,u,c={},t=void 0===r&&void 0===l;if("function"!=typeof r&&(n=r,r=l=0),l=l||function(e){return void 0!==n?void postMessage({action:3,cbn:n,result:o?e:-1}):void 0},r=r||function(e,t){return void 0!==n?postMessage({action:2,cbn:n,result:e,error:t}):void 0},t){for(c.d=zn({},e);Dn(c.d.Q););return Pn(Hn(c.d.S))}try{c.d=zn({},e),u=Vn(c.d.N),o=-1<u,l(0)}catch(e){return r(null,e)}Kn(function e(){try{for(var t,n=0,a=(new Date).getTime();Dn(c.d.Q);)if(++n%1e3==0&&200<(new Date).getTime()-a)return o&&(i=Vn(c.d.Q.h.d)/u,l(i)),Kn(e,0),0;l(1),t=Pn(Hn(c.d.S)),Kn(r.bind(null,t),0)}catch(e){r(null,e)}},0)}};function H(e){var t=[];return t[e-1]=void 0,t}function _n(e,t){return En(e[0]+t[0],e[1]+t[1])}function An(e,t){var n,a;return e[0]==t[0]&&e[1]==t[1]?0:(n=e[1]<0,a=t[1]<0,n&&!a||(n||!a)&&En(e[0]-t[0],e[1]-t[1])[1]<0?-1:1)}function En(e,t){var n,a;for(e%=0x10000000000000000,t=(t%=0x10000000000000000)-(n=t%S)+(a=Math.floor(e/S)*S),e=e-a+n;e<0;)e+=S,t-=S;for(;4294967295<e;)e-=S,t+=S;for(t%=0x10000000000000000;0x7fffffff00000000<t;)t-=0x10000000000000000;for(;t<-0x8000000000000000;)t+=0x10000000000000000;return[e,t]}function $n(e){return 0<=e?[e,0]:[e+S,-S]}function qn(e){return 2147483648<=e[0]?~~Math.max(Math.min(e[0]-S,2147483647),-2147483648):~~Math.max(Math.min(e[0],2147483647),-2147483648)}function Sn(e){return e.cb>=e.O?-1:255&e.ab[e.cb++]}function Hn(e){var t=e.ab;return t.length=e.O,t}function zn(e,t){e.S=((l={}).ab=H(32),l.O=0,l);for(var n,a,r,l=e,i=((r={}).ab=t,r.cb=0,r.O=t.length,r),t=e.S,o="",u=[],c=0;c<5;++c){if(-1==(n=Sn(i)))throw Error("truncated input");u[c]=n<<24>>24}if(!((e,t)=>{var n,a,u,c,r;if(!(t.length<5)){for(u=(r=255&t[0])%9,c=(r=~~(r/9))%5,r=~~(r/5),a=n=0;a<4;++a)n+=(255&t[1+a])<<8*a;return!(99999999<n)&&((e,t)=>{var n,a,r;if(!(8<u||4<c||4<t)){var l=e.k,i=c,o=u;if(null==l.F||l.g!=o||l.y!=i)for(l.y=i,l.Y=(1<<i)-1,l.g=o,l.F=H(a=1<<l.g+l.y),n=0;n<a;++n)l.F[n]=((r={}).v=H(768),r);return Nn(e.C,i=1<<t),Nn(e.o,i),e.P=i-1,1}})(e,r)&&(r=e,!((e=n)<0))&&(r.z!=e&&(r.z=e,r.m=Math.max(r.z,1),e=r.b,r=Math.max(r.m,4096),null!=e.x&&e.c==r||(e.x=H(r)),e.c=r,e.D=0,e.w=0),1)}})(r=(e=>{e.b={},e.a={},e.q=H(192),e.E=H(12),e.s=H(12),e.u=H(12),e.r=H(12),e.n=H(192),e.j=H(4),e.J=H(114),e.t=Wn({},4),e.C=Rn({}),e.o=Rn({}),e.k={};for(var t=0;t<4;++t)e.j[t]=Wn({},6);return e})({}),u))throw Error("corrupted input");for(c=0;c<64;c+=8){if(-1==(n=Sn(i)))throw Error("truncated input");o=(n=1==(n=n.toString(16)).length?"0"+n:n)+""+o}return/^0+$|^f+$/i.test(o)?l.N=xn:(a=parseInt(o,16),l.N=4294967295<a?xn:$n(a)),l.Q=(a=t,t=l.N,(l=r).a.K=i,Cn(l.b),l.b.V=a,(e=>{e.b.w=0,e.b.D=0,I(e.q),I(e.n),I(e.E),I(e.s),I(e.u),I(e.r),I(e.J);for(var t=e.k,n=1<<t.g+t.y,a=0;a<n;++a)I(t.F[a].v);for(var r=0;r<4;++r)I(e.j[r].B);Qn(e.C),Qn(e.o),I(e.t.B);var l=e.a;l.p=0,l.i=-1;for(var i=0;i<5;++i)l.p=l.p<<8|Sn(l.K)})(l),l.f=0,l.l=0,l.T=0,l.R=0,l._=0,l.U=t,l.d=Ln,l.I=0,r=l,(a={}).h=r,a.bb=null,a.X=1,a),e}function In(e){var t=e.D-e.w;if(t){for(var n=e.V,a=e.x,r=e.w,l=n.ab,i=n.O,o=t,u=0;u<o;++u)l[i+u]=a[r+u];n.O+=t,e.c<=e.D&&(e.D=0),e.w=e.D}}function jn(e,t){return(t=e.D-t-1)<0&&(t+=e.c),e.x[t]}function Cn(e){In(e),e.V=null}function Dn(e){if(!e.X)throw Error("bad state");if(e.bb)throw Error("No encoding");var t=e,n=(e=>{var r,t,n=qn(e.d)&e.P;if(z(e.a,e.q,(e.f<<4)+n)){if(z(e.a,e.E,e.f))t=0,z(e.a,e.s,e.f)?(z(e.a,e.u,e.f)?(z(e.a,e.r,e.f)?(o=e._,e._=e.R):o=e.R,e.R=e.T):o=e.T,e.T=e.l,e.l=o):z(e.a,e.n,(e.f<<4)+n)||(e.f=e.f<7?9:11,t=1),t||(t=Bn(e.o,e.a,n)+2,e.f=e.f<7?8:11);else if(e._=e.R,e.R=e.T,e.T=e.l,t=2+Bn(e.C,e.a,n),e.f=e.f<7?7:10,4<=(n=Fn(e.j[o=t,(o-=2)<4?o:3],e.a))){if(e.l=(2|1&n)<<(r=(n>>1)-1),n<14)e.l+=((e,t,n,a)=>{for(var r,l=1,i=0,o=0;o<a;++o)l=(l<<1)+(r=z(n,e,t+l)),i|=r<<o;return i})(e.J,e.l-n-1,e.a,r);else if(e.l+=(e=>{for(var t,n=0,a=r-4;0!=a;--a)e.i>>>=1,e.p-=e.i&(t=e.p-e.i>>>31)-1,n=n<<1|1-t,-16777216&e.i||(e.p=e.p<<8|Sn(e.K),e.i<<=8);return n})(e.a)<<4,e.l+=((e,t)=>{for(var n,a=1,r=0,l=0;e.A>l;++l)a=(a<<1)+(n=z(t,e.B,a)),r|=n<<l;return r})(e.t,e.a),e.l<0)return-1==e.l?1:-1}else e.l=n;if(0<=An($n(e.l),e.d)||e.l>=e.m)return-1;var a=e.b,l=t,i=a.D-e.l-1;for(i<0&&(i+=a.c);0!=l;--l)i>=a.c&&(i=0),a.x[a.D++]=a.x[i++],a.c<=a.D&&In(a);e.d=_n(e.d,$n(t)),e.I=jn(e.b,0)}else{o=e.k,n=qn(e.d),t=o.F[((n&o.Y)<<o.g)+((255&e.I)>>>8-o.g)],e.I=e.f<7?((e,t)=>{for(var n=1;(n=n<<1|z(t,e.v,n))<256;);return n<<24>>24})(t,e.a):((e,t,n)=>{var a,r,l=1;do{if(r=n>>7&1,n<<=1,l=l<<1|(a=z(t,e.v,(1+r<<8)+l)),r!=a){for(;l<256;)l=l<<1|z(t,e.v,l);break}}while(l<256);return l<<24>>24})(t,e.a,jn(e.b,e.l));var n=e.b,o=e.I;n.x[n.D++]=o,n.c<=n.D&&In(n),e.f=(t=e.f)<4?0:t<10?t-3:t-6,e.d=_n(e.d,Tn)}return 0})(t.h);if(-1==n)throw Error("corrupted input");return t.$=xn,t.Z=t.h.d,(n||0<=An(t.h.U,Ln)&&0<=An(t.h.d,t.h.U))&&(In(t.h.b),Cn(t.h.b),t.h.a.K=null,t.X=0),e.X}function Nn(e,t){for(;t>e.e;++e.e)e.G[e.e]=Wn({},3),e.H[e.e]=Wn({},3)}function Bn(e,t,n){return z(t,e.M,0)?8+(z(t,e.M,1)?8+Fn(e.L,t):Fn(e.H[n],t)):Fn(e.G[n],t)}function Rn(e){return e.M=H(2),e.G=H(16),e.H=H(16),e.L=Wn({},8),e.e=0,e}function Qn(e){I(e.M);for(var t=0;e.e>t;++t)I(e.G[t].B),I(e.H[t].B);I(e.L.B)}function Wn(e,t){return e.A=t,e.B=H(1<<t),e}function Fn(e,t){for(var n=1,a=e.A;0!=a;--a)n=(n<<1)+z(t,e.B,n);return n-(1<<e.A)}function z(e,t,n){var a=t[n],r=(e.i>>>11)*a;return(-2147483648^e.p)<(-2147483648^r)?(e.i=r,t[n]=a+(2048-a>>>5)<<16>>16,-16777216&e.i||(e.p=e.p<<8|Sn(e.K),e.i<<=8),0):(e.i-=r,e.p-=r,t[n]=a-(a>>>5)<<16>>16,-16777216&e.i||(e.p=e.p<<8|Sn(e.K),e.i<<=8),1)}function I(e){for(var t=e.length-1;0<=t;--t)e[t]=1024}function Pn(e){for(var t,n,a,r=0,l=0,i=e.length,o=[],u=[];r<i;++r,++l){if(128&(t=255&e[r]))if(192==(224&t)){if(i<=r+1)return e;if(128!=(192&(n=255&e[++r])))return e;u[l]=(31&t)<<6|63&n}else{if(224!=(240&t))return e;if(i<=r+2)return e;if(128!=(192&(n=255&e[++r])))return e;if(128!=(192&(a=255&e[++r])))return e;u[l]=(15&t)<<12|(63&n)<<6|63&a}else{if(!t)return e;u[l]=t}16383==l&&(o.push(String.fromCharCode.apply(String,u)),l=-1)}return 0<l&&(u.length=l,o.push(String.fromCharCode.apply(String,u))),o.join("")}function Vn(e){return e[1]+e[0]}this.LZMA=this.LZMA_WORKER=Mn;let On=(e,n,a,r)=>C(115).slice(+e+1,+a+2).map(t=>C(+L[t-1]+1).slice(t===+e+1?+n:1,t===+a+1?+r+1:300).map(e=>t.toString().padStart(3,"0")+e.toString().padStart(3,"0"))).reduce((e,t)=>(!t[0].match(/001$/)||t[0].match(/^001/)||t[0].match(/^009/)||t.unshift("001001"),e.push(...t),e),[]);var j={};function Un(e,t){fetch(e).then(e=>e.ok?e.arrayBuffer():null).then(e=>{t(LZMA.decompress(new Uint8Array(e)).split("\n").slice(0,-1))})}function Yn(t,n){j[t]?n():Un(`res/${t}.lzma`,e=>{j[t]=e,n()})}function Xn(a,r,l){var e=M[yt(r)];l&&r<e?r+=1:l=!1;let i="بِسۡمِ ٱللَّهِ ٱX<ل>R<رَّ>حۡمَT<ـٰ>نِ ٱX<ل>R<رَّ>حِJ<ی>مِ A<>D<١>".replace(/\xa0.*/,"").replace(/ /g," ");return j.u.slice(a-1,r).map((e,t)=>e.replace(/A/,t+a+"A")).reduce((e,t,n)=>(t.startsWith("#")?(e.push(i+"<br>"),t=t.replace("#","")):t.startsWith("۞ بَ")&&(t="<br>"+t),l&&n===r-a&&(t=t.replace(/([\u06DC\u06D6\u06D7\u06D8\u06DA\u06DB]) .*/,"$1")),e.push(t),e),[]).map(e=>(e.replace(/([A-Z])<([^>]+)>/g,'<span_class="$1">$2</span>').replace(/ /g,"\t<SPC>")+"\n").replace(/_/g," ").replace(/([0-9]+)(<span)/,'$2 onclick="tv($1)"')).reduce((e,t)=>(e.push(...t.split("<SPC>",-1)),e),[])}(o.search+o.hash).split(/[?&#]/).includes("nostats")||(window.goatcounter={path:o.href.replace(/[?#].*/,""),allow_frame:!0},document.body.append(B("script",{Dataset:{goatcounter:"https://recite.goatcounter.com/count"},async:!0,src:"count.js"})))