UNPKG

react-palm

Version:

Elm-like architecture for React apps

2,039 lines (1,739 loc) 160 kB
/** @license React v16.8.4+patch * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ 'use strict'; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } var aa = require("react"), n = require("object-assign"), r = require("scheduler"); function ba(a, b, c, d, e, f, g, h) { if (!a) { a = void 0; if (void 0 === b) a = Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else { var l = [c, d, e, f, g, h], k = 0; a = Error(b.replace(/%s/g, function () { return l[k++]; })); a.name = "Invariant Violation"; } a.framesToPop = 1; throw a; } } function x(a) { for (var b = arguments.length - 1, c = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, d = 0; d < b; d++) { c += "&args[]=" + encodeURIComponent(arguments[d + 1]); } ba(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", c); } aa ? void 0 : x("227"); function ca(a, b, c, d, e, f, g, h, l) { var k = Array.prototype.slice.call(arguments, 3); try { return b.apply(c, k); } catch (m) { this.onError(m); } } var da = !1, ea = null, fa = !1, ha = null, ia = { onError: function onError(a) { da = !0; ea = a; } }; function ja(a, b, c, d, e, f, g, h, l) { da = !1; ea = null; return ca.apply(ia, arguments); } function ka(a, b, c, d, e, f, g, h, l) { var k = ja.apply(this, arguments); if (da) { if (da) { var m = ea; da = !1; ea = null; } else x("198"), m = void 0; fa || (fa = !0, ha = m); } return k; } function la() { if (fa) { var a = ha; fa = !1; ha = null; throw a; } } var ma = null, na = {}; function oa() { if (ma) for (var a in na) { var b = na[a], c = ma.indexOf(a); -1 < c ? void 0 : x("96", a); if (!pa[c]) { b.extractEvents ? void 0 : x("97", a); pa[c] = b; c = b.eventTypes; for (var d in c) { var e = void 0; var f = c[d], g = b, h = d; qa.hasOwnProperty(h) ? x("99", h) : void 0; qa[h] = f; var l = f.phasedRegistrationNames; if (l) { for (e in l) { l.hasOwnProperty(e) && ra(l[e], g, h); } e = !0; } else f.registrationName ? (ra(f.registrationName, g, h), e = !0) : e = !1; e ? void 0 : x("98", d, a); } } } } function ra(a, b, c) { sa[a] ? x("100", a) : void 0; sa[a] = b; ta[a] = b.eventTypes[c].dependencies; } var pa = [], qa = {}, sa = {}, ta = {}, ua = null, va = null, wa = null; function xa(a, b, c) { var d = a.type || "unknown-event"; a.currentTarget = wa(c); b = ka(d, b, void 0, a); a.currentTarget = null; return b; } function ya(a, b) { null == b ? x("30") : void 0; if (null == a) return b; if (Array.isArray(a)) { if (Array.isArray(b)) return a.push.apply(a, b), a; a.push(b); return a; } return Array.isArray(b) ? [a].concat(b) : [a, b]; } function za(a, b, c) { Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a); } var Aa = null; function Ba() {} function Ca(a) { if (a) { var b = a._dispatchListeners, c = a._dispatchInstances, d = []; if (Array.isArray(b)) for (var e = 0; e < b.length && !a.isPropagationStopped(); e++) { d.push(xa(a, b[e], c[e])); } else b && d.push(xa(a, b, c)); a._dispatchListeners = null; a._dispatchInstances = null; a.isPersistent() || a.constructor.release(a); return d; } return []; } var Da = { injectEventPluginOrder: function injectEventPluginOrder(a) { ma ? x("101") : void 0; ma = Array.prototype.slice.call(a); oa(); }, injectEventPluginsByName: function injectEventPluginsByName(a) { var b = !1, c; for (c in a) { if (a.hasOwnProperty(c)) { var d = a[c]; na.hasOwnProperty(c) && na[c] === d || (na[c] ? x("102", c) : void 0, na[c] = d, b = !0); } } b && oa(); }, injectListenToHandlers: function injectListenToHandlers(a) { Ba = a; } }; function Ea(a, b) { var c = a.stateNode; if (!c) return null; var d = ua(c); if (!d) return null; c = d[b]; a: switch (b) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a)); a = !d; break a; default: a = !1; } if (a) return null; c && "function" !== typeof c ? x("231", b, _typeof(c)) : void 0; return c; } function Fa(a) { null !== a && (Aa = ya(Aa, a)); a = Aa; Aa = null; var b = []; a && (za(a, function (a) { b = b.concat(Ca(a)); }), 0 < b.length && Ba(b), Aa ? x("95") : void 0, la()); } var Ga = Math.random().toString(36).slice(2), Ha = "__reactInternalInstance$" + Ga, Ia = "__reactEventHandlers$" + Ga; function Ja(a) { if (a[Ha]) return a[Ha]; for (; !a[Ha];) { if (a.parentNode) a = a.parentNode;else return null; } a = a[Ha]; return 5 === a.tag || 6 === a.tag ? a : null; } function Ka(a) { a = a[Ha]; return !a || 5 !== a.tag && 6 !== a.tag ? null : a; } function La(a) { if (5 === a.tag || 6 === a.tag) return a.stateNode; x("33"); } function Ma(a) { return a[Ia] || null; } function Na(a) { do { a = a.return; } while (a && 5 !== a.tag); return a ? a : null; } function Oa(a, b, c) { if (b = Ea(a, c.dispatchConfig.phasedRegistrationNames[b])) c._dispatchListeners = ya(c._dispatchListeners, b), c._dispatchInstances = ya(c._dispatchInstances, a); } function Pa(a) { if (a && a.dispatchConfig.phasedRegistrationNames) { for (var b = a._targetInst, c = []; b;) { c.push(b), b = Na(b); } for (b = c.length; 0 < b--;) { Oa(c[b], "captured", a); } for (b = 0; b < c.length; b++) { Oa(c[b], "bubbled", a); } } } function Qa(a, b, c) { a && c && c.dispatchConfig.registrationName && (b = Ea(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = ya(c._dispatchListeners, b), c._dispatchInstances = ya(c._dispatchInstances, a)); } function Ra(a) { a && a.dispatchConfig.registrationName && Qa(a._targetInst, null, a); } function Sa(a) { za(a, Pa); } var Ta = !("undefined" === typeof window || !window.document || !window.document.createElement); function Ua(a, b) { var c = {}; c[a.toLowerCase()] = b.toLowerCase(); c["Webkit" + a] = "webkit" + b; c["Moz" + a] = "moz" + b; return c; } var Va = { animationend: Ua("Animation", "AnimationEnd"), animationiteration: Ua("Animation", "AnimationIteration"), animationstart: Ua("Animation", "AnimationStart"), transitionend: Ua("Transition", "TransitionEnd") }, Wa = {}, Xa = {}; Ta && (Xa = document.createElement("div").style, "AnimationEvent" in window || (delete Va.animationend.animation, delete Va.animationiteration.animation, delete Va.animationstart.animation), "TransitionEvent" in window || delete Va.transitionend.transition); function Ya(a) { if (Wa[a]) return Wa[a]; if (!Va[a]) return a; var b = Va[a], c; for (c in b) { if (b.hasOwnProperty(c) && c in Xa) return Wa[a] = b[c]; } return a; } var Za = Ya("animationend"), $a = Ya("animationiteration"), ab = Ya("animationstart"), bb = Ya("transitionend"), cb = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), db = null, eb = null, fb = null; function gb() { if (fb) return fb; var a, b = eb, c = b.length, d, e = "value" in db ? db.value : db.textContent, f = e.length; for (a = 0; a < c && b[a] === e[a]; a++) { ; } var g = c - a; for (d = 1; d <= g && b[c - d] === e[f - d]; d++) { ; } return fb = e.slice(a, 1 < d ? 1 - d : void 0); } function hb() { return !0; } function ib() { return !1; } function y(a, b, c, d) { this.dispatchConfig = a; this._targetInst = b; this.nativeEvent = c; a = this.constructor.Interface; for (var e in a) { a.hasOwnProperty(e) && ((b = a[e]) ? this[e] = b(c) : "target" === e ? this.target = d : this[e] = c[e]); } this.isDefaultPrevented = (null != c.defaultPrevented ? c.defaultPrevented : !1 === c.returnValue) ? hb : ib; this.isPropagationStopped = ib; return this; } n(y.prototype, { preventDefault: function preventDefault() { this.defaultPrevented = !0; var a = this.nativeEvent; a && (a.preventDefault ? a.preventDefault() : "unknown" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = hb); }, stopPropagation: function stopPropagation() { var a = this.nativeEvent; a && (a.stopPropagation ? a.stopPropagation() : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = hb); }, persist: function persist() { this.isPersistent = hb; }, isPersistent: ib, destructor: function destructor() { var a = this.constructor.Interface, b; for (b in a) { this[b] = null; } this.nativeEvent = this._targetInst = this.dispatchConfig = null; this.isPropagationStopped = this.isDefaultPrevented = ib; this._dispatchInstances = this._dispatchListeners = null; } }); y.Interface = { type: null, target: null, currentTarget: function currentTarget() { return null; }, eventPhase: null, bubbles: null, cancelable: null, timeStamp: function timeStamp(a) { return a.timeStamp || Date.now(); }, defaultPrevented: null, isTrusted: null }; y.extend = function (a) { function b() {} function c() { return d.apply(this, arguments); } var d = this; b.prototype = d.prototype; var e = new b(); n(e, c.prototype); c.prototype = e; c.prototype.constructor = c; c.Interface = n({}, d.Interface, a); c.extend = d.extend; jb(c); return c; }; jb(y); function kb(a, b, c, d) { if (this.eventPool.length) { var e = this.eventPool.pop(); this.call(e, a, b, c, d); return e; } return new this(a, b, c, d); } function lb(a) { a instanceof this ? void 0 : x("279"); a.destructor(); 10 > this.eventPool.length && this.eventPool.push(a); } function jb(a) { a.eventPool = []; a.getPooled = kb; a.release = lb; } var mb = y.extend({ data: null }), nb = y.extend({ data: null }), ob = [9, 13, 27, 32], pb = Ta && "CompositionEvent" in window, qb = null; Ta && "documentMode" in document && (qb = document.documentMode); var rb = Ta && "TextEvent" in window && !qb, sb = Ta && (!pb || qb && 8 < qb && 11 >= qb), tb = String.fromCharCode(32), ub = { beforeInput: { phasedRegistrationNames: { bubbled: "onBeforeInput", captured: "onBeforeInputCapture" }, dependencies: ["compositionend", "keypress", "textInput", "paste"] }, compositionEnd: { phasedRegistrationNames: { bubbled: "onCompositionEnd", captured: "onCompositionEndCapture" }, dependencies: "blur compositionend keydown keypress keyup mousedown".split(" ") }, compositionStart: { phasedRegistrationNames: { bubbled: "onCompositionStart", captured: "onCompositionStartCapture" }, dependencies: "blur compositionstart keydown keypress keyup mousedown".split(" ") }, compositionUpdate: { phasedRegistrationNames: { bubbled: "onCompositionUpdate", captured: "onCompositionUpdateCapture" }, dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(" ") } }, vb = !1; function wb(a, b) { switch (a) { case "keyup": return -1 !== ob.indexOf(b.keyCode); case "keydown": return 229 !== b.keyCode; case "keypress": case "mousedown": case "blur": return !0; default: return !1; } } function xb(a) { a = a.detail; return "object" === _typeof(a) && "data" in a ? a.data : null; } var yb = !1; function zb(a, b) { switch (a) { case "compositionend": return xb(b); case "keypress": if (32 !== b.which) return null; vb = !0; return tb; case "textInput": return a = b.data, a === tb && vb ? null : a; default: return null; } } function Ab(a, b) { if (yb) return "compositionend" === a || !pb && wb(a, b) ? (a = gb(), fb = eb = db = null, yb = !1, a) : null; switch (a) { case "paste": return null; case "keypress": if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { if (b.char && 1 < b.char.length) return b.char; if (b.which) return String.fromCharCode(b.which); } return null; case "compositionend": return sb && "ko" !== b.locale ? null : b.data; default: return null; } } var Bb = { eventTypes: ub, extractEvents: function extractEvents(a, b, c, d) { var e = void 0; var f = void 0; if (pb) b: { switch (a) { case "compositionstart": e = ub.compositionStart; break b; case "compositionend": e = ub.compositionEnd; break b; case "compositionupdate": e = ub.compositionUpdate; break b; } e = void 0; } else yb ? wb(a, c) && (e = ub.compositionEnd) : "keydown" === a && 229 === c.keyCode && (e = ub.compositionStart); e ? (sb && "ko" !== c.locale && (yb || e !== ub.compositionStart ? e === ub.compositionEnd && yb && (f = gb()) : (db = d, eb = "value" in db ? db.value : db.textContent, yb = !0)), e = mb.getPooled(e, b, c, d), f ? e.data = f : (f = xb(c), null !== f && (e.data = f)), Sa(e), f = e) : f = null; (a = rb ? zb(a, c) : Ab(a, c)) ? (b = nb.getPooled(ub.beforeInput, b, c, d), b.data = a, Sa(b)) : b = null; return null === f ? b : null === b ? f : [f, b]; } }, Cb = null, Db = null, Eb = null; function Fb(a) { if (a = va(a)) { "function" !== typeof Cb ? x("280") : void 0; var b = ua(a.stateNode); Cb(a.stateNode, a.type, b); } } function Gb(a) { Db ? Eb ? Eb.push(a) : Eb = [a] : Db = a; } function Hb() { if (Db) { var a = Db, b = Eb; Eb = Db = null; Fb(a); if (b) for (a = 0; a < b.length; a++) { Fb(b[a]); } } } function Ib(a, b) { return a(b); } function Jb(a, b, c) { return a(b, c); } function Kb() {} var Lb = !1; function Mb(a, b) { if (Lb) return a(b); Lb = !0; try { return Ib(a, b); } finally { if (Lb = !1, null !== Db || null !== Eb) Kb(), Hb(); } } var Nb = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function Ob(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return "input" === b ? !!Nb[a.type] : "textarea" === b ? !0 : !1; } function Pb(a) { a = a.target || a.srcElement || window; a.correspondingUseElement && (a = a.correspondingUseElement); return 3 === a.nodeType ? a.parentNode : a; } function Qb(a) { if (!Ta) return !1; a = "on" + a; var b = a in document; b || (b = document.createElement("div"), b.setAttribute(a, "return;"), b = "function" === typeof b[a]); return b; } function Rb(a) { var b = a.type; return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); } function Sb(a) { var b = Rb(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b]; if (!a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set) { var e = c.get, f = c.set; Object.defineProperty(a, b, { configurable: !0, get: function get() { return e.call(this); }, set: function set(a) { d = "" + a; f.call(this, a); } }); Object.defineProperty(a, b, { enumerable: c.enumerable }); return { getValue: function getValue() { return d; }, setValue: function setValue(a) { d = "" + a; }, stopTracking: function stopTracking() { a._valueTracker = null; delete a[b]; } }; } } function Tb(a) { a._valueTracker || (a._valueTracker = Sb(a)); } function Ub(a) { if (!a) return !1; var b = a._valueTracker; if (!b) return !0; var c = b.getValue(); var d = ""; a && (d = Rb(a) ? a.checked ? "true" : "false" : a.value); a = d; return a !== c ? (b.setValue(a), !0) : !1; } var Vb = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; Vb.hasOwnProperty("ReactCurrentDispatcher") || (Vb.ReactCurrentDispatcher = { current: null }); var Wb = /^(.*)[\\\/]/, z = "function" === typeof Symbol && Symbol.for, Xb = z ? Symbol.for("react.element") : 60103, Yb = z ? Symbol.for("react.portal") : 60106, Zb = z ? Symbol.for("react.fragment") : 60107, $b = z ? Symbol.for("react.strict_mode") : 60108, ac = z ? Symbol.for("react.profiler") : 60114, bc = z ? Symbol.for("react.provider") : 60109, cc = z ? Symbol.for("react.context") : 60110, dc = z ? Symbol.for("react.concurrent_mode") : 60111, ec = z ? Symbol.for("react.forward_ref") : 60112, fc = z ? Symbol.for("react.suspense") : 60113, gc = z ? Symbol.for("react.memo") : 60115, hc = z ? Symbol.for("react.lazy") : 60116, ic = "function" === typeof Symbol && Symbol.iterator; function jc(a) { if (null === a || "object" !== _typeof(a)) return null; a = ic && a[ic] || a["@@iterator"]; return "function" === typeof a ? a : null; } function kc(a) { if (null == a) return null; if ("function" === typeof a) return a.displayName || a.name || null; if ("string" === typeof a) return a; switch (a) { case dc: return "ConcurrentMode"; case Zb: return "Fragment"; case Yb: return "Portal"; case ac: return "Profiler"; case $b: return "StrictMode"; case fc: return "Suspense"; } if ("object" === _typeof(a)) switch (a.$$typeof) { case cc: return "Context.Consumer"; case bc: return "Context.Provider"; case ec: var b = a.render; b = b.displayName || b.name || ""; return a.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef"); case gc: return kc(a.type); case hc: if (a = 1 === a._status ? a._result : null) return kc(a); } return null; } function lc(a) { var b = ""; do { a: switch (a.tag) { case 3: case 4: case 6: case 7: case 10: case 9: var c = ""; break a; default: var d = a._debugOwner, e = a._debugSource, f = kc(a.type); c = null; d && (c = kc(d.type)); d = f; f = ""; e ? f = " (at " + e.fileName.replace(Wb, "") + ":" + e.lineNumber + ")" : c && (f = " (created by " + c + ")"); c = "\n in " + (d || "Unknown") + f; } b += c; a = a.return; } while (a); return b; } var mc = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, nc = Object.prototype.hasOwnProperty, oc = {}, pc = {}; function qc(a) { if (nc.call(pc, a)) return !0; if (nc.call(oc, a)) return !1; if (mc.test(a)) return pc[a] = !0; oc[a] = !0; return !1; } function rc(a, b, c, d) { if (null !== c && 0 === c.type) return !1; switch (_typeof(b)) { case "function": case "symbol": return !0; case "boolean": if (d) return !1; if (null !== c) return !c.acceptsBooleans; a = a.toLowerCase().slice(0, 5); return "data-" !== a && "aria-" !== a; default: return !1; } } function sc(a, b, c, d) { if (null === b || "undefined" === typeof b || rc(a, b, c, d)) return !0; if (d) return !1; if (null !== c) switch (c.type) { case 3: return !b; case 4: return !1 === b; case 5: return isNaN(b); case 6: return isNaN(b) || 1 > b; } return !1; } function C(a, b, c, d, e) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b; this.attributeName = d; this.attributeNamespace = e; this.mustUseProperty = c; this.propertyName = a; this.type = b; } var D = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) { D[a] = new C(a, 0, !1, a, null); }); [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) { var b = a[0]; D[b] = new C(b, 1, !1, a[1], null); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) { D[a] = new C(a, 2, !1, a.toLowerCase(), null); }); ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) { D[a] = new C(a, 2, !1, a, null); }); "allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a) { D[a] = new C(a, 3, !1, a.toLowerCase(), null); }); ["checked", "multiple", "muted", "selected"].forEach(function (a) { D[a] = new C(a, 3, !0, a, null); }); ["capture", "download"].forEach(function (a) { D[a] = new C(a, 4, !1, a, null); }); ["cols", "rows", "size", "span"].forEach(function (a) { D[a] = new C(a, 6, !1, a, null); }); ["rowSpan", "start"].forEach(function (a) { D[a] = new C(a, 5, !1, a.toLowerCase(), null); }); var tc = /[\-:]([a-z])/g; function uc(a) { return a[1].toUpperCase(); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a) { var b = a.replace(tc, uc); D[b] = new C(b, 1, !1, a, null); }); "xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) { var b = a.replace(tc, uc); D[b] = new C(b, 1, !1, a, "http://www.w3.org/1999/xlink"); }); ["xml:base", "xml:lang", "xml:space"].forEach(function (a) { var b = a.replace(tc, uc); D[b] = new C(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); }); ["tabIndex", "crossOrigin"].forEach(function (a) { D[a] = new C(a, 1, !1, a.toLowerCase(), null); }); function vc(a, b, c, d) { var e = D.hasOwnProperty(b) ? D[b] : null; var f = null !== e ? 0 === e.type : d ? !1 : !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1] ? !1 : !0; f || (sc(b, c, e, d) && (c = null), d || null === e ? qc(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); } function wc(a) { switch (_typeof(a)) { case "boolean": case "number": case "object": case "string": case "undefined": return a; default: return ""; } } function xc(a, b) { var c = b.checked; return n({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c ? c : a._wrapperState.initialChecked }); } function yc(a, b) { var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; c = wc(null != b.value ? b.value : c); a._wrapperState = { initialChecked: d, initialValue: c, controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value }; } function zc(a, b) { b = b.checked; null != b && vc(a, "checked", b, !1); } function Ac(a, b) { zc(a, b); var c = wc(b.value), d = b.type; if (null != c) { if ("number" === d) { if (0 === c && "" === a.value || a.value != c) a.value = "" + c; } else a.value !== "" + c && (a.value = "" + c); } else if ("submit" === d || "reset" === d) { a.removeAttribute("value"); return; } b.hasOwnProperty("value") ? Bc(a, b.type, c) : b.hasOwnProperty("defaultValue") && Bc(a, b.type, wc(b.defaultValue)); null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); } function Cc(a, b, c) { if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { var d = b.type; if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return; b = "" + a._wrapperState.initialValue; c || b === a.value || (a.value = b); a.defaultValue = b; } c = a.name; "" !== c && (a.name = ""); a.defaultChecked = !a.defaultChecked; a.defaultChecked = !!a._wrapperState.initialChecked; "" !== c && (a.name = c); } function Bc(a, b, c) { if ("number" !== b || a.ownerDocument.activeElement !== a) null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c); } var Dc = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; function Ec(a, b, c) { a = y.getPooled(Dc.change, a, b, c); a.type = "change"; Gb(c); Sa(a); return a; } var Fc = null, Gc = null; function Hc(a) { Fa(a); } function Ic(a) { var b = La(a); if (Ub(b)) return a; } function Jc(a, b) { if ("change" === a) return b; } var Kc = !1; Ta && (Kc = Qb("input") && (!document.documentMode || 9 < document.documentMode)); function Lc() { Fc && (Fc.detachEvent("onpropertychange", Mc), Gc = Fc = null); } function Mc(a) { "value" === a.propertyName && Ic(Gc) && (a = Ec(Gc, a, Pb(a)), Mb(Hc, a)); } function Nc(a, b, c) { "focus" === a ? (Lc(), Fc = b, Gc = c, Fc.attachEvent("onpropertychange", Mc)) : "blur" === a && Lc(); } function Oc(a) { if ("selectionchange" === a || "keyup" === a || "keydown" === a) return Ic(Gc); } function Pc(a, b) { if ("click" === a) return Ic(b); } function Qc(a, b) { if ("input" === a || "change" === a) return Ic(b); } var Rc = { eventTypes: Dc, _isInputEventSupported: Kc, extractEvents: function extractEvents(a, b, c, d) { var e = b ? La(b) : window, f = void 0, g = void 0, h = e.nodeName && e.nodeName.toLowerCase(); "select" === h || "input" === h && "file" === e.type ? f = Jc : Ob(e) ? Kc ? f = Qc : (f = Oc, g = Nc) : (h = e.nodeName) && "input" === h.toLowerCase() && ("checkbox" === e.type || "radio" === e.type) && (f = Pc); if (f && (f = f(a, b))) return Ec(f, c, d); g && g(a, e, b); "blur" === a && (a = e._wrapperState) && a.controlled && "number" === e.type && Bc(e, "number", e.value); } }, Sc = y.extend({ view: null, detail: null }), Tc = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function Uc(a) { var b = this.nativeEvent; return b.getModifierState ? b.getModifierState(a) : (a = Tc[a]) ? !!b[a] : !1; } function Vc() { return Uc; } var Wc = 0, Xc = 0, Yc = !1, Zc = !1, $c = Sc.extend({ screenX: null, screenY: null, clientX: null, clientY: null, pageX: null, pageY: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, getModifierState: Vc, button: null, buttons: null, relatedTarget: function relatedTarget(a) { return a.relatedTarget || (a.fromElement === a.srcElement ? a.toElement : a.fromElement); }, movementX: function movementX(a) { if ("movementX" in a) return a.movementX; var b = Wc; Wc = a.screenX; return Yc ? "mousemove" === a.type ? a.screenX - b : 0 : (Yc = !0, 0); }, movementY: function movementY(a) { if ("movementY" in a) return a.movementY; var b = Xc; Xc = a.screenY; return Zc ? "mousemove" === a.type ? a.screenY - b : 0 : (Zc = !0, 0); } }), ad = $c.extend({ pointerId: null, width: null, height: null, pressure: null, tangentialPressure: null, tiltX: null, tiltY: null, twist: null, pointerType: null, isPrimary: null }), bd = { mouseEnter: { registrationName: "onMouseEnter", dependencies: ["mouseout", "mouseover"] }, mouseLeave: { registrationName: "onMouseLeave", dependencies: ["mouseout", "mouseover"] }, pointerEnter: { registrationName: "onPointerEnter", dependencies: ["pointerout", "pointerover"] }, pointerLeave: { registrationName: "onPointerLeave", dependencies: ["pointerout", "pointerover"] } }, cd = { eventTypes: bd, extractEvents: function extractEvents(a, b, c, d) { var e = "mouseover" === a || "pointerover" === a, f = "mouseout" === a || "pointerout" === a; if (e && (c.relatedTarget || c.fromElement) || !f && !e) return null; e = d.window === d ? d : (e = d.ownerDocument) ? e.defaultView || e.parentWindow : window; f ? (f = b, b = (b = c.relatedTarget || c.toElement) ? Ja(b) : null) : f = null; if (f === b) return null; var g = void 0, h = void 0, l = void 0, k = void 0; if ("mouseout" === a || "mouseover" === a) g = $c, h = bd.mouseLeave, l = bd.mouseEnter, k = "mouse";else if ("pointerout" === a || "pointerover" === a) g = ad, h = bd.pointerLeave, l = bd.pointerEnter, k = "pointer"; var m = null == f ? e : La(f); e = null == b ? e : La(b); a = g.getPooled(h, f, c, d); a.type = k + "leave"; a.target = m; a.relatedTarget = e; c = g.getPooled(l, b, c, d); c.type = k + "enter"; c.target = e; c.relatedTarget = m; d = b; if (f && d) a: { b = f; e = d; k = 0; for (g = b; g; g = Na(g)) { k++; } g = 0; for (l = e; l; l = Na(l)) { g++; } for (; 0 < k - g;) { b = Na(b), k--; } for (; 0 < g - k;) { e = Na(e), g--; } for (; k--;) { if (b === e || b === e.alternate) break a; b = Na(b); e = Na(e); } b = null; } else b = null; e = b; for (b = []; f && f !== e;) { k = f.alternate; if (null !== k && k === e) break; b.push(f); f = Na(f); } for (f = []; d && d !== e;) { k = d.alternate; if (null !== k && k === e) break; f.push(d); d = Na(d); } for (d = 0; d < b.length; d++) { Qa(b[d], "bubbled", a); } for (d = f.length; 0 < d--;) { Qa(f[d], "captured", c); } return [a, c]; } }; function dd(a, b) { return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; } var ed = Object.prototype.hasOwnProperty; function fd(a, b) { if (dd(a, b)) return !0; if ("object" !== _typeof(a) || null === a || "object" !== _typeof(b) || null === b) return !1; var c = Object.keys(a), d = Object.keys(b); if (c.length !== d.length) return !1; for (d = 0; d < c.length; d++) { if (!ed.call(b, c[d]) || !dd(a[c[d]], b[c[d]])) return !1; } return !0; } function gd(a) { var b = a; if (a.alternate) for (; b.return;) { b = b.return; } else { if (0 !== (b.effectTag & 2)) return 1; for (; b.return;) { if (b = b.return, 0 !== (b.effectTag & 2)) return 1; } } return 3 === b.tag ? 2 : 3; } function hd(a) { 2 !== gd(a) ? x("188") : void 0; } function id(a) { var b = a.alternate; if (!b) return b = gd(a), 3 === b ? x("188") : void 0, 1 === b ? null : a; for (var c = a, d = b;;) { var e = c.return, f = e ? e.alternate : null; if (!e || !f) break; if (e.child === f.child) { for (var g = e.child; g;) { if (g === c) return hd(e), a; if (g === d) return hd(e), b; g = g.sibling; } x("188"); } if (c.return !== d.return) c = e, d = f;else { g = !1; for (var h = e.child; h;) { if (h === c) { g = !0; c = e; d = f; break; } if (h === d) { g = !0; d = e; c = f; break; } h = h.sibling; } if (!g) { for (h = f.child; h;) { if (h === c) { g = !0; c = f; d = e; break; } if (h === d) { g = !0; d = f; c = e; break; } h = h.sibling; } g ? void 0 : x("189"); } } c.alternate !== d ? x("190") : void 0; } 3 !== c.tag ? x("188") : void 0; return c.stateNode.current === c ? a : b; } function jd(a) { a = id(a); if (!a) return null; for (var b = a;;) { if (5 === b.tag || 6 === b.tag) return b; if (b.child) b.child.return = b, b = b.child;else { if (b === a) break; for (; !b.sibling;) { if (!b.return || b.return === a) return null; b = b.return; } b.sibling.return = b.return; b = b.sibling; } } return null; } var kd = y.extend({ animationName: null, elapsedTime: null, pseudoElement: null }), ld = y.extend({ clipboardData: function clipboardData(a) { return "clipboardData" in a ? a.clipboardData : window.clipboardData; } }), md = Sc.extend({ relatedTarget: null }); function nd(a) { var b = a.keyCode; "charCode" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b; 10 === a && (a = 13); return 32 <= a || 13 === a ? a : 0; } var od = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, pd = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, qd = Sc.extend({ key: function key(a) { if (a.key) { var b = od[a.key] || a.key; if ("Unidentified" !== b) return b; } return "keypress" === a.type ? (a = nd(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? pd[a.keyCode] || "Unidentified" : ""; }, location: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, repeat: null, locale: null, getModifierState: Vc, charCode: function charCode(a) { return "keypress" === a.type ? nd(a) : 0; }, keyCode: function keyCode(a) { return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; }, which: function which(a) { return "keypress" === a.type ? nd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; } }), rd = $c.extend({ dataTransfer: null }), sd = Sc.extend({ touches: null, targetTouches: null, changedTouches: null, altKey: null, metaKey: null, ctrlKey: null, shiftKey: null, getModifierState: Vc }), td = y.extend({ propertyName: null, elapsedTime: null, pseudoElement: null }), ud = $c.extend({ deltaX: function deltaX(a) { return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; }, deltaY: function deltaY(a) { return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; }, deltaZ: null, deltaMode: null }), vd = [["abort", "abort"], [Za, "animationEnd"], [$a, "animationIteration"], [ab, "animationStart"], ["canplay", "canPlay"], ["canplaythrough", "canPlayThrough"], ["drag", "drag"], ["dragenter", "dragEnter"], ["dragexit", "dragExit"], ["dragleave", "dragLeave"], ["dragover", "dragOver"], ["durationchange", "durationChange"], ["emptied", "emptied"], ["encrypted", "encrypted"], ["ended", "ended"], ["error", "error"], ["gotpointercapture", "gotPointerCapture"], ["load", "load"], ["loadeddata", "loadedData"], ["loadedmetadata", "loadedMetadata"], ["loadstart", "loadStart"], ["lostpointercapture", "lostPointerCapture"], ["mousemove", "mouseMove"], ["mouseout", "mouseOut"], ["mouseover", "mouseOver"], ["playing", "playing"], ["pointermove", "pointerMove"], ["pointerout", "pointerOut"], ["pointerover", "pointerOver"], ["progress", "progress"], ["scroll", "scroll"], ["seeking", "seeking"], ["stalled", "stalled"], ["suspend", "suspend"], ["timeupdate", "timeUpdate"], ["toggle", "toggle"], ["touchmove", "touchMove"], [bb, "transitionEnd"], ["waiting", "waiting"], ["wheel", "wheel"]], wd = {}, xd = {}; function yd(a, b) { var c = a[0]; a = a[1]; var d = "on" + (a[0].toUpperCase() + a.slice(1)); b = { phasedRegistrationNames: { bubbled: d, captured: d + "Capture" }, dependencies: [c], isInteractive: b }; wd[a] = b; xd[c] = b; } [["blur", "blur"], ["cancel", "cancel"], ["click", "click"], ["close", "close"], ["contextmenu", "contextMenu"], ["copy", "copy"], ["cut", "cut"], ["auxclick", "auxClick"], ["dblclick", "doubleClick"], ["dragend", "dragEnd"], ["dragstart", "dragStart"], ["drop", "drop"], ["focus", "focus"], ["input", "input"], ["invalid", "invalid"], ["keydown", "keyDown"], ["keypress", "keyPress"], ["keyup", "keyUp"], ["mousedown", "mouseDown"], ["mouseup", "mouseUp"], ["paste", "paste"], ["pause", "pause"], ["play", "play"], ["pointercancel", "pointerCancel"], ["pointerdown", "pointerDown"], ["pointerup", "pointerUp"], ["ratechange", "rateChange"], ["reset", "reset"], ["seeked", "seeked"], ["submit", "submit"], ["touchcancel", "touchCancel"], ["touchend", "touchEnd"], ["touchstart", "touchStart"], ["volumechange", "volumeChange"]].forEach(function (a) { yd(a, !0); }); vd.forEach(function (a) { yd(a, !1); }); var zd = { eventTypes: wd, isInteractiveTopLevelEventType: function isInteractiveTopLevelEventType(a) { a = xd[a]; return void 0 !== a && !0 === a.isInteractive; }, extractEvents: function extractEvents(a, b, c, d) { var e = xd[a]; if (!e) return null; switch (a) { case "keypress": if (0 === nd(c)) return null; case "keydown": case "keyup": a = qd; break; case "blur": case "focus": a = md; break; case "click": if (2 === c.button) return null; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": a = $c; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": a = rd; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": a = sd; break; case Za: case $a: case ab: a = kd; break; case bb: a = td; break; case "scroll": a = Sc; break; case "wheel": a = ud; break; case "copy": case "cut": case "paste": a = ld; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": a = ad; break; default: a = y; } b = a.getPooled(e, b, c, d); Sa(b); return b; } }, Ad = zd.isInteractiveTopLevelEventType, Bd = []; function Cd(a) { var b = a.targetInst, c = b; do { if (!c) { a.ancestors.push(c); break; } var d; for (d = c; d.return;) { d = d.return; } d = 3 !== d.tag ? null : d.stateNode.containerInfo; if (!d) break; a.ancestors.push(c); c = Ja(d); } while (c); for (c = 0; c < a.ancestors.length; c++) { b = a.ancestors[c]; var e = Pb(a.nativeEvent); d = a.topLevelType; for (var f = a.nativeEvent, g = null, h = 0; h < pa.length; h++) { var l = pa[h]; l && (l = l.extractEvents(d, b, f, e)) && (g = ya(g, l)); } Fa(g); } } var Dd = !0; function E(a, b) { if (!b) return null; var c = (Ad(a) ? Ed : Fd).bind(null, a); b.addEventListener(a, c, !1); } function Gd(a, b) { if (!b) return null; var c = (Ad(a) ? Ed : Fd).bind(null, a); b.addEventListener(a, c, !0); } function Ed(a, b) { Jb(Fd, a, b); } function Fd(a, b) { if (Dd) { var c = Pb(b); c = Ja(c); null === c || "number" !== typeof c.tag || 2 === gd(c) || (c = null); if (Bd.length) { var d = Bd.pop(); d.topLevelType = a; d.nativeEvent = b; d.targetInst = c; a = d; } else a = { topLevelType: a, nativeEvent: b, targetInst: c, ancestors: [] }; try { Mb(Cd, a); } finally { a.topLevelType = null, a.nativeEvent = null, a.targetInst = null, a.ancestors.length = 0, 10 > Bd.length && Bd.push(a); } } } var Hd = {}, Id = 0, Jd = "_reactListenersID" + ("" + Math.random()).slice(2); function Kd(a) { Object.prototype.hasOwnProperty.call(a, Jd) || (a[Jd] = Id++, Hd[a[Jd]] = {}); return Hd[a[Jd]]; } function Ld(a) { a = a || ("undefined" !== typeof document ? document : void 0); if ("undefined" === typeof a) return null; try { return a.activeElement || a.body; } catch (b) { return a.body; } } function Md(a) { for (; a && a.firstChild;) { a = a.firstChild; } return a; } function Nd(a, b) { var c = Md(a); a = 0; for (var d; c;) { if (3 === c.nodeType) { d = a + c.textContent.length; if (a <= b && d >= b) return { node: c, offset: b - a }; a = d; } a: { for (; c;) { if (c.nextSibling) { c = c.nextSibling; break a; } c = c.parentNode; } c = void 0; } c = Md(c); } } function Od(a, b) { return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Od(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1; } function Pd() { for (var a = window, b = Ld(); b instanceof a.HTMLIFrameElement;) { try { a = b.contentDocument.defaultView; } catch (c) { break; } b = Ld(a.document); } return b; } function Qd(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable); } function Rd() { var a = Pd(); if (Qd(a)) { if ("selectionStart" in a) var b = { start: a.selectionStart, end: a.selectionEnd };else a: { b = (b = a.ownerDocument) && b.defaultView || window; var c = b.getSelection && b.getSelection(); if (c && 0 !== c.rangeCount) { b = c.anchorNode; var d = c.anchorOffset, e = c.focusNode; c = c.focusOffset; try { b.nodeType, e.nodeType; } catch (A) { b = null; break a; } var f = 0, g = -1, h = -1, l = 0, k = 0, m = a, p = null; b: for (;;) { for (var t;;) { m !== b || 0 !== d && 3 !== m.nodeType || (g = f + d); m !== e || 0 !== c && 3 !== m.nodeType || (h = f + c); 3 === m.nodeType && (f += m.nodeValue.length); if (null === (t = m.firstChild)) break; p = m; m = t; } for (;;) { if (m === a) break b; p === b && ++l === d && (g = f); p === e && ++k === c && (h = f); if (null !== (t = m.nextSibling)) break; m = p; p = m.parentNode; } m = t; } b = -1 === g || -1 === h ? null : { start: g, end: h }; } else b = null; } b = b || { start: 0, end: 0 }; } else b = null; return { focusedElem: a, selectionRange: b }; } function Sd(a) { var b = Pd(), c = a.focusedElem, d = a.selectionRange; if (b !== c && c && c.ownerDocument && Od(c.ownerDocument.documentElement, c)) { if (null !== d && Qd(c)) if (b = d.start, a = d.end, void 0 === a && (a = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length);else if (a = (b = c.ownerDocument || document) && b.defaultView || window, a.getSelection) { a = a.getSelection(); var e = c.textContent.length, f = Math.min(d.start, e); d = void 0 === d.end ? f : Math.min(d.end, e); !a.extend && f > d && (e = d, d = f, f = e); e = Nd(c, f); var g = Nd(c, d); e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))); } b = []; for (a = c; a = a.parentNode;) { 1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop }); } "function" === typeof c.focus && c.focus(); for (c = 0; c < b.length; c++) { a = b[c], a.element.scrollLeft = a.left, a.element.scrollTop = a.top; } } } var Td = Ta && "documentMode" in document && 11 >= document.documentMode, Ud = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, Vd = null, Wd = null, Xd = null, Yd = !1; function Zd(a, b) { var c = b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument; if (Yd || null == Vd || Vd !== Ld(c)) return null; c = Vd; "selectionStart" in c && Qd(c) ? c = { start: c.selectionStart, end: c.selectionEnd } : (c = (c.ownerDocument && c.ownerDocument.defaultView || window).getSelection(), c = { anchorNode: c.anchorNode, anchorOffset: c.anchorOffset, focusNode: c.focusNode, focusOffset: c.focusOffset }); return Xd && fd(Xd, c) ? null : (Xd = c, a = y.getPooled(Ud.select, Wd, a, b), a.type = "select", a.target = Vd, Sa(a), a); } var $d = { eventTypes: Ud, extractEvents: function extractEvents(a, b, c, d) { var e = d.window === d ? d.document : 9 === d.nodeType ? d : d.ownerDocument, f; if (!(f = !e)) { a: { e = Kd(e); f = ta.onSelect; for (var g = 0; g < f.length; g++) { var h = f[g]; if (!e.hasOwnProperty(h) || !e[h]) { e = !1; break a; } } e = !0; } f = !e; } if (f) return null; e = b ? La(b) : window