@prosopo/procaptcha-bundle 0.3.36 → 0.3.37
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.
- package/dist/bundle/{Captcha-1upZQDQF.js → Captcha-Cv4jnpZb.js} +18 -17
- package/dist/bundle/{ProcaptchaWidget-wUItdOkp.js → ProcaptchaWidget-O71j1WKI.js} +135 -137
- package/dist/bundle/{index-D8kIYYhv.js → index-ChKfVXCq.js} +57 -54
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/{utils-D1z4XROV.js → utils-C0DFj2UN.js} +11697 -11636
- package/dist/cjs/procaptcha-pow/dist/Services/Manager.cjs +3 -1
- package/package.json +7 -7
- package/stats.html +1 -1
|
@@ -4827,8 +4827,8 @@ function bu(e, t, n) {
|
|
|
4827
4827
|
throw new Error(`Index ${t} smaller than 0`);
|
|
4828
4828
|
return e[t];
|
|
4829
4829
|
}
|
|
4830
|
-
const iy = (e) => Array.isArray(e), N0 = (e) => iy(e) ? Lm(new Uint8Array(e)) : e.toString(), oy = Y.lazy(async () => import("./ProcaptchaWidget-
|
|
4831
|
-
var sy = "1.9.
|
|
4830
|
+
const iy = (e) => Array.isArray(e), N0 = (e) => iy(e) ? Lm(new Uint8Array(e)) : e.toString(), oy = Y.lazy(async () => import("./ProcaptchaWidget-O71j1WKI.js")), ay = (e) => D(Y.Suspense, { fallback: D(Os, { darkMode: e.config.theme }), children: D(oy, { config: e.config, callbacks: e.callbacks }) }), Kd = ay, ly = Y.lazy(async () => import("./Captcha-Cv4jnpZb.js")), Gd = (e) => D(Y.Suspense, { fallback: D(Os, { darkMode: e.config.theme }), children: D(ly, { config: e.config, callbacks: e.callbacks }) });
|
|
4831
|
+
var sy = "1.9.1", V = {
|
|
4832
4832
|
// Object is used instead of Typescript enum to avoid emitting IIFE which might be affected by further tree-shaking.
|
|
4833
4833
|
// See example of compiled enums https://stackoverflow.com/q/47363996)
|
|
4834
4834
|
Awesomium: "awesomium",
|
|
@@ -4849,7 +4849,7 @@ var sy = "1.9.0", V = {
|
|
|
4849
4849
|
WebDriver: "webdriver",
|
|
4850
4850
|
HeadlessChrome: "headless_chrome",
|
|
4851
4851
|
Unknown: "unknown"
|
|
4852
|
-
},
|
|
4852
|
+
}, te = (
|
|
4853
4853
|
/** @class */
|
|
4854
4854
|
function(e) {
|
|
4855
4855
|
Lv(t, e);
|
|
@@ -4888,7 +4888,7 @@ function cy(e) {
|
|
|
4888
4888
|
case 2:
|
|
4889
4889
|
return l[s] = (d.value = h.sent(), d.state = 0, d), [3, 4];
|
|
4890
4890
|
case 3:
|
|
4891
|
-
return u = h.sent(), u instanceof
|
|
4891
|
+
return u = h.sent(), u instanceof te ? t[o] = {
|
|
4892
4892
|
state: u.state,
|
|
4893
4893
|
error: "".concat(u.name, ": ").concat(u.message)
|
|
4894
4894
|
} : t[o] = {
|
|
@@ -5113,15 +5113,15 @@ var Ry = {
|
|
|
5113
5113
|
function Iy() {
|
|
5114
5114
|
var e = navigator.appVersion;
|
|
5115
5115
|
if (e == null)
|
|
5116
|
-
throw new
|
|
5116
|
+
throw new te(-1, "navigator.appVersion is undefined");
|
|
5117
5117
|
return e;
|
|
5118
5118
|
}
|
|
5119
5119
|
function Ly() {
|
|
5120
5120
|
if (document.documentElement === void 0)
|
|
5121
|
-
throw new
|
|
5121
|
+
throw new te(-1, "document.documentElement is undefined");
|
|
5122
5122
|
var e = document.documentElement;
|
|
5123
5123
|
if (typeof e.getAttributeNames != "function")
|
|
5124
|
-
throw new
|
|
5124
|
+
throw new te(-2, "document.documentElement.getAttributeNames is not a function");
|
|
5125
5125
|
return e.getAttributeNames();
|
|
5126
5126
|
}
|
|
5127
5127
|
function My() {
|
|
@@ -5131,14 +5131,14 @@ function My() {
|
|
|
5131
5131
|
if (e instanceof Error && e.stack != null)
|
|
5132
5132
|
return e.stack.toString();
|
|
5133
5133
|
}
|
|
5134
|
-
throw new
|
|
5134
|
+
throw new te(-3, "errorTrace signal unexpected behaviour");
|
|
5135
5135
|
}
|
|
5136
5136
|
function zy() {
|
|
5137
5137
|
return eval.toString().length;
|
|
5138
5138
|
}
|
|
5139
5139
|
function jy() {
|
|
5140
5140
|
if (Function.prototype.bind === void 0)
|
|
5141
|
-
throw new
|
|
5141
|
+
throw new te(-2, "Function.prototype.bind is undefined");
|
|
5142
5142
|
return Function.prototype.bind.toString();
|
|
5143
5143
|
}
|
|
5144
5144
|
function Rs() {
|
|
@@ -5208,7 +5208,7 @@ function Uy() {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
function Vy() {
|
|
5210
5210
|
if (navigator.mimeTypes === void 0)
|
|
5211
|
-
throw new
|
|
5211
|
+
throw new te(-1, "navigator.mimeTypes is undefined");
|
|
5212
5212
|
for (var e = navigator.mimeTypes, t = Object.getPrototypeOf(e) === MimeTypeArray.prototype, n = 0; n < e.length; n++)
|
|
5213
5213
|
t && (t = Object.getPrototypeOf(e[n]) === MimeType.prototype);
|
|
5214
5214
|
return t;
|
|
@@ -5220,18 +5220,18 @@ function Zy() {
|
|
|
5220
5220
|
switch (n.label) {
|
|
5221
5221
|
case 0:
|
|
5222
5222
|
if (window.Notification === void 0)
|
|
5223
|
-
throw new
|
|
5223
|
+
throw new te(-1, "window.Notification is undefined");
|
|
5224
5224
|
if (navigator.permissions === void 0)
|
|
5225
|
-
throw new
|
|
5225
|
+
throw new te(-1, "navigator.permissions is undefined");
|
|
5226
5226
|
if (e = navigator.permissions, typeof e.query != "function")
|
|
5227
|
-
throw new
|
|
5227
|
+
throw new te(-2, "navigator.permissions.query is not a function");
|
|
5228
5228
|
n.label = 1;
|
|
5229
5229
|
case 1:
|
|
5230
5230
|
return n.trys.push([1, 3, , 4]), [4, e.query({ name: "notifications" })];
|
|
5231
5231
|
case 2:
|
|
5232
5232
|
return t = n.sent(), [2, window.Notification.permission === "denied" && t.state === "prompt"];
|
|
5233
5233
|
case 3:
|
|
5234
|
-
throw n.sent(), new
|
|
5234
|
+
throw n.sent(), new te(-3, "notificationPermissions signal unexpected behaviour");
|
|
5235
5235
|
case 4:
|
|
5236
5236
|
return [
|
|
5237
5237
|
2
|
|
@@ -5243,34 +5243,37 @@ function Zy() {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
function Wy() {
|
|
5245
5245
|
if (navigator.plugins === void 0)
|
|
5246
|
-
throw new
|
|
5246
|
+
throw new te(-1, "navigator.plugins is undefined");
|
|
5247
5247
|
if (window.PluginArray === void 0)
|
|
5248
|
-
throw new
|
|
5248
|
+
throw new te(-1, "window.PluginArray is undefined");
|
|
5249
5249
|
return navigator.plugins instanceof PluginArray;
|
|
5250
5250
|
}
|
|
5251
5251
|
function by() {
|
|
5252
5252
|
if (navigator.plugins === void 0)
|
|
5253
|
-
throw new
|
|
5253
|
+
throw new te(-1, "navigator.plugins is undefined");
|
|
5254
5254
|
if (navigator.plugins.length === void 0)
|
|
5255
|
-
throw new
|
|
5255
|
+
throw new te(-3, "navigator.plugins.length is undefined");
|
|
5256
5256
|
return navigator.plugins.length;
|
|
5257
5257
|
}
|
|
5258
5258
|
function By() {
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5259
|
+
var e = window.process, t = "window.process is";
|
|
5260
|
+
if (e === void 0)
|
|
5261
|
+
throw new te(-1, "".concat(t, " undefined"));
|
|
5262
|
+
if (e && typeof e != "object")
|
|
5263
|
+
throw new te(-3, "".concat(t, " not an object"));
|
|
5264
|
+
return e;
|
|
5262
5265
|
}
|
|
5263
5266
|
function Hy() {
|
|
5264
5267
|
var e = navigator.productSub;
|
|
5265
5268
|
if (e === void 0)
|
|
5266
|
-
throw new
|
|
5269
|
+
throw new te(-1, "navigator.productSub is undefined");
|
|
5267
5270
|
return e;
|
|
5268
5271
|
}
|
|
5269
5272
|
function Qy() {
|
|
5270
5273
|
if (navigator.connection === void 0)
|
|
5271
|
-
throw new
|
|
5274
|
+
throw new te(-1, "navigator.connection is undefined");
|
|
5272
5275
|
if (navigator.connection.rtt === void 0)
|
|
5273
|
-
throw new
|
|
5276
|
+
throw new te(-1, "navigator.connection.rtt is undefined");
|
|
5274
5277
|
return navigator.connection.rtt;
|
|
5275
5278
|
}
|
|
5276
5279
|
function Ky() {
|
|
@@ -5278,27 +5281,27 @@ function Ky() {
|
|
|
5278
5281
|
}
|
|
5279
5282
|
function Gy() {
|
|
5280
5283
|
if (navigator.webdriver == null)
|
|
5281
|
-
throw new
|
|
5284
|
+
throw new te(-1, "navigator.webdriver is undefined");
|
|
5282
5285
|
return navigator.webdriver;
|
|
5283
5286
|
}
|
|
5284
5287
|
function qy() {
|
|
5285
5288
|
var e = document.createElement("canvas");
|
|
5286
5289
|
if (typeof e.getContext != "function")
|
|
5287
|
-
throw new
|
|
5290
|
+
throw new te(-2, "HTMLCanvasElement.getContext is not a function");
|
|
5288
5291
|
var t = e.getContext("webgl");
|
|
5289
5292
|
if (t === null)
|
|
5290
|
-
throw new
|
|
5293
|
+
throw new te(-4, "WebGLRenderingContext is null");
|
|
5291
5294
|
if (typeof t.getParameter != "function")
|
|
5292
|
-
throw new
|
|
5295
|
+
throw new te(-2, "WebGLRenderingContext.getParameter is not a function");
|
|
5293
5296
|
var n = t.getParameter(t.VENDOR), r = t.getParameter(t.RENDERER);
|
|
5294
5297
|
return { vendor: n, renderer: r };
|
|
5295
5298
|
}
|
|
5296
5299
|
function Yy() {
|
|
5297
5300
|
if (window.external === void 0)
|
|
5298
|
-
throw new
|
|
5301
|
+
throw new te(-1, "window.external is undefined");
|
|
5299
5302
|
var e = window.external;
|
|
5300
5303
|
if (typeof e.toString != "function")
|
|
5301
|
-
throw new
|
|
5304
|
+
throw new te(-2, "window.external.toString is not a function");
|
|
5302
5305
|
return e.toString();
|
|
5303
5306
|
}
|
|
5304
5307
|
function Xy() {
|
|
@@ -7282,7 +7285,7 @@ function Qf(e, t) {
|
|
|
7282
7285
|
if (Oo)
|
|
7283
7286
|
throw e = Fl, Oo = !1, Fl = null, e;
|
|
7284
7287
|
}
|
|
7285
|
-
function
|
|
7288
|
+
function ne(e, t) {
|
|
7286
7289
|
var n = t[Gl];
|
|
7287
7290
|
n === void 0 && (n = t[Gl] = /* @__PURE__ */ new Set());
|
|
7288
7291
|
var r = e + "__bubble";
|
|
@@ -9159,7 +9162,7 @@ jp = function(e, t, n, r) {
|
|
|
9159
9162
|
n
|
|
9160
9163
|
)), n = s;
|
|
9161
9164
|
else
|
|
9162
|
-
u === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, l = l ? l.__html : void 0, s != null && l !== s && (o = o || []).push(u, s)) : u === "children" ? typeof s != "string" && typeof s != "number" || (o = o || []).push(u, "" + s) : u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && (oi.hasOwnProperty(u) ? (s != null && u === "onScroll" &&
|
|
9165
|
+
u === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, l = l ? l.__html : void 0, s != null && l !== s && (o = o || []).push(u, s)) : u === "children" ? typeof s != "string" && typeof s != "number" || (o = o || []).push(u, "" + s) : u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && (oi.hasOwnProperty(u) ? (s != null && u === "onScroll" && ne("scroll", e), o || l === s || (o = [])) : (o = o || []).push(u, s));
|
|
9163
9166
|
}
|
|
9164
9167
|
n && (o = o || []).push("style", n);
|
|
9165
9168
|
var u = o;
|
|
@@ -9229,40 +9232,40 @@ function V1(e, t, n) {
|
|
|
9229
9232
|
var o = t.memoizedProps;
|
|
9230
9233
|
switch (r[yt] = t, r[mi] = o, e = (t.mode & 1) !== 0, n) {
|
|
9231
9234
|
case "dialog":
|
|
9232
|
-
|
|
9235
|
+
ne("cancel", r), ne("close", r);
|
|
9233
9236
|
break;
|
|
9234
9237
|
case "iframe":
|
|
9235
9238
|
case "object":
|
|
9236
9239
|
case "embed":
|
|
9237
|
-
|
|
9240
|
+
ne("load", r);
|
|
9238
9241
|
break;
|
|
9239
9242
|
case "video":
|
|
9240
9243
|
case "audio":
|
|
9241
9244
|
for (i = 0; i < Or.length; i++)
|
|
9242
|
-
|
|
9245
|
+
ne(Or[i], r);
|
|
9243
9246
|
break;
|
|
9244
9247
|
case "source":
|
|
9245
|
-
|
|
9248
|
+
ne("error", r);
|
|
9246
9249
|
break;
|
|
9247
9250
|
case "img":
|
|
9248
9251
|
case "image":
|
|
9249
9252
|
case "link":
|
|
9250
|
-
|
|
9253
|
+
ne(
|
|
9251
9254
|
"error",
|
|
9252
9255
|
r
|
|
9253
|
-
),
|
|
9256
|
+
), ne("load", r);
|
|
9254
9257
|
break;
|
|
9255
9258
|
case "details":
|
|
9256
|
-
|
|
9259
|
+
ne("toggle", r);
|
|
9257
9260
|
break;
|
|
9258
9261
|
case "input":
|
|
9259
|
-
Gu(r, o),
|
|
9262
|
+
Gu(r, o), ne("invalid", r);
|
|
9260
9263
|
break;
|
|
9261
9264
|
case "select":
|
|
9262
|
-
r._wrapperState = { wasMultiple: !!o.multiple },
|
|
9265
|
+
r._wrapperState = { wasMultiple: !!o.multiple }, ne("invalid", r);
|
|
9263
9266
|
break;
|
|
9264
9267
|
case "textarea":
|
|
9265
|
-
Yu(r, o),
|
|
9268
|
+
Yu(r, o), ne("invalid", r);
|
|
9266
9269
|
}
|
|
9267
9270
|
zl(n, o), i = null;
|
|
9268
9271
|
for (var a in o)
|
|
@@ -9272,7 +9275,7 @@ function V1(e, t, n) {
|
|
|
9272
9275
|
r.textContent,
|
|
9273
9276
|
l,
|
|
9274
9277
|
e
|
|
9275
|
-
), i = ["children", "" + l]) : oi.hasOwnProperty(a) && l != null && a === "onScroll" &&
|
|
9278
|
+
), i = ["children", "" + l]) : oi.hasOwnProperty(a) && l != null && a === "onScroll" && ne("scroll", r);
|
|
9276
9279
|
}
|
|
9277
9280
|
switch (n) {
|
|
9278
9281
|
case "input":
|
|
@@ -9293,44 +9296,44 @@ function V1(e, t, n) {
|
|
|
9293
9296
|
e: {
|
|
9294
9297
|
switch (a = jl(n, r), n) {
|
|
9295
9298
|
case "dialog":
|
|
9296
|
-
|
|
9299
|
+
ne("cancel", e), ne("close", e), i = r;
|
|
9297
9300
|
break;
|
|
9298
9301
|
case "iframe":
|
|
9299
9302
|
case "object":
|
|
9300
9303
|
case "embed":
|
|
9301
|
-
|
|
9304
|
+
ne("load", e), i = r;
|
|
9302
9305
|
break;
|
|
9303
9306
|
case "video":
|
|
9304
9307
|
case "audio":
|
|
9305
9308
|
for (i = 0; i < Or.length; i++)
|
|
9306
|
-
|
|
9309
|
+
ne(Or[i], e);
|
|
9307
9310
|
i = r;
|
|
9308
9311
|
break;
|
|
9309
9312
|
case "source":
|
|
9310
|
-
|
|
9313
|
+
ne("error", e), i = r;
|
|
9311
9314
|
break;
|
|
9312
9315
|
case "img":
|
|
9313
9316
|
case "image":
|
|
9314
9317
|
case "link":
|
|
9315
|
-
|
|
9318
|
+
ne(
|
|
9316
9319
|
"error",
|
|
9317
9320
|
e
|
|
9318
|
-
),
|
|
9321
|
+
), ne("load", e), i = r;
|
|
9319
9322
|
break;
|
|
9320
9323
|
case "details":
|
|
9321
|
-
|
|
9324
|
+
ne("toggle", e), i = r;
|
|
9322
9325
|
break;
|
|
9323
9326
|
case "input":
|
|
9324
|
-
Gu(e, r), i = Ol(e, r),
|
|
9327
|
+
Gu(e, r), i = Ol(e, r), ne("invalid", e);
|
|
9325
9328
|
break;
|
|
9326
9329
|
case "option":
|
|
9327
9330
|
i = r;
|
|
9328
9331
|
break;
|
|
9329
9332
|
case "select":
|
|
9330
|
-
e._wrapperState = { wasMultiple: !!r.multiple }, i = se({}, r, { value: void 0 }),
|
|
9333
|
+
e._wrapperState = { wasMultiple: !!r.multiple }, i = se({}, r, { value: void 0 }), ne("invalid", e);
|
|
9331
9334
|
break;
|
|
9332
9335
|
case "textarea":
|
|
9333
|
-
Yu(e, r), i = Ll(e, r),
|
|
9336
|
+
Yu(e, r), i = Ll(e, r), ne("invalid", e);
|
|
9334
9337
|
break;
|
|
9335
9338
|
default:
|
|
9336
9339
|
i = r;
|
|
@@ -9339,7 +9342,7 @@ function V1(e, t, n) {
|
|
|
9339
9342
|
for (o in l)
|
|
9340
9343
|
if (l.hasOwnProperty(o)) {
|
|
9341
9344
|
var s = l[o];
|
|
9342
|
-
o === "style" ? ff(e, s) : o === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, s != null && cf(e, s)) : o === "children" ? typeof s == "string" ? (n !== "textarea" || s !== "") && ai(e, s) : typeof s == "number" && ai(e, "" + s) : o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus" && (oi.hasOwnProperty(o) ? s != null && o === "onScroll" &&
|
|
9345
|
+
o === "style" ? ff(e, s) : o === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, s != null && cf(e, s)) : o === "children" ? typeof s == "string" ? (n !== "textarea" || s !== "") && ai(e, s) : typeof s == "number" && ai(e, "" + s) : o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus" && (oi.hasOwnProperty(o) ? s != null && o === "onScroll" && ne("scroll", e) : s != null && Ms(e, o, s, a));
|
|
9343
9346
|
}
|
|
9344
9347
|
switch (n) {
|
|
9345
9348
|
case "input":
|