@learncard/vpqr-plugin 1.1.31 → 1.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2027,9 +2027,8 @@ function inspect(data, options) {
2027
2027
  __name(inspect, "inspect");
2028
2028
 
2029
2029
  // ../../../node_modules/js-base64/base64.mjs
2030
- var version = "3.8.0";
2030
+ var version = "3.9.3";
2031
2031
  var VERSION = version;
2032
- var _hasBuffer = typeof Buffer === "function";
2033
2032
  var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
2034
2033
  var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
2035
2034
  var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
@@ -2055,8 +2054,8 @@ var btoaPolyfill = /* @__PURE__ */ __name((bin) => {
2055
2054
  }
2056
2055
  return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
2057
2056
  }, "btoaPolyfill");
2058
- var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : _hasBuffer ? (bin) => Buffer.from(bin, "binary").toString("base64") : btoaPolyfill;
2059
- var _fromUint8Array = _hasBuffer ? (u8a) => Buffer.from(u8a).toString("base64") : (u8a) => {
2057
+ var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
2058
+ var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? (u8a) => u8a.toBase64() : (u8a) => {
2060
2059
  const maxargs = 4096;
2061
2060
  let strs = [];
2062
2061
  for (let i = 0, l = u8a.length; i < l; i += maxargs) {
@@ -2074,9 +2073,9 @@ var cb_utob = /* @__PURE__ */ __name((c) => {
2074
2073
  return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
2075
2074
  }
2076
2075
  }, "cb_utob");
2077
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
2076
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
2078
2077
  var utob = /* @__PURE__ */ __name((u) => u.replace(re_utob, cb_utob), "utob");
2079
- var _encode = _hasBuffer ? (s) => Buffer.from(s, "utf8").toString("base64") : _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
2078
+ var _encode = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
2080
2079
  var encode2 = /* @__PURE__ */ __name((src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src), "encode");
2081
2080
  var encodeURI = /* @__PURE__ */ __name((src) => encode2(src, true), "encodeURI");
2082
2081
  var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
@@ -2111,10 +2110,10 @@ var atobPolyfill = /* @__PURE__ */ __name((asc) => {
2111
2110
  }
2112
2111
  return binArray.join("");
2113
2112
  }, "atobPolyfill");
2114
- var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : _hasBuffer ? (asc) => Buffer.from(asc, "base64").toString("binary") : atobPolyfill;
2115
- var _toUint8Array = _hasBuffer ? (a) => _U8Afrom(Buffer.from(a, "base64")) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
2113
+ var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
2114
+ var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
2116
2115
  var toUint8Array = /* @__PURE__ */ __name((a) => _toUint8Array(_unURI(a)), "toUint8Array");
2117
- var _decode = _hasBuffer ? (a) => Buffer.from(a, "base64").toString("utf8") : _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
2116
+ var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
2118
2117
  var _unURI = /* @__PURE__ */ __name((a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/")), "_unURI");
2119
2118
  var decode2 = /* @__PURE__ */ __name((src) => _decode(_unURI(src)), "decode");
2120
2119
  var isValid = /* @__PURE__ */ __name((src) => {