@bigbinary/neeto-playwright-commons 1.12.2 → 1.12.4
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/index.cjs.js +191 -260
- package/index.cjs.js.map +1 -1
- package/index.js +69 -111
- package/index.js.map +1 -1
- package/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var fs$d = require('fs');
|
|
6
4
|
var Path = require('path');
|
|
7
5
|
var child_process = require('child_process');
|
|
@@ -30,10 +28,7 @@ var require$$1$1 = require('string_decoder');
|
|
|
30
28
|
var require$$4$1 = require('timers');
|
|
31
29
|
var require$$3$2 = require('crypto');
|
|
32
30
|
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
function _interopNamespace(e) {
|
|
36
|
-
if (e && e.__esModule) return e;
|
|
31
|
+
function _interopNamespaceDefault(e) {
|
|
37
32
|
var n = Object.create(null);
|
|
38
33
|
if (e) {
|
|
39
34
|
Object.keys(e).forEach(function (k) {
|
|
@@ -46,34 +41,12 @@ function _interopNamespace(e) {
|
|
|
46
41
|
}
|
|
47
42
|
});
|
|
48
43
|
}
|
|
49
|
-
n
|
|
44
|
+
n.default = e;
|
|
50
45
|
return Object.freeze(n);
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
var fs__namespace = /*#__PURE__*/
|
|
54
|
-
var
|
|
55
|
-
var Path__default = /*#__PURE__*/_interopDefaultLegacy(Path);
|
|
56
|
-
var Path__namespace = /*#__PURE__*/_interopNamespace(Path);
|
|
57
|
-
var test__default = /*#__PURE__*/_interopDefaultLegacy(test$1);
|
|
58
|
-
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
|
|
59
|
-
var MailosaurClient__default = /*#__PURE__*/_interopDefaultLegacy(MailosaurClient);
|
|
60
|
-
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
61
|
-
var require$$0__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$0$3);
|
|
62
|
-
var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$2);
|
|
63
|
-
var stealth__default = /*#__PURE__*/_interopDefaultLegacy(stealth$1);
|
|
64
|
-
var Stream__default = /*#__PURE__*/_interopDefaultLegacy(Stream$4);
|
|
65
|
-
var require$$0__default$3 = /*#__PURE__*/_interopDefaultLegacy(require$$0$4);
|
|
66
|
-
var http__default = /*#__PURE__*/_interopDefaultLegacy(http$1);
|
|
67
|
-
var Url__default = /*#__PURE__*/_interopDefaultLegacy(Url);
|
|
68
|
-
var require$$0__default$4 = /*#__PURE__*/_interopDefaultLegacy(require$$0$5);
|
|
69
|
-
var https__default = /*#__PURE__*/_interopDefaultLegacy(https$1);
|
|
70
|
-
var zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib$5);
|
|
71
|
-
var require$$0__default$5 = /*#__PURE__*/_interopDefaultLegacy(require$$0$6);
|
|
72
|
-
var require$$3__default = /*#__PURE__*/_interopDefaultLegacy(require$$3);
|
|
73
|
-
var require$$3__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$3$1);
|
|
74
|
-
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
|
|
75
|
-
var require$$4__default = /*#__PURE__*/_interopDefaultLegacy(require$$4$1);
|
|
76
|
-
var require$$3__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$3$2);
|
|
48
|
+
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs$d);
|
|
49
|
+
var Path__namespace = /*#__PURE__*/_interopNamespaceDefault(Path);
|
|
77
50
|
|
|
78
51
|
const BASE_URL = "/api/v1";
|
|
79
52
|
const NEETO_AUTH_BASE_URL = (subdomain = "app") => `https://${subdomain}.neetoauth.net`;
|
|
@@ -227,15 +200,15 @@ const hyphenize = input => {
|
|
|
227
200
|
};
|
|
228
201
|
const joinHyphenCase = (...args) => args.join(" ").replace(/\s+/g, "-").toLowerCase();
|
|
229
202
|
const skipTest = {
|
|
230
|
-
forDevelopmentEnv: () =>
|
|
231
|
-
forReviewEnv: () =>
|
|
232
|
-
forAllExceptStagingEnv: () =>
|
|
203
|
+
forDevelopmentEnv: () => test$1.skip(process.env.TEST_ENV === ENVIRONMENT.development),
|
|
204
|
+
forReviewEnv: () => test$1.skip(process.env.TEST_ENV === ENVIRONMENT.review),
|
|
205
|
+
forAllExceptStagingEnv: () => test$1.skip(process.env.TEST_ENV !== ENVIRONMENT.staging),
|
|
233
206
|
forNonNightlyRun: () => {
|
|
234
207
|
const currentBranch = execCommand("git rev-parse --abbrev-ref HEAD");
|
|
235
208
|
const isNightlyRun = currentBranch === "main" &&
|
|
236
209
|
process.env.TEST_ENV === ENVIRONMENT.staging &&
|
|
237
210
|
!!process.env.NEETO_CI_JOB_ID;
|
|
238
|
-
return
|
|
211
|
+
return test$1.skip(ramda.not(isNightlyRun), "Run test only in playwright-nightly");
|
|
239
212
|
},
|
|
240
213
|
ifNotWithinAllowedNightlyHours: ({ reason, allowedNightlyRunHours = [0, 6, 12, 18], }) => {
|
|
241
214
|
skipTest.forNonNightlyRun();
|
|
@@ -243,7 +216,7 @@ const skipTest = {
|
|
|
243
216
|
const day = currentDate.getUTCDay();
|
|
244
217
|
const hour = currentDate.getUTCHours();
|
|
245
218
|
const isAllowedNightlyRun = 0 < day && day < 6 && allowedNightlyRunHours.includes(hour);
|
|
246
|
-
|
|
219
|
+
test$1.skip(ramda.not(isAllowedNightlyRun), `Nightly run is skipped due to ${reason}`);
|
|
247
220
|
},
|
|
248
221
|
};
|
|
249
222
|
const shouldSkipSetupAndTeardown = () => { var _a; return ((_a = getGlobalUserState()) === null || _a === void 0 ? void 0 : _a.isLoggedIn) && process.env.SKIP_SETUP === "true"; };
|
|
@@ -542,7 +515,7 @@ var concatty = function concatty(a, b) {
|
|
|
542
515
|
|
|
543
516
|
var slicy = function slicy(arrLike, offset) {
|
|
544
517
|
var arr = [];
|
|
545
|
-
for (var i = offset
|
|
518
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
546
519
|
arr[j] = arrLike[i];
|
|
547
520
|
}
|
|
548
521
|
return arr;
|
|
@@ -1849,8 +1822,6 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
1849
1822
|
return fn;
|
|
1850
1823
|
};
|
|
1851
1824
|
|
|
1852
|
-
callBind$1.exports;
|
|
1853
|
-
|
|
1854
1825
|
(function (module) {
|
|
1855
1826
|
|
|
1856
1827
|
var bind = functionBind;
|
|
@@ -1904,7 +1875,7 @@ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1904
1875
|
return intrinsic;
|
|
1905
1876
|
};
|
|
1906
1877
|
|
|
1907
|
-
var util_inspect = require$$
|
|
1878
|
+
var util_inspect = require$$0$1.inspect;
|
|
1908
1879
|
|
|
1909
1880
|
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
1910
1881
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
@@ -3496,8 +3467,8 @@ var lib$7 = {
|
|
|
3496
3467
|
var qs$1 = /*@__PURE__*/getDefaultExportFromCjs(lib$7);
|
|
3497
3468
|
|
|
3498
3469
|
const getImagePathAndName = (localImagePath) => {
|
|
3499
|
-
const imagePath =
|
|
3500
|
-
const imageName =
|
|
3470
|
+
const imagePath = Path.join(__dirname, localImagePath);
|
|
3471
|
+
const imageName = Path.basename(localImagePath, Path.extname(localImagePath));
|
|
3501
3472
|
return { imagePath, imageName };
|
|
3502
3473
|
};
|
|
3503
3474
|
|
|
@@ -3660,7 +3631,7 @@ class CustomCommands {
|
|
|
3660
3631
|
await test$1.expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.uploadedImage)).toHaveAttribute("src", new RegExp(imageName), { timeout: 20000 });
|
|
3661
3632
|
};
|
|
3662
3633
|
this.uploadFileViaDispatch = async ({ fileNameWithType, assetsPath = "../../../e2e/assets/", dispatchEvent = "drop", droppableZone = this.page.getByTestId(COMMON_SELECTORS.fileUploadBody), }) => {
|
|
3663
|
-
const filePath =
|
|
3634
|
+
const filePath = Path.join(__dirname, `${assetsPath}/${fileNameWithType}`);
|
|
3664
3635
|
const buffer = fs$d.readFileSync(filePath).toString("base64");
|
|
3665
3636
|
const dataTransfer = await droppableZone.evaluateHandle((_, { buffer, fileNameWithType }) => {
|
|
3666
3637
|
var _a;
|
|
@@ -6493,9 +6464,7 @@ function _onUpdateChild(doc, el, newChild) {
|
|
|
6493
6464
|
doc._inc++;
|
|
6494
6465
|
//update childNodes
|
|
6495
6466
|
var cs = el.childNodes;
|
|
6496
|
-
|
|
6497
|
-
cs[cs.length++] = newChild;
|
|
6498
|
-
} else {
|
|
6467
|
+
{
|
|
6499
6468
|
var child = el.firstChild;
|
|
6500
6469
|
var i = 0;
|
|
6501
6470
|
while (child) {
|
|
@@ -11798,7 +11767,7 @@ const commands = {
|
|
|
11798
11767
|
mailosaur: async ({}, use) => {
|
|
11799
11768
|
skipTest.forAllExceptStagingEnv();
|
|
11800
11769
|
if (ramda.isNotNil(process.env.MAILOSAUR_API_KEY)) {
|
|
11801
|
-
const mailosaur = new
|
|
11770
|
+
const mailosaur = new MailosaurClient(process.env.MAILOSAUR_API_KEY);
|
|
11802
11771
|
await use(mailosaur);
|
|
11803
11772
|
}
|
|
11804
11773
|
else {
|
|
@@ -11824,7 +11793,7 @@ const commands = {
|
|
|
11824
11793
|
|
|
11825
11794
|
const generateStagingData = (product = "invoice") => {
|
|
11826
11795
|
var _a;
|
|
11827
|
-
const timestamp = `${
|
|
11796
|
+
const timestamp = `${dayjs().format("MMDDHHmmssSSS")}${(_a = process.env.JOB_COMPLETION_INDEX) !== null && _a !== void 0 ? _a : ""}`;
|
|
11828
11797
|
const firstName = "André";
|
|
11829
11798
|
const lastName = "O'Reilly";
|
|
11830
11799
|
const otpBypassKey = process.env.OTP_BYPASS_KEY;
|
|
@@ -12303,7 +12272,6 @@ function requireCommon$1 () {
|
|
|
12303
12272
|
}
|
|
12304
12273
|
|
|
12305
12274
|
/* eslint-env browser */
|
|
12306
|
-
browser$1.exports;
|
|
12307
12275
|
|
|
12308
12276
|
var hasRequiredBrowser;
|
|
12309
12277
|
|
|
@@ -12606,7 +12574,7 @@ var hasRequiredSupportsColor;
|
|
|
12606
12574
|
function requireSupportsColor () {
|
|
12607
12575
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
12608
12576
|
hasRequiredSupportsColor = 1;
|
|
12609
|
-
const os = require$$
|
|
12577
|
+
const os = require$$0$2;
|
|
12610
12578
|
const hasFlag = requireHasFlag();
|
|
12611
12579
|
|
|
12612
12580
|
const env = process.env;
|
|
@@ -12742,7 +12710,6 @@ function requireSupportsColor () {
|
|
|
12742
12710
|
/**
|
|
12743
12711
|
* Module dependencies.
|
|
12744
12712
|
*/
|
|
12745
|
-
node.exports;
|
|
12746
12713
|
|
|
12747
12714
|
var hasRequiredNode;
|
|
12748
12715
|
|
|
@@ -12750,8 +12717,8 @@ function requireNode () {
|
|
|
12750
12717
|
if (hasRequiredNode) return node.exports;
|
|
12751
12718
|
hasRequiredNode = 1;
|
|
12752
12719
|
(function (module, exports) {
|
|
12753
|
-
const tty = require$$
|
|
12754
|
-
const util = require$$
|
|
12720
|
+
const tty = require$$0$3;
|
|
12721
|
+
const util = require$$0$1;
|
|
12755
12722
|
|
|
12756
12723
|
/**
|
|
12757
12724
|
* This is the Node.js implementation of `debug()`.
|
|
@@ -13920,7 +13887,7 @@ playwrightLoader.lazyloadExportOrDie('errors');
|
|
|
13920
13887
|
var stealth = test$1.test.extend({
|
|
13921
13888
|
browser: async ({ browser }, use) => {
|
|
13922
13889
|
await browser.close();
|
|
13923
|
-
chromium.use(
|
|
13890
|
+
chromium.use(stealth$1());
|
|
13924
13891
|
const stealthBrowser = await chromium.launch();
|
|
13925
13892
|
await use(stealthBrowser);
|
|
13926
13893
|
await stealthBrowser.close();
|
|
@@ -14024,7 +13991,7 @@ var fs$c = {};
|
|
|
14024
13991
|
|
|
14025
13992
|
Object.defineProperty(fs$c, "__esModule", { value: true });
|
|
14026
13993
|
fs$c.createDirentFromStats = void 0;
|
|
14027
|
-
|
|
13994
|
+
let DirentFromStats$1 = class DirentFromStats {
|
|
14028
13995
|
constructor(name, stats) {
|
|
14029
13996
|
this.name = name;
|
|
14030
13997
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
@@ -14035,7 +14002,7 @@ class DirentFromStats$1 {
|
|
|
14035
14002
|
this.isSocket = stats.isSocket.bind(stats);
|
|
14036
14003
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
14037
14004
|
}
|
|
14038
|
-
}
|
|
14005
|
+
};
|
|
14039
14006
|
function createDirentFromStats$1(name, stats) {
|
|
14040
14007
|
return new DirentFromStats$1(name, stats);
|
|
14041
14008
|
}
|
|
@@ -14045,8 +14012,8 @@ var path$a = {};
|
|
|
14045
14012
|
|
|
14046
14013
|
Object.defineProperty(path$a, "__esModule", { value: true });
|
|
14047
14014
|
path$a.convertPosixPathToPattern = path$a.convertWindowsPathToPattern = path$a.convertPathToPattern = path$a.escapePosixPath = path$a.escapeWindowsPath = path$a.escape = path$a.removeLeadingDotSegment = path$a.makeAbsolute = path$a.unixify = void 0;
|
|
14048
|
-
const os$1 = require$$
|
|
14049
|
-
const path$9 =
|
|
14015
|
+
const os$1 = require$$0$2;
|
|
14016
|
+
const path$9 = Path;
|
|
14050
14017
|
const IS_WINDOWS_PLATFORM = os$1.platform() === 'win32';
|
|
14051
14018
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
|
|
14052
14019
|
/**
|
|
@@ -14286,8 +14253,8 @@ var isGlob$1 = function isGlob(str, options) {
|
|
|
14286
14253
|
};
|
|
14287
14254
|
|
|
14288
14255
|
var isGlob = isGlob$1;
|
|
14289
|
-
var pathPosixDirname =
|
|
14290
|
-
var isWin32 = require$$
|
|
14256
|
+
var pathPosixDirname = Path.posix.dirname;
|
|
14257
|
+
var isWin32 = require$$0$2.platform() === 'win32';
|
|
14291
14258
|
|
|
14292
14259
|
var slash = '/';
|
|
14293
14260
|
var backslash = /\\/g;
|
|
@@ -14793,7 +14760,7 @@ var toRegexRange_1 = toRegexRange$1;
|
|
|
14793
14760
|
* Licensed under the MIT License.
|
|
14794
14761
|
*/
|
|
14795
14762
|
|
|
14796
|
-
const util$8 = require$$
|
|
14763
|
+
const util$8 = require$$0$1;
|
|
14797
14764
|
const toRegexRange = toRegexRange_1;
|
|
14798
14765
|
|
|
14799
14766
|
const isObject$2 = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
@@ -15761,7 +15728,7 @@ var braces_1 = braces$1;
|
|
|
15761
15728
|
|
|
15762
15729
|
var utils$g = {};
|
|
15763
15730
|
|
|
15764
|
-
const path$8 =
|
|
15731
|
+
const path$8 = Path;
|
|
15765
15732
|
const WIN_SLASH = '\\\\/';
|
|
15766
15733
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
15767
15734
|
|
|
@@ -15941,7 +15908,7 @@ var constants$b = {
|
|
|
15941
15908
|
|
|
15942
15909
|
(function (exports) {
|
|
15943
15910
|
|
|
15944
|
-
const path =
|
|
15911
|
+
const path = Path;
|
|
15945
15912
|
const win32 = process.platform === 'win32';
|
|
15946
15913
|
const {
|
|
15947
15914
|
REGEX_BACKSLASH,
|
|
@@ -17485,7 +17452,7 @@ parse$3.fastpaths = (input, options) => {
|
|
|
17485
17452
|
|
|
17486
17453
|
var parse_1 = parse$3;
|
|
17487
17454
|
|
|
17488
|
-
const path$7 =
|
|
17455
|
+
const path$7 = Path;
|
|
17489
17456
|
const scan$1 = scan_1;
|
|
17490
17457
|
const parse$2 = parse_1;
|
|
17491
17458
|
const utils$d = utils$g;
|
|
@@ -17828,7 +17795,7 @@ var picomatch_1 = picomatch$2;
|
|
|
17828
17795
|
|
|
17829
17796
|
var picomatch$1 = picomatch_1;
|
|
17830
17797
|
|
|
17831
|
-
const util$7 = require$$
|
|
17798
|
+
const util$7 = require$$0$1;
|
|
17832
17799
|
const braces = braces_1;
|
|
17833
17800
|
const picomatch = picomatch$1;
|
|
17834
17801
|
const utils$c = utils$g;
|
|
@@ -18303,7 +18270,7 @@ var micromatch_1 = micromatch$1;
|
|
|
18303
18270
|
|
|
18304
18271
|
Object.defineProperty(pattern$1, "__esModule", { value: true });
|
|
18305
18272
|
pattern$1.removeDuplicateSlashes = pattern$1.matchAny = pattern$1.convertPatternsToRe = pattern$1.makeRe = pattern$1.getPatternParts = pattern$1.expandBraceExpansion = pattern$1.expandPatternsWithBraceExpansion = pattern$1.isAffectDepthOfReadingPattern = pattern$1.endsWithSlashGlobStar = pattern$1.hasGlobStar = pattern$1.getBaseDirectory = pattern$1.isPatternRelatedToParentDirectory = pattern$1.getPatternsOutsideCurrentDirectory = pattern$1.getPatternsInsideCurrentDirectory = pattern$1.getPositivePatterns = pattern$1.getNegativePatterns = pattern$1.isPositivePattern = pattern$1.isNegativePattern = pattern$1.convertToNegativePattern = pattern$1.convertToPositivePattern = pattern$1.isDynamicPattern = pattern$1.isStaticPattern = void 0;
|
|
18306
|
-
const path$6 =
|
|
18273
|
+
const path$6 = Path;
|
|
18307
18274
|
const globParent = globParent$1;
|
|
18308
18275
|
const micromatch = micromatch_1;
|
|
18309
18276
|
const GLOBSTAR = '**';
|
|
@@ -18498,7 +18465,7 @@ var stream$5 = {};
|
|
|
18498
18465
|
* Copyright (c) 2014-2020 Teambition
|
|
18499
18466
|
* Licensed under the MIT license.
|
|
18500
18467
|
*/
|
|
18501
|
-
const Stream$3 =
|
|
18468
|
+
const Stream$3 = Stream$4;
|
|
18502
18469
|
const PassThrough$2 = Stream$3.PassThrough;
|
|
18503
18470
|
const slice = Array.prototype.slice;
|
|
18504
18471
|
|
|
@@ -18878,7 +18845,7 @@ var fs$a = {};
|
|
|
18878
18845
|
(function (exports) {
|
|
18879
18846
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18880
18847
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
18881
|
-
const fs =
|
|
18848
|
+
const fs = fs$d;
|
|
18882
18849
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
18883
18850
|
lstat: fs.lstat,
|
|
18884
18851
|
stat: fs.stat,
|
|
@@ -18896,7 +18863,7 @@ var fs$a = {};
|
|
|
18896
18863
|
|
|
18897
18864
|
Object.defineProperty(settings$3, "__esModule", { value: true });
|
|
18898
18865
|
const fs$9 = fs$a;
|
|
18899
|
-
|
|
18866
|
+
let Settings$2 = class Settings {
|
|
18900
18867
|
constructor(_options = {}) {
|
|
18901
18868
|
this._options = _options;
|
|
18902
18869
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
@@ -18907,7 +18874,7 @@ class Settings$2 {
|
|
|
18907
18874
|
_getValue(option, value) {
|
|
18908
18875
|
return option !== null && option !== void 0 ? option : value;
|
|
18909
18876
|
}
|
|
18910
|
-
}
|
|
18877
|
+
};
|
|
18911
18878
|
settings$3.default = Settings$2;
|
|
18912
18879
|
|
|
18913
18880
|
Object.defineProperty(out$1, "__esModule", { value: true });
|
|
@@ -19229,7 +19196,7 @@ var fs$6 = {};
|
|
|
19229
19196
|
(function (exports) {
|
|
19230
19197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19231
19198
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
19232
|
-
const fs =
|
|
19199
|
+
const fs = fs$d;
|
|
19233
19200
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
19234
19201
|
lstat: fs.lstat,
|
|
19235
19202
|
stat: fs.stat,
|
|
@@ -19248,10 +19215,10 @@ var fs$6 = {};
|
|
|
19248
19215
|
} (fs$6));
|
|
19249
19216
|
|
|
19250
19217
|
Object.defineProperty(settings$2, "__esModule", { value: true });
|
|
19251
|
-
const path$4 =
|
|
19218
|
+
const path$4 = Path;
|
|
19252
19219
|
const fsStat$3 = out$1;
|
|
19253
19220
|
const fs$5 = fs$6;
|
|
19254
|
-
|
|
19221
|
+
let Settings$1 = class Settings {
|
|
19255
19222
|
constructor(_options = {}) {
|
|
19256
19223
|
this._options = _options;
|
|
19257
19224
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
@@ -19268,7 +19235,7 @@ class Settings$1 {
|
|
|
19268
19235
|
_getValue(option, value) {
|
|
19269
19236
|
return option !== null && option !== void 0 ? option : value;
|
|
19270
19237
|
}
|
|
19271
|
-
}
|
|
19238
|
+
};
|
|
19272
19239
|
settings$2.default = Settings$1;
|
|
19273
19240
|
|
|
19274
19241
|
Object.defineProperty(out$2, "__esModule", { value: true });
|
|
@@ -19659,17 +19626,17 @@ var reader$1 = {};
|
|
|
19659
19626
|
|
|
19660
19627
|
Object.defineProperty(reader$1, "__esModule", { value: true });
|
|
19661
19628
|
const common$3 = common$4;
|
|
19662
|
-
|
|
19629
|
+
let Reader$1 = class Reader {
|
|
19663
19630
|
constructor(_root, _settings) {
|
|
19664
19631
|
this._root = _root;
|
|
19665
19632
|
this._settings = _settings;
|
|
19666
19633
|
this._root = common$3.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator);
|
|
19667
19634
|
}
|
|
19668
|
-
}
|
|
19635
|
+
};
|
|
19669
19636
|
reader$1.default = Reader$1;
|
|
19670
19637
|
|
|
19671
19638
|
Object.defineProperty(async$4, "__esModule", { value: true });
|
|
19672
|
-
const events_1 = require$$
|
|
19639
|
+
const events_1 = require$$0$4;
|
|
19673
19640
|
const fsScandir$2 = out$2;
|
|
19674
19641
|
const fastq = queueExports;
|
|
19675
19642
|
const common$2 = common$4;
|
|
@@ -19798,7 +19765,7 @@ function callSuccessCallback(callback, entries) {
|
|
|
19798
19765
|
var stream$3 = {};
|
|
19799
19766
|
|
|
19800
19767
|
Object.defineProperty(stream$3, "__esModule", { value: true });
|
|
19801
|
-
const stream_1$5 =
|
|
19768
|
+
const stream_1$5 = Stream$4;
|
|
19802
19769
|
const async_1$3 = async$4;
|
|
19803
19770
|
class StreamProvider {
|
|
19804
19771
|
constructor(_root, _settings) {
|
|
@@ -19839,7 +19806,7 @@ Object.defineProperty(sync$2, "__esModule", { value: true });
|
|
|
19839
19806
|
const fsScandir$1 = out$2;
|
|
19840
19807
|
const common$1 = common$4;
|
|
19841
19808
|
const reader_1$3 = reader$1;
|
|
19842
|
-
|
|
19809
|
+
let SyncReader$3 = class SyncReader extends reader_1$3.default {
|
|
19843
19810
|
constructor() {
|
|
19844
19811
|
super(...arguments);
|
|
19845
19812
|
this._scandir = fsScandir$1.scandirSync;
|
|
@@ -19891,7 +19858,7 @@ class SyncReader$3 extends reader_1$3.default {
|
|
|
19891
19858
|
_pushToStorage(entry) {
|
|
19892
19859
|
this._storage.push(entry);
|
|
19893
19860
|
}
|
|
19894
|
-
}
|
|
19861
|
+
};
|
|
19895
19862
|
sync$2.default = SyncReader$3;
|
|
19896
19863
|
|
|
19897
19864
|
Object.defineProperty(sync$3, "__esModule", { value: true });
|
|
@@ -19911,7 +19878,7 @@ sync$3.default = SyncProvider;
|
|
|
19911
19878
|
var settings$1 = {};
|
|
19912
19879
|
|
|
19913
19880
|
Object.defineProperty(settings$1, "__esModule", { value: true });
|
|
19914
|
-
const path$3 =
|
|
19881
|
+
const path$3 = Path;
|
|
19915
19882
|
const fsScandir = out$2;
|
|
19916
19883
|
class Settings {
|
|
19917
19884
|
constructor(_options = {}) {
|
|
@@ -19973,7 +19940,7 @@ function getSettings(settingsOrOptions = {}) {
|
|
|
19973
19940
|
var reader = {};
|
|
19974
19941
|
|
|
19975
19942
|
Object.defineProperty(reader, "__esModule", { value: true });
|
|
19976
|
-
const path$2 =
|
|
19943
|
+
const path$2 = Path;
|
|
19977
19944
|
const fsStat$2 = out$1;
|
|
19978
19945
|
const utils$7 = utils$l;
|
|
19979
19946
|
class Reader {
|
|
@@ -20008,7 +19975,7 @@ reader.default = Reader;
|
|
|
20008
19975
|
var stream$2 = {};
|
|
20009
19976
|
|
|
20010
19977
|
Object.defineProperty(stream$2, "__esModule", { value: true });
|
|
20011
|
-
const stream_1$3 =
|
|
19978
|
+
const stream_1$3 = Stream$4;
|
|
20012
19979
|
const fsStat$1 = out$1;
|
|
20013
19980
|
const fsWalk$2 = out$3;
|
|
20014
19981
|
const reader_1$2 = reader;
|
|
@@ -20361,7 +20328,7 @@ class EntryTransformer {
|
|
|
20361
20328
|
entry.default = EntryTransformer;
|
|
20362
20329
|
|
|
20363
20330
|
Object.defineProperty(provider, "__esModule", { value: true });
|
|
20364
|
-
const path$1 =
|
|
20331
|
+
const path$1 = Path;
|
|
20365
20332
|
const deep_1 = deep;
|
|
20366
20333
|
const entry_1 = entry$1;
|
|
20367
20334
|
const error_1 = error;
|
|
@@ -20434,7 +20401,7 @@ async$7.default = ProviderAsync;
|
|
|
20434
20401
|
var stream$1 = {};
|
|
20435
20402
|
|
|
20436
20403
|
Object.defineProperty(stream$1, "__esModule", { value: true });
|
|
20437
|
-
const stream_1$1 =
|
|
20404
|
+
const stream_1$1 = Stream$4;
|
|
20438
20405
|
const stream_2 = stream$2;
|
|
20439
20406
|
const provider_1$1 = provider;
|
|
20440
20407
|
class ProviderStream extends provider_1$1.default {
|
|
@@ -20539,8 +20506,8 @@ var settings = {};
|
|
|
20539
20506
|
(function (exports) {
|
|
20540
20507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20541
20508
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
20542
|
-
const fs =
|
|
20543
|
-
const os = require$$
|
|
20509
|
+
const fs = fs$d;
|
|
20510
|
+
const os = require$$0$2;
|
|
20544
20511
|
/**
|
|
20545
20512
|
* The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
|
|
20546
20513
|
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
|
|
@@ -21004,7 +20971,7 @@ class EmbedBase {
|
|
|
21004
20971
|
: embedCode);
|
|
21005
20972
|
this.filePath = `tmp/${faker.faker.word.noun()}.html`;
|
|
21006
20973
|
fs$d.writeFileSync(this.filePath, fileContent, "utf8");
|
|
21007
|
-
await this.embedTestPage.goto(`file://${
|
|
20974
|
+
await this.embedTestPage.goto(`file://${Path.resolve(this.filePath)}`);
|
|
21008
20975
|
await this.embedTestPage.waitForLoadState("load");
|
|
21009
20976
|
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
21010
20977
|
? "iframe"
|
|
@@ -21295,6 +21262,8 @@ const KEYBOARD_SHORTCUTS_SELECTORS = {
|
|
|
21295
21262
|
};
|
|
21296
21263
|
|
|
21297
21264
|
/* eslint-disable playwright/no-raw-locators */
|
|
21265
|
+
/* eslint-disable playwright/require-top-level-describe */
|
|
21266
|
+
/* eslint-disable playwright/no-standalone-expect */
|
|
21298
21267
|
class HelpAndProfilePage {
|
|
21299
21268
|
constructor({ page, neetoPlaywrightUtilities, chatApiBaseURL, kbDocsBaseURL, changelogBaseURL, }) {
|
|
21300
21269
|
this.hoverOnBody = () => this.page.locator("body").hover();
|
|
@@ -23967,7 +23936,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
23967
23936
|
.split("/")
|
|
23968
23937
|
.map(str => parseInt(str));
|
|
23969
23938
|
// eslint-disable-next-line playwright/no-skipped-test
|
|
23970
|
-
|
|
23939
|
+
test$1.skip(taskRunCount >= taskLimitForMonth, ZAPIER_LIMIT_EXHAUSTED_MESSAGE);
|
|
23971
23940
|
};
|
|
23972
23941
|
this.connectAndVerify = async ({ apiKeyLabel }) => {
|
|
23973
23942
|
await this.connect();
|
|
@@ -24005,7 +23974,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
24005
23974
|
ramda.isNil(process.env.ZAP_ID)) {
|
|
24006
23975
|
throw new Error("ENV variable ZAPIER_LOGIN_PASSWORD or ZAPIER_LOGIN_EMAIL or ZAP_ID is not properly configured");
|
|
24007
23976
|
}
|
|
24008
|
-
this.mailosaur = new
|
|
23977
|
+
this.mailosaur = new MailosaurClient(process.env.INTEGRATION_MAILOSAUR_API_KEY);
|
|
24009
23978
|
}
|
|
24010
23979
|
}
|
|
24011
23980
|
|
|
@@ -27149,8 +27118,6 @@ conversions["RegExp"] = function (V, opts) {
|
|
|
27149
27118
|
|
|
27150
27119
|
var utils = {exports: {}};
|
|
27151
27120
|
|
|
27152
|
-
utils.exports;
|
|
27153
|
-
|
|
27154
27121
|
(function (module) {
|
|
27155
27122
|
|
|
27156
27123
|
module.exports.mixin = function mixin(target, source) {
|
|
@@ -104831,7 +104798,7 @@ var require$$1 = [
|
|
|
104831
104798
|
]
|
|
104832
104799
|
];
|
|
104833
104800
|
|
|
104834
|
-
var punycode = require$$
|
|
104801
|
+
var punycode = require$$0$5;
|
|
104835
104802
|
var mappingTable = require$$1;
|
|
104836
104803
|
|
|
104837
104804
|
var PROCESSING_OPTIONS = {
|
|
@@ -105023,10 +104990,8 @@ tr46.toUnicode = function(domain_name, useSTD3) {
|
|
|
105023
104990
|
|
|
105024
104991
|
tr46.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
|
|
105025
104992
|
|
|
105026
|
-
urlStateMachine.exports;
|
|
105027
|
-
|
|
105028
104993
|
(function (module) {
|
|
105029
|
-
const punycode = require$$
|
|
104994
|
+
const punycode = require$$0$5;
|
|
105030
104995
|
const tr46$1 = tr46;
|
|
105031
104996
|
|
|
105032
104997
|
const specialSchemes = {
|
|
@@ -106525,8 +106490,6 @@ URLImpl.implementation = class URLImpl {
|
|
|
106525
106490
|
}
|
|
106526
106491
|
};
|
|
106527
106492
|
|
|
106528
|
-
URL$2.exports;
|
|
106529
|
-
|
|
106530
106493
|
(function (module) {
|
|
106531
106494
|
|
|
106532
106495
|
const conversions = lib$6;
|
|
@@ -106739,7 +106702,7 @@ publicApi.parseURL = urlStateMachineExports.parseURL;
|
|
|
106739
106702
|
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
|
|
106740
106703
|
|
|
106741
106704
|
// fix for "Readable" isn't a named export issue
|
|
106742
|
-
const Readable =
|
|
106705
|
+
const Readable = Stream$4.Readable;
|
|
106743
106706
|
|
|
106744
106707
|
const BUFFER = Symbol('buffer');
|
|
106745
106708
|
const TYPE = Symbol('type');
|
|
@@ -106891,7 +106854,7 @@ try {
|
|
|
106891
106854
|
const INTERNALS = Symbol('Body internals');
|
|
106892
106855
|
|
|
106893
106856
|
// fix an issue where "PassThrough" isn't a named export for node <10
|
|
106894
|
-
const PassThrough =
|
|
106857
|
+
const PassThrough = Stream$4.PassThrough;
|
|
106895
106858
|
|
|
106896
106859
|
/**
|
|
106897
106860
|
* Body mixin
|
|
@@ -106924,7 +106887,7 @@ function Body(body) {
|
|
|
106924
106887
|
} else if (ArrayBuffer.isView(body)) {
|
|
106925
106888
|
// body is ArrayBufferView
|
|
106926
106889
|
body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
106927
|
-
} else if (body instanceof
|
|
106890
|
+
} else if (body instanceof Stream$4) ; else {
|
|
106928
106891
|
// none of the above
|
|
106929
106892
|
// coerce to string then buffer
|
|
106930
106893
|
body = Buffer.from(String(body));
|
|
@@ -106937,7 +106900,7 @@ function Body(body) {
|
|
|
106937
106900
|
this.size = size;
|
|
106938
106901
|
this.timeout = timeout;
|
|
106939
106902
|
|
|
106940
|
-
if (body instanceof
|
|
106903
|
+
if (body instanceof Stream$4) {
|
|
106941
106904
|
body.on('error', function (err) {
|
|
106942
106905
|
const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
|
|
106943
106906
|
_this[INTERNALS].error = error;
|
|
@@ -107093,7 +107056,7 @@ function consumeBody() {
|
|
|
107093
107056
|
}
|
|
107094
107057
|
|
|
107095
107058
|
// istanbul ignore if: should never happen
|
|
107096
|
-
if (!(body instanceof
|
|
107059
|
+
if (!(body instanceof Stream$4)) {
|
|
107097
107060
|
return Body.Promise.resolve(Buffer.alloc(0));
|
|
107098
107061
|
}
|
|
107099
107062
|
|
|
@@ -107266,7 +107229,7 @@ function clone$1(instance) {
|
|
|
107266
107229
|
|
|
107267
107230
|
// check that body is a stream and not form-data object
|
|
107268
107231
|
// note: we can't clone the form-data object without having it as a dependency
|
|
107269
|
-
if (body instanceof
|
|
107232
|
+
if (body instanceof Stream$4 && typeof body.getBoundary !== 'function') {
|
|
107270
107233
|
// tee instance body
|
|
107271
107234
|
p1 = new PassThrough();
|
|
107272
107235
|
p2 = new PassThrough();
|
|
@@ -107314,7 +107277,7 @@ function extractContentType(body) {
|
|
|
107314
107277
|
} else if (typeof body.getBoundary === 'function') {
|
|
107315
107278
|
// detect form data input from form-data module
|
|
107316
107279
|
return `multipart/form-data;boundary=${body.getBoundary()}`;
|
|
107317
|
-
} else if (body instanceof
|
|
107280
|
+
} else if (body instanceof Stream$4) {
|
|
107318
107281
|
// body is stream
|
|
107319
107282
|
// can't really do much about this
|
|
107320
107283
|
return null;
|
|
@@ -107768,7 +107731,7 @@ function createHeadersLenient(obj) {
|
|
|
107768
107731
|
const INTERNALS$1 = Symbol('Response internals');
|
|
107769
107732
|
|
|
107770
107733
|
// fix an issue where "STATUS_CODES" aren't a named export for node <10
|
|
107771
|
-
const STATUS_CODES =
|
|
107734
|
+
const STATUS_CODES = http$1.STATUS_CODES;
|
|
107772
107735
|
|
|
107773
107736
|
/**
|
|
107774
107737
|
* Response class
|
|
@@ -107867,11 +107830,11 @@ Object.defineProperty(Response.prototype, Symbol.toStringTag, {
|
|
|
107867
107830
|
});
|
|
107868
107831
|
|
|
107869
107832
|
const INTERNALS$2 = Symbol('Request internals');
|
|
107870
|
-
const URL$1 =
|
|
107833
|
+
const URL$1 = Url.URL || publicApi.URL;
|
|
107871
107834
|
|
|
107872
107835
|
// fix an issue where "format", "parse" aren't a named export for node <10
|
|
107873
|
-
const parse_url =
|
|
107874
|
-
const format_url =
|
|
107836
|
+
const parse_url = Url.parse;
|
|
107837
|
+
const format_url = Url.format;
|
|
107875
107838
|
|
|
107876
107839
|
/**
|
|
107877
107840
|
* Wrapper around `new URL` to handle arbitrary URLs
|
|
@@ -107893,7 +107856,7 @@ function parseURL(urlStr) {
|
|
|
107893
107856
|
return parse_url(urlStr);
|
|
107894
107857
|
}
|
|
107895
107858
|
|
|
107896
|
-
const streamDestructionSupported = 'destroy' in
|
|
107859
|
+
const streamDestructionSupported = 'destroy' in Stream$4.Readable.prototype;
|
|
107897
107860
|
|
|
107898
107861
|
/**
|
|
107899
107862
|
* Check if a value is an instance of Request.
|
|
@@ -108056,7 +108019,7 @@ function getNodeRequestOptions(request) {
|
|
|
108056
108019
|
throw new TypeError('Only HTTP(S) protocols are supported');
|
|
108057
108020
|
}
|
|
108058
108021
|
|
|
108059
|
-
if (request.signal && request.body instanceof
|
|
108022
|
+
if (request.signal && request.body instanceof Stream$4.Readable && !streamDestructionSupported) {
|
|
108060
108023
|
throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
|
|
108061
108024
|
}
|
|
108062
108025
|
|
|
@@ -108126,10 +108089,10 @@ AbortError.prototype = Object.create(Error.prototype);
|
|
|
108126
108089
|
AbortError.prototype.constructor = AbortError;
|
|
108127
108090
|
AbortError.prototype.name = 'AbortError';
|
|
108128
108091
|
|
|
108129
|
-
const URL$1$1 =
|
|
108092
|
+
const URL$1$1 = Url.URL || publicApi.URL;
|
|
108130
108093
|
|
|
108131
108094
|
// fix an issue where "PassThrough", "resolve" aren't a named export for node <10
|
|
108132
|
-
const PassThrough$1 =
|
|
108095
|
+
const PassThrough$1 = Stream$4.PassThrough;
|
|
108133
108096
|
|
|
108134
108097
|
const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
|
|
108135
108098
|
const orig = new URL$1$1(original).hostname;
|
|
@@ -108174,7 +108137,7 @@ function fetch$1(url, opts) {
|
|
|
108174
108137
|
const request = new Request(url, opts);
|
|
108175
108138
|
const options = getNodeRequestOptions(request);
|
|
108176
108139
|
|
|
108177
|
-
const send = (options.protocol === 'https:' ?
|
|
108140
|
+
const send = (options.protocol === 'https:' ? https$1 : http$1).request;
|
|
108178
108141
|
const signal = request.signal;
|
|
108179
108142
|
|
|
108180
108143
|
let response = null;
|
|
@@ -108182,7 +108145,7 @@ function fetch$1(url, opts) {
|
|
|
108182
108145
|
const abort = function abort() {
|
|
108183
108146
|
let error = new AbortError('The user aborted a request.');
|
|
108184
108147
|
reject(error);
|
|
108185
|
-
if (request.body && request.body instanceof
|
|
108148
|
+
if (request.body && request.body instanceof Stream$4.Readable) {
|
|
108186
108149
|
destroyStream(request.body, error);
|
|
108187
108150
|
}
|
|
108188
108151
|
if (!response || !response.body) return;
|
|
@@ -108398,13 +108361,13 @@ function fetch$1(url, opts) {
|
|
|
108398
108361
|
// by common browsers.
|
|
108399
108362
|
// Always using Z_SYNC_FLUSH is what cURL does.
|
|
108400
108363
|
const zlibOptions = {
|
|
108401
|
-
flush:
|
|
108402
|
-
finishFlush:
|
|
108364
|
+
flush: zlib$5.Z_SYNC_FLUSH,
|
|
108365
|
+
finishFlush: zlib$5.Z_SYNC_FLUSH
|
|
108403
108366
|
};
|
|
108404
108367
|
|
|
108405
108368
|
// for gzip
|
|
108406
108369
|
if (codings == 'gzip' || codings == 'x-gzip') {
|
|
108407
|
-
body = body.pipe(
|
|
108370
|
+
body = body.pipe(zlib$5.createGunzip(zlibOptions));
|
|
108408
108371
|
response = new Response(body, response_options);
|
|
108409
108372
|
resolve(response);
|
|
108410
108373
|
return;
|
|
@@ -108418,9 +108381,9 @@ function fetch$1(url, opts) {
|
|
|
108418
108381
|
raw.once('data', function (chunk) {
|
|
108419
108382
|
// see http://stackoverflow.com/questions/37519828
|
|
108420
108383
|
if ((chunk[0] & 0x0F) === 0x08) {
|
|
108421
|
-
body = body.pipe(
|
|
108384
|
+
body = body.pipe(zlib$5.createInflate());
|
|
108422
108385
|
} else {
|
|
108423
|
-
body = body.pipe(
|
|
108386
|
+
body = body.pipe(zlib$5.createInflateRaw());
|
|
108424
108387
|
}
|
|
108425
108388
|
response = new Response(body, response_options);
|
|
108426
108389
|
resolve(response);
|
|
@@ -108436,8 +108399,8 @@ function fetch$1(url, opts) {
|
|
|
108436
108399
|
}
|
|
108437
108400
|
|
|
108438
108401
|
// for br
|
|
108439
|
-
if (codings == 'br' && typeof
|
|
108440
|
-
body = body.pipe(
|
|
108402
|
+
if (codings == 'br' && typeof zlib$5.createBrotliDecompress === 'function') {
|
|
108403
|
+
body = body.pipe(zlib$5.createBrotliDecompress());
|
|
108441
108404
|
response = new Response(body, response_options);
|
|
108442
108405
|
resolve(response);
|
|
108443
108406
|
return;
|
|
@@ -108504,18 +108467,16 @@ fetch$1.Promise = global.Promise;
|
|
|
108504
108467
|
|
|
108505
108468
|
var lib$5 = /*#__PURE__*/Object.freeze({
|
|
108506
108469
|
__proto__: null,
|
|
108507
|
-
|
|
108470
|
+
AbortError: AbortError,
|
|
108471
|
+
FetchError: FetchError,
|
|
108508
108472
|
Headers: Headers,
|
|
108509
108473
|
Request: Request,
|
|
108510
108474
|
Response: Response,
|
|
108511
|
-
|
|
108512
|
-
AbortError: AbortError
|
|
108475
|
+
default: fetch$1
|
|
108513
108476
|
});
|
|
108514
108477
|
|
|
108515
108478
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(lib$5);
|
|
108516
108479
|
|
|
108517
|
-
fetchNpmNode.exports;
|
|
108518
|
-
|
|
108519
108480
|
(function (module) {
|
|
108520
108481
|
|
|
108521
108482
|
var realFetch = require$$0;
|
|
@@ -108534,8 +108495,6 @@ fetchNpmNode.exports;
|
|
|
108534
108495
|
}
|
|
108535
108496
|
} (fetchNpmNode));
|
|
108536
108497
|
|
|
108537
|
-
fetchNpmNode.exports;
|
|
108538
|
-
|
|
108539
108498
|
var request$1 = ((_ref, cb) => {
|
|
108540
108499
|
let {
|
|
108541
108500
|
url,
|
|
@@ -108583,26 +108542,26 @@ const EDGE_CROP = 3;
|
|
|
108583
108542
|
var constants$7 = /*#__PURE__*/Object.freeze({
|
|
108584
108543
|
__proto__: null,
|
|
108585
108544
|
AUTO: AUTO,
|
|
108586
|
-
HORIZONTAL_ALIGN_LEFT: HORIZONTAL_ALIGN_LEFT,
|
|
108587
|
-
HORIZONTAL_ALIGN_CENTER: HORIZONTAL_ALIGN_CENTER,
|
|
108588
|
-
HORIZONTAL_ALIGN_RIGHT: HORIZONTAL_ALIGN_RIGHT,
|
|
108589
|
-
VERTICAL_ALIGN_TOP: VERTICAL_ALIGN_TOP,
|
|
108590
|
-
VERTICAL_ALIGN_MIDDLE: VERTICAL_ALIGN_MIDDLE,
|
|
108591
|
-
VERTICAL_ALIGN_BOTTOM: VERTICAL_ALIGN_BOTTOM,
|
|
108592
|
-
BLEND_SOURCE_OVER: BLEND_SOURCE_OVER,
|
|
108593
|
-
BLEND_DESTINATION_OVER: BLEND_DESTINATION_OVER,
|
|
108594
|
-
BLEND_MULTIPLY: BLEND_MULTIPLY,
|
|
108595
108545
|
BLEND_ADD: BLEND_ADD,
|
|
108596
|
-
BLEND_SCREEN: BLEND_SCREEN,
|
|
108597
|
-
BLEND_OVERLAY: BLEND_OVERLAY,
|
|
108598
108546
|
BLEND_DARKEN: BLEND_DARKEN,
|
|
108599
|
-
|
|
108600
|
-
BLEND_HARDLIGHT: BLEND_HARDLIGHT,
|
|
108547
|
+
BLEND_DESTINATION_OVER: BLEND_DESTINATION_OVER,
|
|
108601
108548
|
BLEND_DIFFERENCE: BLEND_DIFFERENCE,
|
|
108602
108549
|
BLEND_EXCLUSION: BLEND_EXCLUSION,
|
|
108550
|
+
BLEND_HARDLIGHT: BLEND_HARDLIGHT,
|
|
108551
|
+
BLEND_LIGHTEN: BLEND_LIGHTEN,
|
|
108552
|
+
BLEND_MULTIPLY: BLEND_MULTIPLY,
|
|
108553
|
+
BLEND_OVERLAY: BLEND_OVERLAY,
|
|
108554
|
+
BLEND_SCREEN: BLEND_SCREEN,
|
|
108555
|
+
BLEND_SOURCE_OVER: BLEND_SOURCE_OVER,
|
|
108556
|
+
EDGE_CROP: EDGE_CROP,
|
|
108603
108557
|
EDGE_EXTEND: EDGE_EXTEND,
|
|
108604
108558
|
EDGE_WRAP: EDGE_WRAP,
|
|
108605
|
-
|
|
108559
|
+
HORIZONTAL_ALIGN_CENTER: HORIZONTAL_ALIGN_CENTER,
|
|
108560
|
+
HORIZONTAL_ALIGN_LEFT: HORIZONTAL_ALIGN_LEFT,
|
|
108561
|
+
HORIZONTAL_ALIGN_RIGHT: HORIZONTAL_ALIGN_RIGHT,
|
|
108562
|
+
VERTICAL_ALIGN_BOTTOM: VERTICAL_ALIGN_BOTTOM,
|
|
108563
|
+
VERTICAL_ALIGN_MIDDLE: VERTICAL_ALIGN_MIDDLE,
|
|
108564
|
+
VERTICAL_ALIGN_TOP: VERTICAL_ALIGN_TOP
|
|
108606
108565
|
});
|
|
108607
108566
|
|
|
108608
108567
|
function srcOver(src, dst) {
|
|
@@ -108816,17 +108775,17 @@ function exclusion(src, dst) {
|
|
|
108816
108775
|
|
|
108817
108776
|
var compositeModes = /*#__PURE__*/Object.freeze({
|
|
108818
108777
|
__proto__: null,
|
|
108819
|
-
srcOver: srcOver,
|
|
108820
|
-
dstOver: dstOver,
|
|
108821
|
-
multiply: multiply,
|
|
108822
108778
|
add: add,
|
|
108823
|
-
screen: screen,
|
|
108824
|
-
overlay: overlay,
|
|
108825
108779
|
darken: darken,
|
|
108826
|
-
lighten: lighten,
|
|
108827
|
-
hardLight: hardLight,
|
|
108828
108780
|
difference: difference,
|
|
108829
|
-
|
|
108781
|
+
dstOver: dstOver,
|
|
108782
|
+
exclusion: exclusion,
|
|
108783
|
+
hardLight: hardLight,
|
|
108784
|
+
lighten: lighten,
|
|
108785
|
+
multiply: multiply,
|
|
108786
|
+
overlay: overlay,
|
|
108787
|
+
screen: screen,
|
|
108788
|
+
srcOver: srcOver
|
|
108830
108789
|
});
|
|
108831
108790
|
|
|
108832
108791
|
/**
|
|
@@ -108953,7 +108912,7 @@ var FsPromise = {};
|
|
|
108953
108912
|
*/
|
|
108954
108913
|
Object.defineProperty(FsPromise, "__esModule", { value: true });
|
|
108955
108914
|
FsPromise.readFile = FsPromise.writeFileSync = FsPromise.writeFile = FsPromise.read = FsPromise.open = FsPromise.close = FsPromise.stat = FsPromise.createReadStream = FsPromise.pathExists = void 0;
|
|
108956
|
-
const fs$4 =
|
|
108915
|
+
const fs$4 = fs$d;
|
|
108957
108916
|
FsPromise.pathExists = fs$4.existsSync;
|
|
108958
108917
|
FsPromise.createReadStream = fs$4.createReadStream;
|
|
108959
108918
|
async function stat(path) {
|
|
@@ -113511,8 +113470,8 @@ function loadFromURL(options, cb) {
|
|
|
113511
113470
|
});
|
|
113512
113471
|
}
|
|
113513
113472
|
function loadBufferFromPath(src, cb) {
|
|
113514
|
-
if (
|
|
113515
|
-
|
|
113473
|
+
if (fs$d && typeof fs$d.readFile === "function" && !src.match(/^(http|ftp)s?:\/\/./)) {
|
|
113474
|
+
fs$d.readFile(src, cb);
|
|
113516
113475
|
} else {
|
|
113517
113476
|
loadFromURL({
|
|
113518
113477
|
url: src
|
|
@@ -113582,7 +113541,7 @@ const emptyBitmap = {
|
|
|
113582
113541
|
* @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap
|
|
113583
113542
|
*/
|
|
113584
113543
|
|
|
113585
|
-
|
|
113544
|
+
let Jimp$1 = class Jimp extends require$$0$4 {
|
|
113586
113545
|
// An object representing a bitmap in memory, comprising:
|
|
113587
113546
|
// - data: a buffer of the bitmap data
|
|
113588
113547
|
// - width: the width of the image in pixels
|
|
@@ -113603,7 +113562,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113603
113562
|
super();
|
|
113604
113563
|
_defineProperty(this, "bitmap", emptyBitmap);
|
|
113605
113564
|
_defineProperty(this, "_background", 0x00000000);
|
|
113606
|
-
_defineProperty(this, "_originalMime", Jimp
|
|
113565
|
+
_defineProperty(this, "_originalMime", Jimp.MIME_PNG);
|
|
113607
113566
|
_defineProperty(this, "_exif", null);
|
|
113608
113567
|
_defineProperty(this, "_rgba", true);
|
|
113609
113568
|
_defineProperty(this, "writeAsync", path => promisify(this.write, this, path));
|
|
@@ -113648,7 +113607,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113648
113607
|
|
|
113649
113608
|
// with a css color
|
|
113650
113609
|
if (typeof args[2] === "string") {
|
|
113651
|
-
this._background = Jimp
|
|
113610
|
+
this._background = Jimp.cssColorToHex(args[2]);
|
|
113652
113611
|
cb = args[3];
|
|
113653
113612
|
}
|
|
113654
113613
|
if (typeof cb === "undefined") {
|
|
@@ -113677,7 +113636,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113677
113636
|
}
|
|
113678
113637
|
this.parseBitmap(data, args[0].url, finish);
|
|
113679
113638
|
});
|
|
113680
|
-
} else if (args[0] instanceof Jimp
|
|
113639
|
+
} else if (args[0] instanceof Jimp) {
|
|
113681
113640
|
// clone an existing Jimp
|
|
113682
113641
|
const [original] = args;
|
|
113683
113642
|
cb = args[1];
|
|
@@ -113746,7 +113705,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113746
113705
|
cb = noop$1;
|
|
113747
113706
|
}
|
|
113748
113707
|
}
|
|
113749
|
-
const extraConstructor = Jimp
|
|
113708
|
+
const extraConstructor = Jimp.__extraConstructors.find(c => c.test(...args));
|
|
113750
113709
|
if (extraConstructor) {
|
|
113751
113710
|
new Promise((resolve, reject) => {
|
|
113752
113711
|
extraConstructor.run.call(this, resolve, reject, ...args);
|
|
@@ -113845,7 +113804,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113845
113804
|
* @returns {string} the MIME
|
|
113846
113805
|
*/
|
|
113847
113806
|
getMIME() {
|
|
113848
|
-
const mime = this._originalMime || Jimp
|
|
113807
|
+
const mime = this._originalMime || Jimp.MIME_PNG;
|
|
113849
113808
|
return mime;
|
|
113850
113809
|
}
|
|
113851
113810
|
|
|
@@ -113865,7 +113824,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113865
113824
|
* @returns {Jimp} this for chaining of methods
|
|
113866
113825
|
*/
|
|
113867
113826
|
write(path, cb) {
|
|
113868
|
-
if (!
|
|
113827
|
+
if (!fs$d || !fs$d.createWriteStream) {
|
|
113869
113828
|
throw new Error("Cant access the filesystem. You can use the getBase64 method.");
|
|
113870
113829
|
}
|
|
113871
113830
|
if (typeof path !== "string") {
|
|
@@ -113878,9 +113837,9 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113878
113837
|
return throwError.call(this, "cb must be a function", cb);
|
|
113879
113838
|
}
|
|
113880
113839
|
const mime = getType(path) || this.getMIME();
|
|
113881
|
-
const pathObj =
|
|
113840
|
+
const pathObj = Path.parse(path);
|
|
113882
113841
|
if (pathObj.dir) {
|
|
113883
|
-
|
|
113842
|
+
fs$d.mkdirSync(pathObj.dir, {
|
|
113884
113843
|
recursive: true
|
|
113885
113844
|
});
|
|
113886
113845
|
}
|
|
@@ -113888,7 +113847,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113888
113847
|
if (err) {
|
|
113889
113848
|
return throwError.call(this, err, cb);
|
|
113890
113849
|
}
|
|
113891
|
-
const stream =
|
|
113850
|
+
const stream = fs$d.createWriteStream(path);
|
|
113892
113851
|
stream.on("open", () => {
|
|
113893
113852
|
stream.write(buffer);
|
|
113894
113853
|
stream.end();
|
|
@@ -113908,7 +113867,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
113908
113867
|
* @returns {Jimp} this for chaining of methods
|
|
113909
113868
|
*/
|
|
113910
113869
|
getBase64(mime, cb) {
|
|
113911
|
-
if (mime === Jimp
|
|
113870
|
+
if (mime === Jimp.AUTO) {
|
|
113912
113871
|
// allow auto MIME detection
|
|
113913
113872
|
mime = this.getMIME();
|
|
113914
113873
|
}
|
|
@@ -114000,7 +113959,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
114000
113959
|
edgeHandling = null;
|
|
114001
113960
|
}
|
|
114002
113961
|
if (!edgeHandling) {
|
|
114003
|
-
edgeHandling = Jimp
|
|
113962
|
+
edgeHandling = Jimp.EDGE_EXTEND;
|
|
114004
113963
|
}
|
|
114005
113964
|
if (typeof x !== "number" || typeof y !== "number") {
|
|
114006
113965
|
return throwError.call(this, "x and y must be numbers", cb);
|
|
@@ -114011,13 +113970,13 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
114011
113970
|
y = Math.round(y);
|
|
114012
113971
|
xi = x;
|
|
114013
113972
|
yi = y;
|
|
114014
|
-
if (edgeHandling === Jimp
|
|
113973
|
+
if (edgeHandling === Jimp.EDGE_EXTEND) {
|
|
114015
113974
|
if (x < 0) xi = 0;
|
|
114016
113975
|
if (x >= this.bitmap.width) xi = this.bitmap.width - 1;
|
|
114017
113976
|
if (y < 0) yi = 0;
|
|
114018
113977
|
if (y >= this.bitmap.height) yi = this.bitmap.height - 1;
|
|
114019
113978
|
}
|
|
114020
|
-
if (edgeHandling === Jimp
|
|
113979
|
+
if (edgeHandling === Jimp.EDGE_WRAP) {
|
|
114021
113980
|
if (x < 0) {
|
|
114022
113981
|
xi = this.bitmap.width + x;
|
|
114023
113982
|
}
|
|
@@ -114115,7 +114074,7 @@ class Jimp$1 extends require$$0__default$3["default"] {
|
|
|
114115
114074
|
}
|
|
114116
114075
|
return scanIterator(this, x, y, w, h);
|
|
114117
114076
|
}
|
|
114118
|
-
}
|
|
114077
|
+
};
|
|
114119
114078
|
function addConstants(constants) {
|
|
114120
114079
|
let jimpInstance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Jimp$1;
|
|
114121
114080
|
Object.entries(constants).forEach(_ref => {
|
|
@@ -115239,7 +115198,6 @@ var encoder$1 = {exports: {}};
|
|
|
115239
115198
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
115240
115199
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
115241
115200
|
*/
|
|
115242
|
-
encoder$1.exports;
|
|
115243
115201
|
|
|
115244
115202
|
(function (module) {
|
|
115245
115203
|
|
|
@@ -115991,7 +115949,6 @@ var decoder$1 = {exports: {}};
|
|
|
115991
115949
|
|
|
115992
115950
|
/* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
|
115993
115951
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
|
115994
|
-
decoder$1.exports;
|
|
115995
115952
|
|
|
115996
115953
|
(function (module) {
|
|
115997
115954
|
/*
|
|
@@ -117194,8 +117151,8 @@ var parserAsync = {exports: {}};
|
|
|
117194
117151
|
|
|
117195
117152
|
var chunkstream = {exports: {}};
|
|
117196
117153
|
|
|
117197
|
-
let util$5 = require$$
|
|
117198
|
-
let Stream$2 =
|
|
117154
|
+
let util$5 = require$$0$1;
|
|
117155
|
+
let Stream$2 = Stream$4;
|
|
117199
117156
|
|
|
117200
117157
|
let ChunkStream$2 = (chunkstream.exports = function () {
|
|
117201
117158
|
Stream$2.call(this);
|
|
@@ -117677,7 +117634,7 @@ Filter$2.prototype._reverseFilterLine = function (rawData) {
|
|
|
117677
117634
|
|
|
117678
117635
|
var filterParseExports = filterParse.exports;
|
|
117679
117636
|
|
|
117680
|
-
let util$4 = require$$
|
|
117637
|
+
let util$4 = require$$0$1;
|
|
117681
117638
|
let ChunkStream$1 = chunkstreamExports;
|
|
117682
117639
|
let Filter$1 = filterParseExports;
|
|
117683
117640
|
|
|
@@ -118429,8 +118386,8 @@ var formatNormaliser$2 = function (indata, imageData, skipRescale = false) {
|
|
|
118429
118386
|
return outdata;
|
|
118430
118387
|
};
|
|
118431
118388
|
|
|
118432
|
-
let util$3 = require$$
|
|
118433
|
-
let zlib$4 =
|
|
118389
|
+
let util$3 = require$$0$1;
|
|
118390
|
+
let zlib$4 = zlib$5;
|
|
118434
118391
|
let ChunkStream = chunkstreamExports;
|
|
118435
118392
|
let FilterAsync = filterParseAsyncExports;
|
|
118436
118393
|
let Parser$2 = parserExports;
|
|
@@ -118934,7 +118891,7 @@ let constants$3 = constants$6;
|
|
|
118934
118891
|
let CrcStream = crcExports;
|
|
118935
118892
|
let bitPacker = bitpacker;
|
|
118936
118893
|
let filter = filterPack;
|
|
118937
|
-
let zlib$3 =
|
|
118894
|
+
let zlib$3 = zlib$5;
|
|
118938
118895
|
|
|
118939
118896
|
let Packer$3 = (packer.exports = function (options) {
|
|
118940
118897
|
this._options = options;
|
|
@@ -119060,8 +119017,8 @@ Packer$3.prototype.packIEND = function () {
|
|
|
119060
119017
|
|
|
119061
119018
|
var packerExports = packer.exports;
|
|
119062
119019
|
|
|
119063
|
-
let util$2 = require$$
|
|
119064
|
-
let Stream$1 =
|
|
119020
|
+
let util$2 = require$$0$1;
|
|
119021
|
+
let Stream$1 = Stream$4;
|
|
119065
119022
|
let constants$2 = constants$6;
|
|
119066
119023
|
let Packer$2 = packerExports;
|
|
119067
119024
|
|
|
@@ -119115,15 +119072,13 @@ var pngSync = {};
|
|
|
119115
119072
|
|
|
119116
119073
|
var syncInflate = {exports: {}};
|
|
119117
119074
|
|
|
119118
|
-
syncInflate.exports;
|
|
119119
|
-
|
|
119120
119075
|
(function (module, exports) {
|
|
119121
119076
|
|
|
119122
|
-
let assert = require$$
|
|
119123
|
-
let zlib =
|
|
119124
|
-
let util = require$$
|
|
119077
|
+
let assert = require$$0$6.ok;
|
|
119078
|
+
let zlib = zlib$5;
|
|
119079
|
+
let util = require$$0$1;
|
|
119125
119080
|
|
|
119126
|
-
let kMaxLength = require$$
|
|
119081
|
+
let kMaxLength = require$$3.kMaxLength;
|
|
119127
119082
|
|
|
119128
119083
|
function Inflate(opts) {
|
|
119129
119084
|
if (!(this instanceof Inflate)) {
|
|
@@ -119150,9 +119105,6 @@ syncInflate.exports;
|
|
|
119150
119105
|
}
|
|
119151
119106
|
|
|
119152
119107
|
function _close(engine, callback) {
|
|
119153
|
-
if (callback) {
|
|
119154
|
-
process.nextTick(callback);
|
|
119155
|
-
}
|
|
119156
119108
|
|
|
119157
119109
|
// Caller may invoke .close after a zlib error (which will null _handle).
|
|
119158
119110
|
if (!engine._handle) {
|
|
@@ -119360,7 +119312,7 @@ filterParseSync.process = function (inBuffer, bitmapInfo) {
|
|
|
119360
119312
|
};
|
|
119361
119313
|
|
|
119362
119314
|
let hasSyncZlib$1 = true;
|
|
119363
|
-
let zlib$2 =
|
|
119315
|
+
let zlib$2 = zlib$5;
|
|
119364
119316
|
let inflateSync = syncInflateExports;
|
|
119365
119317
|
if (!zlib$2.deflateSync) {
|
|
119366
119318
|
hasSyncZlib$1 = false;
|
|
@@ -119471,7 +119423,7 @@ var parserSync = function (buffer, options) {
|
|
|
119471
119423
|
};
|
|
119472
119424
|
|
|
119473
119425
|
let hasSyncZlib = true;
|
|
119474
|
-
let zlib$1 =
|
|
119426
|
+
let zlib$1 = zlib$5;
|
|
119475
119427
|
if (!zlib$1.deflateSync) {
|
|
119476
119428
|
hasSyncZlib = false;
|
|
119477
119429
|
}
|
|
@@ -119538,8 +119490,8 @@ pngSync.write = function (png, options) {
|
|
|
119538
119490
|
|
|
119539
119491
|
var PNG_1;
|
|
119540
119492
|
|
|
119541
|
-
let util$1 = require$$
|
|
119542
|
-
let Stream =
|
|
119493
|
+
let util$1 = require$$0$1;
|
|
119494
|
+
let Stream = Stream$4;
|
|
119543
119495
|
let Parser = parserAsyncExports;
|
|
119544
119496
|
let Packer = packerAsyncExports;
|
|
119545
119497
|
let PNGSync = pngSync;
|
|
@@ -121179,7 +121131,7 @@ function requireTrees () {
|
|
|
121179
121131
|
{
|
|
121180
121132
|
bi_windup(s); /* align on byte boundary */
|
|
121181
121133
|
|
|
121182
|
-
|
|
121134
|
+
{
|
|
121183
121135
|
put_short(s, len);
|
|
121184
121136
|
put_short(s, ~len);
|
|
121185
121137
|
}
|
|
@@ -121677,7 +121629,7 @@ function requireTrees () {
|
|
|
121677
121629
|
//int last; /* one if this is the last block for a file */
|
|
121678
121630
|
{
|
|
121679
121631
|
send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */
|
|
121680
|
-
copy_block(s, buf, stored_len
|
|
121632
|
+
copy_block(s, buf, stored_len); /* with header */
|
|
121681
121633
|
}
|
|
121682
121634
|
|
|
121683
121635
|
|
|
@@ -127414,8 +127366,6 @@ function requirePako () {
|
|
|
127414
127366
|
return pako_1;
|
|
127415
127367
|
}
|
|
127416
127368
|
|
|
127417
|
-
UTIF.exports;
|
|
127418
|
-
|
|
127419
127369
|
(function (module) {
|
|
127420
127370
|
(function(){
|
|
127421
127371
|
var UTIF = {};
|
|
@@ -128092,7 +128042,7 @@ UTIF.exports;
|
|
|
128092
128042
|
//if (nbits < 0) return bitbuf = vbits = reset = 0;
|
|
128093
128043
|
if (nbits == 0 || vbits < 0) return 0;
|
|
128094
128044
|
while (!reset && vbits < nbits && (c = data[off++]) != -1 &&
|
|
128095
|
-
!(reset = zero_after_ff
|
|
128045
|
+
!(reset = zero_after_ff)) {
|
|
128096
128046
|
//console.log("byte read into c");
|
|
128097
128047
|
bitbuf = (bitbuf << 8) + c;
|
|
128098
128048
|
vbits += 8;
|
|
@@ -129875,7 +129825,7 @@ try { GifWriter_1 = omggif.GifWriter = GifWriter; GifReader_1 = omggif.GifReader
|
|
|
129875
129825
|
|
|
129876
129826
|
/** @class BitmapImage */
|
|
129877
129827
|
|
|
129878
|
-
|
|
129828
|
+
let BitmapImage$2 = class BitmapImage {
|
|
129879
129829
|
|
|
129880
129830
|
/**
|
|
129881
129831
|
* BitmapImage is a class that hold an RGBA (red, green, blue, alpha) representation of an image. It's shape is borrowed from the Jimp package to make it easy to transfer GIF image frames into Jimp and Jimp images into GIF image frames. Each instance has a `bitmap` property having the following properties:
|
|
@@ -129906,7 +129856,7 @@ class BitmapImage$2 {
|
|
|
129906
129856
|
}
|
|
129907
129857
|
const firstArg = args[0];
|
|
129908
129858
|
if (firstArg !== null && typeof firstArg === 'object') {
|
|
129909
|
-
if (firstArg instanceof BitmapImage
|
|
129859
|
+
if (firstArg instanceof BitmapImage) {
|
|
129910
129860
|
// copy a provided BitmapImage
|
|
129911
129861
|
const sourceBitmap = firstArg.bitmap;
|
|
129912
129862
|
this.bitmap = {
|
|
@@ -130087,10 +130037,10 @@ class BitmapImage$2 {
|
|
|
130087
130037
|
{
|
|
130088
130038
|
throw new GifError(`fillRGBA required for this reframing`);
|
|
130089
130039
|
}
|
|
130090
|
-
image = new BitmapImage
|
|
130040
|
+
image = new BitmapImage(width, height);
|
|
130091
130041
|
}
|
|
130092
130042
|
else {
|
|
130093
|
-
image = new BitmapImage
|
|
130043
|
+
image = new BitmapImage(width, height, fillRGBA);
|
|
130094
130044
|
}
|
|
130095
130045
|
this.blit(image, newX, newY, cropX, cropY, cropWidth, cropHeight);
|
|
130096
130046
|
this.bitmap = image.bitmap;
|
|
@@ -130178,7 +130128,7 @@ class BitmapImage$2 {
|
|
|
130178
130128
|
scanHandler(bi);
|
|
130179
130129
|
}
|
|
130180
130130
|
}
|
|
130181
|
-
}
|
|
130131
|
+
};
|
|
130182
130132
|
|
|
130183
130133
|
var bitmapimage = BitmapImage$2;
|
|
130184
130134
|
|
|
@@ -130186,7 +130136,7 @@ var gif$1 = {};
|
|
|
130186
130136
|
|
|
130187
130137
|
/** @class Gif */
|
|
130188
130138
|
|
|
130189
|
-
|
|
130139
|
+
let Gif$1 = class Gif {
|
|
130190
130140
|
|
|
130191
130141
|
// width - width of GIF in pixels
|
|
130192
130142
|
// height - height of GIF in pixels
|
|
@@ -130225,7 +130175,7 @@ class Gif$1 {
|
|
|
130225
130175
|
this.frames = frames;
|
|
130226
130176
|
this.buffer = buffer;
|
|
130227
130177
|
}
|
|
130228
|
-
}
|
|
130178
|
+
};
|
|
130229
130179
|
|
|
130230
130180
|
Gif$1.GlobalColorsPreferred = 0;
|
|
130231
130181
|
Gif$1.GlobalColorsOnly = 1;
|
|
@@ -130233,7 +130183,7 @@ Gif$1.LocalColorsOnly = 2;
|
|
|
130233
130183
|
|
|
130234
130184
|
/** @class GifError */
|
|
130235
130185
|
|
|
130236
|
-
|
|
130186
|
+
let GifError$2 = class GifError extends Error {
|
|
130237
130187
|
|
|
130238
130188
|
/**
|
|
130239
130189
|
* GifError is a class representing a GIF-related error
|
|
@@ -130247,7 +130197,7 @@ class GifError$2 extends Error {
|
|
|
130247
130197
|
this.stack = 'Gif' + messageOrError.stack;
|
|
130248
130198
|
}
|
|
130249
130199
|
}
|
|
130250
|
-
}
|
|
130200
|
+
};
|
|
130251
130201
|
|
|
130252
130202
|
gif$1.Gif = Gif$1;
|
|
130253
130203
|
gif$1.GifError = GifError$2;
|
|
@@ -130269,7 +130219,7 @@ var __export = (target, all) => {
|
|
|
130269
130219
|
var __reExport = (target, module2, copyDefault, desc) => {
|
|
130270
130220
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
130271
130221
|
for (let key of __getOwnPropNames(module2))
|
|
130272
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault
|
|
130222
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault))
|
|
130273
130223
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
130274
130224
|
}
|
|
130275
130225
|
return target;
|
|
@@ -132945,7 +132895,7 @@ const BitmapImage$1 = bitmapimage;
|
|
|
132945
132895
|
|
|
132946
132896
|
/** @class GifFrame */
|
|
132947
132897
|
|
|
132948
|
-
|
|
132898
|
+
let GifFrame$1 = class GifFrame extends BitmapImage$1 {
|
|
132949
132899
|
|
|
132950
132900
|
// xOffset - x offset of bitmap on GIF (defaults to 0)
|
|
132951
132901
|
// yOffset - y offset of bitmap on GIF (defaults to 0)
|
|
@@ -132979,7 +132929,7 @@ class GifFrame$1 extends BitmapImage$1 {
|
|
|
132979
132929
|
|
|
132980
132930
|
constructor(...args) {
|
|
132981
132931
|
super(...args);
|
|
132982
|
-
if (args[0] instanceof GifFrame
|
|
132932
|
+
if (args[0] instanceof GifFrame) {
|
|
132983
132933
|
// copy a provided GifFrame
|
|
132984
132934
|
const source = args[0];
|
|
132985
132935
|
this.xOffset = source.xOffset;
|
|
@@ -132997,7 +132947,7 @@ class GifFrame$1 extends BitmapImage$1 {
|
|
|
132997
132947
|
this.xOffset = options.xOffset || 0;
|
|
132998
132948
|
this.yOffset = options.yOffset || 0;
|
|
132999
132949
|
this.disposalMethod = (options.disposalMethod !== undefined ?
|
|
133000
|
-
options.disposalMethod : GifFrame
|
|
132950
|
+
options.disposalMethod : GifFrame.DisposeToBackgroundColor);
|
|
133001
132951
|
this.delayCentisecs = options.delayCentisecs || 8;
|
|
133002
132952
|
this.interlaced = options.interlaced || false;
|
|
133003
132953
|
}
|
|
@@ -133044,7 +132994,7 @@ class GifFrame$1 extends BitmapImage$1 {
|
|
|
133044
132994
|
}
|
|
133045
132995
|
return { colors, usesTransparency, indexCount };
|
|
133046
132996
|
}
|
|
133047
|
-
}
|
|
132997
|
+
};
|
|
133048
132998
|
|
|
133049
132999
|
GifFrame$1.DisposeToAnything = 0;
|
|
133050
133000
|
GifFrame$1.DisposeNothing = 1;
|
|
@@ -133062,7 +133012,7 @@ function requireGifutil () {
|
|
|
133062
133012
|
|
|
133063
133013
|
/** @namespace GifUtil */
|
|
133064
133014
|
|
|
133065
|
-
const fs =
|
|
133015
|
+
const fs = fs$d;
|
|
133066
133016
|
const ImageQ = imageQ;
|
|
133067
133017
|
|
|
133068
133018
|
const BitmapImage = bitmapimage;
|
|
@@ -134260,23 +134210,6 @@ function colorFn(actions, cb) {
|
|
|
134260
134210
|
}
|
|
134261
134211
|
return this;
|
|
134262
134212
|
}
|
|
134263
|
-
Object.freeze({
|
|
134264
|
-
LIGHTEN: "lighten",
|
|
134265
|
-
BRIGHTEN: "brighten",
|
|
134266
|
-
DARKEN: "darken",
|
|
134267
|
-
DESATURATE: "desaturate",
|
|
134268
|
-
SATURATE: "saturate",
|
|
134269
|
-
GREYSCALE: "greyscale",
|
|
134270
|
-
SPIN: "spin",
|
|
134271
|
-
HUE: "hue",
|
|
134272
|
-
MIX: "mix",
|
|
134273
|
-
TINT: "tint",
|
|
134274
|
-
SHADE: "shade",
|
|
134275
|
-
XOR: "xor",
|
|
134276
|
-
RED: "red",
|
|
134277
|
-
GREEN: "green",
|
|
134278
|
-
BLUE: "blue"
|
|
134279
|
-
});
|
|
134280
134213
|
var color = (() => ({
|
|
134281
134214
|
/**
|
|
134282
134215
|
* Adjusts the brightness of the image
|
|
@@ -134734,6 +134667,7 @@ var cover = (() => ({
|
|
|
134734
134667
|
}));
|
|
134735
134668
|
|
|
134736
134669
|
/* eslint-disable no-labels */
|
|
134670
|
+
|
|
134737
134671
|
function pluginCrop(event) {
|
|
134738
134672
|
/**
|
|
134739
134673
|
* Crops the image at a given point to a give size
|
|
@@ -135303,7 +135237,7 @@ var normalize$1 = (() => ({
|
|
|
135303
135237
|
}
|
|
135304
135238
|
}));
|
|
135305
135239
|
|
|
135306
|
-
var _typeof=typeof Symbol==='function'&&typeof Symbol.iterator==='symbol'?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==='function'&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj};var http=
|
|
135240
|
+
var _typeof=typeof Symbol==='function'&&typeof Symbol.iterator==='symbol'?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==='function'&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj};var http=http$1;var https=https$1;var url$1=Url;var qs=require$$3$1;var zlib=zlib$5;var util=require$$0$1;var phin=function phin(opts,cb){if(typeof opts!=='string'){if(!opts.hasOwnProperty('url')){throw new Error('Missing url option from options for request method.')}}var addr=(typeof opts==='undefined'?'undefined':_typeof(opts))==='object'?url$1.parse(opts.url):url$1.parse(opts);var options={'hostname':addr.hostname,'port':addr.port||(addr.protocol.toLowerCase()==='http:'?80:443),'path':addr.path,'method':'GET','headers':{},'auth':addr.auth||null,'parse':'none','stream':false};if((typeof opts==='undefined'?'undefined':_typeof(opts))==='object'){options=Object.assign(options,opts);}options.port=Number(options.port);if(options.hasOwnProperty('timeout'))delete options.timeout;if(options.compressed===true){options.headers['accept-encoding']='gzip, deflate';}if(opts.hasOwnProperty('form')){if(_typeof(opts.form)!=='object'){throw new Error('phin \'form\' option must be of type Object if present.')}var formDataString=qs.stringify(opts.form);options.headers['Content-Type']='application/x-www-form-urlencoded';options.headers['Content-Length']=Buffer.byteLength(formDataString);opts.data=formDataString;}var req=void 0;var resHandler=function resHandler(res){var stream=res;if(options.compressed===true){if(res.headers['content-encoding']==='gzip'){stream=res.pipe(zlib.createGunzip());}else if(res.headers['content-encoding']==='deflate'){stream=res.pipe(zlib.createInflate());}}if(options.stream===true){res.stream=stream;if(cb)cb(null,res);}else {res.body=new Buffer([]);stream.on('data',function(chunk){res.body=Buffer.concat([res.body,chunk]);});stream.on('end',function(){if(cb){if(options.parse==='json'){try{res.body=JSON.parse(res.body.toString());}catch(err){cb('Invalid JSON received.',res);return}}cb(null,res);}});}};switch(addr.protocol.toLowerCase()){case'http:':req=http.request(options,resHandler);break;case'https:':req=https.request(options,resHandler);break;default:if(cb)cb(new Error('Invalid / unknown URL protocol. Expected HTTP or HTTPS.'),null);return;}if(typeof opts.timeout==='number'){req.setTimeout(opts.timeout,function(){req.abort();if(cb)cb(new Error('Timeout has been reached.'),null);cb=null;});}req.on('error',function(err){if(cb)cb(err,null);});if(opts.hasOwnProperty('data')){var postData=opts.data;if(!(opts.data instanceof Buffer)&&_typeof(opts.data)==='object'){var contentType=options.headers['content-type']||options.headers['Content-Type'];if(contentType==='application/x-www-form-urlencoded'){postData=qs.stringify(opts.data);}else {try{postData=JSON.stringify(opts.data);}catch(err){if(cb)cb(new Error('Couldn\'t stringify object. (Likely due to a circular reference.)'),null);}}}req.write(postData);}req.end();};phin.promisified=function(opts,http){return new Promise(function(resolve,reject){phin(opts,function(err,res){if(err){reject(err);}else {resolve(res);}});})};if(util.promisify){phin[util.promisify.custom]=phin.promisified;}var phin_compiled=phin;
|
|
135307
135241
|
|
|
135308
135242
|
var parseBmfontAscii = function parseBMFontAscii(data) {
|
|
135309
135243
|
if (!data)
|
|
@@ -140255,7 +140189,7 @@ function requireSax () {
|
|
|
140255
140189
|
typeof Buffer.isBuffer === 'function' &&
|
|
140256
140190
|
Buffer.isBuffer(data)) {
|
|
140257
140191
|
if (!this._decoder) {
|
|
140258
|
-
var SD = require$$
|
|
140192
|
+
var SD = require$$1$1.StringDecoder;
|
|
140259
140193
|
this._decoder = new SD('utf8');
|
|
140260
140194
|
}
|
|
140261
140195
|
data = this._decoder.write(data);
|
|
@@ -141677,13 +141611,13 @@ function requireParser () {
|
|
|
141677
141611
|
|
|
141678
141612
|
sax = requireSax();
|
|
141679
141613
|
|
|
141680
|
-
events = require$$
|
|
141614
|
+
events = require$$0$4;
|
|
141681
141615
|
|
|
141682
141616
|
bom = requireBom();
|
|
141683
141617
|
|
|
141684
141618
|
processors = requireProcessors();
|
|
141685
141619
|
|
|
141686
|
-
setImmediate = require$$
|
|
141620
|
+
setImmediate = require$$4$1.setImmediate;
|
|
141687
141621
|
|
|
141688
141622
|
defaults = requireDefaults().defaults;
|
|
141689
141623
|
|
|
@@ -145096,7 +145030,7 @@ var require$$2 = {
|
|
|
145096
145030
|
]
|
|
145097
145031
|
};
|
|
145098
145032
|
|
|
145099
|
-
var fs$2 =
|
|
145033
|
+
var fs$2 = fs$d;
|
|
145100
145034
|
|
|
145101
145035
|
function Mime() {
|
|
145102
145036
|
// Map of extension -> mime type
|
|
@@ -145204,7 +145138,7 @@ mime$1.charsets = {
|
|
|
145204
145138
|
|
|
145205
145139
|
var mime_1 = mime$1;
|
|
145206
145140
|
|
|
145207
|
-
var Buffer$1 = require$$
|
|
145141
|
+
var Buffer$1 = require$$3.Buffer; // for use with browserify
|
|
145208
145142
|
|
|
145209
145143
|
var bufferEqual = function (a, b) {
|
|
145210
145144
|
if (!Buffer$1.isBuffer(a)) return undefined;
|
|
@@ -145228,8 +145162,8 @@ var isBinary$1 = function(buf) {
|
|
|
145228
145162
|
return buf.length > 4 && equal(buf.slice(0, 4), HEADER)
|
|
145229
145163
|
};
|
|
145230
145164
|
|
|
145231
|
-
var fs$1 =
|
|
145232
|
-
var url =
|
|
145165
|
+
var fs$1 = fs$d;
|
|
145166
|
+
var url = Url;
|
|
145233
145167
|
var request = phin_compiled;
|
|
145234
145168
|
var parseASCII = parseBmfontAscii;
|
|
145235
145169
|
var parseXML = lib;
|
|
@@ -145368,19 +145302,19 @@ var print = (() => ({
|
|
|
145368
145302
|
constants: {
|
|
145369
145303
|
measureText,
|
|
145370
145304
|
measureTextHeight,
|
|
145371
|
-
FONT_SANS_8_BLACK:
|
|
145372
|
-
FONT_SANS_10_BLACK:
|
|
145373
|
-
FONT_SANS_12_BLACK:
|
|
145374
|
-
FONT_SANS_14_BLACK:
|
|
145375
|
-
FONT_SANS_16_BLACK:
|
|
145376
|
-
FONT_SANS_32_BLACK:
|
|
145377
|
-
FONT_SANS_64_BLACK:
|
|
145378
|
-
FONT_SANS_128_BLACK:
|
|
145379
|
-
FONT_SANS_8_WHITE:
|
|
145380
|
-
FONT_SANS_16_WHITE:
|
|
145381
|
-
FONT_SANS_32_WHITE:
|
|
145382
|
-
FONT_SANS_64_WHITE:
|
|
145383
|
-
FONT_SANS_128_WHITE:
|
|
145305
|
+
FONT_SANS_8_BLACK: Path.join(dir, "fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),
|
|
145306
|
+
FONT_SANS_10_BLACK: Path.join(dir, "fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),
|
|
145307
|
+
FONT_SANS_12_BLACK: Path.join(dir, "fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),
|
|
145308
|
+
FONT_SANS_14_BLACK: Path.join(dir, "fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),
|
|
145309
|
+
FONT_SANS_16_BLACK: Path.join(dir, "fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),
|
|
145310
|
+
FONT_SANS_32_BLACK: Path.join(dir, "fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),
|
|
145311
|
+
FONT_SANS_64_BLACK: Path.join(dir, "fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),
|
|
145312
|
+
FONT_SANS_128_BLACK: Path.join(dir, "fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),
|
|
145313
|
+
FONT_SANS_8_WHITE: Path.join(dir, "fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),
|
|
145314
|
+
FONT_SANS_16_WHITE: Path.join(dir, "fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),
|
|
145315
|
+
FONT_SANS_32_WHITE: Path.join(dir, "fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),
|
|
145316
|
+
FONT_SANS_64_WHITE: Path.join(dir, "fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),
|
|
145317
|
+
FONT_SANS_128_WHITE: Path.join(dir, "fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),
|
|
145384
145318
|
/**
|
|
145385
145319
|
* Loads a bitmap font from a file
|
|
145386
145320
|
* @param {string} file the file path of a .fnt file
|
|
@@ -145407,7 +145341,7 @@ var print = (() => ({
|
|
|
145407
145341
|
kernings[firstString] = kernings[firstString] || {};
|
|
145408
145342
|
kernings[firstString][String.fromCharCode(font.kernings[i].second)] = font.kernings[i].amount;
|
|
145409
145343
|
}
|
|
145410
|
-
loadPages(this,
|
|
145344
|
+
loadPages(this, Path.dirname(file), font.pages).then(pages => {
|
|
145411
145345
|
cb(null, {
|
|
145412
145346
|
chars,
|
|
145413
145347
|
kernings,
|
|
@@ -146534,8 +146468,6 @@ var Jimp = configure({
|
|
|
146534
146468
|
|
|
146535
146469
|
var jsQR$1 = {exports: {}};
|
|
146536
146470
|
|
|
146537
|
-
jsQR$1.exports;
|
|
146538
|
-
|
|
146539
146471
|
(function (module, exports) {
|
|
146540
146472
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
146541
146473
|
module.exports = factory();
|
|
@@ -156606,7 +156538,7 @@ jsQR$1.exports;
|
|
|
156606
156538
|
/***/ })
|
|
156607
156539
|
/******/ ])["default"];
|
|
156608
156540
|
});
|
|
156609
|
-
} (jsQR$1
|
|
156541
|
+
} (jsQR$1));
|
|
156610
156542
|
|
|
156611
156543
|
var jsQRExports = jsQR$1.exports;
|
|
156612
156544
|
var jsQR = /*@__PURE__*/getDefaultExportFromCjs(jsQRExports);
|
|
@@ -156676,7 +156608,7 @@ const filterUtils = {
|
|
|
156676
156608
|
};
|
|
156677
156609
|
|
|
156678
156610
|
const getAmountWithSymbol = (amount, options) => {
|
|
156679
|
-
const formatter = new Intl.NumberFormat(
|
|
156611
|
+
const formatter = new Intl.NumberFormat(dayjs.locale(), {
|
|
156680
156612
|
...options,
|
|
156681
156613
|
});
|
|
156682
156614
|
return formatter.format(Number(amount));
|
|
@@ -156789,10 +156721,10 @@ var require$$4 = {
|
|
|
156789
156721
|
browser: browser
|
|
156790
156722
|
};
|
|
156791
156723
|
|
|
156792
|
-
const fs =
|
|
156793
|
-
const path =
|
|
156794
|
-
const os = require$$
|
|
156795
|
-
const crypto = require$$
|
|
156724
|
+
const fs = fs$d;
|
|
156725
|
+
const path = Path;
|
|
156726
|
+
const os = require$$0$2;
|
|
156727
|
+
const crypto = require$$3$2;
|
|
156796
156728
|
const packageJson = require$$4;
|
|
156797
156729
|
|
|
156798
156730
|
const version = packageJson.version;
|
|
@@ -157301,7 +157233,6 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
157301
157233
|
baseURL: process.env.BASE_URL,
|
|
157302
157234
|
testIdAttribute: "data-cy",
|
|
157303
157235
|
trace: "on",
|
|
157304
|
-
video: { mode: "on" },
|
|
157305
157236
|
screenshot: "on",
|
|
157306
157237
|
actionTimeout: 10 * 1000,
|
|
157307
157238
|
timezoneId: "Asia/Calcutta",
|