diff --git a/content.js b/content.js index 08d69cb..63f692b 100644 --- a/content.js +++ b/content.js @@ -69,7 +69,7 @@ function initShadow() { (document.body || document.documentElement).appendChild(host); } -function createOverlay(node, parsed, start, end) { +function createOverlay(node, parsed, start, endNode, end) { for (const e of active) if (e.node === node && e.start === start) return; initShadow(); const wrap = document.createElement('div'); @@ -91,7 +91,7 @@ function createOverlay(node, parsed, start, end) { wrap.appendChild(arrow); shadow.appendChild(wrap); - const entry = { wrap, node, start, end }; + const entry = { wrap, node, start, endNode, end }; active.add(entry); btn.onclick = () => onAction(entry, parsed); @@ -99,8 +99,8 @@ function createOverlay(node, parsed, start, end) { } function updatePos(entry) { - const { wrap, node, start, end } = entry; - if (!node.isConnected) { + const { wrap, node, start, endNode, end } = entry; + if (!node.isConnected || !endNode.isConnected) { wrap.remove(); active.delete(entry); return; @@ -114,7 +114,7 @@ function updatePos(entry) { const r = document.createRange(); try { r.setStart(node, start); - r.setEnd(node, Math.min(end, node.nodeValue.length)); + r.setEnd(endNode, Math.min(end, endNode.nodeValue.length)); } catch { wrap.remove(); active.delete(entry); @@ -155,8 +155,11 @@ function updatePos(entry) { } function onAction(entry, parsed) { - const { wrap, node, start, end } = entry; - const rawPayload = node.nodeValue.slice(start + parsed.sigLen, end); + const { wrap, node, start, endNode, end } = entry; + const r = document.createRange(); + r.setStart(node, start); + r.setEnd(endNode, end); + const rawPayload = r.toString().slice(parsed.sigLen); let decoded = ''; if (parsed.cipher === 'PLAIN') { @@ -184,9 +187,6 @@ function onAction(entry, parsed) { } if (decoded) { - const r = document.createRange(); - r.setStart(node, start); - r.setEnd(node, end); r.deleteContents(); const span = document.createElement('span'); span.className = 'inzerosight-decoded'; @@ -199,6 +199,27 @@ function onAction(entry, parsed) { } } +function getPayloadRange(node, base, start) { + let endNode = node; + let end = getPayloadEnd(node.nodeValue, base, start); + + // Gmail inserts elements into long zero-width runs, splitting one payload across text nodes. + while (end === endNode.nodeValue.length) { + let next = endNode.nextSibling; + let hasWbr = false; + while (next?.nodeType === Node.ELEMENT_NODE && next.tagName === 'WBR') { + hasWbr = true; + next = next.nextSibling; + } + if (!hasWbr || next?.nodeType !== Node.TEXT_NODE) break; + const nextEnd = getPayloadEnd(next.nodeValue, base, 0); + if (!nextEnd) break; + endNode = next; + end = nextEnd; + } + return { endNode, end }; +} + function scanNode(node) { if (!node || node.nodeType !== Node.TEXT_NODE) return; const val = node.nodeValue; @@ -210,9 +231,9 @@ function scanNode(node) { const p = parseSig(sub); if (!p) break; const start = idx + p.sigIdx; - const end = getPayloadEnd(val, p.base, start + p.sigLen); - createOverlay(node, p, start, end); - idx = end + 1; + const { endNode, end } = getPayloadRange(node, p.base, start + p.sigLen); + createOverlay(node, p, start, endNode, end); + idx = endNode === node ? end + 1 : val.length; } } @@ -239,7 +260,7 @@ function scheduleUpdate() { const obs = new MutationObserver(muts => { for (const e of [...active]) { - if (!e.node.isConnected || !e.node.nodeValue?.includes(SIG_PREFIX)) { + if (!e.node.isConnected || !e.node.nodeValue?.startsWith(SIG_PREFIX, e.start)) { e.wrap.remove(); active.delete(e); } diff --git a/dist/chrome/content.js b/dist/chrome/content.js index 096fbc0..843b15b 100644 --- a/dist/chrome/content.js +++ b/dist/chrome/content.js @@ -1,6 +1,6 @@ -(function(){"use strict";const I={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:(s,e=3)=>Array.from(s,a=>a.codePointAt(0).toString(e).split("").map(d=>I[e][d]).join("")).join(I[e].unifier),encodeNumberArray:(s,e=3)=>s.map(a=>a.toString(e).split("").map(d=>I[e][d]).join("")).join(I[e].unifier),decodeToString:(s,e=3)=>s.split(I[e].unifier).map(a=>String.fromCodePoint(parseInt(Array.from(a).map(d=>Object.keys(I[e]).find(p=>I[e][p]===d)).join(""),e))).join(""),decodeToNumberArray:(s,e=3)=>s.split(I[e].unifier).map(a=>parseInt(Array.from(a).map(d=>Object.keys(I[e]).find(p=>I[e][p]===d)).join(""),e))};function Y(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var U,H;function J(){if(H)return U;H=1;function s(e={}){const a=e.bits||16,d=e.rounds||22,p=e.rightRotations||7,b=e.leftRotations||2,c=2**a,r=c-1,i=(l,n)=>l>>n|l<l<>a-n,w=(l,n,t)=>(l=i(l,p),l=l+n&r,l^=t,n=h(n,b),n^=l,[l,n]),k=(l,n,t)=>(n^=l,n=i(n,b),l^=t,l=l-n&r,l=h(l,p),[l,n]);function E(l,n){let t=l[0],u=l[1],o=n[0],g=n.slice(1);[u,t]=w(u,t,o);for(let m=0;m{const u=l([n/c|0,n&r],t);return u[0]*c+u[1]}}return{encrypt:f(E),decrypt:f(A),encryptRaw:E,decryptRaw:A}}return U=s,U}var Q=J();const L=Y(Q);var D,z;function M(){if(z)return D;z=1;const s="Input must be an string, Buffer or Uint8Array";function e(c){let r;if(c instanceof Uint8Array)r=c;else if(typeof c=="string")r=new TextEncoder().encode(c);else throw new Error(s);return r}function a(c){return Array.prototype.map.call(c,function(r){return(r<16?"0":"")+r.toString(16)}).join("")}function d(c){return(4294967296+c).toString(16).substring(1)}function p(c,r,i){let h=` -`+c+" = ";for(let w=0;w=4294967296&&m++,t[u]=g,t[u+1]=m}function a(t,u,o,g){let m=t[u]+o;o<0&&(m+=4294967296);let y=t[u+1]+g;m>=4294967296&&y++,t[u]=m,t[u+1]=y}function d(t,u){return t[u]^t[u+1]<<8^t[u+2]<<16^t[u+3]<<24}function p(t,u,o,g,m,y){const pe=h[m],be=h[m+1],he=h[y],ge=h[y+1];e(i,t,u),a(i,t,pe,be);let C=i[g]^i[t],S=i[g+1]^i[t+1];i[g]=S,i[g+1]=C,e(i,o,g),C=i[u]^i[o],S=i[u+1]^i[o+1],i[u]=C>>>24^S<<8,i[u+1]=S>>>24^C<<8,e(i,t,u),a(i,t,he,ge),C=i[g]^i[t],S=i[g+1]^i[t+1],i[g]=C>>>16^S<<16,i[g+1]=S>>>16^C<<16,e(i,o,g),C=i[u]^i[o],S=i[u+1]^i[o+1],i[u]=S>>>31^C<<1,i[u+1]=C>>>31^S<<1}const b=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],r=new Uint8Array(c.map(function(t){return t*2})),i=new Uint32Array(32),h=new Uint32Array(32);function w(t,u){let o=0;for(o=0;o<16;o++)i[o]=t.h[o],i[o+16]=b[o];for(i[24]=i[24]^t.t,i[25]=i[25]^t.t/4294967296,u&&(i[28]=~i[28],i[29]=~i[29]),o=0;o<32;o++)h[o]=d(t.b,4*o);for(o=0;o<12;o++)p(0,8,16,24,r[o*16+0],r[o*16+1]),p(2,10,18,26,r[o*16+2],r[o*16+3]),p(4,12,20,28,r[o*16+4],r[o*16+5]),p(6,14,22,30,r[o*16+6],r[o*16+7]),p(0,10,20,30,r[o*16+8],r[o*16+9]),p(2,12,22,24,r[o*16+10],r[o*16+11]),p(4,14,16,26,r[o*16+12],r[o*16+13]),p(6,8,18,28,r[o*16+14],r[o*16+15]);for(o=0;o<16;o++)t.h[o]=t.h[o]^i[o]^i[o+16]}const k=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 E(t,u,o,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(o&&o.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 m={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};k.fill(0),k[0]=t,u&&(k[1]=u.length),k[2]=1,k[3]=1,o&&k.set(o,32),g&&k.set(g,48);for(let y=0;y<16;y++)m.h[y]=b[y]^d(k,y*4);return u&&(A(m,u),m.c=128),m}function A(t,u){for(let o=0;o>2]>>8*(o&3);return u}function l(t,u,o,g,m){o=o||64,t=s.normalizeInput(t),g&&(g=s.normalizeInput(g)),m&&(m=s.normalizeInput(m));const y=E(o,u,g,m);return A(y,t),f(y)}function n(t,u,o,g,m){const y=l(t,u,o,g,m);return s.toHex(y)}return B={blake2b:l,blake2bHex:n,blake2bInit:E,blake2bUpdate:A,blake2bFinal:f},B}var N,q;function ee(){if(q)return N;q=1;const s=M();function e(f,l){return f[l]^f[l+1]<<8^f[l+2]<<16^f[l+3]<<24}function a(f,l,n,t,u,o){c[f]=c[f]+c[l]+u,c[t]=d(c[t]^c[f],16),c[n]=c[n]+c[t],c[l]=d(c[l]^c[n],12),c[f]=c[f]+c[l]+o,c[t]=d(c[t]^c[f],8),c[n]=c[n]+c[t],c[l]=d(c[l]^c[n],7)}function d(f,l){return f>>>l^f<<32-l}const p=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),b=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),r=new Uint32Array(16);function i(f,l){let n=0;for(n=0;n<8;n++)c[n]=f.h[n],c[n+8]=p[n];for(c[12]^=f.t,c[13]^=f.t/4294967296,l&&(c[14]=~c[14]),n=0;n<16;n++)r[n]=e(f.b,4*n);for(n=0;n<10;n++)a(0,4,8,12,r[b[n*16+0]],r[b[n*16+1]]),a(1,5,9,13,r[b[n*16+2]],r[b[n*16+3]]),a(2,6,10,14,r[b[n*16+4]],r[b[n*16+5]]),a(3,7,11,15,r[b[n*16+6]],r[b[n*16+7]]),a(0,5,10,15,r[b[n*16+8]],r[b[n*16+9]]),a(1,6,11,12,r[b[n*16+10]],r[b[n*16+11]]),a(2,7,8,13,r[b[n*16+12]],r[b[n*16+13]]),a(3,4,9,14,r[b[n*16+14]],r[b[n*16+15]]);for(n=0;n<8;n++)f.h[n]^=c[n]^c[n+8]}function h(f,l){if(!(f>0&&f<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=l?l.length:0;if(l&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(p),b:new Uint8Array(64),c:0,t:0,outlen:f};return t.h[0]^=16842752^n<<8^f,n>0&&(w(t,l),t.c=64),t}function w(f,l){for(let n=0;n>2]>>8*(n&3)&255;return l}function E(f,l,n){n=n||32,f=s.normalizeInput(f);const t=h(n,l);return w(t,f),k(t)}function A(f,l,n){const t=E(f,l,n);return s.toHex(t)}return N={blake2s:E,blake2sHex:A,blake2sInit:h,blake2sUpdate:w,blake2sFinal:k},N}var v,V;function te(){if(V)return v;V=1;const s=Z(),e=ee();return v={blake2b:s.blake2b,blake2bHex:s.blake2bHex,blake2bInit:s.blake2bInit,blake2bUpdate:s.blake2bUpdate,blake2bFinal:s.blake2bFinal,blake2s:e.blake2s,blake2sHex:e.blake2sHex,blake2sInit:e.blake2sInit,blake2sUpdate:e.blake2sUpdate,blake2sFinal:e.blake2sFinal},v}var K=te();const ne=L({bits:24,rounds:23,rightRotations:8,leftRotations:3});function re(s){const e=K.blake2bHex(s,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 oe(s,e){if(!s||s.length===0)return"";const a=s[0];return s.slice(1).map((p,b)=>{const c=a*16777216+(b&16777215),r=ne.encrypt(c,e),i=(p^r)>>>0;try{return String.fromCodePoint(i)}catch{return""}}).join("")}const ie=L();function se(s){const e=K.blake2bHex(s,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 ce(s,e){return s.map(a=>{try{return String.fromCodePoint(ie.decrypt(a,e))}catch{return""}}).join("")}const _="‍​­",x={3:"‍​­᠎‍",6:"‍​­‌‍",8:"‍​­‌‌"},X={1:"SPECK48_96CTR",2:"SPECK32_64ECB (insecure)"};Object.fromEntries(Object.entries(X).map(([s,e])=>[e,+s]));function le(s){if(!s.includes(_))return null;const e=Object.keys(x).find(b=>s.includes(x[b]));if(!e)return null;const a=s.indexOf(x[e]),d=s.slice(a+x[e].length),p=I[e].unifier+I[e][0];if(d.startsWith(p)){const c=Array.from(d.slice(p.length,p.length+3)).map(w=>Object.keys(I[e]).find(k=>I[e][k]===w)).join(""),r=X[parseInt(c,e)],i=d.slice(p.length+3),h=x[e].length+p.length+3;return{base:e,cipher:r,payload:i,sigIdx:a,sigLen:h}}return{base:e,cipher:"PLAIN",payload:d,sigIdx:a,sigLen:x[e].length}}function ae(s,e,a){const d=new Set(Object.values(I[e]));let p=a;for(;pArray.from(s,a=>a.codePointAt(0).toString(e).split("").map(p=>I[e][p]).join("")).join(I[e].unifier),encodeNumberArray:(s,e=3)=>s.map(a=>a.toString(e).split("").map(p=>I[e][p]).join("")).join(I[e].unifier),decodeToString:(s,e=3)=>s.split(I[e].unifier).map(a=>String.fromCodePoint(parseInt(Array.from(a).map(p=>Object.keys(I[e]).find(b=>I[e][b]===p)).join(""),e))).join(""),decodeToNumberArray:(s,e=3)=>s.split(I[e].unifier).map(a=>parseInt(Array.from(a).map(p=>Object.keys(I[e]).find(b=>I[e][b]===p)).join(""),e))};function J(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var N,H;function Q(){if(H)return N;H=1;function s(e={}){const a=e.bits||16,p=e.rounds||22,b=e.rightRotations||7,d=e.leftRotations||2,l=2**a,o=l-1,i=(c,n)=>c>>n|c<c<>a-n,g=(c,n,t)=>(c=i(c,b),c=c+n&o,c^=t,n=h(n,d),n^=c,[c,n]),y=(c,n,t)=>(n^=c,n=i(n,d),c^=t,c=c-n&o,c=h(c,b),[c,n]);function E(c,n){let t=c[0],u=c[1],r=n[0],m=n.slice(1);[u,t]=g(u,t,r);for(let w=0;w{const u=c([n/l|0,n&o],t);return u[0]*l+u[1]}}return{encrypt:f(E),decrypt:f(A),encryptRaw:E,decryptRaw:A}}return N=s,N}var Z=Q();const L=J(Z);var D,M;function z(){if(M)return D;M=1;const s="Input must be an string, Buffer or Uint8Array";function e(l){let o;if(l instanceof Uint8Array)o=l;else if(typeof l=="string")o=new TextEncoder().encode(l);else throw new Error(s);return o}function a(l){return Array.prototype.map.call(l,function(o){return(o<16?"0":"")+o.toString(16)}).join("")}function p(l){return(4294967296+l).toString(16).substring(1)}function b(l,o,i){let h=` +`+l+" = ";for(let g=0;g=4294967296&&w++,t[u]=m,t[u+1]=w}function a(t,u,r,m){let w=t[u]+r;r<0&&(w+=4294967296);let k=t[u+1]+m;w>=4294967296&&k++,t[u]=w,t[u+1]=k}function p(t,u){return t[u]^t[u+1]<<8^t[u+2]<<16^t[u+3]<<24}function b(t,u,r,m,w,k){const be=h[w],he=h[w+1],ge=h[k],me=h[k+1];e(i,t,u),a(i,t,be,he);let S=i[m]^i[t],T=i[m+1]^i[t+1];i[m]=T,i[m+1]=S,e(i,r,m),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),a(i,t,ge,me),S=i[m]^i[t],T=i[m+1]^i[t+1],i[m]=S>>>16^T<<16,i[m+1]=T>>>16^S<<16,e(i,r,m),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 d=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=[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],o=new Uint8Array(l.map(function(t){return t*2})),i=new Uint32Array(32),h=new Uint32Array(32);function g(t,u){let r=0;for(r=0;r<16;r++)i[r]=t.h[r],i[r+16]=d[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]=p(t.b,4*r);for(r=0;r<12;r++)b(0,8,16,24,o[r*16+0],o[r*16+1]),b(2,10,18,26,o[r*16+2],o[r*16+3]),b(4,12,20,28,o[r*16+4],o[r*16+5]),b(6,14,22,30,o[r*16+6],o[r*16+7]),b(0,10,20,30,o[r*16+8],o[r*16+9]),b(2,12,22,24,o[r*16+10],o[r*16+11]),b(4,14,16,26,o[r*16+12],o[r*16+13]),b(6,8,18,28,o[r*16+14],o[r*16+15]);for(r=0;r<16;r++)t.h[r]=t.h[r]^i[r]^i[r+16]}const y=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 E(t,u,r,m){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(m&&m.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};y.fill(0),y[0]=t,u&&(y[1]=u.length),y[2]=1,y[3]=1,r&&y.set(r,32),m&&y.set(m,48);for(let k=0;k<16;k++)w.h[k]=d[k]^p(y,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 c(t,u,r,m,w){r=r||64,t=s.normalizeInput(t),m&&(m=s.normalizeInput(m)),w&&(w=s.normalizeInput(w));const k=E(r,u,m,w);return A(k,t),f(k)}function n(t,u,r,m,w){const k=c(t,u,r,m,w);return s.toHex(k)}return U={blake2b:c,blake2bHex:n,blake2bInit:E,blake2bUpdate:A,blake2bFinal:f},U}var B,q;function te(){if(q)return B;q=1;const s=z();function e(f,c){return f[c]^f[c+1]<<8^f[c+2]<<16^f[c+3]<<24}function a(f,c,n,t,u,r){l[f]=l[f]+l[c]+u,l[t]=p(l[t]^l[f],16),l[n]=l[n]+l[t],l[c]=p(l[c]^l[n],12),l[f]=l[f]+l[c]+r,l[t]=p(l[t]^l[f],8),l[n]=l[n]+l[t],l[c]=p(l[c]^l[n],7)}function p(f,c){return f>>>c^f<<32-c}const b=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),d=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]),l=new Uint32Array(16),o=new Uint32Array(16);function i(f,c){let n=0;for(n=0;n<8;n++)l[n]=f.h[n],l[n+8]=b[n];for(l[12]^=f.t,l[13]^=f.t/4294967296,c&&(l[14]=~l[14]),n=0;n<16;n++)o[n]=e(f.b,4*n);for(n=0;n<10;n++)a(0,4,8,12,o[d[n*16+0]],o[d[n*16+1]]),a(1,5,9,13,o[d[n*16+2]],o[d[n*16+3]]),a(2,6,10,14,o[d[n*16+4]],o[d[n*16+5]]),a(3,7,11,15,o[d[n*16+6]],o[d[n*16+7]]),a(0,5,10,15,o[d[n*16+8]],o[d[n*16+9]]),a(1,6,11,12,o[d[n*16+10]],o[d[n*16+11]]),a(2,7,8,13,o[d[n*16+12]],o[d[n*16+13]]),a(3,4,9,14,o[d[n*16+14]],o[d[n*16+15]]);for(n=0;n<8;n++)f.h[n]^=l[n]^l[n+8]}function h(f,c){if(!(f>0&&f<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=c?c.length:0;if(c&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(b),b:new Uint8Array(64),c:0,t:0,outlen:f};return t.h[0]^=16842752^n<<8^f,n>0&&(g(t,c),t.c=64),t}function g(f,c){for(let n=0;n>2]>>8*(n&3)&255;return c}function E(f,c,n){n=n||32,f=s.normalizeInput(f);const t=h(n,c);return g(t,f),y(t)}function A(f,c,n){const t=E(f,c,n);return s.toHex(t)}return B={blake2s:E,blake2sHex:A,blake2sInit:h,blake2sUpdate:g,blake2sFinal:y},B}var _,V;function ne(){if(V)return _;V=1;const s=ee(),e=te();return _={blake2b:s.blake2b,blake2bHex:s.blake2bHex,blake2bInit:s.blake2bInit,blake2bUpdate:s.blake2bUpdate,blake2bFinal:s.blake2bFinal,blake2s:e.blake2s,blake2sHex:e.blake2sHex,blake2sInit:e.blake2sInit,blake2sUpdate:e.blake2sUpdate,blake2sFinal:e.blake2sFinal},_}var W=ne();const re=L({bits:24,rounds:23,rightRotations:8,leftRotations:3});function oe(s){const e=W.blake2bHex(s,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 ie(s,e){if(!s||s.length===0)return"";const a=s[0];return s.slice(1).map((b,d)=>{const l=a*16777216+(d&16777215),o=re.encrypt(l,e),i=(b^o)>>>0;try{return String.fromCodePoint(i)}catch{return""}}).join("")}const se=L();function le(s){const e=W.blake2bHex(s,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 ce(s,e){return s.map(a=>{try{return String.fromCodePoint(se.decrypt(a,e))}catch{return""}}).join("")}const O="‍​­",x={3:"‍​­᠎‍",6:"‍​­‌‍",8:"‍​­‌‌"},X={1:"SPECK48_96CTR",2:"SPECK32_64ECB (insecure)"};Object.fromEntries(Object.entries(X).map(([s,e])=>[e,+s]));function ae(s){if(!s.includes(O))return null;const e=Object.keys(x).find(d=>s.includes(x[d]));if(!e)return null;const a=s.indexOf(x[e]),p=s.slice(a+x[e].length),b=I[e].unifier+I[e][0];if(p.startsWith(b)){const l=Array.from(p.slice(b.length,b.length+3)).map(g=>Object.keys(I[e]).find(y=>I[e][y]===g)).join(""),o=X[parseInt(l,e)],i=p.slice(b.length+3),h=x[e].length+b.length+3;return{base:e,cipher:o,payload:i,sigIdx:a,sigLen:h}}return{base:e,cipher:"PLAIN",payload:p,sigIdx:a,sigLen:x[e].length}}function K(s,e,a){const p=new Set(Object.values(I[e]));let b=a;for(;bde(i,e),W(i)}function W(s){const{wrap:e,node:a,start:d,end:p}=s;if(!a.isConnected){e.remove(),T.delete(s);return}const b=a.parentElement;if(!b||b.checkVisibility&&!b.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0})){e.style.display="none";return}const c=document.createRange();try{c.setStart(a,d),c.setEnd(a,Math.min(p,a.nodeValue.length))}catch{e.remove(),T.delete(s);return}let r=c.getBoundingClientRect();if(!r.width&&!r.height&&(r=b.getBoundingClientRect()),!r.width&&!r.height){e.style.display="none";return}if(r.bottom<0||r.top>window.innerHeight||r.right<0||r.left>window.innerWidth){e.style.display="none";return}let i=b;for(;i&&i!==document.body&&i!==document.documentElement;){const k=window.getComputedStyle(i);if(k.overflow!=="visible"||k.overflowX!=="visible"||k.overflowY!=="visible"){const E=i.getBoundingClientRect();if(r.bottomE.bottom||r.rightE.right){e.style.display="none";return}}i=i.parentElement}e.style.display="flex";const h=r.left+(r.width||0)/2,w=r.top;e.style.left=`${h-e.offsetWidth/2}px`,e.style.top=`${w-e.offsetHeight-2}px`}function de(s,e){const{wrap:a,node:d,start:p,end:b}=s,c=d.nodeValue.slice(p+e.sigLen,b);let r="";if(e.cipher==="PLAIN")try{r=I.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=I.decodeToNumberArray(c,e.base);e.cipher==="SPECK48_96CTR"?r=oe(h,re(i)):e.cipher==="SPECK32_64ECB (insecure)"&&(r=ce(h,se(i)))}catch(h){console.error(h)}if(!r){alert("Decryption failed.");return}}if(r){const i=document.createRange();i.setStart(d,p),i.setEnd(d,b),i.deleteContents();const h=document.createElement("span");h.className="inzerosight-decoded",h.style.color="#00b4d8",h.style.fontWeight="600",h.textContent=` ${r} `,i.insertNode(h),a.remove(),T.delete(s)}}function F(s){if(!s||s.nodeType!==Node.TEXT_NODE)return;const e=s.nodeValue;if(!e||!e.includes(_))return;let a=0;for(;a{var b;return e[(b=p.parentElement)==null?void 0:b.tagName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});let d;for(;d=a.nextNode();)F(d)}$(document.body);let O;function P(){O||T.size===0||(O=requestAnimationFrame(()=>{O=null,T.forEach(W)}))}new MutationObserver(s=>{var e;for(const a of[...T])(!a.node.isConnected||!((e=a.node.nodeValue)!=null&&e.includes(_)))&&(a.wrap.remove(),T.delete(a));for(const a of s)if(a.type==="characterData")F(a.target);else for(const d of a.addedNodes)d.nodeType===Node.TEXT_NODE?F(d):d.nodeType===Node.ELEMENT_NODE&&d.id!=="in0-host"&&$(d);P()}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0}),window.addEventListener("scroll",P,{capture:!0,passive:!0}),window.addEventListener("resize",P,{passive:!0})})(); + `,v.appendChild(s),(document.body||document.documentElement).appendChild(R)}function fe(s,e,a,p,b){for(const g of C)if(g.node===s&&g.start===a)return;ue();const d=document.createElement("div");d.className="in0-wrap";const l=document.createElement("button");l.className="in0-btn",l.textContent=e.cipher==="PLAIN"?"Decode":"Decrypt";const o=document.createElement("span");o.className="in0-badge",o.textContent="Ø",l.appendChild(o);const i=document.createElement("div");i.className="in0-arrow",d.appendChild(l),d.appendChild(i),v.appendChild(d);const h={wrap:d,node:s,start:a,endNode:p,end:b};C.add(h),l.onclick=()=>de(h,e),$(h)}function $(s){const{wrap:e,node:a,start:p,endNode:b,end:d}=s;if(!a.isConnected||!b.isConnected){e.remove(),C.delete(s);return}const l=a.parentElement;if(!l||l.checkVisibility&&!l.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0})){e.style.display="none";return}const o=document.createRange();try{o.setStart(a,p),o.setEnd(b,Math.min(d,b.nodeValue.length))}catch{e.remove(),C.delete(s);return}let i=o.getBoundingClientRect();if(!i.width&&!i.height&&(i=l.getBoundingClientRect()),!i.width&&!i.height){e.style.display="none";return}if(i.bottom<0||i.top>window.innerHeight||i.right<0||i.left>window.innerWidth){e.style.display="none";return}let h=l;for(;h&&h!==document.body&&h!==document.documentElement;){const E=window.getComputedStyle(h);if(E.overflow!=="visible"||E.overflowX!=="visible"||E.overflowY!=="visible"){const A=h.getBoundingClientRect();if(i.bottomA.bottom||i.rightA.right){e.style.display="none";return}}h=h.parentElement}e.style.display="flex";const g=i.left+(i.width||0)/2,y=i.top;e.style.left=`${g-e.offsetWidth/2}px`,e.style.top=`${y-e.offsetHeight-2}px`}function de(s,e){const{wrap:a,node:p,start:b,endNode:d,end:l}=s,o=document.createRange();o.setStart(p,b),o.setEnd(d,l);const i=o.toString().slice(e.sigLen);let h="";if(e.cipher==="PLAIN")try{h=I.decodeToString(i,e.base)}catch(g){console.error(g)}else{const g=prompt(`inØsight: enter password (${e.cipher}):`);if(!g)return;try{const y=I.decodeToNumberArray(i,e.base);e.cipher==="SPECK48_96CTR"?h=ie(y,oe(g)):e.cipher==="SPECK32_64ECB (insecure)"&&(h=ce(y,le(g)))}catch(y){console.error(y)}if(!h){alert("Decryption failed.");return}}if(h){o.deleteContents();const g=document.createElement("span");g.className="inzerosight-decoded",g.style.color="#00b4d8",g.style.fontWeight="600",g.textContent=` ${h} `,o.insertNode(g),a.remove(),C.delete(s)}}function pe(s,e,a){let p=s,b=K(s.nodeValue,e,a);for(;b===p.nodeValue.length;){let d=p.nextSibling,l=!1;for(;(d==null?void 0:d.nodeType)===Node.ELEMENT_NODE&&d.tagName==="WBR";)l=!0,d=d.nextSibling;if(!l||(d==null?void 0:d.nodeType)!==Node.TEXT_NODE)break;const o=K(d.nodeValue,e,0);if(!o)break;p=d,b=o}return{endNode:p,end:b}}function j(s){if(!s||s.nodeType!==Node.TEXT_NODE)return;const e=s.nodeValue;if(!e||!e.includes(O))return;let a=0;for(;a{var d;return e[(d=b.parentElement)==null?void 0:d.tagName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});let p;for(;p=a.nextNode();)j(p)}Y(document.body);let F;function P(){F||C.size===0||(F=requestAnimationFrame(()=>{F=null,C.forEach($)}))}new MutationObserver(s=>{var e;for(const a of[...C])(!a.node.isConnected||!((e=a.node.nodeValue)!=null&&e.startsWith(O,a.start)))&&(a.wrap.remove(),C.delete(a));for(const a of s)if(a.type==="characterData")j(a.target);else for(const p of a.addedNodes)p.nodeType===Node.TEXT_NODE?j(p):p.nodeType===Node.ELEMENT_NODE&&p.id!=="in0-host"&&Y(p);P()}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0}),window.addEventListener("scroll",P,{capture:!0,passive:!0}),window.addEventListener("resize",P,{passive:!0})})(); diff --git a/dist/chrome/index.html b/dist/chrome/index.html index 1c0d4b5..474b1b8 100644 --- a/dist/chrome/index.html +++ b/dist/chrome/index.html @@ -7,14 +7,14 @@ -

inØsight 3.0.0source

+

inØsight 3.1.0source

diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index 94b6051..9b4c050 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -1 +1 @@ -{"name":"inØsight","version":"3.0.0","author":"planetrenox@pm.me","homepage_url":"https://github.com/inzerosight/inzerosight","description":"Communicate undetected in plain sight.","icons":{"48":"icon_500.png"},"manifest_version":3,"action":{"default_icon":{"48":"icon_500.png"},"default_title":"inØsight","default_popup":"index.html"},"content_scripts":[{"matches":[""],"js":["content.js"],"run_at":"document_idle"}]} \ No newline at end of file +{"name":"inØsight","version":"3.1.0","author":"planetrenox@pm.me","homepage_url":"https://github.com/inzerosight/inzerosight","description":"Communicate undetected in plain sight.","icons":{"48":"icon_500.png"},"manifest_version":3,"action":{"default_icon":{"48":"icon_500.png"},"default_title":"inØsight","default_popup":"index.html"},"content_scripts":[{"matches":[""],"js":["content.js"],"run_at":"document_idle"}]} \ No newline at end of file diff --git a/dist/firefox/content.js b/dist/firefox/content.js index 096fbc0..843b15b 100644 --- a/dist/firefox/content.js +++ b/dist/firefox/content.js @@ -1,6 +1,6 @@ -(function(){"use strict";const I={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:(s,e=3)=>Array.from(s,a=>a.codePointAt(0).toString(e).split("").map(d=>I[e][d]).join("")).join(I[e].unifier),encodeNumberArray:(s,e=3)=>s.map(a=>a.toString(e).split("").map(d=>I[e][d]).join("")).join(I[e].unifier),decodeToString:(s,e=3)=>s.split(I[e].unifier).map(a=>String.fromCodePoint(parseInt(Array.from(a).map(d=>Object.keys(I[e]).find(p=>I[e][p]===d)).join(""),e))).join(""),decodeToNumberArray:(s,e=3)=>s.split(I[e].unifier).map(a=>parseInt(Array.from(a).map(d=>Object.keys(I[e]).find(p=>I[e][p]===d)).join(""),e))};function Y(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var U,H;function J(){if(H)return U;H=1;function s(e={}){const a=e.bits||16,d=e.rounds||22,p=e.rightRotations||7,b=e.leftRotations||2,c=2**a,r=c-1,i=(l,n)=>l>>n|l<l<>a-n,w=(l,n,t)=>(l=i(l,p),l=l+n&r,l^=t,n=h(n,b),n^=l,[l,n]),k=(l,n,t)=>(n^=l,n=i(n,b),l^=t,l=l-n&r,l=h(l,p),[l,n]);function E(l,n){let t=l[0],u=l[1],o=n[0],g=n.slice(1);[u,t]=w(u,t,o);for(let m=0;m{const u=l([n/c|0,n&r],t);return u[0]*c+u[1]}}return{encrypt:f(E),decrypt:f(A),encryptRaw:E,decryptRaw:A}}return U=s,U}var Q=J();const L=Y(Q);var D,z;function M(){if(z)return D;z=1;const s="Input must be an string, Buffer or Uint8Array";function e(c){let r;if(c instanceof Uint8Array)r=c;else if(typeof c=="string")r=new TextEncoder().encode(c);else throw new Error(s);return r}function a(c){return Array.prototype.map.call(c,function(r){return(r<16?"0":"")+r.toString(16)}).join("")}function d(c){return(4294967296+c).toString(16).substring(1)}function p(c,r,i){let h=` -`+c+" = ";for(let w=0;w=4294967296&&m++,t[u]=g,t[u+1]=m}function a(t,u,o,g){let m=t[u]+o;o<0&&(m+=4294967296);let y=t[u+1]+g;m>=4294967296&&y++,t[u]=m,t[u+1]=y}function d(t,u){return t[u]^t[u+1]<<8^t[u+2]<<16^t[u+3]<<24}function p(t,u,o,g,m,y){const pe=h[m],be=h[m+1],he=h[y],ge=h[y+1];e(i,t,u),a(i,t,pe,be);let C=i[g]^i[t],S=i[g+1]^i[t+1];i[g]=S,i[g+1]=C,e(i,o,g),C=i[u]^i[o],S=i[u+1]^i[o+1],i[u]=C>>>24^S<<8,i[u+1]=S>>>24^C<<8,e(i,t,u),a(i,t,he,ge),C=i[g]^i[t],S=i[g+1]^i[t+1],i[g]=C>>>16^S<<16,i[g+1]=S>>>16^C<<16,e(i,o,g),C=i[u]^i[o],S=i[u+1]^i[o+1],i[u]=S>>>31^C<<1,i[u+1]=C>>>31^S<<1}const b=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],r=new Uint8Array(c.map(function(t){return t*2})),i=new Uint32Array(32),h=new Uint32Array(32);function w(t,u){let o=0;for(o=0;o<16;o++)i[o]=t.h[o],i[o+16]=b[o];for(i[24]=i[24]^t.t,i[25]=i[25]^t.t/4294967296,u&&(i[28]=~i[28],i[29]=~i[29]),o=0;o<32;o++)h[o]=d(t.b,4*o);for(o=0;o<12;o++)p(0,8,16,24,r[o*16+0],r[o*16+1]),p(2,10,18,26,r[o*16+2],r[o*16+3]),p(4,12,20,28,r[o*16+4],r[o*16+5]),p(6,14,22,30,r[o*16+6],r[o*16+7]),p(0,10,20,30,r[o*16+8],r[o*16+9]),p(2,12,22,24,r[o*16+10],r[o*16+11]),p(4,14,16,26,r[o*16+12],r[o*16+13]),p(6,8,18,28,r[o*16+14],r[o*16+15]);for(o=0;o<16;o++)t.h[o]=t.h[o]^i[o]^i[o+16]}const k=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 E(t,u,o,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(o&&o.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 m={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};k.fill(0),k[0]=t,u&&(k[1]=u.length),k[2]=1,k[3]=1,o&&k.set(o,32),g&&k.set(g,48);for(let y=0;y<16;y++)m.h[y]=b[y]^d(k,y*4);return u&&(A(m,u),m.c=128),m}function A(t,u){for(let o=0;o>2]>>8*(o&3);return u}function l(t,u,o,g,m){o=o||64,t=s.normalizeInput(t),g&&(g=s.normalizeInput(g)),m&&(m=s.normalizeInput(m));const y=E(o,u,g,m);return A(y,t),f(y)}function n(t,u,o,g,m){const y=l(t,u,o,g,m);return s.toHex(y)}return B={blake2b:l,blake2bHex:n,blake2bInit:E,blake2bUpdate:A,blake2bFinal:f},B}var N,q;function ee(){if(q)return N;q=1;const s=M();function e(f,l){return f[l]^f[l+1]<<8^f[l+2]<<16^f[l+3]<<24}function a(f,l,n,t,u,o){c[f]=c[f]+c[l]+u,c[t]=d(c[t]^c[f],16),c[n]=c[n]+c[t],c[l]=d(c[l]^c[n],12),c[f]=c[f]+c[l]+o,c[t]=d(c[t]^c[f],8),c[n]=c[n]+c[t],c[l]=d(c[l]^c[n],7)}function d(f,l){return f>>>l^f<<32-l}const p=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),b=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),r=new Uint32Array(16);function i(f,l){let n=0;for(n=0;n<8;n++)c[n]=f.h[n],c[n+8]=p[n];for(c[12]^=f.t,c[13]^=f.t/4294967296,l&&(c[14]=~c[14]),n=0;n<16;n++)r[n]=e(f.b,4*n);for(n=0;n<10;n++)a(0,4,8,12,r[b[n*16+0]],r[b[n*16+1]]),a(1,5,9,13,r[b[n*16+2]],r[b[n*16+3]]),a(2,6,10,14,r[b[n*16+4]],r[b[n*16+5]]),a(3,7,11,15,r[b[n*16+6]],r[b[n*16+7]]),a(0,5,10,15,r[b[n*16+8]],r[b[n*16+9]]),a(1,6,11,12,r[b[n*16+10]],r[b[n*16+11]]),a(2,7,8,13,r[b[n*16+12]],r[b[n*16+13]]),a(3,4,9,14,r[b[n*16+14]],r[b[n*16+15]]);for(n=0;n<8;n++)f.h[n]^=c[n]^c[n+8]}function h(f,l){if(!(f>0&&f<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=l?l.length:0;if(l&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(p),b:new Uint8Array(64),c:0,t:0,outlen:f};return t.h[0]^=16842752^n<<8^f,n>0&&(w(t,l),t.c=64),t}function w(f,l){for(let n=0;n>2]>>8*(n&3)&255;return l}function E(f,l,n){n=n||32,f=s.normalizeInput(f);const t=h(n,l);return w(t,f),k(t)}function A(f,l,n){const t=E(f,l,n);return s.toHex(t)}return N={blake2s:E,blake2sHex:A,blake2sInit:h,blake2sUpdate:w,blake2sFinal:k},N}var v,V;function te(){if(V)return v;V=1;const s=Z(),e=ee();return v={blake2b:s.blake2b,blake2bHex:s.blake2bHex,blake2bInit:s.blake2bInit,blake2bUpdate:s.blake2bUpdate,blake2bFinal:s.blake2bFinal,blake2s:e.blake2s,blake2sHex:e.blake2sHex,blake2sInit:e.blake2sInit,blake2sUpdate:e.blake2sUpdate,blake2sFinal:e.blake2sFinal},v}var K=te();const ne=L({bits:24,rounds:23,rightRotations:8,leftRotations:3});function re(s){const e=K.blake2bHex(s,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 oe(s,e){if(!s||s.length===0)return"";const a=s[0];return s.slice(1).map((p,b)=>{const c=a*16777216+(b&16777215),r=ne.encrypt(c,e),i=(p^r)>>>0;try{return String.fromCodePoint(i)}catch{return""}}).join("")}const ie=L();function se(s){const e=K.blake2bHex(s,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 ce(s,e){return s.map(a=>{try{return String.fromCodePoint(ie.decrypt(a,e))}catch{return""}}).join("")}const _="‍​­",x={3:"‍​­᠎‍",6:"‍​­‌‍",8:"‍​­‌‌"},X={1:"SPECK48_96CTR",2:"SPECK32_64ECB (insecure)"};Object.fromEntries(Object.entries(X).map(([s,e])=>[e,+s]));function le(s){if(!s.includes(_))return null;const e=Object.keys(x).find(b=>s.includes(x[b]));if(!e)return null;const a=s.indexOf(x[e]),d=s.slice(a+x[e].length),p=I[e].unifier+I[e][0];if(d.startsWith(p)){const c=Array.from(d.slice(p.length,p.length+3)).map(w=>Object.keys(I[e]).find(k=>I[e][k]===w)).join(""),r=X[parseInt(c,e)],i=d.slice(p.length+3),h=x[e].length+p.length+3;return{base:e,cipher:r,payload:i,sigIdx:a,sigLen:h}}return{base:e,cipher:"PLAIN",payload:d,sigIdx:a,sigLen:x[e].length}}function ae(s,e,a){const d=new Set(Object.values(I[e]));let p=a;for(;pArray.from(s,a=>a.codePointAt(0).toString(e).split("").map(p=>I[e][p]).join("")).join(I[e].unifier),encodeNumberArray:(s,e=3)=>s.map(a=>a.toString(e).split("").map(p=>I[e][p]).join("")).join(I[e].unifier),decodeToString:(s,e=3)=>s.split(I[e].unifier).map(a=>String.fromCodePoint(parseInt(Array.from(a).map(p=>Object.keys(I[e]).find(b=>I[e][b]===p)).join(""),e))).join(""),decodeToNumberArray:(s,e=3)=>s.split(I[e].unifier).map(a=>parseInt(Array.from(a).map(p=>Object.keys(I[e]).find(b=>I[e][b]===p)).join(""),e))};function J(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var N,H;function Q(){if(H)return N;H=1;function s(e={}){const a=e.bits||16,p=e.rounds||22,b=e.rightRotations||7,d=e.leftRotations||2,l=2**a,o=l-1,i=(c,n)=>c>>n|c<c<>a-n,g=(c,n,t)=>(c=i(c,b),c=c+n&o,c^=t,n=h(n,d),n^=c,[c,n]),y=(c,n,t)=>(n^=c,n=i(n,d),c^=t,c=c-n&o,c=h(c,b),[c,n]);function E(c,n){let t=c[0],u=c[1],r=n[0],m=n.slice(1);[u,t]=g(u,t,r);for(let w=0;w{const u=c([n/l|0,n&o],t);return u[0]*l+u[1]}}return{encrypt:f(E),decrypt:f(A),encryptRaw:E,decryptRaw:A}}return N=s,N}var Z=Q();const L=J(Z);var D,M;function z(){if(M)return D;M=1;const s="Input must be an string, Buffer or Uint8Array";function e(l){let o;if(l instanceof Uint8Array)o=l;else if(typeof l=="string")o=new TextEncoder().encode(l);else throw new Error(s);return o}function a(l){return Array.prototype.map.call(l,function(o){return(o<16?"0":"")+o.toString(16)}).join("")}function p(l){return(4294967296+l).toString(16).substring(1)}function b(l,o,i){let h=` +`+l+" = ";for(let g=0;g=4294967296&&w++,t[u]=m,t[u+1]=w}function a(t,u,r,m){let w=t[u]+r;r<0&&(w+=4294967296);let k=t[u+1]+m;w>=4294967296&&k++,t[u]=w,t[u+1]=k}function p(t,u){return t[u]^t[u+1]<<8^t[u+2]<<16^t[u+3]<<24}function b(t,u,r,m,w,k){const be=h[w],he=h[w+1],ge=h[k],me=h[k+1];e(i,t,u),a(i,t,be,he);let S=i[m]^i[t],T=i[m+1]^i[t+1];i[m]=T,i[m+1]=S,e(i,r,m),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),a(i,t,ge,me),S=i[m]^i[t],T=i[m+1]^i[t+1],i[m]=S>>>16^T<<16,i[m+1]=T>>>16^S<<16,e(i,r,m),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 d=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=[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],o=new Uint8Array(l.map(function(t){return t*2})),i=new Uint32Array(32),h=new Uint32Array(32);function g(t,u){let r=0;for(r=0;r<16;r++)i[r]=t.h[r],i[r+16]=d[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]=p(t.b,4*r);for(r=0;r<12;r++)b(0,8,16,24,o[r*16+0],o[r*16+1]),b(2,10,18,26,o[r*16+2],o[r*16+3]),b(4,12,20,28,o[r*16+4],o[r*16+5]),b(6,14,22,30,o[r*16+6],o[r*16+7]),b(0,10,20,30,o[r*16+8],o[r*16+9]),b(2,12,22,24,o[r*16+10],o[r*16+11]),b(4,14,16,26,o[r*16+12],o[r*16+13]),b(6,8,18,28,o[r*16+14],o[r*16+15]);for(r=0;r<16;r++)t.h[r]=t.h[r]^i[r]^i[r+16]}const y=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 E(t,u,r,m){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(m&&m.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};y.fill(0),y[0]=t,u&&(y[1]=u.length),y[2]=1,y[3]=1,r&&y.set(r,32),m&&y.set(m,48);for(let k=0;k<16;k++)w.h[k]=d[k]^p(y,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 c(t,u,r,m,w){r=r||64,t=s.normalizeInput(t),m&&(m=s.normalizeInput(m)),w&&(w=s.normalizeInput(w));const k=E(r,u,m,w);return A(k,t),f(k)}function n(t,u,r,m,w){const k=c(t,u,r,m,w);return s.toHex(k)}return U={blake2b:c,blake2bHex:n,blake2bInit:E,blake2bUpdate:A,blake2bFinal:f},U}var B,q;function te(){if(q)return B;q=1;const s=z();function e(f,c){return f[c]^f[c+1]<<8^f[c+2]<<16^f[c+3]<<24}function a(f,c,n,t,u,r){l[f]=l[f]+l[c]+u,l[t]=p(l[t]^l[f],16),l[n]=l[n]+l[t],l[c]=p(l[c]^l[n],12),l[f]=l[f]+l[c]+r,l[t]=p(l[t]^l[f],8),l[n]=l[n]+l[t],l[c]=p(l[c]^l[n],7)}function p(f,c){return f>>>c^f<<32-c}const b=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),d=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]),l=new Uint32Array(16),o=new Uint32Array(16);function i(f,c){let n=0;for(n=0;n<8;n++)l[n]=f.h[n],l[n+8]=b[n];for(l[12]^=f.t,l[13]^=f.t/4294967296,c&&(l[14]=~l[14]),n=0;n<16;n++)o[n]=e(f.b,4*n);for(n=0;n<10;n++)a(0,4,8,12,o[d[n*16+0]],o[d[n*16+1]]),a(1,5,9,13,o[d[n*16+2]],o[d[n*16+3]]),a(2,6,10,14,o[d[n*16+4]],o[d[n*16+5]]),a(3,7,11,15,o[d[n*16+6]],o[d[n*16+7]]),a(0,5,10,15,o[d[n*16+8]],o[d[n*16+9]]),a(1,6,11,12,o[d[n*16+10]],o[d[n*16+11]]),a(2,7,8,13,o[d[n*16+12]],o[d[n*16+13]]),a(3,4,9,14,o[d[n*16+14]],o[d[n*16+15]]);for(n=0;n<8;n++)f.h[n]^=l[n]^l[n+8]}function h(f,c){if(!(f>0&&f<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=c?c.length:0;if(c&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(b),b:new Uint8Array(64),c:0,t:0,outlen:f};return t.h[0]^=16842752^n<<8^f,n>0&&(g(t,c),t.c=64),t}function g(f,c){for(let n=0;n>2]>>8*(n&3)&255;return c}function E(f,c,n){n=n||32,f=s.normalizeInput(f);const t=h(n,c);return g(t,f),y(t)}function A(f,c,n){const t=E(f,c,n);return s.toHex(t)}return B={blake2s:E,blake2sHex:A,blake2sInit:h,blake2sUpdate:g,blake2sFinal:y},B}var _,V;function ne(){if(V)return _;V=1;const s=ee(),e=te();return _={blake2b:s.blake2b,blake2bHex:s.blake2bHex,blake2bInit:s.blake2bInit,blake2bUpdate:s.blake2bUpdate,blake2bFinal:s.blake2bFinal,blake2s:e.blake2s,blake2sHex:e.blake2sHex,blake2sInit:e.blake2sInit,blake2sUpdate:e.blake2sUpdate,blake2sFinal:e.blake2sFinal},_}var W=ne();const re=L({bits:24,rounds:23,rightRotations:8,leftRotations:3});function oe(s){const e=W.blake2bHex(s,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 ie(s,e){if(!s||s.length===0)return"";const a=s[0];return s.slice(1).map((b,d)=>{const l=a*16777216+(d&16777215),o=re.encrypt(l,e),i=(b^o)>>>0;try{return String.fromCodePoint(i)}catch{return""}}).join("")}const se=L();function le(s){const e=W.blake2bHex(s,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 ce(s,e){return s.map(a=>{try{return String.fromCodePoint(se.decrypt(a,e))}catch{return""}}).join("")}const O="‍​­",x={3:"‍​­᠎‍",6:"‍​­‌‍",8:"‍​­‌‌"},X={1:"SPECK48_96CTR",2:"SPECK32_64ECB (insecure)"};Object.fromEntries(Object.entries(X).map(([s,e])=>[e,+s]));function ae(s){if(!s.includes(O))return null;const e=Object.keys(x).find(d=>s.includes(x[d]));if(!e)return null;const a=s.indexOf(x[e]),p=s.slice(a+x[e].length),b=I[e].unifier+I[e][0];if(p.startsWith(b)){const l=Array.from(p.slice(b.length,b.length+3)).map(g=>Object.keys(I[e]).find(y=>I[e][y]===g)).join(""),o=X[parseInt(l,e)],i=p.slice(b.length+3),h=x[e].length+b.length+3;return{base:e,cipher:o,payload:i,sigIdx:a,sigLen:h}}return{base:e,cipher:"PLAIN",payload:p,sigIdx:a,sigLen:x[e].length}}function K(s,e,a){const p=new Set(Object.values(I[e]));let b=a;for(;bde(i,e),W(i)}function W(s){const{wrap:e,node:a,start:d,end:p}=s;if(!a.isConnected){e.remove(),T.delete(s);return}const b=a.parentElement;if(!b||b.checkVisibility&&!b.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0})){e.style.display="none";return}const c=document.createRange();try{c.setStart(a,d),c.setEnd(a,Math.min(p,a.nodeValue.length))}catch{e.remove(),T.delete(s);return}let r=c.getBoundingClientRect();if(!r.width&&!r.height&&(r=b.getBoundingClientRect()),!r.width&&!r.height){e.style.display="none";return}if(r.bottom<0||r.top>window.innerHeight||r.right<0||r.left>window.innerWidth){e.style.display="none";return}let i=b;for(;i&&i!==document.body&&i!==document.documentElement;){const k=window.getComputedStyle(i);if(k.overflow!=="visible"||k.overflowX!=="visible"||k.overflowY!=="visible"){const E=i.getBoundingClientRect();if(r.bottomE.bottom||r.rightE.right){e.style.display="none";return}}i=i.parentElement}e.style.display="flex";const h=r.left+(r.width||0)/2,w=r.top;e.style.left=`${h-e.offsetWidth/2}px`,e.style.top=`${w-e.offsetHeight-2}px`}function de(s,e){const{wrap:a,node:d,start:p,end:b}=s,c=d.nodeValue.slice(p+e.sigLen,b);let r="";if(e.cipher==="PLAIN")try{r=I.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=I.decodeToNumberArray(c,e.base);e.cipher==="SPECK48_96CTR"?r=oe(h,re(i)):e.cipher==="SPECK32_64ECB (insecure)"&&(r=ce(h,se(i)))}catch(h){console.error(h)}if(!r){alert("Decryption failed.");return}}if(r){const i=document.createRange();i.setStart(d,p),i.setEnd(d,b),i.deleteContents();const h=document.createElement("span");h.className="inzerosight-decoded",h.style.color="#00b4d8",h.style.fontWeight="600",h.textContent=` ${r} `,i.insertNode(h),a.remove(),T.delete(s)}}function F(s){if(!s||s.nodeType!==Node.TEXT_NODE)return;const e=s.nodeValue;if(!e||!e.includes(_))return;let a=0;for(;a{var b;return e[(b=p.parentElement)==null?void 0:b.tagName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});let d;for(;d=a.nextNode();)F(d)}$(document.body);let O;function P(){O||T.size===0||(O=requestAnimationFrame(()=>{O=null,T.forEach(W)}))}new MutationObserver(s=>{var e;for(const a of[...T])(!a.node.isConnected||!((e=a.node.nodeValue)!=null&&e.includes(_)))&&(a.wrap.remove(),T.delete(a));for(const a of s)if(a.type==="characterData")F(a.target);else for(const d of a.addedNodes)d.nodeType===Node.TEXT_NODE?F(d):d.nodeType===Node.ELEMENT_NODE&&d.id!=="in0-host"&&$(d);P()}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0}),window.addEventListener("scroll",P,{capture:!0,passive:!0}),window.addEventListener("resize",P,{passive:!0})})(); + `,v.appendChild(s),(document.body||document.documentElement).appendChild(R)}function fe(s,e,a,p,b){for(const g of C)if(g.node===s&&g.start===a)return;ue();const d=document.createElement("div");d.className="in0-wrap";const l=document.createElement("button");l.className="in0-btn",l.textContent=e.cipher==="PLAIN"?"Decode":"Decrypt";const o=document.createElement("span");o.className="in0-badge",o.textContent="Ø",l.appendChild(o);const i=document.createElement("div");i.className="in0-arrow",d.appendChild(l),d.appendChild(i),v.appendChild(d);const h={wrap:d,node:s,start:a,endNode:p,end:b};C.add(h),l.onclick=()=>de(h,e),$(h)}function $(s){const{wrap:e,node:a,start:p,endNode:b,end:d}=s;if(!a.isConnected||!b.isConnected){e.remove(),C.delete(s);return}const l=a.parentElement;if(!l||l.checkVisibility&&!l.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0})){e.style.display="none";return}const o=document.createRange();try{o.setStart(a,p),o.setEnd(b,Math.min(d,b.nodeValue.length))}catch{e.remove(),C.delete(s);return}let i=o.getBoundingClientRect();if(!i.width&&!i.height&&(i=l.getBoundingClientRect()),!i.width&&!i.height){e.style.display="none";return}if(i.bottom<0||i.top>window.innerHeight||i.right<0||i.left>window.innerWidth){e.style.display="none";return}let h=l;for(;h&&h!==document.body&&h!==document.documentElement;){const E=window.getComputedStyle(h);if(E.overflow!=="visible"||E.overflowX!=="visible"||E.overflowY!=="visible"){const A=h.getBoundingClientRect();if(i.bottomA.bottom||i.rightA.right){e.style.display="none";return}}h=h.parentElement}e.style.display="flex";const g=i.left+(i.width||0)/2,y=i.top;e.style.left=`${g-e.offsetWidth/2}px`,e.style.top=`${y-e.offsetHeight-2}px`}function de(s,e){const{wrap:a,node:p,start:b,endNode:d,end:l}=s,o=document.createRange();o.setStart(p,b),o.setEnd(d,l);const i=o.toString().slice(e.sigLen);let h="";if(e.cipher==="PLAIN")try{h=I.decodeToString(i,e.base)}catch(g){console.error(g)}else{const g=prompt(`inØsight: enter password (${e.cipher}):`);if(!g)return;try{const y=I.decodeToNumberArray(i,e.base);e.cipher==="SPECK48_96CTR"?h=ie(y,oe(g)):e.cipher==="SPECK32_64ECB (insecure)"&&(h=ce(y,le(g)))}catch(y){console.error(y)}if(!h){alert("Decryption failed.");return}}if(h){o.deleteContents();const g=document.createElement("span");g.className="inzerosight-decoded",g.style.color="#00b4d8",g.style.fontWeight="600",g.textContent=` ${h} `,o.insertNode(g),a.remove(),C.delete(s)}}function pe(s,e,a){let p=s,b=K(s.nodeValue,e,a);for(;b===p.nodeValue.length;){let d=p.nextSibling,l=!1;for(;(d==null?void 0:d.nodeType)===Node.ELEMENT_NODE&&d.tagName==="WBR";)l=!0,d=d.nextSibling;if(!l||(d==null?void 0:d.nodeType)!==Node.TEXT_NODE)break;const o=K(d.nodeValue,e,0);if(!o)break;p=d,b=o}return{endNode:p,end:b}}function j(s){if(!s||s.nodeType!==Node.TEXT_NODE)return;const e=s.nodeValue;if(!e||!e.includes(O))return;let a=0;for(;a{var d;return e[(d=b.parentElement)==null?void 0:d.tagName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});let p;for(;p=a.nextNode();)j(p)}Y(document.body);let F;function P(){F||C.size===0||(F=requestAnimationFrame(()=>{F=null,C.forEach($)}))}new MutationObserver(s=>{var e;for(const a of[...C])(!a.node.isConnected||!((e=a.node.nodeValue)!=null&&e.startsWith(O,a.start)))&&(a.wrap.remove(),C.delete(a));for(const a of s)if(a.type==="characterData")j(a.target);else for(const p of a.addedNodes)p.nodeType===Node.TEXT_NODE?j(p):p.nodeType===Node.ELEMENT_NODE&&p.id!=="in0-host"&&Y(p);P()}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0}),window.addEventListener("scroll",P,{capture:!0,passive:!0}),window.addEventListener("resize",P,{passive:!0})})(); diff --git a/dist/firefox/index.html b/dist/firefox/index.html index 1c0d4b5..474b1b8 100644 --- a/dist/firefox/index.html +++ b/dist/firefox/index.html @@ -7,14 +7,14 @@ -

inØsight 3.0.0source

+

inØsight 3.1.0source

diff --git a/dist/firefox/manifest.json b/dist/firefox/manifest.json index f445483..3f3f570 100644 --- a/dist/firefox/manifest.json +++ b/dist/firefox/manifest.json @@ -1 +1 @@ -{"name":"inØsight","version":"3.0.0","author":"planetrenox@pm.me","homepage_url":"https://github.com/inzerosight/inzerosight","description":"Communicate undetected in plain sight.","icons":{"48":"icon_500.png"},"manifest_version":2,"browser_action":{"browser_style":false,"default_icon":"icon_500.png","default_title":"inØsight","default_popup":"index.html"},"content_security_policy":"script-src 'self'; style-src 'self';","browser_specific_settings":{"gecko":{"id":"{0a73f41c-c59c-404b-9e07-f7392fa830d4}"}},"content_scripts":[{"matches":[""],"js":["content.js"],"run_at":"document_idle"}]} \ No newline at end of file +{"name":"inØsight","version":"3.1.0","author":"planetrenox@pm.me","homepage_url":"https://github.com/inzerosight/inzerosight","description":"Communicate undetected in plain sight.","icons":{"48":"icon_500.png"},"manifest_version":2,"browser_action":{"browser_style":false,"default_icon":"icon_500.png","default_title":"inØsight","default_popup":"index.html"},"content_security_policy":"script-src 'self'; style-src 'self';","browser_specific_settings":{"gecko":{"id":"{0a73f41c-c59c-404b-9e07-f7392fa830d4}"}},"content_scripts":[{"matches":[""],"js":["content.js"],"run_at":"document_idle"}]} \ No newline at end of file diff --git a/dist/inzerosight-chrome.zip b/dist/inzerosight-chrome.zip index dddb2e2..9821c81 100644 Binary files a/dist/inzerosight-chrome.zip and b/dist/inzerosight-chrome.zip differ diff --git a/dist/inzerosight-firefox.zip b/dist/inzerosight-firefox.zip index 1b0cb74..0644fcb 100644 Binary files a/dist/inzerosight-firefox.zip and b/dist/inzerosight-firefox.zip differ diff --git a/dist/web/index.html b/dist/web/index.html index b4ac9af..5411506 100644 --- a/dist/web/index.html +++ b/dist/web/index.html @@ -7,14 +7,14 @@ -

inØsight 3.0.0source

+

inØsight 3.1.0source

diff --git a/index.html b/index.html index e4b9b6c..bffc6ff 100644 --- a/index.html +++ b/index.html @@ -6,14 +6,14 @@ -

inØsight 3.0.0source

+

inØsight 3.1.0source

diff --git a/package.json b/package.json index a24e164..2abdb99 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inzerosight", - "version": "3.0.0", + "version": "3.1.0", "private": true, "type": "module", "scripts": { diff --git a/vite.config.js b/vite.config.js index 40a4d35..afd3e5d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,7 +12,7 @@ export default defineConfig(async ({ mode }) => { manifest: () => { const base = { name: "in\u00D8sight", - version: "3.0.0", + version: "3.1.0", author: "planetrenox@pm.me", homepage_url: "https://github.com/inzerosight/inzerosight", description: "Communicate undetected in plain sight.",