UNPKG

antd

Version:

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

18 lines 1.03 MB
/*! * antd v2.6.4 * * 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.antd=t(require("react"),require("react-dom")):e.antd=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){e.exports=n(271)},function(t,n){t.exports=e},function(e,t,n){var r,o;/*! Copyright (c) 2016 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))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t){"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(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(399),i=r(o),a=n(397),s=r(a),u=n(26),l=r(u);t["default"]=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l["default"])(t)));e.prototype=(0,s["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";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(26),i=r(o);t["default"]=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i["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(396),i=r(o);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";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(398),i=r(o);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,n){e.exports=t},function(e,t){},function(e,t){/* object-assign (c) Sindre Sorhus @license MIT */ "use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,s,u=n(e),l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var c in r)i.call(r,c)&&(u[c]=r[c]);if(o){s=o(r);for(var f=0;f<s.length;f++)a.call(r,s[f])&&(u[s[f]]=r[s[f]])}}return u}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return P.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return h.generate(e,t)}).toOrderedMap()}function a(e,t,n){var r=e.getCurrentContent().getBlockMap(),o=e.getImmutable().get("treeMap");return o.merge(t.toSeq().filter(function(e,t){return e!==r.get(t)}).map(function(e){return h.generate(e,n)}))}function s(e,t,n,r){return t.merge(e.toSeq().filter(function(e){return n.getDecorations(e)!==r.getDecorations(e)}).map(function(e){return h.generate(e,n)}))}function u(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function l(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):f(e,n)}function c(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):f(e,n)}function f(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return b()}var p=n(10),d=p||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},h=n(178),y=n(106),v=n(469),m=n(12),g=n(49),b=m.OrderedSet,_=m.Record,T=m.Stack,C={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:T(),selection:null,treeMap:null,undoStack:T()},S=_(C),P=function(){function e(t){r(this,e),this._immutable=t}return e.createEmpty=function(t){return e.createWithContent(y.createFromText(""),t)},e.createWithContent=function(t,n){var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:T(),redoStack:T(),decorator:n||null,selection:g.createEmpty(r)})},e.create=function(t){var n=t.currentContent,r=t.decorator,o=d({},t,{treeMap:i(n,r),directionMap:v.getDirectionMap(n)});return new e(new S(o))},e.set=function(t,n){var r=t.getImmutable().withMutations(function(e){var r=e.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var u=n.currentContent||t.getCurrentContent();if(o!==r){var l,c=e.get("treeMap");return l=o&&r?s(u.getBlockMap(),c,o,r):i(u,o),void e.merge({decorator:o,treeMap:l,nativelyRenderedContent:null})}var f=t.getCurrentContent();u!==f&&e.set("treeMap",a(t,u.getBlockMap(),o)),e.merge(n)});return new e(r)},e.prototype.toJS=function(){return this.getImmutable().toJS()},e.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.prototype.getSelection=function(){return this.getImmutable().get("selection")},e.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},e.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},e.prototype.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?l(t,n):c(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent(),t=e.getBlockMap(),n=t.last(),r=n.getLength();return this.getSelection().hasEdgeWithin(n.getKey(),r,r)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return o(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),o(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent(),r=n.getLastBlock(),o=r.getKey(),i=r.getLength();return e.acceptSelection(t,new g({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=v.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||u(t,r)?(l=l.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:c,directionMap:i,undoStack:l,redoStack:T(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=v.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=v.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=P},function(e,t,n){!function(t,n){e.exports=n()}(this,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:k(e)}function n(e){return a(e)?e:M(e)}function r(e){return s(e)?e:N(e)}function o(e){return i(e)&&!u(e)?e:D(e)}function i(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[fn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[pn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function d(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 h(e){return void 0===e.size&&(e.size=e.__iterate(v)),e.size}function y(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function T(e){this.next=e}function C(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 S(){return{value:void 0,done:!0}}function P(e){return!!x(e)}function w(e){return e&&"function"==typeof e.next}function E(e){var t=x(e);return t&&t.call(e)}function x(e){var t=e&&(Sn&&e[Sn]||e[Pn]);if("function"==typeof t)return t}function O(e){return e&&"number"==typeof e.length}function k(e){return null===e||void 0===e?F():i(e)?e.toSeq():z(e)}function M(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():K(e)}function N(e){return null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():V(e)}function D(e){return(null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e:V(e)).toSetSeq()}function R(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function I(e){this._iterator=e,this._iteratorCache=[]}function L(e){return!(!e||!e[En])}function F(){return xn||(xn=new R([]))}function K(e){var t=Array.isArray(e)?new R(e).fromEntrySeq():w(e)?new I(e).fromEntrySeq():P(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function V(e){var t=H(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function z(e){var t=H(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function H(e){return O(e)?new R(e):w(e)?new I(e):P(e)?new A(e):void 0}function W(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function B(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new T(function(){var e=o[n?i-a:a];return a++>i?S():C(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?Y(t,e,"",{"":e}):q(e)}function Y(e,t,n,r){return Array.isArray(t)?e.call(r,n,N(t).map(function(n,r){return Y(e,n,r,t)})):G(t)?e.call(r,n,M(t).map(function(n,r){return Y(e,n,r,t)})):t}function q(e){return Array.isArray(e)?N(e).map(q).toList():G(e)?M(e).map(q).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)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(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 c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):o?!X(t,e.get(r,mn)):!X(e.get(r,mn),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(On)return On;On=this}}function J(e,t){if(!e)throw new Error(t)}function Q(e,t,n){if(!(this instanceof Q))return new Q(e,t,n);if(J(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(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)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>Ln?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Vn[e];return void 0===t&&(t=se(e),Kn===Fn&&(Kn=0,Vn={}),Kn++,Vn[e]=t),t}function se(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return oe(t)}function ue(e){var t;if(jn&&(t=Mn.get(e),void 0!==t))return t;if(t=e[In],void 0!==t)return t;if(!Rn){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[In],void 0!==t)return t;if(t=le(e),void 0!==t)return t}if(t=++An,1073741824&An&&(An=0),jn)Mn.set(e,t);else{if(void 0!==Dn&&Dn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Rn)Object.defineProperty(e,In,{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[In]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[In]=t}}return t}function le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){J(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?Ce():pe(e)&&!l(e)?e:Ce().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function pe(e){return!(!e||!e[zn])}function de(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ye(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function me(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ge(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function be(e,t){return C(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function Te(e,t,n,r){var o=Object.create(Hn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ce(){return Wn||(Wn=Te(0))}function Se(e,t,n){var r,o;if(e._root){var i=c(gn),a=c(bn);if(r=Pe(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===mn?-1:1:0)}else{if(n===mn)return e;o=1,r=new de(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Te(o,r):Ce()}function Pe(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===mn?e:(f(s),f(a),new me(t,r,[o,i]))}function we(e){return e.constructor===me||e.constructor===ve}function Ee(e,t,n,r,o){if(e.keyHash===r)return new ve(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&vn,s=(0===n?r:r>>>n)&vn,u=a===s?[Ee(e,t,n+hn,r,o)]:(i=new me(t,r,o),a<s?[e,i]:[i,e]);return new he(t,1<<a|1<<s,u)}function xe(e,t,n,r){e||(e=new p);for(var o=new me(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 Oe(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=u,a[i++]=c)}return new he(e,o,a)}function ke(e,t,n,r,o){for(var i=0,a=new Array(yn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ye(e,i+1,a)}function Me(e,t,r){for(var o=[],a=0;a<r.length;a++){var s=r[a],u=n(s);i(s)||(u=u.map(function(e){return U(e)})),o.push(u)}return Re(e,t,o)}function Ne(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):X(e,t)?e:t}function De(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 Re(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,mn,function(e){return e===mn?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 je(e,t,n,r){var o=e===mn,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}J(o||e&&e.set,"invalid keyPath");var u=i.value,l=o?mn:e.get(u,mn),c=je(l,t,n,r);return c===l?e:c===mn?e.remove(u):(o?Ce():e).set(u,c)}function Ae(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Ie(e,t,n,r){var o=r?e:d(e);return o[t]=n,o}function Le(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,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function Fe(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 Ke(e){var t=Be();if(null===e||void 0===e)return t;if(Ve(e))return e;var n=r(e),o=n.size;return 0===o?t:(ce(o),o>0&&o<yn?We(0,o,hn,null,new ze(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function Ve(e){return!(!e||!e[qn])}function ze(e,t){this.array=e,this.ownerID=t}function He(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===s?u&&u.array:e&&e.array,o=n>i?0:i-n,l=a-n;return l>yn&&(l=yn),function(){if(o===l)return $n;var e=t?--l:o++;return r&&r[e]}}function o(e,r,o){var s,u=e&&e.array,l=o>i?0:i-o>>r,c=(a-o>>r)+1;return c>yn&&(c=yn),function(){for(;;){if(s){var e=s();if(e!==$n)return e;s=null}if(l===c)return $n;var i=t?--c:l++;s=n(u&&u[i],r-hn,o+(i<<r))}}}var i=e._origin,a=e._capacity,s=Ze(a),u=e._tail;return n(e._root,e._level,0)}function We(e,t,n,r,o,i,a){var s=Object.create(Gn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Be(){return Xn||(Xn=We(0,0,hn))}function Ue(e,t,n){if(t=y(e,t),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=c(bn);return t>=Ze(e._capacity)?r=Ye(r,e.__ownerID,0,t,n,i):o=Ye(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):We(e._origin,e._capacity,e._level,o,r):e}function Ye(e,t,n,r,o,i){var a=r>>>n&vn,s=e&&a<e.array.length;if(!s&&void 0===o)return e;var u;if(n>0){var l=e&&e.array[a],c=Ye(l,t,n-hn,r,o,i);return c===l?e:(u=qe(e,t),u.array[a]=c,u)}return s&&e.array[a]===o?e:(f(i),u=qe(e,t),void 0===o&&a===u.array.length-1?u.array.pop():u.array[a]=o,u)}function qe(e,t){return t&&e&&t===e.ownerID?e:new ze(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|t),void 0!==n&&(n=0|n);var r=e.__ownerID||new p,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new ze(l&&l.array.length?[void 0,l]:[],r),u+=hn,c+=1<<u;c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Ze(i),d=Ze(s);d>=1<<u+hn;)l=new ze(l&&l.array.length?[l]:[],r),u+=hn;var h=e._tail,y=d<f?Ge(e,s-1):d>f?new ze([],r):h;if(h&&d>f&&a<i&&h.array.length){l=qe(l,r);for(var v=l,m=u;m>hn;m-=hn){var g=f>>>m&vn;v=v.array[g]=qe(v.array[g],r)}v.array[f>>>hn&vn]=h}if(s<i&&(y=y&&y.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=hn,l=null,y=y&&y.removeBefore(r,0,a);else if(a>o||d<f){for(c=0;l;){var b=a>>>u&vn;if(b!==d>>>u&vn)break;b&&(c+=(1<<u)*b),u-=hn,l=l.array[b]}l&&a>o&&(l=l.removeBefore(r,u,a-c)),l&&d<f&&(l=l.removeAfter(r,u,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=l,e._tail=y,e.__hash=void 0,e.__altered=!0,e):We(a,s,u,l,y)}function $e(e,t,n){for(var o=[],a=0,s=0;s<n.length;s++){var u=n[s],l=r(u);l.size>a&&(a=l.size),i(u)||(l=l.map(function(e){return U(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),Re(e,t,o)}function Ze(e){return e<yn?0:e-1>>>hn<<hn}function Je(e){return null===e||void 0===e?tt():Qe(e)?e:tt().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Qe(e){return pe(e)&&l(e)}function et(e,t,n,r){var o=Object.create(Je.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tt(){return Zn||(Zn=et(Ce(),Be()))}function nt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===mn){if(!u)return e;a.size>=yn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==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=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[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 st(e){var t=Ot(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=kt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===Cn){var r=e.__iterator(t,n);return new T(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===Tn?_n:Tn,n)},t}function ut(e,t,n){var r=Ot(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,mn);return i===mn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return r(t.call(n,e,o,a),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Cn,o);return new T(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return C(r,s,t.call(n,a[1],s,e),o)})},r}function lt(e,t){var n=Ot(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(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=kt,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 ct(e,t,n,r){var o=Ot(e);return r&&(o.has=function(r){var o=e.get(r,mn);return o!==mn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,mn);return i!==mn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Cn,i),s=0;return new T(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return C(o,r?l:s++,c,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=(l(e)?Je():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=xt(e);return o.map(function(t){return Pt(e,i(t))})}function dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t=0|t),void 0!==n&&(n=0|n),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!==i||a!==a)return dt(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u===u&&(s=u<0?0:u);var l=Ot(e);return l.size=0===s?s:e.size&&s||void 0,!r&&L(e)&&s>=0&&(l.get=function(t,n){return t=y(this,t),t>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate(function(e,n){if(!u||!(u=a++<i))return l++,t(e,r?n:l-1,o)!==!1&&l!==s}),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new T(function(){for(;a++<i;)o.next();if(++u>s)return S();var e=o.next();return r||t===Tn?e:t===_n?C(t,u-1,void 0,e):C(t,u-1,e.value[1],e)})},l}function ht(e,t,n){var r=Ot(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,s){return t.call(n,e,o,s)&&++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(Cn,o),s=!0;return new T(function(){if(!s)return S();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===Cn?e:C(r,u,l,e):(s=!1,S())})},r}function yt(e,t,n,r){var o=Ot(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Cn,i),u=!0,l=0;return new T(function(){var e,i,c;do{if(e=s.next(),e.done)return r||o===Tn?e:o===_n?C(o,l++,void 0,e):C(o,l++,e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===Cn?e:C(o,i,c,e)})},o}function vt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?K(e):V(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new R(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function mt(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,o){function a(e,l){var c=this;e.__iterate(function(e,o){return(!t||l<t)&&i(e)?a(e,l+1):r(e,n?o:s++,c)===!1&&(u=!0),!u},o)}var s=0,u=!1;return a(e,0),s},r.__iteratorUncached=function(r,o){var a=e.__iterator(r,o),s=[],u=0;return new T(function(){for(;a;){var e=a.next();if(e.done===!1){var l=e.value;if(r===Cn&&(l=l[1]),t&&!(s.length<t)||!i(l))return n?e:C(r,u++,l,e);s.push(a),a=l.__iterator(r,o)}else a=s.pop()}return S()})},r}function gt(e,t,n){var r=xt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}function bt(e,t){var n=Ot(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||n(t,i++,o)!==!1)&&n(e,i++,o)!==!1},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(Tn,r),a=0;return new T(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?C(n,a++,t):C(n,a++,o.value,o)})},n}function _t(e,t,n){t||(t=Mt);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?M(i):s(e)?N(i):D(i)}function Tt(e,t,n){if(t||(t=Mt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Ct(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Ct(t,e,n)?n:e})}function Ct(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function St(e,n,r){var o=Ot(e);return o.size=new R(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Tn,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),E(o?e.reverse():e)}),a=0,s=!1;return new T(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?S():C(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function Pt(e,t){return L(e)?t:e.constructor(t)}function wt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Et(e){return ce(e.size),h(e)}function xt(e){return a(e)?n:s(e)?r:o}function Ot(e){return Object.create((a(e)?M:s(e)?N:D).prototype)}function kt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):k.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:e<t?-1:0}function Nt(e){var n=E(e);if(!n){if(!O(e))throw new TypeError("Expected iterable or array-like: "+e);n=E(t(e))}return n}function Dt(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);At(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=fe(i)},o=r.prototype=Object.create(Jn);return o.constructor=r,r}function Rt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function jt(e){return e._name||e.constructor.name||"Record"}function At(e,t){try{t.forEach(It.bind(void 0,e))}catch(n){}}function It(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){J(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Lt(e){return null===e||void 0===e?zt():Ft(e)&&!l(e)?e:zt().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Ft(e){return!(!e||!e[Qn])}function Kt(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 Vt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function zt(){return tr||(tr=Vt(Ce()))}function Ht(e){return null===e||void 0===e?Ut():Wt(e)?e:Ut().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Wt(e){return Ft(e)&&l(e)}function Bt(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ut(){return rr||(rr=Bt(tt()))}function Yt(e){return null===e||void 0===e?Xt():qt(e)?e:Xt().unshiftAll(e)}function qt(e){return!(!e||!e[or])}function Gt(e,t,n,r){var o=Object.create(ir);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xt(){return ar||(ar=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 Jt(e,t){return[t,e]}function Qt(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 d(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=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sn(ie(e),ie(t))|0}:function(e,t){r=r+sn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0});return an(o,r)}function an(e,t){return t=Nn(t,3432918353),t=Nn(t<<15|t>>>-15,461845907),t=Nn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nn(t^t>>>16,2246822507),t=Nn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u, t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",dn="delete",hn=5,yn=1<<hn,vn=yn-1,mn={},gn={value:!1},bn={value:!1},_n=0,Tn=1,Cn=2,Sn="function"==typeof Symbol&&Symbol.iterator,Pn="@@iterator",wn=Sn||Pn;T.prototype.toString=function(){return"[Iterator]"},T.KEYS=_n,T.VALUES=Tn,T.ENTRIES=Cn,T.prototype.inspect=T.prototype.toSource=function(){return this.toString()},T.prototype[wn]=function(){return this},e(k,t),k.of=function(){return k(arguments)},k.prototype.toSeq=function(){return this},k.prototype.toString=function(){return this.__toString("Seq {","}")},k.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},k.prototype.__iterate=function(e,t){return W(this,e,t,!0)},k.prototype.__iterator=function(e,t){return B(this,e,t,!0)},e(M,k),M.prototype.toKeyedSeq=function(){return this},e(N,k),N.of=function(){return N(arguments)},N.prototype.toIndexedSeq=function(){return this},N.prototype.toString=function(){return this.__toString("Seq [","]")},N.prototype.__iterate=function(e,t){return W(this,e,t,!1)},N.prototype.__iterator=function(e,t){return B(this,e,t,!1)},e(D,k),D.of=function(){return D(arguments)},D.prototype.toSetSeq=function(){return this},k.isSeq=L,k.Keyed=M,k.Set=D,k.Indexed=N;var En="@@__IMMUTABLE_SEQ__@@";k.prototype[En]=!0,e(R,N),R.prototype.get=function(e,t){return this.has(e)?this._array[y(this,e)]:t},R.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(e(n[t?r-o:o],o,this)===!1)return o+1;return o},R.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new T(function(){return o>r?S():C(e,o,n[t?r-o++:o++])})},e(j,M),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.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(e(n[a],a,this)===!1)return i+1}return i},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new T(function(){var a=r[t?o-i:i];return i++>o?S():C(e,a,n[a])})},j.prototype[pn]=!0,e(A,N),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=E(n),o=0;if(w(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=E(n);if(!w(r))return new T(S);var o=0;return new T(function(){var t=r.next();return t.done?t:C(e,o++,t.value)})},e(I,N),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(e(r[o],o++,this)===!1)return o;for(var i;!(i=n.next()).done;){var a=i.value;if(r[o]=a,e(a,o++,this)===!1)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 T(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return C(e,o,r[o++])})};var xn;e(Z,N),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 m(e,t,n)?this:new Z(this._value,b(t,n)-g(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(e(this._value,n,this)===!1)return n+1;return n},Z.prototype.__iterator=function(e,t){var n=this,r=0;return new T(function(){return r<n.size?C(e,r++,n._value):S()})},Z.prototype.equals=function(e){return e instanceof Z?X(this._value,e._value):$(e)};var On;e(Q,N),Q.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Q.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},Q.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Q.prototype.slice=function(e,t){return m(e,t,this.size)?this:(e=g(e,this.size),t=b(t,this.size),t<=e?new Q(0,0):new Q(this.get(e,this._end),this.get(t,this._end),this._step))},Q.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},Q.prototype.lastIndexOf=function(e){return this.indexOf(e)},Q.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(e(o,i,this)===!1)return i+1;o+=t?-r:r}return i},Q.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 T(function(){var a=o;return o+=t?-r:r,i>n?S():C(e,i++,a)})},Q.prototype.equals=function(e){return e instanceof Q?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 Mn,Nn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e=0|e,t=0|t;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Dn=Object.isExtensible,Rn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),jn="function"==typeof WeakMap;jn&&(Mn=new WeakMap);var An=0,In="__immutablehash__";"function"==typeof Symbol&&(In=Symbol(In));var Ln=16,Fn=255,Kn=0,Vn={};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 Se(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,mn,function(){return t})},fe.prototype.remove=function(e){return Se(this,e,mn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return mn})},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=je(this,Nt(e),t,n);return r===mn?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):Ce()},fe.prototype.merge=function(){return Me(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=un.call(arguments,1);return Me(this,e,t)},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Ce(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Me(this,Ne,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Me(this,De(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Ce(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Je(_t(this,e))},fe.prototype.sortBy=function(e,t){return Je(_t(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 ge(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?Te(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=pe;var zn="@@__IMMUTABLE_MAP__@@",Hn=fe.prototype;Hn[zn]=!0,Hn[dn]=Hn.remove,Hn.removeIn=Hn.deleteIn,de.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},de.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===mn,u=this.entries,l=0,c=u.length;l<c&&!X(r,u[l][0]);l++);var p=l<c;if(p?u[l][1]===o:s)return this;if(f(a),(s||!p)&&f(i),!s||1!==u.length){if(!p&&!s&&u.length>=Bn)return xe(e,u,r,o);var h=e&&e===this.ownerID,y=h?u:d(u);return p?s?l===c-1?y.pop():y[l]=y.pop():y[l]=[r,o]:y.push([r,o]),h?(this.entries=y,this):new de(e,y)}},he.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[Ae(i&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&vn,u=1<<s,l=this.bitmap,c=0!==(l&u);if(!c&&o===mn)return this;var f=Ae(l&u-1),p=this.nodes,d=c?p[f]:void 0,h=Pe(d,e,t+hn,n,r,o,i,a);if(h===d)return this;if(!c&&h&&p.length>=Un)return ke(e,p,l,s,h);if(c&&!h&&2===p.length&&we(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&we(h))return h;var y=e&&e===this.ownerID,v=c?h?l:l^u:l|u,m=c?h?Ie(p,f,h,y):Fe(p,f,y):Le(p,f,h,y);return y?(this.bitmap=v,this.nodes=m,this):new he(e,v,m)},ye.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},ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&vn,u=o===mn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Pe(c,e,t+hn,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&(p--,p<Yn))return Oe(e,l,p,s)}else p++;var d=e&&e===this.ownerID,h=Ie(l,s,f,d);return d?(this.count=p,this.nodes=h,this):new ye(e,p,h)},ve.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},ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=o===mn;if(n!==this.keyHash)return s?this:(f(a),f(i),Ee(this,e,t,n,[r,o]));for(var u=this.entries,l=0,c=u.length;l<c&&!X(r,u[l][0]);l++);var p=l<c;if(p?u[l][1]===o:s)return this;if(f(a),(s||!p)&&f(i),s&&2===c)return new me(e,this.keyHash,u[1^l]);var h=e&&e===this.ownerID,y=h?u:d(u);return p?s?l===c-1?y.pop():y[l]=y.pop():y[l]=[r,o]:y.push([r,o]),h?(this.entries=y,this):new ve(e,this.keyHash,y)},me.prototype.get=function(e,t,n,r){return X(n,this.entry[0])?this.entry[1]:r},me.prototype.update=function(e,t,n,r,o,i,a){var s=o===mn,u=X(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(f(a),s?void f(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new me(e,this.keyHash,[r,o]):(f(i),Ee(this,e,t,ie(r),[r,o])))},de.prototype.iterate=ve.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(e(n[t?o-r:r])===!1)return!1},he.prototype.iterate=ye.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&&i.iterate(e,t)===!1)return!1}},me.prototype.iterate=function(e,t){return e(this.entry)},e(ge,T),ge.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=_e(i,t)}continue}t=this._stack=this._stack.__prev}return S()};var Wn,Bn=yn/4,Un=yn/2,Yn=yn/4;e(Ke,ne),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("List [","]")},Ke.prototype.get=function(e,t){if(e=y(this,e),e>=0&&e<this.size){e+=this._origin;var n=Ge(this,e);return n&&n.array[e&vn]}return t},Ke.prototype.set=function(e,t){return Ue(this,e,t)},Ke.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ke.prototype.insert=function(e,t){return this.splice(e,0,t)},Ke.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):Be()},Ke.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])})},Ke.prototype.pop=function(){return Xe(this,0,-1)},Ke.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])})},Ke.prototype.shift=function(){return Xe(this,1)},Ke.prototype.merge=function(){return $e(this,void 0,arguments)},Ke.prototype.mergeWith=function(e){var t=un.call(arguments,1);return $e(this,e,t)},Ke.prototype.mergeDeep=function(){return $e(this,Ne,arguments)},Ke.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return $e(this,De(e),t)},Ke.prototype.setSize=function(e){return Xe(this,0,e)},Ke.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:Xe(this,g(e,n),b(t,n))},Ke.prototype.__iterator=function(e,t){var n=0,r=He(this,t);return new T(function(){var t=r();return t===$n?S():C(e,n++,t)})},Ke.prototype.__iterate=function(e,t){for(var n,r=0,o=He(this,t);(n=o())!==$n&&e(n,r++,this)!==!1;);return r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?We(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ke.isList=Ve;var qn="@@__IMMUTABLE_LIST__@@",Gn=Ke.prototype;Gn[qn]=!0,Gn[dn]=Gn.remove,Gn.setIn=Hn.setIn,Gn.deleteIn=Gn.removeIn=Hn.removeIn,Gn.update=Hn.update,Gn.updateIn=Hn.updateIn,Gn.mergeIn=Hn.mergeIn,Gn.mergeDeepIn=Hn.mergeDeepIn,Gn.withMutations=Hn.withMutations,Gn.asMutable=Hn.asMutable,Gn.asImmutable=Hn.asImmutable,Gn.wasAltered=Hn.wasAltered,ze.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 ze([],e);var o,i=0===r;if(t>0){var a=this.array[r];if(o=a&&a.removeBefore(e,t-hn,n),o===a&&i)return this}if(i&&!o)return this;var s=qe(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},ze.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),o===i&&r===this.array.length-1)return this}var a=qe(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Xn,$n={};e(Je,fe),Je.of=function(){return this(arguments)},Je.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Je.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Je.prototype.clear=functi