// @formatter:off const MD5 = function(d){var r = M(V(Y(X(d),8*d.length)));return r.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n>16)+(_>>16)+(m>>16)<<16|65535&m}function bit_rol(d,_){return d<<_|d>>>32-_} function findParentAttribute(el, attrName) { if (el.attributes[attrName]) return el.attributes[attrName] if (!el.parentNode || !el.parentNode.attributes) return null return findParentAttribute(el.parentNode, attrName) } function copyApiKey(event) { const el = document.getElementById('api-key-container') el.select() el.setSelectionRange(0, 9999) document.execCommand('copy') event.stopPropagation() } window.addEventListener('load', () => { const baseUrl = location.href.substring(0, location.href.lastIndexOf('/')) document.querySelectorAll('.with-url-src').forEach(e => { e.setAttribute('src', e.getAttribute('src').replace('%s', baseUrl)) }) document.querySelectorAll('.with-url-src-no-scheme').forEach(e => { const strippedUrl = baseUrl.replace(/https?:\/\//, '') e.setAttribute('src', e.getAttribute('src').replace('%s', strippedUrl)) }) document.querySelectorAll('.with-url-value').forEach(e => { e.setAttribute('value', e.getAttribute('value').replace('%s', baseUrl)) }) document.querySelectorAll('.with-url-inner').forEach(e => { e.innerHTML = e.innerHTML.replace('%s', baseUrl) }) document.querySelectorAll('.with-url-inner-no-scheme').forEach(e => { const strippedUrl = baseUrl.replace(/https?:\/\//, '') e.innerHTML = e.innerHTML.replace('%s', strippedUrl) }) })