Skip to content

Instantly share code, notes, and snippets.

@davidascher
Created May 26, 2017 23:53
Show Gist options
  • Save davidascher/6156c5abe357844a119d3420804aa07d to your computer and use it in GitHub Desktop.
Save davidascher/6156c5abe357844a119d3420804aa07d to your computer and use it in GitHub Desktop.
--- build.broken/static/js/main.d38c1216.js 2017-05-26 16:50:56.000000000 -0700
+++ build.works/static/js/main.d38c1216.js 2017-05-26 16:50:16.000000000 -0700
@@ -157,9 +157,9 @@
module.exports = ReactDOMComponentTree;
}, function(module, exports, __webpack_require__) {
"use strict";
- var canUseDOM = !("undefined" == typeof window || !window.document || !window.document.createElement), ExecutionEnvironment = {
+ var canUseDOM = !("undefined" === typeof window || !window.document || !window.document.createElement), ExecutionEnvironment = {
canUseDOM: canUseDOM,
- canUseWorkers: "undefined" != typeof Worker,
+ canUseWorkers: "undefined" !== typeof Worker,
canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent),
canUseViewport: canUseDOM && !!window.screen,
isInWorker: !canUseDOM
@@ -275,8 +275,8 @@
ReconcileTransaction || _prodInvariant("126"), ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;
},
injectBatchingStrategy: function(_batchingStrategy) {
- _batchingStrategy || _prodInvariant("127"), "function" != typeof _batchingStrategy.batchedUpdates && _prodInvariant("128"),
- "boolean" != typeof _batchingStrategy.isBatchingUpdates && _prodInvariant("129"),
+ _batchingStrategy || _prodInvariant("127"), "function" !== typeof _batchingStrategy.batchedUpdates && _prodInvariant("128"),
+ "boolean" !== typeof _batchingStrategy.isBatchingUpdates && _prodInvariant("129"),
batchingStrategy = _batchingStrategy;
}
}, ReactUpdates = {
@@ -319,12 +319,12 @@
preventDefault: function() {
this.defaultPrevented = !0;
var event = this.nativeEvent;
- event && (event.preventDefault ? event.preventDefault() : "unknown" != typeof event.returnValue && (event.returnValue = !1),
+ event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1),
this.isDefaultPrevented = emptyFunction.thatReturnsTrue);
},
stopPropagation: function() {
var event = this.nativeEvent;
- event && (event.stopPropagation ? event.stopPropagation() : "unknown" != typeof event.cancelBubble && (event.cancelBubble = !0),
+ event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0),
this.isPropagationStopped = emptyFunction.thatReturnsTrue);
},
persist: function() {
@@ -431,7 +431,7 @@
toString: toString
};
}
- var DOMNamespaces = __webpack_require__(33), setInnerHTML = __webpack_require__(29), createMicrosoftUnsafeLocalFunction = __webpack_require__(41), setTextContent = __webpack_require__(76), enableLazy = "undefined" != typeof document && "number" == typeof document.documentMode || "undefined" != typeof navigator && "string" == typeof navigator.userAgent && /\bEdge\/\d/.test(navigator.userAgent), insertTreeBefore = createMicrosoftUnsafeLocalFunction(function(parentNode, tree, referenceNode) {
+ var DOMNamespaces = __webpack_require__(33), setInnerHTML = __webpack_require__(29), createMicrosoftUnsafeLocalFunction = __webpack_require__(41), setTextContent = __webpack_require__(76), enableLazy = "undefined" !== typeof document && "number" === typeof document.documentMode || "undefined" !== typeof navigator && "string" === typeof navigator.userAgent && /\bEdge\/\d/.test(navigator.userAgent), insertTreeBefore = createMicrosoftUnsafeLocalFunction(function(parentNode, tree, referenceNode) {
11 === tree.node.nodeType || 1 === tree.node.nodeType && "object" === tree.node.nodeName.toLowerCase() && (null == tree.node.namespaceURI || tree.node.namespaceURI === DOMNamespaces.html) ? (insertTreeChildren(tree),
parentNode.insertBefore(tree.node, referenceNode)) : (parentNode.insertBefore(tree.node, referenceNode),
insertTreeChildren(tree));
@@ -616,7 +616,7 @@
}
return ReactElement(element.type, key, ref, 0, 0, owner, props);
}, ReactElement.isValidElement = function(object) {
- return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
}, module.exports = ReactElement;
}, function(module, exports, __webpack_require__) {
"use strict";
@@ -669,7 +669,7 @@
injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName
},
putListener: function(inst, registrationName, listener) {
- "function" != typeof listener && _prodInvariant("94", registrationName, typeof listener);
+ "function" !== typeof listener && _prodInvariant("94", registrationName, typeof listener);
var key = getDictionaryKey(inst);
(listenerBank[registrationName] || (listenerBank[registrationName] = {}))[key] = listener;
var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
@@ -1049,7 +1049,7 @@
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
}
function escapeTextContentForBrowser(text) {
- return "boolean" == typeof text || "number" == typeof text ? "" + text : escapeHtml(text);
+ return "boolean" === typeof text || "number" === typeof text ? "" + text : escapeHtml(text);
}
var matchHtmlRegExp = /["'&<>]/;
module.exports = escapeTextContentForBrowser;
@@ -1077,7 +1077,7 @@
return null === value || void 0 === value;
}
function isBuffer(x) {
- return !(!x || "object" != typeof x || "number" != typeof x.length) && ("function" == typeof x.copy && "function" == typeof x.slice && !(x.length > 0 && "number" != typeof x[0]));
+ return !(!x || "object" !== typeof x || "number" !== typeof x.length) && ("function" === typeof x.copy && "function" === typeof x.slice && !(x.length > 0 && "number" !== typeof x[0]));
}
function objEquiv(a, b, opts) {
var i, key;
@@ -1099,7 +1099,7 @@
if (ka.length != kb.length) return !1;
for (ka.sort(), kb.sort(), i = ka.length - 1; i >= 0; i--) if (ka[i] != kb[i]) return !1;
for (i = ka.length - 1; i >= 0; i--) if (key = ka[i], !deepEqual(a[key], b[key], opts)) return !1;
- return typeof a == typeof b;
+ return typeof a === typeof b;
}
var pSlice = Array.prototype.slice, objectKeys = __webpack_require__(93), isArguments = __webpack_require__(92), deepEqual = module.exports = function(actual, expected, opts) {
return opts || (opts = {}), actual === expected || (actual instanceof Date && expected instanceof Date ? actual.getTime() === expected.getTime() : !actual || !expected || "object" != typeof actual && "object" != typeof expected ? opts.strict ? actual === expected : actual == expected : objEquiv(actual, expected, opts));
@@ -1107,11 +1107,11 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function is(x, y) {
- return x === y ? 0 !== x || 0 !== y || 1 / x == 1 / y : x !== x && y !== y;
+ return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y;
}
function shallowEqual(objA, objB) {
if (is(objA, objB)) return !0;
- if ("object" != typeof objA || null === objA || "object" != typeof objB || null === objB) return !1;
+ if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1;
var keysA = Object.keys(objA), keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1;
for (var i = 0; i < keysA.length; i++) if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return !1;
@@ -1529,14 +1529,14 @@
enqueueUpdate(internalInstance);
},
validateCallback: function(callback, callerName) {
- callback && "function" != typeof callback && _prodInvariant("122", callerName, formatUnexpectedArgument(callback));
+ callback && "function" !== typeof callback && _prodInvariant("122", callerName, formatUnexpectedArgument(callback));
}
});
module.exports = ReactUpdateQueue;
}, function(module, exports, __webpack_require__) {
"use strict";
var createMicrosoftUnsafeLocalFunction = function(func) {
- return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
+ return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
MSApp.execUnsafeLocalFunction(function() {
return func(arg0, arg1, arg2, arg3);
});
@@ -1584,7 +1584,7 @@
var eventName = "on" + eventNameSuffix, isSupported = eventName in document;
if (!isSupported) {
var element = document.createElement("div");
- element.setAttribute(eventName, "return;"), isSupported = "function" == typeof element[eventName];
+ element.setAttribute(eventName, "return;"), isSupported = "function" === typeof element[eventName];
}
return !isSupported && useHasFeature && "wheel" === eventNameSuffix && (isSupported = document.implementation.hasFeature("Events.wheel", "3.0")),
isSupported;
@@ -1615,7 +1615,7 @@
__webpack_require__(20));
__webpack_require__(0), __webpack_require__(1);
ReactComponent.prototype.isReactComponent = {}, ReactComponent.prototype.setState = function(partialState, callback) {
- "object" != typeof partialState && "function" != typeof partialState && null != partialState && _prodInvariant("85"),
+ "object" !== typeof partialState && "function" !== typeof partialState && null != partialState && _prodInvariant("85"),
this.updater.enqueueSetState(this, partialState), callback && this.updater.enqueueCallback(this, callback, "setState");
}, ReactComponent.prototype.forceUpdate = function(callback) {
this.updater.enqueueForceUpdate(this), callback && this.updater.enqueueCallback(this, callback, "forceUpdate");
@@ -1672,7 +1672,7 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function getActiveElement(doc) {
- if (void 0 === (doc = doc || ("undefined" != typeof document ? document : void 0))) return null;
+ if ("undefined" === typeof (doc = doc || ("undefined" !== typeof document ? document : void 0))) return null;
try {
return doc.activeElement || doc.body;
} catch (e) {
@@ -1712,7 +1712,7 @@
}({
1: [ function(_dereq_, module, exports) {
!function(t, r) {
- "object" == typeof exports && void 0 !== module ? module.exports = r() : "function" == typeof define && define.amd ? define(r) : t.glMatrix = r();
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = r() : "function" == typeof define && define.amd ? define(r) : t.glMatrix = r();
}(this, function() {
"use strict";
function r(t, r, n) {
@@ -1862,7 +1862,7 @@
}, {} ],
2: [ function(_dereq_, module, exports) {
!function(t, e) {
- "object" == typeof exports && void 0 !== module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.ShelfPack = e();
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.ShelfPack = e();
}(this, function() {
function t(t, e, i) {
i = i || {}, this.w = t || 64, this.h = e || 64, this.autoResize = !!i.autoResize,
@@ -1929,13 +1929,13 @@
}, t.prototype.getBin = function(t) {
return this.bins[t];
}, t.prototype.ref = function(t) {
- if (1 == ++t.refcount) {
+ if (1 === ++t.refcount) {
var e = t.h;
this.stats[e] = 1 + (0 | this.stats[e]);
}
return t.refcount;
}, t.prototype.unref = function(t) {
- return 0 === t.refcount ? 0 : (0 == --t.refcount && (this.stats[t.h]--, delete this.bins[t.id],
+ return 0 === t.refcount ? 0 : (0 === --t.refcount && (this.stats[t.h]--, delete this.bins[t.id],
this.freebins.push(t)), t.refcount);
}, t.prototype.clear = function() {
this.shelves = [], this.freebins = [], this.stats = {}, this.bins = {}, this.maxId = 0;
@@ -1965,7 +1965,7 @@
}, UnitBezier.prototype.sampleCurveDerivativeX = function(t) {
return (3 * this.ax * t + 2 * this.bx) * t + this.cx;
}, UnitBezier.prototype.solveCurveX = function(t, i) {
- void 0 === i && (i = 1e-6);
+ "undefined" == typeof i && (i = 1e-6);
var e, r, s, h, n;
for (s = t, n = 0; n < 8; n++) {
if (h = this.sampleCurveX(s) - t, Math.abs(h) < i) return s;
@@ -1986,7 +1986,7 @@
}, {} ],
4: [ function(_dereq_, module, exports) {
!function(e, t) {
- "object" == typeof exports && void 0 !== module ? t(exports) : "function" == typeof define && define.amd ? define([ "exports" ], t) : t(e.WhooTS = e.WhooTS || {});
+ "object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define([ "exports" ], t) : t(e.WhooTS = e.WhooTS || {});
}(this, function(e) {
function t(e, t, r, n, i, s) {
return s = s || {}, e + "?" + [ "bbox=" + o(r, n, i), "format=" + (s.format || "image/png"), "service=" + (s.service || "WMS"), "version=" + (s.version || "1.1.1"), "request=" + (s.request || "GetMap"), "srs=" + (s.srs || "EPSG:3857"), "width=" + (s.width || 256), "height=" + (s.height || 256), "layers=" + t ].join("&");
@@ -2893,7 +2893,7 @@
var t = document.createElement("canvas"), r = Object.create(isSupported.webGLContextAttributes);
return r.failIfMajorPerformanceCaveat = e, t.probablySupportsContext ? t.probablySupportsContext("webgl", r) || t.probablySupportsContext("experimental-webgl", r) : t.supportsContext ? t.supportsContext("webgl", r) || t.supportsContext("experimental-webgl", r) : t.getContext("webgl", r) || t.getContext("experimental-webgl", r);
}
- void 0 !== module && module.exports ? module.exports = isSupported : window && (window.mapboxgl = window.mapboxgl || {},
+ "undefined" != typeof module && module.exports ? module.exports = isSupported : window && (window.mapboxgl = window.mapboxgl || {},
window.mapboxgl.supported = isSupported);
var isWebGLSupportedCache = {};
isSupported.webGLContextAttributes = {
@@ -3174,7 +3174,7 @@
},
readSVarint: function() {
var t = this.readVarint();
- return t % 2 == 1 ? (t + 1) / -2 : t / 2;
+ return t % 2 === 1 ? (t + 1) / -2 : t / 2;
},
readBoolean: function() {
return Boolean(this.readVarint());
@@ -3356,7 +3356,7 @@
this.writeVarintField(t, Boolean(i));
}
};
- }).call(this, void 0 !== global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
+ }).call(this, "undefined" !== typeof global ? global : "undefined" !== typeof self ? self : "undefined" !== typeof window ? window : {});
}, {
"./buffer": 24
} ],
@@ -3906,7 +3906,7 @@
return "function" == typeof e;
}
function isPrimitive(e) {
- return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e;
+ return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || "undefined" == typeof e;
}
function objectToString(e) {
return Object.prototype.toString.call(e);
@@ -4011,7 +4011,7 @@
for (var t = Object.keys(r), n = t.length; n--; ) e[t[n]] = r[t[n]];
return e;
};
- }).call(this, _dereq_("_process"), void 0 !== global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
+ }).call(this, _dereq_("_process"), "undefined" !== typeof global ? global : "undefined" !== typeof self ? self : "undefined" !== typeof window ? window : {});
}, {
"./support/isBuffer": 32,
_process: 27,
@@ -4192,10 +4192,10 @@
var u = [];
for (var s in a.properties) {
var i = o[s];
- void 0 === i && (r.keys.push(s), i = r.keys.length - 1, o[s] = i);
+ "undefined" == typeof i && (r.keys.push(s), i = r.keys.length - 1, o[s] = i);
var p = wrapValue(a.properties[s]), l = t[p.key];
- void 0 === l && (r.values.push(p), l = r.values.length - 1, t[p.key] = l), u.push(i),
- u.push(l);
+ "undefined" == typeof l && (r.values.push(p), l = r.values.length - 1, t[p.key] = l),
+ u.push(i), u.push(l);
}
a.tags = u, r.features.push(a);
}
@@ -4225,7 +4225,7 @@
string_value: e
} : "boolean" === o ? r = {
bool_value: e
- } : "number" === o ? r = e % 1 != 0 ? {
+ } : "number" === o ? r = e % 1 !== 0 ? {
double_value: e
} : e < 0 ? {
sint_value: e
@@ -4870,7 +4870,7 @@
zoom: i[r]
}), t.getLayoutValue(o, {
zoom: i[n]
- }) ]), a.functionBase = t.getLayoutProperty(o).base, void 0 === a.functionBase && (a.functionBase = 1),
+ }) ]), a.functionBase = t.getLayoutProperty(o).base, "undefined" == typeof a.functionBase && (a.functionBase = 1),
a.functionType = t.getLayoutProperty(o).type || "exponential";
}
return a;
@@ -6630,9 +6630,9 @@
if (this.nextRow + s > this.height) return util.warnOnce("LineAtlas out of space"),
null;
for (var r = 0, n = 0; n < t.length; n++) r += t[n];
- for (var o = this.width / r, E = o / 2, T = t.length % 2 == 1, R = -h; R <= h; R++) for (var u = e.nextRow + h + R, d = e.width * u, l = T ? -t[t.length - 1] : 0, x = t[0], A = 1, _ = 0; _ < this.width; _++) {
+ for (var o = this.width / r, E = o / 2, T = t.length % 2 === 1, R = -h; R <= h; R++) for (var u = e.nextRow + h + R, d = e.width * u, l = T ? -t[t.length - 1] : 0, x = t[0], A = 1, _ = 0; _ < this.width; _++) {
for (;x < _ / o; ) l = x, x += t[A], T && A === t.length - 1 && (x += t[0]), A++;
- var p = Math.abs(_ - l * o), g = Math.abs(_ - x * o), w = Math.min(p, g), D = A % 2 == 1, U = void 0;
+ var p = Math.abs(_ - l * o), g = Math.abs(_ - x * o), w = Math.min(p, g), D = A % 2 === 1, U = void 0;
if (i) {
var f = h ? R / h * (E + 1) : 0;
if (D) {
@@ -7606,7 +7606,7 @@
var l = {};
if (isRasterType(this._source.type)) for (var m = Object.keys(h), p = 0; p < m.length; p++) {
var _ = m[p];
- r = TileCoord.fromID(_), (s = o._tiles[_]) && (void 0 === s.fadeEndTime || s.fadeEndTime >= Date.now()) && (o.findLoadedChildren(r, c, h) && (h[_] = !0),
+ r = TileCoord.fromID(_), (s = o._tiles[_]) && ("undefined" == typeof s.fadeEndTime || s.fadeEndTime >= Date.now()) && (o.findLoadedChildren(r, c, h) && (h[_] = !0),
(a = o.findLoadedParent(r, d, l)) && o.addTile(a.coord));
}
var f;
@@ -7888,7 +7888,7 @@
});
}, TileCoord.fromID = function(t) {
var i = t % 32, o = 1 << i, r = (t - i) / 32, e = r % o, n = (r - e) / o % o, h = Math.floor(r / (o * o));
- return h % 2 != 0 && (h = -1 * h - 1), h /= 2, new TileCoord(i, e, n, h);
+ return h % 2 !== 0 && (h = -1 * h - 1), h /= 2, new TileCoord(i, e, n, h);
}, module.exports = TileCoord;
}, {
"../geo/coordinate": 61,
@@ -11653,7 +11653,7 @@
var i = this;
if (this._checkLoaded(), void 0 !== this.sourceCaches[e]) throw new Error("There is already a source with this ID");
if (!t.type) throw new Error("The type property must be defined, but the only the following properties were given: " + Object.keys(t) + ".");
- if (!([ "vector", "raster", "geojson", "video", "image", "canvas" ].indexOf(t.type) >= 0 && this._validate(validateStyle.source, "sources." + e, t, null, r))) {
+ if (!([ "vector", "raster", "geojson", "video", "image", "canvas" ].indexOf(t.type) >= 0) || !this._validate(validateStyle.source, "sources." + e, t, null, r)) {
var a = this.sourceCaches[e] = new SourceCache(e, t, this.dispatcher);
a.style = this, a.setEventedParent(this, function() {
return {
@@ -14050,7 +14050,7 @@
e.deltaMode === window.WheelEvent.DOM_DELTA_LINE && (t *= 40)) : "mousewheel" === e.type && (t = -e.wheelDeltaY,
safari && (t /= 3));
var o = browser.now(), i = o - (this._time || 0);
- this._pos = DOM.mousePos(this._el, e), this._time = o, 0 !== t && t % 4.000244140625 == 0 ? this._type = "wheel" : 0 !== t && Math.abs(t) < 4 ? this._type = "trackpad" : i > 400 ? (this._type = null,
+ this._pos = DOM.mousePos(this._el, e), this._time = o, 0 !== t && t % 4.000244140625 === 0 ? this._type = "wheel" : 0 !== t && Math.abs(t) < 4 ? this._type = "trackpad" : i > 400 ? (this._type = null,
this._lastValue = t, this._timeout = setTimeout(this._onTimeout, 40)) : this._type || (this._type = Math.abs(i * t) < 200 ? "trackpad" : "wheel",
this._timeout && (clearTimeout(this._timeout), this._timeout = null, t += this._lastValue)),
e.shiftKey && t && (t /= 4), this._type && this._zoom(-t, e), e.preventDefault();
@@ -14224,7 +14224,7 @@
this._setupContainer(), this._setupPainter(), this.on("move", this._update.bind(this, !1)),
this.on("zoom", this._update.bind(this, !0)), this.on("moveend", function() {
o.animationLoop.set(300), o._rerender();
- }), void 0 !== window && (window.addEventListener("online", this._onWindowOnline, !1),
+ }), "undefined" != typeof window && (window.addEventListener("online", this._onWindowOnline, !1),
window.addEventListener("resize", this._onWindowResize, !1)), bindHandlers(this, e),
this._hash = e.hash && new Hash().addTo(this), this._hash && this._hash._onHashChange() || this.jumpTo({
center: e.center,
@@ -14534,7 +14534,7 @@
this;
}, e.prototype.remove = function() {
this._hash && this._hash.remove(), browser.cancelFrame(this._frameId), this.setStyle(null),
- void 0 !== window && (window.removeEventListener("resize", this._onWindowResize, !1),
+ "undefined" != typeof window && (window.removeEventListener("resize", this._onWindowResize, !1),
window.removeEventListener("online", this._onWindowOnline, !1));
var t = this.painter.gl.getExtension("WEBGL_lose_context");
t && t.loseContext(), removeNode(this._canvasContainer), removeNode(this._controlContainer),
@@ -14784,7 +14784,7 @@
}, r);
};
if ("<response>" === r.type) e = this.callbacks[r.id], delete this.callbacks[r.id],
- e && e(r.error || null, r.data); else if (void 0 !== r.id && this.parent[r.type]) this.parent[r.type](r.sourceMapId, r.data, i); else if (void 0 !== r.id && this.parent.getWorkerSource) {
+ e && e(r.error || null, r.data); else if ("undefined" != typeof r.id && this.parent[r.type]) this.parent[r.type](r.sourceMapId, r.data, i); else if ("undefined" != typeof r.id && this.parent.getWorkerSource) {
var p = r.type.split("."), d = this.parent.getWorkerSource(r.sourceMapId, p[0]);
d[p[1]](r.data, i);
} else this.parent[r.type](r.data);
@@ -15491,11 +15491,11 @@
}
return !1;
}, module.exports.charAllowsIdeographicBreaking = function(a) {
- return !!(!(a < 11904) && (isChar["Bopomofo Extended"](a) || isChar.Bopomofo(a) || isChar["CJK Compatibility Forms"](a) || isChar["CJK Compatibility Ideographs"](a) || isChar["CJK Compatibility"](a) || isChar["CJK Radicals Supplement"](a) || isChar["CJK Strokes"](a) || isChar["CJK Symbols and Punctuation"](a) || isChar["CJK Unified Ideographs Extension A"](a) || isChar["CJK Unified Ideographs"](a) || isChar["Enclosed CJK Letters and Months"](a) || isChar["Halfwidth and Fullwidth Forms"](a) || isChar.Hiragana(a) || isChar["Ideographic Description Characters"](a) || isChar["Kangxi Radicals"](a) || isChar["Katakana Phonetic Extensions"](a) || isChar.Katakana(a) || isChar["Vertical Forms"](a) || isChar["Yi Radicals"](a) || isChar["Yi Syllables"](a)));
+ return !(a < 11904) && (!!isChar["Bopomofo Extended"](a) || !!isChar.Bopomofo(a) || !!isChar["CJK Compatibility Forms"](a) || !!isChar["CJK Compatibility Ideographs"](a) || !!isChar["CJK Compatibility"](a) || !!isChar["CJK Radicals Supplement"](a) || !!isChar["CJK Strokes"](a) || !!isChar["CJK Symbols and Punctuation"](a) || !!isChar["CJK Unified Ideographs Extension A"](a) || !!isChar["CJK Unified Ideographs"](a) || !!isChar["Enclosed CJK Letters and Months"](a) || !!isChar["Halfwidth and Fullwidth Forms"](a) || !!isChar.Hiragana(a) || !!isChar["Ideographic Description Characters"](a) || !!isChar["Kangxi Radicals"](a) || !!isChar["Katakana Phonetic Extensions"](a) || !!isChar.Katakana(a) || !!isChar["Vertical Forms"](a) || !!isChar["Yi Radicals"](a) || !!isChar["Yi Syllables"](a));
}, exports.charHasUprightVerticalOrientation = function(a) {
- return !!(746 === a || 747 === a || !(a < 4352) && (isChar["Bopomofo Extended"](a) || isChar.Bopomofo(a) || isChar["CJK Compatibility Forms"](a) && !(a >= 65097 && a <= 65103) || isChar["CJK Compatibility Ideographs"](a) || isChar["CJK Compatibility"](a) || isChar["CJK Radicals Supplement"](a) || isChar["CJK Strokes"](a) || !(!isChar["CJK Symbols and Punctuation"](a) || a >= 12296 && a <= 12305 || a >= 12308 && a <= 12319 || 12336 === a) || isChar["CJK Unified Ideographs Extension A"](a) || isChar["CJK Unified Ideographs"](a) || isChar["Enclosed CJK Letters and Months"](a) || isChar["Hangul Compatibility Jamo"](a) || isChar["Hangul Jamo Extended-A"](a) || isChar["Hangul Jamo Extended-B"](a) || isChar["Hangul Jamo"](a) || isChar["Hangul Syllables"](a) || isChar.Hiragana(a) || isChar["Ideographic Description Characters"](a) || isChar.Kanbun(a) || isChar["Kangxi Radicals"](a) || isChar["Katakana Phonetic Extensions"](a) || isChar.Katakana(a) && 12540 !== a || !(!isChar["Halfwidth and Fullwidth Forms"](a) || 65288 === a || 65289 === a || 65293 === a || a >= 65306 && a <= 65310 || 65339 === a || 65341 === a || 65343 === a || a >= 65371 && a <= 65503 || 65507 === a || a >= 65512 && a <= 65519) || !(!isChar["Small Form Variants"](a) || a >= 65112 && a <= 65118 || a >= 65123 && a <= 65126) || isChar["Unified Canadian Aboriginal Syllabics"](a) || isChar["Unified Canadian Aboriginal Syllabics Extended"](a) || isChar["Vertical Forms"](a) || isChar["Yijing Hexagram Symbols"](a) || isChar["Yi Syllables"](a) || isChar["Yi Radicals"](a)));
+ return 746 === a || 747 === a || !(a < 4352) && (!!isChar["Bopomofo Extended"](a) || !!isChar.Bopomofo(a) || !(!isChar["CJK Compatibility Forms"](a) || a >= 65097 && a <= 65103) || !!isChar["CJK Compatibility Ideographs"](a) || !!isChar["CJK Compatibility"](a) || !!isChar["CJK Radicals Supplement"](a) || !!isChar["CJK Strokes"](a) || !(!isChar["CJK Symbols and Punctuation"](a) || a >= 12296 && a <= 12305 || a >= 12308 && a <= 12319 || 12336 === a) || !!isChar["CJK Unified Ideographs Extension A"](a) || !!isChar["CJK Unified Ideographs"](a) || !!isChar["Enclosed CJK Letters and Months"](a) || !!isChar["Hangul Compatibility Jamo"](a) || !!isChar["Hangul Jamo Extended-A"](a) || !!isChar["Hangul Jamo Extended-B"](a) || !!isChar["Hangul Jamo"](a) || !!isChar["Hangul Syllables"](a) || !!isChar.Hiragana(a) || !!isChar["Ideographic Description Characters"](a) || !!isChar.Kanbun(a) || !!isChar["Kangxi Radicals"](a) || !!isChar["Katakana Phonetic Extensions"](a) || !(!isChar.Katakana(a) || 12540 === a) || !(!isChar["Halfwidth and Fullwidth Forms"](a) || 65288 === a || 65289 === a || 65293 === a || a >= 65306 && a <= 65310 || 65339 === a || 65341 === a || 65343 === a || a >= 65371 && a <= 65503 || 65507 === a || a >= 65512 && a <= 65519) || !(!isChar["Small Form Variants"](a) || a >= 65112 && a <= 65118 || a >= 65123 && a <= 65126) || !!isChar["Unified Canadian Aboriginal Syllabics"](a) || !!isChar["Unified Canadian Aboriginal Syllabics Extended"](a) || !!isChar["Vertical Forms"](a) || !!isChar["Yijing Hexagram Symbols"](a) || !!isChar["Yi Syllables"](a) || !!isChar["Yi Radicals"](a));
}, exports.charHasNeutralVerticalOrientation = function(a) {
- return !!(isChar["Latin-1 Supplement"](a) && (167 === a || 169 === a || 174 === a || 177 === a || 188 === a || 189 === a || 190 === a || 215 === a || 247 === a) || isChar["General Punctuation"](a) && (8214 === a || 8224 === a || 8225 === a || 8240 === a || 8241 === a || 8251 === a || 8252 === a || 8258 === a || 8263 === a || 8264 === a || 8265 === a || 8273 === a) || isChar["Letterlike Symbols"](a) || isChar["Number Forms"](a) || isChar["Miscellaneous Technical"](a) && (a >= 8960 && a <= 8967 || a >= 8972 && a <= 8991 || a >= 8996 && a <= 9e3 || 9003 === a || a >= 9085 && a <= 9114 || a >= 9150 && a <= 9165 || 9167 === a || a >= 9169 && a <= 9179 || a >= 9186 && a <= 9215) || isChar["Control Pictures"](a) && 9251 !== a || isChar["Optical Character Recognition"](a) || isChar["Enclosed Alphanumerics"](a) || isChar["Geometric Shapes"](a) || isChar["Miscellaneous Symbols"](a) && !(a >= 9754 && a <= 9759) || isChar["Miscellaneous Symbols and Arrows"](a) && (a >= 11026 && a <= 11055 || a >= 11088 && a <= 11097 || a >= 11192 && a <= 11243) || isChar["CJK Symbols and Punctuation"](a) || isChar.Katakana(a) || isChar["Private Use Area"](a) || isChar["CJK Compatibility Forms"](a) || isChar["Small Form Variants"](a) || isChar["Halfwidth and Fullwidth Forms"](a) || 8734 === a || 8756 === a || 8757 === a || a >= 9984 && a <= 10087 || a >= 10102 && a <= 10131 || 65532 === a || 65533 === a);
+ return !(!isChar["Latin-1 Supplement"](a) || 167 !== a && 169 !== a && 174 !== a && 177 !== a && 188 !== a && 189 !== a && 190 !== a && 215 !== a && 247 !== a) || !(!isChar["General Punctuation"](a) || 8214 !== a && 8224 !== a && 8225 !== a && 8240 !== a && 8241 !== a && 8251 !== a && 8252 !== a && 8258 !== a && 8263 !== a && 8264 !== a && 8265 !== a && 8273 !== a) || !!isChar["Letterlike Symbols"](a) || !!isChar["Number Forms"](a) || !(!isChar["Miscellaneous Technical"](a) || !(a >= 8960 && a <= 8967 || a >= 8972 && a <= 8991 || a >= 8996 && a <= 9e3 || 9003 === a || a >= 9085 && a <= 9114 || a >= 9150 && a <= 9165 || 9167 === a || a >= 9169 && a <= 9179 || a >= 9186 && a <= 9215)) || !(!isChar["Control Pictures"](a) || 9251 === a) || !!isChar["Optical Character Recognition"](a) || !!isChar["Enclosed Alphanumerics"](a) || !!isChar["Geometric Shapes"](a) || !(!isChar["Miscellaneous Symbols"](a) || a >= 9754 && a <= 9759) || !(!isChar["Miscellaneous Symbols and Arrows"](a) || !(a >= 11026 && a <= 11055 || a >= 11088 && a <= 11097 || a >= 11192 && a <= 11243)) || !!isChar["CJK Symbols and Punctuation"](a) || !!isChar.Katakana(a) || !!isChar["Private Use Area"](a) || !!isChar["CJK Compatibility Forms"](a) || !!isChar["Small Form Variants"](a) || !!isChar["Halfwidth and Fullwidth Forms"](a) || 8734 === a || 8756 === a || 8757 === a || a >= 9984 && a <= 10087 || a >= 10102 && a <= 10131 || 65532 === a || 65533 === a;
}, exports.charHasRotatedVerticalOrientation = function(a) {
return !(exports.charHasUprightVerticalOrientation(a) || exports.charHasNeutralVerticalOrientation(a));
};
@@ -15678,7 +15678,7 @@
var n = r.length, o = new Array(r.length), a = null;
r.forEach(function(r, i) {
e(r, function(r, e) {
- r && (a = r), o[i] = e, 0 == --n && t(a, o);
+ r && (a = r), o[i] = e, 0 === --n && t(a, o);
});
});
}, exports.values = function(r) {
@@ -15974,12 +15974,12 @@
var cachedSetTimeout, cachedClearTimeout, process = module.exports = {};
!function() {
try {
- cachedSetTimeout = "function" == typeof setTimeout ? setTimeout : defaultSetTimout;
+ cachedSetTimeout = "function" === typeof setTimeout ? setTimeout : defaultSetTimout;
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
- cachedClearTimeout = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout;
+ cachedClearTimeout = "function" === typeof clearTimeout ? clearTimeout : defaultClearTimeout;
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
@@ -16031,8 +16031,8 @@
}
}
function Promise(fn) {
- if ("object" != typeof this) throw new TypeError("Promises must be constructed via new");
- if ("function" != typeof fn) throw new TypeError("not a function");
+ if ("object" !== typeof this) throw new TypeError("Promises must be constructed via new");
+ if ("function" !== typeof fn) throw new TypeError("not a function");
this._45 = 0, this._81 = 0, this._65 = null, this._54 = null, fn !== noop && doResolve(fn, this);
}
function safeThen(self, onFulfilled, onRejected) {
@@ -16057,12 +16057,12 @@
}
function resolve(self, newValue) {
if (newValue === self) return reject(self, new TypeError("A promise cannot be resolved with itself."));
- if (newValue && ("object" == typeof newValue || "function" == typeof newValue)) {
+ if (newValue && ("object" === typeof newValue || "function" === typeof newValue)) {
var then = getThen(newValue);
if (then === IS_ERROR) return reject(self, LAST_ERROR);
if (then === self.then && newValue instanceof Promise) return self._81 = 3, self._65 = newValue,
void finale(self);
- if ("function" == typeof then) return void doResolve(then.bind(newValue), self);
+ if ("function" === typeof then) return void doResolve(then.bind(newValue), self);
}
self._81 = 1, self._65 = newValue, finale(self);
}
@@ -16076,7 +16076,7 @@
}
}
function Handler(onFulfilled, onRejected, promise) {
- this.onFulfilled = "function" == typeof onFulfilled ? onFulfilled : null, this.onRejected = "function" == typeof onRejected ? onRejected : null,
+ this.onFulfilled = "function" === typeof onFulfilled ? onFulfilled : null, this.onRejected = "function" === typeof onRejected ? onRejected : null,
this.promise = promise;
}
function doResolve(fn, promise) {
@@ -16481,7 +16481,7 @@
var markerName;
if (ReactFeatureFlags.logTopLevelRenders) {
var wrappedElement = wrapperInstance._currentElement.props.child, type = wrappedElement.type;
- markerName = "React mount: " + ("string" == typeof type ? type : type.displayName || type.name),
+ markerName = "React mount: " + ("string" === typeof type ? type : type.displayName || type.name),
console.time(markerName);
}
var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0);
@@ -16548,7 +16548,7 @@
ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);
},
_renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) {
- ReactUpdateQueue.validateCallback(callback, "ReactDOM.render"), React.isValidElement(nextElement) || _prodInvariant("39", "string" == typeof nextElement ? " Instead of passing a string like 'div', pass React.createElement('div') or <div />." : "function" == typeof nextElement ? " Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />." : null != nextElement && void 0 !== nextElement.props ? " This may be caused by unintentionally loading two independent copies of React." : "");
+ ReactUpdateQueue.validateCallback(callback, "ReactDOM.render"), React.isValidElement(nextElement) || _prodInvariant("39", "string" === typeof nextElement ? " Instead of passing a string like 'div', pass React.createElement('div') or <div />." : "function" === typeof nextElement ? " Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />." : null != nextElement && void 0 !== nextElement.props ? " This may be caused by unintentionally loading two independent copies of React." : "");
var nextContext, nextWrappedElement = React.createElement(TopLevelWrapper, {
child: nextElement
});
@@ -16610,7 +16610,7 @@
COMPOSITE: 1,
EMPTY: 2,
getType: function(node) {
- return null === node || !1 === node ? ReactNodeTypes.EMPTY : React.isValidElement(node) ? "function" == typeof node.type ? ReactNodeTypes.COMPOSITE : ReactNodeTypes.HOST : void _prodInvariant("26", node);
+ return null === node || !1 === node ? ReactNodeTypes.EMPTY : React.isValidElement(node) ? "function" === typeof node.type ? ReactNodeTypes.COMPOSITE : ReactNodeTypes.HOST : void _prodInvariant("26", node);
}
});
module.exports = ReactNodeTypes;
@@ -16665,19 +16665,19 @@
return "";
}
function isInternalComponentType(type) {
- return "function" == typeof type && void 0 !== type.prototype && "function" == typeof type.prototype.mountComponent && "function" == typeof type.prototype.receiveComponent;
+ return "function" === typeof type && "undefined" !== typeof type.prototype && "function" === typeof type.prototype.mountComponent && "function" === typeof type.prototype.receiveComponent;
}
function instantiateReactComponent(node, shouldHaveDebugID) {
var instance;
- if (null === node || !1 === node) instance = ReactEmptyComponent.create(instantiateReactComponent); else if ("object" == typeof node) {
+ if (null === node || !1 === node) instance = ReactEmptyComponent.create(instantiateReactComponent); else if ("object" === typeof node) {
var element = node, type = element.type;
- if ("function" != typeof type && "string" != typeof type) {
+ if ("function" !== typeof type && "string" !== typeof type) {
var info = "";
info += getDeclarationErrorAddendum(element._owner), _prodInvariant("130", null == type ? type : typeof type, info);
}
- "string" == typeof element.type ? instance = ReactHostComponent.createInternalComponent(element) : isInternalComponentType(element.type) ? (instance = new element.type(element),
+ "string" === typeof element.type ? instance = ReactHostComponent.createInternalComponent(element) : isInternalComponentType(element.type) ? (instance = new element.type(element),
instance.getHostNode || (instance.getHostNode = instance.getNativeNode)) : instance = new ReactCompositeComponentWrapper(element);
- } else "string" == typeof node || "number" == typeof node ? instance = ReactHostComponent.createInstanceForText(node) : _prodInvariant("131", typeof node);
+ } else "string" === typeof node || "number" === typeof node ? instance = ReactHostComponent.createInstanceForText(node) : _prodInvariant("131", typeof node);
return instance._mountIndex = 0, instance._mountImage = null, instance;
}
var _prodInvariant = __webpack_require__(2), _assign = __webpack_require__(3), ReactCompositeComponent = __webpack_require__(131), ReactEmptyComponent = __webpack_require__(63), ReactHostComponent = __webpack_require__(65), ReactCompositeComponentWrapper = (__webpack_require__(205),
@@ -16727,7 +16727,7 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function getComponentKey(component, index) {
- return component && "object" == typeof component && null != component.key ? KeyEscapeUtils.escape(component.key) : index.toString(36);
+ return component && "object" === typeof component && null != component.key ? KeyEscapeUtils.escape(component.key) : index.toString(36);
}
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
var type = typeof children;
@@ -16886,7 +16886,7 @@
0 === anchor.length ? exports.anchors[2] : anchor.join("-");
}, normalizedOffsets = function(offset) {
if (!offset) return normalizedOffsets(new mapbox_gl_1.Point(0, 0));
- if ("number" == typeof offset) {
+ if ("number" === typeof offset) {
var cornerOffset = Math.round(Math.sqrt(.5 * Math.pow(offset, 2)));
return {
center: new mapbox_gl_1.Point(offset, offset),
@@ -16953,7 +16953,7 @@
return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : "");
}
function getDisplayName(element) {
- return null == element ? "#empty" : "string" == typeof element || "number" == typeof element ? "#text" : "string" == typeof element.type ? element.type : element.type.displayName || element.type.name || "Unknown";
+ return null == element ? "#empty" : "string" === typeof element || "number" === typeof element ? "#text" : "string" === typeof element.type ? element.type : element.type.displayName || element.type.name || "Unknown";
}
function describeID(id) {
var ownerName, name = ReactComponentTreeHook.getDisplayName(id), element = ReactComponentTreeHook.getElement(id), ownerID = ReactComponentTreeHook.getOwnerID(id);
@@ -16961,7 +16961,7 @@
describeComponentFrame(name, element && element._source, ownerName);
}
var setItem, getItem, removeItem, getItemIDs, addRoot, removeRoot, getRootIDs, _prodInvariant = __webpack_require__(19), ReactCurrentOwner = __webpack_require__(11), canUseCollections = (__webpack_require__(0),
- __webpack_require__(1), "function" == typeof Array.from && "function" == typeof Map && isNative(Map) && null != Map.prototype && "function" == typeof Map.prototype.keys && isNative(Map.prototype.keys) && "function" == typeof Set && isNative(Set) && null != Set.prototype && "function" == typeof Set.prototype.keys && isNative(Set.prototype.keys));
+ __webpack_require__(1), "function" === typeof Array.from && "function" === typeof Map && isNative(Map) && null != Map.prototype && "function" === typeof Map.prototype.keys && isNative(Map.prototype.keys) && "function" === typeof Set && isNative(Set) && null != Set.prototype && "function" === typeof Set.prototype.keys && isNative(Set.prototype.keys));
if (canUseCollections) {
var itemMap = new Map(), rootIDSet = new Set();
setItem = function(id, item) {
@@ -17012,7 +17012,7 @@
item || _prodInvariant("144"), item.childIDs = nextChildIDs;
for (var i = 0; i < nextChildIDs.length; i++) {
var nextChildID = nextChildIDs[i], nextChild = getItem(nextChildID);
- nextChild || _prodInvariant("140"), null == nextChild.childIDs && "object" == typeof nextChild.element && null != nextChild.element && _prodInvariant("141"),
+ nextChild || _prodInvariant("140"), null == nextChild.childIDs && "object" === typeof nextChild.element && null != nextChild.element && _prodInvariant("141"),
nextChild.isMounted || _prodInvariant("71"), null == nextChild.parentID && (nextChild.parentID = id),
nextChild.parentID !== id && _prodInvariant("142", nextChildID, nextChild.parentID, id);
}
@@ -17098,7 +17098,7 @@
},
getText: function(id) {
var element = ReactComponentTreeHook.getElement(id);
- return "string" == typeof element ? element : "number" == typeof element ? "" + element : null;
+ return "string" === typeof element ? element : "number" === typeof element ? "" + element : null;
},
getUpdateCount: function(id) {
var item = getItem(id);
@@ -17110,7 +17110,7 @@
module.exports = ReactComponentTreeHook;
}, function(module, exports, __webpack_require__) {
"use strict";
- var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
+ var REACT_ELEMENT_TYPE = "function" === typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
module.exports = REACT_ELEMENT_TYPE;
}, function(module, exports, __webpack_require__) {
"use strict";
@@ -17124,12 +17124,12 @@
try {
g = g || Function("return this")() || (0, eval)("this");
} catch (e) {
- "object" == typeof window && (g = window);
+ "object" === typeof window && (g = window);
}
module.exports = g;
}, function(module, exports, __webpack_require__) {
"use strict";
- "undefined" == typeof Promise && (__webpack_require__(114).enable(), window.Promise = __webpack_require__(113)),
+ "undefined" === typeof Promise && (__webpack_require__(114).enable(), window.Promise = __webpack_require__(113)),
__webpack_require__(210), Object.assign = __webpack_require__(3);
}, function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -17165,8 +17165,8 @@
};
}
module.exports = rawAsap;
- var requestFlush, queue = [], flushing = !1, index = 0, capacity = 1024, scope = void 0 !== global ? global : self, BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;
- requestFlush = "function" == typeof BrowserMutationObserver ? function(callback) {
+ var requestFlush, queue = [], flushing = !1, index = 0, capacity = 1024, scope = "undefined" !== typeof global ? global : self, BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;
+ requestFlush = "function" === typeof BrowserMutationObserver ? function(callback) {
var toggle = 1, observer = new BrowserMutationObserver(callback), node = document.createTextNode("");
return observer.observe(node, {
characterData: !0
@@ -17183,10 +17183,10 @@
}
function _possibleConstructorReturn(self, call) {
if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !call || "object" != typeof call && "function" != typeof call ? self : call;
+ return !call || "object" !== typeof call && "function" !== typeof call ? self : call;
}
function _inherits(subClass, superClass) {
- if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
+ if ("function" !== typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
@@ -17262,7 +17262,7 @@
for (var key in obj) keys.push(key);
return keys;
}
- exports = module.exports = "function" == typeof Object.keys ? Object.keys : shim,
+ exports = module.exports = "function" === typeof Object.keys ? Object.keys : shim,
exports.shim = shim;
}, function(module, exports) {}, function(module, exports, __webpack_require__) {
"use strict";
@@ -17291,9 +17291,9 @@
"use strict";
function toArray(obj) {
var length = obj.length;
- if ((Array.isArray(obj) || "object" != typeof obj && "function" != typeof obj) && invariant(!1),
- "number" != typeof length && invariant(!1), 0 === length || length - 1 in obj || invariant(!1),
- "function" == typeof obj.callee && invariant(!1), obj.hasOwnProperty) try {
+ if ((Array.isArray(obj) || "object" !== typeof obj && "function" !== typeof obj) && invariant(!1),
+ "number" !== typeof length && invariant(!1), 0 === length || length - 1 in obj || invariant(!1),
+ "function" === typeof obj.callee && invariant(!1), obj.hasOwnProperty) try {
return Array.prototype.slice.call(obj);
} catch (e) {}
for (var ret = Array(length), ii = 0; ii < length; ii++) ret[ii] = obj[ii];
@@ -17385,7 +17385,7 @@
"use strict";
function isNode(object) {
var doc = object ? object.ownerDocument || object : document, defaultView = doc.defaultView || window;
- return !(!object || !("function" == typeof defaultView.Node ? object instanceof defaultView.Node : "object" == typeof object && "number" == typeof object.nodeType && "string" == typeof object.nodeName));
+ return !(!object || !("function" === typeof defaultView.Node ? object instanceof defaultView.Node : "object" === typeof object && "number" === typeof object.nodeType && "string" === typeof object.nodeName));
}
module.exports = isNode;
}, function(module, exports, __webpack_require__) {
@@ -17533,9 +17533,9 @@
if (!1 === value) return FALSE;
if (0 === value) return ZERO;
if ("" === value) return EMPTYSTRING;
- if ("object" == typeof value || "function" == typeof value) try {
+ if ("object" === typeof value || "function" === typeof value) try {
var then = value.then;
- if ("function" == typeof then) return new Promise(then.bind(value));
+ if ("function" === typeof then) return new Promise(then.bind(value));
} catch (ex) {
return new Promise(function(resolve, reject) {
reject(ex);
@@ -17546,7 +17546,7 @@
var args = Array.prototype.slice.call(arr);
return new Promise(function(resolve, reject) {
function res(i, val) {
- if (val && ("object" == typeof val || "function" == typeof val)) {
+ if (val && ("object" === typeof val || "function" === typeof val)) {
if (val instanceof Promise && val.then === Promise.prototype.then) {
for (;3 === val._81; ) val = val._65;
return 1 === val._81 ? res(i, val._65) : (2 === val._81 && reject(val._65), void val.then(function(val) {
@@ -17554,13 +17554,13 @@
}, reject));
}
var then = val.then;
- if ("function" == typeof then) {
+ if ("function" === typeof then) {
return void new Promise(then.bind(val)).then(function(val) {
res(i, val);
}, reject);
}
}
- args[i] = val, 0 == --remaining && resolve(args);
+ args[i] = val, 0 === --remaining && resolve(args);
}
if (0 === args.length) return resolve([]);
for (var remaining = args.length, i = 0; i < args.length; i++) res(i, args[i]);
@@ -17662,10 +17662,10 @@
module.exports = function(isValidElement, throwOnDirectAccess) {
function getIteratorFn(maybeIterable) {
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
- if ("function" == typeof iteratorFn) return iteratorFn;
+ if ("function" === typeof iteratorFn) return iteratorFn;
}
function is(x, y) {
- return x === y ? 0 !== x || 1 / x == 1 / y : x !== x && y !== y;
+ return x === y ? 0 !== x || 1 / x === 1 / y : x !== x && y !== y;
}
function PropTypeError(message) {
this.message = message, this.stack = "";
@@ -17689,7 +17689,7 @@
}
function createArrayOfTypeChecker(typeChecker) {
function validate(props, propName, componentName, location, propFullName) {
- if ("function" != typeof typeChecker) return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
+ if ("function" !== typeof typeChecker) return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
var propValue = props[propName];
if (!Array.isArray(propValue)) {
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + getPropType(propValue) + "` supplied to `" + componentName + "`, expected an array.");
@@ -17721,7 +17721,7 @@
}
function createObjectOfTypeChecker(typeChecker) {
function validate(props, propName, componentName, location, propFullName) {
- if ("function" != typeof typeChecker) return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
+ if ("function" !== typeof typeChecker) return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
var propValue = props[propName], propType = getPropType(propValue);
if ("object" !== propType) return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` supplied to `" + componentName + "`, expected an object.");
for (var key in propValue) if (propValue.hasOwnProperty(key)) {
@@ -17742,7 +17742,7 @@
if (!Array.isArray(arrayOfTypeCheckers)) return emptyFunction.thatReturnsNull;
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
var checker = arrayOfTypeCheckers[i];
- if ("function" != typeof checker) return warning(!1, "Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.", getPostfixForTypeWarning(checker), i),
+ if ("function" !== typeof checker) return warning(!1, "Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.", getPostfixForTypeWarning(checker), i),
emptyFunction.thatReturnsNull;
}
return createChainableTypeChecker(validate);
@@ -17791,14 +17791,14 @@
}
}
function isSymbol(propType, propValue) {
- return "symbol" === propType || ("Symbol" === propValue["@@toStringTag"] || "function" == typeof Symbol && propValue instanceof Symbol);
+ return "symbol" === propType || ("Symbol" === propValue["@@toStringTag"] || "function" === typeof Symbol && propValue instanceof Symbol);
}
function getPropType(propValue) {
var propType = typeof propValue;
return Array.isArray(propValue) ? "array" : propValue instanceof RegExp ? "object" : isSymbol(propType, propValue) ? "symbol" : propType;
}
function getPreciseType(propValue) {
- if (void 0 === propValue || null === propValue) return "" + propValue;
+ if ("undefined" === typeof propValue || null === propValue) return "" + propValue;
var propType = getPropType(propValue);
if ("object" === propType) {
if (propValue instanceof Date) return "date";
@@ -17825,7 +17825,7 @@
function getClassName(propValue) {
return propValue.constructor && propValue.constructor.name ? propValue.constructor.name : ANONYMOUS;
}
- var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", ANONYMOUS = "<<anonymous>>", ReactPropTypes = {
+ var ITERATOR_SYMBOL = "function" === typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", ANONYMOUS = "<<anonymous>>", ReactPropTypes = {
array: createPrimitiveTypeChecker("array"),
bool: createPrimitiveTypeChecker("boolean"),
func: createPrimitiveTypeChecker("function"),
@@ -17969,7 +17969,7 @@
}
function getDataFromCustomEvent(nativeEvent) {
var detail = nativeEvent.detail;
- return "object" == typeof detail && "data" in detail ? detail.data : null;
+ return "object" === typeof detail && "data" in detail ? detail.data : null;
}
function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
var eventType, fallbackData;
@@ -18033,7 +18033,7 @@
ExecutionEnvironment.canUseDOM && "documentMode" in document && (documentMode = document.documentMode);
var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && "TextEvent" in window && !documentMode && !function() {
var opera = window.opera;
- return "object" == typeof opera && "function" == typeof opera.version && parseInt(opera.version(), 10) <= 12;
+ return "object" === typeof opera && "function" === typeof opera.version && parseInt(opera.version(), 10) <= 12;
}(), useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11), SPACEBAR_CODE = 32, SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), eventTypes = {
beforeInput: {
phasedRegistrationNames: {
@@ -18217,7 +18217,7 @@
{
dangerouslyReplaceNodeWithMarkup: function(oldChild, markup) {
if (ExecutionEnvironment.canUseDOM || _prodInvariant("56"), markup || _prodInvariant("57"),
- "HTML" === oldChild.nodeName && _prodInvariant("58"), "string" == typeof markup) {
+ "HTML" === oldChild.nodeName && _prodInvariant("58"), "string" === typeof markup) {
var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
oldChild.parentNode.replaceChild(newChild, oldChild);
} else DOMLazyTree.replaceChildWithTree(oldChild, markup);
@@ -18463,7 +18463,7 @@
var ReactReconciler = __webpack_require__(16), instantiateReactComponent = __webpack_require__(74), shouldUpdateReactComponent = (__webpack_require__(36),
__webpack_require__(46)), traverseAllChildren = __webpack_require__(77);
__webpack_require__(1);
- void 0 !== process && __webpack_require__.i({
+ "undefined" !== typeof process && __webpack_require__.i({
NODE_ENV: "production",
PUBLIC_URL: ""
});
@@ -18549,7 +18549,7 @@
inst.props = publicProps, inst.context = publicContext, inst.refs = emptyObject,
inst.updater = updateQueue, this._instance = inst, ReactInstanceMap.set(inst, this);
var initialState = inst.state;
- void 0 === initialState && (inst.state = initialState = null), ("object" != typeof initialState || Array.isArray(initialState)) && _prodInvariant("106", this.getName() || "ReactCompositeComponent"),
+ void 0 === initialState && (inst.state = initialState = null), ("object" !== typeof initialState || Array.isArray(initialState)) && _prodInvariant("106", this.getName() || "ReactCompositeComponent"),
this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1;
var markup;
return markup = inst.unstable_handleError ? this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context) : this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context),
@@ -18617,7 +18617,7 @@
_processChildContext: function(currentContext) {
var childContext, Component = this._currentElement.type, inst = this._instance;
if (inst.getChildContext && (childContext = inst.getChildContext()), childContext) {
- "object" != typeof Component.childContextTypes && _prodInvariant("107", this.getName() || "ReactCompositeComponent");
+ "object" !== typeof Component.childContextTypes && _prodInvariant("107", this.getName() || "ReactCompositeComponent");
for (var name in childContext) name in Component.childContextTypes || _prodInvariant("108", this.getName() || "ReactCompositeComponent", name);
return _assign({}, currentContext, childContext);
}
@@ -18651,7 +18651,7 @@
if (replace && 1 === queue.length) return queue[0];
for (var nextState = _assign({}, replace ? queue[0] : inst.state), i = replace ? 1 : 0; i < queue.length; i++) {
var partial = queue[i];
- _assign(nextState, "function" == typeof partial ? partial.call(inst, nextState, props, context) : partial);
+ _assign(nextState, "function" === typeof partial ? partial.call(inst, nextState, props, context) : partial);
}
return nextState;
},
@@ -18729,7 +18729,7 @@
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
};
- "undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
ComponentTree: {
getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,
getNodeFromInstance: function(inst) {
@@ -18756,8 +18756,8 @@
function assertValidProps(component, props) {
props && (voidElementTags[component._tag] && (null != props.children || null != props.dangerouslySetInnerHTML) && _prodInvariant("137", component._tag, component._currentElement._owner ? " Check the render method of " + component._currentElement._owner.getName() + "." : ""),
null != props.dangerouslySetInnerHTML && (null != props.children && _prodInvariant("60"),
- "object" == typeof props.dangerouslySetInnerHTML && HTML in props.dangerouslySetInnerHTML || _prodInvariant("61")),
- null != props.style && "object" != typeof props.style && _prodInvariant("62", getDeclarationErrorAddendum(component)));
+ "object" === typeof props.dangerouslySetInnerHTML && HTML in props.dangerouslySetInnerHTML || _prodInvariant("61")),
+ null != props.style && "object" !== typeof props.style && _prodInvariant("62", getDeclarationErrorAddendum(component)));
}
function enqueuePutListener(inst, registrationName, listener, transaction) {
if (!(transaction instanceof ReactServerRenderingTransaction)) {
@@ -19246,7 +19246,7 @@
function flattenChildren(children) {
var content = "";
return React.Children.forEach(children, function(child) {
- null != child && ("string" == typeof child || "number" == typeof child ? content += child : didWarnInvalidOptionChildren || (didWarnInvalidOptionChildren = !0));
+ null != child && ("string" === typeof child || "number" === typeof child ? content += child : didWarnInvalidOptionChildren || (didWarnInvalidOptionChildren = !0));
}), content;
}
var _assign = __webpack_require__(3), React = __webpack_require__(17), ReactDOMComponentTree = __webpack_require__(4), ReactDOMSelect = __webpack_require__(62), didWarnInvalidOptionChildren = (__webpack_require__(1),
@@ -19545,7 +19545,7 @@
};
}, function(module, exports, __webpack_require__) {
"use strict";
- var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
+ var REACT_ELEMENT_TYPE = "function" === typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
module.exports = REACT_ELEMENT_TYPE;
}, function(module, exports, __webpack_require__) {
"use strict";
@@ -19784,7 +19784,7 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function isValidOwner(object) {
- return !(!object || "function" != typeof object.attachRef || "function" != typeof object.detachRef);
+ return !(!object || "function" !== typeof object.attachRef || "function" !== typeof object.detachRef);
}
var _prodInvariant = __webpack_require__(2), ReactOwner = (__webpack_require__(0),
{
@@ -19851,26 +19851,26 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function attachRef(ref, component, owner) {
- "function" == typeof ref ? ref(component.getPublicInstance()) : ReactOwner.addComponentAsRefTo(component, ref, owner);
+ "function" === typeof ref ? ref(component.getPublicInstance()) : ReactOwner.addComponentAsRefTo(component, ref, owner);
}
function detachRef(ref, component, owner) {
- "function" == typeof ref ? ref(null) : ReactOwner.removeComponentAsRefFrom(component, ref, owner);
+ "function" === typeof ref ? ref(null) : ReactOwner.removeComponentAsRefFrom(component, ref, owner);
}
var ReactOwner = __webpack_require__(152), ReactRef = {};
ReactRef.attachRefs = function(instance, element) {
- if (null !== element && "object" == typeof element) {
+ if (null !== element && "object" === typeof element) {
var ref = element.ref;
null != ref && attachRef(ref, instance, element._owner);
}
}, ReactRef.shouldUpdateRefs = function(prevElement, nextElement) {
var prevRef = null, prevOwner = null;
- null !== prevElement && "object" == typeof prevElement && (prevRef = prevElement.ref,
+ null !== prevElement && "object" === typeof prevElement && (prevRef = prevElement.ref,
prevOwner = prevElement._owner);
var nextRef = null, nextOwner = null;
- return null !== nextElement && "object" == typeof nextElement && (nextRef = nextElement.ref,
- nextOwner = nextElement._owner), prevRef !== nextRef || "string" == typeof nextRef && nextOwner !== prevOwner;
+ return null !== nextElement && "object" === typeof nextElement && (nextRef = nextElement.ref,
+ nextOwner = nextElement._owner), prevRef !== nextRef || "string" === typeof nextRef && nextOwner !== prevOwner;
}, ReactRef.detachRefs = function(instance, element) {
- if (null !== element && "object" == typeof element) {
+ if (null !== element && "object" === typeof element) {
var ref = element.ref;
null != ref && detachRef(ref, instance, element._owner);
}
@@ -20559,9 +20559,9 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function dangerousStyleValue(name, value, component) {
- if (null == value || "boolean" == typeof value || "" === value) return "";
+ if (null == value || "boolean" === typeof value || "" === value) return "";
if (isNaN(value) || 0 === value || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) return "" + value;
- if ("string" == typeof value) {
+ if ("string" === typeof value) {
value = value.trim();
}
return value + "px";
@@ -20576,7 +20576,7 @@
if (1 === componentOrElement.nodeType) return componentOrElement;
var inst = ReactInstanceMap.get(componentOrElement);
if (inst) return inst = getHostComponentFromComposite(inst), inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
- "function" == typeof componentOrElement.render ? _prodInvariant("44") : _prodInvariant("45", Object.keys(componentOrElement));
+ "function" === typeof componentOrElement.render ? _prodInvariant("44") : _prodInvariant("45", Object.keys(componentOrElement));
}
var _prodInvariant = __webpack_require__(2), ReactDOMComponentTree = (__webpack_require__(11),
__webpack_require__(4)), ReactInstanceMap = __webpack_require__(23), getHostComponentFromComposite = __webpack_require__(72);
@@ -20586,7 +20586,7 @@
"use strict";
(function(process) {
function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {
- if (traverseContext && "object" == typeof traverseContext) {
+ if (traverseContext && "object" === typeof traverseContext) {
var result = traverseContext, keyUnique = void 0 === result[name];
keyUnique && null != child && (result[name] = child);
}
@@ -20598,7 +20598,7 @@
}
var traverseAllChildren = (__webpack_require__(36), __webpack_require__(77));
__webpack_require__(1);
- void 0 !== process && __webpack_require__.i({
+ "undefined" !== typeof process && __webpack_require__.i({
NODE_ENV: "production",
PUBLIC_URL: ""
}), module.exports = flattenChildren;
@@ -20672,9 +20672,9 @@
"use strict";
function getIteratorFn(maybeIterable) {
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
- if ("function" == typeof iteratorFn) return iteratorFn;
+ if ("function" === typeof iteratorFn) return iteratorFn;
}
- var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
+ var ITERATOR_SYMBOL = "function" === typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
module.exports = getIteratorFn;
}, function(module, exports, __webpack_require__) {
"use strict";
@@ -21541,7 +21541,7 @@
value: !0
});
var css_1 = __webpack_require__(183), injectCSS = function(window) {
- if (window && "object" == typeof window && window.document) {
+ if (window && "object" === typeof window && window.document) {
var document_1 = window.document, head = document_1.head || document_1.getElementsByTagName("head")[0], styleElement = document_1.createElement("style");
styleElement.innerHTML = css_1.default, head.appendChild(styleElement);
}
@@ -21828,13 +21828,13 @@
}
function mixSpecIntoComponent(Constructor, spec) {
if (spec) {
- "function" == typeof spec && _prodInvariant("75"), ReactElement.isValidElement(spec) && _prodInvariant("76");
+ "function" === typeof spec && _prodInvariant("75"), ReactElement.isValidElement(spec) && _prodInvariant("76");
var proto = Constructor.prototype, autoBindPairs = proto.__reactAutoBindPairs;
spec.hasOwnProperty(MIXINS_KEY) && RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
for (var name in spec) if (spec.hasOwnProperty(name) && name !== MIXINS_KEY) {
var property = spec[name], isAlreadyDefined = proto.hasOwnProperty(name);
if (validateMethodOverride(isAlreadyDefined, name), RESERVED_SPEC_KEYS.hasOwnProperty(name)) RESERVED_SPEC_KEYS[name](Constructor, property); else {
- var isReactClassMethod = ReactClassInterface.hasOwnProperty(name), isFunction = "function" == typeof property, shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && !1 !== spec.autobind;
+ var isReactClassMethod = ReactClassInterface.hasOwnProperty(name), isFunction = "function" === typeof property, shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && !1 !== spec.autobind;
if (shouldAutoBind) autoBindPairs.push(name, property), proto[name] = property; else if (isAlreadyDefined) {
var specPolicy = ReactClassInterface[name];
(!isReactClassMethod || "DEFINE_MANY_MERGED" !== specPolicy && "DEFINE_MANY" !== specPolicy) && _prodInvariant("77", specPolicy, name),
@@ -21856,7 +21856,7 @@
}
}
function mergeIntoWithNoDuplicateKeys(one, two) {
- one && two && "object" == typeof one && "object" == typeof two || _prodInvariant("80");
+ one && two && "object" === typeof one && "object" === typeof two || _prodInvariant("80");
for (var key in two) two.hasOwnProperty(key) && (void 0 !== one[key] && _prodInvariant("81", key),
one[key] = two[key]);
return one;
@@ -21944,7 +21944,7 @@
this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue,
this.state = null;
var initialState = this.getInitialState ? this.getInitialState() : null;
- ("object" != typeof initialState || Array.isArray(initialState)) && _prodInvariant("82", Constructor.displayName || "ReactCompositeComponent"),
+ ("object" !== typeof initialState || Array.isArray(initialState)) && _prodInvariant("82", Constructor.displayName || "ReactCompositeComponent"),
this.state = initialState;
});
Constructor.prototype = new ReactClassComponent(), Constructor.prototype.constructor = Constructor,
@@ -22123,9 +22123,9 @@
"use strict";
function getIteratorFn(maybeIterable) {
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
- if ("function" == typeof iteratorFn) return iteratorFn;
+ if ("function" === typeof iteratorFn) return iteratorFn;
}
- var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
+ var ITERATOR_SYMBOL = "function" === typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
module.exports = getIteratorFn;
}, function(module, exports, __webpack_require__) {
"use strict";
@@ -22145,7 +22145,7 @@
}, function(module, exports, __webpack_require__) {
"use strict";
function getComponentKey(component, index) {
- return component && "object" == typeof component && null != component.key ? KeyEscapeUtils.escape(component.key) : index.toString(36);
+ return component && "object" === typeof component && null != component.key ? KeyEscapeUtils.escape(component.key) : index.toString(36);
}
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
var type = typeof children;
@@ -22376,11 +22376,11 @@
!function(self) {
"use strict";
function normalizeName(name) {
- if ("string" != typeof name && (name = String(name)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) throw new TypeError("Invalid character in header field name");
+ if ("string" !== typeof name && (name = String(name)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) throw new TypeError("Invalid character in header field name");
return name.toLowerCase();
}
function normalizeValue(value) {
- return "string" != typeof value && (value = String(value)), value;
+ return "string" !== typeof value && (value = String(value)), value;
}
function iteratorFor(items) {
var iterator = {
@@ -22437,12 +22437,12 @@
}
function Body() {
return this.bodyUsed = !1, this._initBody = function(body) {
- if (this._bodyInit = body, body) if ("string" == typeof body) this._bodyText = body; else if (support.blob && Blob.prototype.isPrototypeOf(body)) this._bodyBlob = body; else if (support.formData && FormData.prototype.isPrototypeOf(body)) this._bodyFormData = body; else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) this._bodyText = body.toString(); else if (support.arrayBuffer && support.blob && isDataView(body)) this._bodyArrayBuffer = bufferClone(body.buffer),
+ if (this._bodyInit = body, body) if ("string" === typeof body) this._bodyText = body; else if (support.blob && Blob.prototype.isPrototypeOf(body)) this._bodyBlob = body; else if (support.formData && FormData.prototype.isPrototypeOf(body)) this._bodyFormData = body; else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) this._bodyText = body.toString(); else if (support.arrayBuffer && support.blob && isDataView(body)) this._bodyArrayBuffer = bufferClone(body.buffer),
this._bodyInit = new Blob([ this._bodyArrayBuffer ]); else {
if (!support.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(body) && !isArrayBufferView(body)) throw new Error("unsupported BodyInit type");
this._bodyArrayBuffer = bufferClone(body);
} else this._bodyText = "";
- this.headers.get("content-type") || ("string" == typeof body ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : support.searchParams && URLSearchParams.prototype.isPrototypeOf(body) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
+ this.headers.get("content-type") || ("string" === typeof body ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : support.searchParams && URLSearchParams.prototype.isPrototypeOf(body) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
}, support.blob && (this.blob = function() {
var rejected = consumed(this);
if (rejected) return rejected;
@@ -22603,11 +22603,11 @@
}, xhr.open(request.method, request.url, !0), "include" === request.credentials && (xhr.withCredentials = !0),
"responseType" in xhr && support.blob && (xhr.responseType = "blob"), request.headers.forEach(function(value, name) {
xhr.setRequestHeader(name, value);
- }), xhr.send(void 0 === request._bodyInit ? null : request._bodyInit);
+ }), xhr.send("undefined" === typeof request._bodyInit ? null : request._bodyInit);
});
}, self.fetch.polyfill = !0;
}
- }("undefined" != typeof self ? self : this);
+ }("undefined" !== typeof self ? self : this);
}, function(module, exports, __webpack_require__) {
__webpack_require__(87), module.exports = __webpack_require__(88);
} ]);
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment