;/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/9cisb7Fe7ih/ */ __d("immutable-3.7.3",[],(function(t,n,r,o,a,i){"use strict";var e={},l={exports:e};function s(){(function(t,n){typeof e=="object"&&typeof l!="undefined"?l.exports=n():t.Immutable=n()})(this,function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}var n="delete",r=5,o=1<=0?+t:p(e)+ +t}function f(){return!0}function g(e,t,n){return(e===0||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function h(e,t){return C(e,t,0)}function y(e,t){return C(e,t,t)}function C(e,t,n){return e===void 0?n:e<0?Math.max(0,t+e):t===void 0?e:Math.min(t,e)}function b(e){return L(e)?e:j(e)}t(v,b);function v(e){return E(e)?e:K(e)}t(S,b);function S(e){return k(e)?e:Q(e)}t(R,b);function R(e){return L(e)&&!I(e)?e:X(e)}function L(e){return!!(e&&e[D])}function E(e){return!!(e&&e[x])}function k(e){return!!(e&&e[$])}function I(e){return E(e)||k(e)}function T(e){return!!(e&&e[P])}b.isIterable=L,b.isKeyed=E,b.isIndexed=k,b.isAssociative=I,b.isOrdered=T,b.Keyed=v,b.Indexed=S,b.Set=R;var D="@@__IMMUTABLE_ITERABLE__@@",x="@@__IMMUTABLE_KEYED__@@",$="@@__IMMUTABLE_INDEXED__@@",P="@@__IMMUTABLE_ORDERED__@@",N=0,M=1,w=2,A=typeof Symbol=="function"&&Symbol.iterator,F="@@iterator",O=A||F;function B(e){this.next=e}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=N,B.VALUES=M,B.ENTRIES=w,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[O]=function(){return this};function W(e,t,n,r){var o=e===0?t:e===1?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function q(){return{value:void 0,done:!0}}function U(e){return!!G(e)}function V(e){return e&&typeof e.next=="function"}function H(e){var t=G(e);return t&&t.call(e)}function G(e){var t=e&&(A&&e[A]||e[F]);if(typeof t=="function")return t}function z(e){return e&&typeof e.length=="number"}t(j,b);function j(e){return e==null?oe():L(e)?e.toSeq():le(e)}j.of=function(){return j(arguments)},j.prototype.toSeq=function(){return this},j.prototype.toString=function(){return this.__toString("Seq {","}")},j.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},j.prototype.__iterate=function(e,t){return ue(this,e,t,!0)},j.prototype.__iterator=function(e,t){return ce(this,e,t,!0)},t(K,j);function K(e){return e==null?oe().toKeyedSeq():L(e)?E(e)?e.toSeq():e.fromEntrySeq():ae(e)}K.prototype.toKeyedSeq=function(){return this},t(Q,j);function Q(e){return e==null?oe():L(e)?E(e)?e.entrySeq():e.toIndexedSeq():ie(e)}Q.of=function(){return Q(arguments)},Q.prototype.toIndexedSeq=function(){return this},Q.prototype.toString=function(){return this.__toString("Seq [","]")},Q.prototype.__iterate=function(e,t){return ue(this,e,t,!1)},Q.prototype.__iterator=function(e,t){return ce(this,e,t,!1)},t(X,j);function X(e){return(e==null?oe():L(e)?E(e)?e.entrySeq():e:ie(e)).toSetSeq()}X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},j.isSeq=ne,j.Keyed=K,j.Set=X,j.Indexed=Q;var Y="@@__IMMUTABLE_SEQ__@@";j.prototype[Y]=!0,t(J,Q);function J(e){this._array=e,this.size=e.length}J.prototype.get=function(e,t){return this.has(e)?this._array[_(this,e)]:t},J.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(e(n[t?r-o:o],o,this)===!1)return o+1;return o},J.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new B(function(){return o>r?q():W(e,o,n[t?r-o++:o++])})},t(Z,K);function Z(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}Z.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},Z.prototype.has=function(e){return this._object.hasOwnProperty(e)},Z.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(e(n[i],i,this)===!1)return a+1}return a},Z.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new B(function(){var i=r[t?o-a:a];return a++>o?q():W(e,i,n[i])})},Z.prototype[P]=!0,t(ee,Q);function ee(e){this._iterable=e,this.size=e.length||e.size}ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=H(n),o=0;if(V(r))for(var a;!(a=r.next()).done&&e(a.value,o++,this)!==!1;);return o},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=H(n);if(!V(r))return new B(q);var o=0;return new B(function(){var t=r.next();return t.done?t:W(e,o++,t.value)})},t(te,Q);function te(e){this._iterator=e,this._iteratorCache=[]}te.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return W(e,o,r[o++])})};function ne(e){return!!(e&&e[Y])}var re;function oe(){return re||(re=new J([]))}function ae(e){var t=Array.isArray(e)?new J(e).fromEntrySeq():V(e)?new te(e).fromEntrySeq():U(e)?new ee(e).fromEntrySeq():typeof e=="object"?new Z(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ie(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=se(e)||typeof e=="object"&&new Z(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function se(e){return z(e)?new J(e):V(e)?new te(e):U(e)?new ee(e):void 0}function ue(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var l=o[n?a-i:i];if(t(l[1],r?l[0]:i,e)===!1)return i+1}return i}return e.__iterateUncached(t,n)}function ce(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new B(function(){var e=o[n?a-i:i];return i++>a?q():W(t,r?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,n)}t(de,b);function de(){throw TypeError("Abstract")}t(me,de);function me(){}t(pe,de);function pe(){}t(_e,de);function _e(){}de.Keyed=me,de.Indexed=pe,de.Set=_e;function fe(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(typeof e.equals=="function"&&typeof t.equals=="function"&&e.equals(t))}function ge(e,t){return t?he(t,e,"",{"":e}):ye(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Q(t).map(function(n,r){return he(e,n,r,t)})):Ce(t)?e.call(r,n,K(t).map(function(n,r){return he(e,n,r,t)})):t}function ye(e){return Array.isArray(e)?Q(e).map(ye).toList():Ce(e)?K(e).map(ye).toMap():e}function Ce(e){return e&&(e.constructor===Object||e.constructor===void 0)}var be=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,n){t=t|0,n=n|0;var e=t&65535,r=n&65535;return e*r+((t>>>16)*r+e*(n>>>16)<<16>>>0)|0};function ve(e){return e>>>1&1073741824|e&3221225471}function Se(e){if(e===!1||e===null||e===void 0||typeof e.valueOf=="function"&&(e=e.valueOf(),e===!1||e===null||e===void 0))return 0;if(e===!0)return 1;var t=typeof e;if(t==="number"){var n=e|0;for(n!==e&&(n^=e*4294967295);e>4294967295;)e/=4294967295,n^=e;return ve(n)}return t==="string"?e.length>Ne?Re(e):Le(e):typeof e.hashCode=="function"?e.hashCode():Ee(e)}function Re(e){var t=Ae[e];return t===void 0&&(t=Le(e),we===Me&&(we=0,Ae={}),we++,Ae[e]=t),t}function Le(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var De=typeof WeakMap=="function",xe;De&&(xe=new WeakMap);var $e=0,Pe="__immutablehash__";typeof Symbol=="function"&&(Pe=Symbol(Pe));var Ne=16,Me=255,we=0,Ae={};function Fe(e,t){if(!e)throw new Error(t)}function Oe(e){Fe(e!==1/0,"Cannot perform this action with an infinite size.")}t(Be,K);function Be(e,t){this._iter=e,this._useKeys=t,this.size=e.size}Be.prototype.get=function(e,t){return this._iter.get(e,t)},Be.prototype.has=function(e){return this._iter.has(e)},Be.prototype.valueSeq=function(){return this._iter.valueSeq()},Be.prototype.reverse=function(){var e=this,t=Ge(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Be.prototype.map=function(e,t){var n=this,r=He(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Be.prototype.__iterate=function(e,t){var n=this,r;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?st(this):0,function(o){return e(o,t?--r:r++,n)}),t)},Be.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(M,t),r=t?st(this):0;return new B(function(){var o=n.next();return o.done?o:W(e,t?--r:r++,o.value,o)})},Be.prototype[P]=!0,t(We,Q);function We(e){this._iter=e,this.size=e.size}We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t),r=0;return new B(function(){var t=n.next();return t.done?t:W(e,r++,t.value,t)})},t(qe,X);function qe(e){this._iter=e,this.size=e.size}qe.prototype.has=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new B(function(){var t=n.next();return t.done?t:W(e,t.value,t.value,t)})},t(Ue,K);function Ue(e){this._iter=e,this.size=e.size}Ue.prototype.entrySeq=function(){return this._iter.toSeq()},Ue.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){lt(t);var r=L(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ue.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new B(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){lt(r);var o=L(r);return W(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},We.prototype.cacheResult=Be.prototype.cacheResult=qe.prototype.cacheResult=Ue.prototype.cacheResult=dt;function Ve(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=dt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===w){var r=e.__iterator(t,n);return new B(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===M?N:M,n)},t}function He(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,i);return a===i?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate(function(e,o,i){return r(t.call(n,e,o,i),o,a)!==!1},o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(w,o);return new B(function(){var o=a.next();if(o.done)return o;var i=o.value,l=i[0];return W(r,l,t.call(n,i[1],l,e),o)})},r}function Ge(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=dt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ze(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,i);return o!==i&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,i);return a!==i&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,l=0;return e.__iterate(function(e,a,s){if(t.call(n,e,a,s))return l++,o(e,r?a:l-1,i)},a),l},o.__iteratorUncached=function(o,a){var i=e.__iterator(w,a),l=0;return new B(function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return W(o,r?u:l++,c,a)}})},o}function je(e,t,n){var r=_t().asMutable();return e.__iterate(function(o,a){r.update(t.call(n,o,a,e),0,function(e){return e+1})}),r.asImmutable()}function Ke(e,t,n){var r=E(e),o=(T(e)?dn():_t()).asMutable();e.__iterate(function(a,i){o.update(t.call(n,a,i,e),function(e){return e=e||[],e.push(r?[i,a]:a),e})});var a=ut(e);return o.map(function(t){return it(e,a(t))})}function Qe(e,t,n,r){var o=e.size;if(g(t,n,o))return e;var a=h(t,o),i=y(n,o);if(a!==a||i!==i)return Qe(e.toSeq().cacheResult(),t,n,r);var l=i-a,s;l===l&&(s=l<0?0:l);var u=ct(e);return u.size=s,!r&&ne(e)&&s>=0&&(u.get=function(t,n){return t=_(this,t),t>=0&&ts)return q();var e=o.next();return r||t===M?e:t===N?W(t,l-1,void 0,e):W(t,l-1,e.value[1],e)})},u}function Xe(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate(function(e,o,l){return t.call(n,e,o,l)&&++i&&r(e,o,a)}),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(w,o),l=!0;return new B(function(){if(!l)return q();var e=i.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,a)?r===w?e:W(r,s,u,e):(l=!1,q())})},r}function Ye(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var l=!0,s=0;return e.__iterate(function(e,a,u){if(!(l&&(l=t.call(n,e,a,u))))return s++,o(e,r?a:s-1,i)}),s},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var l=e.__iterator(w,a),s=!0,u=0;return new B(function(){var e,a,c;do{if(e=l.next(),e.done)return r||o===M?e:o===N?W(o,u++,void 0,e):W(o,u++,e.value[1],e);var d=e.value;a=d[0],c=d[1],s&&(s=t.call(n,c,a,i))}while(s);return o===w?e:W(o,a,c,e)})},o}function Je(e,t){var n=E(e),r=[e].concat(t).map(function(e){return L(e)?n&&(e=v(e)):e=n?ae(e):ie(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(r.length===0)return e;if(r.length===1){var o=r[0];if(o===e||n&&E(o)||k(e)&&k(o))return o}var a=new J(r);return n?a=a.toKeyedSeq():k(e)||(a=a.toSetSeq()),a=a.flatten(!0),a.size=r.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),a}function Ze(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,i=!1;function l(e,s){var u=this;e.__iterate(function(e,o){return(!t||s0}function at(e,t,n){var r=ct(e);return r.size=new J(n).map(function(e){return e.size}).min(),r.__iterate=function(e,t){for(var n=this.__iterator(M,t),r,o=0;!(r=n.next()).done&&e(r.value,o++,this)!==!1;);return o},r.__iteratorUncached=function(e,r){var o=n.map(function(e){return e=b(e),H(r?e.reverse():e)}),a=0,i=!1;return new B(function(){var n;return i||(n=o.map(function(e){return e.next()}),i=n.some(function(e){return e.done})),i?q():W(e,a++,t.apply(null,n.map(function(e){return e.value})))})},r}function it(e,t){return ne(e)?t:e.constructor(t)}function lt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function st(e){return Oe(e.size),p(e)}function ut(e){return E(e)?v:k(e)?S:R}function ct(e){return Object.create((E(e)?K:k(e)?Q:X).prototype)}function dt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):j.prototype.cacheResult.call(this)}function mt(e,t){return e>t?1:e=Ht)return Nt(e,u,r,o);var f=e&&e===this.ownerID,g=f?u:m(u);return _?s?d===p-1?g.pop():g[d]=g.pop():g[d]=[r,o]:g.push([r,o]),f?(this.entries=g,this):new yt(e,g)}};function Ct(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}Ct.prototype.get=function(e,t,n,o){t===void 0&&(t=Se(n));var i=1<<((e===0?t:t>>>e)&a),l=this.bitmap;return(l&i)===0?o:this.nodes[Wt(l&i-1)].get(e+r,t,n,o)},Ct.prototype.update=function(e,t,n,o,l,s,u){n===void 0&&(n=Se(o));var c=(t===0?n:n>>>t)&a,d=1<=Gt)return wt(e,f,m,c,h);if(p&&!h&&f.length===2&&$t(f[_^1]))return f[_^1];if(p&&h&&f.length===1&&$t(h))return h;var y=e&&e===this.ownerID,C=p?h?m:m^d:m|d,b=p?h?qt(f,_,h,y):Vt(f,_,y):Ut(f,_,h,y);return y?(this.bitmap=C,this.nodes=b,this):new Ct(e,C,b)};function bt(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}bt.prototype.get=function(e,t,n,o){t===void 0&&(t=Se(n));var i=(e===0?t:t>>>e)&a,l=this.nodes[i];return l?l.get(e+r,t,n,o):o},bt.prototype.update=function(e,t,n,o,l,s,u){n===void 0&&(n=Se(o));var c=(t===0?n:n>>>t)&a,d=l===i,m=this.nodes,p=m[c];if(d&&!p)return this;var _=xt(p,e,t+r,n,o,l,s,u);if(_===p)return this;var f=this.count;if(!p)f++;else if(!_&&(f--,f>>n)&a,s=(n===0?o:o>>>n)&a,u,c=l===s?[Pt(e,t,n+r,o,i)]:(u=new St(t,o,i),l>>=1)l[s]=n&1?t[i++]:void 0;return l[r]=a,new bt(e,i+1,l)}function At(e,t,n){for(var r=[],o=0;o>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&127}function qt(e,t,n,r){var o=r?e:m(e);return o[t]=n,o}function Ut(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var a=new Array(o),i=0,l=0;l0&&a=this.size)return t;e+=this._origin;var n=ln(this,e);return n&&n.array[e&a]},jt.prototype.set=function(e,t){return rn(this,e,t)},jt.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},jt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):nn()},jt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){sn(n,0,t+e.length);for(var r=0;r>>t&a;if(o>=this.array.length)return new Yt([],e);var i=o===0,l;if(t>0){var s=this.array[o];if(l=s&&s.removeBefore(e,t-r,n),l===s&&i)return this}if(i&&!l)return this;var u=an(this,e);if(!i)for(var c=0;c>>t&a;if(o>=this.array.length)return this;var i=o===this.array.length-1,l;if(t>0){var s=this.array[o];if(l=s&&s.removeAfter(e,t-r,n),l===s&&i)return this}if(i&&!l)return this;var u=an(this,e);return i||u.array.pop(),l&&(u.array[o]=l),u};var Jt={};function Zt(e,t){var n=e._origin,a=e._capacity,i=cn(a),l=e._tail;return s(e._root,e._level,0);function s(e,t,n){return t===0?u(e,n):c(e,t,n)}function u(e,r){var s=r===i?l&&l.array:e&&e.array,u=r>n?0:n-r,c=a-r;return c>o&&(c=o),function(){if(u===c)return Jt;var e=t?--c:u++;return s&&s[e]}}function c(e,i,l){var u,c=e&&e.array,d=l>n?0:n-l>>i,m=(a-l>>i)+1;return m>o&&(m=o),function(){do{if(u){var e=u();if(e!==Jt)return e;u=null}if(d===m)return Jt;var n=t?--m:d++;u=s(c&&c[n],i-r,l+(n<=e.size||t<0)return e.withMutations(function(e){t<0?sn(e,t).set(0,n):sn(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,a=u(s);return t>=cn(e._capacity)?r=on(r,e.__ownerID,0,t,n,a):o=on(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):en(e._origin,e._capacity,e._level,o,r):e}function on(e,t,n,o,i,l){var s=o>>>n&a,u=e&&s0){var m=e&&e.array[s],p=on(m,t,n-r,o,i,l);return p===m?e:(d=an(e,t),d.array[s]=p,d)}return u&&e.array[s]===i?e:(c(l),d=an(e,t),i===void 0&&s===d.array.length-1?d.array.pop():d.array[s]=i,d)}function an(e,t){return t&&e&&t===e.ownerID?e:new Yt(e?e.array.slice():[],t)}function ln(e,t){if(t>=cn(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>o&a],o-=r;return n}}function sn(e,t,n){var o=e.__ownerID||new d,i=e._origin,l=e._capacity,s=i+t,u=n===void 0?l:n<0?l+n:i+n;if(s===i&&u===l)return e;if(s>=u)return e.clear();for(var c=e._level,m=e._root,p=0;s+p<0;)m=new Yt(m&&m.array.length?[void 0,m]:[],o),c+=r,p+=1<=1<_?new Yt([],o):g;if(g&&f>_&&sr;C-=r){var b=_>>>C&a;y=y.array[b]=an(y.array[b],o)}y.array[_>>>r&a]=g}if(u=f)s-=f,u-=f,c=r,m=null,h=h&&h.removeBefore(o,0,s);else if(s>i||f<_){for(p=0;m;){var v=s>>>c&a;if(v!==f>>>c&a)break;v&&(p+=(1<i&&(m=m.removeBefore(o,c,s-p)),m&&f<_&&(m=m.removeAfter(o,c,f-p)),p&&(s-=p,u-=p)}return e.__ownerID?(e.size=u-s,e._origin=s,e._capacity=u,e._level=c,e._root=m,e._tail=h,e.__hash=void 0,e.__altered=!0,e):en(s,u,c,m,h)}function un(e,t,n){for(var r=[],o=0,a=0;ao&&(o=l.size),L(i)||(l=l.map(function(e){return ge(e)})),r.push(l)}return o>e.size&&(e=e.setSize(o)),Ot(e,t,r)}function cn(e){return e>>r<=o&&a.size>=r.size*2?(c=a.filter(function(e,t){return e!==void 0&&l!==t}),u=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(u.__ownerID=c.__ownerID=e.__ownerID)):(u=r.remove(t),c=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;u=r,c=a.set(l,[t,n])}else u=r.set(t,a.size),c=a.set(a.size,[t,n]);return e.__ownerID?(e.size=u.size,e._map=u,e._list=c,e.__hash=void 0,e):pn(u,c)}t(hn,pe);function hn(e){return e==null?Rn():yn(e)?e:Rn().unshiftAll(e)}hn.of=function(){return this(arguments)},hn.prototype.toString=function(){return this.__toString("Stack [","]")},hn.prototype.get=function(e,t){var n=this._head;for(e=_(this,e);n&&e--;)n=n.next;return n?n.value:t},hn.prototype.peek=function(){return this._head&&this._head.value},hn.prototype.push=function(){if(arguments.length===0)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):vn(e,t)},hn.prototype.pushAll=function(e){if(e=S(e),e.size===0)return this;Oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):vn(t,n)},hn.prototype.pop=function(){return this.slice(1)},hn.prototype.unshift=function(){return this.push.apply(this,arguments)},hn.prototype.unshiftAll=function(e){return this.pushAll(e)},hn.prototype.shift=function(){return this.pop.apply(this,arguments)},hn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Rn()},hn.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=h(e,this.size),r=y(t,this.size);if(r!==this.size)return pe.prototype.slice.call(this,e,t);for(var o=this.size-n,a=this._head;n--;)a=a.next;return this.__ownerID?(this.size=o,this._head=a,this.__hash=void 0,this.__altered=!0,this):vn(o,a)},hn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},hn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},hn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new B(function(){if(r){var t=r.value;return r=r.next,W(e,n++,t)}return q()})};function yn(e){return!!(e&&e[Cn])}hn.isStack=yn;var Cn="@@__IMMUTABLE_STACK__@@",bn=hn.prototype;bn[Cn]=!0,bn.withMutations=ht.withMutations,bn.asMutable=ht.asMutable,bn.asImmutable=ht.asImmutable,bn.wasAltered=ht.wasAltered;function vn(e,t,n,r){var o=Object.create(bn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}var Sn;function Rn(){return Sn||(Sn=vn(0))}t(Ln,_e);function Ln(e){return e==null?$n():En(e)?e:$n().withMutations(function(t){var n=R(e);Oe(n.size),n.forEach(function(e){return t.add(e)})})}Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(v(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("Set {","}")},Ln.prototype.has=function(e){return this._map.has(e)},Ln.prototype.add=function(e){return Tn(this,this._map.set(e,!0))},Ln.prototype.remove=function(e){return Tn(this,this._map.remove(e))},Ln.prototype.clear=function(){return Tn(this,this._map.clear())},Ln.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(e){for(var n=0;n1?" by "+this._step:"")+" ]"},Gn.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},Gn.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?q():W(e,a++,i)})},Gn.prototype.equals=function(e){return e instanceof Gn?this._start===e._start&&this._end===e._end&&this._step===e._step:Hn(this,e)};var zn;t(jn,Q);function jn(e,t){if(!(this instanceof jn))return new jn(e,t);if(this._value=e,this.size=t===void 0?1/0:Math.max(0,t),this.size===0){if(Kn)return Kn;Kn=this}}jn.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},jn.prototype.get=function(e,t){return this.has(e)?this._value:t},jn.prototype.includes=function(e){return fe(this._value,e)},jn.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new jn(this._value,y(t,n)-h(e,n))},jn.prototype.reverse=function(){return this},jn.prototype.indexOf=function(e){return fe(this._value,e)?0:-1},jn.prototype.lastIndexOf=function(e){return fe(this._value,e)?this.size:-1},jn.prototype.__iterate=function(e,t){for(var n=0;nthis.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=_(this,e),e>=0&&(this.size!==void 0?this.size===1/0||et?-1:0}function ar(e){if(e.size===1/0)return 0;var t=T(e),n=E(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+lr(Se(e),Se(t))|0}:function(e,t){r=r+lr(Se(e),Se(t))|0}:t?function(e){r=31*r+Se(e)|0}:function(e){r=r+Se(e)|0});return ir(o,r)}function ir(e,t){return t=be(t,3432918353),t=be(t<<15|t>>>-15,461845907),t=be(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=be(t^t>>>16,2246822507),t=be(t^t>>>13,3266489909),t=ve(t^t>>>16),t}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var sr={Iterable:b,Seq:j,Collection:de,Map:_t,OrderedMap:dn,List:jt,Stack:hn,Set:Ln,OrderedSet:Pn,Record:On,Range:Gn,Repeat:jn,is:fe,fromJS:ge};return sr})}var u=!1;function c(){return u||(u=!0,s()),l.exports}function d(e){switch(e){case void 0:return c()}}a.exports=d}),null); __d("immutable",["immutable-3.7.3"],(function(t,n,r,o,a,i){a.exports=n("immutable-3.7.3")()}),null); /** * License: https://www.facebook.com/legal/license/t3hOLs8wlXy/ */ __d("resize-observer-polyfill-1.5.1",[],(function(t,n,r,o,a,i){"use strict";var e={},l={exports:e};function s(){(function(t,n){typeof e=="object"&&typeof l!="undefined"?l.exports=n():t.ResizeObserver=n()})(this,(function(){var e=(function(){if(typeof Map!="undefined")return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){!n||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!n||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?"":t,r=s.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),d=(function(e,t){for(var n=0,r=Object.keys(t);n0},t})(),I=typeof WeakMap!="undefined"?new WeakMap:new e,T=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new k(t,n,this);I.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){T.prototype[e]=function(){var t;return(t=I.get(this))[e].apply(t,arguments)}});var D=(function(){return typeof r.ResizeObserver!="undefined"?r.ResizeObserver:T})();return D}))}var u=!1;function c(){return u||(u=!0,s()),l.exports}function d(e){switch(e){case void 0:return c()}}a.exports=d}),null);