@geekron/strapi 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/index.js +608 -1686
- package/dist/admin/index.mjs +604 -1681
- package/dist/i18n/index.js +79 -0
- package/dist/i18n/index.mjs +58 -0
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/i18n/translations/en/admin.json +10 -0
- package/i18n/translations/en/auth.json +6 -0
- package/i18n/translations/en/reset/content-manager.json +4 -0
- package/i18n/translations/index.ts +53 -0
- package/i18n/translations/zh-Hans/admin.json +213 -0
- package/i18n/translations/zh-Hans/auth.json +6 -0
- package/i18n/translations/zh-Hans/base.json +93 -0
- package/i18n/translations/zh-Hans/missing.json +105 -0
- package/i18n/translations/zh-Hans/model.json +396 -0
- package/i18n/translations/zh-Hans/plugin.json +13 -0
- package/i18n/translations/zh-Hans/prefix/content-manager.json +321 -0
- package/i18n/translations/zh-Hans/prefix/content-releases.json +106 -0
- package/i18n/translations/zh-Hans/prefix/content-type-builder.json +68 -0
- package/i18n/translations/zh-Hans/prefix/email.json +10 -0
- package/i18n/translations/zh-Hans/prefix/review-workflows.json +17 -0
- package/i18n/translations/zh-Hans/prefix/seo.json +109 -0
- package/i18n/translations/zh-Hans/reset/content-manager.json +4 -0
- package/i18n/translations/zh-Hans/reset/content-type-builder.json +228 -0
- package/i18n/translations/zh-Hans/reset/i18n.json +4 -0
- package/package.json +21 -8
package/dist/admin/index.mjs
CHANGED
|
@@ -59,6 +59,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
59
59
|
var __createBinding;
|
|
60
60
|
var __addDisposableResource;
|
|
61
61
|
var __disposeResources;
|
|
62
|
+
var __rewriteRelativeImportExtension;
|
|
62
63
|
(function(factory) {
|
|
63
64
|
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
64
65
|
if (typeof define === "function" && define.amd) {
|
|
@@ -230,8 +231,8 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
230
231
|
if (t2[0] & 1)
|
|
231
232
|
throw t2[1];
|
|
232
233
|
return t2[1];
|
|
233
|
-
}, trys: [], ops: [] }, f2, y2, t2, g2;
|
|
234
|
-
return g2 =
|
|
234
|
+
}, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
235
|
+
return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
235
236
|
return this;
|
|
236
237
|
}), g2;
|
|
237
238
|
function verb(n2) {
|
|
@@ -387,16 +388,24 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
387
388
|
if (!Symbol.asyncIterator)
|
|
388
389
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
389
390
|
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
390
|
-
return i2 =
|
|
391
|
+
return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
|
|
391
392
|
return this;
|
|
392
393
|
}, i2;
|
|
393
|
-
function
|
|
394
|
-
|
|
394
|
+
function awaitReturn(f2) {
|
|
395
|
+
return function(v2) {
|
|
396
|
+
return Promise.resolve(v2).then(f2, reject);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function verb(n2, f2) {
|
|
400
|
+
if (g2[n2]) {
|
|
395
401
|
i2[n2] = function(v2) {
|
|
396
402
|
return new Promise(function(a2, b2) {
|
|
397
403
|
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
398
404
|
});
|
|
399
405
|
};
|
|
406
|
+
if (f2)
|
|
407
|
+
i2[n2] = f2(i2[n2]);
|
|
408
|
+
}
|
|
400
409
|
}
|
|
401
410
|
function resume(n2, v2) {
|
|
402
411
|
try {
|
|
@@ -465,14 +474,24 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
465
474
|
} : function(o2, v2) {
|
|
466
475
|
o2["default"] = v2;
|
|
467
476
|
};
|
|
477
|
+
var ownKeys = function(o2) {
|
|
478
|
+
ownKeys = Object.getOwnPropertyNames || function(o3) {
|
|
479
|
+
var ar = [];
|
|
480
|
+
for (var k in o3)
|
|
481
|
+
if (Object.prototype.hasOwnProperty.call(o3, k))
|
|
482
|
+
ar[ar.length] = k;
|
|
483
|
+
return ar;
|
|
484
|
+
};
|
|
485
|
+
return ownKeys(o2);
|
|
486
|
+
};
|
|
468
487
|
__importStar = function(mod) {
|
|
469
488
|
if (mod && mod.__esModule)
|
|
470
489
|
return mod;
|
|
471
490
|
var result = {};
|
|
472
491
|
if (mod != null) {
|
|
473
|
-
for (var k
|
|
474
|
-
if (k !== "default"
|
|
475
|
-
__createBinding(result, mod, k);
|
|
492
|
+
for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
|
|
493
|
+
if (k[i2] !== "default")
|
|
494
|
+
__createBinding(result, mod, k[i2]);
|
|
476
495
|
}
|
|
477
496
|
__setModuleDefault(result, mod);
|
|
478
497
|
return result;
|
|
@@ -505,7 +524,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
505
524
|
if (value !== null && value !== undefined) {
|
|
506
525
|
if (typeof value !== "object" && typeof value !== "function")
|
|
507
526
|
throw new TypeError("Object expected.");
|
|
508
|
-
var dispose;
|
|
527
|
+
var dispose, inner;
|
|
509
528
|
if (async) {
|
|
510
529
|
if (!Symbol.asyncDispose)
|
|
511
530
|
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
@@ -515,9 +534,19 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
515
534
|
if (!Symbol.dispose)
|
|
516
535
|
throw new TypeError("Symbol.dispose is not defined.");
|
|
517
536
|
dispose = value[Symbol.dispose];
|
|
537
|
+
if (async)
|
|
538
|
+
inner = dispose;
|
|
518
539
|
}
|
|
519
540
|
if (typeof dispose !== "function")
|
|
520
541
|
throw new TypeError("Object not disposable.");
|
|
542
|
+
if (inner)
|
|
543
|
+
dispose = function() {
|
|
544
|
+
try {
|
|
545
|
+
inner.call(this);
|
|
546
|
+
} catch (e2) {
|
|
547
|
+
return Promise.reject(e2);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
521
550
|
env.stack.push({ value, dispose, async });
|
|
522
551
|
} else if (async) {
|
|
523
552
|
env.stack.push({ async: true });
|
|
@@ -533,25 +562,40 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
533
562
|
env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
|
|
534
563
|
env.hasError = true;
|
|
535
564
|
}
|
|
565
|
+
var r2, s2 = 0;
|
|
536
566
|
function next() {
|
|
537
|
-
while (env.stack.
|
|
538
|
-
var rec = env.stack.pop();
|
|
567
|
+
while (r2 = env.stack.pop()) {
|
|
539
568
|
try {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
569
|
+
if (!r2.async && s2 === 1)
|
|
570
|
+
return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
|
|
571
|
+
if (r2.dispose) {
|
|
572
|
+
var result = r2.dispose.call(r2.value);
|
|
573
|
+
if (r2.async)
|
|
574
|
+
return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
575
|
+
fail(e2);
|
|
576
|
+
return next();
|
|
577
|
+
});
|
|
578
|
+
} else
|
|
579
|
+
s2 |= 1;
|
|
546
580
|
} catch (e2) {
|
|
547
581
|
fail(e2);
|
|
548
582
|
}
|
|
549
583
|
}
|
|
584
|
+
if (s2 === 1)
|
|
585
|
+
return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
550
586
|
if (env.hasError)
|
|
551
587
|
throw env.error;
|
|
552
588
|
}
|
|
553
589
|
return next();
|
|
554
590
|
};
|
|
591
|
+
__rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
592
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
593
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
|
|
594
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
return path;
|
|
598
|
+
};
|
|
555
599
|
exporter("__extends", __extends);
|
|
556
600
|
exporter("__assign", __assign);
|
|
557
601
|
exporter("__rest", __rest);
|
|
@@ -583,6 +627,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
583
627
|
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
584
628
|
exporter("__addDisposableResource", __addDisposableResource);
|
|
585
629
|
exporter("__disposeResources", __disposeResources);
|
|
630
|
+
exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
|
|
586
631
|
});
|
|
587
632
|
});
|
|
588
633
|
|
|
@@ -3109,622 +3154,17 @@ var require_CanonicalizeLocaleList2 = __commonJS((exports) => {
|
|
|
3109
3154
|
exports.CanonicalizeLocaleList = CanonicalizeLocaleList;
|
|
3110
3155
|
});
|
|
3111
3156
|
|
|
3112
|
-
// node_modules/@formatjs/intl-localematcher/
|
|
3113
|
-
var
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
var __metadata;
|
|
3124
|
-
var __awaiter;
|
|
3125
|
-
var __generator;
|
|
3126
|
-
var __exportStar;
|
|
3127
|
-
var __values;
|
|
3128
|
-
var __read;
|
|
3129
|
-
var __spread;
|
|
3130
|
-
var __spreadArrays;
|
|
3131
|
-
var __spreadArray;
|
|
3132
|
-
var __await;
|
|
3133
|
-
var __asyncGenerator;
|
|
3134
|
-
var __asyncDelegator;
|
|
3135
|
-
var __asyncValues;
|
|
3136
|
-
var __makeTemplateObject;
|
|
3137
|
-
var __importStar;
|
|
3138
|
-
var __importDefault;
|
|
3139
|
-
var __classPrivateFieldGet;
|
|
3140
|
-
var __classPrivateFieldSet;
|
|
3141
|
-
var __classPrivateFieldIn;
|
|
3142
|
-
var __createBinding;
|
|
3143
|
-
var __addDisposableResource;
|
|
3144
|
-
var __disposeResources;
|
|
3145
|
-
var __rewriteRelativeImportExtension;
|
|
3146
|
-
(function(factory) {
|
|
3147
|
-
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
3148
|
-
if (typeof define === "function" && define.amd) {
|
|
3149
|
-
define("tslib", ["exports"], function(exports2) {
|
|
3150
|
-
factory(createExporter(root, createExporter(exports2)));
|
|
3151
|
-
});
|
|
3152
|
-
} else if (typeof module === "object" && typeof exports === "object") {
|
|
3153
|
-
factory(createExporter(root, createExporter(exports)));
|
|
3154
|
-
} else {
|
|
3155
|
-
factory(createExporter(root));
|
|
3156
|
-
}
|
|
3157
|
-
function createExporter(exports2, previous) {
|
|
3158
|
-
if (exports2 !== root) {
|
|
3159
|
-
if (typeof Object.create === "function") {
|
|
3160
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3161
|
-
} else {
|
|
3162
|
-
exports2.__esModule = true;
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
return function(id, v2) {
|
|
3166
|
-
return exports2[id] = previous ? previous(id, v2) : v2;
|
|
3167
|
-
};
|
|
3168
|
-
}
|
|
3169
|
-
})(function(exporter) {
|
|
3170
|
-
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
3171
|
-
d2.__proto__ = b2;
|
|
3172
|
-
} || function(d2, b2) {
|
|
3173
|
-
for (var p2 in b2)
|
|
3174
|
-
if (Object.prototype.hasOwnProperty.call(b2, p2))
|
|
3175
|
-
d2[p2] = b2[p2];
|
|
3176
|
-
};
|
|
3177
|
-
__extends = function(d2, b2) {
|
|
3178
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
3179
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
3180
|
-
extendStatics(d2, b2);
|
|
3181
|
-
function __() {
|
|
3182
|
-
this.constructor = d2;
|
|
3183
|
-
}
|
|
3184
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
|
|
3185
|
-
};
|
|
3186
|
-
__assign = Object.assign || function(t2) {
|
|
3187
|
-
for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
|
|
3188
|
-
s2 = arguments[i2];
|
|
3189
|
-
for (var p2 in s2)
|
|
3190
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
3191
|
-
t2[p2] = s2[p2];
|
|
3192
|
-
}
|
|
3193
|
-
return t2;
|
|
3194
|
-
};
|
|
3195
|
-
__rest = function(s2, e2) {
|
|
3196
|
-
var t2 = {};
|
|
3197
|
-
for (var p2 in s2)
|
|
3198
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
3199
|
-
t2[p2] = s2[p2];
|
|
3200
|
-
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3201
|
-
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
|
|
3202
|
-
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
3203
|
-
t2[p2[i2]] = s2[p2[i2]];
|
|
3204
|
-
}
|
|
3205
|
-
return t2;
|
|
3206
|
-
};
|
|
3207
|
-
__decorate = function(decorators, target, key, desc) {
|
|
3208
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
3209
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3210
|
-
r2 = Reflect.decorate(decorators, target, key, desc);
|
|
3211
|
-
else
|
|
3212
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--)
|
|
3213
|
-
if (d2 = decorators[i2])
|
|
3214
|
-
r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
3215
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
3216
|
-
};
|
|
3217
|
-
__param = function(paramIndex, decorator) {
|
|
3218
|
-
return function(target, key) {
|
|
3219
|
-
decorator(target, key, paramIndex);
|
|
3220
|
-
};
|
|
3221
|
-
};
|
|
3222
|
-
__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3223
|
-
function accept(f2) {
|
|
3224
|
-
if (f2 !== undefined && typeof f2 !== "function")
|
|
3225
|
-
throw new TypeError("Function expected");
|
|
3226
|
-
return f2;
|
|
3227
|
-
}
|
|
3228
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
3229
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
3230
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
3231
|
-
var _2, done = false;
|
|
3232
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
|
|
3233
|
-
var context = {};
|
|
3234
|
-
for (var p2 in contextIn)
|
|
3235
|
-
context[p2] = p2 === "access" ? {} : contextIn[p2];
|
|
3236
|
-
for (var p2 in contextIn.access)
|
|
3237
|
-
context.access[p2] = contextIn.access[p2];
|
|
3238
|
-
context.addInitializer = function(f2) {
|
|
3239
|
-
if (done)
|
|
3240
|
-
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
3241
|
-
extraInitializers.push(accept(f2 || null));
|
|
3242
|
-
};
|
|
3243
|
-
var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
3244
|
-
if (kind === "accessor") {
|
|
3245
|
-
if (result === undefined)
|
|
3246
|
-
continue;
|
|
3247
|
-
if (result === null || typeof result !== "object")
|
|
3248
|
-
throw new TypeError("Object expected");
|
|
3249
|
-
if (_2 = accept(result.get))
|
|
3250
|
-
descriptor.get = _2;
|
|
3251
|
-
if (_2 = accept(result.set))
|
|
3252
|
-
descriptor.set = _2;
|
|
3253
|
-
if (_2 = accept(result.init))
|
|
3254
|
-
initializers.unshift(_2);
|
|
3255
|
-
} else if (_2 = accept(result)) {
|
|
3256
|
-
if (kind === "field")
|
|
3257
|
-
initializers.unshift(_2);
|
|
3258
|
-
else
|
|
3259
|
-
descriptor[key] = _2;
|
|
3260
|
-
}
|
|
3261
|
-
}
|
|
3262
|
-
if (target)
|
|
3263
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
3264
|
-
done = true;
|
|
3265
|
-
};
|
|
3266
|
-
__runInitializers = function(thisArg, initializers, value) {
|
|
3267
|
-
var useValue = arguments.length > 2;
|
|
3268
|
-
for (var i2 = 0;i2 < initializers.length; i2++) {
|
|
3269
|
-
value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
|
|
3270
|
-
}
|
|
3271
|
-
return useValue ? value : undefined;
|
|
3272
|
-
};
|
|
3273
|
-
__propKey = function(x2) {
|
|
3274
|
-
return typeof x2 === "symbol" ? x2 : "".concat(x2);
|
|
3275
|
-
};
|
|
3276
|
-
__setFunctionName = function(f2, name, prefix) {
|
|
3277
|
-
if (typeof name === "symbol")
|
|
3278
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
3279
|
-
return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
3280
|
-
};
|
|
3281
|
-
__metadata = function(metadataKey, metadataValue) {
|
|
3282
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3283
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
3284
|
-
};
|
|
3285
|
-
__awaiter = function(thisArg, _arguments, P, generator) {
|
|
3286
|
-
function adopt(value) {
|
|
3287
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
3288
|
-
resolve(value);
|
|
3289
|
-
});
|
|
3290
|
-
}
|
|
3291
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
3292
|
-
function fulfilled(value) {
|
|
3293
|
-
try {
|
|
3294
|
-
step(generator.next(value));
|
|
3295
|
-
} catch (e2) {
|
|
3296
|
-
reject(e2);
|
|
3297
|
-
}
|
|
3298
|
-
}
|
|
3299
|
-
function rejected(value) {
|
|
3300
|
-
try {
|
|
3301
|
-
step(generator["throw"](value));
|
|
3302
|
-
} catch (e2) {
|
|
3303
|
-
reject(e2);
|
|
3304
|
-
}
|
|
3305
|
-
}
|
|
3306
|
-
function step(result) {
|
|
3307
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
3308
|
-
}
|
|
3309
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3310
|
-
});
|
|
3311
|
-
};
|
|
3312
|
-
__generator = function(thisArg, body) {
|
|
3313
|
-
var _2 = { label: 0, sent: function() {
|
|
3314
|
-
if (t2[0] & 1)
|
|
3315
|
-
throw t2[1];
|
|
3316
|
-
return t2[1];
|
|
3317
|
-
}, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
3318
|
-
return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
3319
|
-
return this;
|
|
3320
|
-
}), g2;
|
|
3321
|
-
function verb(n2) {
|
|
3322
|
-
return function(v2) {
|
|
3323
|
-
return step([n2, v2]);
|
|
3324
|
-
};
|
|
3325
|
-
}
|
|
3326
|
-
function step(op) {
|
|
3327
|
-
if (f2)
|
|
3328
|
-
throw new TypeError("Generator is already executing.");
|
|
3329
|
-
while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
|
|
3330
|
-
try {
|
|
3331
|
-
if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
|
|
3332
|
-
return t2;
|
|
3333
|
-
if (y2 = 0, t2)
|
|
3334
|
-
op = [op[0] & 2, t2.value];
|
|
3335
|
-
switch (op[0]) {
|
|
3336
|
-
case 0:
|
|
3337
|
-
case 1:
|
|
3338
|
-
t2 = op;
|
|
3339
|
-
break;
|
|
3340
|
-
case 4:
|
|
3341
|
-
_2.label++;
|
|
3342
|
-
return { value: op[1], done: false };
|
|
3343
|
-
case 5:
|
|
3344
|
-
_2.label++;
|
|
3345
|
-
y2 = op[1];
|
|
3346
|
-
op = [0];
|
|
3347
|
-
continue;
|
|
3348
|
-
case 7:
|
|
3349
|
-
op = _2.ops.pop();
|
|
3350
|
-
_2.trys.pop();
|
|
3351
|
-
continue;
|
|
3352
|
-
default:
|
|
3353
|
-
if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3354
|
-
_2 = 0;
|
|
3355
|
-
continue;
|
|
3356
|
-
}
|
|
3357
|
-
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
3358
|
-
_2.label = op[1];
|
|
3359
|
-
break;
|
|
3360
|
-
}
|
|
3361
|
-
if (op[0] === 6 && _2.label < t2[1]) {
|
|
3362
|
-
_2.label = t2[1];
|
|
3363
|
-
t2 = op;
|
|
3364
|
-
break;
|
|
3365
|
-
}
|
|
3366
|
-
if (t2 && _2.label < t2[2]) {
|
|
3367
|
-
_2.label = t2[2];
|
|
3368
|
-
_2.ops.push(op);
|
|
3369
|
-
break;
|
|
3370
|
-
}
|
|
3371
|
-
if (t2[2])
|
|
3372
|
-
_2.ops.pop();
|
|
3373
|
-
_2.trys.pop();
|
|
3374
|
-
continue;
|
|
3375
|
-
}
|
|
3376
|
-
op = body.call(thisArg, _2);
|
|
3377
|
-
} catch (e2) {
|
|
3378
|
-
op = [6, e2];
|
|
3379
|
-
y2 = 0;
|
|
3380
|
-
} finally {
|
|
3381
|
-
f2 = t2 = 0;
|
|
3382
|
-
}
|
|
3383
|
-
if (op[0] & 5)
|
|
3384
|
-
throw op[1];
|
|
3385
|
-
return { value: op[0] ? op[1] : undefined, done: true };
|
|
3386
|
-
}
|
|
3387
|
-
};
|
|
3388
|
-
__exportStar = function(m2, o2) {
|
|
3389
|
-
for (var p2 in m2)
|
|
3390
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
|
|
3391
|
-
__createBinding(o2, m2, p2);
|
|
3392
|
-
};
|
|
3393
|
-
__createBinding = Object.create ? function(o2, m2, k, k2) {
|
|
3394
|
-
if (k2 === undefined)
|
|
3395
|
-
k2 = k;
|
|
3396
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
|
3397
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
3398
|
-
desc = { enumerable: true, get: function() {
|
|
3399
|
-
return m2[k];
|
|
3400
|
-
} };
|
|
3401
|
-
}
|
|
3402
|
-
Object.defineProperty(o2, k2, desc);
|
|
3403
|
-
} : function(o2, m2, k, k2) {
|
|
3404
|
-
if (k2 === undefined)
|
|
3405
|
-
k2 = k;
|
|
3406
|
-
o2[k2] = m2[k];
|
|
3407
|
-
};
|
|
3408
|
-
__values = function(o2) {
|
|
3409
|
-
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
|
|
3410
|
-
if (m2)
|
|
3411
|
-
return m2.call(o2);
|
|
3412
|
-
if (o2 && typeof o2.length === "number")
|
|
3413
|
-
return {
|
|
3414
|
-
next: function() {
|
|
3415
|
-
if (o2 && i2 >= o2.length)
|
|
3416
|
-
o2 = undefined;
|
|
3417
|
-
return { value: o2 && o2[i2++], done: !o2 };
|
|
3418
|
-
}
|
|
3419
|
-
};
|
|
3420
|
-
throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3421
|
-
};
|
|
3422
|
-
__read = function(o2, n2) {
|
|
3423
|
-
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
3424
|
-
if (!m2)
|
|
3425
|
-
return o2;
|
|
3426
|
-
var i2 = m2.call(o2), r2, ar = [], e2;
|
|
3427
|
-
try {
|
|
3428
|
-
while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
|
|
3429
|
-
ar.push(r2.value);
|
|
3430
|
-
} catch (error) {
|
|
3431
|
-
e2 = { error };
|
|
3432
|
-
} finally {
|
|
3433
|
-
try {
|
|
3434
|
-
if (r2 && !r2.done && (m2 = i2["return"]))
|
|
3435
|
-
m2.call(i2);
|
|
3436
|
-
} finally {
|
|
3437
|
-
if (e2)
|
|
3438
|
-
throw e2.error;
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
return ar;
|
|
3442
|
-
};
|
|
3443
|
-
__spread = function() {
|
|
3444
|
-
for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
|
|
3445
|
-
ar = ar.concat(__read(arguments[i2]));
|
|
3446
|
-
return ar;
|
|
3447
|
-
};
|
|
3448
|
-
__spreadArrays = function() {
|
|
3449
|
-
for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
|
|
3450
|
-
s2 += arguments[i2].length;
|
|
3451
|
-
for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
|
|
3452
|
-
for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
|
|
3453
|
-
r2[k] = a2[j];
|
|
3454
|
-
return r2;
|
|
3455
|
-
};
|
|
3456
|
-
__spreadArray = function(to, from, pack) {
|
|
3457
|
-
if (pack || arguments.length === 2)
|
|
3458
|
-
for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
|
|
3459
|
-
if (ar || !(i2 in from)) {
|
|
3460
|
-
if (!ar)
|
|
3461
|
-
ar = Array.prototype.slice.call(from, 0, i2);
|
|
3462
|
-
ar[i2] = from[i2];
|
|
3463
|
-
}
|
|
3464
|
-
}
|
|
3465
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3466
|
-
};
|
|
3467
|
-
__await = function(v2) {
|
|
3468
|
-
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
3469
|
-
};
|
|
3470
|
-
__asyncGenerator = function(thisArg, _arguments, generator) {
|
|
3471
|
-
if (!Symbol.asyncIterator)
|
|
3472
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3473
|
-
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
3474
|
-
return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
|
|
3475
|
-
return this;
|
|
3476
|
-
}, i2;
|
|
3477
|
-
function awaitReturn(f2) {
|
|
3478
|
-
return function(v2) {
|
|
3479
|
-
return Promise.resolve(v2).then(f2, reject);
|
|
3480
|
-
};
|
|
3481
|
-
}
|
|
3482
|
-
function verb(n2, f2) {
|
|
3483
|
-
if (g2[n2]) {
|
|
3484
|
-
i2[n2] = function(v2) {
|
|
3485
|
-
return new Promise(function(a2, b2) {
|
|
3486
|
-
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
3487
|
-
});
|
|
3488
|
-
};
|
|
3489
|
-
if (f2)
|
|
3490
|
-
i2[n2] = f2(i2[n2]);
|
|
3491
|
-
}
|
|
3492
|
-
}
|
|
3493
|
-
function resume(n2, v2) {
|
|
3494
|
-
try {
|
|
3495
|
-
step(g2[n2](v2));
|
|
3496
|
-
} catch (e2) {
|
|
3497
|
-
settle(q2[0][3], e2);
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
function step(r2) {
|
|
3501
|
-
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
|
|
3502
|
-
}
|
|
3503
|
-
function fulfill(value) {
|
|
3504
|
-
resume("next", value);
|
|
3505
|
-
}
|
|
3506
|
-
function reject(value) {
|
|
3507
|
-
resume("throw", value);
|
|
3508
|
-
}
|
|
3509
|
-
function settle(f2, v2) {
|
|
3510
|
-
if (f2(v2), q2.shift(), q2.length)
|
|
3511
|
-
resume(q2[0][0], q2[0][1]);
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
|
-
__asyncDelegator = function(o2) {
|
|
3515
|
-
var i2, p2;
|
|
3516
|
-
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
|
3517
|
-
throw e2;
|
|
3518
|
-
}), verb("return"), i2[Symbol.iterator] = function() {
|
|
3519
|
-
return this;
|
|
3520
|
-
}, i2;
|
|
3521
|
-
function verb(n2, f2) {
|
|
3522
|
-
i2[n2] = o2[n2] ? function(v2) {
|
|
3523
|
-
return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
|
|
3524
|
-
} : f2;
|
|
3525
|
-
}
|
|
3526
|
-
};
|
|
3527
|
-
__asyncValues = function(o2) {
|
|
3528
|
-
if (!Symbol.asyncIterator)
|
|
3529
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3530
|
-
var m2 = o2[Symbol.asyncIterator], i2;
|
|
3531
|
-
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
3532
|
-
return this;
|
|
3533
|
-
}, i2);
|
|
3534
|
-
function verb(n2) {
|
|
3535
|
-
i2[n2] = o2[n2] && function(v2) {
|
|
3536
|
-
return new Promise(function(resolve, reject) {
|
|
3537
|
-
v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
|
|
3538
|
-
});
|
|
3539
|
-
};
|
|
3540
|
-
}
|
|
3541
|
-
function settle(resolve, reject, d2, v2) {
|
|
3542
|
-
Promise.resolve(v2).then(function(v3) {
|
|
3543
|
-
resolve({ value: v3, done: d2 });
|
|
3544
|
-
}, reject);
|
|
3545
|
-
}
|
|
3546
|
-
};
|
|
3547
|
-
__makeTemplateObject = function(cooked, raw) {
|
|
3548
|
-
if (Object.defineProperty) {
|
|
3549
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
3550
|
-
} else {
|
|
3551
|
-
cooked.raw = raw;
|
|
3552
|
-
}
|
|
3553
|
-
return cooked;
|
|
3554
|
-
};
|
|
3555
|
-
var __setModuleDefault = Object.create ? function(o2, v2) {
|
|
3556
|
-
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
3557
|
-
} : function(o2, v2) {
|
|
3558
|
-
o2["default"] = v2;
|
|
3559
|
-
};
|
|
3560
|
-
var ownKeys = function(o2) {
|
|
3561
|
-
ownKeys = Object.getOwnPropertyNames || function(o3) {
|
|
3562
|
-
var ar = [];
|
|
3563
|
-
for (var k in o3)
|
|
3564
|
-
if (Object.prototype.hasOwnProperty.call(o3, k))
|
|
3565
|
-
ar[ar.length] = k;
|
|
3566
|
-
return ar;
|
|
3567
|
-
};
|
|
3568
|
-
return ownKeys(o2);
|
|
3569
|
-
};
|
|
3570
|
-
__importStar = function(mod) {
|
|
3571
|
-
if (mod && mod.__esModule)
|
|
3572
|
-
return mod;
|
|
3573
|
-
var result = {};
|
|
3574
|
-
if (mod != null) {
|
|
3575
|
-
for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
|
|
3576
|
-
if (k[i2] !== "default")
|
|
3577
|
-
__createBinding(result, mod, k[i2]);
|
|
3578
|
-
}
|
|
3579
|
-
__setModuleDefault(result, mod);
|
|
3580
|
-
return result;
|
|
3581
|
-
};
|
|
3582
|
-
__importDefault = function(mod) {
|
|
3583
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
3584
|
-
};
|
|
3585
|
-
__classPrivateFieldGet = function(receiver, state, kind, f2) {
|
|
3586
|
-
if (kind === "a" && !f2)
|
|
3587
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
3588
|
-
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
3589
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
3590
|
-
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
|
|
3591
|
-
};
|
|
3592
|
-
__classPrivateFieldSet = function(receiver, state, value, kind, f2) {
|
|
3593
|
-
if (kind === "m")
|
|
3594
|
-
throw new TypeError("Private method is not writable");
|
|
3595
|
-
if (kind === "a" && !f2)
|
|
3596
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
3597
|
-
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
3598
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
3599
|
-
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
3600
|
-
};
|
|
3601
|
-
__classPrivateFieldIn = function(state, receiver) {
|
|
3602
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
3603
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
3604
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
3605
|
-
};
|
|
3606
|
-
__addDisposableResource = function(env, value, async) {
|
|
3607
|
-
if (value !== null && value !== undefined) {
|
|
3608
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
3609
|
-
throw new TypeError("Object expected.");
|
|
3610
|
-
var dispose, inner;
|
|
3611
|
-
if (async) {
|
|
3612
|
-
if (!Symbol.asyncDispose)
|
|
3613
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
3614
|
-
dispose = value[Symbol.asyncDispose];
|
|
3615
|
-
}
|
|
3616
|
-
if (dispose === undefined) {
|
|
3617
|
-
if (!Symbol.dispose)
|
|
3618
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
|
3619
|
-
dispose = value[Symbol.dispose];
|
|
3620
|
-
if (async)
|
|
3621
|
-
inner = dispose;
|
|
3622
|
-
}
|
|
3623
|
-
if (typeof dispose !== "function")
|
|
3624
|
-
throw new TypeError("Object not disposable.");
|
|
3625
|
-
if (inner)
|
|
3626
|
-
dispose = function() {
|
|
3627
|
-
try {
|
|
3628
|
-
inner.call(this);
|
|
3629
|
-
} catch (e2) {
|
|
3630
|
-
return Promise.reject(e2);
|
|
3631
|
-
}
|
|
3632
|
-
};
|
|
3633
|
-
env.stack.push({ value, dispose, async });
|
|
3634
|
-
} else if (async) {
|
|
3635
|
-
env.stack.push({ async: true });
|
|
3636
|
-
}
|
|
3637
|
-
return value;
|
|
3638
|
-
};
|
|
3639
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
3640
|
-
var e2 = new Error(message);
|
|
3641
|
-
return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
|
|
3642
|
-
};
|
|
3643
|
-
__disposeResources = function(env) {
|
|
3644
|
-
function fail(e2) {
|
|
3645
|
-
env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
|
|
3646
|
-
env.hasError = true;
|
|
3647
|
-
}
|
|
3648
|
-
var r2, s2 = 0;
|
|
3649
|
-
function next() {
|
|
3650
|
-
while (r2 = env.stack.pop()) {
|
|
3651
|
-
try {
|
|
3652
|
-
if (!r2.async && s2 === 1)
|
|
3653
|
-
return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
|
|
3654
|
-
if (r2.dispose) {
|
|
3655
|
-
var result = r2.dispose.call(r2.value);
|
|
3656
|
-
if (r2.async)
|
|
3657
|
-
return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
3658
|
-
fail(e2);
|
|
3659
|
-
return next();
|
|
3660
|
-
});
|
|
3661
|
-
} else
|
|
3662
|
-
s2 |= 1;
|
|
3663
|
-
} catch (e2) {
|
|
3664
|
-
fail(e2);
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
if (s2 === 1)
|
|
3668
|
-
return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
3669
|
-
if (env.hasError)
|
|
3670
|
-
throw env.error;
|
|
3671
|
-
}
|
|
3672
|
-
return next();
|
|
3673
|
-
};
|
|
3674
|
-
__rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
3675
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3676
|
-
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
|
|
3677
|
-
return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
|
|
3678
|
-
});
|
|
3679
|
-
}
|
|
3680
|
-
return path;
|
|
3681
|
-
};
|
|
3682
|
-
exporter("__extends", __extends);
|
|
3683
|
-
exporter("__assign", __assign);
|
|
3684
|
-
exporter("__rest", __rest);
|
|
3685
|
-
exporter("__decorate", __decorate);
|
|
3686
|
-
exporter("__param", __param);
|
|
3687
|
-
exporter("__esDecorate", __esDecorate);
|
|
3688
|
-
exporter("__runInitializers", __runInitializers);
|
|
3689
|
-
exporter("__propKey", __propKey);
|
|
3690
|
-
exporter("__setFunctionName", __setFunctionName);
|
|
3691
|
-
exporter("__metadata", __metadata);
|
|
3692
|
-
exporter("__awaiter", __awaiter);
|
|
3693
|
-
exporter("__generator", __generator);
|
|
3694
|
-
exporter("__exportStar", __exportStar);
|
|
3695
|
-
exporter("__createBinding", __createBinding);
|
|
3696
|
-
exporter("__values", __values);
|
|
3697
|
-
exporter("__read", __read);
|
|
3698
|
-
exporter("__spread", __spread);
|
|
3699
|
-
exporter("__spreadArrays", __spreadArrays);
|
|
3700
|
-
exporter("__spreadArray", __spreadArray);
|
|
3701
|
-
exporter("__await", __await);
|
|
3702
|
-
exporter("__asyncGenerator", __asyncGenerator);
|
|
3703
|
-
exporter("__asyncDelegator", __asyncDelegator);
|
|
3704
|
-
exporter("__asyncValues", __asyncValues);
|
|
3705
|
-
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
3706
|
-
exporter("__importStar", __importStar);
|
|
3707
|
-
exporter("__importDefault", __importDefault);
|
|
3708
|
-
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
3709
|
-
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
3710
|
-
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
3711
|
-
exporter("__addDisposableResource", __addDisposableResource);
|
|
3712
|
-
exporter("__disposeResources", __disposeResources);
|
|
3713
|
-
exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
|
|
3714
|
-
});
|
|
3715
|
-
});
|
|
3716
|
-
|
|
3717
|
-
// node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
|
|
3718
|
-
var require_languageMatching = __commonJS((exports) => {
|
|
3719
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3720
|
-
exports.data = undefined;
|
|
3721
|
-
exports.data = {
|
|
3722
|
-
supplemental: {
|
|
3723
|
-
languageMatching: {
|
|
3724
|
-
"written-new": [
|
|
3725
|
-
{
|
|
3726
|
-
paradigmLocales: {
|
|
3727
|
-
_locales: "en en_GB es es_419 pt_BR pt_PT"
|
|
3157
|
+
// node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
|
|
3158
|
+
var require_languageMatching = __commonJS((exports) => {
|
|
3159
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3160
|
+
exports.data = undefined;
|
|
3161
|
+
exports.data = {
|
|
3162
|
+
supplemental: {
|
|
3163
|
+
languageMatching: {
|
|
3164
|
+
"written-new": [
|
|
3165
|
+
{
|
|
3166
|
+
paradigmLocales: {
|
|
3167
|
+
_locales: "en en_GB es es_419 pt_BR pt_PT"
|
|
3728
3168
|
}
|
|
3729
3169
|
},
|
|
3730
3170
|
{
|
|
@@ -7683,7 +7123,7 @@ var require_regions_generated = __commonJS((exports) => {
|
|
|
7683
7123
|
var require_utils2 = __commonJS((exports) => {
|
|
7684
7124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7685
7125
|
exports.findBestMatch = exports.findMatchingDistance = exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = undefined;
|
|
7686
|
-
var tslib_1 =
|
|
7126
|
+
var tslib_1 = require_tslib();
|
|
7687
7127
|
var languageMatching_1 = require_languageMatching();
|
|
7688
7128
|
var regions_generated_1 = require_regions_generated();
|
|
7689
7129
|
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
@@ -8262,981 +7702,376 @@ var require_InitializeNumberFormat = __commonJS((exports) => {
|
|
|
8262
7702
|
if (style === "currency") {
|
|
8263
7703
|
var currency = internalSlots.currency;
|
|
8264
7704
|
var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
|
|
8265
|
-
mnfdDefault = cDigits;
|
|
8266
|
-
mxfdDefault = cDigits;
|
|
8267
|
-
} else {
|
|
8268
|
-
mnfdDefault = 0;
|
|
8269
|
-
mxfdDefault = style === "percent" ? 0 : 3;
|
|
8270
|
-
}
|
|
8271
|
-
var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
|
|
8272
|
-
internalSlots.notation = notation;
|
|
8273
|
-
(0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
|
|
8274
|
-
var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
|
|
8275
|
-
if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
|
|
8276
|
-
throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
|
|
8277
|
-
Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
|
|
8278
|
-
}
|
|
8279
|
-
if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
|
|
8280
|
-
throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
|
|
8281
|
-
}
|
|
8282
|
-
if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
|
|
8283
|
-
throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
|
|
8284
|
-
}
|
|
8285
|
-
internalSlots.roundingIncrement = roundingIncrement;
|
|
8286
|
-
var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
|
|
8287
|
-
internalSlots.trailingZeroDisplay = trailingZeroDisplay;
|
|
8288
|
-
var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
|
|
8289
|
-
var defaultUseGrouping = "auto";
|
|
8290
|
-
if (notation === "compact") {
|
|
8291
|
-
internalSlots.compactDisplay = compactDisplay;
|
|
8292
|
-
defaultUseGrouping = "min2";
|
|
8293
|
-
}
|
|
8294
|
-
internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
|
|
8295
|
-
internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
|
|
8296
|
-
internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
|
|
8297
|
-
"ceil",
|
|
8298
|
-
"floor",
|
|
8299
|
-
"expand",
|
|
8300
|
-
"trunc",
|
|
8301
|
-
"halfCeil",
|
|
8302
|
-
"halfFloor",
|
|
8303
|
-
"halfExpand",
|
|
8304
|
-
"halfTrunc",
|
|
8305
|
-
"halfEven"
|
|
8306
|
-
], "halfExpand");
|
|
8307
|
-
return nf;
|
|
8308
|
-
}
|
|
8309
|
-
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
8310
|
-
});
|
|
8311
|
-
|
|
8312
|
-
// node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
|
|
8313
|
-
var require_PartitionPattern = __commonJS((exports) => {
|
|
8314
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8315
|
-
exports.PartitionPattern = undefined;
|
|
8316
|
-
var utils_1 = require_utils();
|
|
8317
|
-
function PartitionPattern(pattern) {
|
|
8318
|
-
var result = [];
|
|
8319
|
-
var beginIndex = pattern.indexOf("{");
|
|
8320
|
-
var endIndex = 0;
|
|
8321
|
-
var nextIndex = 0;
|
|
8322
|
-
var length = pattern.length;
|
|
8323
|
-
while (beginIndex < pattern.length && beginIndex > -1) {
|
|
8324
|
-
endIndex = pattern.indexOf("}", beginIndex);
|
|
8325
|
-
(0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
|
|
8326
|
-
if (beginIndex > nextIndex) {
|
|
8327
|
-
result.push({
|
|
8328
|
-
type: "literal",
|
|
8329
|
-
value: pattern.substring(nextIndex, beginIndex)
|
|
8330
|
-
});
|
|
8331
|
-
}
|
|
8332
|
-
result.push({
|
|
8333
|
-
type: pattern.substring(beginIndex + 1, endIndex),
|
|
8334
|
-
value: undefined
|
|
8335
|
-
});
|
|
8336
|
-
nextIndex = endIndex + 1;
|
|
8337
|
-
beginIndex = pattern.indexOf("{", nextIndex);
|
|
8338
|
-
}
|
|
8339
|
-
if (nextIndex < length) {
|
|
8340
|
-
result.push({
|
|
8341
|
-
type: "literal",
|
|
8342
|
-
value: pattern.substring(nextIndex, length)
|
|
8343
|
-
});
|
|
8344
|
-
}
|
|
8345
|
-
return result;
|
|
8346
|
-
}
|
|
8347
|
-
exports.PartitionPattern = PartitionPattern;
|
|
8348
|
-
});
|
|
8349
|
-
|
|
8350
|
-
// node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
|
|
8351
|
-
var require_SupportedLocales = __commonJS((exports) => {
|
|
8352
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8353
|
-
exports.SupportedLocales = undefined;
|
|
8354
|
-
var intl_localematcher_1 = require_intl_localematcher();
|
|
8355
|
-
var _262_1 = require_262();
|
|
8356
|
-
var GetOption_1 = require_GetOption();
|
|
8357
|
-
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
8358
|
-
var matcher = "best fit";
|
|
8359
|
-
if (options !== undefined) {
|
|
8360
|
-
options = (0, _262_1.ToObject)(options);
|
|
8361
|
-
matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
8362
|
-
}
|
|
8363
|
-
if (matcher === "best fit") {
|
|
8364
|
-
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
8365
|
-
}
|
|
8366
|
-
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
8367
|
-
}
|
|
8368
|
-
exports.SupportedLocales = SupportedLocales;
|
|
8369
|
-
});
|
|
8370
|
-
|
|
8371
|
-
// node_modules/@formatjs/ecma402-abstract/data.js
|
|
8372
|
-
var require_data = __commonJS((exports) => {
|
|
8373
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8374
|
-
exports.isMissingLocaleDataError = undefined;
|
|
8375
|
-
var tslib_1 = require_tslib();
|
|
8376
|
-
var MissingLocaleDataError = function(_super) {
|
|
8377
|
-
tslib_1.__extends(MissingLocaleDataError2, _super);
|
|
8378
|
-
function MissingLocaleDataError2() {
|
|
8379
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
8380
|
-
_this.type = "MISSING_LOCALE_DATA";
|
|
8381
|
-
return _this;
|
|
8382
|
-
}
|
|
8383
|
-
return MissingLocaleDataError2;
|
|
8384
|
-
}(Error);
|
|
8385
|
-
function isMissingLocaleDataError(e2) {
|
|
8386
|
-
return e2.type === "MISSING_LOCALE_DATA";
|
|
8387
|
-
}
|
|
8388
|
-
exports.isMissingLocaleDataError = isMissingLocaleDataError;
|
|
8389
|
-
});
|
|
8390
|
-
|
|
8391
|
-
// node_modules/@formatjs/ecma402-abstract/types/relative-time.js
|
|
8392
|
-
var require_relative_time = __commonJS((exports) => {
|
|
8393
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8394
|
-
});
|
|
8395
|
-
|
|
8396
|
-
// node_modules/@formatjs/ecma402-abstract/types/date-time.js
|
|
8397
|
-
var require_date_time = __commonJS((exports) => {
|
|
8398
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8399
|
-
exports.RangePatternType = undefined;
|
|
8400
|
-
var RangePatternType;
|
|
8401
|
-
(function(RangePatternType2) {
|
|
8402
|
-
RangePatternType2["startRange"] = "startRange";
|
|
8403
|
-
RangePatternType2["shared"] = "shared";
|
|
8404
|
-
RangePatternType2["endRange"] = "endRange";
|
|
8405
|
-
})(RangePatternType || (exports.RangePatternType = RangePatternType = {}));
|
|
8406
|
-
});
|
|
8407
|
-
|
|
8408
|
-
// node_modules/@formatjs/ecma402-abstract/types/list.js
|
|
8409
|
-
var require_list = __commonJS((exports) => {
|
|
8410
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8411
|
-
});
|
|
8412
|
-
|
|
8413
|
-
// node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
|
|
8414
|
-
var require_plural_rules = __commonJS((exports) => {
|
|
8415
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8416
|
-
});
|
|
8417
|
-
|
|
8418
|
-
// node_modules/@formatjs/ecma402-abstract/types/number.js
|
|
8419
|
-
var require_number = __commonJS((exports) => {
|
|
8420
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8421
|
-
});
|
|
8422
|
-
|
|
8423
|
-
// node_modules/@formatjs/ecma402-abstract/types/displaynames.js
|
|
8424
|
-
var require_displaynames = __commonJS((exports) => {
|
|
8425
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8426
|
-
});
|
|
8427
|
-
|
|
8428
|
-
// node_modules/@formatjs/ecma402-abstract/index.js
|
|
8429
|
-
var require_ecma402_abstract = __commonJS((exports) => {
|
|
8430
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8431
|
-
exports.invariant = exports.isMissingLocaleDataError = exports.defineProperty = exports.getMagnitude = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports._formatToParts = undefined;
|
|
8432
|
-
var tslib_1 = require_tslib();
|
|
8433
|
-
tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports);
|
|
8434
|
-
tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports);
|
|
8435
|
-
tslib_1.__exportStar(require_CoerceOptionsToObject(), exports);
|
|
8436
|
-
tslib_1.__exportStar(require_GetNumberOption(), exports);
|
|
8437
|
-
tslib_1.__exportStar(require_GetOption(), exports);
|
|
8438
|
-
tslib_1.__exportStar(require_GetOptionsObject(), exports);
|
|
8439
|
-
tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports);
|
|
8440
|
-
tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports);
|
|
8441
|
-
tslib_1.__exportStar(require_IsValidTimeZoneName(), exports);
|
|
8442
|
-
tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports);
|
|
8443
|
-
tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports);
|
|
8444
|
-
tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports);
|
|
8445
|
-
tslib_1.__exportStar(require_CollapseNumberRange(), exports);
|
|
8446
|
-
tslib_1.__exportStar(require_ComputeExponent(), exports);
|
|
8447
|
-
tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports);
|
|
8448
|
-
tslib_1.__exportStar(require_CurrencyDigits(), exports);
|
|
8449
|
-
tslib_1.__exportStar(require_FormatApproximately(), exports);
|
|
8450
|
-
tslib_1.__exportStar(require_FormatNumericRange(), exports);
|
|
8451
|
-
tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports);
|
|
8452
|
-
tslib_1.__exportStar(require_FormatNumericToParts(), exports);
|
|
8453
|
-
tslib_1.__exportStar(require_FormatNumericToString(), exports);
|
|
8454
|
-
tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports);
|
|
8455
|
-
tslib_1.__exportStar(require_InitializeNumberFormat(), exports);
|
|
8456
|
-
tslib_1.__exportStar(require_PartitionNumberPattern(), exports);
|
|
8457
|
-
tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports);
|
|
8458
|
-
tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports);
|
|
8459
|
-
tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports);
|
|
8460
|
-
tslib_1.__exportStar(require_ToRawFixed(), exports);
|
|
8461
|
-
tslib_1.__exportStar(require_ToRawPrecision(), exports);
|
|
8462
|
-
var format_to_parts_1 = require_format_to_parts();
|
|
8463
|
-
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function() {
|
|
8464
|
-
return tslib_1.__importDefault(format_to_parts_1).default;
|
|
8465
|
-
} });
|
|
8466
|
-
tslib_1.__exportStar(require_PartitionPattern(), exports);
|
|
8467
|
-
tslib_1.__exportStar(require_SupportedLocales(), exports);
|
|
8468
|
-
var utils_1 = require_utils();
|
|
8469
|
-
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function() {
|
|
8470
|
-
return utils_1.getInternalSlot;
|
|
8471
|
-
} });
|
|
8472
|
-
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function() {
|
|
8473
|
-
return utils_1.getMultiInternalSlots;
|
|
8474
|
-
} });
|
|
8475
|
-
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function() {
|
|
8476
|
-
return utils_1.isLiteralPart;
|
|
8477
|
-
} });
|
|
8478
|
-
Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: function() {
|
|
8479
|
-
return utils_1.setInternalSlot;
|
|
8480
|
-
} });
|
|
8481
|
-
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function() {
|
|
8482
|
-
return utils_1.setMultiInternalSlots;
|
|
8483
|
-
} });
|
|
8484
|
-
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function() {
|
|
8485
|
-
return utils_1.getMagnitude;
|
|
8486
|
-
} });
|
|
8487
|
-
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function() {
|
|
8488
|
-
return utils_1.defineProperty;
|
|
8489
|
-
} });
|
|
8490
|
-
var data_1 = require_data();
|
|
8491
|
-
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function() {
|
|
8492
|
-
return data_1.isMissingLocaleDataError;
|
|
8493
|
-
} });
|
|
8494
|
-
tslib_1.__exportStar(require_relative_time(), exports);
|
|
8495
|
-
tslib_1.__exportStar(require_date_time(), exports);
|
|
8496
|
-
tslib_1.__exportStar(require_list(), exports);
|
|
8497
|
-
tslib_1.__exportStar(require_plural_rules(), exports);
|
|
8498
|
-
tslib_1.__exportStar(require_number(), exports);
|
|
8499
|
-
tslib_1.__exportStar(require_displaynames(), exports);
|
|
8500
|
-
var utils_2 = require_utils();
|
|
8501
|
-
Object.defineProperty(exports, "invariant", { enumerable: true, get: function() {
|
|
8502
|
-
return utils_2.invariant;
|
|
8503
|
-
} });
|
|
8504
|
-
tslib_1.__exportStar(require_262(), exports);
|
|
8505
|
-
});
|
|
8506
|
-
|
|
8507
|
-
// node_modules/@formatjs/intl/src/types.js
|
|
8508
|
-
var require_types = __commonJS((exports) => {
|
|
8509
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8510
|
-
});
|
|
8511
|
-
|
|
8512
|
-
// node_modules/@formatjs/icu-messageformat-parser/error.js
|
|
8513
|
-
var require_error = __commonJS((exports) => {
|
|
8514
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8515
|
-
exports.ErrorKind = undefined;
|
|
8516
|
-
var ErrorKind;
|
|
8517
|
-
(function(ErrorKind2) {
|
|
8518
|
-
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
8519
|
-
ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
|
|
8520
|
-
ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
|
|
8521
|
-
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
|
|
8522
|
-
ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
|
|
8523
|
-
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
|
|
8524
|
-
ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
|
|
8525
|
-
ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
|
|
8526
|
-
ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
|
|
8527
|
-
ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
|
|
8528
|
-
ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
|
|
8529
|
-
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
|
|
8530
|
-
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
8531
|
-
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
8532
|
-
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
|
|
8533
|
-
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
|
|
8534
|
-
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
|
|
8535
|
-
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
|
|
8536
|
-
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
|
|
8537
|
-
ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
|
|
8538
|
-
ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
|
|
8539
|
-
ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
|
|
8540
|
-
ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
|
|
8541
|
-
ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
|
|
8542
|
-
ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
|
|
8543
|
-
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
8544
|
-
})(ErrorKind || (exports.ErrorKind = ErrorKind = {}));
|
|
8545
|
-
});
|
|
8546
|
-
|
|
8547
|
-
// node_modules/@formatjs/icu-messageformat-parser/types.js
|
|
8548
|
-
var require_types2 = __commonJS((exports) => {
|
|
8549
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8550
|
-
exports.createNumberElement = exports.createLiteralElement = exports.isDateTimeSkeleton = exports.isNumberSkeleton = exports.isTagElement = exports.isPoundElement = exports.isPluralElement = exports.isSelectElement = exports.isTimeElement = exports.isDateElement = exports.isNumberElement = exports.isArgumentElement = exports.isLiteralElement = exports.SKELETON_TYPE = exports.TYPE = undefined;
|
|
8551
|
-
var TYPE;
|
|
8552
|
-
(function(TYPE2) {
|
|
8553
|
-
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
8554
|
-
TYPE2[TYPE2["argument"] = 1] = "argument";
|
|
8555
|
-
TYPE2[TYPE2["number"] = 2] = "number";
|
|
8556
|
-
TYPE2[TYPE2["date"] = 3] = "date";
|
|
8557
|
-
TYPE2[TYPE2["time"] = 4] = "time";
|
|
8558
|
-
TYPE2[TYPE2["select"] = 5] = "select";
|
|
8559
|
-
TYPE2[TYPE2["plural"] = 6] = "plural";
|
|
8560
|
-
TYPE2[TYPE2["pound"] = 7] = "pound";
|
|
8561
|
-
TYPE2[TYPE2["tag"] = 8] = "tag";
|
|
8562
|
-
})(TYPE || (exports.TYPE = TYPE = {}));
|
|
8563
|
-
var SKELETON_TYPE;
|
|
8564
|
-
(function(SKELETON_TYPE2) {
|
|
8565
|
-
SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
|
|
8566
|
-
SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
|
|
8567
|
-
})(SKELETON_TYPE || (exports.SKELETON_TYPE = SKELETON_TYPE = {}));
|
|
8568
|
-
function isLiteralElement(el) {
|
|
8569
|
-
return el.type === TYPE.literal;
|
|
8570
|
-
}
|
|
8571
|
-
exports.isLiteralElement = isLiteralElement;
|
|
8572
|
-
function isArgumentElement(el) {
|
|
8573
|
-
return el.type === TYPE.argument;
|
|
8574
|
-
}
|
|
8575
|
-
exports.isArgumentElement = isArgumentElement;
|
|
8576
|
-
function isNumberElement(el) {
|
|
8577
|
-
return el.type === TYPE.number;
|
|
8578
|
-
}
|
|
8579
|
-
exports.isNumberElement = isNumberElement;
|
|
8580
|
-
function isDateElement(el) {
|
|
8581
|
-
return el.type === TYPE.date;
|
|
8582
|
-
}
|
|
8583
|
-
exports.isDateElement = isDateElement;
|
|
8584
|
-
function isTimeElement(el) {
|
|
8585
|
-
return el.type === TYPE.time;
|
|
8586
|
-
}
|
|
8587
|
-
exports.isTimeElement = isTimeElement;
|
|
8588
|
-
function isSelectElement(el) {
|
|
8589
|
-
return el.type === TYPE.select;
|
|
8590
|
-
}
|
|
8591
|
-
exports.isSelectElement = isSelectElement;
|
|
8592
|
-
function isPluralElement(el) {
|
|
8593
|
-
return el.type === TYPE.plural;
|
|
8594
|
-
}
|
|
8595
|
-
exports.isPluralElement = isPluralElement;
|
|
8596
|
-
function isPoundElement(el) {
|
|
8597
|
-
return el.type === TYPE.pound;
|
|
8598
|
-
}
|
|
8599
|
-
exports.isPoundElement = isPoundElement;
|
|
8600
|
-
function isTagElement(el) {
|
|
8601
|
-
return el.type === TYPE.tag;
|
|
8602
|
-
}
|
|
8603
|
-
exports.isTagElement = isTagElement;
|
|
8604
|
-
function isNumberSkeleton(el) {
|
|
8605
|
-
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
|
|
8606
|
-
}
|
|
8607
|
-
exports.isNumberSkeleton = isNumberSkeleton;
|
|
8608
|
-
function isDateTimeSkeleton(el) {
|
|
8609
|
-
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
8610
|
-
}
|
|
8611
|
-
exports.isDateTimeSkeleton = isDateTimeSkeleton;
|
|
8612
|
-
function createLiteralElement(value) {
|
|
8613
|
-
return {
|
|
8614
|
-
type: TYPE.literal,
|
|
8615
|
-
value
|
|
8616
|
-
};
|
|
8617
|
-
}
|
|
8618
|
-
exports.createLiteralElement = createLiteralElement;
|
|
8619
|
-
function createNumberElement(value, style) {
|
|
8620
|
-
return {
|
|
8621
|
-
type: TYPE.number,
|
|
8622
|
-
value,
|
|
8623
|
-
style
|
|
8624
|
-
};
|
|
8625
|
-
}
|
|
8626
|
-
exports.createNumberElement = createNumberElement;
|
|
8627
|
-
});
|
|
8628
|
-
|
|
8629
|
-
// node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
|
|
8630
|
-
var require_regex_generated2 = __commonJS((exports) => {
|
|
8631
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8632
|
-
exports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = undefined;
|
|
8633
|
-
exports.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
8634
|
-
exports.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
|
|
8635
|
-
});
|
|
8636
|
-
|
|
8637
|
-
// node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib/tslib.js
|
|
8638
|
-
var require_tslib3 = __commonJS((exports, module) => {
|
|
8639
|
-
var __extends;
|
|
8640
|
-
var __assign;
|
|
8641
|
-
var __rest;
|
|
8642
|
-
var __decorate;
|
|
8643
|
-
var __param;
|
|
8644
|
-
var __esDecorate;
|
|
8645
|
-
var __runInitializers;
|
|
8646
|
-
var __propKey;
|
|
8647
|
-
var __setFunctionName;
|
|
8648
|
-
var __metadata;
|
|
8649
|
-
var __awaiter;
|
|
8650
|
-
var __generator;
|
|
8651
|
-
var __exportStar;
|
|
8652
|
-
var __values;
|
|
8653
|
-
var __read;
|
|
8654
|
-
var __spread;
|
|
8655
|
-
var __spreadArrays;
|
|
8656
|
-
var __spreadArray;
|
|
8657
|
-
var __await;
|
|
8658
|
-
var __asyncGenerator;
|
|
8659
|
-
var __asyncDelegator;
|
|
8660
|
-
var __asyncValues;
|
|
8661
|
-
var __makeTemplateObject;
|
|
8662
|
-
var __importStar;
|
|
8663
|
-
var __importDefault;
|
|
8664
|
-
var __classPrivateFieldGet;
|
|
8665
|
-
var __classPrivateFieldSet;
|
|
8666
|
-
var __classPrivateFieldIn;
|
|
8667
|
-
var __createBinding;
|
|
8668
|
-
var __addDisposableResource;
|
|
8669
|
-
var __disposeResources;
|
|
8670
|
-
var __rewriteRelativeImportExtension;
|
|
8671
|
-
(function(factory) {
|
|
8672
|
-
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
8673
|
-
if (typeof define === "function" && define.amd) {
|
|
8674
|
-
define("tslib", ["exports"], function(exports2) {
|
|
8675
|
-
factory(createExporter(root, createExporter(exports2)));
|
|
8676
|
-
});
|
|
8677
|
-
} else if (typeof module === "object" && typeof exports === "object") {
|
|
8678
|
-
factory(createExporter(root, createExporter(exports)));
|
|
8679
|
-
} else {
|
|
8680
|
-
factory(createExporter(root));
|
|
8681
|
-
}
|
|
8682
|
-
function createExporter(exports2, previous) {
|
|
8683
|
-
if (exports2 !== root) {
|
|
8684
|
-
if (typeof Object.create === "function") {
|
|
8685
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8686
|
-
} else {
|
|
8687
|
-
exports2.__esModule = true;
|
|
8688
|
-
}
|
|
8689
|
-
}
|
|
8690
|
-
return function(id, v2) {
|
|
8691
|
-
return exports2[id] = previous ? previous(id, v2) : v2;
|
|
8692
|
-
};
|
|
8693
|
-
}
|
|
8694
|
-
})(function(exporter) {
|
|
8695
|
-
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
8696
|
-
d2.__proto__ = b2;
|
|
8697
|
-
} || function(d2, b2) {
|
|
8698
|
-
for (var p2 in b2)
|
|
8699
|
-
if (Object.prototype.hasOwnProperty.call(b2, p2))
|
|
8700
|
-
d2[p2] = b2[p2];
|
|
8701
|
-
};
|
|
8702
|
-
__extends = function(d2, b2) {
|
|
8703
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
8704
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
8705
|
-
extendStatics(d2, b2);
|
|
8706
|
-
function __() {
|
|
8707
|
-
this.constructor = d2;
|
|
8708
|
-
}
|
|
8709
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
|
|
8710
|
-
};
|
|
8711
|
-
__assign = Object.assign || function(t2) {
|
|
8712
|
-
for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
|
|
8713
|
-
s2 = arguments[i2];
|
|
8714
|
-
for (var p2 in s2)
|
|
8715
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
8716
|
-
t2[p2] = s2[p2];
|
|
8717
|
-
}
|
|
8718
|
-
return t2;
|
|
8719
|
-
};
|
|
8720
|
-
__rest = function(s2, e2) {
|
|
8721
|
-
var t2 = {};
|
|
8722
|
-
for (var p2 in s2)
|
|
8723
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
8724
|
-
t2[p2] = s2[p2];
|
|
8725
|
-
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8726
|
-
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
|
|
8727
|
-
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
8728
|
-
t2[p2[i2]] = s2[p2[i2]];
|
|
8729
|
-
}
|
|
8730
|
-
return t2;
|
|
8731
|
-
};
|
|
8732
|
-
__decorate = function(decorators, target, key, desc) {
|
|
8733
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
8734
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8735
|
-
r2 = Reflect.decorate(decorators, target, key, desc);
|
|
8736
|
-
else
|
|
8737
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--)
|
|
8738
|
-
if (d2 = decorators[i2])
|
|
8739
|
-
r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
8740
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
8741
|
-
};
|
|
8742
|
-
__param = function(paramIndex, decorator) {
|
|
8743
|
-
return function(target, key) {
|
|
8744
|
-
decorator(target, key, paramIndex);
|
|
8745
|
-
};
|
|
8746
|
-
};
|
|
8747
|
-
__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8748
|
-
function accept(f2) {
|
|
8749
|
-
if (f2 !== undefined && typeof f2 !== "function")
|
|
8750
|
-
throw new TypeError("Function expected");
|
|
8751
|
-
return f2;
|
|
8752
|
-
}
|
|
8753
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
8754
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
8755
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
8756
|
-
var _2, done = false;
|
|
8757
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
|
|
8758
|
-
var context = {};
|
|
8759
|
-
for (var p2 in contextIn)
|
|
8760
|
-
context[p2] = p2 === "access" ? {} : contextIn[p2];
|
|
8761
|
-
for (var p2 in contextIn.access)
|
|
8762
|
-
context.access[p2] = contextIn.access[p2];
|
|
8763
|
-
context.addInitializer = function(f2) {
|
|
8764
|
-
if (done)
|
|
8765
|
-
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
8766
|
-
extraInitializers.push(accept(f2 || null));
|
|
8767
|
-
};
|
|
8768
|
-
var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
8769
|
-
if (kind === "accessor") {
|
|
8770
|
-
if (result === undefined)
|
|
8771
|
-
continue;
|
|
8772
|
-
if (result === null || typeof result !== "object")
|
|
8773
|
-
throw new TypeError("Object expected");
|
|
8774
|
-
if (_2 = accept(result.get))
|
|
8775
|
-
descriptor.get = _2;
|
|
8776
|
-
if (_2 = accept(result.set))
|
|
8777
|
-
descriptor.set = _2;
|
|
8778
|
-
if (_2 = accept(result.init))
|
|
8779
|
-
initializers.unshift(_2);
|
|
8780
|
-
} else if (_2 = accept(result)) {
|
|
8781
|
-
if (kind === "field")
|
|
8782
|
-
initializers.unshift(_2);
|
|
8783
|
-
else
|
|
8784
|
-
descriptor[key] = _2;
|
|
8785
|
-
}
|
|
8786
|
-
}
|
|
8787
|
-
if (target)
|
|
8788
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
8789
|
-
done = true;
|
|
8790
|
-
};
|
|
8791
|
-
__runInitializers = function(thisArg, initializers, value) {
|
|
8792
|
-
var useValue = arguments.length > 2;
|
|
8793
|
-
for (var i2 = 0;i2 < initializers.length; i2++) {
|
|
8794
|
-
value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
|
|
8795
|
-
}
|
|
8796
|
-
return useValue ? value : undefined;
|
|
8797
|
-
};
|
|
8798
|
-
__propKey = function(x2) {
|
|
8799
|
-
return typeof x2 === "symbol" ? x2 : "".concat(x2);
|
|
8800
|
-
};
|
|
8801
|
-
__setFunctionName = function(f2, name, prefix) {
|
|
8802
|
-
if (typeof name === "symbol")
|
|
8803
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
8804
|
-
return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
8805
|
-
};
|
|
8806
|
-
__metadata = function(metadataKey, metadataValue) {
|
|
8807
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
8808
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
8809
|
-
};
|
|
8810
|
-
__awaiter = function(thisArg, _arguments, P, generator) {
|
|
8811
|
-
function adopt(value) {
|
|
8812
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
8813
|
-
resolve(value);
|
|
8814
|
-
});
|
|
8815
|
-
}
|
|
8816
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
8817
|
-
function fulfilled(value) {
|
|
8818
|
-
try {
|
|
8819
|
-
step(generator.next(value));
|
|
8820
|
-
} catch (e2) {
|
|
8821
|
-
reject(e2);
|
|
8822
|
-
}
|
|
8823
|
-
}
|
|
8824
|
-
function rejected(value) {
|
|
8825
|
-
try {
|
|
8826
|
-
step(generator["throw"](value));
|
|
8827
|
-
} catch (e2) {
|
|
8828
|
-
reject(e2);
|
|
8829
|
-
}
|
|
8830
|
-
}
|
|
8831
|
-
function step(result) {
|
|
8832
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
8833
|
-
}
|
|
8834
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8835
|
-
});
|
|
8836
|
-
};
|
|
8837
|
-
__generator = function(thisArg, body) {
|
|
8838
|
-
var _2 = { label: 0, sent: function() {
|
|
8839
|
-
if (t2[0] & 1)
|
|
8840
|
-
throw t2[1];
|
|
8841
|
-
return t2[1];
|
|
8842
|
-
}, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8843
|
-
return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
8844
|
-
return this;
|
|
8845
|
-
}), g2;
|
|
8846
|
-
function verb(n2) {
|
|
8847
|
-
return function(v2) {
|
|
8848
|
-
return step([n2, v2]);
|
|
8849
|
-
};
|
|
8850
|
-
}
|
|
8851
|
-
function step(op) {
|
|
8852
|
-
if (f2)
|
|
8853
|
-
throw new TypeError("Generator is already executing.");
|
|
8854
|
-
while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
|
|
8855
|
-
try {
|
|
8856
|
-
if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
|
|
8857
|
-
return t2;
|
|
8858
|
-
if (y2 = 0, t2)
|
|
8859
|
-
op = [op[0] & 2, t2.value];
|
|
8860
|
-
switch (op[0]) {
|
|
8861
|
-
case 0:
|
|
8862
|
-
case 1:
|
|
8863
|
-
t2 = op;
|
|
8864
|
-
break;
|
|
8865
|
-
case 4:
|
|
8866
|
-
_2.label++;
|
|
8867
|
-
return { value: op[1], done: false };
|
|
8868
|
-
case 5:
|
|
8869
|
-
_2.label++;
|
|
8870
|
-
y2 = op[1];
|
|
8871
|
-
op = [0];
|
|
8872
|
-
continue;
|
|
8873
|
-
case 7:
|
|
8874
|
-
op = _2.ops.pop();
|
|
8875
|
-
_2.trys.pop();
|
|
8876
|
-
continue;
|
|
8877
|
-
default:
|
|
8878
|
-
if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
8879
|
-
_2 = 0;
|
|
8880
|
-
continue;
|
|
8881
|
-
}
|
|
8882
|
-
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
8883
|
-
_2.label = op[1];
|
|
8884
|
-
break;
|
|
8885
|
-
}
|
|
8886
|
-
if (op[0] === 6 && _2.label < t2[1]) {
|
|
8887
|
-
_2.label = t2[1];
|
|
8888
|
-
t2 = op;
|
|
8889
|
-
break;
|
|
8890
|
-
}
|
|
8891
|
-
if (t2 && _2.label < t2[2]) {
|
|
8892
|
-
_2.label = t2[2];
|
|
8893
|
-
_2.ops.push(op);
|
|
8894
|
-
break;
|
|
8895
|
-
}
|
|
8896
|
-
if (t2[2])
|
|
8897
|
-
_2.ops.pop();
|
|
8898
|
-
_2.trys.pop();
|
|
8899
|
-
continue;
|
|
8900
|
-
}
|
|
8901
|
-
op = body.call(thisArg, _2);
|
|
8902
|
-
} catch (e2) {
|
|
8903
|
-
op = [6, e2];
|
|
8904
|
-
y2 = 0;
|
|
8905
|
-
} finally {
|
|
8906
|
-
f2 = t2 = 0;
|
|
8907
|
-
}
|
|
8908
|
-
if (op[0] & 5)
|
|
8909
|
-
throw op[1];
|
|
8910
|
-
return { value: op[0] ? op[1] : undefined, done: true };
|
|
8911
|
-
}
|
|
8912
|
-
};
|
|
8913
|
-
__exportStar = function(m2, o2) {
|
|
8914
|
-
for (var p2 in m2)
|
|
8915
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
|
|
8916
|
-
__createBinding(o2, m2, p2);
|
|
8917
|
-
};
|
|
8918
|
-
__createBinding = Object.create ? function(o2, m2, k, k2) {
|
|
8919
|
-
if (k2 === undefined)
|
|
8920
|
-
k2 = k;
|
|
8921
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
|
8922
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
8923
|
-
desc = { enumerable: true, get: function() {
|
|
8924
|
-
return m2[k];
|
|
8925
|
-
} };
|
|
8926
|
-
}
|
|
8927
|
-
Object.defineProperty(o2, k2, desc);
|
|
8928
|
-
} : function(o2, m2, k, k2) {
|
|
8929
|
-
if (k2 === undefined)
|
|
8930
|
-
k2 = k;
|
|
8931
|
-
o2[k2] = m2[k];
|
|
8932
|
-
};
|
|
8933
|
-
__values = function(o2) {
|
|
8934
|
-
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
|
|
8935
|
-
if (m2)
|
|
8936
|
-
return m2.call(o2);
|
|
8937
|
-
if (o2 && typeof o2.length === "number")
|
|
8938
|
-
return {
|
|
8939
|
-
next: function() {
|
|
8940
|
-
if (o2 && i2 >= o2.length)
|
|
8941
|
-
o2 = undefined;
|
|
8942
|
-
return { value: o2 && o2[i2++], done: !o2 };
|
|
8943
|
-
}
|
|
8944
|
-
};
|
|
8945
|
-
throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8946
|
-
};
|
|
8947
|
-
__read = function(o2, n2) {
|
|
8948
|
-
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
8949
|
-
if (!m2)
|
|
8950
|
-
return o2;
|
|
8951
|
-
var i2 = m2.call(o2), r2, ar = [], e2;
|
|
8952
|
-
try {
|
|
8953
|
-
while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
|
|
8954
|
-
ar.push(r2.value);
|
|
8955
|
-
} catch (error) {
|
|
8956
|
-
e2 = { error };
|
|
8957
|
-
} finally {
|
|
8958
|
-
try {
|
|
8959
|
-
if (r2 && !r2.done && (m2 = i2["return"]))
|
|
8960
|
-
m2.call(i2);
|
|
8961
|
-
} finally {
|
|
8962
|
-
if (e2)
|
|
8963
|
-
throw e2.error;
|
|
8964
|
-
}
|
|
8965
|
-
}
|
|
8966
|
-
return ar;
|
|
8967
|
-
};
|
|
8968
|
-
__spread = function() {
|
|
8969
|
-
for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
|
|
8970
|
-
ar = ar.concat(__read(arguments[i2]));
|
|
8971
|
-
return ar;
|
|
8972
|
-
};
|
|
8973
|
-
__spreadArrays = function() {
|
|
8974
|
-
for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
|
|
8975
|
-
s2 += arguments[i2].length;
|
|
8976
|
-
for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
|
|
8977
|
-
for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
|
|
8978
|
-
r2[k] = a2[j];
|
|
8979
|
-
return r2;
|
|
8980
|
-
};
|
|
8981
|
-
__spreadArray = function(to, from, pack) {
|
|
8982
|
-
if (pack || arguments.length === 2)
|
|
8983
|
-
for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
|
|
8984
|
-
if (ar || !(i2 in from)) {
|
|
8985
|
-
if (!ar)
|
|
8986
|
-
ar = Array.prototype.slice.call(from, 0, i2);
|
|
8987
|
-
ar[i2] = from[i2];
|
|
8988
|
-
}
|
|
8989
|
-
}
|
|
8990
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
8991
|
-
};
|
|
8992
|
-
__await = function(v2) {
|
|
8993
|
-
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
8994
|
-
};
|
|
8995
|
-
__asyncGenerator = function(thisArg, _arguments, generator) {
|
|
8996
|
-
if (!Symbol.asyncIterator)
|
|
8997
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
8998
|
-
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
8999
|
-
return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
|
|
9000
|
-
return this;
|
|
9001
|
-
}, i2;
|
|
9002
|
-
function awaitReturn(f2) {
|
|
9003
|
-
return function(v2) {
|
|
9004
|
-
return Promise.resolve(v2).then(f2, reject);
|
|
9005
|
-
};
|
|
9006
|
-
}
|
|
9007
|
-
function verb(n2, f2) {
|
|
9008
|
-
if (g2[n2]) {
|
|
9009
|
-
i2[n2] = function(v2) {
|
|
9010
|
-
return new Promise(function(a2, b2) {
|
|
9011
|
-
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
9012
|
-
});
|
|
9013
|
-
};
|
|
9014
|
-
if (f2)
|
|
9015
|
-
i2[n2] = f2(i2[n2]);
|
|
9016
|
-
}
|
|
9017
|
-
}
|
|
9018
|
-
function resume(n2, v2) {
|
|
9019
|
-
try {
|
|
9020
|
-
step(g2[n2](v2));
|
|
9021
|
-
} catch (e2) {
|
|
9022
|
-
settle(q2[0][3], e2);
|
|
9023
|
-
}
|
|
9024
|
-
}
|
|
9025
|
-
function step(r2) {
|
|
9026
|
-
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
|
|
9027
|
-
}
|
|
9028
|
-
function fulfill(value) {
|
|
9029
|
-
resume("next", value);
|
|
9030
|
-
}
|
|
9031
|
-
function reject(value) {
|
|
9032
|
-
resume("throw", value);
|
|
9033
|
-
}
|
|
9034
|
-
function settle(f2, v2) {
|
|
9035
|
-
if (f2(v2), q2.shift(), q2.length)
|
|
9036
|
-
resume(q2[0][0], q2[0][1]);
|
|
9037
|
-
}
|
|
9038
|
-
};
|
|
9039
|
-
__asyncDelegator = function(o2) {
|
|
9040
|
-
var i2, p2;
|
|
9041
|
-
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
|
9042
|
-
throw e2;
|
|
9043
|
-
}), verb("return"), i2[Symbol.iterator] = function() {
|
|
9044
|
-
return this;
|
|
9045
|
-
}, i2;
|
|
9046
|
-
function verb(n2, f2) {
|
|
9047
|
-
i2[n2] = o2[n2] ? function(v2) {
|
|
9048
|
-
return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
|
|
9049
|
-
} : f2;
|
|
9050
|
-
}
|
|
9051
|
-
};
|
|
9052
|
-
__asyncValues = function(o2) {
|
|
9053
|
-
if (!Symbol.asyncIterator)
|
|
9054
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
9055
|
-
var m2 = o2[Symbol.asyncIterator], i2;
|
|
9056
|
-
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
9057
|
-
return this;
|
|
9058
|
-
}, i2);
|
|
9059
|
-
function verb(n2) {
|
|
9060
|
-
i2[n2] = o2[n2] && function(v2) {
|
|
9061
|
-
return new Promise(function(resolve, reject) {
|
|
9062
|
-
v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
|
|
9063
|
-
});
|
|
9064
|
-
};
|
|
9065
|
-
}
|
|
9066
|
-
function settle(resolve, reject, d2, v2) {
|
|
9067
|
-
Promise.resolve(v2).then(function(v3) {
|
|
9068
|
-
resolve({ value: v3, done: d2 });
|
|
9069
|
-
}, reject);
|
|
9070
|
-
}
|
|
9071
|
-
};
|
|
9072
|
-
__makeTemplateObject = function(cooked, raw) {
|
|
9073
|
-
if (Object.defineProperty) {
|
|
9074
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
9075
|
-
} else {
|
|
9076
|
-
cooked.raw = raw;
|
|
9077
|
-
}
|
|
9078
|
-
return cooked;
|
|
9079
|
-
};
|
|
9080
|
-
var __setModuleDefault = Object.create ? function(o2, v2) {
|
|
9081
|
-
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
9082
|
-
} : function(o2, v2) {
|
|
9083
|
-
o2["default"] = v2;
|
|
9084
|
-
};
|
|
9085
|
-
var ownKeys = function(o2) {
|
|
9086
|
-
ownKeys = Object.getOwnPropertyNames || function(o3) {
|
|
9087
|
-
var ar = [];
|
|
9088
|
-
for (var k in o3)
|
|
9089
|
-
if (Object.prototype.hasOwnProperty.call(o3, k))
|
|
9090
|
-
ar[ar.length] = k;
|
|
9091
|
-
return ar;
|
|
9092
|
-
};
|
|
9093
|
-
return ownKeys(o2);
|
|
9094
|
-
};
|
|
9095
|
-
__importStar = function(mod) {
|
|
9096
|
-
if (mod && mod.__esModule)
|
|
9097
|
-
return mod;
|
|
9098
|
-
var result = {};
|
|
9099
|
-
if (mod != null) {
|
|
9100
|
-
for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
|
|
9101
|
-
if (k[i2] !== "default")
|
|
9102
|
-
__createBinding(result, mod, k[i2]);
|
|
9103
|
-
}
|
|
9104
|
-
__setModuleDefault(result, mod);
|
|
9105
|
-
return result;
|
|
9106
|
-
};
|
|
9107
|
-
__importDefault = function(mod) {
|
|
9108
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
9109
|
-
};
|
|
9110
|
-
__classPrivateFieldGet = function(receiver, state, kind, f2) {
|
|
9111
|
-
if (kind === "a" && !f2)
|
|
9112
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
9113
|
-
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
9114
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
9115
|
-
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
|
|
9116
|
-
};
|
|
9117
|
-
__classPrivateFieldSet = function(receiver, state, value, kind, f2) {
|
|
9118
|
-
if (kind === "m")
|
|
9119
|
-
throw new TypeError("Private method is not writable");
|
|
9120
|
-
if (kind === "a" && !f2)
|
|
9121
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
9122
|
-
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
9123
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
9124
|
-
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
9125
|
-
};
|
|
9126
|
-
__classPrivateFieldIn = function(state, receiver) {
|
|
9127
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
9128
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
9129
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
9130
|
-
};
|
|
9131
|
-
__addDisposableResource = function(env, value, async) {
|
|
9132
|
-
if (value !== null && value !== undefined) {
|
|
9133
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
9134
|
-
throw new TypeError("Object expected.");
|
|
9135
|
-
var dispose, inner;
|
|
9136
|
-
if (async) {
|
|
9137
|
-
if (!Symbol.asyncDispose)
|
|
9138
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
9139
|
-
dispose = value[Symbol.asyncDispose];
|
|
9140
|
-
}
|
|
9141
|
-
if (dispose === undefined) {
|
|
9142
|
-
if (!Symbol.dispose)
|
|
9143
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
|
9144
|
-
dispose = value[Symbol.dispose];
|
|
9145
|
-
if (async)
|
|
9146
|
-
inner = dispose;
|
|
9147
|
-
}
|
|
9148
|
-
if (typeof dispose !== "function")
|
|
9149
|
-
throw new TypeError("Object not disposable.");
|
|
9150
|
-
if (inner)
|
|
9151
|
-
dispose = function() {
|
|
9152
|
-
try {
|
|
9153
|
-
inner.call(this);
|
|
9154
|
-
} catch (e2) {
|
|
9155
|
-
return Promise.reject(e2);
|
|
9156
|
-
}
|
|
9157
|
-
};
|
|
9158
|
-
env.stack.push({ value, dispose, async });
|
|
9159
|
-
} else if (async) {
|
|
9160
|
-
env.stack.push({ async: true });
|
|
9161
|
-
}
|
|
9162
|
-
return value;
|
|
9163
|
-
};
|
|
9164
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
9165
|
-
var e2 = new Error(message);
|
|
9166
|
-
return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
|
|
9167
|
-
};
|
|
9168
|
-
__disposeResources = function(env) {
|
|
9169
|
-
function fail(e2) {
|
|
9170
|
-
env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
|
|
9171
|
-
env.hasError = true;
|
|
9172
|
-
}
|
|
9173
|
-
var r2, s2 = 0;
|
|
9174
|
-
function next() {
|
|
9175
|
-
while (r2 = env.stack.pop()) {
|
|
9176
|
-
try {
|
|
9177
|
-
if (!r2.async && s2 === 1)
|
|
9178
|
-
return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
|
|
9179
|
-
if (r2.dispose) {
|
|
9180
|
-
var result = r2.dispose.call(r2.value);
|
|
9181
|
-
if (r2.async)
|
|
9182
|
-
return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
9183
|
-
fail(e2);
|
|
9184
|
-
return next();
|
|
9185
|
-
});
|
|
9186
|
-
} else
|
|
9187
|
-
s2 |= 1;
|
|
9188
|
-
} catch (e2) {
|
|
9189
|
-
fail(e2);
|
|
9190
|
-
}
|
|
9191
|
-
}
|
|
9192
|
-
if (s2 === 1)
|
|
9193
|
-
return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
9194
|
-
if (env.hasError)
|
|
9195
|
-
throw env.error;
|
|
9196
|
-
}
|
|
9197
|
-
return next();
|
|
9198
|
-
};
|
|
9199
|
-
__rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
9200
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
9201
|
-
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
|
|
9202
|
-
return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
|
|
7705
|
+
mnfdDefault = cDigits;
|
|
7706
|
+
mxfdDefault = cDigits;
|
|
7707
|
+
} else {
|
|
7708
|
+
mnfdDefault = 0;
|
|
7709
|
+
mxfdDefault = style === "percent" ? 0 : 3;
|
|
7710
|
+
}
|
|
7711
|
+
var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
|
|
7712
|
+
internalSlots.notation = notation;
|
|
7713
|
+
(0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
|
|
7714
|
+
var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
|
|
7715
|
+
if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
|
|
7716
|
+
throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
|
|
7717
|
+
Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
|
|
7718
|
+
}
|
|
7719
|
+
if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
|
|
7720
|
+
throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
|
|
7721
|
+
}
|
|
7722
|
+
if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
|
|
7723
|
+
throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
|
|
7724
|
+
}
|
|
7725
|
+
internalSlots.roundingIncrement = roundingIncrement;
|
|
7726
|
+
var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
|
|
7727
|
+
internalSlots.trailingZeroDisplay = trailingZeroDisplay;
|
|
7728
|
+
var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
|
|
7729
|
+
var defaultUseGrouping = "auto";
|
|
7730
|
+
if (notation === "compact") {
|
|
7731
|
+
internalSlots.compactDisplay = compactDisplay;
|
|
7732
|
+
defaultUseGrouping = "min2";
|
|
7733
|
+
}
|
|
7734
|
+
internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
|
|
7735
|
+
internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
|
|
7736
|
+
internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
|
|
7737
|
+
"ceil",
|
|
7738
|
+
"floor",
|
|
7739
|
+
"expand",
|
|
7740
|
+
"trunc",
|
|
7741
|
+
"halfCeil",
|
|
7742
|
+
"halfFloor",
|
|
7743
|
+
"halfExpand",
|
|
7744
|
+
"halfTrunc",
|
|
7745
|
+
"halfEven"
|
|
7746
|
+
], "halfExpand");
|
|
7747
|
+
return nf;
|
|
7748
|
+
}
|
|
7749
|
+
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
7750
|
+
});
|
|
7751
|
+
|
|
7752
|
+
// node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
|
|
7753
|
+
var require_PartitionPattern = __commonJS((exports) => {
|
|
7754
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7755
|
+
exports.PartitionPattern = undefined;
|
|
7756
|
+
var utils_1 = require_utils();
|
|
7757
|
+
function PartitionPattern(pattern) {
|
|
7758
|
+
var result = [];
|
|
7759
|
+
var beginIndex = pattern.indexOf("{");
|
|
7760
|
+
var endIndex = 0;
|
|
7761
|
+
var nextIndex = 0;
|
|
7762
|
+
var length = pattern.length;
|
|
7763
|
+
while (beginIndex < pattern.length && beginIndex > -1) {
|
|
7764
|
+
endIndex = pattern.indexOf("}", beginIndex);
|
|
7765
|
+
(0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
|
|
7766
|
+
if (beginIndex > nextIndex) {
|
|
7767
|
+
result.push({
|
|
7768
|
+
type: "literal",
|
|
7769
|
+
value: pattern.substring(nextIndex, beginIndex)
|
|
9203
7770
|
});
|
|
9204
7771
|
}
|
|
9205
|
-
|
|
7772
|
+
result.push({
|
|
7773
|
+
type: pattern.substring(beginIndex + 1, endIndex),
|
|
7774
|
+
value: undefined
|
|
7775
|
+
});
|
|
7776
|
+
nextIndex = endIndex + 1;
|
|
7777
|
+
beginIndex = pattern.indexOf("{", nextIndex);
|
|
7778
|
+
}
|
|
7779
|
+
if (nextIndex < length) {
|
|
7780
|
+
result.push({
|
|
7781
|
+
type: "literal",
|
|
7782
|
+
value: pattern.substring(nextIndex, length)
|
|
7783
|
+
});
|
|
7784
|
+
}
|
|
7785
|
+
return result;
|
|
7786
|
+
}
|
|
7787
|
+
exports.PartitionPattern = PartitionPattern;
|
|
7788
|
+
});
|
|
7789
|
+
|
|
7790
|
+
// node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
|
|
7791
|
+
var require_SupportedLocales = __commonJS((exports) => {
|
|
7792
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7793
|
+
exports.SupportedLocales = undefined;
|
|
7794
|
+
var intl_localematcher_1 = require_intl_localematcher();
|
|
7795
|
+
var _262_1 = require_262();
|
|
7796
|
+
var GetOption_1 = require_GetOption();
|
|
7797
|
+
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
7798
|
+
var matcher = "best fit";
|
|
7799
|
+
if (options !== undefined) {
|
|
7800
|
+
options = (0, _262_1.ToObject)(options);
|
|
7801
|
+
matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
7802
|
+
}
|
|
7803
|
+
if (matcher === "best fit") {
|
|
7804
|
+
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
7805
|
+
}
|
|
7806
|
+
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
7807
|
+
}
|
|
7808
|
+
exports.SupportedLocales = SupportedLocales;
|
|
7809
|
+
});
|
|
7810
|
+
|
|
7811
|
+
// node_modules/@formatjs/ecma402-abstract/data.js
|
|
7812
|
+
var require_data = __commonJS((exports) => {
|
|
7813
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7814
|
+
exports.isMissingLocaleDataError = undefined;
|
|
7815
|
+
var tslib_1 = require_tslib();
|
|
7816
|
+
var MissingLocaleDataError = function(_super) {
|
|
7817
|
+
tslib_1.__extends(MissingLocaleDataError2, _super);
|
|
7818
|
+
function MissingLocaleDataError2() {
|
|
7819
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
7820
|
+
_this.type = "MISSING_LOCALE_DATA";
|
|
7821
|
+
return _this;
|
|
7822
|
+
}
|
|
7823
|
+
return MissingLocaleDataError2;
|
|
7824
|
+
}(Error);
|
|
7825
|
+
function isMissingLocaleDataError(e2) {
|
|
7826
|
+
return e2.type === "MISSING_LOCALE_DATA";
|
|
7827
|
+
}
|
|
7828
|
+
exports.isMissingLocaleDataError = isMissingLocaleDataError;
|
|
7829
|
+
});
|
|
7830
|
+
|
|
7831
|
+
// node_modules/@formatjs/ecma402-abstract/types/relative-time.js
|
|
7832
|
+
var require_relative_time = __commonJS((exports) => {
|
|
7833
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7834
|
+
});
|
|
7835
|
+
|
|
7836
|
+
// node_modules/@formatjs/ecma402-abstract/types/date-time.js
|
|
7837
|
+
var require_date_time = __commonJS((exports) => {
|
|
7838
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7839
|
+
exports.RangePatternType = undefined;
|
|
7840
|
+
var RangePatternType;
|
|
7841
|
+
(function(RangePatternType2) {
|
|
7842
|
+
RangePatternType2["startRange"] = "startRange";
|
|
7843
|
+
RangePatternType2["shared"] = "shared";
|
|
7844
|
+
RangePatternType2["endRange"] = "endRange";
|
|
7845
|
+
})(RangePatternType || (exports.RangePatternType = RangePatternType = {}));
|
|
7846
|
+
});
|
|
7847
|
+
|
|
7848
|
+
// node_modules/@formatjs/ecma402-abstract/types/list.js
|
|
7849
|
+
var require_list = __commonJS((exports) => {
|
|
7850
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7851
|
+
});
|
|
7852
|
+
|
|
7853
|
+
// node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
|
|
7854
|
+
var require_plural_rules = __commonJS((exports) => {
|
|
7855
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7856
|
+
});
|
|
7857
|
+
|
|
7858
|
+
// node_modules/@formatjs/ecma402-abstract/types/number.js
|
|
7859
|
+
var require_number = __commonJS((exports) => {
|
|
7860
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7861
|
+
});
|
|
7862
|
+
|
|
7863
|
+
// node_modules/@formatjs/ecma402-abstract/types/displaynames.js
|
|
7864
|
+
var require_displaynames = __commonJS((exports) => {
|
|
7865
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7866
|
+
});
|
|
7867
|
+
|
|
7868
|
+
// node_modules/@formatjs/ecma402-abstract/index.js
|
|
7869
|
+
var require_ecma402_abstract = __commonJS((exports) => {
|
|
7870
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7871
|
+
exports.invariant = exports.isMissingLocaleDataError = exports.defineProperty = exports.getMagnitude = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports._formatToParts = undefined;
|
|
7872
|
+
var tslib_1 = require_tslib();
|
|
7873
|
+
tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports);
|
|
7874
|
+
tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports);
|
|
7875
|
+
tslib_1.__exportStar(require_CoerceOptionsToObject(), exports);
|
|
7876
|
+
tslib_1.__exportStar(require_GetNumberOption(), exports);
|
|
7877
|
+
tslib_1.__exportStar(require_GetOption(), exports);
|
|
7878
|
+
tslib_1.__exportStar(require_GetOptionsObject(), exports);
|
|
7879
|
+
tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports);
|
|
7880
|
+
tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports);
|
|
7881
|
+
tslib_1.__exportStar(require_IsValidTimeZoneName(), exports);
|
|
7882
|
+
tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports);
|
|
7883
|
+
tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports);
|
|
7884
|
+
tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports);
|
|
7885
|
+
tslib_1.__exportStar(require_CollapseNumberRange(), exports);
|
|
7886
|
+
tslib_1.__exportStar(require_ComputeExponent(), exports);
|
|
7887
|
+
tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports);
|
|
7888
|
+
tslib_1.__exportStar(require_CurrencyDigits(), exports);
|
|
7889
|
+
tslib_1.__exportStar(require_FormatApproximately(), exports);
|
|
7890
|
+
tslib_1.__exportStar(require_FormatNumericRange(), exports);
|
|
7891
|
+
tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports);
|
|
7892
|
+
tslib_1.__exportStar(require_FormatNumericToParts(), exports);
|
|
7893
|
+
tslib_1.__exportStar(require_FormatNumericToString(), exports);
|
|
7894
|
+
tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports);
|
|
7895
|
+
tslib_1.__exportStar(require_InitializeNumberFormat(), exports);
|
|
7896
|
+
tslib_1.__exportStar(require_PartitionNumberPattern(), exports);
|
|
7897
|
+
tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports);
|
|
7898
|
+
tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports);
|
|
7899
|
+
tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports);
|
|
7900
|
+
tslib_1.__exportStar(require_ToRawFixed(), exports);
|
|
7901
|
+
tslib_1.__exportStar(require_ToRawPrecision(), exports);
|
|
7902
|
+
var format_to_parts_1 = require_format_to_parts();
|
|
7903
|
+
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function() {
|
|
7904
|
+
return tslib_1.__importDefault(format_to_parts_1).default;
|
|
7905
|
+
} });
|
|
7906
|
+
tslib_1.__exportStar(require_PartitionPattern(), exports);
|
|
7907
|
+
tslib_1.__exportStar(require_SupportedLocales(), exports);
|
|
7908
|
+
var utils_1 = require_utils();
|
|
7909
|
+
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function() {
|
|
7910
|
+
return utils_1.getInternalSlot;
|
|
7911
|
+
} });
|
|
7912
|
+
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function() {
|
|
7913
|
+
return utils_1.getMultiInternalSlots;
|
|
7914
|
+
} });
|
|
7915
|
+
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function() {
|
|
7916
|
+
return utils_1.isLiteralPart;
|
|
7917
|
+
} });
|
|
7918
|
+
Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: function() {
|
|
7919
|
+
return utils_1.setInternalSlot;
|
|
7920
|
+
} });
|
|
7921
|
+
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function() {
|
|
7922
|
+
return utils_1.setMultiInternalSlots;
|
|
7923
|
+
} });
|
|
7924
|
+
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function() {
|
|
7925
|
+
return utils_1.getMagnitude;
|
|
7926
|
+
} });
|
|
7927
|
+
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function() {
|
|
7928
|
+
return utils_1.defineProperty;
|
|
7929
|
+
} });
|
|
7930
|
+
var data_1 = require_data();
|
|
7931
|
+
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function() {
|
|
7932
|
+
return data_1.isMissingLocaleDataError;
|
|
7933
|
+
} });
|
|
7934
|
+
tslib_1.__exportStar(require_relative_time(), exports);
|
|
7935
|
+
tslib_1.__exportStar(require_date_time(), exports);
|
|
7936
|
+
tslib_1.__exportStar(require_list(), exports);
|
|
7937
|
+
tslib_1.__exportStar(require_plural_rules(), exports);
|
|
7938
|
+
tslib_1.__exportStar(require_number(), exports);
|
|
7939
|
+
tslib_1.__exportStar(require_displaynames(), exports);
|
|
7940
|
+
var utils_2 = require_utils();
|
|
7941
|
+
Object.defineProperty(exports, "invariant", { enumerable: true, get: function() {
|
|
7942
|
+
return utils_2.invariant;
|
|
7943
|
+
} });
|
|
7944
|
+
tslib_1.__exportStar(require_262(), exports);
|
|
7945
|
+
});
|
|
7946
|
+
|
|
7947
|
+
// node_modules/@formatjs/intl/src/types.js
|
|
7948
|
+
var require_types = __commonJS((exports) => {
|
|
7949
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7950
|
+
});
|
|
7951
|
+
|
|
7952
|
+
// node_modules/@formatjs/icu-messageformat-parser/error.js
|
|
7953
|
+
var require_error = __commonJS((exports) => {
|
|
7954
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7955
|
+
exports.ErrorKind = undefined;
|
|
7956
|
+
var ErrorKind;
|
|
7957
|
+
(function(ErrorKind2) {
|
|
7958
|
+
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
7959
|
+
ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
|
|
7960
|
+
ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
|
|
7961
|
+
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
|
|
7962
|
+
ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
|
|
7963
|
+
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
|
|
7964
|
+
ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
|
|
7965
|
+
ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
|
|
7966
|
+
ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
|
|
7967
|
+
ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
|
|
7968
|
+
ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
|
|
7969
|
+
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
|
|
7970
|
+
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
7971
|
+
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
7972
|
+
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
|
|
7973
|
+
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
|
|
7974
|
+
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
|
|
7975
|
+
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
|
|
7976
|
+
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
|
|
7977
|
+
ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
|
|
7978
|
+
ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
|
|
7979
|
+
ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
|
|
7980
|
+
ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
|
|
7981
|
+
ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
|
|
7982
|
+
ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
|
|
7983
|
+
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
7984
|
+
})(ErrorKind || (exports.ErrorKind = ErrorKind = {}));
|
|
7985
|
+
});
|
|
7986
|
+
|
|
7987
|
+
// node_modules/@formatjs/icu-messageformat-parser/types.js
|
|
7988
|
+
var require_types2 = __commonJS((exports) => {
|
|
7989
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7990
|
+
exports.createNumberElement = exports.createLiteralElement = exports.isDateTimeSkeleton = exports.isNumberSkeleton = exports.isTagElement = exports.isPoundElement = exports.isPluralElement = exports.isSelectElement = exports.isTimeElement = exports.isDateElement = exports.isNumberElement = exports.isArgumentElement = exports.isLiteralElement = exports.SKELETON_TYPE = exports.TYPE = undefined;
|
|
7991
|
+
var TYPE;
|
|
7992
|
+
(function(TYPE2) {
|
|
7993
|
+
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
7994
|
+
TYPE2[TYPE2["argument"] = 1] = "argument";
|
|
7995
|
+
TYPE2[TYPE2["number"] = 2] = "number";
|
|
7996
|
+
TYPE2[TYPE2["date"] = 3] = "date";
|
|
7997
|
+
TYPE2[TYPE2["time"] = 4] = "time";
|
|
7998
|
+
TYPE2[TYPE2["select"] = 5] = "select";
|
|
7999
|
+
TYPE2[TYPE2["plural"] = 6] = "plural";
|
|
8000
|
+
TYPE2[TYPE2["pound"] = 7] = "pound";
|
|
8001
|
+
TYPE2[TYPE2["tag"] = 8] = "tag";
|
|
8002
|
+
})(TYPE || (exports.TYPE = TYPE = {}));
|
|
8003
|
+
var SKELETON_TYPE;
|
|
8004
|
+
(function(SKELETON_TYPE2) {
|
|
8005
|
+
SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
|
|
8006
|
+
SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
|
|
8007
|
+
})(SKELETON_TYPE || (exports.SKELETON_TYPE = SKELETON_TYPE = {}));
|
|
8008
|
+
function isLiteralElement(el) {
|
|
8009
|
+
return el.type === TYPE.literal;
|
|
8010
|
+
}
|
|
8011
|
+
exports.isLiteralElement = isLiteralElement;
|
|
8012
|
+
function isArgumentElement(el) {
|
|
8013
|
+
return el.type === TYPE.argument;
|
|
8014
|
+
}
|
|
8015
|
+
exports.isArgumentElement = isArgumentElement;
|
|
8016
|
+
function isNumberElement(el) {
|
|
8017
|
+
return el.type === TYPE.number;
|
|
8018
|
+
}
|
|
8019
|
+
exports.isNumberElement = isNumberElement;
|
|
8020
|
+
function isDateElement(el) {
|
|
8021
|
+
return el.type === TYPE.date;
|
|
8022
|
+
}
|
|
8023
|
+
exports.isDateElement = isDateElement;
|
|
8024
|
+
function isTimeElement(el) {
|
|
8025
|
+
return el.type === TYPE.time;
|
|
8026
|
+
}
|
|
8027
|
+
exports.isTimeElement = isTimeElement;
|
|
8028
|
+
function isSelectElement(el) {
|
|
8029
|
+
return el.type === TYPE.select;
|
|
8030
|
+
}
|
|
8031
|
+
exports.isSelectElement = isSelectElement;
|
|
8032
|
+
function isPluralElement(el) {
|
|
8033
|
+
return el.type === TYPE.plural;
|
|
8034
|
+
}
|
|
8035
|
+
exports.isPluralElement = isPluralElement;
|
|
8036
|
+
function isPoundElement(el) {
|
|
8037
|
+
return el.type === TYPE.pound;
|
|
8038
|
+
}
|
|
8039
|
+
exports.isPoundElement = isPoundElement;
|
|
8040
|
+
function isTagElement(el) {
|
|
8041
|
+
return el.type === TYPE.tag;
|
|
8042
|
+
}
|
|
8043
|
+
exports.isTagElement = isTagElement;
|
|
8044
|
+
function isNumberSkeleton(el) {
|
|
8045
|
+
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
|
|
8046
|
+
}
|
|
8047
|
+
exports.isNumberSkeleton = isNumberSkeleton;
|
|
8048
|
+
function isDateTimeSkeleton(el) {
|
|
8049
|
+
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
8050
|
+
}
|
|
8051
|
+
exports.isDateTimeSkeleton = isDateTimeSkeleton;
|
|
8052
|
+
function createLiteralElement(value) {
|
|
8053
|
+
return {
|
|
8054
|
+
type: TYPE.literal,
|
|
8055
|
+
value
|
|
9206
8056
|
};
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
exporter("__spreadArray", __spreadArray);
|
|
9226
|
-
exporter("__await", __await);
|
|
9227
|
-
exporter("__asyncGenerator", __asyncGenerator);
|
|
9228
|
-
exporter("__asyncDelegator", __asyncDelegator);
|
|
9229
|
-
exporter("__asyncValues", __asyncValues);
|
|
9230
|
-
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
9231
|
-
exporter("__importStar", __importStar);
|
|
9232
|
-
exporter("__importDefault", __importDefault);
|
|
9233
|
-
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
9234
|
-
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
9235
|
-
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
9236
|
-
exporter("__addDisposableResource", __addDisposableResource);
|
|
9237
|
-
exporter("__disposeResources", __disposeResources);
|
|
9238
|
-
exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
|
|
9239
|
-
});
|
|
8057
|
+
}
|
|
8058
|
+
exports.createLiteralElement = createLiteralElement;
|
|
8059
|
+
function createNumberElement(value, style) {
|
|
8060
|
+
return {
|
|
8061
|
+
type: TYPE.number,
|
|
8062
|
+
value,
|
|
8063
|
+
style
|
|
8064
|
+
};
|
|
8065
|
+
}
|
|
8066
|
+
exports.createNumberElement = createNumberElement;
|
|
8067
|
+
});
|
|
8068
|
+
|
|
8069
|
+
// node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
|
|
8070
|
+
var require_regex_generated2 = __commonJS((exports) => {
|
|
8071
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8072
|
+
exports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = undefined;
|
|
8073
|
+
exports.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
8074
|
+
exports.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
|
|
9240
8075
|
});
|
|
9241
8076
|
|
|
9242
8077
|
// node_modules/@formatjs/icu-skeleton-parser/date-time.js
|
|
@@ -9356,7 +8191,7 @@ var require_regex_generated3 = __commonJS((exports) => {
|
|
|
9356
8191
|
var require_number2 = __commonJS((exports) => {
|
|
9357
8192
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9358
8193
|
exports.parseNumberSkeleton = exports.parseNumberSkeletonFromString = undefined;
|
|
9359
|
-
var tslib_1 =
|
|
8194
|
+
var tslib_1 = require_tslib();
|
|
9360
8195
|
var regex_generated_1 = require_regex_generated3();
|
|
9361
8196
|
function parseNumberSkeletonFromString(skeleton) {
|
|
9362
8197
|
if (skeleton.length === 0) {
|
|
@@ -9650,7 +8485,7 @@ var require_number2 = __commonJS((exports) => {
|
|
|
9650
8485
|
// node_modules/@formatjs/icu-skeleton-parser/index.js
|
|
9651
8486
|
var require_icu_skeleton_parser = __commonJS((exports) => {
|
|
9652
8487
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9653
|
-
var tslib_1 =
|
|
8488
|
+
var tslib_1 = require_tslib();
|
|
9654
8489
|
tslib_1.__exportStar(require_date_time2(), exports);
|
|
9655
8490
|
tslib_1.__exportStar(require_number2(), exports);
|
|
9656
8491
|
});
|
|
@@ -20481,7 +19316,7 @@ var init_ApiErrorAlert = __esm(() => {
|
|
|
20481
19316
|
|
|
20482
19317
|
// admin/src/components/DashboardStats.tsx
|
|
20483
19318
|
import { Box as Box6, Grid as Grid2, Typography as Typography8 } from "@strapi/design-system";
|
|
20484
|
-
import { useFetchClient as useFetchClient3, useNotification as
|
|
19319
|
+
import { useFetchClient as useFetchClient3, useNotification as useNotification3 } from "@strapi/strapi/admin";
|
|
20485
19320
|
import { useEffect as useEffect7, useState as useState12 } from "react";
|
|
20486
19321
|
import { jsxDEV as jsxDEV28 } from "react/jsx-dev-runtime";
|
|
20487
19322
|
var DashboardStats = ({
|
|
@@ -20491,7 +19326,7 @@ var DashboardStats = ({
|
|
|
20491
19326
|
onLoaded
|
|
20492
19327
|
}) => {
|
|
20493
19328
|
const fetchClient = useFetchClient3();
|
|
20494
|
-
const { toggleNotification } =
|
|
19329
|
+
const { toggleNotification } = useNotification3();
|
|
20495
19330
|
const [isLoading, setIsLoading] = useState12(!externalData);
|
|
20496
19331
|
const [error, setError] = useState12(null);
|
|
20497
19332
|
const [stats, setStats] = useState12(externalData || {
|
|
@@ -20726,7 +19561,7 @@ import {
|
|
|
20726
19561
|
Layouts,
|
|
20727
19562
|
Page as Page2,
|
|
20728
19563
|
useFetchClient as useFetchClient5,
|
|
20729
|
-
useNotification as
|
|
19564
|
+
useNotification as useNotification5
|
|
20730
19565
|
} from "@strapi/strapi/admin";
|
|
20731
19566
|
import { useCallback as useCallback6, useEffect as useEffect8, useState as useState13 } from "react";
|
|
20732
19567
|
import { useNavigate } from "react-router-dom";
|
|
@@ -20734,7 +19569,7 @@ import { jsxDEV as jsxDEV31 } from "react/jsx-dev-runtime";
|
|
|
20734
19569
|
var Inquiry = () => {
|
|
20735
19570
|
const navigate = useNavigate();
|
|
20736
19571
|
const fetchClient = useFetchClient5();
|
|
20737
|
-
const { toggleNotification } =
|
|
19572
|
+
const { toggleNotification } = useNotification5();
|
|
20738
19573
|
const [isLoading, setIsLoading] = useState13(true);
|
|
20739
19574
|
const [error, setError] = useState13(null);
|
|
20740
19575
|
const [data, setData] = useState13([]);
|
|
@@ -20953,7 +19788,7 @@ import {
|
|
|
20953
19788
|
Layouts as Layouts2,
|
|
20954
19789
|
Page as Page3,
|
|
20955
19790
|
useFetchClient as useFetchClient6,
|
|
20956
|
-
useNotification as
|
|
19791
|
+
useNotification as useNotification6
|
|
20957
19792
|
} from "@strapi/strapi/admin";
|
|
20958
19793
|
import { useEffect as useEffect9, useState as useState14 } from "react";
|
|
20959
19794
|
import { useNavigate as useNavigate2, useParams } from "react-router-dom";
|
|
@@ -20963,7 +19798,7 @@ var DetailTable, InquiryDetail = () => {
|
|
|
20963
19798
|
const { id } = useParams();
|
|
20964
19799
|
const navigate = useNavigate2();
|
|
20965
19800
|
const fetchClient = useFetchClient6();
|
|
20966
|
-
const { toggleNotification } =
|
|
19801
|
+
const { toggleNotification } = useNotification6();
|
|
20967
19802
|
const [isLoading, setIsLoading] = useState14(true);
|
|
20968
19803
|
const [isMarking, setIsMarking] = useState14(false);
|
|
20969
19804
|
const [data, setData] = useState14(null);
|
|
@@ -21304,13 +20139,13 @@ import {
|
|
|
21304
20139
|
Layouts as Layouts3,
|
|
21305
20140
|
Page as Page4,
|
|
21306
20141
|
useFetchClient as useFetchClient7,
|
|
21307
|
-
useNotification as
|
|
20142
|
+
useNotification as useNotification7
|
|
21308
20143
|
} from "@strapi/strapi/admin";
|
|
21309
20144
|
import { useCallback as useCallback7, useEffect as useEffect10, useState as useState15 } from "react";
|
|
21310
20145
|
import { jsxDEV as jsxDEV33, Fragment as Fragment5 } from "react/jsx-dev-runtime";
|
|
21311
20146
|
var Visitor = () => {
|
|
21312
20147
|
const fetchClient = useFetchClient7();
|
|
21313
|
-
const { toggleNotification } =
|
|
20148
|
+
const { toggleNotification } = useNotification7();
|
|
21314
20149
|
const [isLoading, setIsLoading] = useState15(true);
|
|
21315
20150
|
const [error, setError] = useState15(null);
|
|
21316
20151
|
const [activeTab, setActiveTab] = useState15("dailyStats");
|
|
@@ -46820,7 +45655,22 @@ var registerColorPicker = (app) => {
|
|
|
46820
45655
|
components: {
|
|
46821
45656
|
Input: () => Promise.resolve({ default: ColorPickerInput })
|
|
46822
45657
|
},
|
|
46823
|
-
options: {
|
|
45658
|
+
options: {
|
|
45659
|
+
advanced: [
|
|
45660
|
+
{
|
|
45661
|
+
name: "required",
|
|
45662
|
+
type: "checkbox",
|
|
45663
|
+
intlLabel: {
|
|
45664
|
+
id: "form.attribute.item.requiredField",
|
|
45665
|
+
defaultMessage: "Required field"
|
|
45666
|
+
},
|
|
45667
|
+
description: {
|
|
45668
|
+
id: "form.attribute.item.requiredField.description",
|
|
45669
|
+
defaultMessage: "Cannot create entry if empty"
|
|
45670
|
+
}
|
|
45671
|
+
}
|
|
45672
|
+
]
|
|
45673
|
+
}
|
|
46824
45674
|
});
|
|
46825
45675
|
};
|
|
46826
45676
|
|
|
@@ -47186,7 +46036,8 @@ var import_react_intl3 = __toESM(require_react_intl(), 1);
|
|
|
47186
46036
|
import { Box as Box2, Button as Button2, Flex as Flex2, Modal, Typography as Typography3 } from "@strapi/design-system";
|
|
47187
46037
|
import {
|
|
47188
46038
|
unstable_useContentManagerContext,
|
|
47189
|
-
useFetchClient
|
|
46039
|
+
useFetchClient,
|
|
46040
|
+
useNotification
|
|
47190
46041
|
} from "@strapi/strapi/admin";
|
|
47191
46042
|
import * as React6 from "react";
|
|
47192
46043
|
import { styled as styled10 } from "styled-components";
|
|
@@ -47358,6 +46209,7 @@ var DataSelector = ({
|
|
|
47358
46209
|
const { formatMessage } = import_react_intl3.useIntl();
|
|
47359
46210
|
const { contentTypes } = unstable_useContentManagerContext();
|
|
47360
46211
|
const client = useFetchClient();
|
|
46212
|
+
const { toggleNotification } = useNotification();
|
|
47361
46213
|
const displayedContentTypes = React6.useMemo(() => contentTypes?.filter((ct) => ct.isDisplayed && !ct.uid.startsWith("plugin:")) || [], [contentTypes]);
|
|
47362
46214
|
const loadCollectionData = React6.useCallback(async (contentType, currentPage = 1, currentPageSize = 10) => {
|
|
47363
46215
|
setIsDataLoading(true);
|
|
@@ -47394,8 +46246,19 @@ var DataSelector = ({
|
|
|
47394
46246
|
onChange(selectedData);
|
|
47395
46247
|
setIsOpen(false);
|
|
47396
46248
|
}
|
|
47397
|
-
} catch (
|
|
47398
|
-
|
|
46249
|
+
} catch (err) {
|
|
46250
|
+
const error = err?.response?.data?.error;
|
|
46251
|
+
if (error.status === 404) {
|
|
46252
|
+
toggleNotification({
|
|
46253
|
+
type: "warning",
|
|
46254
|
+
message: formatMessage({
|
|
46255
|
+
id: getTrad("data-select.single-type-not-found"),
|
|
46256
|
+
defaultMessage: 'Content type "{displayName}" is not filled yet. Please fill in the content type information and save it before trying again.'
|
|
46257
|
+
}, { displayName: contentType.info.displayName })
|
|
46258
|
+
});
|
|
46259
|
+
} else {
|
|
46260
|
+
console.error("Failed to load single type data:", error);
|
|
46261
|
+
}
|
|
47399
46262
|
} finally {
|
|
47400
46263
|
setIsDataLoading(false);
|
|
47401
46264
|
}
|
|
@@ -47406,7 +46269,7 @@ var DataSelector = ({
|
|
|
47406
46269
|
setPageSize(10);
|
|
47407
46270
|
await loadCollectionData(contentType, 1, 10);
|
|
47408
46271
|
}
|
|
47409
|
-
}, [client, onChange, loadCollectionData]);
|
|
46272
|
+
}, [client, onChange, loadCollectionData, toggleNotification, formatMessage]);
|
|
47410
46273
|
const handleBackToContentTypes = React6.useCallback(() => {
|
|
47411
46274
|
setSelectedContentType(null);
|
|
47412
46275
|
setDataItems([]);
|
|
@@ -48861,7 +47724,22 @@ var registerDataNested = (app) => {
|
|
|
48861
47724
|
components: {
|
|
48862
47725
|
Input: () => Promise.resolve({ default: DataNested })
|
|
48863
47726
|
},
|
|
48864
|
-
options: {
|
|
47727
|
+
options: {
|
|
47728
|
+
advanced: [
|
|
47729
|
+
{
|
|
47730
|
+
name: "required",
|
|
47731
|
+
type: "checkbox",
|
|
47732
|
+
intlLabel: {
|
|
47733
|
+
id: "form.attribute.item.requiredField",
|
|
47734
|
+
defaultMessage: "Required field"
|
|
47735
|
+
},
|
|
47736
|
+
description: {
|
|
47737
|
+
id: "form.attribute.item.requiredField.description",
|
|
47738
|
+
defaultMessage: "Cannot create entry if empty"
|
|
47739
|
+
}
|
|
47740
|
+
}
|
|
47741
|
+
]
|
|
47742
|
+
}
|
|
48865
47743
|
});
|
|
48866
47744
|
};
|
|
48867
47745
|
|
|
@@ -48915,7 +47793,22 @@ var registerDataSelect = (app) => {
|
|
|
48915
47793
|
components: {
|
|
48916
47794
|
Input: () => Promise.resolve({ default: DataSelectInput })
|
|
48917
47795
|
},
|
|
48918
|
-
options: {
|
|
47796
|
+
options: {
|
|
47797
|
+
advanced: [
|
|
47798
|
+
{
|
|
47799
|
+
name: "required",
|
|
47800
|
+
type: "checkbox",
|
|
47801
|
+
intlLabel: {
|
|
47802
|
+
id: "form.attribute.item.requiredField",
|
|
47803
|
+
defaultMessage: "Required field"
|
|
47804
|
+
},
|
|
47805
|
+
description: {
|
|
47806
|
+
id: "form.attribute.item.requiredField.description",
|
|
47807
|
+
defaultMessage: "Cannot create entry if empty"
|
|
47808
|
+
}
|
|
47809
|
+
}
|
|
47810
|
+
]
|
|
47811
|
+
}
|
|
48919
47812
|
});
|
|
48920
47813
|
};
|
|
48921
47814
|
|
|
@@ -50861,7 +49754,22 @@ var registerIconPicker = (app) => {
|
|
|
50861
49754
|
components: {
|
|
50862
49755
|
Input: () => Promise.resolve({ default: IconPickerInput })
|
|
50863
49756
|
},
|
|
50864
|
-
options: {
|
|
49757
|
+
options: {
|
|
49758
|
+
advanced: [
|
|
49759
|
+
{
|
|
49760
|
+
name: "required",
|
|
49761
|
+
type: "checkbox",
|
|
49762
|
+
intlLabel: {
|
|
49763
|
+
id: "form.attribute.item.requiredField",
|
|
49764
|
+
defaultMessage: "Required field"
|
|
49765
|
+
},
|
|
49766
|
+
description: {
|
|
49767
|
+
id: "form.attribute.item.requiredField.description",
|
|
49768
|
+
defaultMessage: "Cannot create entry if empty"
|
|
49769
|
+
}
|
|
49770
|
+
}
|
|
49771
|
+
]
|
|
49772
|
+
}
|
|
50865
49773
|
});
|
|
50866
49774
|
};
|
|
50867
49775
|
|
|
@@ -50872,7 +49780,7 @@ import {
|
|
|
50872
49780
|
unstable_useContentManagerContext as unstable_useContentManagerContext2,
|
|
50873
49781
|
useFetchClient as useFetchClient2,
|
|
50874
49782
|
useField as useField5,
|
|
50875
|
-
useNotification
|
|
49783
|
+
useNotification as useNotification2
|
|
50876
49784
|
} from "@strapi/strapi/admin";
|
|
50877
49785
|
|
|
50878
49786
|
// node_modules/@uidotdev/usehooks/index.js
|
|
@@ -50920,7 +49828,7 @@ var SlugInput = React11.forwardRef(({ hint, labelAction, label, name, required,
|
|
|
50920
49828
|
const { formatMessage } = import_react_intl6.useIntl();
|
|
50921
49829
|
const field = useField5(name);
|
|
50922
49830
|
const fetchClient = useFetchClient2();
|
|
50923
|
-
const { toggleNotification } =
|
|
49831
|
+
const { toggleNotification } = useNotification2();
|
|
50924
49832
|
const {
|
|
50925
49833
|
contentType,
|
|
50926
49834
|
id: documentId,
|
|
@@ -50958,6 +49866,9 @@ var SlugInput = React11.forwardRef(({ hint, labelAction, label, name, required,
|
|
|
50958
49866
|
if (!value || documentId && field.initialValue === value) {
|
|
50959
49867
|
return;
|
|
50960
49868
|
}
|
|
49869
|
+
if (!attribute?.unique) {
|
|
49870
|
+
return;
|
|
49871
|
+
}
|
|
50961
49872
|
try {
|
|
50962
49873
|
setIsCheckingAvailability(true);
|
|
50963
49874
|
const { data } = await fetchClient.post(`/website/fields/check-available`, {
|
|
@@ -50983,6 +49894,7 @@ var SlugInput = React11.forwardRef(({ hint, labelAction, label, name, required,
|
|
|
50983
49894
|
setIsCheckingAvailability(false);
|
|
50984
49895
|
}
|
|
50985
49896
|
}, [
|
|
49897
|
+
attribute?.unique,
|
|
50986
49898
|
contentType?.kind,
|
|
50987
49899
|
contentType?.uid,
|
|
50988
49900
|
documentId,
|
|
@@ -51078,58 +49990,6 @@ var SlugInput = React11.forwardRef(({ hint, labelAction, label, name, required,
|
|
|
51078
49990
|
}, undefined, false, undefined, this);
|
|
51079
49991
|
});
|
|
51080
49992
|
var registerSlugInput = (app) => {
|
|
51081
|
-
const options = [
|
|
51082
|
-
{
|
|
51083
|
-
name: "options.target",
|
|
51084
|
-
type: "text",
|
|
51085
|
-
intlLabel: {
|
|
51086
|
-
id: `${pluginId}.fields.slugInput.options.targetField.label`,
|
|
51087
|
-
defaultMessage: "Target field"
|
|
51088
|
-
},
|
|
51089
|
-
description: {
|
|
51090
|
-
id: `${pluginId}.fields.slugInput.options.targetField.description`,
|
|
51091
|
-
defaultMessage: "After filling in the information, a slug will be automatically generated following the target field."
|
|
51092
|
-
}
|
|
51093
|
-
},
|
|
51094
|
-
{
|
|
51095
|
-
name: "options.unique",
|
|
51096
|
-
type: "boolean-radio-group",
|
|
51097
|
-
size: 12,
|
|
51098
|
-
defaultValue: true,
|
|
51099
|
-
intlLabel: {
|
|
51100
|
-
id: `${pluginId}.fields.slugInput.options.unique.label`,
|
|
51101
|
-
defaultMessage: "Unique check"
|
|
51102
|
-
},
|
|
51103
|
-
description: {
|
|
51104
|
-
id: `${pluginId}.fields.slugInput.options.unique.description`,
|
|
51105
|
-
defaultMessage: "Enable unique value checking?"
|
|
51106
|
-
},
|
|
51107
|
-
radios: [
|
|
51108
|
-
{
|
|
51109
|
-
title: {
|
|
51110
|
-
id: `${pluginId}.fields.slugInput.options.unique.true.label`,
|
|
51111
|
-
defaultMessage: "Enable"
|
|
51112
|
-
},
|
|
51113
|
-
description: {
|
|
51114
|
-
id: `${pluginId}.fields.slugInput.options.unique.true.description`,
|
|
51115
|
-
defaultMessage: "When enabled, it will perform a uniqueness check on the value."
|
|
51116
|
-
},
|
|
51117
|
-
value: true
|
|
51118
|
-
},
|
|
51119
|
-
{
|
|
51120
|
-
title: {
|
|
51121
|
-
id: `${pluginId}.fields.slugInput.options.unique.false.label`,
|
|
51122
|
-
defaultMessage: "Disable"
|
|
51123
|
-
},
|
|
51124
|
-
description: {
|
|
51125
|
-
id: `${pluginId}.fields.slugInput.options.unique.false.description`,
|
|
51126
|
-
defaultMessage: "Disabling unique value checks will prevent the use of unique values."
|
|
51127
|
-
},
|
|
51128
|
-
value: false
|
|
51129
|
-
}
|
|
51130
|
-
]
|
|
51131
|
-
}
|
|
51132
|
-
];
|
|
51133
49993
|
app.customFields.register({
|
|
51134
49994
|
name: "slugInput",
|
|
51135
49995
|
pluginId,
|
|
@@ -51147,7 +50007,70 @@ var registerSlugInput = (app) => {
|
|
|
51147
50007
|
Input: () => Promise.resolve({ default: SlugInput })
|
|
51148
50008
|
},
|
|
51149
50009
|
options: {
|
|
51150
|
-
base:
|
|
50010
|
+
base: [
|
|
50011
|
+
{
|
|
50012
|
+
name: "options.target",
|
|
50013
|
+
type: "text",
|
|
50014
|
+
intlLabel: {
|
|
50015
|
+
id: `${pluginId}.fields.slugInput.options.targetField.label`,
|
|
50016
|
+
defaultMessage: "Target field"
|
|
50017
|
+
},
|
|
50018
|
+
description: {
|
|
50019
|
+
id: `${pluginId}.fields.slugInput.options.targetField.description`,
|
|
50020
|
+
defaultMessage: "Auto-generate slug from a text field. Leave empty to disable."
|
|
50021
|
+
}
|
|
50022
|
+
}
|
|
50023
|
+
],
|
|
50024
|
+
advanced: [
|
|
50025
|
+
{
|
|
50026
|
+
name: "required",
|
|
50027
|
+
type: "checkbox",
|
|
50028
|
+
intlLabel: {
|
|
50029
|
+
id: "form.attribute.item.requiredField",
|
|
50030
|
+
defaultMessage: "Required field"
|
|
50031
|
+
},
|
|
50032
|
+
description: {
|
|
50033
|
+
id: "form.attribute.item.requiredField.description",
|
|
50034
|
+
defaultMessage: "Cannot create entry if empty"
|
|
50035
|
+
}
|
|
50036
|
+
},
|
|
50037
|
+
{
|
|
50038
|
+
name: "unique",
|
|
50039
|
+
type: "checkbox",
|
|
50040
|
+
intlLabel: {
|
|
50041
|
+
id: "form.attribute.item.uniqueField",
|
|
50042
|
+
defaultMessage: "Unique field"
|
|
50043
|
+
},
|
|
50044
|
+
description: {
|
|
50045
|
+
id: "form.attribute.item.uniqueField.description",
|
|
50046
|
+
defaultMessage: "Cannot create entry with duplicate value"
|
|
50047
|
+
}
|
|
50048
|
+
},
|
|
50049
|
+
{
|
|
50050
|
+
name: "minLength",
|
|
50051
|
+
type: "number",
|
|
50052
|
+
intlLabel: {
|
|
50053
|
+
id: "form.attribute.item.minimum",
|
|
50054
|
+
defaultMessage: "Minimum length"
|
|
50055
|
+
},
|
|
50056
|
+
description: {
|
|
50057
|
+
id: "form.attribute.item.minimum.description",
|
|
50058
|
+
defaultMessage: "Minimum character count"
|
|
50059
|
+
}
|
|
50060
|
+
},
|
|
50061
|
+
{
|
|
50062
|
+
name: "maxLength",
|
|
50063
|
+
type: "number",
|
|
50064
|
+
intlLabel: {
|
|
50065
|
+
id: "form.attribute.item.maximum",
|
|
50066
|
+
defaultMessage: "Maximum length"
|
|
50067
|
+
},
|
|
50068
|
+
description: {
|
|
50069
|
+
id: "form.attribute.item.maximum.description",
|
|
50070
|
+
defaultMessage: "Maximum character count"
|
|
50071
|
+
}
|
|
50072
|
+
}
|
|
50073
|
+
]
|
|
51151
50074
|
}
|
|
51152
50075
|
});
|
|
51153
50076
|
};
|
|
@@ -51173,13 +50096,13 @@ import {
|
|
|
51173
50096
|
LinkButton,
|
|
51174
50097
|
Typography as Typography9
|
|
51175
50098
|
} from "@strapi/design-system";
|
|
51176
|
-
import { useFetchClient as useFetchClient4, useNotification as
|
|
50099
|
+
import { useFetchClient as useFetchClient4, useNotification as useNotification4 } from "@strapi/strapi/admin";
|
|
51177
50100
|
import React12 from "react";
|
|
51178
50101
|
import { jsxDEV as jsxDEV29 } from "react/jsx-dev-runtime";
|
|
51179
50102
|
var WelcomeWidget = () => {
|
|
51180
50103
|
const [refresh, setRefresh] = React12.useState(false);
|
|
51181
50104
|
const fetchClient = useFetchClient4();
|
|
51182
|
-
const { toggleNotification } =
|
|
50105
|
+
const { toggleNotification } = useNotification4();
|
|
51183
50106
|
const handleRefresh = async () => {
|
|
51184
50107
|
setRefresh(true);
|
|
51185
50108
|
try {
|