PageSourceSearch

https://lawg.ai/assets/BpjalXBA.js

js lawg.ai collected 2026-10-05 15:12:49 UTC 1,593 bytes, 1 lines download raw bytes

1class e extends Error{}function t(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(r){return atob(t)}}function r(r,n){if("string"!=typeof r)throw new e("Invalid token specified: must be a string");n||(n={});const i=!0===n.header?0:1,o=r.split(".")[i];if("string"!=typeof o)throw new e(`Invalid token specified: missing part #${i+1}`);let s;try{s=t(o)}catch(a){throw new e(`Invalid token specified: invalid base64 for part #${i+1} (${a.message})`)}try{return JSON.parse(s)}catch(a){throw new e(`Invalid token specified: invalid json for part #${i+1} (${a.message})`)}}function n(e){try{return 1e3*(r(e).exp??0)}catch{return 0}}function i(e){try{const t=r(e);return"string"==typeof t.o?.id&&t.o.id?t.o.id:null}catch{return null}}function o(e){try{const t=r(e);if("string"!=typeof t.sub||!t.sub.trim()||"string"!=typeof t.sid||!t.sid.trim()||"number"!=typeof t.exp||!Number.isFinite(t.exp)||!Number.isFinite(1e3*t.exp)||1e3*t.exp<=Date.now()||void 0!==t.sts&&"active"!==t.sts)return null;if(t.org_id&&t.o?.id&&t.org_id!==t.o.id)return null;const n=t.org_id||t.o?.id||null;return null===n||"string"==typeof n&&n.trim()?{jwt:e,expiresAt:1e3*t.exp,identity:JSON.stringify([t.sub,t.sid,n])}:null}catch{return null}}e.prototype.name="InvalidTokenError";export{i as a,n as b,o as p};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.