(function(){"use strict";const y={3:{unifier:"­",0:"᠎",1:"​",2:"‍"},6:{unifier:"‌",0:"‍",1:"‏",2:"­",3:"⁠",4:"​",5:"‎"},8:{unifier:"‌",0:"‍",1:"‏",2:"­",3:"⁠",4:"​",5:"‎",6:"᠎",7:"\uFEFF"},encodeString:(o,e=3)=>Array.from(o,l=>l.codePointAt(0).toString(e).split("").map(b=>y[e][b]).join("")).join(y[e].unifier),encodeNumberArray:(o,e=3)=>o.map(l=>l.toString(e).split("").map(b=>y[e][b]).join("")).join(y[e].unifier),decodeToString:(o,e=3)=>o.split(y[e].unifier).map(l=>String.fromCodePoint(parseInt(Array.from(l).map(b=>Object.keys(y[e]).find(d=>y[e][d]===b)).join(""),e))).join(""),decodeToNumberArray:(o,e=3)=>o.split(y[e].unifier).map(l=>parseInt(Array.from(l).map(b=>Object.keys(y[e]).find(d=>y[e][d]===b)).join(""),e))};function V(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var D,P;function Y(){if(P)return D;P=1;function o(e={}){const l=e.bits||16,b=e.rounds||22,d=e.rightRotations||7,p=e.leftRotations||2,c=2**l,s=c-1,i=(a,n)=>a>>n|a<a<>l-n,m=(a,n,t)=>(a=i(a,d),a=a+n&s,a^=t,n=h(n,p),n^=a,[a,n]),E=(a,n,t)=>(n^=a,n=i(n,p),a^=t,a=a-n&s,a=h(a,d),[a,n]);function I(a,n){let t=a[0],u=a[1],r=n[0],g=n.slice(1);[u,t]=m(u,t,r);for(let w=0;w{const u=a([n/c|0,n&s],t);return u[0]*c+u[1]}}return{encrypt:f(I),decrypt:f(A),encryptRaw:I,decryptRaw:A}}return D=o,D}var J=Y();const v=V(J);var U,H;function L(){if(H)return U;H=1;const o="Input must be an string, Buffer or Uint8Array";function e(c){let s;if(c instanceof Uint8Array)s=c;else if(typeof c=="string")s=new TextEncoder().encode(c);else throw new Error(o);return s}function l(c){return Array.prototype.map.call(c,function(s){return(s<16?"0":"")+s.toString(16)}).join("")}function b(c){return(4294967296+c).toString(16).substring(1)}function d(c,s,i){let h=` `+c+" = ";for(let m=0;m=4294967296&&w++,t[u]=g,t[u+1]=w}function l(t,u,r,g){let w=t[u]+r;r<0&&(w+=4294967296);let k=t[u+1]+g;w>=4294967296&&k++,t[u]=w,t[u+1]=k}function b(t,u){return t[u]^t[u+1]<<8^t[u+2]<<16^t[u+3]<<24}function d(t,u,r,g,w,k){const de=h[w],pe=h[w+1],be=h[k],he=h[k+1];e(i,t,u),l(i,t,de,pe);let S=i[g]^i[t],T=i[g+1]^i[t+1];i[g]=T,i[g+1]=S,e(i,r,g),S=i[u]^i[r],T=i[u+1]^i[r+1],i[u]=S>>>24^T<<8,i[u+1]=T>>>24^S<<8,e(i,t,u),l(i,t,be,he),S=i[g]^i[t],T=i[g+1]^i[t+1],i[g]=S>>>16^T<<16,i[g+1]=T>>>16^S<<16,e(i,r,g),S=i[u]^i[r],T=i[u+1]^i[r+1],i[u]=T>>>31^S<<1,i[u+1]=S>>>31^T<<1}const p=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],s=new Uint8Array(c.map(function(t){return t*2})),i=new Uint32Array(32),h=new Uint32Array(32);function m(t,u){let r=0;for(r=0;r<16;r++)i[r]=t.h[r],i[r+16]=p[r];for(i[24]=i[24]^t.t,i[25]=i[25]^t.t/4294967296,u&&(i[28]=~i[28],i[29]=~i[29]),r=0;r<32;r++)h[r]=b(t.b,4*r);for(r=0;r<12;r++)d(0,8,16,24,s[r*16+0],s[r*16+1]),d(2,10,18,26,s[r*16+2],s[r*16+3]),d(4,12,20,28,s[r*16+4],s[r*16+5]),d(6,14,22,30,s[r*16+6],s[r*16+7]),d(0,10,20,30,s[r*16+8],s[r*16+9]),d(2,12,22,24,s[r*16+10],s[r*16+11]),d(4,14,16,26,s[r*16+12],s[r*16+13]),d(6,8,18,28,s[r*16+14],s[r*16+15]);for(r=0;r<16;r++)t.h[r]=t.h[r]^i[r]^i[r+16]}const E=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function I(t,u,r,g){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(u&&u.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&r.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(g&&g.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const w={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};E.fill(0),E[0]=t,u&&(E[1]=u.length),E[2]=1,E[3]=1,r&&E.set(r,32),g&&E.set(g,48);for(let k=0;k<16;k++)w.h[k]=p[k]^b(E,k*4);return u&&(A(w,u),w.c=128),w}function A(t,u){for(let r=0;r>2]>>8*(r&3);return u}function a(t,u,r,g,w){r=r||64,t=o.normalizeInput(t),g&&(g=o.normalizeInput(g)),w&&(w=o.normalizeInput(w));const k=I(r,u,g,w);return A(k,t),f(k)}function n(t,u,r,g,w){const k=a(t,u,r,g,w);return o.toHex(k)}return B={blake2b:a,blake2bHex:n,blake2bInit:I,blake2bUpdate:A,blake2bFinal:f},B}var N,z;function Z(){if(z)return N;z=1;const o=L();function e(f,a){return f[a]^f[a+1]<<8^f[a+2]<<16^f[a+3]<<24}function l(f,a,n,t,u,r){c[f]=c[f]+c[a]+u,c[t]=b(c[t]^c[f],16),c[n]=c[n]+c[t],c[a]=b(c[a]^c[n],12),c[f]=c[f]+c[a]+r,c[t]=b(c[t]^c[f],8),c[n]=c[n]+c[t],c[a]=b(c[a]^c[n],7)}function b(f,a){return f>>>a^f<<32-a}const d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),p=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=new Uint32Array(16),s=new Uint32Array(16);function i(f,a){let n=0;for(n=0;n<8;n++)c[n]=f.h[n],c[n+8]=d[n];for(c[12]^=f.t,c[13]^=f.t/4294967296,a&&(c[14]=~c[14]),n=0;n<16;n++)s[n]=e(f.b,4*n);for(n=0;n<10;n++)l(0,4,8,12,s[p[n*16+0]],s[p[n*16+1]]),l(1,5,9,13,s[p[n*16+2]],s[p[n*16+3]]),l(2,6,10,14,s[p[n*16+4]],s[p[n*16+5]]),l(3,7,11,15,s[p[n*16+6]],s[p[n*16+7]]),l(0,5,10,15,s[p[n*16+8]],s[p[n*16+9]]),l(1,6,11,12,s[p[n*16+10]],s[p[n*16+11]]),l(2,7,8,13,s[p[n*16+12]],s[p[n*16+13]]),l(3,4,9,14,s[p[n*16+14]],s[p[n*16+15]]);for(n=0;n<8;n++)f.h[n]^=c[n]^c[n+8]}function h(f,a){if(!(f>0&&f<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=a?a.length:0;if(a&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(d),b:new Uint8Array(64),c:0,t:0,outlen:f};return t.h[0]^=16842752^n<<8^f,n>0&&(m(t,a),t.c=64),t}function m(f,a){for(let n=0;n>2]>>8*(n&3)&255;return a}function I(f,a,n){n=n||32,f=o.normalizeInput(f);const t=h(n,a);return m(t,f),E(t)}function A(f,a,n){const t=I(f,a,n);return o.toHex(t)}return N={blake2s:I,blake2sHex:A,blake2sInit:h,blake2sUpdate:m,blake2sFinal:E},N}var _,G;function ee(){if(G)return _;G=1;const o=Q(),e=Z();return _={blake2b:o.blake2b,blake2bHex:o.blake2bHex,blake2bInit:o.blake2bInit,blake2bUpdate:o.blake2bUpdate,blake2bFinal:o.blake2bFinal,blake2s:e.blake2s,blake2sHex:e.blake2sHex,blake2sInit:e.blake2sInit,blake2sUpdate:e.blake2sUpdate,blake2sFinal:e.blake2sFinal},_}var q=ee();const te=v({bits:24,rounds:23,rightRotations:8,leftRotations:3});function ne(o){const e=q.blake2bHex(o,null,12);return[parseInt(e.slice(0,6),16),parseInt(e.slice(6,12),16),parseInt(e.slice(12,18),16),parseInt(e.slice(18,24),16)]}function re(o,e){if(!o||o.length===0)return"";const l=o[0];return o.slice(1).map((d,p)=>{const c=l*16777216+(p&16777215),s=te.encrypt(c,e),i=(d^s)>>>0;try{return String.fromCodePoint(i)}catch{return""}}).join("")}const oe=v();function ie(o){const e=q.blake2bHex(o,null,8);return[parseInt(e.slice(0,4),16),parseInt(e.slice(4,8),16),parseInt(e.slice(8,12),16),parseInt(e.slice(12,16),16)]}function se(o,e){return o.map(l=>{try{return String.fromCodePoint(oe.decrypt(l,e))}catch{return""}}).join("")}const K="‍​­",C={3:"‍​­᠎‍",6:"‍​­‌‍",8:"‍​­‌‌"},X={1:"SPECK48_96CTR",2:"SPECK32_64ECB (insecure)"};Object.fromEntries(Object.entries(X).map(([o,e])=>[e,+o]));function ce(o){if(!o.includes(K))return null;const e=Object.keys(C).find(p=>o.includes(C[p]));if(!e)return null;const l=o.indexOf(C[e]),b=o.slice(l+C[e].length),d=y[e].unifier+y[e][0];if(b.startsWith(d)){const c=Array.from(b.slice(d.length,d.length+3)).map(m=>Object.keys(y[e]).find(E=>y[e][E]===m)).join(""),s=X[parseInt(c,e)],i=b.slice(d.length+3),h=C[e].length+d.length+3;return{base:e,cipher:s,payload:i,sigIdx:l,sigLen:h}}return{base:e,cipher:"PLAIN",payload:b,sigIdx:l,sigLen:C[e].length}}function ae(o,e,l){const b=new Set(Object.values(y[e]));let d=l;for(;dfe(i,e),F(i)}function F(o){const{wrap:e,node:l,start:b,end:d}=o;if(!l.isConnected){e.remove(),x.delete(o);return}const p=document.createRange();try{p.setStart(l,b),p.setEnd(l,Math.min(d,l.nodeValue.length))}catch{e.remove(),x.delete(o);return}let c=p.getBoundingClientRect();!c.width&&!c.height&&l.parentElement&&(c=l.parentElement.getBoundingClientRect());const s=c.left+window.scrollX+(c.width||0)/2,i=c.top+window.scrollY;e.style.left=`${s-e.offsetWidth/2}px`,e.style.top=`${i-e.offsetHeight-2}px`}function fe(o,e){const{wrap:l,node:b,start:d,end:p}=o,c=b.nodeValue.slice(d+e.sigLen,p);let s="";if(e.cipher==="PLAIN")try{s=y.decodeToString(c,e.base)}catch(i){console.error(i)}else{const i=prompt(`inØsight: enter password (${e.cipher}):`);if(!i)return;try{const h=y.decodeToNumberArray(c,e.base);e.cipher==="SPECK48_96CTR"?s=re(h,ne(i)):e.cipher==="SPECK32_64ECB (insecure)"&&(s=se(h,ie(i)))}catch(h){console.error(h)}if(!s){alert("Decryption failed.");return}}if(s){const i=document.createRange();i.setStart(b,d),i.setEnd(b,p),i.deleteContents();const h=document.createElement("span");h.className="inzerosight-decoded",h.style.color="#00b4d8",h.style.fontWeight="600",h.textContent=` ${s} `,i.insertNode(h),l.remove(),x.delete(o)}}const W=new WeakSet;function O(o){if(!o||o.nodeType!==Node.TEXT_NODE||W.has(o))return;const e=o.nodeValue;if(!e||!e.includes(K))return;W.add(o);let l=0;for(;l{var p;return e[(p=d.parentElement)==null?void 0:p.tagName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});let b;for(;b=l.nextNode();)O(b)}$(document.body),new MutationObserver(o=>{for(const e of o)if(e.type==="characterData")O(e.target);else for(const l of e.addedNodes)l.nodeType===Node.TEXT_NODE?O(l):l.nodeType===Node.ELEMENT_NODE&&l.id!=="in0-host"&&$(l)}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0}),window.addEventListener("scroll",()=>x.forEach(F),{passive:!0}),window.addEventListener("resize",()=>x.forEach(F),{passive:!0})})();