UNPKG

ant-design-pro

Version:

An enterprise-class UI design language and React-based implementation

14 lines 3.28 MB
/*! * * ant-design-pro v2.3.1 * * 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")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["ant-design-pro"]=t(require("react"),require("react-dom")):e["ant-design-pro"]=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=272)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(283)()},function(e,t,n){var r,o;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&e.push(a)}else if("object"===o)for(var c in r)i.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},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";t.__esModule=!0;var r=n(49),o=function(e){return e&&e.__esModule?e:{default:e}}(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,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(312),i=r(o),a=n(316),c=r(a),s=n(49),u=r(s);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,u.default)(t)));e.prototype=(0,c.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(275),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.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,n){e.exports=t},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function i(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 a(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,a=null,c=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?c="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==c){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==c?"\n "+c:"")+"\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=r,t.componentWillReceiveProps=o),"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=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0;var r=n(171),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(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,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";function r(e,t,n,r,i,a,c,s){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,c,s],f=0;u=new Error(t.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=r},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:j(e)}function n(e){return a(e)?e:T(e)}function r(e){return c(e)?e:P(e)}function o(e){return i(e)&&!s(e)?e:z(e)}function i(e){return!(!e||!e[un])}function a(e){return!(!e||!e[ln])}function c(e){return!(!e||!e[fn])}function s(e){return a(e)||c(e)}function u(e){return!(!e||!e[pn])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(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 d(e){return void 0===e.size&&(e.size=e.__iterate(g)),e.size}function v(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function g(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return x(e,t,0)}function b(e,t){return x(e,t,t)}function x(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function _(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 O(){return{value:void 0,done:!0}}function C(e){return!!M(e)}function S(e){return e&&"function"==typeof e.next}function E(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(_n&&e[_n]||e[On]);if("function"==typeof t)return t}function k(e){return e&&"number"==typeof e.length}function j(e){return null===e||void 0===e?V():i(e)?e.toSeq():F(e)}function T(e){return null===e||void 0===e?V().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():R(e)}function P(e){return null===e||void 0===e?V():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():H(e)}function z(e){return(null===e||void 0===e?V():i(e)?a(e)?e.entrySeq():e:H(e)).toSetSeq()}function N(e){this._array=e,this.size=e.length}function A(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function L(e){this._iterable=e,this.size=e.length||e.size}function I(e){this._iterator=e,this._iteratorCache=[]}function D(e){return!(!e||!e[Sn])}function V(){return En||(En=new N([]))}function R(e){var t=Array.isArray(e)?new N(e).fromEntrySeq():S(e)?new I(e).fromEntrySeq():C(e)?new L(e).fromEntrySeq():"object"==typeof e?new A(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function H(e){var t=B(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function F(e){var t=B(e)||"object"==typeof e&&new A(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function B(e){return k(e)?new N(e):S(e)?new I(e):C(e)?new L(e):void 0}function K(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 W(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?O():_(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?q(t,e,"",{"":e}):Y(e)}function q(e,t,n,r){return Array.isArray(t)?e.call(r,n,P(t).map(function(n,r){return q(e,n,r,t)})):G(t)?e.call(r,n,T(t).map(function(n,r){return q(e,n,r,t)})):t}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():G(e)?T(e).map(Y).toMap():e}function G(e){return e&&(e.constructor===Object||void 0===e.constructor)}function X(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 $(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&X(o[1],e)&&(n||X(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):o?!X(t,e.get(r,gn)):!X(e.get(r,gn),t))return f=!1,!1});return f&&e.size===p}function Z(e,t){if(!(this instanceof Z))return new Z(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Mn)return Mn;Mn=this}}function Q(e,t){if(!e)throw new Error(t)}function J(e,t,n){if(!(this instanceof J))return new J(e,t,n);if(Q(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(kn)return kn;kn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ie(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===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);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>In?ae(e):ce(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return se(e);if("function"==typeof e.toString)return ce(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Rn[e];return void 0===t&&(t=ce(e),Vn===Dn&&(Vn=0,Rn={}),Vn++,Rn[e]=t),t}function ce(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return oe(t)}function se(e){var t;if(Nn&&void 0!==(t=jn.get(e)))return t;if(void 0!==(t=e[Ln]))return t;if(!zn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ln]))return t;if(void 0!==(t=ue(e)))return t}if(t=++An,1073741824&An&&(An=0),Nn)jn.set(e,t);else{if(void 0!==Pn&&!1===Pn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(zn)Object.defineProperty(e,Ln,{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[Ln]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ln]=t}}return t}function ue(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function le(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?_e():pe(e)&&!u(e)?e:_e().withMutations(function(t){var r=n(e);le(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function pe(e){return!(!e||!e[Hn])}function he(e,t){this.ownerID=e,this.entries=t}function de(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function me(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&xe(e._root)}function be(e,t){return _(e,t[0],t[1])}function xe(e,t){return{node:e,index:0,__prev:t}}function we(e,t,n,r){var o=Object.create(Fn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function _e(){return Bn||(Bn=we(0))}function Oe(e,t,n){var r,o;if(e._root){var i=l(yn),a=l(mn);if(r=Ce(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===gn?-1:1:0)}else{if(n===gn)return e;o=1,r=new he(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?we(o,r):_e()}function Ce(e,t,n,r,o,i,a,c){return e?e.update(t,n,r,o,i,a,c):i===gn?e:(f(c),f(a),new ye(t,r,[o,i]))}function Se(e){return e.constructor===ye||e.constructor===ge}function Ee(e,t,n,r,o){if(e.keyHash===r)return new ge(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&vn,c=(0===n?r:r>>>n)&vn;return new de(t,1<<a|1<<c,a===c?[Ee(e,t,n+hn,r,o)]:(i=new ye(t,r,o),a<c?[e,i]:[i,e]))}function Me(e,t,n,r){e||(e=new p);for(var o=new ye(e,ie(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}function ke(e,t,n,r){for(var o=0,i=0,a=new Array(n),c=0,s=1,u=t.length;c<u;c++,s<<=1){var l=t[c];void 0!==l&&c!==r&&(o|=s,a[i++]=l)}return new de(e,o,a)}function je(e,t,n,r,o){for(var i=0,a=new Array(dn),c=0;0!==n;c++,n>>>=1)a[c]=1&n?t[i++]:void 0;return a[r]=o,new ve(e,i+1,a)}function Te(e,t,r){for(var o=[],a=0;a<r.length;a++){var c=r[a],s=n(c);i(c)||(s=s.map(function(e){return U(e)})),o.push(s)}return Ne(e,t,o)}function Pe(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):X(e,t)?e:t}function ze(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return X(t,o)?t:o}}function Ne(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,gn,function(e){return e===gn?n:t(e,n,r)})}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)}):e.constructor(n[0])}function Ae(e,t,n,r){var o=e===gn,i=t.next();if(i.done){var a=o?n:e,c=r(a);return c===a?e:c}Q(o||e&&e.set,"invalid keyPath");var s=i.value,u=o?gn:e.get(s,gn),l=Ae(u,t,n,r);return l===u?e:l===gn?e.remove(s):(o?_e():e).set(s,l)}function Le(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ie(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function De(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}function Ve(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}function Re(e){var t=We();if(null===e||void 0===e)return t;if(He(e))return e;var n=r(e),o=n.size;return 0===o?t:(le(o),o>0&&o<dn?Ke(0,o,hn,null,new Fe(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function He(e){return!(!e||!e[qn])}function Fe(e,t){this.array=e,this.ownerID=t}function Be(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===c?s&&s.array:e&&e.array,o=n>i?0:i-n,u=a-n;return u>dn&&(u=dn),function(){if(o===u)return Xn;var e=t?--u:o++;return r&&r[e]}}function o(e,r,o){var c,s=e&&e.array,u=o>i?0:i-o>>r,l=1+(a-o>>r);return l>dn&&(l=dn),function(){for(;;){if(c){var e=c();if(e!==Xn)return e;c=null}if(u===l)return Xn;var i=t?--l:u++;c=n(s&&s[i],r-hn,o+(i<<r))}}}var i=e._origin,a=e._capacity,c=Ze(a),s=e._tail;return n(e._root,e._level,0)}function Ke(e,t,n,r,o,i,a){var c=Object.create(Yn);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 We(){return Gn||(Gn=Ke(0,0,hn))}function Ue(e,t,n){if((t=v(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Xe(e,t).set(0,n):Xe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=l(mn);return t>=Ze(e._capacity)?r=qe(r,e.__ownerID,0,t,n,i):o=qe(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ke(e._origin,e._capacity,e._level,o,r):e}function qe(e,t,n,r,o,i){var a=r>>>n&vn,c=e&&a<e.array.length;if(!c&&void 0===o)return e;var s;if(n>0){var u=e&&e.array[a],l=qe(u,t,n-hn,r,o,i);return l===u?e:(s=Ye(e,t),s.array[a]=l,s)}return c&&e.array[a]===o?e:(f(i),s=Ye(e,t),void 0===o&&a===s.array.length-1?s.array.pop():s.array[a]=o,s)}function Ye(e,t){return t&&e&&t===e.ownerID?e:new Fe(e?e.array.slice():[],t)}function Ge(e,t){if(t>=Ze(e._capacity))return e._tail;if(t<1<<e._level+hn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&vn],r-=hn;return n}}function Xe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,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(a>=c)return e.clear();for(var s=e._level,u=e._root,l=0;a+l<0;)u=new Fe(u&&u.array.length?[void 0,u]:[],r),s+=hn,l+=1<<s;l&&(a+=l,o+=l,c+=l,i+=l);for(var f=Ze(i),h=Ze(c);h>=1<<s+hn;)u=new Fe(u&&u.array.length?[u]:[],r),s+=hn;var d=e._tail,v=h<f?Ge(e,c-1):h>f?new Fe([],r):d;if(d&&h>f&&a<i&&d.array.length){u=Ye(u,r);for(var g=u,y=s;y>hn;y-=hn){var m=f>>>y&vn;g=g.array[m]=Ye(g.array[m],r)}g.array[f>>>hn&vn]=d}if(c<i&&(v=v&&v.removeAfter(r,0,c)),a>=h)a-=h,c-=h,s=hn,u=null,v=v&&v.removeBefore(r,0,a);else if(a>o||h<f){for(l=0;u;){var b=a>>>s&vn;if(b!==h>>>s&vn)break;b&&(l+=(1<<s)*b),s-=hn,u=u.array[b]}u&&a>o&&(u=u.removeBefore(r,s,a-l)),u&&h<f&&(u=u.removeAfter(r,s,h-l)),l&&(a-=l,c-=l)}return e.__ownerID?(e.size=c-a,e._origin=a,e._capacity=c,e._level=s,e._root=u,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Ke(a,c,s,u,v)}function $e(e,t,n){for(var o=[],a=0,c=0;c<n.length;c++){var s=n[c],u=r(s);u.size>a&&(a=u.size),i(s)||(u=u.map(function(e){return U(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),Ne(e,t,o)}function Ze(e){return e<dn?0:e-1>>>hn<<hn}function Qe(e){return null===e||void 0===e?tt():Je(e)?e:tt().withMutations(function(t){var r=n(e);le(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Je(e){return pe(e)&&u(e)}function et(e,t,n,r){var o=Object.create(Qe.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tt(){return $n||($n=et(_e(),We()))}function nt(e,t,n){var r,o,i=e._map,a=e._list,c=i.get(t),s=void 0!==c;if(n===gn){if(!s)return e;a.size>=dn&&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(s){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):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function ct(e){var t=kt(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=jt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===wn){var r=e.__iterator(t,n);return new w(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===xn?bn:xn,n)},t}function st(e,t,n){var r=kt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,gn);return i===gn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(wn,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,c=a[0];return _(r,c,t.call(n,a[1],c,e),o)})},r}function ut(e,t){var n=kt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=ct(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=jt,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 lt(e,t,n,r){var o=kt(e);return r&&(o.has=function(r){var o=e.get(r,gn);return o!==gn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,gn);return i!==gn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,c=0;return e.__iterate(function(e,i,s){if(t.call(n,e,i,s))return c++,o(e,r?i:c-1,a)},i),c},o.__iteratorUncached=function(o,i){var a=e.__iterator(wn,i),c=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],l=s[1];if(t.call(n,l,u,e))return _(o,r?u:c++,l,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function pt(e,t,n){var r=a(e),o=(u(e)?Qe():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=Mt(e);return o.map(function(t){return Ct(e,i(t))})}function ht(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,o))return e;var i=m(t,o),a=b(n,o);if(i!==i||a!==a)return ht(e.toSeq().cacheResult(),t,n,r);var c,s=a-i;s===s&&(c=s<0?0:s);var u=kt(e);return u.size=0===c?c:e.size&&c||void 0,!r&&D(e)&&c>=0&&(u.get=function(t,n){return t=v(this,t),t>=0&&t<c?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate(function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==c}),u},u.__iteratorUncached=function(t,n){if(0!==c&&n)return this.cacheResult().__iterator(t,n);var o=0!==c&&e.__iterator(t,n),a=0,s=0;return new w(function(){for(;a++<i;)o.next();if(++s>c)return O();var e=o.next();return r||t===xn?e:t===bn?_(t,s-1,void 0,e):_(t,s-1,e.value[1],e)})},u}function dt(e,t,n){var r=kt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,c){return t.call(n,e,o,c)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(wn,o),c=!0;return new w(function(){if(!c)return O();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,i)?r===wn?e:_(r,s,u,e):(c=!1,O())})},r}function vt(e,t,n,r){var o=kt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var c=!0,s=0;return e.__iterate(function(e,i,u){if(!c||!(c=t.call(n,e,i,u)))return s++,o(e,r?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var c=e.__iterator(wn,i),s=!0,u=0;return new w(function(){var e,i,l;do{if(e=c.next(),e.done)return r||o===xn?e:o===bn?_(o,u++,void 0,e):_(o,u++,e.value[1],e);var f=e.value;i=f[0],l=f[1],s&&(s=t.call(n,l,i,a))}while(s);return o===wn?e:_(o,i,l,e)})},o}function gt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?R(e):H(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var s=o[0];if(s===e||r&&a(s)||c(e)&&c(s))return s}var u=new N(o);return r?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}function yt(e,t,n){var r=kt(e);return r.__iterateUncached=function(r,o){function a(e,u){var l=this;e.__iterate(function(e,o){return(!t||u<t)&&i(e)?a(e,u+1):!1===r(e,n?o:c++,l)&&(s=!0),!s},o)}var c=0,s=!1;return a(e,0),c},r.__iteratorUncached=function(r,o){var a=e.__iterator(r,o),c=[],s=0;return new w(function(){for(;a;){var e=a.next();if(!1===e.done){var u=e.value;if(r===wn&&(u=u[1]),t&&!(c.length<t)||!i(u))return n?e:_(r,s++,u,e);c.push(a),a=u.__iterator(r,o)}else a=c.pop()}return O()})},r}function mt(e,t,n){var r=Mt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}function bt(e,t){var n=kt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate(function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(xn,r),a=0;return new w(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?_(n,a++,t):_(n,a++,o.value,o)})},n}function xt(e,t,n){t||(t=Tt);var r=a(e),o=0,i=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return i.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?T(i):c(e)?P(i):z(i)}function wt(e,t,n){if(t||(t=Tt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return _t(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return _t(t,e,n)?n:e})}function _t(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function Ot(e,n,r){var o=kt(e);return o.size=new N(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(xn,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),E(o?e.reverse():e)}),a=0,c=!1;return new w(function(){var t;return c||(t=i.map(function(e){return e.next()}),c=t.some(function(e){return e.done})),c?O():_(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function Ct(e,t){return D(e)?t:e.constructor(t)}function St(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Et(e){return le(e.size),d(e)}function Mt(e){return a(e)?n:c(e)?r:o}function kt(e){return Object.create((a(e)?T:c(e)?P:z).prototype)}function jt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):j.prototype.cacheResult.call(this)}function Tt(e,t){return e>t?1:e<t?-1:0}function Pt(e){var n=E(e);if(!n){if(!k(e))throw new TypeError("Expected iterable or array-like: "+e);n=E(t(e))}return n}function zt(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Lt(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=fe(i)},o=r.prototype=Object.create(Zn);return o.constructor=r,r}function Nt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function At(e){return e._name||e.constructor.name||"Record"}function Lt(e,t){try{t.forEach(It.bind(void 0,e))}catch(e){}}function It(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Dt(e){return null===e||void 0===e?Ft():Vt(e)&&!u(e)?e:Ft().withMutations(function(t){var n=o(e);le(n.size),n.forEach(function(e){return t.add(e)})})}function Vt(e){return!(!e||!e[Qn])}function Rt(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ht(e,t){var n=Object.create(Jn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ft(){return er||(er=Ht(_e()))}function Bt(e){return null===e||void 0===e?Ut():Kt(e)?e:Ut().withMutations(function(t){var n=o(e);le(n.size),n.forEach(function(e){return t.add(e)})})}function Kt(e){return Vt(e)&&u(e)}function Wt(e,t){var n=Object.create(tr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ut(){return nr||(nr=Wt(tt()))}function qt(e){return null===e||void 0===e?Xt():Yt(e)?e:Xt().unshiftAll(e)}function Yt(e){return!(!e||!e[rr])}function Gt(e,t,n,r){var o=Object.create(or);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xt(){return ir||(ir=Gt(0))}function $t(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Zt(e,t){return t}function Qt(e,t){return[t,e]}function Jt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):e}function nn(){return h(arguments)}function rn(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+cn(ie(e),ie(t))|0}:function(e,t){r=r+cn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0}),r)}function an(e,t){return t=Tn(t,3432918353),t=Tn(t<<15|t>>>-15,461845907),t=Tn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Tn(t^t>>>16,2246822507),t=Tn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function cn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var sn=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=c,t.isAssociative=s,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var un="@@__IMMUTABLE_ITERABLE__@@",ln="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",hn=5,dn=1<<hn,vn=dn-1,gn={},yn={value:!1},mn={value:!1},bn=0,xn=1,wn=2,_n="function"==typeof Symbol&&Symbol.iterator,On="@@iterator",Cn=_n||On;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=bn,w.VALUES=xn,w.ENTRIES=wn,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[Cn]=function(){return this},e(j,t),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 K(this,e,t,!0)},j.prototype.__iterator=function(e,t){return W(this,e,t,!0)},e(T,j),T.prototype.toKeyedSeq=function(){return this},e(P,j),P.of=function(){return P(arguments)},P.prototype.toIndexedSeq=function(){return this},P.prototype.toString=function(){return this.__toString("Seq [","]")},P.prototype.__iterate=function(e,t){return K(this,e,t,!1)},P.prototype.__iterator=function(e,t){return W(this,e,t,!1)},e(z,j),z.of=function(){return z(arguments)},z.prototype.toSetSeq=function(){return this},j.isSeq=D,j.Keyed=T,j.Set=z,j.Indexed=P;var Sn="@@__IMMUTABLE_SEQ__@@";j.prototype[Sn]=!0,e(N,P),N.prototype.get=function(e,t){return this.has(e)?this._array[v(this,e)]:t},N.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},N.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new w(function(){return o>r?O():_(e,o,n[t?r-o++:o++])})},e(A,T),A.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},A.prototype.has=function(e){return this._object.hasOwnProperty(e)},A.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},A.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?O():_(e,a,n[a])})},A.prototype[pn]=!0,e(L,P),L.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=E(n),o=0;if(S(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},L.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=E(n);if(!S(r))return new w(O);var o=0;return new w(function(){var t=r.next();return t.done?t:_(e,o++,t.value)})},e(I,P),I.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;)if(!1===e(r[o],o++,this))return o;for(var i;!(i=n.next()).done;){var a=i.value;if(r[o]=a,!1===e(a,o++,this))break}return o},I.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new w(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return _(e,o,r[o++])})};var En;e(Z,P),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(e,t){return this.has(e)?this._value:t},Z.prototype.includes=function(e){return X(this._value,e)},Z.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Z(this._value,b(t,n)-m(e,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return X(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},Z.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},Z.prototype.__iterator=function(e,t){var n=this,r=0;return new w(function(){return r<n.size?_(e,r++,n._value):O()})},Z.prototype.equals=function(e){return e instanceof Z?X(this._value,e._value):$(e)};var Mn;e(J,P),J.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},J.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},J.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},J.prototype.slice=function(e,t){return y(e,t,this.size)?this:(e=m(e,this.size),t=b(t,this.size),t<=e?new J(0,0):new J(this.get(e,this._end),this.get(t,this._end),this._step))},J.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},J.prototype.lastIndexOf=function(e){return this.indexOf(e)},J.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},J.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new w(function(){var a=o;return o+=t?-r:r,i>n?O():_(e,i++,a)})},J.prototype.equals=function(e){return e instanceof J?this._start===e._start&&this._end===e._end&&this._step===e._step:$(this,e)};var kn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var jn,Tn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Pn=Object.isExtensible,zn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Nn="function"==typeof WeakMap;Nn&&(jn=new WeakMap);var An=0,Ln="__immutablehash__";"function"==typeof Symbol&&(Ln=Symbol(Ln));var In=16,Dn=255,Vn=0,Rn={};e(fe,te),fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return Oe(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},fe.prototype.remove=function(e){return Oe(this,e,gn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ae(this,Pt(e),t,n);return r===gn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):_e()},fe.prototype.merge=function(){return Te(this,void 0,arguments)},fe.prototype.mergeWith=function(e){return Te(this,e,sn.call(arguments,1))},fe.prototype.mergeIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,_e(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Te(this,Pe,arguments)},fe.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return Te(this,ze(e),t)},fe.prototype.mergeDeepIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,_e(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Qe(xt(this,e))},fe.prototype.sortBy=function(e,t){return Qe(xt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new me(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?we(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=pe;var Hn="@@__IMMUTABLE_MAP__@@",Fn=fe.prototype;Fn[Hn]=!0,Fn.delete=Fn.remove,Fn.removeIn=Fn.deleteIn,he.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},he.prototype.update=function(e,t,n,r,o,i,a){for(var c=o===gn,s=this.entries,u=0,l=s.length;u<l&&!X(r,s[u][0]);u++);var p=u<l;if(p?s[u][1]===o:c)return this;if(f(a),(c||!p)&&f(i),!c||1!==s.length){if(!p&&!c&&s.length>=Kn)return Me(e,s,r,o);var d=e&&e===this.ownerID,v=d?s:h(s);return p?c?u===l-1?v.pop():v[u]=v.pop():v[u]=[r,o]:v.push([r,o]),d?(this.entries=v,this):new he(e,v)}},de.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&vn),i=this.bitmap;return 0==(i&o)?r:this.nodes[Le(i&o-1)].get(e+hn,t,n,r)},de.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var c=(0===t?n:n>>>t)&vn,s=1<<c,u=this.bitmap,l=0!=(u&s);if(!l&&o===gn)return this;var f=Le(u&s-1),p=this.nodes,h=l?p[f]:void 0,d=Ce(h,e,t+hn,n,r,o,i,a);if(d===h)return this;if(!l&&d&&p.length>=Wn)return je(e,p,u,c,d);if(l&&!d&&2===p.length&&Se(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&Se(d))return d;var v=e&&e===this.ownerID,g=l?d?u:u^s:u|s,y=l?d?Ie(p,f,d,v):Ve(p,f,v):De(p,f,d,v);return v?(this.bitmap=g,this.nodes=y,this):new de(e,g,y)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&vn,i=this.nodes[o];return i?i.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var c=(0===t?n:n>>>t)&vn,s=o===gn,u=this.nodes,l=u[c];if(s&&!l)return this;var f=Ce(l,e,t+hn,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Un)return ke(e,u,p,c)}else p++;var h=e&&e===this.ownerID,d=Ie(u,c,f,h);return h?(this.count=p,this.nodes=d,this):new ve(e,p,d)},ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},ge.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var c=o===gn;if(n!==this.keyHash)return c?this:(f(a),f(i),Ee(this,e,t,n,[r,o]));for(var s=this.entries,u=0,l=s.length;u<l&&!X(r,s[u][0]);u++);var p=u<l;if(p?s[u][1]===o:c)return this;if(f(a),(c||!p)&&f(i),c&&2===l)return new ye(e,this.keyHash,s[1^u]);var d=e&&e===this.ownerID,v=d?s:h(s);return p?c?u===l-1?v.pop():v[u]=v.pop():v[u]=[r,o]:v.push([r,o]),d?(this.entries=v,this):new ge(e,this.keyHash,v)},ye.prototype.get=function(e,t,n,r){return X(n,this.entry[0])?this.entry[1]:r},ye.prototype.update=function(e,t,n,r,o,i,a){var c=o===gn,s=X(r,this.entry[0]);return(s?o===this.entry[1]:c)?this:(f(a),c?void f(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new ye(e,this.keyHash,[r,o]):(f(i),Ee(this,e,t,ie(r),[r,o])))},he.prototype.iterate=ge.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},de.prototype.iterate=ve.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}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(me,w),me.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 be(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return be(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 be(e,i.entry);t=this._stack=xe(i,t)}continue}t=this._stack=this._stack.__prev}return O()};var Bn,Kn=dn/4,Wn=dn/2,Un=dn/4;e(Re,ne),Re.of=function(){return this(arguments)},Re.prototype.toString=function(){return this.__toString("List [","]")},Re.prototype.get=function(e,t){if((e=v(this,e))>=0&&e<this.size){e+=this._origin;var n=Ge(this,e);return n&&n.array[e&vn]}return t},Re.prototype.set=function(e,t){return Ue(this,e,t)},Re.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Re.prototype.insert=function(e,t){return this.splice(e,0,t)},Re.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=hn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):We()},Re.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Xe(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Re.prototype.pop=function(){return Xe(this,0,-1)},Re.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Xe(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Re.prototype.shift=function(){return Xe(this,1)},Re.prototype.merge=function(){return $e(this,void 0,arguments)},Re.prototype.mergeWith=function(e){return $e(this,e,sn.call(arguments,1))},Re.prototype.mergeDeep=function(){return $e(this,Pe,arguments)},Re.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return $e(this,ze(e),t)},Re.prototype.setSize=function(e){return Xe(this,0,e)},Re.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:Xe(this,m(e,n),b(t,n))},Re.prototype.__iterator=function(e,t){var n=0,r=Be(this,t);return new w(function(){var t=r();return t===Xn?O():_(e,n++,t)})},Re.prototype.__iterate=function(e,t){for(var n,r=0,o=Be(this,t);(n=o())!==Xn&&!1!==e(n,r++,this););return r},Re.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ke(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Re.isList=He;var qn="@@__IMMUTABLE_LIST__@@",Yn=Re.prototype;Yn[qn]=!0,Yn.delete=Yn.remove,Yn.setIn=Fn.setIn,Yn.deleteIn=Yn.removeIn=Fn.removeIn,Yn.update=Fn.update,Yn.updateIn=Fn.updateIn,Yn.mergeIn=Fn.mergeIn,Yn.mergeDeepIn=Fn.mergeDeepIn,Yn.withMutations=Fn.withMutations,Yn.asMutable=Fn.asMutable,Yn.asImmutable=Fn.asImmutable,Yn.wasAltered=Fn.wasAltered,Fe.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&vn;if(r>=this.array.length)return new Fe([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-hn,n))===a&&i)return this}if(i&&!o)return this;var c=Ye(this,e);if(!i)for(var s=0;s<r;s++)c.array[s]=void 0;return o&&(c.array[r]=o),c},Fe.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&vn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if((o=i&&i.removeAfter(e,t-hn,n))===i&&r===this.array.length-1)return this}var a=Ye(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Gn,Xn={};e(Qe,fe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,gn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=Je,Qe.prototype[pn]=!0,Qe.prototype.delete=Qe.prototype.remove;var $n;e(rt,T),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=st(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Et(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(xn,t),r=t?Et(this):0;return new w(function(){var o=n.next();return o.done?o:_(e,t?--r:r++,o.value,o)})},rt.prototype[pn]=!0,e(ot,P),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(xn,t),r=0;return new w(function(){var t=n.next();return t.done?t:_(e,r++,t.value,t)})},e(it,z),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(xn,t);return new w(function(){var t=n.next();return t.done?t:_(e,t.value,t.value,t)})},e(at,T),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){St(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(xn,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){St(r);var o=i(r);return _(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=jt,e(zt,te),zt.prototype.toString=function(){return this.__toString(At(this)+" {","}")},zt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},zt.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},zt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Nt(this,_e()))},zt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+At(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Nt(this,n)},zt.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:Nt(this,t)},zt.prototype.wasAltered=function(){return this._map.wasAltered()},zt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},zt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},zt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Nt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Zn=zt.prototype;Zn.delete=Zn.remove,Zn.deleteIn=Zn.removeIn=Fn.removeIn,Zn.merge=Fn.merge,Zn.mergeWith=Fn.mergeWith,Zn.mergeIn=Fn.mergeIn,Zn.mergeDeep=Fn.mergeDeep,Zn.mergeDeepWith=Fn.mergeDeepWith,Zn.mergeDeepIn=Fn.mergeDeepIn,Zn.setIn=Fn.setIn,Zn.update=Fn.update,Zn.updateIn=Fn.updateIn,Zn.withMutations=Fn.withMutations,Zn.asMutable=Fn.asMutable,Zn.asImmutable=Fn.asImmutable,e(Dt,re),Dt.of=function(){return this(arguments)},Dt.fromKeys=function(e){return this(n(e).keySeq())},Dt.prototype.toString=function(){return this.__toString("Set {","}")},Dt.pr