(function(){ if(window.__phPhone)return;window.__phPhone=1; var W={}; var HOVERLESS=window.matchMedia&&matchMedia('(hover: none)').matches; function vis(e){return e&&e.getClientRects().length&&e.getBoundingClientRect().width>0;} function bgOf(e){for(var a=e;a&&a.nodeType===1;a=a.parentElement){var b=getComputedStyle(a).backgroundColor; if(b&&b!=='transparent'&&!/rgba\([^)]*,\s*0\)$/.test(b))return b;}return '#fff';} function scrolls(e){var o=getComputedStyle(e).overflowX;return o==='auto'||o==='scroll';} function cols(t){var n=0;for(var i=0;in)n=s;}return n;} function roomFor(t){var h=t.parentElement;var r=h.getBoundingClientRect(); var vw=document.documentElement.clientWidth;return Math.min(h.clientWidth||r.width,vw-Math.max(0,r.left)-2);} function needOf(t){return Math.max(t.scrollWidth,Math.ceil(t.getBoundingClientRect().width));} /* THE TABLE FRAME, READ THEN WRITE (job 91, 13 Oct 2026, speed): the first version asked the browser for a computed colour straight after changing the cell before it, once a row, so a table of 300 rows made the phone restyle the whole page 300 times (measured: 4.4 s of style work on /rent-record-monthly-2026-08/ at a phone's speed). The same frames, pins and colours are made in phases: every decision read first, every change written after, every colour read after the changes it depends on and before any colour is written. Nothing a reader sees differs. */ function frame(t){ var f=document.createElement('div');f.className='ph-tf'; var n=cols(t);f.setAttribute('data-cols',n); var box=document.createElement('div');box.className='ph-tfb'; var s=document.createElement('div');s.className='ph-tfs'; t.parentNode.insertBefore(f,t);f.appendChild(box);box.appendChild(s);s.appendChild(t); var o={t:t,f:f,s:s,cells:[]}; for(var i=0;i1&&[].every.call(t.rows[0].cells,function(c){return c.tagName==='TH';})){rows=[t.rows[0]];hr=t.rows[0];} if(!rows.length)return null; var L=[],H=[]; rows.forEach(function(r){var c=0;[].forEach.call(r.cells,function(x){var s=x.colSpan||1,v=txt(x); for(var k=0;k1){r.classList.add('ph-sep');return;} var c=0;for(var i=0;i0){fill[c]=(fill[c]||0)+1;if(NUM.test(v))num[c]=(num[c]||0)+1;else if(!STANDIN.test(v))word[c]=1;} x.__c=c;c+=x.colSpan||1;}}); /* a FIGURE COLUMN: most filled cells are figures, or it holds figures and every other filled cell is a lower-case STAND-IN the builders write in a figure's place ("none", "fewer than eight", "nothing registered"); a column made only of stand-ins stands where figures would and aligns with them. A word column ("count only", a date, a name) is never one. */ function fig(c){return c>0&&fill[c]&&((num[c]||0)>=0.6*fill[c]||!word[c]);} body.forEach(function(r){[].forEach.call(r.cells,function(x,i){if(i>0&&fig(x.__c)&&!x.classList.contains('ph-e'))x.classList.add('ph-n');});}); h.H.forEach(function(x,c){if(x&&fig(c))x.classList.add('ph-n');}); if(h.hr)h.hr.classList.add('ph-hr'); t.classList.add('ph-dt'); } function limitOf(t){var vw=document.documentElement.clientWidth,R=vw,p=t.parentElement; if(p){var pb=p.getBoundingClientRect(),ps=getComputedStyle(p);R=Math.min(R,pb.right-(parseFloat(ps.paddingRight)||0)-(parseFloat(ps.borderRightWidth)||0));} for(var a=p;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){ if(getComputedStyle(a).overflowX!=='visible'){var b=a.getBoundingClientRect();R=Math.min(R,b.right);}} return R;} function over(t){var r=t.getBoundingClientRect();return r.right>limitOf(t)+1||t.scrollWidth>Math.ceil(r.width)+1;} /* RULING 115 (15 Oct 2026): a LIST PAGE keeps two columns on a phone, the name and one figure, so it stays inside the twelve-screens ruling; a figure table is still cards. A list is labelled by the page's own address (a district's `-lines` index) and by its own rows (every body row's first cell opens a page). */ function isList(t){if(!/-lines\/?$/.test(location.pathname))return false; var b=t.tBodies[0],R=b?[].filter.call(b.rows,function(r){return !r.classList.contains('ph-hr');}):[]; return R.length>=8&&R.every(function(r){return r.cells[0]&&r.cells[0].querySelector('a[href]');});} function fit(D){ D.forEach(function(t){t.classList.remove('ph-wrap');t.classList.remove('ph-cards');t.classList.remove('ph-list');}); if(document.documentElement.clientWidth<=600){D.forEach(function(t){t.classList.add(isList(t)?'ph-list':'ph-cards');});return;} var o1=D.filter(function(t){return vis(t)&&over(t);}); o1.forEach(function(t){t.classList.add('ph-wrap');}); var o2=o1.filter(over); o2.forEach(function(t){t.classList.add('ph-cards');}); } function tables(){ var ts=document.querySelectorAll('table'),D=[],want=[],i; for(i=0;i1){mark(t,h);D.push(t);continue;} if(!vis(t))continue; if(needOf(t)>roomFor(t)+1)want.push(t);} fit(D); if(!want.length)return; var F=want.map(frame); F.forEach(function(o){o.bg=bgOf(o.t);o.cb=o.cells.map(function(c){return clear(getComputedStyle(c).backgroundColor)?bgOf(c.parentElement):null;});}); F.forEach(function(o){o.f.style.setProperty('--ph-fade',o.bg);o.cells.forEach(function(c,k){if(o.cb[k])c.style.backgroundColor=o.cb[k];});}); F.forEach(function(o){o.sc=scrolls(o.t)&&o.t.scrollWidth>o.t.clientWidth+1?o.t:o.s;}); F.forEach(function(o){var sc=o.sc,f=o.f; o.edge=function(){var more=sc.scrollLeft+sc.clientWidth0?lab.slice(0,i):lab;var m=/[0-9][0-9,]*/.exec(i>0?lab.slice(i):''); var r=document.createElement('a');r.className='fd-krow';r.href=a.getAttribute('href'); var t=a.querySelector('title');if(t)r.title=t.textContent; var n=document.createElement('span');n.className='fd-knum';n.textContent=rank(a)||''; var nm=document.createElement('span');nm.className='fd-kn';nm.textContent=name; var c=document.createElement('span');c.className='fd-kc';c.textContent=m?m[0]:''; r.appendChild(n);r.appendChild(nm);r.appendChild(c);k.appendChild(r);}); var box=svg.closest('.fd-mapbox')||svg;box.parentNode.insertBefore(k,box.nextSibling);return k; } function maps(){ var ss=document.querySelectorAll('svg.fd-mapsvg'); for(var i=0;i=0;j--){var v=ns[j].nodeValue,m=/\s+(\S+\s*)$/.exec(v); if(m&&/\S/.test(v.slice(0,m.index))){ns[j].nodeValue=(v.slice(0,m.index)+' '+m[1]).replace(/(\S)-(?=[^\s-]* \S+\s*$)/,'$1‑');break;} if(m&&j===0)break; var p=/\s+$/.exec(v);if(p&&j=n.scrollWidth-2);} if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run(); window.addEventListener('load',run); var T=null;function soon(){if(T)clearTimeout(T);T=setTimeout(run,250);} window.addEventListener('resize',soon);document.addEventListener('toggle',soon,true); if(window.MutationObserver){new MutationObserver(function(ms){for(var i=0;i.dd-story'); if(st&&(st.compareDocumentPosition(h)&4))return h; for(var n=h.nextElementSibling;n;n=n.nextElementSibling){if(n.classList.contains('dd-share')||/^(STYLE|SCRIPT|TEMPLATE)$/.test(n.tagName))continue; return n.matches(DECK)?n:h;}return null;} function put(h,done){if(FOOT){top=h;return true;}var an=anchorOf(h);if(!an){if(!done)return false;an=h;} var r=document.querySelector('.dd-share:not(.dd-share-foot)'); if(r&&r.previousElementSibling===an){top=h;return true;}if(r)r.parentNode.removeChild(r);top=h;an.parentNode.insertBefore(row('top'),an.nextSibling);return true;} function place(done){var C=document.querySelector('main .dd-content,main .gh-content'); if(top&&!done){var inner=C&&C.querySelector('h1');if(inner&&inner!==top&&vis(inner)){put(inner);if(mo)mo.disconnect();}return;} var h=pick(done);if(!h)return;if(!put(h,done))return;if(mo&&((C&&C.contains(h))||h.classList.contains('gh-article-title')))mo.disconnect();} function moved(rs){for(var i=0;i"']/g,function(c){return'&#'+c.charCodeAt(0)+';'})}var H=document.documentElement;function nw(){H.classList.add('has-shr');H.classList.add('shr-new');if(!document.getElementById('shr-box-hide')){var s=document.createElement('style');s.id='shr-box-hide';s.textContent=BH;document.head.appendChild(s)}}function box(){if(H.classList.contains('shr-new')||!document.querySelector(BX))return false;H.classList.add('has-shr');return true}function run(){go();if(H.classList.contains('shr-new')||box())return;var t0=Date.now(),mo=new MutationObserver(function(){if(H.classList.contains('shr-new')||box()||Date.now()-t0>20000)mo.disconnect()});mo.observe(H,{childList:true,subtree:true})}function go(){if(RE)H.classList.add('shr-only');if(document.querySelector('.shr[data-shr]:not('+BX+')')){nw();return}var p=location.pathname;for(var i=0;i'+E(W.label)+''+''+''+E(W.whatsapp)+''+''+E(W.email)+''+'';a.insertAdjacentElement('afterend',d);nw();return}}if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); ; (function(){ if(window.__ddfx)return;window.__ddfx=1; var R={"per": {"GBP": 0.20789030644384815, "USD": 0.27229407760381213, "EUR": 0.24837551546457368, "INR": 25.30126863382973, "RUB": 22.3734, "SAR": 1.0211027910142956, "CNY": 1.8147060286388148}, "ecb": "2026-11-24", "cbr": "2026-11-25", "note": "Translations at the European Central Bank's reference rates of 24 November 2026; the rouble at the Bank of Russia's rate; the dollar and riyal at their pegs. The register is in dirhams.", "ecbShort": "24 November", "cbrShort": "25 November"},CH=["AED", "GBP", "USD", "EUR", "INR", "RUB", "SAR", "CNY"],SKIP=new RegExp("^\\/before-you-pay-|^\\/build-your-letter\\/|^\\/(ghost|p|email)\\/"),NOT=".dd-till,.yt-till,[data-till],.dd-tick,[data-block^=\"dd-ticker\"],.ddtape,.dd-share,form,.op,nav,header,footer",LAB="Show in",STALE=10; var CE="(about {c} {v} at the European Central Bank's rate of {d})",CC="(about {c} {v} at the Bank of Russia's rate of {d})",CP="(about {c} {v} at the peg)"; if(!R||SKIP.test(location.pathname))return; if((Date.now()-Date.parse(R.ecb+'T12:00:00Z'))/864e5>STALE)return; var cur='AED';try{var k=localStorage.getItem('dd-ccy');if(k&&R.per[k])cur=k;}catch(e){} var RX=/AED\s?([\d,]+(?:\.\d+)?)\s*(bn|billion|million|m|k)?(?![\w])/gi; var RANGE=/\d\s*[km]?\s*(?:to|–|-)\s*(?:AED\s?)?\d/i; function aed(t){var m=(t||'').match(RX);if(!m||m.length!==1||RANGE.test(t))return null;RX.lastIndex=0;var x=RX.exec(t);RX.lastIndex=0; var v=parseFloat(x[1].replace(/,/g,'')),u=(x[2]||'').toLowerCase();if(u==='m'||u==='million')v*=1e6;else if(u==='k')v*=1e3;else if(u==='bn'||u==='billion')v*=1e9;return v>0?v:null;} function sig2(v){if(v<=0)return 0;var e=Math.floor(Math.log10(v))-1;return Math.round(v/Math.pow(10,e))*Math.pow(10,e);} function grp(n){return String(Math.trunc(n)).replace(/\B(?=(\d{3})+(?!\d))/g,',');} function one(x){var s=(Math.round(x*10)/10).toFixed(1);return s.slice(-2)==='.0'?s.slice(0,-2):s;} function fmt(v){v=sig2(v);if(v>=1e9)return one(v/1e9)+' billion';if(v>=1e6)return one(v/1e6)+' million';return grp(v);} function free(el){return !el.closest(NOT);} function clause(c,v){var f=fmt(v*R.per[c]);if(c==='USD'||c==='SAR')return CP.replace('{c}',c).replace('{v}',f); if(c==='RUB')return CC.replace('{c}',c).replace('{v}',f).replace('{d}',R.cbrShort);return CE.replace('{c}',c).replace('{v}',f).replace('{d}',R.ecbShort);} function has(n){return n.hasAttribute('data-fx-aed')||aed(n.textContent);} function subjects(){var out=[]; document.querySelectorAll('.figs .fig .n,.tiles>div>b').forEach(function(n){if(free(n)&&has(n))out.push(n);}); document.querySelectorAll('table').forEach(function(t){if(!free(t))return;var hs=t.querySelectorAll('thead th');if(!hs.length)return;var cols=[]; hs.forEach(function(h,i){var w=(h.textContent||'').trim();if(/^(middle|median)\b/i.test(w)||/^AED\/sq ?ft$/i.test(w))cols.push(i);});if(!cols.length)return; t.querySelectorAll('tbody tr').forEach(function(r){var cs=r.children;cols.forEach(function(i){var c=cs[i];if(c&&has(c))out.push(c);});});}); return out.sort(function(a,b){return a.compareDocumentPosition(b)&4?-1:1;});} function answers(){var a=[];document.querySelectorAll('p.dd-answer').forEach(function(p){if(free(p)&&p.offsetParent!==null)a.push(p);});return a;} function paint(){ subjects().forEach(function(n){var v=n.getAttribute('data-fx-aed');if(!v){v=aed(n.textContent);if(!v)return;n.setAttribute('data-fx-aed',v);} var sec=n.querySelector('.dd-fx2');if(cur==='AED'){if(sec)sec.remove();return;} var txt='about '+cur+' '+fmt(v*R.per[cur]);if(!sec){sec=document.createElement('i');sec.className='dd-fx2';n.appendChild(sec);}sec.textContent=txt;}); answers().forEach(function(p){var old=p.querySelector('.dd-fxc');if(old)old.remove();if(cur==='AED')return; var w=document.createTreeWalker(p,NodeFilter.SHOW_TEXT,null),t;while((t=w.nextNode())){RX.lastIndex=0;var x=RX.exec(t.nodeValue);RX.lastIndex=0;if(!x)continue; var v=aed(x[0]);if(!v)continue;var end=x.index+x[0].length,rest=t.splitText(end),s=document.createElement('span');s.className='dd-fxc'; s.textContent=' '+clause(cur,v);rest.parentNode.insertBefore(s,rest);break;}});} function row(){var d=document.createElement('div');d.className='dd-fx';d.setAttribute('role','group');d.setAttribute('aria-label','Show prices in'); var l=document.createElement('span');l.className='lab';l.textContent=LAB;d.appendChild(l); CH.forEach(function(c){var b=document.createElement('button');b.type='button';b.textContent=c;b.setAttribute('data-c',c); b.title=c==='AED'?'Dirhams only, as the register records them':'Show each figure in '+c+' as well, under the dirham figure'; if(c===cur)b.className='on';b.setAttribute('aria-pressed',c===cur?'true':'false'); b.addEventListener('click',function(){cur=c;try{localStorage.setItem('dd-ccy',c);}catch(e){} document.querySelectorAll('.dd-fx button').forEach(function(x){var on=x.getAttribute('data-c')===cur;x.className=on?'on':'';x.setAttribute('aria-pressed',on?'true':'false');});paint();});d.appendChild(b);}); var n=document.createElement('div');n.className='dd-fxnote';n.textContent=R.note;return [d,n];} function mount(){ var subs=subjects(),ans=answers().filter(function(p){return aed(p.textContent)!==null||subs.length;}); if(!subs.length&&!ans.some(function(p){return aed(p.textContent);}))return; if(!document.querySelector('.dd-fx')){var at=ans[0],r=row(); if(at){at.parentNode.insertBefore(r[1],at.nextSibling);at.parentNode.insertBefore(r[0],r[1]);} else{var s=subs[0],box=s.closest('table')||s.closest('.figs')||s.closest('.tiles')||s;var wrap=box.closest('.tablewrap')||box; wrap.parentNode.insertBefore(r[0],wrap);wrap.parentNode.insertBefore(r[1],wrap);}} paint();} var q=0;function soon(){if(q)return;q=setTimeout(function(){q=0;mo.disconnect();mount();mo.observe(document.body,{childList:true,subtree:true});},60);} var mo=new MutationObserver(function(ms){for(var i=0;i