Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/dist
File: i18n.js
this["wp"] = this["wp"] || {}; this["wp"]["i18n"] =
[0] Fix | Delete
/******/ (function(modules) { // webpackBootstrap
[1] Fix | Delete
/******/ // The module cache
[2] Fix | Delete
/******/ var installedModules = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/******/ // The require function
[5] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[6] Fix | Delete
/******/
[7] Fix | Delete
/******/ // Check if module is in cache
[8] Fix | Delete
/******/ if(installedModules[moduleId]) {
[9] Fix | Delete
/******/ return installedModules[moduleId].exports;
[10] Fix | Delete
/******/ }
[11] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[12] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[13] Fix | Delete
/******/ i: moduleId,
[14] Fix | Delete
/******/ l: false,
[15] Fix | Delete
/******/ exports: {}
[16] Fix | Delete
/******/ };
[17] Fix | Delete
/******/
[18] Fix | Delete
/******/ // Execute the module function
[19] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[20] Fix | Delete
/******/
[21] Fix | Delete
/******/ // Flag the module as loaded
[22] Fix | Delete
/******/ module.l = true;
[23] Fix | Delete
/******/
[24] Fix | Delete
/******/ // Return the exports of the module
[25] Fix | Delete
/******/ return module.exports;
[26] Fix | Delete
/******/ }
[27] Fix | Delete
/******/
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[30] Fix | Delete
/******/ __webpack_require__.m = modules;
[31] Fix | Delete
/******/
[32] Fix | Delete
/******/ // expose the module cache
[33] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[34] Fix | Delete
/******/
[35] Fix | Delete
/******/ // define getter function for harmony exports
[36] Fix | Delete
/******/ __webpack_require__.d = function(exports, name, getter) {
[37] Fix | Delete
/******/ if(!__webpack_require__.o(exports, name)) {
[38] Fix | Delete
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
[39] Fix | Delete
/******/ }
[40] Fix | Delete
/******/ };
[41] Fix | Delete
/******/
[42] Fix | Delete
/******/ // define __esModule on exports
[43] Fix | Delete
/******/ __webpack_require__.r = function(exports) {
[44] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[45] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[46] Fix | Delete
/******/ }
[47] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[48] Fix | Delete
/******/ };
[49] Fix | Delete
/******/
[50] Fix | Delete
/******/ // create a fake namespace object
[51] Fix | Delete
/******/ // mode & 1: value is a module id, require it
[52] Fix | Delete
/******/ // mode & 2: merge all properties of value into the ns
[53] Fix | Delete
/******/ // mode & 4: return value when already ns object
[54] Fix | Delete
/******/ // mode & 8|1: behave like require
[55] Fix | Delete
/******/ __webpack_require__.t = function(value, mode) {
[56] Fix | Delete
/******/ if(mode & 1) value = __webpack_require__(value);
[57] Fix | Delete
/******/ if(mode & 8) return value;
[58] Fix | Delete
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
[59] Fix | Delete
/******/ var ns = Object.create(null);
[60] Fix | Delete
/******/ __webpack_require__.r(ns);
[61] Fix | Delete
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
[62] Fix | Delete
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
[63] Fix | Delete
/******/ return ns;
[64] Fix | Delete
/******/ };
[65] Fix | Delete
/******/
[66] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[67] Fix | Delete
/******/ __webpack_require__.n = function(module) {
[68] Fix | Delete
/******/ var getter = module && module.__esModule ?
[69] Fix | Delete
/******/ function getDefault() { return module['default']; } :
[70] Fix | Delete
/******/ function getModuleExports() { return module; };
[71] Fix | Delete
/******/ __webpack_require__.d(getter, 'a', getter);
[72] Fix | Delete
/******/ return getter;
[73] Fix | Delete
/******/ };
[74] Fix | Delete
/******/
[75] Fix | Delete
/******/ // Object.prototype.hasOwnProperty.call
[76] Fix | Delete
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
[77] Fix | Delete
/******/
[78] Fix | Delete
/******/ // __webpack_public_path__
[79] Fix | Delete
/******/ __webpack_require__.p = "";
[80] Fix | Delete
/******/
[81] Fix | Delete
/******/
[82] Fix | Delete
/******/ // Load entry module and return exports
[83] Fix | Delete
/******/ return __webpack_require__(__webpack_require__.s = "Vhyj");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "4Z/T":
[89] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[90] Fix | Delete
[91] Fix | Delete
var __WEBPACK_AMD_DEFINE_RESULT__;/* global window, exports, define */
[92] Fix | Delete
[93] Fix | Delete
!function() {
[94] Fix | Delete
'use strict'
[95] Fix | Delete
[96] Fix | Delete
var re = {
[97] Fix | Delete
not_string: /[^s]/,
[98] Fix | Delete
not_bool: /[^t]/,
[99] Fix | Delete
not_type: /[^T]/,
[100] Fix | Delete
not_primitive: /[^v]/,
[101] Fix | Delete
number: /[diefg]/,
[102] Fix | Delete
numeric_arg: /[bcdiefguxX]/,
[103] Fix | Delete
json: /[j]/,
[104] Fix | Delete
not_json: /[^j]/,
[105] Fix | Delete
text: /^[^\x25]+/,
[106] Fix | Delete
modulo: /^\x25{2}/,
[107] Fix | Delete
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
[108] Fix | Delete
key: /^([a-z_][a-z_\d]*)/i,
[109] Fix | Delete
key_access: /^\.([a-z_][a-z_\d]*)/i,
[110] Fix | Delete
index_access: /^\[(\d+)\]/,
[111] Fix | Delete
sign: /^[+-]/
[112] Fix | Delete
}
[113] Fix | Delete
[114] Fix | Delete
function sprintf(key) {
[115] Fix | Delete
// `arguments` is not an array, but should be fine for this call
[116] Fix | Delete
return sprintf_format(sprintf_parse(key), arguments)
[117] Fix | Delete
}
[118] Fix | Delete
[119] Fix | Delete
function vsprintf(fmt, argv) {
[120] Fix | Delete
return sprintf.apply(null, [fmt].concat(argv || []))
[121] Fix | Delete
}
[122] Fix | Delete
[123] Fix | Delete
function sprintf_format(parse_tree, argv) {
[124] Fix | Delete
var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign
[125] Fix | Delete
for (i = 0; i < tree_length; i++) {
[126] Fix | Delete
if (typeof parse_tree[i] === 'string') {
[127] Fix | Delete
output += parse_tree[i]
[128] Fix | Delete
}
[129] Fix | Delete
else if (typeof parse_tree[i] === 'object') {
[130] Fix | Delete
ph = parse_tree[i] // convenience purposes only
[131] Fix | Delete
if (ph.keys) { // keyword argument
[132] Fix | Delete
arg = argv[cursor]
[133] Fix | Delete
for (k = 0; k < ph.keys.length; k++) {
[134] Fix | Delete
if (arg == undefined) {
[135] Fix | Delete
throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k-1]))
[136] Fix | Delete
}
[137] Fix | Delete
arg = arg[ph.keys[k]]
[138] Fix | Delete
}
[139] Fix | Delete
}
[140] Fix | Delete
else if (ph.param_no) { // positional argument (explicit)
[141] Fix | Delete
arg = argv[ph.param_no]
[142] Fix | Delete
}
[143] Fix | Delete
else { // positional argument (implicit)
[144] Fix | Delete
arg = argv[cursor++]
[145] Fix | Delete
}
[146] Fix | Delete
[147] Fix | Delete
if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {
[148] Fix | Delete
arg = arg()
[149] Fix | Delete
}
[150] Fix | Delete
[151] Fix | Delete
if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {
[152] Fix | Delete
throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))
[153] Fix | Delete
}
[154] Fix | Delete
[155] Fix | Delete
if (re.number.test(ph.type)) {
[156] Fix | Delete
is_positive = arg >= 0
[157] Fix | Delete
}
[158] Fix | Delete
[159] Fix | Delete
switch (ph.type) {
[160] Fix | Delete
case 'b':
[161] Fix | Delete
arg = parseInt(arg, 10).toString(2)
[162] Fix | Delete
break
[163] Fix | Delete
case 'c':
[164] Fix | Delete
arg = String.fromCharCode(parseInt(arg, 10))
[165] Fix | Delete
break
[166] Fix | Delete
case 'd':
[167] Fix | Delete
case 'i':
[168] Fix | Delete
arg = parseInt(arg, 10)
[169] Fix | Delete
break
[170] Fix | Delete
case 'j':
[171] Fix | Delete
arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)
[172] Fix | Delete
break
[173] Fix | Delete
case 'e':
[174] Fix | Delete
arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()
[175] Fix | Delete
break
[176] Fix | Delete
case 'f':
[177] Fix | Delete
arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)
[178] Fix | Delete
break
[179] Fix | Delete
case 'g':
[180] Fix | Delete
arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)
[181] Fix | Delete
break
[182] Fix | Delete
case 'o':
[183] Fix | Delete
arg = (parseInt(arg, 10) >>> 0).toString(8)
[184] Fix | Delete
break
[185] Fix | Delete
case 's':
[186] Fix | Delete
arg = String(arg)
[187] Fix | Delete
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
[188] Fix | Delete
break
[189] Fix | Delete
case 't':
[190] Fix | Delete
arg = String(!!arg)
[191] Fix | Delete
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
[192] Fix | Delete
break
[193] Fix | Delete
case 'T':
[194] Fix | Delete
arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()
[195] Fix | Delete
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
[196] Fix | Delete
break
[197] Fix | Delete
case 'u':
[198] Fix | Delete
arg = parseInt(arg, 10) >>> 0
[199] Fix | Delete
break
[200] Fix | Delete
case 'v':
[201] Fix | Delete
arg = arg.valueOf()
[202] Fix | Delete
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
[203] Fix | Delete
break
[204] Fix | Delete
case 'x':
[205] Fix | Delete
arg = (parseInt(arg, 10) >>> 0).toString(16)
[206] Fix | Delete
break
[207] Fix | Delete
case 'X':
[208] Fix | Delete
arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()
[209] Fix | Delete
break
[210] Fix | Delete
}
[211] Fix | Delete
if (re.json.test(ph.type)) {
[212] Fix | Delete
output += arg
[213] Fix | Delete
}
[214] Fix | Delete
else {
[215] Fix | Delete
if (re.number.test(ph.type) && (!is_positive || ph.sign)) {
[216] Fix | Delete
sign = is_positive ? '+' : '-'
[217] Fix | Delete
arg = arg.toString().replace(re.sign, '')
[218] Fix | Delete
}
[219] Fix | Delete
else {
[220] Fix | Delete
sign = ''
[221] Fix | Delete
}
[222] Fix | Delete
pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '
[223] Fix | Delete
pad_length = ph.width - (sign + arg).length
[224] Fix | Delete
pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''
[225] Fix | Delete
output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)
[226] Fix | Delete
}
[227] Fix | Delete
}
[228] Fix | Delete
}
[229] Fix | Delete
return output
[230] Fix | Delete
}
[231] Fix | Delete
[232] Fix | Delete
var sprintf_cache = Object.create(null)
[233] Fix | Delete
[234] Fix | Delete
function sprintf_parse(fmt) {
[235] Fix | Delete
if (sprintf_cache[fmt]) {
[236] Fix | Delete
return sprintf_cache[fmt]
[237] Fix | Delete
}
[238] Fix | Delete
[239] Fix | Delete
var _fmt = fmt, match, parse_tree = [], arg_names = 0
[240] Fix | Delete
while (_fmt) {
[241] Fix | Delete
if ((match = re.text.exec(_fmt)) !== null) {
[242] Fix | Delete
parse_tree.push(match[0])
[243] Fix | Delete
}
[244] Fix | Delete
else if ((match = re.modulo.exec(_fmt)) !== null) {
[245] Fix | Delete
parse_tree.push('%')
[246] Fix | Delete
}
[247] Fix | Delete
else if ((match = re.placeholder.exec(_fmt)) !== null) {
[248] Fix | Delete
if (match[2]) {
[249] Fix | Delete
arg_names |= 1
[250] Fix | Delete
var field_list = [], replacement_field = match[2], field_match = []
[251] Fix | Delete
if ((field_match = re.key.exec(replacement_field)) !== null) {
[252] Fix | Delete
field_list.push(field_match[1])
[253] Fix | Delete
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
[254] Fix | Delete
if ((field_match = re.key_access.exec(replacement_field)) !== null) {
[255] Fix | Delete
field_list.push(field_match[1])
[256] Fix | Delete
}
[257] Fix | Delete
else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
[258] Fix | Delete
field_list.push(field_match[1])
[259] Fix | Delete
}
[260] Fix | Delete
else {
[261] Fix | Delete
throw new SyntaxError('[sprintf] failed to parse named argument key')
[262] Fix | Delete
}
[263] Fix | Delete
}
[264] Fix | Delete
}
[265] Fix | Delete
else {
[266] Fix | Delete
throw new SyntaxError('[sprintf] failed to parse named argument key')
[267] Fix | Delete
}
[268] Fix | Delete
match[2] = field_list
[269] Fix | Delete
}
[270] Fix | Delete
else {
[271] Fix | Delete
arg_names |= 2
[272] Fix | Delete
}
[273] Fix | Delete
if (arg_names === 3) {
[274] Fix | Delete
throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')
[275] Fix | Delete
}
[276] Fix | Delete
[277] Fix | Delete
parse_tree.push(
[278] Fix | Delete
{
[279] Fix | Delete
placeholder: match[0],
[280] Fix | Delete
param_no: match[1],
[281] Fix | Delete
keys: match[2],
[282] Fix | Delete
sign: match[3],
[283] Fix | Delete
pad_char: match[4],
[284] Fix | Delete
align: match[5],
[285] Fix | Delete
width: match[6],
[286] Fix | Delete
precision: match[7],
[287] Fix | Delete
type: match[8]
[288] Fix | Delete
}
[289] Fix | Delete
)
[290] Fix | Delete
}
[291] Fix | Delete
else {
[292] Fix | Delete
throw new SyntaxError('[sprintf] unexpected placeholder')
[293] Fix | Delete
}
[294] Fix | Delete
_fmt = _fmt.substring(match[0].length)
[295] Fix | Delete
}
[296] Fix | Delete
return sprintf_cache[fmt] = parse_tree
[297] Fix | Delete
}
[298] Fix | Delete
[299] Fix | Delete
/**
[300] Fix | Delete
* export to either browser or node.js
[301] Fix | Delete
*/
[302] Fix | Delete
/* eslint-disable quote-props */
[303] Fix | Delete
if (true) {
[304] Fix | Delete
exports['sprintf'] = sprintf
[305] Fix | Delete
exports['vsprintf'] = vsprintf
[306] Fix | Delete
}
[307] Fix | Delete
if (typeof window !== 'undefined') {
[308] Fix | Delete
window['sprintf'] = sprintf
[309] Fix | Delete
window['vsprintf'] = vsprintf
[310] Fix | Delete
[311] Fix | Delete
if (true) {
[312] Fix | Delete
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
[313] Fix | Delete
return {
[314] Fix | Delete
'sprintf': sprintf,
[315] Fix | Delete
'vsprintf': vsprintf
[316] Fix | Delete
}
[317] Fix | Delete
}).call(exports, __webpack_require__, exports, module),
[318] Fix | Delete
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))
[319] Fix | Delete
}
[320] Fix | Delete
}
[321] Fix | Delete
/* eslint-enable quote-props */
[322] Fix | Delete
}(); // eslint-disable-line
[323] Fix | Delete
[324] Fix | Delete
[325] Fix | Delete
/***/ }),
[326] Fix | Delete
[327] Fix | Delete
/***/ "4eJC":
[328] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[329] Fix | Delete
[330] Fix | Delete
/**
[331] Fix | Delete
* Memize options object.
[332] Fix | Delete
*
[333] Fix | Delete
* @typedef MemizeOptions
[334] Fix | Delete
*
[335] Fix | Delete
* @property {number} [maxSize] Maximum size of the cache.
[336] Fix | Delete
*/
[337] Fix | Delete
[338] Fix | Delete
/**
[339] Fix | Delete
* Internal cache entry.
[340] Fix | Delete
*
[341] Fix | Delete
* @typedef MemizeCacheNode
[342] Fix | Delete
*
[343] Fix | Delete
* @property {?MemizeCacheNode|undefined} [prev] Previous node.
[344] Fix | Delete
* @property {?MemizeCacheNode|undefined} [next] Next node.
[345] Fix | Delete
* @property {Array<*>} args Function arguments for cache
[346] Fix | Delete
* entry.
[347] Fix | Delete
* @property {*} val Function result.
[348] Fix | Delete
*/
[349] Fix | Delete
[350] Fix | Delete
/**
[351] Fix | Delete
* Properties of the enhanced function for controlling cache.
[352] Fix | Delete
*
[353] Fix | Delete
* @typedef MemizeMemoizedFunction
[354] Fix | Delete
*
[355] Fix | Delete
* @property {()=>void} clear Clear the cache.
[356] Fix | Delete
*/
[357] Fix | Delete
[358] Fix | Delete
/**
[359] Fix | Delete
* Accepts a function to be memoized, and returns a new memoized function, with
[360] Fix | Delete
* optional options.
[361] Fix | Delete
*
[362] Fix | Delete
* @template {Function} F
[363] Fix | Delete
*
[364] Fix | Delete
* @param {F} fn Function to memoize.
[365] Fix | Delete
* @param {MemizeOptions} [options] Options object.
[366] Fix | Delete
*
[367] Fix | Delete
* @return {F & MemizeMemoizedFunction} Memoized function.
[368] Fix | Delete
*/
[369] Fix | Delete
function memize( fn, options ) {
[370] Fix | Delete
var size = 0;
[371] Fix | Delete
[372] Fix | Delete
/** @type {?MemizeCacheNode|undefined} */
[373] Fix | Delete
var head;
[374] Fix | Delete
[375] Fix | Delete
/** @type {?MemizeCacheNode|undefined} */
[376] Fix | Delete
var tail;
[377] Fix | Delete
[378] Fix | Delete
options = options || {};
[379] Fix | Delete
[380] Fix | Delete
function memoized( /* ...args */ ) {
[381] Fix | Delete
var node = head,
[382] Fix | Delete
len = arguments.length,
[383] Fix | Delete
args, i;
[384] Fix | Delete
[385] Fix | Delete
searchCache: while ( node ) {
[386] Fix | Delete
// Perform a shallow equality test to confirm that whether the node
[387] Fix | Delete
// under test is a candidate for the arguments passed. Two arrays
[388] Fix | Delete
// are shallowly equal if their length matches and each entry is
[389] Fix | Delete
// strictly equal between the two sets. Avoid abstracting to a
[390] Fix | Delete
// function which could incur an arguments leaking deoptimization.
[391] Fix | Delete
[392] Fix | Delete
// Check whether node arguments match arguments length
[393] Fix | Delete
if ( node.args.length !== arguments.length ) {
[394] Fix | Delete
node = node.next;
[395] Fix | Delete
continue;
[396] Fix | Delete
}
[397] Fix | Delete
[398] Fix | Delete
// Check whether node arguments match arguments values
[399] Fix | Delete
for ( i = 0; i < len; i++ ) {
[400] Fix | Delete
if ( node.args[ i ] !== arguments[ i ] ) {
[401] Fix | Delete
node = node.next;
[402] Fix | Delete
continue searchCache;
[403] Fix | Delete
}
[404] Fix | Delete
}
[405] Fix | Delete
[406] Fix | Delete
// At this point we can assume we've found a match
[407] Fix | Delete
[408] Fix | Delete
// Surface matched node to head if not already
[409] Fix | Delete
if ( node !== head ) {
[410] Fix | Delete
// As tail, shift to previous. Must only shift if not also
[411] Fix | Delete
// head, since if both head and tail, there is no previous.
[412] Fix | Delete
if ( node === tail ) {
[413] Fix | Delete
tail = node.prev;
[414] Fix | Delete
}
[415] Fix | Delete
[416] Fix | Delete
// Adjust siblings to point to each other. If node was tail,
[417] Fix | Delete
// this also handles new tail's empty `next` assignment.
[418] Fix | Delete
/** @type {MemizeCacheNode} */ ( node.prev ).next = node.next;
[419] Fix | Delete
if ( node.next ) {
[420] Fix | Delete
node.next.prev = node.prev;
[421] Fix | Delete
}
[422] Fix | Delete
[423] Fix | Delete
node.next = head;
[424] Fix | Delete
node.prev = null;
[425] Fix | Delete
/** @type {MemizeCacheNode} */ ( head ).prev = node;
[426] Fix | Delete
head = node;
[427] Fix | Delete
}
[428] Fix | Delete
[429] Fix | Delete
// Return immediately
[430] Fix | Delete
return node.val;
[431] Fix | Delete
}
[432] Fix | Delete
[433] Fix | Delete
// No cached value found. Continue to insertion phase:
[434] Fix | Delete
[435] Fix | Delete
// Create a copy of arguments (avoid leaking deoptimization)
[436] Fix | Delete
args = new Array( len );
[437] Fix | Delete
for ( i = 0; i < len; i++ ) {
[438] Fix | Delete
args[ i ] = arguments[ i ];
[439] Fix | Delete
}
[440] Fix | Delete
[441] Fix | Delete
node = {
[442] Fix | Delete
args: args,
[443] Fix | Delete
[444] Fix | Delete
// Generate the result from original function
[445] Fix | Delete
val: fn.apply( null, args ),
[446] Fix | Delete
};
[447] Fix | Delete
[448] Fix | Delete
// Don't need to check whether node is already head, since it would
[449] Fix | Delete
// have been returned above already if it was
[450] Fix | Delete
[451] Fix | Delete
// Shift existing head down list
[452] Fix | Delete
if ( head ) {
[453] Fix | Delete
head.prev = node;
[454] Fix | Delete
node.next = head;
[455] Fix | Delete
} else {
[456] Fix | Delete
// If no head, follows that there's no tail (at initial or reset)
[457] Fix | Delete
tail = node;
[458] Fix | Delete
}
[459] Fix | Delete
[460] Fix | Delete
// Trim tail if we're reached max size and are pending cache insertion
[461] Fix | Delete
if ( size === /** @type {MemizeOptions} */ ( options ).maxSize ) {
[462] Fix | Delete
tail = /** @type {MemizeCacheNode} */ ( tail ).prev;
[463] Fix | Delete
/** @type {MemizeCacheNode} */ ( tail ).next = null;
[464] Fix | Delete
} else {
[465] Fix | Delete
size++;
[466] Fix | Delete
}
[467] Fix | Delete
[468] Fix | Delete
head = node;
[469] Fix | Delete
[470] Fix | Delete
return node.val;
[471] Fix | Delete
}
[472] Fix | Delete
[473] Fix | Delete
memoized.clear = function() {
[474] Fix | Delete
head = null;
[475] Fix | Delete
tail = null;
[476] Fix | Delete
size = 0;
[477] Fix | Delete
};
[478] Fix | Delete
[479] Fix | Delete
if ( false ) {}
[480] Fix | Delete
[481] Fix | Delete
// Ignore reason: There's not a clear solution to create an intersection of
[482] Fix | Delete
// the function with additional properties, where the goal is to retain the
[483] Fix | Delete
// function signature of the incoming argument and add control properties
[484] Fix | Delete
// on the return value.
[485] Fix | Delete
[486] Fix | Delete
// @ts-ignore
[487] Fix | Delete
return memoized;
[488] Fix | Delete
}
[489] Fix | Delete
[490] Fix | Delete
module.exports = memize;
[491] Fix | Delete
[492] Fix | Delete
[493] Fix | Delete
/***/ }),
[494] Fix | Delete
[495] Fix | Delete
/***/ "Vhyj":
[496] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[497] Fix | Delete
[498] Fix | Delete
"use strict";
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function