UNPKG

react-palm

Version:

Elm-like architecture for React apps

2,039 lines (1,739 loc) 163 kB
/** @license React v16.8.4+patch * react-dom.profiling.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"), v = require("scheduler/tracing"); 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 k = [c, d, e, f, g, h], l = 0; a = Error(b.replace(/%s/g, function () { return k[l++]; })); 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, k) { var l = Array.prototype.slice.call(arguments, 3); try { return b.apply(c, l); } 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, k) { da = !1; ea = null; return ca.apply(ia, arguments); } function ka(a, b, c, d, e, f, g, h, k) { var l = 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 l; } 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 k = f.phasedRegistrationNames; if (k) { for (e in k) { k.hasOwnProperty(e) && ra(k[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 Ma(a) { if (5 === a.tag || 6 === a.tag) return a.stateNode; x("33"); } function Na(a) { return a[Ia] || null; } function Oa(a) { do { a = a.return; } while (a && 5 !== a.tag); return a ? a : null; } function Pa(a, b, c) { if (b = Ea(a, c.dispatchConfig.phasedRegistrationNames[b])) c._dispatchListeners = ya(c._dispatchListeners, b), c._dispatchInstances = ya(c._dispatchInstances, a); } function Qa(a) { if (a && a.dispatchConfig.phasedRegistrationNames) { for (var b = a._targetInst, c = []; b;) { c.push(b), b = Oa(b); } for (b = c.length; 0 < b--;) { Pa(c[b], "captured", a); } for (b = 0; b < c.length; b++) { Pa(c[b], "bubbled", a); } } } function Ra(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 Sa(a) { a && a.dispatchConfig.registrationName && Ra(a._targetInst, null, a); } function Ta(a) { za(a, Qa); } var Ua = !("undefined" === typeof window || !window.document || !window.document.createElement); function Va(a, b) { var c = {}; c[a.toLowerCase()] = b.toLowerCase(); c["Webkit" + a] = "webkit" + b; c["Moz" + a] = "moz" + b; return c; } var Wa = { animationend: Va("Animation", "AnimationEnd"), animationiteration: Va("Animation", "AnimationIteration"), animationstart: Va("Animation", "AnimationStart"), transitionend: Va("Transition", "TransitionEnd") }, Xa = {}, Ya = {}; Ua && (Ya = document.createElement("div").style, "AnimationEvent" in window || (delete Wa.animationend.animation, delete Wa.animationiteration.animation, delete Wa.animationstart.animation), "TransitionEvent" in window || delete Wa.transitionend.transition); function Za(a) { if (Xa[a]) return Xa[a]; if (!Wa[a]) return a; var b = Wa[a], c; for (c in b) { if (b.hasOwnProperty(c) && c in Ya) return Xa[a] = b[c]; } return a; } var $a = Za("animationend"), ab = Za("animationiteration"), bb = Za("animationstart"), cb = Za("transitionend"), db = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), eb = null, fb = null, hb = null; function ib() { if (hb) return hb; var a, b = fb, c = b.length, d, e = "value" in eb ? eb.value : eb.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 hb = e.slice(a, 1 < d ? 1 - d : void 0); } function jb() { return !0; } function kb() { 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) ? jb : kb; this.isPropagationStopped = kb; 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 = jb); }, stopPropagation: function stopPropagation() { var a = this.nativeEvent; a && (a.stopPropagation ? a.stopPropagation() : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = jb); }, persist: function persist() { this.isPersistent = jb; }, isPersistent: kb, 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 = kb; 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; lb(c); return c; }; lb(y); function mb(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 nb(a) { a instanceof this ? void 0 : x("279"); a.destructor(); 10 > this.eventPool.length && this.eventPool.push(a); } function lb(a) { a.eventPool = []; a.getPooled = mb; a.release = nb; } var ob = y.extend({ data: null }), pb = y.extend({ data: null }), qb = [9, 13, 27, 32], rb = Ua && "CompositionEvent" in window, sb = null; Ua && "documentMode" in document && (sb = document.documentMode); var tb = Ua && "TextEvent" in window && !sb, ub = Ua && (!rb || sb && 8 < sb && 11 >= sb), vb = String.fromCharCode(32), wb = { 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(" ") } }, xb = !1; function yb(a, b) { switch (a) { case "keyup": return -1 !== qb.indexOf(b.keyCode); case "keydown": return 229 !== b.keyCode; case "keypress": case "mousedown": case "blur": return !0; default: return !1; } } function zb(a) { a = a.detail; return "object" === _typeof(a) && "data" in a ? a.data : null; } var Ab = !1; function Bb(a, b) { switch (a) { case "compositionend": return zb(b); case "keypress": if (32 !== b.which) return null; xb = !0; return vb; case "textInput": return a = b.data, a === vb && xb ? null : a; default: return null; } } function Cb(a, b) { if (Ab) return "compositionend" === a || !rb && yb(a, b) ? (a = ib(), hb = fb = eb = null, Ab = !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 ub && "ko" !== b.locale ? null : b.data; default: return null; } } var Db = { eventTypes: wb, extractEvents: function extractEvents(a, b, c, d) { var e = void 0; var f = void 0; if (rb) b: { switch (a) { case "compositionstart": e = wb.compositionStart; break b; case "compositionend": e = wb.compositionEnd; break b; case "compositionupdate": e = wb.compositionUpdate; break b; } e = void 0; } else Ab ? yb(a, c) && (e = wb.compositionEnd) : "keydown" === a && 229 === c.keyCode && (e = wb.compositionStart); e ? (ub && "ko" !== c.locale && (Ab || e !== wb.compositionStart ? e === wb.compositionEnd && Ab && (f = ib()) : (eb = d, fb = "value" in eb ? eb.value : eb.textContent, Ab = !0)), e = ob.getPooled(e, b, c, d), f ? e.data = f : (f = zb(c), null !== f && (e.data = f)), Ta(e), f = e) : f = null; (a = tb ? Bb(a, c) : Cb(a, c)) ? (b = pb.getPooled(wb.beforeInput, b, c, d), b.data = a, Ta(b)) : b = null; return null === f ? b : null === b ? f : [f, b]; } }, Eb = null, Fb = null, Gb = null; function Hb(a) { if (a = va(a)) { "function" !== typeof Eb ? x("280") : void 0; var b = ua(a.stateNode); Eb(a.stateNode, a.type, b); } } function Ib(a) { Fb ? Gb ? Gb.push(a) : Gb = [a] : Fb = a; } function Jb() { if (Fb) { var a = Fb, b = Gb; Gb = Fb = null; Hb(a); if (b) for (a = 0; a < b.length; a++) { Hb(b[a]); } } } function Kb(a, b) { return a(b); } function Lb(a, b, c) { return a(b, c); } function Mb() {} var Ob = !1; function Pb(a, b) { if (Ob) return a(b); Ob = !0; try { return Kb(a, b); } finally { if (Ob = !1, null !== Fb || null !== Gb) Mb(), Jb(); } } var Qb = { 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 Rb(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return "input" === b ? !!Qb[a.type] : "textarea" === b ? !0 : !1; } function Sb(a) { a = a.target || a.srcElement || window; a.correspondingUseElement && (a = a.correspondingUseElement); return 3 === a.nodeType ? a.parentNode : a; } function Tb(a) { if (!Ua) 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 Ub(a) { var b = a.type; return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); } function Vb(a) { var b = Ub(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 Wb(a) { a._valueTracker || (a._valueTracker = Vb(a)); } function Xb(a) { if (!a) return !1; var b = a._valueTracker; if (!b) return !0; var c = b.getValue(); var d = ""; a && (d = Ub(a) ? a.checked ? "true" : "false" : a.value); a = d; return a !== c ? (b.setValue(a), !0) : !1; } var Yb = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; Yb.hasOwnProperty("ReactCurrentDispatcher") || (Yb.ReactCurrentDispatcher = { current: null }); var Zb = /^(.*)[\\\/]/, A = "function" === typeof Symbol && Symbol.for, $b = A ? Symbol.for("react.element") : 60103, ac = A ? Symbol.for("react.portal") : 60106, bc = A ? Symbol.for("react.fragment") : 60107, cc = A ? Symbol.for("react.strict_mode") : 60108, dc = A ? Symbol.for("react.profiler") : 60114, ec = A ? Symbol.for("react.provider") : 60109, fc = A ? Symbol.for("react.context") : 60110, gc = A ? Symbol.for("react.concurrent_mode") : 60111, hc = A ? Symbol.for("react.forward_ref") : 60112, ic = A ? Symbol.for("react.suspense") : 60113, jc = A ? Symbol.for("react.memo") : 60115, kc = A ? Symbol.for("react.lazy") : 60116, lc = "function" === typeof Symbol && Symbol.iterator; function mc(a) { if (null === a || "object" !== _typeof(a)) return null; a = lc && a[lc] || a["@@iterator"]; return "function" === typeof a ? a : null; } function nc(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 gc: return "ConcurrentMode"; case bc: return "Fragment"; case ac: return "Portal"; case dc: return "Profiler"; case cc: return "StrictMode"; case ic: return "Suspense"; } if ("object" === _typeof(a)) switch (a.$$typeof) { case fc: return "Context.Consumer"; case ec: return "Context.Provider"; case hc: var b = a.render; b = b.displayName || b.name || ""; return a.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef"); case jc: return nc(a.type); case kc: if (a = 1 === a._status ? a._result : null) return nc(a); } return null; } function oc(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 = nc(a.type); c = null; d && (c = nc(d.type)); d = f; f = ""; e ? f = " (at " + e.fileName.replace(Zb, "") + ":" + e.lineNumber + ")" : c && (f = " (created by " + c + ")"); c = "\n in " + (d || "Unknown") + f; } b += c; a = a.return; } while (a); return b; } var pc = /^[: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]*$/, qc = Object.prototype.hasOwnProperty, rc = {}, sc = {}; function tc(a) { if (qc.call(sc, a)) return !0; if (qc.call(rc, a)) return !1; if (pc.test(a)) return sc[a] = !0; rc[a] = !0; return !1; } function uc(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 vc(a, b, c, d) { if (null === b || "undefined" === typeof b || uc(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 B(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 C = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) { C[a] = new B(a, 0, !1, a, null); }); [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) { var b = a[0]; C[b] = new B(b, 1, !1, a[1], null); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) { C[a] = new B(a, 2, !1, a.toLowerCase(), null); }); ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) { C[a] = new B(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) { C[a] = new B(a, 3, !1, a.toLowerCase(), null); }); ["checked", "multiple", "muted", "selected"].forEach(function (a) { C[a] = new B(a, 3, !0, a, null); }); ["capture", "download"].forEach(function (a) { C[a] = new B(a, 4, !1, a, null); }); ["cols", "rows", "size", "span"].forEach(function (a) { C[a] = new B(a, 6, !1, a, null); }); ["rowSpan", "start"].forEach(function (a) { C[a] = new B(a, 5, !1, a.toLowerCase(), null); }); var wc = /[\-:]([a-z])/g; function xc(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(wc, xc); C[b] = new B(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(wc, xc); C[b] = new B(b, 1, !1, a, "http://www.w3.org/1999/xlink"); }); ["xml:base", "xml:lang", "xml:space"].forEach(function (a) { var b = a.replace(wc, xc); C[b] = new B(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); }); ["tabIndex", "crossOrigin"].forEach(function (a) { C[a] = new B(a, 1, !1, a.toLowerCase(), null); }); function yc(a, b, c, d) { var e = C.hasOwnProperty(b) ? C[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 || (vc(b, c, e, d) && (c = null), d || null === e ? tc(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 zc(a) { switch (_typeof(a)) { case "boolean": case "number": case "object": case "string": case "undefined": return a; default: return ""; } } function Ac(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 Bc(a, b) { var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; c = zc(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 Cc(a, b) { b = b.checked; null != b && yc(a, "checked", b, !1); } function Dc(a, b) { Cc(a, b); var c = zc(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") ? Ec(a, b.type, c) : b.hasOwnProperty("defaultValue") && Ec(a, b.type, zc(b.defaultValue)); null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); } function Fc(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 Ec(a, b, c) { if ("number" !== b || a.ownerDocument.activeElement !== a) null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c); } var Gc = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; function Hc(a, b, c) { a = y.getPooled(Gc.change, a, b, c); a.type = "change"; Ib(c); Ta(a); return a; } var Ic = null, Jc = null; function Kc(a) { Fa(a); } function Lc(a) { var b = Ma(a); if (Xb(b)) return a; } function Mc(a, b) { if ("change" === a) return b; } var Nc = !1; Ua && (Nc = Tb("input") && (!document.documentMode || 9 < document.documentMode)); function Oc() { Ic && (Ic.detachEvent("onpropertychange", Pc), Jc = Ic = null); } function Pc(a) { "value" === a.propertyName && Lc(Jc) && (a = Hc(Jc, a, Sb(a)), Pb(Kc, a)); } function Qc(a, b, c) { "focus" === a ? (Oc(), Ic = b, Jc = c, Ic.attachEvent("onpropertychange", Pc)) : "blur" === a && Oc(); } function Rc(a) { if ("selectionchange" === a || "keyup" === a || "keydown" === a) return Lc(Jc); } function Sc(a, b) { if ("click" === a) return Lc(b); } function Tc(a, b) { if ("input" === a || "change" === a) return Lc(b); } var Uc = { eventTypes: Gc, _isInputEventSupported: Nc, extractEvents: function extractEvents(a, b, c, d) { var e = b ? Ma(b) : window, f = void 0, g = void 0, h = e.nodeName && e.nodeName.toLowerCase(); "select" === h || "input" === h && "file" === e.type ? f = Mc : Rb(e) ? Nc ? f = Tc : (f = Rc, g = Qc) : (h = e.nodeName) && "input" === h.toLowerCase() && ("checkbox" === e.type || "radio" === e.type) && (f = Sc); if (f && (f = f(a, b))) return Hc(f, c, d); g && g(a, e, b); "blur" === a && (a = e._wrapperState) && a.controlled && "number" === e.type && Ec(e, "number", e.value); } }, Vc = y.extend({ view: null, detail: null }), Wc = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function Xc(a) { var b = this.nativeEvent; return b.getModifierState ? b.getModifierState(a) : (a = Wc[a]) ? !!b[a] : !1; } function Yc() { return Xc; } var Zc = 0, $c = 0, ad = !1, bd = !1, cd = Vc.extend({ screenX: null, screenY: null, clientX: null, clientY: null, pageX: null, pageY: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, getModifierState: Yc, 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 = Zc; Zc = a.screenX; return ad ? "mousemove" === a.type ? a.screenX - b : 0 : (ad = !0, 0); }, movementY: function movementY(a) { if ("movementY" in a) return a.movementY; var b = $c; $c = a.screenY; return bd ? "mousemove" === a.type ? a.screenY - b : 0 : (bd = !0, 0); } }), dd = cd.extend({ pointerId: null, width: null, height: null, pressure: null, tangentialPressure: null, tiltX: null, tiltY: null, twist: null, pointerType: null, isPrimary: null }), ed = { mouseEnter: { registrationName: "onMouseEnter", dependencies: ["mouseout", "mouseover"] }, mouseLeave: { registrationName: "onMouseLeave", dependencies: ["mouseout", "mouseover"] }, pointerEnter: { registrationName: "onPointerEnter", dependencies: ["pointerout", "pointerover"] }, pointerLeave: { registrationName: "onPointerLeave", dependencies: ["pointerout", "pointerover"] } }, fd = { eventTypes: ed, 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, k = void 0, l = void 0; if ("mouseout" === a || "mouseover" === a) g = cd, h = ed.mouseLeave, k = ed.mouseEnter, l = "mouse";else if ("pointerout" === a || "pointerover" === a) g = dd, h = ed.pointerLeave, k = ed.pointerEnter, l = "pointer"; var m = null == f ? e : Ma(f); e = null == b ? e : Ma(b); a = g.getPooled(h, f, c, d); a.type = l + "leave"; a.target = m; a.relatedTarget = e; c = g.getPooled(k, b, c, d); c.type = l + "enter"; c.target = e; c.relatedTarget = m; d = b; if (f && d) a: { b = f; e = d; l = 0; for (g = b; g; g = Oa(g)) { l++; } g = 0; for (k = e; k; k = Oa(k)) { g++; } for (; 0 < l - g;) { b = Oa(b), l--; } for (; 0 < g - l;) { e = Oa(e), g--; } for (; l--;) { if (b === e || b === e.alternate) break a; b = Oa(b); e = Oa(e); } b = null; } else b = null; e = b; for (b = []; f && f !== e;) { l = f.alternate; if (null !== l && l === e) break; b.push(f); f = Oa(f); } for (f = []; d && d !== e;) { l = d.alternate; if (null !== l && l === e) break; f.push(d); d = Oa(d); } for (d = 0; d < b.length; d++) { Ra(b[d], "bubbled", a); } for (d = f.length; 0 < d--;) { Ra(f[d], "captured", c); } return [a, c]; } }; function gd(a, b) { return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; } var hd = Object.prototype.hasOwnProperty; function id(a, b) { if (gd(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 (!hd.call(b, c[d]) || !gd(a[c[d]], b[c[d]])) return !1; } return !0; } function jd(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 kd(a) { 2 !== jd(a) ? x("188") : void 0; } function ld(a) { var b = a.alternate; if (!b) return b = jd(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 kd(e), a; if (g === d) return kd(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 md(a) { a = ld(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 nd = y.extend({ animationName: null, elapsedTime: null, pseudoElement: null }), od = y.extend({ clipboardData: function clipboardData(a) { return "clipboardData" in a ? a.clipboardData : window.clipboardData; } }), pd = Vc.extend({ relatedTarget: null }); function qd(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 rd = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, sd = { 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" }, td = Vc.extend({ key: function key(a) { if (a.key) { var b = rd[a.key] || a.key; if ("Unidentified" !== b) return b; } return "keypress" === a.type ? (a = qd(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? sd[a.keyCode] || "Unidentified" : ""; }, location: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, repeat: null, locale: null, getModifierState: Yc, charCode: function charCode(a) { return "keypress" === a.type ? qd(a) : 0; }, keyCode: function keyCode(a) { return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; }, which: function which(a) { return "keypress" === a.type ? qd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; } }), ud = cd.extend({ dataTransfer: null }), vd = Vc.extend({ touches: null, targetTouches: null, changedTouches: null, altKey: null, metaKey: null, ctrlKey: null, shiftKey: null, getModifierState: Yc }), wd = y.extend({ propertyName: null, elapsedTime: null, pseudoElement: null }), xd = cd.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 }), yd = [["abort", "abort"], [$a, "animationEnd"], [ab, "animationIteration"], [bb, "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"], [cb, "transitionEnd"], ["waiting", "waiting"], ["wheel", "wheel"]], zd = {}, Ad = {}; function Bd(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 }; zd[a] = b; Ad[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) { Bd(a, !0); }); yd.forEach(function (a) { Bd(a, !1); }); var Cd = { eventTypes: zd, isInteractiveTopLevelEventType: function isInteractiveTopLevelEventType(a) { a = Ad[a]; return void 0 !== a && !0 === a.isInteractive; }, extractEvents: function extractEvents(a, b, c, d) { var e = Ad[a]; if (!e) return null; switch (a) { case "keypress": if (0 === qd(c)) return null; case "keydown": case "keyup": a = td; break; case "blur": case "focus": a = pd; 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 = cd; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": a = ud; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": a = vd; break; case $a: case ab: case bb: a = nd; break; case cb: a = wd; break; case "scroll": a = Vc; break; case "wheel": a = xd; break; case "copy": case "cut": case "paste": a = od; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": a = dd; break; default: a = y; } b = a.getPooled(e, b, c, d); Ta(b); return b; } }, Dd = Cd.isInteractiveTopLevelEventType, Ed = []; function Fd(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 = Sb(a.nativeEvent); d = a.topLevelType; for (var f = a.nativeEvent, g = null, h = 0; h < pa.length; h++) { var k = pa[h]; k && (k = k.extractEvents(d, b, f, e)) && (g = ya(g, k)); } Fa(g); } } var Gd = !0; function D(a, b) { if (!b) return null; var c = (Dd(a) ? Hd : Id).bind(null, a); b.addEventListener(a, c, !1); } function Jd(a, b) { if (!b) return null; var c = (Dd(a) ? Hd : Id).bind(null, a); b.addEventListener(a, c, !0); } function Hd(a, b) { Lb(Id, a, b); } function Id(a, b) { if (Gd) { var c = Sb(b); c = Ja(c); null === c || "number" !== typeof c.tag || 2 === jd(c) || (c = null); if (Ed.length) { var d = Ed.pop(); d.topLevelType = a; d.nativeEvent = b; d.targetInst = c; a = d; } else a = { topLevelType: a, nativeEvent: b, targetInst: c, ancestors: [] }; try { Pb(Fd, a); } finally { a.topLevelType = null, a.nativeEvent = null, a.targetInst = null, a.ancestors.length = 0, 10 > Ed.length && Ed.push(a); } } } var Kd = {}, Ld = 0, Md = "_reactListenersID" + ("" + Math.random()).slice(2); function Nd(a) { Object.prototype.hasOwnProperty.call(a, Md) || (a[Md] = Ld++, Kd[a[Md]] = {}); return Kd[a[Md]]; } function Od(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 Pd(a) { for (; a && a.firstChild;) { a = a.firstChild; } return a; } function Qd(a, b) { var c = Pd(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 = Pd(c); } } function Rd(a, b) { return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Rd(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1; } function Sd() { for (var a = window, b = Od(); b instanceof a.HTMLIFrameElement;) { try { a = b.contentDocument.defaultView; } catch (c) { break; } b = Od(a.document); } return b; } function Td(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 Ud() { var a = Sd(); if (Td(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 (U) { b = null; break a; } var f = 0, g = -1, h = -1, k = 0, l = 0, m = a, p = null; b: for (;;) { for (var w;;) { 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 === (w = m.firstChild)) break; p = m; m = w; } for (;;) { if (m === a) break b; p === b && ++k === d && (g = f); p === e && ++l === c && (h = f); if (null !== (w = m.nextSibling)) break; m = p; p = m.parentNode; } m = w; } 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 Vd(a) { var b = Sd(), c = a.focusedElem, d = a.selectionRange; if (b !== c && c && c.ownerDocument && Rd(c.ownerDocument.documentElement, c)) { if (null !== d && Td(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 = Qd(c, f); var g = Qd(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 Wd = Ua && "documentMode" in document && 11 >= document.documentMode, Xd = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, Yd = null, Zd = null, $d = null, ae = !1; function be(a, b) { var c = b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument; if (ae || null == Yd || Yd !== Od(c)) return null; c = Yd; "selectionStart" in c && Td(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 $d && id($d, c) ? null : ($d = c, a = y.getPooled(Xd.select, Zd, a, b), a.type = "select", a.target = Yd, Ta(a), a); } var ce = { eventTypes: Xd, 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 = Nd(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) re