UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

20 lines 2.01 MB
/*! * * antd v3.23.0 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. * */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"],t):"object"==typeof exports?exports.antd=t(require("react"),require("react-dom"),require("moment")):e.antd=t(e.React,e.ReactDOM,e.moment)}(window,function(n,r,o){return c={},i.m=a=[function(e,t,n){e.exports=n(296)()},function(e,t){e.exports=n},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";var a={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n)&&n.length){var o=c.apply(null,n);o&&e.push(o)}else if("object"==r)for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(286),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(108),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(n){return f.createElement(b,null,function(e){var t=(0,e.getPrefixCls)("empty");switch(n){case"Table":case"List":return f.createElement(a.a,{image:a.a.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(a.a,{image:a.a.PRESENTED_IMAGE_SIMPLE,className:"".concat(t,"-small")});default:return f.createElement(a.a,null)}})}var f=n(1),o=n(27),i=n.n(o),a=n(56),p=n(91),c=n(21);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"b",function(){return m}),n.d(t,"a",function(){return b}),n.d(t,"d",function(){return w});var m=["getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"],y=i()({getPrefixCls:function(e,t){return t||"ant-".concat(e)},renderEmpty:r}),b=y.Consumer,g=function(){function e(){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(u=h(this,v(e).apply(this,arguments))).getPrefixCls=function(e,t){var n=u.props.prefixCls,r=void 0===n?"ant":n;return t||(e?"".concat(r,"-").concat(e):r)},u.renderProvider=function(e,t){var n=u.props,r=n.children,o=n.getPopupContainer,i=n.renderEmpty,a=n.csp,c=n.autoInsertSpaceInButton,l=n.locale,s=d(d({},e),{getPrefixCls:u.getPrefixCls,csp:a,autoInsertSpaceInButton:c});return o&&(s.getPopupContainer=o),i&&(s.renderEmpty=i),f.createElement(y.Provider,{value:s},f.createElement(p.b,{locale:l||t,_ANT_MARK__:p.a},r))},u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,f["Component"]),function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"render",value:function(){var r=this;return f.createElement(c.a,null,function(e,t,n){return f.createElement(b,null,function(e){return r.renderProvider(e,n)})})}}]),e}();function w(i){return function(o){function e(r){return f.createElement(b,null,function(e){var t=i.prefixCls,n=(0,e.getPrefixCls)(t,r.prefixCls);return f.createElement(o,d({},e,r,{prefixCls:n}))})}var t=o.constructor,n=t&&t.displayName||o.name||"Component";return e.displayName="withConfigConsumer(".concat(n,")"),e}}t.c=g},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(322)),o=a(n(326)),i=a(n(108));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function l(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function s(n){this.setState(function(e){var t=this.constructor.getDerivedStateFromProps(n,e);return null!=t?t:null}.bind(this))}function u(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function r(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=l,t.componentWillReceiveProps=s),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=u;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return r}),u.__suppressDeprecationWarning=s.__suppressDeprecationWarning=l.__suppressDeprecationWarning=!0},function(e,t){e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(182),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r={};function o(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}var a=function(e,t){i(o,e,t)};t.a=function(e,t,n){a(e,"[antd: ".concat(t,"] ").concat(n))}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(182),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}t.default=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}},function(e,t,n){"use strict";var r=n(480),o=n(87),i=n(34),a=n(496),c=n(63),l=n(149),s=n(152),u=n(222),f=n(497),p=n(224),d=n(106),h=n(33),v=n(220),m=n(23),y=n(160),b=n(238),g=n(77),w=n(557),O={Editor:f,EditorBlock:p,EditorState:m,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,SelectionState:g,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:s,DefaultDraftInlineStyle:u,convertFromHTML:n(236),convertFromRaw:n(560),convertToRaw:w,genKey:n(47),getDefaultKeyBinding:n(239),getVisibleSelectionRect:n(565)};e.exports=O},function(e,t,n){e.exports=function(){"use strict";var r=Array.prototype.slice;function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function l(e){return u(e)?e:Y(e)}function c(e){return f(e)?e:G(e)}function s(e){return p(e)?e:X(e)}function o(e){return u(e)&&!d(e)?e:$(e)}function u(e){return!(!e||!e[t])}function f(e){return!(!e||!e[n])}function p(e){return!(!e||!e[i])}function d(e){return f(e)||p(e)}function h(e){return!(!e||!e[a])}e(c,l),e(s,l),e(o,l),l.isIterable=u,l.isKeyed=f,l.isIndexed=p,l.isAssociative=d,l.isOrdered=h,l.Keyed=c,l.Indexed=s,l.Set=o;var t="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_INDEXED__@@",a="@@__IMMUTABLE_ORDERED__@@",v="delete",g=5,b=1<<g,w=b-1,O={},m={value:!1},y={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function E(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(z)),e.size}function M(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295==n)return NaN;t=n}return t<0?k(e)+t:t}function z(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&n<=t)}function _(e,t){return j(e,t,0)}function T(e,t){return j(e,t,t)}function j(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var N=0,V=1,H=2,L="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",A=L||D;function I(e){this.next=e}function F(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function R(){return{value:void 0,done:!0}}function K(e){return!!U(e)}function B(e){return e&&"function"==typeof e.next}function W(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(L&&e[L]||e[D]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function Y(e){return null==e?ae():u(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new ne(e);if(t)return t;throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}(e)}function G(e){return null==e?ae().toKeyedSeq():u(e)?f(e)?e.toSeq():e.fromEntrySeq():ce(e)}function X(e){return null==e?ae():u(e)?f(e)?e.entrySeq():e.toIndexedSeq():le(e)}function $(e){return(null==e?ae():u(e)?f(e)?e.entrySeq():e:le(e)).toSetSeq()}I.prototype.toString=function(){return"[Iterator]"},I.KEYS=N,I.VALUES=V,I.ENTRIES=H,I.prototype.inspect=I.prototype.toSource=function(){return this.toString()},I.prototype[A]=function(){return this},e(Y,l),Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Y.prototype.__iterate=function(e,t){return ue(this,e,t,!0)},Y.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},e(G,Y),G.prototype.toKeyedSeq=function(){return this},e(X,Y),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return ue(this,e,t,!1)},X.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},e($,Y),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},Y.isSeq=ie,Y.Keyed=G,Y.Set=$,Y.Indexed=X;var J,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return J=J||new te([])}function ce(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():B(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return q(e)?new te(e):B(e)?new oe(e):K(e)?new re(e):void 0}function ue(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var c=o[n?i-a:a];if(!1===t(c[1],r?c[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new I(function(){var e=o[n?i-a:a];return a++>i?R():F(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function pe(e,t){return t?function n(r,o,e,t){if(Array.isArray(o))return r.call(t,e,X(o).map(function(e,t){return n(r,e,t,o)}));if(he(o))return r.call(t,e,G(o).map(function(e,t){return n(r,e,t,o)}));return o}(t,e,"",{"":e}):de(e)}function de(e){return Array.isArray(e)?X(e).map(de).toList():he(e)?G(e).map(de).toMap():e}function he(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(n,e){if(n===e)return!0;if(!u(e)||void 0!==n.size&&void 0!==e.size&&n.size!==e.size||void 0!==n.__hash&&void 0!==e.__hash&&n.__hash!==e.__hash||f(n)!==f(e)||p(n)!==p(e)||h(n)!==h(e))return!1;if(0===n.size&&0===e.size)return!0;var r=!d(n);if(h(n)){var o=n.entries();return e.every(function(e,t){var n=o.next().value;return n&&ve(n[1],e)&&(r||ve(n[0],t))})&&o.next().done}var i=!1;if(void 0===n.size)if(void 0===e.size)"function"==typeof n.cacheResult&&n.cacheResult();else{i=!0;var t=n;n=e,e=t}var a=!0,c=e.__iterate(function(e,t){if(r?!n.has(e):i?!ve(e,n.get(t,O)):!ve(n.get(t,O),e))return a=!1});return a&&n.size===c}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function be(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function we(){throw TypeError("Abstract")}function Oe(){}function Ce(){}function Se(){}Y.prototype[ee]=!0,e(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[M(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new I(function(){return r<o?R():F(e,o,n[t?r-o++:o++])})},e(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(t,n){var r=this._object,o=this._keys,i=o.length-1,a=0;return new I(function(){var e=o[n?i-a:a];return a++>i?R():F(t,e,r[e])})},ne.prototype[a]=!0,e(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=W(n),o=0;if(B(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},re.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=W(n);if(!B(r))return new I(R);var o=0;return new I(function(){var e=r.next();return e.done?e:F(t,o++,e.value)})},e(oe,X),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new I(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return F(t,o,r[o++])})},e(ye,X),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ve(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new ye(this._value,T(t,n)-_(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new I(function(){return r<n.size?F(e,r++,n._value):R()})},ye.prototype.equals=function(e){return e instanceof ye?ve(this._value,e._value):me(e)},e(ge,X),ge.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1<this._step?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+M(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return 0<=t&&t<this.size&&t===Math.floor(t)},ge.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=_(e,this.size),(t=T(t,this.size))<=e?new ge(0,0):new ge(this.get(e,this._end),this.get(t,this._end),this._step))},ge.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(0<=n&&n<this.size)return n}return-1},ge.prototype.lastIndexOf=function(e){return this.indexOf(e)},ge.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},ge.prototype.__iterator=function(t,n){var r=this.size-1,o=this._step,i=n?this._start+r*o:this._start,a=0;return new I(function(){var e=i;return i+=n?-o:o,r<a?R():F(t,a++,e)})},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},e(we,l),e(Oe,we),e(Ce,we),e(Se,we),we.Keyed=Oe,we.Indexed=Ce,we.Set=Se;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function ke(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"==t){var n=0|e;for(n!==e&&(n^=4294967295*e);4294967295<e;)n^=e/=4294967295;return xe(n)}if("string"==t)return e.length>Ve?function(e){var t=De[e];void 0===t&&(t=Me(e),Le===He&&(Le=0,De={}),Le++,De[e]=t);return t}(e):Me(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"==t)return function(e){var t;if(Te&&void 0!==(t=_e.get(e)))return t;if(void 0!==(t=e[Ne]))return t;if(!Pe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ne]))return t;if(void 0!==(t=function(e){if(e&&0<e.nodeType)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++je,1073741824&je&&(je=0);if(Te)_e.set(e,t);else{if(void 0!==ze&&!1===ze(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Pe)Object.defineProperty(e,Ne,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ne]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ne]=t}}return t}(e);if("function"==typeof e.toString)return Me(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Me(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xe(t)}var ze=Object.isExtensible,Pe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var _e,Te="function"==typeof WeakMap;Te&&(_e=new WeakMap);var je=0,Ne="__immutablehash__";"function"==typeof Symbol&&(Ne=Symbol(Ne));var Ve=16,He=255,Le=0,De={};function Ae(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Ie(t){return null==t?Ze():Fe(t)&&!h(t)?t:Ze().withMutations(function(n){var e=c(t);Ae(e.size),e.forEach(function(e,t){return n.set(t,e)})})}function Fe(e){return!(!e||!e[Ke])}e(Ie,Oe),Ie.prototype.toString=function(){return this.__toString("Map {","}")},Ie.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ie.prototype.set=function(e,t){return et(this,e,t)},Ie.prototype.setIn=function(e,t){return this.updateIn(e,O,function(){return t})},Ie.prototype.remove=function(e){return et(this,e,O)},Ie.prototype.deleteIn=function(e){return this.updateIn(e,function(){return O})},Ie.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ie.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===O;var a=n.next();if(a.done){var c=i?r:t,l=o(c);return l===c?t:l}be(i||t&&t.set,"invalid keyPath");var s=a.value;var u=i?O:t.get(s,O);var f=e(u,n,r,o);return f===u?t:f===O?t.remove(s):(i?Ze():t).set(s,f)}(this,rn(e),t,n);return r===O?void 0:r},Ie.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ze()},Ie.prototype.merge=function(){return ot(this,void 0,arguments)},Ie.prototype.mergeWith=function(e){var t=r.call(arguments,1);return ot(this,e,t)},Ie.prototype.mergeIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,Ze(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},Ie.prototype.mergeDeep=function(){return ot(this,it,arguments)},Ie.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return ot(this,at(e),t)},Ie.prototype.mergeDeepIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,Ze(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},Ie.prototype.sort=function(e){return _t(qt(this,e))},Ie.prototype.sortBy=function(e,t){return _t(qt(this,t,e))},Ie.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ie.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},Ie.prototype.asImmutable=function(){return this.__ensureOwner()},Ie.prototype.wasAltered=function(){return this.__altered},Ie.prototype.__iterator=function(e,t){return new Xe(this,e,t)},Ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Ie.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qe(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ie.isMap=Fe;var Re,Ke="@@__IMMUTABLE_MAP__@@",Be=Ie.prototype;function We(e,t){this.ownerID=e,this.entries=t}function Ue(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function qe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Xe(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Je(e._root)}function $e(e,t){return F(e,t[0],t[1])}function Je(e,t){return{node:e,index:0,__prev:t}}function Qe(e,t,n,r){var o=Object.create(Be);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ze(){return Re=Re||Qe(0)}function et(e,t,n){var r,o;if(e._root){var i=C(m),a=C(y);if(r=tt(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===O?-1:1:0)}else{if(n===O)return e;o=1,r=new We(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Qe(o,r):Ze()}function tt(e,t,n,r,o,i,a,c){return e?e.update(t,n,r,o,i,a,c):i===O?e:(S(c),S(a),new Ge(t,r,[o,i]))}function nt(e){return e.constructor===Ge||e.constructor===Ye}function rt(e,t,n,r,o){if(e.keyHash===r)return new Ye(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&w,c=(0===n?r:r>>>n)&w,l=a==c?[rt(e,t,n+g,r,o)]:(i=new Ge(t,r,o),a<c?[e,i]:[i,e]);return new Ue(t,1<<a|1<<c,l)}function ot(e,t,n){for(var r=[],o=0;o<n.length;o++){var i=n[o],a=c(i);u(i)||(a=a.map(function(e){return pe(e)})),r.push(a)}return ct(e,t,r)}function it(e,t,n){return e&&e.mergeDeep&&u(t)?e.mergeDeep(t):ve(e,t)?e:t}function at(o){return function(e,t,n){if(e&&e.mergeDeepWith&&u(t))return e.mergeDeepWith(o,t);var r=o(e,t,n);return ve(e,r)?e:r}}function ct(e,o,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(r){for(var e=o?function(t,n){r.update(n,O,function(e){return e===O?t:o(e,t,n)})}:function(e,t){r.set(t,e)},t=0;t<n.length;t++)n[t].forEach(e)}):e.constructor(n[0])}function lt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function st(e,t,n,r){var o=r?e:x(e);return o[t]=n,o}Be[Ke]=!0,Be[v]=Be.remove,Be.removeIn=Be.deleteIn,We.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},We.prototype.update=function(e,t,n,r,o,i,a){for(var c=o===O,l=this.entries,s=0,u=l.length;s<u&&!ve(r,l[s][0]);s++);var f=s<u;if(f?l[s][1]===o:c)return this;if(S(a),!c&&f||S(i),!c||1!==l.length){if(!f&&!c&&l.length>=ut)return function(e,t,n,r){e=e||new E;for(var o=new Ge(e,ke(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var p=e&&e===this.ownerID,d=p?l:x(l);return f?c?s===u-1?d.pop():d[s]=d.pop():d[s]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new We(e,d)}},Ue.prototype.get=function(e,t,n,r){void 0===t&&(t=ke(n));var o=1<<((0===e?t:t>>>e)&w),i=this.bitmap;return 0==(i&o)?r:this.nodes[lt(i&o-1)].get(e+g,t,n,r)},Ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ke(r));var c=(0===t?n:n>>>t)&w,l=1<<c,s=this.bitmap,u=0!=(s&l);if(!u&&o===O)return this;var f=lt(s&l-1),p=this.nodes,d=u?p[f]:void 0,h=tt(d,e,t+g,n,r,o,i,a);if(h===d)return this;if(!u&&h&&p.length>=ft)return function(e,t,n,r,o){for(var i=0,a=new Array(b),c=0;0!==n;c++,n>>>=1)a[c]=1&n?t[i++]:void 0;return a[r]=o,new qe(e,i+1,a)}(e,p,s,c,h);if(u&&!h&&2===p.length&&nt(p[1^f]))return p[1^f];if(u&&h&&1===p.length&&nt(h))return h;var v=e&&e===this.ownerID,m=u?h?s:s^l:s|l,y=u?h?st(p,f,h,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,f,v):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,c=0;c<o;c++)c===t?(i[c]=n,a=-1):i[c]=e[c+a];return i}(p,f,h,v);return v?(this.bitmap=m,this.nodes=y,this):new Ue(e,m,y)},qe.prototype.get=function(e,t,n,r){void 0===t&&(t=ke(n));var o=(0===e?t:t>>>e)&w,i=this.nodes[o];return i?i.get(e+g,t,n,r):r},qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ke(r));var c=(0===t?n:n>>>t)&w,l=o===O,s=this.nodes,u=s[c];if(l&&!u)return this;var f=tt(u,e,t+g,n,r,o,i,a);if(f===u)return this;var p=this.count;if(u){if(!f&&--p<pt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),c=0,l=1,s=t.length;c<s;c++,l<<=1){var u=t[c];void 0!==u&&c!==r&&(o|=l,a[i++]=u)}return new Ue(e,o,a)}(e,s,p,c)}else p++;var d=e&&e===this.ownerID,h=st(s,c,f,d);return d?(this.count=p,this.nodes=h,this):new qe(e,p,h)},Ye.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ke(r));var c=o===O;if(n!==this.keyHash)return c?this:(S(a),S(i),rt(this,e,t,n,[r,o]));for(var l=this.entries,s=0,u=l.length;s<u&&!ve(r,l[s][0]);s++);var f=s<u;if(f?l[s][1]===o:c)return this;if(S(a),!c&&f||S(i),c&&2===u)return new Ge(e,this.keyHash,l[1^s]);var p=e&&e===this.ownerID,d=p?l:x(l);return f?c?s===u-1?d.pop():d[s]=d.pop():d[s]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ye(e,this.keyHash,d)},Ge.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Ge.prototype.update=function(e,t,n,r,o,i,a){var c=o===O,l=ve(r,this.entry[0]);return(l?o===this.entry[1]:c)?this:(S(a),c?void S(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ge(e,this.keyHash,[r,o]):(S(i),rt(this,e,t,ke(r),[r,o])))},We.prototype.iterate=Ye.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ue.prototype.iterate=qe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ge.prototype.iterate=function(e,t){return e(this.entry)},e(Xe,I),Xe.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0==o)return $e(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return $e(e,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return $e(e,i.entry);t=this._stack=Je(i,t)}continue}t=this._stack=this._stack.__prev}return R()};var ut=b/4,ft=b/2,pt=b/4;function dt(e){var t=St();if(null==e)return t;if(ht(e))return e;var r=s(e),o=r.size;return 0===o?t:(Ae(o),0<o&&o<b?Ct(0,o,g,null,new yt(r.toArray())):t.withMutations(function(n){n.setSize(o),r.forEach(function(e,t){return n.set(t,e)})}))}function ht(e){return!(!e||!e[vt])}e(dt,Ce),dt.of=function(){return this(arguments)},dt.prototype.toString=function(){return this.__toString("List [","]")},dt.prototype.get=function(e,t){if(0<=(e=M(this,e))&&e<this.size){var n=kt(this,e+=this._origin);return n&&n.array[e&w]}return t},dt.prototype.set=function(e,t){return function(e,t,n){if((t=M(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Mt(e,t).set(0,n):Mt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=C(y);t>=Pt(e._capacity)?r=Et(r,e.__ownerID,0,t,n,i):o=Et(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Ct(e._origin,e._capacity,e._level,o,r)}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):St()},dt.prototype.push=function(){var n=arguments,r=this.size;return this.withMutations(function(e){Mt(e,0,r+n.length);for(var t=0;t<n.length;t++)e.set(r+t,n[t])})},dt.prototype.pop=function(){return Mt(this,0,-1)},dt.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){Mt(e,-n.length);for(var t=0;t<n.length;t++)e.set(t,n[t])})},dt.prototype.shift=function(){return Mt(this,1)},dt.prototype.merge=function(){return zt(this,void 0,arguments)},dt.prototype.mergeWith=function(e){var t=r.call(arguments,1);return zt(this,e,t)},dt.prototype.mergeDeep=function(){return zt(this,it,arguments)},dt.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return zt(this,at(e),t)},dt.prototype.setSize=function(e){return Mt(this,0,e)},dt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:Mt(this,_(e,n),T(t,n))},dt.prototype.__iterator=function(t,e){var n=0,r=Ot(this,e);return new I(function(){var e=r();return e===wt?R():F(t,n++,e)})},dt.prototype.__iterate=function(e,t){for(var n,r=0,o=Ot(this,t);(n=o())!==wt&&!1!==e(n,r++,this););return r},dt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},dt.isList=ht;var vt="@@__IMMUTABLE_LIST__@@",mt=dt.prototype;function yt(e,t){this.array=e,this.ownerID=t}mt[vt]=!0,mt[v]=mt.remove,mt.setIn=Be.setIn,mt.deleteIn=mt.removeIn=Be.removeIn,mt.update=Be.update,mt.updateIn=Be.updateIn,mt.mergeIn=Be.mergeIn,mt.mergeDeepIn=Be.mergeDeepIn,mt.withMutations=Be.withMutations,mt.asMutable=Be.asMutable,mt.asImmutable=Be.asImmutable,mt.wasAltered=Be.wasAltered,yt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&w;if(r>=this.array.length)return new yt([],e);var o,i=0==r;if(0<t){var a=this.array[r];if((o=a&&a.removeBefore(e,t-g,n))===a&&i)return this}if(i&&!o)return this;var c=xt(this,e);if(!i)for(var l=0;l<r;l++)c.array[l]=void 0;return o&&(c.array[r]=o),c},yt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&w;if(o>=this.array.length)return this;if(0<t){var i=this.array[o];if((r=i&&i.removeAfter(e,t-g,n))===i&&o==this.array.length-1)return this}var a=xt(this,e);return a.array.splice(1+o),r&&(a.array[o]=r),a};var bt,gt,wt={};function Ot(e,l){var s=e._origin,u=e._capacity,i=Pt(u),a=e._tail;return f(e._root,e._level,0);function f(e,t,n){return 0===t?function(e,t){var n=t===i?a&&a.array:e&&e.array,r=s<t?0:s-t,o=u-t;b<o&&(o=b);return function(){if(r===o)return wt;var e=l?--o:r++;return n&&n[e]}}(e,n):function(e,n,r){var o,i=e&&e.array,a=s<r?0:s-r>>n,c=1+(u-r>>n);b<c&&(c=b);return function(){for(;;){if(o){var e=o();if(e!==wt)return e;o=null}if(a===c)return wt;var t=l?--c:a++;o=f(i&&i[t],n-g,r+(t<<n))}}}(e,t,n)}}function Ct(e,t,n,r,o,i,a){var c=Object.create(mt);return c.size=t-e,c._origin=e,c._capacity=t,c._level=n,c._root=r,c._tail=o,c.__ownerID=i,c.__hash=a,c.__altered=!1,c}function St(){return bt=bt||Ct(0,0,g)}function Et(e,t,n,r,o,i){var a,c=r>>>n&w,l=e&&c<e.array.length;if(!l&&void 0===o)return e;if(0<n){var s=e&&e.array[c],u=Et(s,t,n-g,r,o,i);return u===s?e:((a=xt(e,t)).array[c]=u,a)}return l&&e.array[c]===o?e:(S(i),a=xt(e,t),void 0===o&&c==a.array.length-1?a.array.pop():a.array[c]=o,a)}function xt(e,t){return t&&e&&t===e.ownerID?e:new yt(e?e.array.slice():[],t)}function kt(e,t){if(t>=Pt(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&0<r;)n=n.array[t>>>r&w],r-=g;return n}}function Mt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new E,o=e._origin,i=e._capacity,a=o+t,c=void 0===n?i:n<0?i+n:o+n;if(a===o&&c===i)return e;if(c<=a)return e.clear();for(var l=e._level,s=e._root,u=0;a+u<0;)s=new yt(s&&s.array.length?[void 0,s]:[],r),u+=1<<(l+=g);u&&(a+=u,o+=u,c+=u,i+=u);for(var f=Pt(i),p=Pt(c);1<<l+g<=p;)s=new yt(s&&s.array.length?[s]:[],r),l+=g;var d=e._tail,h=p<f?kt(e,c-1):f<p?new yt([],r):d;if(d&&f<p&&a<i&&d.array.length){for(var v=s=xt(s,r),m=l;g<m;m-=g){var y=f>>>m&w;v=v.array[y]=xt(v.array[y],r)}v.array[f>>>g&w]=d}if(c<i&&(h=h&&h.removeAfter(r,0,c)),p<=a)a-=p,c-=p,l=g,s=null,h=h&&h.removeBefore(r,0,a);else if(o<a||p<f){for(u=0;s;){var b=a>>>l&w;if(b!=p>>>l&w)break;b&&(u+=(1<<l)*b),l-=g,s=s.array[b]}s&&o<a&&(s=s.removeBefore(r,l,a-u)),s&&p<f&&(s=s.removeAfter(r,l,p-u)),u&&(a-=u,c-=u)}return e.__ownerID?(e.size=c-a,e._origin=a,e._capacity=c,e._level=l,e._root=s,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Ct(a,c,l,s,h)}function zt(e,t,n){for(var r=[],o=0,i=0;i<n.length;i++){var a=n[i],c=s(a);c.size>o&&(o=c.size),u(a)||(c=c.map(function(e){return pe(e)})),r.push(c)}return o>e.size&&(e=e.setSize(o)),ct(e,t,r)}function Pt(e){return e<b?0:e-1>>>g<<g}function _t(t){return null==t?Nt():Tt(t)?t:Nt().withMutations(function(n){var e=c(t);Ae(e.size),e.forEach(function(e,t){return n.set(t,e)})})}function Tt(e){return Fe(e)&&h(e)}function jt(e,t,n,r){var o=Object.create(_t.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Nt(){return gt=gt||jt(Ze(),St())}function Vt(e,t,n){var r,o,i=e._map,a=e._list,c=i.get(t),l=void 0!==c;if(n===O){if(!l)return e;a.size>=b&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&c!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=c===a.size-1?a.pop():a.set(c,void 0))}else if(l){if(n===a.get(c)[1])return e;r=i,o=a.set(c,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):jt(r,o)}function Ht(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Dt(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function It(o){var e=en(o);return e._iter=o,e.size=o.size,e.flip=function(){return o},e.reverse=function(){var e=o.reverse.apply(this);return e.flip=function(){return o.reverse()},e},e.has=function(e){return o.includes(e)},e.includes=function(e){return o.has(e)},e.cacheResult=tn,e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return!1!==n(t,e,r)},e)},e.__iteratorUncached=function(e,t){if(e!==H)return o.__iterator(e===V?N:V,t);var n=o.__iterator(e,t);return new I(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})},e}function Ft(i,a,c){var e=en(i);return e.size=i.size,e.has=function(e){return i.has(e)},e.get=function(e,t){var n=i.get(e,O);return n===O?t:a.call(c,n,e,i)},e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return!1!==r(a.call(c,e,t,n),t,o)},e)},e.__iteratorUncached=function(r,e){var o=i.__iterator(H,e);return new I(function(){var e=o.next();if(e.done)return e;var t=e.value,n=t[0];return F(r,n,a.call(c,t[1],n,i),e)})},e}function Rt(o,n){var e=en(o);return e._iter=o,e.size=o.size,e.reverse=function(){return o},o.flip&&(e.flip=function(){var e=It(o);return e.reverse=function(){return o.flip()},e}),e.get=function(e,t){return o.get(n?e:-1-e,t)},e.has=function(e){return o.has(n?e:-1-e)},e.includes=function(e){return o.includes(e)},e.cacheResult=tn,e.__iterate=function(n,e){var r=this;return o.__iterate(function(e,t){return n(e,t,r)},!e)},e.__iterator=function(e,t){return o.__iterator(e,!t)},e}function Kt(c,l,s,u){var e=en(c);return u&&(e.has=function(e){var t=c.get(e,O);return t!==O&&!!l.call(s,t,e,c)},e.get=function(e,t){var n=c.get(e,O);return n!==O&&l.call(s,n,e,c)?n:t}),e.__iterateUncached=function(r,e){var o=this,i=0;return c.__iterate(function(e,t,n){if(l.call(s,e,t,n))return i++,r(e,u?t:i-1,o)},e),i},e.__iteratorUncached=function(o,e){var i=c.__iterator(H,e),a=0;return new I(function(){for(;;){var e=i.next();if(e.done)return e;var t=e.value,n=t[0],r=t[1];if(l.call(s,r,n,c))return F(o,u?n:a++,r,e)}})},e}function Bt(c,e,t,l){var n=c.size;if(void 0!==e&&(e|=0),void 0!==t&&(t|=0),P(e,t,n))return c;var s=_(e,n),r=T(t,n);if(s!=s||r!=r)return Bt(c.toSeq().cacheResult(),e,t,l);var u,o=r-s;o==o&&(u=o<0?0:o);var i=en(c);return i.size=0===u?u:c.size&&u||void 0,!l&&ie(c)&&0<=u&&(i.get=function(e,t){return 0<=(e=M(this,e))&&e<u?c.get(e+s,t):t}),i.__iterateUncached=function(n,e){var r=this;if(0===u)return 0;if(e)return this.cacheResult().__iterate(n,e);var o=0,i=!0,a=0;return c.__iterate(function(e,t){if(!(i=i&&o++<s))return a++,!1!==n(e,l?t:a-1,r)&&a!==u}),a},i.__iteratorUncached=function(t,e){if(0!==u&&e)return this.cacheResult().__iterator(t,e);var n=0!==u&&c.__iterator(t,e),r=0,o=0;return new I(function(){for(;r++<s;)n.next();if(++o>u)return R();var e=n.next();return l||t===V?e:F(t,o-1,t===N?void 0:e.value[1],e)})},i}function Wt(t,s,u,f){var e=en(t);return e.__iterateUncached=function(r,e){var o=this;if(e)return this.cacheResult().__iterate(r,e);var i=!0,a=0;return t.__iterate(function(e,t,n){if(!(i=i&&s.call(u,e,t,n)))return a++,r(e,f?t:a-1,o)}),a},e.__iteratorUncached=function(o,e){var i=this;if(e)return this.cacheResult().__iterator(o,e);var a=t.__iterator(H,e),c=!0,l=0;return new I(function(){var e,t,n;do{if((e=a.next()).done)return f||o===V?e:F(o,l++,o===N?void 0:e.value[1],e);var r=e.value;t=r[0],n=r[1],c=c&&s.call(u,n,t,i)}while(c);return o===H?e:F(o,t,n,e)})},e}function Ut(e,l,s){var t=en(e);return t.__iterateUncached=function(i,t){var a=0,c=!1;return function n(e,r){var o=this;e.__iterate(function(e,t){return(!l||r<l)&&u(e)?n(e,r+1):!1===i(e,s?t:a++,o)&&(c=!0),!c},t)}(e,0),a},t.__iteratorUncached=function(n,r){var o=e.__iterator(n,r),i=[],a=0;return new I(function(){for(;o;){var e=o.next();if(!1===e.done){var t=e.value;if(n===H&&(t=t[1]),l&&!(i.length<l)||!u(t))return s?e:F(n,a++,t,e);i.push(o),o=t.__iterator(n,r)}else o=i.pop()}return R()})},t}function qt(n,r,o){r=r||nn;var e=f(n),i=0,a=n.toSeq().map(function(e,t){return[t,e,i++,o?o(e,t,n):e]}).toArray();return a.sort(function(e,t){return r(e[3],t[3])||e[2]-t[2]}).forEach(e?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),e?G(a):p(n)?X(a):$(a)}function Yt(n,r,o){if(r=r||nn,o){var e=n.toSeq().map(function(e,t){return[e,o(e,t,n)]}).reduce(function(e,t){return Gt(r,e[1],t[1])?t:e});return e&&e[0]}return n.reduce(function(e,t){return Gt(r,e,t)?t:e})}function Gt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||0<r}function Xt(e,a,c){var t=en(e);return t.size=new te(c).map(function(e){return e.size}).min(),t.__iterate=function(e,t){for(var n,r=this.__iterator(V,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},t.__iteratorUncached=function(t,n){var r=c.map(function(e){return e=l(e),W(n?e.reverse():e)}),o=0,i=!1;return new I(function(){var e;return i||(e=r.map(function(e){return e.next()}),i=e.some(function(e){return e.done})),i?R():F(t,o++,a.apply(null,e.map(function(e){return e.value})))})},t}function $t(e,t){return ie(e)?t:e.constructor(t)}function Jt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Qt(e){return Ae(e.size),k(e)}function Zt(e){return f(e)?c:p(e)?s:o}function en(e){return Object.create((f(e)?G:p(e)?X:$).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function nn(e,t){return t<e?1:e<t?-1:0}function rn(e){var t=W(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=W(l(e))}return t}function on(n,r){var o,i=function(e){if(e instanceof i)return e;if(!(this instanceof i))return new i(e);if(!o){o=!0;var t=Object.keys(n);!function(e,t){try{t.forEach(function(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}.bind(void 0,e))}catch(e){}}(a,t),a.size=t.length,a._name=r,a._keys=t,a._defaultValues=n}this._map=Ie(e)},a=i.prototype=Object.create(an);return a.constructor=i}e(_t,Ie),_t.of=function(){return this(arguments)},_t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},_t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},_t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Nt()},_t.prototype.set=function(e,t){return Vt(this,e,t)},_t.prototype.remove=function(e){return Vt(this,e,O)},_t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},_t.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},_t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},_t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?jt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},_t.isOrderedMap=Tt,_t.prototype[a]=!0,_t.prototype[v]=_t.prototype.remove,e(Ht,G),Ht.prototype.get=function(e,t){return this._iter.get(e,t)},Ht.prototype.has=function(e){return this._iter.has(e)},Ht.prototype.valueSeq=function(){return this._iter.valueSeq()},Ht.prototype.reverse=function(){var e=this,t=Rt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ht.prototype.map=function(e,t){var n=this,r=Ft(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ht.prototype.__iterate=function(n,t){var r,o=this;return this._iter.__iterate(this._useKeys?function(e,t){return n(e,t,o)}:(r=t?Qt(this):0,function(e){return n(e,t?--r:r++,o)}),t)},Ht.prototype.__iterator=function(t,n){if(this._useKeys)return this._iter.__iterator(t,n);var r=this._iter.__iterator(V,n),o=n?Qt(this):0;return new I(function(){var e=r.next();return e.done?e:F(t,n?--o:o++,e.value,e)})},Ht.prototype[a]=!0,e(Lt,X),Lt.prototype.includes=function(e){return this._iter.includes(e)},Lt.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Lt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(V,e),r=0;return new I(function(){var e=n.next();return e.done?e:F(t,r++,e.value,e)})},e(Dt,$),Dt.prototype.has=function(e){return this._iter.includes(e)},Dt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Dt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(V,e);return new I(function(){var e=n.next();return e.done?e:F(t,e.value,e.value,e)})},e(At,G),At.prototype.entrySeq=function(){return this._iter.toSeq()},At.prototype.__iterate=function(n,e){var r=this;return this._iter.__iterate(function(e){if(e){Jt(e);var t=u(e);return n(t?e.get(1):e[1],t?e.get(0):e[0],r)}},e)},At.prototype.__iterator=function(r,e){var o=this._iter.__iterator(V,e);return new I(function(){for(;;){var e=o.next();if(e.done)return e;var t=e.value;if(t){Jt(t);var n=u(t);return F(r,n?t.get(0):t[0],n?t.get(1):t[1],e)}}})},Lt.prototype.cacheResult=Ht.prototype.cacheResult=Dt.prototype.cacheResult=At.prototype.cacheResult=tn,e(on,Oe),on.prototype.toString=function(){return this.__toString(ln(this)+" {","}")},on.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},on.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},on.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=cn(this,Ze()))},on.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+ln(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:cn(this,n)},on.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:cn(this,t)},on.prototype.wasAltered=function(){return this._map.wasAltered()},on.prototype.__iterator=function(e,t){var n=this;return c(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},on.prototype.__iterate=function(e,t){var n=this;return c(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},on.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?cn(this,t,e):(this.__ownerID=e,this._map=t,this)};var an=on.prototype;function cn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function ln(e){return e._name||e.constructor.name||"Record"}function sn(n){return null==n?mn():un(n)&&!h(n)?n:mn().withMutations(function(t){var e=o(n);Ae(e.size),e.forEach(function(e){return t.add(e)})})}function un(e){return!(!e||!e[pn])}an[v]=an.remove,an.deleteIn=an.removeIn=Be.removeIn,an.merge=Be.merge,an.mergeWith=Be.mergeWith,an.mergeIn=Be.mergeIn,an.mergeDeep=Be.mergeDeep,an.mergeDeepWith=Be.mergeDeepWith,an.mergeDeepIn=Be.mergeDeepIn,an.setIn=Be.setIn,an.update=Be.update,an.updateIn=Be.updateIn,an.withMutations=Be.withMutations,an.asMutable=Be.asMutable,an.asImmutable=Be.asImmutable,e(sn,Se),sn.of=function(){return this(arguments)},sn.fromKeys=function(e){return this(c(e).keySeq())},sn.prototype.toString=function(){return this.__toString("Set {","}")},sn.prototype.has=function(e){return this._map.has(e)},sn.prototype.add=function(e){return hn(this,this._map.set(e,!0))},sn.prototype.remove=function(e){return hn(this,this._map.remove(e))},sn.prototype.clear=function(){return hn(this,this._map.clear())},sn.prototype.union=function(){var n=r.call(arguments,0);return 0===(n=n.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t