Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
var getActiveElement = __webpack_require__("z222");
[3000] Fix | Delete
[3001] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/tabbable.js
[3002] Fix | Delete
[3003] Fix | Delete
[3004] Fix | Delete
[3005] Fix | Delete
[3006] Fix | Delete
[3007] Fix | Delete
/** @module tabbable */
[3008] Fix | Delete
var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), " + "textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], " + "iframe, object, embed, area[href], audio[controls], video[controls], " + "[contenteditable]:not([contenteditable='false'])";
[3009] Fix | Delete
[3010] Fix | Delete
function isVisible(element) {
[3011] Fix | Delete
var htmlElement = element;
[3012] Fix | Delete
return htmlElement.offsetWidth > 0 || htmlElement.offsetHeight > 0 || element.getClientRects().length > 0;
[3013] Fix | Delete
}
[3014] Fix | Delete
[3015] Fix | Delete
function hasNegativeTabIndex(element) {
[3016] Fix | Delete
var tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10);
[3017] Fix | Delete
return tabIndex < 0;
[3018] Fix | Delete
}
[3019] Fix | Delete
/**
[3020] Fix | Delete
* Checks whether `element` is focusable or not.
[3021] Fix | Delete
*
[3022] Fix | Delete
* @memberof tabbable
[3023] Fix | Delete
*
[3024] Fix | Delete
* @example
[3025] Fix | Delete
* import { isFocusable } from "reakit-utils";
[3026] Fix | Delete
*
[3027] Fix | Delete
* isFocusable(document.querySelector("input")); // true
[3028] Fix | Delete
* isFocusable(document.querySelector("input[tabindex='-1']")); // true
[3029] Fix | Delete
* isFocusable(document.querySelector("input[hidden]")); // false
[3030] Fix | Delete
* isFocusable(document.querySelector("input:disabled")); // false
[3031] Fix | Delete
*/
[3032] Fix | Delete
[3033] Fix | Delete
[3034] Fix | Delete
function isFocusable(element) {
[3035] Fix | Delete
return matches(element, selector) && isVisible(element);
[3036] Fix | Delete
}
[3037] Fix | Delete
/**
[3038] Fix | Delete
* Checks whether `element` is tabbable or not.
[3039] Fix | Delete
*
[3040] Fix | Delete
* @memberof tabbable
[3041] Fix | Delete
*
[3042] Fix | Delete
* @example
[3043] Fix | Delete
* import { isTabbable } from "reakit-utils";
[3044] Fix | Delete
*
[3045] Fix | Delete
* isTabbable(document.querySelector("input")); // true
[3046] Fix | Delete
* isTabbable(document.querySelector("input[tabindex='-1']")); // false
[3047] Fix | Delete
* isTabbable(document.querySelector("input[hidden]")); // false
[3048] Fix | Delete
* isTabbable(document.querySelector("input:disabled")); // false
[3049] Fix | Delete
*/
[3050] Fix | Delete
[3051] Fix | Delete
function isTabbable(element) {
[3052] Fix | Delete
return isFocusable(element) && !hasNegativeTabIndex(element);
[3053] Fix | Delete
}
[3054] Fix | Delete
/**
[3055] Fix | Delete
* Returns all the focusable elements in `container`.
[3056] Fix | Delete
*
[3057] Fix | Delete
* @memberof tabbable
[3058] Fix | Delete
*
[3059] Fix | Delete
* @param {Element} container
[3060] Fix | Delete
*
[3061] Fix | Delete
* @returns {Element[]}
[3062] Fix | Delete
*/
[3063] Fix | Delete
[3064] Fix | Delete
function getAllFocusableIn(container) {
[3065] Fix | Delete
var allFocusable = Array.from(container.querySelectorAll(selector));
[3066] Fix | Delete
allFocusable.unshift(container);
[3067] Fix | Delete
return allFocusable.filter(isFocusable);
[3068] Fix | Delete
}
[3069] Fix | Delete
/**
[3070] Fix | Delete
* Returns the first focusable element in `container`.
[3071] Fix | Delete
*
[3072] Fix | Delete
* @memberof tabbable
[3073] Fix | Delete
*
[3074] Fix | Delete
* @param {Element} container
[3075] Fix | Delete
*
[3076] Fix | Delete
* @returns {Element|null}
[3077] Fix | Delete
*/
[3078] Fix | Delete
[3079] Fix | Delete
function getFirstFocusableIn(container) {
[3080] Fix | Delete
var _getAllFocusableIn = getAllFocusableIn(container),
[3081] Fix | Delete
first = _getAllFocusableIn[0];
[3082] Fix | Delete
[3083] Fix | Delete
return first || null;
[3084] Fix | Delete
}
[3085] Fix | Delete
/**
[3086] Fix | Delete
* Returns all the tabbable elements in `container`, including the container
[3087] Fix | Delete
* itself.
[3088] Fix | Delete
*
[3089] Fix | Delete
* @memberof tabbable
[3090] Fix | Delete
*
[3091] Fix | Delete
* @param {Element} container
[3092] Fix | Delete
* @param fallbackToFocusable If `true`, it'll return focusable elements if there are no tabbable ones.
[3093] Fix | Delete
*
[3094] Fix | Delete
* @returns {Element[]}
[3095] Fix | Delete
*/
[3096] Fix | Delete
[3097] Fix | Delete
function getAllTabbableIn(container, fallbackToFocusable) {
[3098] Fix | Delete
var allFocusable = Array.from(container.querySelectorAll(selector));
[3099] Fix | Delete
var allTabbable = allFocusable.filter(isTabbable);
[3100] Fix | Delete
[3101] Fix | Delete
if (isTabbable(container)) {
[3102] Fix | Delete
allTabbable.unshift(container);
[3103] Fix | Delete
}
[3104] Fix | Delete
[3105] Fix | Delete
if (!allTabbable.length && fallbackToFocusable) {
[3106] Fix | Delete
return allFocusable;
[3107] Fix | Delete
}
[3108] Fix | Delete
[3109] Fix | Delete
return allTabbable;
[3110] Fix | Delete
}
[3111] Fix | Delete
/**
[3112] Fix | Delete
* Returns the first tabbable element in `container`, including the container
[3113] Fix | Delete
* itself if it's tabbable.
[3114] Fix | Delete
*
[3115] Fix | Delete
* @memberof tabbable
[3116] Fix | Delete
*
[3117] Fix | Delete
* @param {Element} container
[3118] Fix | Delete
* @param fallbackToFocusable If `true`, it'll return the first focusable element if there are no tabbable ones.
[3119] Fix | Delete
*
[3120] Fix | Delete
* @returns {Element|null}
[3121] Fix | Delete
*/
[3122] Fix | Delete
[3123] Fix | Delete
function getFirstTabbableIn(container, fallbackToFocusable) {
[3124] Fix | Delete
var _getAllTabbableIn = getAllTabbableIn(container, fallbackToFocusable),
[3125] Fix | Delete
first = _getAllTabbableIn[0];
[3126] Fix | Delete
[3127] Fix | Delete
return first || null;
[3128] Fix | Delete
}
[3129] Fix | Delete
/**
[3130] Fix | Delete
* Returns the last tabbable element in `container`, including the container
[3131] Fix | Delete
* itself if it's tabbable.
[3132] Fix | Delete
*
[3133] Fix | Delete
* @memberof tabbable
[3134] Fix | Delete
*
[3135] Fix | Delete
* @param {Element} container
[3136] Fix | Delete
* @param fallbackToFocusable If `true`, it'll return the last focusable element if there are no tabbable ones.
[3137] Fix | Delete
*
[3138] Fix | Delete
* @returns {Element|null}
[3139] Fix | Delete
*/
[3140] Fix | Delete
[3141] Fix | Delete
function getLastTabbableIn(container, fallbackToFocusable) {
[3142] Fix | Delete
var allTabbable = getAllTabbableIn(container, fallbackToFocusable);
[3143] Fix | Delete
return allTabbable[allTabbable.length - 1] || null;
[3144] Fix | Delete
}
[3145] Fix | Delete
/**
[3146] Fix | Delete
* Returns the next tabbable element in `container`.
[3147] Fix | Delete
*
[3148] Fix | Delete
* @memberof tabbable
[3149] Fix | Delete
*
[3150] Fix | Delete
* @param {Element} container
[3151] Fix | Delete
* @param fallbackToFocusable If `true`, it'll return the next focusable element if there are no tabbable ones.
[3152] Fix | Delete
*
[3153] Fix | Delete
* @returns {Element|null}
[3154] Fix | Delete
*/
[3155] Fix | Delete
[3156] Fix | Delete
function getNextTabbableIn(container, fallbackToFocusable) {
[3157] Fix | Delete
var activeElement = Object(getActiveElement["a" /* getActiveElement */])(container);
[3158] Fix | Delete
var allFocusable = getAllFocusableIn(container);
[3159] Fix | Delete
var index = allFocusable.indexOf(activeElement);
[3160] Fix | Delete
var slice = allFocusable.slice(index + 1);
[3161] Fix | Delete
return slice.find(isTabbable) || allFocusable.find(isTabbable) || (fallbackToFocusable ? slice[0] : null);
[3162] Fix | Delete
}
[3163] Fix | Delete
/**
[3164] Fix | Delete
* Returns the previous tabbable element in `container`.
[3165] Fix | Delete
*
[3166] Fix | Delete
* @memberof tabbable
[3167] Fix | Delete
*
[3168] Fix | Delete
* @param {Element} container
[3169] Fix | Delete
* @param fallbackToFocusable If `true`, it'll return the previous focusable element if there are no tabbable ones.
[3170] Fix | Delete
*
[3171] Fix | Delete
* @returns {Element|null}
[3172] Fix | Delete
*/
[3173] Fix | Delete
[3174] Fix | Delete
function getPreviousTabbableIn(container, fallbackToFocusable) {
[3175] Fix | Delete
var activeElement = Object(getActiveElement["a" /* getActiveElement */])(container);
[3176] Fix | Delete
var allFocusable = getAllFocusableIn(container).reverse();
[3177] Fix | Delete
var index = allFocusable.indexOf(activeElement);
[3178] Fix | Delete
var slice = allFocusable.slice(index + 1);
[3179] Fix | Delete
return slice.find(isTabbable) || allFocusable.find(isTabbable) || (fallbackToFocusable ? slice[0] : null);
[3180] Fix | Delete
}
[3181] Fix | Delete
/**
[3182] Fix | Delete
* Returns the closest focusable element.
[3183] Fix | Delete
*
[3184] Fix | Delete
* @memberof tabbable
[3185] Fix | Delete
*
[3186] Fix | Delete
* @param {Element} container
[3187] Fix | Delete
*
[3188] Fix | Delete
* @returns {Element|null}
[3189] Fix | Delete
*/
[3190] Fix | Delete
[3191] Fix | Delete
function getClosestFocusable(element) {
[3192] Fix | Delete
while (element && !isFocusable(element)) {
[3193] Fix | Delete
element = closest(element, selector);
[3194] Fix | Delete
}
[3195] Fix | Delete
[3196] Fix | Delete
return element;
[3197] Fix | Delete
}
[3198] Fix | Delete
[3199] Fix | Delete
[3200] Fix | Delete
[3201] Fix | Delete
[3202] Fix | Delete
/***/ }),
[3203] Fix | Delete
[3204] Fix | Delete
/***/ "82c2":
[3205] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[3206] Fix | Delete
[3207] Fix | Delete
"use strict";
[3208] Fix | Delete
[3209] Fix | Delete
[3210] Fix | Delete
var keys = __webpack_require__("1seS");
[3211] Fix | Delete
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
[3212] Fix | Delete
[3213] Fix | Delete
var toStr = Object.prototype.toString;
[3214] Fix | Delete
var concat = Array.prototype.concat;
[3215] Fix | Delete
var origDefineProperty = Object.defineProperty;
[3216] Fix | Delete
[3217] Fix | Delete
var isFunction = function (fn) {
[3218] Fix | Delete
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
[3219] Fix | Delete
};
[3220] Fix | Delete
[3221] Fix | Delete
var arePropertyDescriptorsSupported = function () {
[3222] Fix | Delete
var obj = {};
[3223] Fix | Delete
try {
[3224] Fix | Delete
origDefineProperty(obj, 'x', { enumerable: false, value: obj });
[3225] Fix | Delete
// eslint-disable-next-line no-unused-vars, no-restricted-syntax
[3226] Fix | Delete
for (var _ in obj) { // jscs:ignore disallowUnusedVariables
[3227] Fix | Delete
return false;
[3228] Fix | Delete
}
[3229] Fix | Delete
return obj.x === obj;
[3230] Fix | Delete
} catch (e) { /* this is IE 8. */
[3231] Fix | Delete
return false;
[3232] Fix | Delete
}
[3233] Fix | Delete
};
[3234] Fix | Delete
var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
[3235] Fix | Delete
[3236] Fix | Delete
var defineProperty = function (object, name, value, predicate) {
[3237] Fix | Delete
if (name in object && (!isFunction(predicate) || !predicate())) {
[3238] Fix | Delete
return;
[3239] Fix | Delete
}
[3240] Fix | Delete
if (supportsDescriptors) {
[3241] Fix | Delete
origDefineProperty(object, name, {
[3242] Fix | Delete
configurable: true,
[3243] Fix | Delete
enumerable: false,
[3244] Fix | Delete
value: value,
[3245] Fix | Delete
writable: true
[3246] Fix | Delete
});
[3247] Fix | Delete
} else {
[3248] Fix | Delete
object[name] = value;
[3249] Fix | Delete
}
[3250] Fix | Delete
};
[3251] Fix | Delete
[3252] Fix | Delete
var defineProperties = function (object, map) {
[3253] Fix | Delete
var predicates = arguments.length > 2 ? arguments[2] : {};
[3254] Fix | Delete
var props = keys(map);
[3255] Fix | Delete
if (hasSymbols) {
[3256] Fix | Delete
props = concat.call(props, Object.getOwnPropertySymbols(map));
[3257] Fix | Delete
}
[3258] Fix | Delete
for (var i = 0; i < props.length; i += 1) {
[3259] Fix | Delete
defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
[3260] Fix | Delete
}
[3261] Fix | Delete
};
[3262] Fix | Delete
[3263] Fix | Delete
defineProperties.supportsDescriptors = !!supportsDescriptors;
[3264] Fix | Delete
[3265] Fix | Delete
module.exports = defineProperties;
[3266] Fix | Delete
[3267] Fix | Delete
[3268] Fix | Delete
/***/ }),
[3269] Fix | Delete
[3270] Fix | Delete
/***/ "8OQS":
[3271] Fix | Delete
/***/ (function(module, exports) {
[3272] Fix | Delete
[3273] Fix | Delete
function _objectWithoutPropertiesLoose(source, excluded) {
[3274] Fix | Delete
if (source == null) return {};
[3275] Fix | Delete
var target = {};
[3276] Fix | Delete
var sourceKeys = Object.keys(source);
[3277] Fix | Delete
var key, i;
[3278] Fix | Delete
[3279] Fix | Delete
for (i = 0; i < sourceKeys.length; i++) {
[3280] Fix | Delete
key = sourceKeys[i];
[3281] Fix | Delete
if (excluded.indexOf(key) >= 0) continue;
[3282] Fix | Delete
target[key] = source[key];
[3283] Fix | Delete
}
[3284] Fix | Delete
[3285] Fix | Delete
return target;
[3286] Fix | Delete
}
[3287] Fix | Delete
[3288] Fix | Delete
module.exports = _objectWithoutPropertiesLoose;
[3289] Fix | Delete
[3290] Fix | Delete
/***/ }),
[3291] Fix | Delete
[3292] Fix | Delete
/***/ "8R9v":
[3293] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[3294] Fix | Delete
[3295] Fix | Delete
"use strict";
[3296] Fix | Delete
[3297] Fix | Delete
[3298] Fix | Delete
var define = __webpack_require__("82c2");
[3299] Fix | Delete
var getPolyfill = __webpack_require__("yLpt");
[3300] Fix | Delete
[3301] Fix | Delete
module.exports = function shimAssign() {
[3302] Fix | Delete
var polyfill = getPolyfill();
[3303] Fix | Delete
define(
[3304] Fix | Delete
Object,
[3305] Fix | Delete
{ assign: polyfill },
[3306] Fix | Delete
{ assign: function () { return Object.assign !== polyfill; } }
[3307] Fix | Delete
);
[3308] Fix | Delete
return polyfill;
[3309] Fix | Delete
};
[3310] Fix | Delete
[3311] Fix | Delete
[3312] Fix | Delete
/***/ }),
[3313] Fix | Delete
[3314] Fix | Delete
/***/ "8oxB":
[3315] Fix | Delete
/***/ (function(module, exports) {
[3316] Fix | Delete
[3317] Fix | Delete
// shim for using process in browser
[3318] Fix | Delete
var process = module.exports = {};
[3319] Fix | Delete
[3320] Fix | Delete
// cached from whatever global is present so that test runners that stub it
[3321] Fix | Delete
// don't break things. But we need to wrap it in a try catch in case it is
[3322] Fix | Delete
// wrapped in strict mode code which doesn't define any globals. It's inside a
[3323] Fix | Delete
// function because try/catches deoptimize in certain engines.
[3324] Fix | Delete
[3325] Fix | Delete
var cachedSetTimeout;
[3326] Fix | Delete
var cachedClearTimeout;
[3327] Fix | Delete
[3328] Fix | Delete
function defaultSetTimout() {
[3329] Fix | Delete
throw new Error('setTimeout has not been defined');
[3330] Fix | Delete
}
[3331] Fix | Delete
function defaultClearTimeout () {
[3332] Fix | Delete
throw new Error('clearTimeout has not been defined');
[3333] Fix | Delete
}
[3334] Fix | Delete
(function () {
[3335] Fix | Delete
try {
[3336] Fix | Delete
if (typeof setTimeout === 'function') {
[3337] Fix | Delete
cachedSetTimeout = setTimeout;
[3338] Fix | Delete
} else {
[3339] Fix | Delete
cachedSetTimeout = defaultSetTimout;
[3340] Fix | Delete
}
[3341] Fix | Delete
} catch (e) {
[3342] Fix | Delete
cachedSetTimeout = defaultSetTimout;
[3343] Fix | Delete
}
[3344] Fix | Delete
try {
[3345] Fix | Delete
if (typeof clearTimeout === 'function') {
[3346] Fix | Delete
cachedClearTimeout = clearTimeout;
[3347] Fix | Delete
} else {
[3348] Fix | Delete
cachedClearTimeout = defaultClearTimeout;
[3349] Fix | Delete
}
[3350] Fix | Delete
} catch (e) {
[3351] Fix | Delete
cachedClearTimeout = defaultClearTimeout;
[3352] Fix | Delete
}
[3353] Fix | Delete
} ())
[3354] Fix | Delete
function runTimeout(fun) {
[3355] Fix | Delete
if (cachedSetTimeout === setTimeout) {
[3356] Fix | Delete
//normal enviroments in sane situations
[3357] Fix | Delete
return setTimeout(fun, 0);
[3358] Fix | Delete
}
[3359] Fix | Delete
// if setTimeout wasn't available but was latter defined
[3360] Fix | Delete
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
[3361] Fix | Delete
cachedSetTimeout = setTimeout;
[3362] Fix | Delete
return setTimeout(fun, 0);
[3363] Fix | Delete
}
[3364] Fix | Delete
try {
[3365] Fix | Delete
// when when somebody has screwed with setTimeout but no I.E. maddness
[3366] Fix | Delete
return cachedSetTimeout(fun, 0);
[3367] Fix | Delete
} catch(e){
[3368] Fix | Delete
try {
[3369] Fix | Delete
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
[3370] Fix | Delete
return cachedSetTimeout.call(null, fun, 0);
[3371] Fix | Delete
} catch(e){
[3372] Fix | Delete
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
[3373] Fix | Delete
return cachedSetTimeout.call(this, fun, 0);
[3374] Fix | Delete
}
[3375] Fix | Delete
}
[3376] Fix | Delete
[3377] Fix | Delete
[3378] Fix | Delete
}
[3379] Fix | Delete
function runClearTimeout(marker) {
[3380] Fix | Delete
if (cachedClearTimeout === clearTimeout) {
[3381] Fix | Delete
//normal enviroments in sane situations
[3382] Fix | Delete
return clearTimeout(marker);
[3383] Fix | Delete
}
[3384] Fix | Delete
// if clearTimeout wasn't available but was latter defined
[3385] Fix | Delete
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
[3386] Fix | Delete
cachedClearTimeout = clearTimeout;
[3387] Fix | Delete
return clearTimeout(marker);
[3388] Fix | Delete
}
[3389] Fix | Delete
try {
[3390] Fix | Delete
// when when somebody has screwed with setTimeout but no I.E. maddness
[3391] Fix | Delete
return cachedClearTimeout(marker);
[3392] Fix | Delete
} catch (e){
[3393] Fix | Delete
try {
[3394] Fix | Delete
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
[3395] Fix | Delete
return cachedClearTimeout.call(null, marker);
[3396] Fix | Delete
} catch (e){
[3397] Fix | Delete
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
[3398] Fix | Delete
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
[3399] Fix | Delete
return cachedClearTimeout.call(this, marker);
[3400] Fix | Delete
}
[3401] Fix | Delete
}
[3402] Fix | Delete
[3403] Fix | Delete
[3404] Fix | Delete
[3405] Fix | Delete
}
[3406] Fix | Delete
var queue = [];
[3407] Fix | Delete
var draining = false;
[3408] Fix | Delete
var currentQueue;
[3409] Fix | Delete
var queueIndex = -1;
[3410] Fix | Delete
[3411] Fix | Delete
function cleanUpNextTick() {
[3412] Fix | Delete
if (!draining || !currentQueue) {
[3413] Fix | Delete
return;
[3414] Fix | Delete
}
[3415] Fix | Delete
draining = false;
[3416] Fix | Delete
if (currentQueue.length) {
[3417] Fix | Delete
queue = currentQueue.concat(queue);
[3418] Fix | Delete
} else {
[3419] Fix | Delete
queueIndex = -1;
[3420] Fix | Delete
}
[3421] Fix | Delete
if (queue.length) {
[3422] Fix | Delete
drainQueue();
[3423] Fix | Delete
}
[3424] Fix | Delete
}
[3425] Fix | Delete
[3426] Fix | Delete
function drainQueue() {
[3427] Fix | Delete
if (draining) {
[3428] Fix | Delete
return;
[3429] Fix | Delete
}
[3430] Fix | Delete
var timeout = runTimeout(cleanUpNextTick);
[3431] Fix | Delete
draining = true;
[3432] Fix | Delete
[3433] Fix | Delete
var len = queue.length;
[3434] Fix | Delete
while(len) {
[3435] Fix | Delete
currentQueue = queue;
[3436] Fix | Delete
queue = [];
[3437] Fix | Delete
while (++queueIndex < len) {
[3438] Fix | Delete
if (currentQueue) {
[3439] Fix | Delete
currentQueue[queueIndex].run();
[3440] Fix | Delete
}
[3441] Fix | Delete
}
[3442] Fix | Delete
queueIndex = -1;
[3443] Fix | Delete
len = queue.length;
[3444] Fix | Delete
}
[3445] Fix | Delete
currentQueue = null;
[3446] Fix | Delete
draining = false;
[3447] Fix | Delete
runClearTimeout(timeout);
[3448] Fix | Delete
}
[3449] Fix | Delete
[3450] Fix | Delete
process.nextTick = function (fun) {
[3451] Fix | Delete
var args = new Array(arguments.length - 1);
[3452] Fix | Delete
if (arguments.length > 1) {
[3453] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[3454] Fix | Delete
args[i - 1] = arguments[i];
[3455] Fix | Delete
}
[3456] Fix | Delete
}
[3457] Fix | Delete
queue.push(new Item(fun, args));
[3458] Fix | Delete
if (queue.length === 1 && !draining) {
[3459] Fix | Delete
runTimeout(drainQueue);
[3460] Fix | Delete
}
[3461] Fix | Delete
};
[3462] Fix | Delete
[3463] Fix | Delete
// v8 likes predictible objects
[3464] Fix | Delete
function Item(fun, array) {
[3465] Fix | Delete
this.fun = fun;
[3466] Fix | Delete
this.array = array;
[3467] Fix | Delete
}
[3468] Fix | Delete
Item.prototype.run = function () {
[3469] Fix | Delete
this.fun.apply(null, this.array);
[3470] Fix | Delete
};
[3471] Fix | Delete
process.title = 'browser';
[3472] Fix | Delete
process.browser = true;
[3473] Fix | Delete
process.env = {};
[3474] Fix | Delete
process.argv = [];
[3475] Fix | Delete
process.version = ''; // empty string to avoid regexp issues
[3476] Fix | Delete
process.versions = {};
[3477] Fix | Delete
[3478] Fix | Delete
function noop() {}
[3479] Fix | Delete
[3480] Fix | Delete
process.on = noop;
[3481] Fix | Delete
process.addListener = noop;
[3482] Fix | Delete
process.once = noop;
[3483] Fix | Delete
process.off = noop;
[3484] Fix | Delete
process.removeListener = noop;
[3485] Fix | Delete
process.removeAllListeners = noop;
[3486] Fix | Delete
process.emit = noop;
[3487] Fix | Delete
process.prependListener = noop;
[3488] Fix | Delete
process.prependOnceListener = noop;
[3489] Fix | Delete
[3490] Fix | Delete
process.listeners = function (name) { return [] }
[3491] Fix | Delete
[3492] Fix | Delete
process.binding = function (name) {
[3493] Fix | Delete
throw new Error('process.binding is not supported');
[3494] Fix | Delete
};
[3495] Fix | Delete
[3496] Fix | Delete
process.cwd = function () { return '/' };
[3497] Fix | Delete
process.chdir = function (dir) {
[3498] Fix | Delete
throw new Error('process.chdir is not supported');
[3499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function