@dbmx/confy 0.0.25 → 0.0.27
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/esm/_virtual/index12.js +2 -2
- package/esm/_virtual/index13.js +2 -2
- package/esm/_virtual/index14.js +4 -0
- package/esm/_virtual/index14.js.map +1 -0
- package/esm/_virtual/index15.js +4 -0
- package/esm/_virtual/index15.js.map +1 -0
- package/esm/_virtual/index16.js +4 -0
- package/esm/_virtual/index16.js.map +1 -0
- package/esm/components/AuthOTP/ConfirmCode/index.js +22 -10
- package/esm/components/AuthOTP/ConfirmCode/index.js.map +1 -1
- package/esm/components/AuthOTP/index.js +6 -2
- package/esm/components/AuthOTP/index.js.map +1 -1
- package/esm/forms/SixDigitField/index.js +24 -13
- package/esm/forms/SixDigitField/index.js.map +1 -1
- package/esm/hooks/token.js +9 -0
- package/esm/hooks/token.js.map +1 -0
- package/esm/lib/api/auth.js +4 -4
- package/esm/lib/api/auth.js.map +1 -1
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/implementation.js +66 -0
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/implementation.js.map +1 -0
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/index.js +7 -0
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/has-tostringtag/shams.js +9 -0
- package/esm/node_modules/deep-equal/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/index.js +53 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/callBound.js +16 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/callBound.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/index.js +53 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/get-intrinsic/index.js +307 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/get-intrinsic/index.js.map +1 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/implementation.js +75 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/implementation.js.map +1 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/index.js +16 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/index.js.map +1 -0
- package/esm/node_modules/has/src/index.js +7 -0
- package/esm/node_modules/has/src/index.js.map +1 -0
- package/esm/node_modules/hasown/node_modules/function-bind/implementation.js +75 -0
- package/esm/node_modules/hasown/node_modules/function-bind/implementation.js.map +1 -0
- package/esm/node_modules/hasown/node_modules/function-bind/index.js +16 -0
- package/esm/node_modules/hasown/node_modules/function-bind/index.js.map +1 -0
- package/esm/node_modules/is-bigint/index.js +1 -1
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/callBound.js +16 -0
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/callBound.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/index.js +53 -0
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/index.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/get-intrinsic/index.js +307 -0
- package/esm/node_modules/is-boolean-object/node_modules/get-intrinsic/index.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/shams.js +67 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-tostringtag/shams.js +18 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/is-number-object/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/is-number-object/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-number-object/node_modules/has-tostringtag/shams.js +9 -0
- package/esm/node_modules/is-number-object/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/is-string/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/is-string/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-string/node_modules/has-tostringtag/shams.js +9 -0
- package/esm/node_modules/is-string/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/is-symbol/index.js +1 -1
- package/esm/node_modules/is-symbol/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/is-symbol/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/is-symbol/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/is-symbol/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/callBound.js +16 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/callBound.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/index.js +53 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/get-intrinsic/index.js +307 -0
- package/esm/node_modules/side-channel/node_modules/get-intrinsic/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/index.js +469 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/util.inspect.js +6 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/util.inspect.js.map +1 -0
- package/esm/store/index.js +4 -6
- package/esm/store/index.js.map +1 -1
- package/package.json +4 -4
- package/esm/lib/api/apiKeys.js +0 -51
- package/esm/lib/api/apiKeys.js.map +0 -1
- package/esm/lib/api/dataBuckets.js +0 -18
- package/esm/lib/api/dataBuckets.js.map +0 -1
- package/esm/lib/api/jobs.js +0 -56
- package/esm/lib/api/jobs.js.map +0 -1
- package/esm/lib/api/members.js +0 -33
- package/esm/lib/api/members.js.map +0 -1
- package/esm/lib/api/people.js +0 -50
- package/esm/lib/api/people.js.map +0 -1
- package/esm/lib/api/roles.js +0 -17
- package/esm/lib/api/roles.js.map +0 -1
- package/esm/lib/api/routes.js +0 -43
- package/esm/lib/api/routes.js.map +0 -1
- package/esm/lib/api/servicesMap.js +0 -17
- package/esm/lib/api/servicesMap.js.map +0 -1
- package/esm/lib/api/spaces.js +0 -32
- package/esm/lib/api/spaces.js.map +0 -1
- package/esm/lib/api/storage.js +0 -94
- package/esm/lib/api/storage.js.map +0 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var implementation;
|
|
2
|
+
var hasRequiredImplementation;
|
|
3
|
+
|
|
4
|
+
function requireImplementation () {
|
|
5
|
+
if (hasRequiredImplementation) return implementation;
|
|
6
|
+
hasRequiredImplementation = 1;
|
|
7
|
+
|
|
8
|
+
/* eslint no-invalid-this: 1 */
|
|
9
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
10
|
+
var toStr = Object.prototype.toString;
|
|
11
|
+
var max = Math.max;
|
|
12
|
+
var funcType = '[object Function]';
|
|
13
|
+
var concatty = function concatty(a, b) {
|
|
14
|
+
var arr = [];
|
|
15
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
16
|
+
arr[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
19
|
+
arr[j + a.length] = b[j];
|
|
20
|
+
}
|
|
21
|
+
return arr;
|
|
22
|
+
};
|
|
23
|
+
var slicy = function slicy(arrLike, offset) {
|
|
24
|
+
var arr = [];
|
|
25
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
26
|
+
arr[j] = arrLike[i];
|
|
27
|
+
}
|
|
28
|
+
return arr;
|
|
29
|
+
};
|
|
30
|
+
var joiny = function (arr, joiner) {
|
|
31
|
+
var str = '';
|
|
32
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
33
|
+
str += arr[i];
|
|
34
|
+
if (i + 1 < arr.length) {
|
|
35
|
+
str += joiner;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return str;
|
|
39
|
+
};
|
|
40
|
+
implementation = function bind(that) {
|
|
41
|
+
var target = this;
|
|
42
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
43
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
44
|
+
}
|
|
45
|
+
var args = slicy(arguments, 1);
|
|
46
|
+
var bound;
|
|
47
|
+
var binder = function () {
|
|
48
|
+
if (this instanceof bound) {
|
|
49
|
+
var result = target.apply(this, concatty(args, arguments));
|
|
50
|
+
if (Object(result) === result) {
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
return target.apply(that, concatty(args, arguments));
|
|
56
|
+
};
|
|
57
|
+
var boundLength = max(0, target.length - args.length);
|
|
58
|
+
var boundArgs = [];
|
|
59
|
+
for (var i = 0; i < boundLength; i++) {
|
|
60
|
+
boundArgs[i] = '$' + i;
|
|
61
|
+
}
|
|
62
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
63
|
+
if (target.prototype) {
|
|
64
|
+
var Empty = function Empty() {};
|
|
65
|
+
Empty.prototype = target.prototype;
|
|
66
|
+
bound.prototype = new Empty();
|
|
67
|
+
Empty.prototype = null;
|
|
68
|
+
}
|
|
69
|
+
return bound;
|
|
70
|
+
};
|
|
71
|
+
return implementation;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { requireImplementation as __require };
|
|
75
|
+
//# sourceMappingURL=implementation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation.js","sources":["../../../../../../../node_modules/get-intrinsic/node_modules/function-bind/implementation.js"],"sourcesContent":["'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n"],"names":["ERROR_MESSAGE","toStr","Object","prototype","toString","max","Math","funcType","concatty","a","b","arr","i","length","j","slicy","arrLike","offset","joiny","joiner","str","module","bind","that","target","apply","TypeError","args","arguments","bound","binder","result","boundLength","boundArgs","Function","Empty"],"mappings":";;;;;;;AAEA;CAEA,IAAIA,aAAa,GAAG,iDAAiD;AACrE,CAAA,IAAIC,KAAK,GAAGC,MAAM,CAACC,SAAS,CAACC,QAAQ;AACrC,CAAA,IAAIC,GAAG,GAAGC,IAAI,CAACD,GAAG;CAClB,IAAIE,QAAQ,GAAG,mBAAmB;CAElC,IAAIC,QAAQ,GAAG,SAASA,QAAQA,CAACC,CAAC,EAAEC,CAAC,EAAE;GACnC,IAAIC,GAAG,GAAG,EAAE;AAEZ,GAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,CAAC,CAACI,MAAM,EAAED,CAAC,IAAI,CAAC,EAAE;KAClCD,GAAG,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;AACjB;AACA,GAAA,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,CAAC,CAACG,MAAM,EAAEC,CAAC,IAAI,CAAC,EAAE;KAClCH,GAAG,CAACG,CAAC,GAAGL,CAAC,CAACI,MAAM,CAAC,GAAGH,CAAC,CAACI,CAAC,CAAC;AAC5B;AAEA,GAAA,OAAOH,GAAG;EACb;CAED,IAAII,KAAK,GAAG,SAASA,KAAKA,CAACC,OAAO,EAAEC,MAAM,EAAE;GACxC,IAAIN,GAAG,GAAG,EAAE;GACZ,KAAK,IAAIC,CAAC,GAAGK,MAAW,EAAEH,CAAC,GAAG,CAAC,EAAEF,CAAC,GAAGI,OAAO,CAACH,MAAM,EAAED,CAAC,IAAI,C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ACfF,IAAI,EACJf,QAAQ,CAACmB,IAAI,EAAEC,SAAS,CAC5B,CAAC;IAEJ;AAED,GAAA,IAAII,WAAW,GAAG3B,GAAG,CAAC,CAAC,EAAEmB,MAAM,CAACX,MAAM,GAAGc,IAAI,CAACd,MAAM,CAAC;GACrD,IAAIoB,SAAS,GAAG,EAAE;GAClB,KAAK,IAAIrB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoB,WAAW,EAAEpB,CAAC,EAAE,EAAE;AAClCqB,KAAAA,SAAS,CAACrB,CAAC,CAAC,GAAG,GAAG,GAAGA,CAAC;AAC1B;AAEAiB,GAAAA,KAAK,GAAGK,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAGhB,KAAK,CAACe,SAAS,EAAE,GAAG,CAAC,GAAG,2CAA2C,CAAC,CAACH,MAAM,CAAC;GAE7H,IAAIN,MAAM,CAACrB,SAAS,EAAE;AAClB,KAAA,IAAIgC,KAAK,GAAG,SAASA,KAAKA,GAAG,EAAE;AAC/BA,KAAAA,KAAK,CAAChC,SAAS,GAAGqB,MAAM,CAACrB,SAAS;AAClC0B,KAAAA,KAAK,CAAC1B,SAAS,GAAG,IAAIgC,KAAK,EAAE;KAC7BA,KAAK,CAAChC,SAAS,GAAG,IAAI;AAC1B;AAEA,GAAA,OAAO0B,KAAK;EACf;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __require as requireImplementation } from './implementation.js';
|
|
2
|
+
|
|
3
|
+
var functionBind;
|
|
4
|
+
var hasRequiredFunctionBind;
|
|
5
|
+
|
|
6
|
+
function requireFunctionBind () {
|
|
7
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
8
|
+
hasRequiredFunctionBind = 1;
|
|
9
|
+
|
|
10
|
+
var implementation = requireImplementation();
|
|
11
|
+
functionBind = Function.prototype.bind || implementation;
|
|
12
|
+
return functionBind;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { requireFunctionBind as __require };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/get-intrinsic/node_modules/function-bind/index.js"],"sourcesContent":["'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n"],"names":["implementation","require","module","Function","prototype","bind"],"mappings":";;;;;;;;;CAEA,IAAIA,cAAc,GAAGC,qBAA2B,EAAA;AAEhDC,CAAAA,YAAc,GAAGC,QAAQ,CAACC,SAAS,CAACC,IAAI,IAAIL,cAAc;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/has/src/index.js"],"sourcesContent":["'use strict';\n\nvar bind = require('function-bind');\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n"],"names":["bind","require","module","call","Function","Object","prototype","hasOwnProperty"],"mappings":";;AAEA,IAAIA,IAAI,GAAGC,YAAwB;AAEnCC,IAAAA,GAAc,GAAGF,IAAI,CAACG,IAAI,CAACC,QAAQ,CAACD,IAAI,EAAEE,MAAM,CAACC,SAAS,CAACC,cAAc;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var implementation;
|
|
2
|
+
var hasRequiredImplementation;
|
|
3
|
+
|
|
4
|
+
function requireImplementation () {
|
|
5
|
+
if (hasRequiredImplementation) return implementation;
|
|
6
|
+
hasRequiredImplementation = 1;
|
|
7
|
+
|
|
8
|
+
/* eslint no-invalid-this: 1 */
|
|
9
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
10
|
+
var toStr = Object.prototype.toString;
|
|
11
|
+
var max = Math.max;
|
|
12
|
+
var funcType = '[object Function]';
|
|
13
|
+
var concatty = function concatty(a, b) {
|
|
14
|
+
var arr = [];
|
|
15
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
16
|
+
arr[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
19
|
+
arr[j + a.length] = b[j];
|
|
20
|
+
}
|
|
21
|
+
return arr;
|
|
22
|
+
};
|
|
23
|
+
var slicy = function slicy(arrLike, offset) {
|
|
24
|
+
var arr = [];
|
|
25
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
26
|
+
arr[j] = arrLike[i];
|
|
27
|
+
}
|
|
28
|
+
return arr;
|
|
29
|
+
};
|
|
30
|
+
var joiny = function (arr, joiner) {
|
|
31
|
+
var str = '';
|
|
32
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
33
|
+
str += arr[i];
|
|
34
|
+
if (i + 1 < arr.length) {
|
|
35
|
+
str += joiner;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return str;
|
|
39
|
+
};
|
|
40
|
+
implementation = function bind(that) {
|
|
41
|
+
var target = this;
|
|
42
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
43
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
44
|
+
}
|
|
45
|
+
var args = slicy(arguments, 1);
|
|
46
|
+
var bound;
|
|
47
|
+
var binder = function () {
|
|
48
|
+
if (this instanceof bound) {
|
|
49
|
+
var result = target.apply(this, concatty(args, arguments));
|
|
50
|
+
if (Object(result) === result) {
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
return target.apply(that, concatty(args, arguments));
|
|
56
|
+
};
|
|
57
|
+
var boundLength = max(0, target.length - args.length);
|
|
58
|
+
var boundArgs = [];
|
|
59
|
+
for (var i = 0; i < boundLength; i++) {
|
|
60
|
+
boundArgs[i] = '$' + i;
|
|
61
|
+
}
|
|
62
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
63
|
+
if (target.prototype) {
|
|
64
|
+
var Empty = function Empty() {};
|
|
65
|
+
Empty.prototype = target.prototype;
|
|
66
|
+
bound.prototype = new Empty();
|
|
67
|
+
Empty.prototype = null;
|
|
68
|
+
}
|
|
69
|
+
return bound;
|
|
70
|
+
};
|
|
71
|
+
return implementation;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { requireImplementation as __require };
|
|
75
|
+
//# sourceMappingURL=implementation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation.js","sources":["../../../../../../../node_modules/hasown/node_modules/function-bind/implementation.js"],"sourcesContent":["'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n"],"names":["ERROR_MESSAGE","toStr","Object","prototype","toString","max","Math","funcType","concatty","a","b","arr","i","length","j","slicy","arrLike","offset","joiny","joiner","str","module","bind","that","target","apply","TypeError","args","arguments","bound","binder","result","boundLength","boundArgs","Function","Empty"],"mappings":";;;;;;;AAEA;CAEA,IAAIA,aAAa,GAAG,iDAAiD;AACrE,CAAA,IAAIC,KAAK,GAAGC,MAAM,CAACC,SAAS,CAACC,QAAQ;AACrC,CAAA,IAAIC,GAAG,GAAGC,IAAI,CAACD,GAAG;CAClB,IAAIE,QAAQ,GAAG,mBAAmB;CAElC,IAAIC,QAAQ,GAAG,SAASA,QAAQA,CAACC,CAAC,EAAEC,CAAC,EAAE;GACnC,IAAIC,GAAG,GAAG,EAAE;AAEZ,GAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,CAAC,CAACI,MAAM,EAAED,CAAC,IAAI,CAAC,EAAE;KAClCD,GAAG,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;AACjB;AACA,GAAA,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,CAAC,CAACG,MAAM,EAAEC,CAAC,IAAI,CAAC,EAAE;KAClCH,GAAG,CAACG,CAAC,GAAGL,CAAC,CAACI,MAAM,CAAC,GAAGH,CAAC,CAACI,CAAC,CAAC;AAC5B;AAEA,GAAA,OAAOH,GAAG;EACb;CAED,IAAII,KAAK,GAAG,SAASA,KAAKA,CAACC,OAAO,EAAEC,MAAM,EAAE;GACxC,IAAIN,GAAG,GAAG,EAAE;GACZ,KAAK,IAAIC,CAAC,GAAGK,MAAW,EAAEH,CAAC,GAAG,CAAC,EAAEF,CAAC,GAAGI,OAAO,CAACH,MAAM,E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AAM,CAACC,KAAK,CACfF,IAAI,EACJf,QAAQ,CAACmB,IAAI,EAAEC,SAAS,CAC5B,CAAC;IAEJ;AAED,GAAA,IAAII,WAAW,GAAG3B,GAAG,CAAC,CAAC,EAAEmB,MAAM,CAACX,MAAM,GAAGc,IAAI,CAACd,MAAM,CAAC;GACrD,IAAIoB,SAAS,GAAG,EAAE;GAClB,KAAK,IAAIrB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoB,WAAW,EAAEpB,CAAC,EAAE,EAAE;AAClCqB,KAAAA,SAAS,CAACrB,CAAC,CAAC,GAAG,GAAG,GAAGA,CAAC;AAC1B;AAEAiB,GAAAA,KAAK,GAAGK,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAGhB,KAAK,CAACe,SAAS,EAAE,GAAG,CAAC,GAAG,2CAA2C,CAAC,CAACH,MAAM,CAAC;GAE7H,IAAIN,MAAM,CAACrB,SAAS,EAAE;AAClB,KAAA,IAAIgC,KAAK,GAAG,SAASA,KAAKA,GAAG,EAAE;AAC/BA,KAAAA,KAAK,CAAChC,SAAS,GAAGqB,MAAM,CAACrB,SAAS;AAClC0B,KAAAA,KAAK,CAAC1B,SAAS,GAAG,IAAIgC,KAAK,EAAE;KAC7BA,KAAK,CAAChC,SAAS,GAAG,IAAI;AAC1B;AAEA,GAAA,OAAO0B,KAAK;EACf;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __require as requireImplementation } from './implementation.js';
|
|
2
|
+
|
|
3
|
+
var functionBind;
|
|
4
|
+
var hasRequiredFunctionBind;
|
|
5
|
+
|
|
6
|
+
function requireFunctionBind () {
|
|
7
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
8
|
+
hasRequiredFunctionBind = 1;
|
|
9
|
+
|
|
10
|
+
var implementation = requireImplementation();
|
|
11
|
+
functionBind = Function.prototype.bind || implementation;
|
|
12
|
+
return functionBind;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { requireFunctionBind as __require };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/hasown/node_modules/function-bind/index.js"],"sourcesContent":["'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n"],"names":["implementation","require","module","Function","prototype","bind"],"mappings":";;;;;;;;;CAEA,IAAIA,cAAc,GAAGC,qBAA2B,EAAA;AAEhDC,CAAAA,YAAc,GAAGC,QAAQ,CAACC,SAAS,CAACC,IAAI,IAAIL,cAAc;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { g as getIntrinsic } from '../get-intrinsic/index.js';
|
|
2
|
+
import { c as callBindExports } from './index.js';
|
|
3
|
+
|
|
4
|
+
var GetIntrinsic = getIntrinsic;
|
|
5
|
+
var callBind = callBindExports;
|
|
6
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
7
|
+
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
8
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
9
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
10
|
+
return callBind(intrinsic);
|
|
11
|
+
}
|
|
12
|
+
return intrinsic;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { callBound as c };
|
|
16
|
+
//# sourceMappingURL=callBound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callBound.js","sources":["../../../../../../../node_modules/is-boolean-object/node_modules/call-bind/callBound.js"],"sourcesContent":["'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n"],"names":["GetIntrinsic","require","callBind","$indexOf","module","callBoundIntrinsic","name","allowMissing","intrinsic"],"mappings":";;;AAEA,IAAIA,YAAY,GAAGC,YAAwB;AAE3C,IAAIC,QAAQ,GAAGD,eAAa;AAE5B,IAAIE,QAAQ,GAAGD,QAAQ,CAACF,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAEjEI,IAAAA,SAAc,GAAG,SAASC,kBAAkBA,CAACC,IAAI,EAAEC,YAAY,EAAE;EAChE,IAAIC,SAAS,GAAGR,YAAY,CAACM,IAAI,EAAE,CAAC,CAACC,YAAY,CAAC;AAClD,EAAA,IAAI,OAAOC,SAAS,KAAK,UAAU,IAAIL,QAAQ,CAACG,IAAI,EAAE,aAAa,CAAC,GAAG,EAAE,EAAE;IAC1E,OAAOJ,QAAQ,CAACM,SAAS,CAAC;AAC3B;AACA,EAAA,OAAOA,SAAS;AACjB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __module as callBind } from '../../../../_virtual/index16.js';
|
|
2
|
+
import { f as functionBind } from '../../../function-bind/index.js';
|
|
3
|
+
import { g as getIntrinsic } from '../get-intrinsic/index.js';
|
|
4
|
+
|
|
5
|
+
(function (module) {
|
|
6
|
+
|
|
7
|
+
var bind = functionBind;
|
|
8
|
+
var GetIntrinsic = getIntrinsic;
|
|
9
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
10
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
11
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
12
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
13
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
14
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
15
|
+
if ($defineProperty) {
|
|
16
|
+
try {
|
|
17
|
+
$defineProperty({}, 'a', {
|
|
18
|
+
value: 1
|
|
19
|
+
});
|
|
20
|
+
} catch (e) {
|
|
21
|
+
// IE 8 has a broken defineProperty
|
|
22
|
+
$defineProperty = null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
module.exports = function callBind(originalFunction) {
|
|
26
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
27
|
+
if ($gOPD && $defineProperty) {
|
|
28
|
+
var desc = $gOPD(func, 'length');
|
|
29
|
+
if (desc.configurable) {
|
|
30
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
31
|
+
$defineProperty(func, 'length', {
|
|
32
|
+
value: 1 + $max(0, originalFunction.length - (arguments.length - 1))
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return func;
|
|
37
|
+
};
|
|
38
|
+
var applyBind = function applyBind() {
|
|
39
|
+
return $reflectApply(bind, $apply, arguments);
|
|
40
|
+
};
|
|
41
|
+
if ($defineProperty) {
|
|
42
|
+
$defineProperty(module.exports, 'apply', {
|
|
43
|
+
value: applyBind
|
|
44
|
+
});
|
|
45
|
+
} else {
|
|
46
|
+
module.exports.apply = applyBind;
|
|
47
|
+
}
|
|
48
|
+
} (callBind));
|
|
49
|
+
|
|
50
|
+
var callBindExports = callBind.exports;
|
|
51
|
+
|
|
52
|
+
export { callBindExports as c };
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/is-boolean-object/node_modules/call-bind/index.js"],"sourcesContent":["'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n"],"names":["bind","require","GetIntrinsic","$apply","$call","$reflectApply","call","$gOPD","$defineProperty","$max","value","e","module","callBind","originalFunction","func","arguments","desc","configurable","length","applyBind","exports"],"mappings":";;;;;;CAEA,IAAIA,IAAI,GAAGC,YAAwB;CACnC,IAAIC,YAAY,GAAGD,YAAwB;AAE3C,CAAA,IAAIE,MAAM,GAAGD,YAAY,CAAC,4BAA4B,CAAC;AACvD,CAAA,IAAIE,KAAK,GAAGF,YAAY,CAAC,2BAA2B,CAAC;AACrD,CAAA,IAAIG,aAAa,GAAGH,YAAY,CAAC,iBAAiB,EAAE,IAAI,CAAC,IAAIF,IAAI,CAACM,IAAI,CAACF,KAAK,EAAED,MAAM,CAAC;AAErF,CAAA,IAAII,KAAK,GAAGL,YAAY,CAAC,mCAAmC,EAAE,IAAI,CAAC;AACnE,CAAA,IAAIM,eAAe,GAAGN,YAAY,CAAC,yBAAyB,EAAE,IAAI,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
|
+
import { f as functionBind } from '../../../function-bind/index.js';
|
|
3
|
+
import { s as src } from '../../../has/src/index.js';
|
|
4
|
+
|
|
5
|
+
var undefined$1;
|
|
6
|
+
var $SyntaxError = SyntaxError;
|
|
7
|
+
var $Function = Function;
|
|
8
|
+
var $TypeError = TypeError;
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line consistent-return
|
|
11
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
12
|
+
try {
|
|
13
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
14
|
+
} catch (e) {}
|
|
15
|
+
};
|
|
16
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
17
|
+
if ($gOPD) {
|
|
18
|
+
try {
|
|
19
|
+
$gOPD({}, '');
|
|
20
|
+
} catch (e) {
|
|
21
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
var throwTypeError = function () {
|
|
25
|
+
throw new $TypeError();
|
|
26
|
+
};
|
|
27
|
+
var ThrowTypeError = $gOPD ? function () {
|
|
28
|
+
try {
|
|
29
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
30
|
+
arguments.callee; // IE 8 does not throw here
|
|
31
|
+
return throwTypeError;
|
|
32
|
+
} catch (calleeThrows) {
|
|
33
|
+
try {
|
|
34
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
35
|
+
return $gOPD(arguments, 'callee').get;
|
|
36
|
+
} catch (gOPDthrows) {
|
|
37
|
+
return throwTypeError;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}() : throwTypeError;
|
|
41
|
+
var hasSymbols = hasSymbols$1();
|
|
42
|
+
var getProto = Object.getPrototypeOf || function (x) {
|
|
43
|
+
return x.__proto__;
|
|
44
|
+
}; // eslint-disable-line no-proto
|
|
45
|
+
|
|
46
|
+
var needsEval = {};
|
|
47
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
48
|
+
var INTRINSICS = {
|
|
49
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
50
|
+
'%Array%': Array,
|
|
51
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
52
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
53
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
54
|
+
'%AsyncFunction%': needsEval,
|
|
55
|
+
'%AsyncGenerator%': needsEval,
|
|
56
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
57
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
58
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
59
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
60
|
+
'%Boolean%': Boolean,
|
|
61
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
62
|
+
'%Date%': Date,
|
|
63
|
+
'%decodeURI%': decodeURI,
|
|
64
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
65
|
+
'%encodeURI%': encodeURI,
|
|
66
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
67
|
+
'%Error%': Error,
|
|
68
|
+
'%eval%': eval,
|
|
69
|
+
// eslint-disable-line no-eval
|
|
70
|
+
'%EvalError%': EvalError,
|
|
71
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
72
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
73
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
74
|
+
'%Function%': $Function,
|
|
75
|
+
'%GeneratorFunction%': needsEval,
|
|
76
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
77
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
78
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
79
|
+
'%isFinite%': isFinite,
|
|
80
|
+
'%isNaN%': isNaN,
|
|
81
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
82
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
83
|
+
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
84
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
85
|
+
'%Math%': Math,
|
|
86
|
+
'%Number%': Number,
|
|
87
|
+
'%Object%': Object,
|
|
88
|
+
'%parseFloat%': parseFloat,
|
|
89
|
+
'%parseInt%': parseInt,
|
|
90
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
91
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
92
|
+
'%RangeError%': RangeError,
|
|
93
|
+
'%ReferenceError%': ReferenceError,
|
|
94
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
95
|
+
'%RegExp%': RegExp,
|
|
96
|
+
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
97
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
98
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
99
|
+
'%String%': String,
|
|
100
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
101
|
+
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
102
|
+
'%SyntaxError%': $SyntaxError,
|
|
103
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
104
|
+
'%TypedArray%': TypedArray,
|
|
105
|
+
'%TypeError%': $TypeError,
|
|
106
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
107
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
108
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
109
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
110
|
+
'%URIError%': URIError,
|
|
111
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
112
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
113
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
114
|
+
};
|
|
115
|
+
var doEval = function doEval(name) {
|
|
116
|
+
var value;
|
|
117
|
+
if (name === '%AsyncFunction%') {
|
|
118
|
+
value = getEvalledConstructor('async function () {}');
|
|
119
|
+
} else if (name === '%GeneratorFunction%') {
|
|
120
|
+
value = getEvalledConstructor('function* () {}');
|
|
121
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
122
|
+
value = getEvalledConstructor('async function* () {}');
|
|
123
|
+
} else if (name === '%AsyncGenerator%') {
|
|
124
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
125
|
+
if (fn) {
|
|
126
|
+
value = fn.prototype;
|
|
127
|
+
}
|
|
128
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
129
|
+
var gen = doEval('%AsyncGenerator%');
|
|
130
|
+
if (gen) {
|
|
131
|
+
value = getProto(gen.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
INTRINSICS[name] = value;
|
|
135
|
+
return value;
|
|
136
|
+
};
|
|
137
|
+
var LEGACY_ALIASES = {
|
|
138
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
139
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
140
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
141
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
142
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
143
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
144
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
145
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
146
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
147
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
148
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
149
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
150
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
151
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
152
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
153
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
154
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
155
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
156
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
157
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
158
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
159
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
160
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
161
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
162
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
163
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
164
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
165
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
166
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
167
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
168
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
169
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
170
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
171
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
172
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
173
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
174
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
175
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
176
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
177
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
178
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
179
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
180
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
181
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
182
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
183
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
184
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
185
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
186
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
187
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
188
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
189
|
+
};
|
|
190
|
+
var bind = functionBind;
|
|
191
|
+
var hasOwn = src;
|
|
192
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
193
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
194
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
195
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
196
|
+
|
|
197
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
198
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
199
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
200
|
+
var stringToPath = function stringToPath(string) {
|
|
201
|
+
var first = $strSlice(string, 0, 1);
|
|
202
|
+
var last = $strSlice(string, -1);
|
|
203
|
+
if (first === '%' && last !== '%') {
|
|
204
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
205
|
+
} else if (last === '%' && first !== '%') {
|
|
206
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
207
|
+
}
|
|
208
|
+
var result = [];
|
|
209
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
210
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
211
|
+
});
|
|
212
|
+
return result;
|
|
213
|
+
};
|
|
214
|
+
/* end adaptation */
|
|
215
|
+
|
|
216
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
217
|
+
var intrinsicName = name;
|
|
218
|
+
var alias;
|
|
219
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
220
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
221
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
222
|
+
}
|
|
223
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
224
|
+
var value = INTRINSICS[intrinsicName];
|
|
225
|
+
if (value === needsEval) {
|
|
226
|
+
value = doEval(intrinsicName);
|
|
227
|
+
}
|
|
228
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
229
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
alias: alias,
|
|
233
|
+
name: intrinsicName,
|
|
234
|
+
value: value
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
238
|
+
};
|
|
239
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
240
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
241
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
242
|
+
}
|
|
243
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
244
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
245
|
+
}
|
|
246
|
+
var parts = stringToPath(name);
|
|
247
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
248
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
249
|
+
var intrinsicRealName = intrinsic.name;
|
|
250
|
+
var value = intrinsic.value;
|
|
251
|
+
var skipFurtherCaching = false;
|
|
252
|
+
var alias = intrinsic.alias;
|
|
253
|
+
if (alias) {
|
|
254
|
+
intrinsicBaseName = alias[0];
|
|
255
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
256
|
+
}
|
|
257
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
258
|
+
var part = parts[i];
|
|
259
|
+
var first = $strSlice(part, 0, 1);
|
|
260
|
+
var last = $strSlice(part, -1);
|
|
261
|
+
if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
|
|
262
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
263
|
+
}
|
|
264
|
+
if (part === 'constructor' || !isOwn) {
|
|
265
|
+
skipFurtherCaching = true;
|
|
266
|
+
}
|
|
267
|
+
intrinsicBaseName += '.' + part;
|
|
268
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
269
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
270
|
+
value = INTRINSICS[intrinsicRealName];
|
|
271
|
+
} else if (value != null) {
|
|
272
|
+
if (!(part in value)) {
|
|
273
|
+
if (!allowMissing) {
|
|
274
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
275
|
+
}
|
|
276
|
+
return void 0;
|
|
277
|
+
}
|
|
278
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
279
|
+
var desc = $gOPD(value, part);
|
|
280
|
+
isOwn = !!desc;
|
|
281
|
+
|
|
282
|
+
// By convention, when a data property is converted to an accessor
|
|
283
|
+
// property to emulate a data property that does not suffer from
|
|
284
|
+
// the override mistake, that accessor's getter is marked with
|
|
285
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
286
|
+
// uphold the illusion by pretending to see that original data
|
|
287
|
+
// property, i.e., returning the value rather than the getter
|
|
288
|
+
// itself.
|
|
289
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
290
|
+
value = desc.get;
|
|
291
|
+
} else {
|
|
292
|
+
value = value[part];
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
isOwn = hasOwn(value, part);
|
|
296
|
+
value = value[part];
|
|
297
|
+
}
|
|
298
|
+
if (isOwn && !skipFurtherCaching) {
|
|
299
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return value;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export { getIntrinsic as g };
|
|
307
|
+
//# sourceMappingURL=index.js.map
|