Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: block-directory.js
* @param {Object} block The block item returned by search.
[500] Fix | Delete
*
[501] Fix | Delete
* @return {boolean} Whether the block was successfully installed & loaded.
[502] Fix | Delete
*/
[503] Fix | Delete
const installBlockType = block => async ({
[504] Fix | Delete
registry,
[505] Fix | Delete
dispatch
[506] Fix | Delete
}) => {
[507] Fix | Delete
const {
[508] Fix | Delete
id,
[509] Fix | Delete
name
[510] Fix | Delete
} = block;
[511] Fix | Delete
let success = false;
[512] Fix | Delete
dispatch.clearErrorNotice(id);
[513] Fix | Delete
try {
[514] Fix | Delete
dispatch.setIsInstalling(id, true);
[515] Fix | Delete
[516] Fix | Delete
// If we have a wp:plugin link, the plugin is installed but inactive.
[517] Fix | Delete
const url = getPluginUrl(block);
[518] Fix | Delete
let links = {};
[519] Fix | Delete
if (url) {
[520] Fix | Delete
await external_wp_apiFetch_default()({
[521] Fix | Delete
method: 'PUT',
[522] Fix | Delete
url,
[523] Fix | Delete
data: {
[524] Fix | Delete
status: 'active'
[525] Fix | Delete
}
[526] Fix | Delete
});
[527] Fix | Delete
} else {
[528] Fix | Delete
const response = await external_wp_apiFetch_default()({
[529] Fix | Delete
method: 'POST',
[530] Fix | Delete
path: 'wp/v2/plugins',
[531] Fix | Delete
data: {
[532] Fix | Delete
slug: id,
[533] Fix | Delete
status: 'active'
[534] Fix | Delete
}
[535] Fix | Delete
});
[536] Fix | Delete
// Add the `self` link for newly-installed blocks.
[537] Fix | Delete
links = response._links;
[538] Fix | Delete
}
[539] Fix | Delete
dispatch.addInstalledBlockType({
[540] Fix | Delete
...block,
[541] Fix | Delete
links: {
[542] Fix | Delete
...block.links,
[543] Fix | Delete
...links
[544] Fix | Delete
}
[545] Fix | Delete
});
[546] Fix | Delete
[547] Fix | Delete
// Ensures that the block metadata is propagated to the editor when registered on the server.
[548] Fix | Delete
const metadataFields = ['api_version', 'title', 'category', 'parent', 'icon', 'description', 'keywords', 'attributes', 'provides_context', 'uses_context', 'supports', 'styles', 'example', 'variations'];
[549] Fix | Delete
await external_wp_apiFetch_default()({
[550] Fix | Delete
path: (0,external_wp_url_namespaceObject.addQueryArgs)(`/wp/v2/block-types/${name}`, {
[551] Fix | Delete
_fields: metadataFields
[552] Fix | Delete
})
[553] Fix | Delete
})
[554] Fix | Delete
// Ignore when the block is not registered on the server.
[555] Fix | Delete
.catch(() => {}).then(response => {
[556] Fix | Delete
if (!response) {
[557] Fix | Delete
return;
[558] Fix | Delete
}
[559] Fix | Delete
(0,external_wp_blocks_namespaceObject.unstable__bootstrapServerSideBlockDefinitions)({
[560] Fix | Delete
[name]: Object.fromEntries(Object.entries(response).filter(([key]) => metadataFields.includes(key)))
[561] Fix | Delete
});
[562] Fix | Delete
});
[563] Fix | Delete
await loadAssets();
[564] Fix | Delete
const registeredBlocks = registry.select(external_wp_blocks_namespaceObject.store).getBlockTypes();
[565] Fix | Delete
if (!registeredBlocks.some(i => i.name === name)) {
[566] Fix | Delete
throw new Error((0,external_wp_i18n_namespaceObject.__)('Error registering block. Try reloading the page.'));
[567] Fix | Delete
}
[568] Fix | Delete
registry.dispatch(external_wp_notices_namespaceObject.store).createInfoNotice((0,external_wp_i18n_namespaceObject.sprintf)(
[569] Fix | Delete
// translators: %s is the block title.
[570] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Block %s installed and added.'), block.title), {
[571] Fix | Delete
speak: true,
[572] Fix | Delete
type: 'snackbar'
[573] Fix | Delete
});
[574] Fix | Delete
success = true;
[575] Fix | Delete
} catch (error) {
[576] Fix | Delete
let message = error.message || (0,external_wp_i18n_namespaceObject.__)('An error occurred.');
[577] Fix | Delete
[578] Fix | Delete
// Errors we throw are fatal.
[579] Fix | Delete
let isFatal = error instanceof Error;
[580] Fix | Delete
[581] Fix | Delete
// Specific API errors that are fatal.
[582] Fix | Delete
const fatalAPIErrors = {
[583] Fix | Delete
folder_exists: (0,external_wp_i18n_namespaceObject.__)('This block is already installed. Try reloading the page.'),
[584] Fix | Delete
unable_to_connect_to_filesystem: (0,external_wp_i18n_namespaceObject.__)('Error installing block. You can reload the page and try again.')
[585] Fix | Delete
};
[586] Fix | Delete
if (fatalAPIErrors[error.code]) {
[587] Fix | Delete
isFatal = true;
[588] Fix | Delete
message = fatalAPIErrors[error.code];
[589] Fix | Delete
}
[590] Fix | Delete
dispatch.setErrorNotice(id, message, isFatal);
[591] Fix | Delete
registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(message, {
[592] Fix | Delete
speak: true,
[593] Fix | Delete
isDismissible: true
[594] Fix | Delete
});
[595] Fix | Delete
}
[596] Fix | Delete
dispatch.setIsInstalling(id, false);
[597] Fix | Delete
return success;
[598] Fix | Delete
};
[599] Fix | Delete
[600] Fix | Delete
/**
[601] Fix | Delete
* Action triggered to uninstall a block plugin.
[602] Fix | Delete
*
[603] Fix | Delete
* @param {Object} block The blockType object.
[604] Fix | Delete
*/
[605] Fix | Delete
const uninstallBlockType = block => async ({
[606] Fix | Delete
registry,
[607] Fix | Delete
dispatch
[608] Fix | Delete
}) => {
[609] Fix | Delete
try {
[610] Fix | Delete
const url = getPluginUrl(block);
[611] Fix | Delete
await external_wp_apiFetch_default()({
[612] Fix | Delete
method: 'PUT',
[613] Fix | Delete
url,
[614] Fix | Delete
data: {
[615] Fix | Delete
status: 'inactive'
[616] Fix | Delete
}
[617] Fix | Delete
});
[618] Fix | Delete
await external_wp_apiFetch_default()({
[619] Fix | Delete
method: 'DELETE',
[620] Fix | Delete
url
[621] Fix | Delete
});
[622] Fix | Delete
dispatch.removeInstalledBlockType(block);
[623] Fix | Delete
} catch (error) {
[624] Fix | Delete
registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(error.message || (0,external_wp_i18n_namespaceObject.__)('An error occurred.'));
[625] Fix | Delete
}
[626] Fix | Delete
};
[627] Fix | Delete
[628] Fix | Delete
/**
[629] Fix | Delete
* Returns an action object used to add a block type to the "newly installed"
[630] Fix | Delete
* tracking list.
[631] Fix | Delete
*
[632] Fix | Delete
* @param {Object} item The block item with the block id and name.
[633] Fix | Delete
*
[634] Fix | Delete
* @return {Object} Action object.
[635] Fix | Delete
*/
[636] Fix | Delete
function addInstalledBlockType(item) {
[637] Fix | Delete
return {
[638] Fix | Delete
type: 'ADD_INSTALLED_BLOCK_TYPE',
[639] Fix | Delete
item
[640] Fix | Delete
};
[641] Fix | Delete
}
[642] Fix | Delete
[643] Fix | Delete
/**
[644] Fix | Delete
* Returns an action object used to remove a block type from the "newly installed"
[645] Fix | Delete
* tracking list.
[646] Fix | Delete
*
[647] Fix | Delete
* @param {string} item The block item with the block id and name.
[648] Fix | Delete
*
[649] Fix | Delete
* @return {Object} Action object.
[650] Fix | Delete
*/
[651] Fix | Delete
function removeInstalledBlockType(item) {
[652] Fix | Delete
return {
[653] Fix | Delete
type: 'REMOVE_INSTALLED_BLOCK_TYPE',
[654] Fix | Delete
item
[655] Fix | Delete
};
[656] Fix | Delete
}
[657] Fix | Delete
[658] Fix | Delete
/**
[659] Fix | Delete
* Returns an action object used to indicate install in progress.
[660] Fix | Delete
*
[661] Fix | Delete
* @param {string} blockId
[662] Fix | Delete
* @param {boolean} isInstalling
[663] Fix | Delete
*
[664] Fix | Delete
* @return {Object} Action object.
[665] Fix | Delete
*/
[666] Fix | Delete
function setIsInstalling(blockId, isInstalling) {
[667] Fix | Delete
return {
[668] Fix | Delete
type: 'SET_INSTALLING_BLOCK',
[669] Fix | Delete
blockId,
[670] Fix | Delete
isInstalling
[671] Fix | Delete
};
[672] Fix | Delete
}
[673] Fix | Delete
[674] Fix | Delete
/**
[675] Fix | Delete
* Sets an error notice to be displayed to the user for a given block.
[676] Fix | Delete
*
[677] Fix | Delete
* @param {string} blockId The ID of the block plugin. eg: my-block
[678] Fix | Delete
* @param {string} message The message shown in the notice.
[679] Fix | Delete
* @param {boolean} isFatal Whether the user can recover from the error.
[680] Fix | Delete
*
[681] Fix | Delete
* @return {Object} Action object.
[682] Fix | Delete
*/
[683] Fix | Delete
function setErrorNotice(blockId, message, isFatal = false) {
[684] Fix | Delete
return {
[685] Fix | Delete
type: 'SET_ERROR_NOTICE',
[686] Fix | Delete
blockId,
[687] Fix | Delete
message,
[688] Fix | Delete
isFatal
[689] Fix | Delete
};
[690] Fix | Delete
}
[691] Fix | Delete
[692] Fix | Delete
/**
[693] Fix | Delete
* Sets the error notice to empty for specific block.
[694] Fix | Delete
*
[695] Fix | Delete
* @param {string} blockId The ID of the block plugin. eg: my-block
[696] Fix | Delete
*
[697] Fix | Delete
* @return {Object} Action object.
[698] Fix | Delete
*/
[699] Fix | Delete
function clearErrorNotice(blockId) {
[700] Fix | Delete
return {
[701] Fix | Delete
type: 'CLEAR_ERROR_NOTICE',
[702] Fix | Delete
blockId
[703] Fix | Delete
};
[704] Fix | Delete
}
[705] Fix | Delete
[706] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
[707] Fix | Delete
/******************************************************************************
[708] Fix | Delete
Copyright (c) Microsoft Corporation.
[709] Fix | Delete
[710] Fix | Delete
Permission to use, copy, modify, and/or distribute this software for any
[711] Fix | Delete
purpose with or without fee is hereby granted.
[712] Fix | Delete
[713] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
[714] Fix | Delete
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
[715] Fix | Delete
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
[716] Fix | Delete
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
[717] Fix | Delete
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
[718] Fix | Delete
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
[719] Fix | Delete
PERFORMANCE OF THIS SOFTWARE.
[720] Fix | Delete
***************************************************************************** */
[721] Fix | Delete
/* global Reflect, Promise, SuppressedError, Symbol */
[722] Fix | Delete
[723] Fix | Delete
var extendStatics = function(d, b) {
[724] Fix | Delete
extendStatics = Object.setPrototypeOf ||
[725] Fix | Delete
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
[726] Fix | Delete
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
[727] Fix | Delete
return extendStatics(d, b);
[728] Fix | Delete
};
[729] Fix | Delete
[730] Fix | Delete
function __extends(d, b) {
[731] Fix | Delete
if (typeof b !== "function" && b !== null)
[732] Fix | Delete
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
[733] Fix | Delete
extendStatics(d, b);
[734] Fix | Delete
function __() { this.constructor = d; }
[735] Fix | Delete
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
[736] Fix | Delete
}
[737] Fix | Delete
[738] Fix | Delete
var __assign = function() {
[739] Fix | Delete
__assign = Object.assign || function __assign(t) {
[740] Fix | Delete
for (var s, i = 1, n = arguments.length; i < n; i++) {
[741] Fix | Delete
s = arguments[i];
[742] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
[743] Fix | Delete
}
[744] Fix | Delete
return t;
[745] Fix | Delete
}
[746] Fix | Delete
return __assign.apply(this, arguments);
[747] Fix | Delete
}
[748] Fix | Delete
[749] Fix | Delete
function __rest(s, e) {
[750] Fix | Delete
var t = {};
[751] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
[752] Fix | Delete
t[p] = s[p];
[753] Fix | Delete
if (s != null && typeof Object.getOwnPropertySymbols === "function")
[754] Fix | Delete
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
[755] Fix | Delete
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
[756] Fix | Delete
t[p[i]] = s[p[i]];
[757] Fix | Delete
}
[758] Fix | Delete
return t;
[759] Fix | Delete
}
[760] Fix | Delete
[761] Fix | Delete
function __decorate(decorators, target, key, desc) {
[762] Fix | Delete
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
[763] Fix | Delete
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
[764] Fix | Delete
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
[765] Fix | Delete
return c > 3 && r && Object.defineProperty(target, key, r), r;
[766] Fix | Delete
}
[767] Fix | Delete
[768] Fix | Delete
function __param(paramIndex, decorator) {
[769] Fix | Delete
return function (target, key) { decorator(target, key, paramIndex); }
[770] Fix | Delete
}
[771] Fix | Delete
[772] Fix | Delete
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
[773] Fix | Delete
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
[774] Fix | Delete
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
[775] Fix | Delete
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
[776] Fix | Delete
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
[777] Fix | Delete
var _, done = false;
[778] Fix | Delete
for (var i = decorators.length - 1; i >= 0; i--) {
[779] Fix | Delete
var context = {};
[780] Fix | Delete
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
[781] Fix | Delete
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
[782] Fix | Delete
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
[783] Fix | Delete
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
[784] Fix | Delete
if (kind === "accessor") {
[785] Fix | Delete
if (result === void 0) continue;
[786] Fix | Delete
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
[787] Fix | Delete
if (_ = accept(result.get)) descriptor.get = _;
[788] Fix | Delete
if (_ = accept(result.set)) descriptor.set = _;
[789] Fix | Delete
if (_ = accept(result.init)) initializers.unshift(_);
[790] Fix | Delete
}
[791] Fix | Delete
else if (_ = accept(result)) {
[792] Fix | Delete
if (kind === "field") initializers.unshift(_);
[793] Fix | Delete
else descriptor[key] = _;
[794] Fix | Delete
}
[795] Fix | Delete
}
[796] Fix | Delete
if (target) Object.defineProperty(target, contextIn.name, descriptor);
[797] Fix | Delete
done = true;
[798] Fix | Delete
};
[799] Fix | Delete
[800] Fix | Delete
function __runInitializers(thisArg, initializers, value) {
[801] Fix | Delete
var useValue = arguments.length > 2;
[802] Fix | Delete
for (var i = 0; i < initializers.length; i++) {
[803] Fix | Delete
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
[804] Fix | Delete
}
[805] Fix | Delete
return useValue ? value : void 0;
[806] Fix | Delete
};
[807] Fix | Delete
[808] Fix | Delete
function __propKey(x) {
[809] Fix | Delete
return typeof x === "symbol" ? x : "".concat(x);
[810] Fix | Delete
};
[811] Fix | Delete
[812] Fix | Delete
function __setFunctionName(f, name, prefix) {
[813] Fix | Delete
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
[814] Fix | Delete
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
[815] Fix | Delete
};
[816] Fix | Delete
[817] Fix | Delete
function __metadata(metadataKey, metadataValue) {
[818] Fix | Delete
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
[819] Fix | Delete
}
[820] Fix | Delete
[821] Fix | Delete
function __awaiter(thisArg, _arguments, P, generator) {
[822] Fix | Delete
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
[823] Fix | Delete
return new (P || (P = Promise))(function (resolve, reject) {
[824] Fix | Delete
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
[825] Fix | Delete
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
[826] Fix | Delete
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
[827] Fix | Delete
step((generator = generator.apply(thisArg, _arguments || [])).next());
[828] Fix | Delete
});
[829] Fix | Delete
}
[830] Fix | Delete
[831] Fix | Delete
function __generator(thisArg, body) {
[832] Fix | Delete
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
[833] Fix | Delete
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
[834] Fix | Delete
function verb(n) { return function (v) { return step([n, v]); }; }
[835] Fix | Delete
function step(op) {
[836] Fix | Delete
if (f) throw new TypeError("Generator is already executing.");
[837] Fix | Delete
while (g && (g = 0, op[0] && (_ = 0)), _) try {
[838] Fix | Delete
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
[839] Fix | Delete
if (y = 0, t) op = [op[0] & 2, t.value];
[840] Fix | Delete
switch (op[0]) {
[841] Fix | Delete
case 0: case 1: t = op; break;
[842] Fix | Delete
case 4: _.label++; return { value: op[1], done: false };
[843] Fix | Delete
case 5: _.label++; y = op[1]; op = [0]; continue;
[844] Fix | Delete
case 7: op = _.ops.pop(); _.trys.pop(); continue;
[845] Fix | Delete
default:
[846] Fix | Delete
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
[847] Fix | Delete
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
[848] Fix | Delete
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
[849] Fix | Delete
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
[850] Fix | Delete
if (t[2]) _.ops.pop();
[851] Fix | Delete
_.trys.pop(); continue;
[852] Fix | Delete
}
[853] Fix | Delete
op = body.call(thisArg, _);
[854] Fix | Delete
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
[855] Fix | Delete
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
[856] Fix | Delete
}
[857] Fix | Delete
}
[858] Fix | Delete
[859] Fix | Delete
var __createBinding = Object.create ? (function(o, m, k, k2) {
[860] Fix | Delete
if (k2 === undefined) k2 = k;
[861] Fix | Delete
var desc = Object.getOwnPropertyDescriptor(m, k);
[862] Fix | Delete
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
[863] Fix | Delete
desc = { enumerable: true, get: function() { return m[k]; } };
[864] Fix | Delete
}
[865] Fix | Delete
Object.defineProperty(o, k2, desc);
[866] Fix | Delete
}) : (function(o, m, k, k2) {
[867] Fix | Delete
if (k2 === undefined) k2 = k;
[868] Fix | Delete
o[k2] = m[k];
[869] Fix | Delete
});
[870] Fix | Delete
[871] Fix | Delete
function __exportStar(m, o) {
[872] Fix | Delete
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
[873] Fix | Delete
}
[874] Fix | Delete
[875] Fix | Delete
function __values(o) {
[876] Fix | Delete
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
[877] Fix | Delete
if (m) return m.call(o);
[878] Fix | Delete
if (o && typeof o.length === "number") return {
[879] Fix | Delete
next: function () {
[880] Fix | Delete
if (o && i >= o.length) o = void 0;
[881] Fix | Delete
return { value: o && o[i++], done: !o };
[882] Fix | Delete
}
[883] Fix | Delete
};
[884] Fix | Delete
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
[885] Fix | Delete
}
[886] Fix | Delete
[887] Fix | Delete
function __read(o, n) {
[888] Fix | Delete
var m = typeof Symbol === "function" && o[Symbol.iterator];
[889] Fix | Delete
if (!m) return o;
[890] Fix | Delete
var i = m.call(o), r, ar = [], e;
[891] Fix | Delete
try {
[892] Fix | Delete
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
[893] Fix | Delete
}
[894] Fix | Delete
catch (error) { e = { error: error }; }
[895] Fix | Delete
finally {
[896] Fix | Delete
try {
[897] Fix | Delete
if (r && !r.done && (m = i["return"])) m.call(i);
[898] Fix | Delete
}
[899] Fix | Delete
finally { if (e) throw e.error; }
[900] Fix | Delete
}
[901] Fix | Delete
return ar;
[902] Fix | Delete
}
[903] Fix | Delete
[904] Fix | Delete
/** @deprecated */
[905] Fix | Delete
function __spread() {
[906] Fix | Delete
for (var ar = [], i = 0; i < arguments.length; i++)
[907] Fix | Delete
ar = ar.concat(__read(arguments[i]));
[908] Fix | Delete
return ar;
[909] Fix | Delete
}
[910] Fix | Delete
[911] Fix | Delete
/** @deprecated */
[912] Fix | Delete
function __spreadArrays() {
[913] Fix | Delete
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
[914] Fix | Delete
for (var r = Array(s), k = 0, i = 0; i < il; i++)
[915] Fix | Delete
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
[916] Fix | Delete
r[k] = a[j];
[917] Fix | Delete
return r;
[918] Fix | Delete
}
[919] Fix | Delete
[920] Fix | Delete
function __spreadArray(to, from, pack) {
[921] Fix | Delete
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
[922] Fix | Delete
if (ar || !(i in from)) {
[923] Fix | Delete
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
[924] Fix | Delete
ar[i] = from[i];
[925] Fix | Delete
}
[926] Fix | Delete
}
[927] Fix | Delete
return to.concat(ar || Array.prototype.slice.call(from));
[928] Fix | Delete
}
[929] Fix | Delete
[930] Fix | Delete
function __await(v) {
[931] Fix | Delete
return this instanceof __await ? (this.v = v, this) : new __await(v);
[932] Fix | Delete
}
[933] Fix | Delete
[934] Fix | Delete
function __asyncGenerator(thisArg, _arguments, generator) {
[935] Fix | Delete
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
[936] Fix | Delete
var g = generator.apply(thisArg, _arguments || []), i, q = [];
[937] Fix | Delete
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
[938] Fix | Delete
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
[939] Fix | Delete
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
[940] Fix | Delete
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
[941] Fix | Delete
function fulfill(value) { resume("next", value); }
[942] Fix | Delete
function reject(value) { resume("throw", value); }
[943] Fix | Delete
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
[944] Fix | Delete
}
[945] Fix | Delete
[946] Fix | Delete
function __asyncDelegator(o) {
[947] Fix | Delete
var i, p;
[948] Fix | Delete
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
[949] Fix | Delete
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
[950] Fix | Delete
}
[951] Fix | Delete
[952] Fix | Delete
function __asyncValues(o) {
[953] Fix | Delete
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
[954] Fix | Delete
var m = o[Symbol.asyncIterator], i;
[955] Fix | Delete
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
[956] Fix | Delete
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
[957] Fix | Delete
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
[958] Fix | Delete
}
[959] Fix | Delete
[960] Fix | Delete
function __makeTemplateObject(cooked, raw) {
[961] Fix | Delete
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
[962] Fix | Delete
return cooked;
[963] Fix | Delete
};
[964] Fix | Delete
[965] Fix | Delete
var __setModuleDefault = Object.create ? (function(o, v) {
[966] Fix | Delete
Object.defineProperty(o, "default", { enumerable: true, value: v });
[967] Fix | Delete
}) : function(o, v) {
[968] Fix | Delete
o["default"] = v;
[969] Fix | Delete
};
[970] Fix | Delete
[971] Fix | Delete
function __importStar(mod) {
[972] Fix | Delete
if (mod && mod.__esModule) return mod;
[973] Fix | Delete
var result = {};
[974] Fix | Delete
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
[975] Fix | Delete
__setModuleDefault(result, mod);
[976] Fix | Delete
return result;
[977] Fix | Delete
}
[978] Fix | Delete
[979] Fix | Delete
function __importDefault(mod) {
[980] Fix | Delete
return (mod && mod.__esModule) ? mod : { default: mod };
[981] Fix | Delete
}
[982] Fix | Delete
[983] Fix | Delete
function __classPrivateFieldGet(receiver, state, kind, f) {
[984] Fix | Delete
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
[985] Fix | Delete
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
[986] Fix | Delete
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
[987] Fix | Delete
}
[988] Fix | Delete
[989] Fix | Delete
function __classPrivateFieldSet(receiver, state, value, kind, f) {
[990] Fix | Delete
if (kind === "m") throw new TypeError("Private method is not writable");
[991] Fix | Delete
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
[992] Fix | Delete
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
[993] Fix | Delete
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
[994] Fix | Delete
}
[995] Fix | Delete
[996] Fix | Delete
function __classPrivateFieldIn(state, receiver) {
[997] Fix | Delete
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
[998] Fix | Delete
return typeof state === "function" ? receiver === state : state.has(receiver);
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function