PageSourceSearch

https://referware.vercel.app/_next/static/chunks/4239.7f0b87d47c82a5a6.js

js referware.vercel.app collected 2026-10-03 07:36:24 UTC 3,891 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{89996:function(){},44239:function(t,r,e){"use strict";e.r(r),e.d(r,{signWithApiKey:function(){return u}});var n=e(89996),o=e(77857),i=e(9109).Buffer;let u=async t=>{let{content:r,publicKey:e,privateKey:u}=t,c=n.createPrivateKey({key:(0,o.Y)({uncompressedPrivateKeyHex:u,compressedPublicKeyHex:e}),format:"jwk"}),f=n.createSign("SHA256");return f.write(i.from(r)),f.end(),f.sign(c,"hex")}},77857:function(t,r,e){"use strict";function n(t,r){let e=btoa(function(t){let r="";for(let e=0;e<t.length;e+=1)r+=String.fromCharCode(t[e]);return r}(t)).replace(/=/g,"");return r?e.replace(/\+/g,"-").replace(/\//g,"_"):e}/**
2 * Code modified from https://github.com/google/tink/blob/6f74b99a2bfe6677e3670799116a57268fd067fa/javascript/subtle/elliptic_curves.ts
3 *
4 * @license
5 * Copyright 2020 Google LLC
6 * SPDX-License-Identifier: Apache-2.0
7 */function o(){return BigInt("115792089210356248762697446949407573530086143415290314195533631308867097853951")}function i(t){let r=t.toString(16);return(/**
8 * Code modified from https://github.com/google/tink/blob/6f74b99a2bfe6677e3670799116a57268fd067fa/javascript/subtle/bytes.ts
9 *
10 * @license
11 * Copyright 2020 Google LLC
12 * SPDX-License-Identifier: Apache-2.0
13 */function(t){if(t.length%2!=0)throw Error("Hex string length must be multiple of 2");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=parseInt(t.substring(e,e+2),16);return r}(r=r.length%2==0?r:"0"+r))}function u(t,r){return(t&BigInt(1)<<BigInt(r))!==BigInt(0)}e.d(r,{Y:function(){return f}});var c=e(55570);function f(t){let{uncompressedPrivateKeyHex:r,compressedPublicKeyHex:e}=t,f=function(t){if(33!==t.length)throw Error("compressed point has wrong length");if(2!==t[0]&&3!==t[0])throw Error("invalid format");let r=3===t[0],e=BigInt("0x"+function(t){let r="";for(let e=0;e<t.length;e++){let n=t[e].toString(16);r+=n.length>1?n:"0"+n}return r}(t.subarray(1,t.length))),c=o();if(e<BigInt(0)||e>=c)throw Error("x is out of range");let f=function(t,r){let e=o(),n=function(t,r){if(r<=BigInt(0))throw Error("p must be positive");let e=t%r;if(u(r,0)&&u(r,1)){let t=function(t,r,e){if(r===BigInt(0))return BigInt(1);let n=t,o=r.toString(2);for(let r=1;r<o.length;++r)n=n*n%e,"1"===o[r]&&(n=n*t%e);return n}(e,r+BigInt(1)>>BigInt(2),r);if(t*t%r!==e)throw Error("could not find a modular square root");return t}throw Error("unsupported modulus value")}(((t*t+(e-BigInt(3)))*t+BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"))%e,e);return r!==u(n,0)&&(n=(e-n)%e),n}(e,r);return{kty:"EC",crv:"P-256",x:n(i(e),!0),y:n(i(f),!0),ext:!0}}(l(e));return f.d=function(t){let r=l(t);return(0,c.To)(r.reduce((t,r)=>t+String.fromCharCode(r),""))}(r),f}function l(t){if(0===t.length||t.length%2!=0||/[^a-fA-F0-9]/u.test(t))throw Error(`Invalid hex string: ${JSON.stringify(t)}`);return Uint8Array.from(t.match(/.{2}/g).map(t=>parseInt(t,16)))}},55570:function(t,r,e){"use strict";function n(t){return(function(t){let r;if(0==arguments.length)throw TypeError("1 argument required, but only 0 present.");for(r=0,t=`${t}`;r<t.length;r++)if(t.charCodeAt(r)>255)throw Error(`InvalidCharacterError: found code point greater than 255:${t.charCodeAt(r)} at position ${r}`);let e="";for(r=0;r<t.length;r+=3){let n=[void 0,void 0,void 0,void 0];n[0]=t.charCodeAt(r)>>2,n[1]=(3&t.charCodeAt(r))<<4,t.length>r+1&&(n[1]|=t.charCodeAt(r+1)>>4,n[2]=(15&t.charCodeAt(r+1))<<2),t.length>r+2&&(n[2]|=t.charCodeAt(r+2)>>6,n[3]=63&t.charCodeAt(r+2));for(let t=0;t<n.length;t++)void 0===n[t]?e+="=":e+=function(t){if(t>=0&&t<64)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]}(n[t])}return e})(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function o(t){return t.reduce((t,r)=>t+r.toString(16).padStart(2,"0"),"")}e.d(r,{To:function(){return n},fv:function(){return o}})}}]);

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.