asp-antd-compatible
Version:
An enterprise-class UI design language and React components implementation
15 lines • 2.16 MB
JavaScript
/*!
*
* asp-antd-compatible v3.26.21
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"],t):"object"==typeof exports?exports["asp-antd-compatible"]=t(require("react"),require("react-dom"),require("moment")):e["asp-antd-compatible"]=t(e.React,e.ReactDOM,e.moment)}(window,function(n,r,o){return c={},i.m=a=[function(e,t){e.exports=n},function(e,t,n){e.exports=n(326)()},function(e,t,n){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var a={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n)&&n.length){var o=c.apply(null,n);o&&e.push(o)}else if("object"==r)for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(311),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(131),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";var r,O=n(0),o=n(2),w=n.n(o),i=n(191),a=n(10),f=n.n(a),c=n(3),p=n.n(c),l=n(21),h=n.n(l),s=n(6),u=n.n(s),d=n(15),v=n.n(d),y=n(4),m=n.n(y),b=n(8),g=n.n(b),C=n(68),S={primaryColor:"#333",secondaryColor:"#E6E6E6"},E=(r=O.Component,g()(x,r),v()(x,[{key:"render",value:function(){var e,t=this.props,n=t.type,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,c=t.secondaryColor,l=h()(t,["type","className","onClick","style","primaryColor","secondaryColor"]),s=void 0,u=S;if(a&&(u={primaryColor:a,secondaryColor:c||Object(C.c)(a)}),Object(C.d)(n))s=n;else if("string"==typeof n&&!(s=x.get(n,u)))return null;return s?(s&&"function"==typeof s.icon&&(s=p()({},s,{icon:s.icon(u.primaryColor,u.secondaryColor)})),Object(C.b)(s.icon,"svg-"+s.name,p()((e={className:r,onClick:o,style:i},f()(e,"data-icon",s.name),f()(e,"width","1em"),f()(e,"height","1em"),f()(e,"fill","currentColor"),f()(e,"aria-hidden","true"),f()(e,"focusable","false"),e),l))):(Object(C.e)("type should be string or icon definiton, but got "+n),null)}}],[{key:"add",value:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){t.definitions.set(Object(C.f)(e.name,e.theme),e)})}},{key:"clear",value:function(){this.definitions.clear()}},{key:"get",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:S;if(e){var r=this.definitions.get(e);return r&&"function"==typeof r.icon&&(r=p()({},r,{icon:r.icon(n.primaryColor,n.secondaryColor)})),r}}},{key:"setTwoToneColors",value:function(e){var t=e.primaryColor,n=e.secondaryColor;S.primaryColor=t,S.secondaryColor=n||Object(C.c)(t)}},{key:"getTwoToneColors",value:function(){return p()({},S)}}]),x);function x(){return u()(this,x),m()(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}E.displayName="IconReact",E.definitions=new C.a;var k=E;function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},P=new Set;var z=n(11),j={width:"1em",height:"1em",fill:"currentColor","aria-hidden":!0,focusable:"false"},T=/-fill$/,N=/-o$/,V=/-twotone$/;var D=n(24);function L(e){return k.setTwoToneColors({primaryColor:e})}function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var I,F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};k.add.apply(k,function(e){if(Array.isArray(e))return A(e)}(I=Object.keys(i).map(function(e){return i[e]}))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(I)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(I)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),L("#1890ff");var K,B="outlined";function W(e){var t,n=e.className,l=e.type,s=e.component,u=e.viewBox,r=e.spin,o=e.rotate,i=e.tabIndex,a=e.onClick,f=e.children,p=e.theme,h=e.twoToneColor,c=F(e,["className","type","component","viewBox","spin","rotate","tabIndex","onClick","children","theme","twoToneColor"]);Object(z.a)(Boolean(l||s||f),"Icon","Should have `type` prop or `component` prop or `children`.");var d=w()((R(t={},"anticon",!0),R(t,"anticon-".concat(l),Boolean(l)),t),n),v=w()(R({},"anticon-spin",!!r||"loading"===l)),y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=H(H({},j),{className:v,style:y,viewBox:u});function b(){if(s)return O.createElement(s,m,f);if(f)return Object(z.a)(Boolean(u)||1===O.Children.count(f)&&O.isValidElement(f)&&"use"===O.Children.only(f).type,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),O.createElement("svg",H({},m,{viewBox:u}),f);if("string"==typeof l){var e,t=l;return p&&(a=l,c=null,T.test(a)?c="filled":N.test(a)?c="outlined":V.test(a)&&(c="twoTone"),e=c,Object(z.a)(!e||p===e,"Icon","The icon name '".concat(l,"' already specify a theme '").concat(e,"',")+" the 'theme' prop '".concat(p,"' will be ignored."))),i=function(e){var t=e;switch(e){case"cross":t="close";break;case"interation":t="interaction";break;case"canlendar":t="calendar";break;case"colum-height":t="column-height"}return Object(z.a)(t===e,"Icon","Icon '".concat(e,"' was a typo and is now deprecated, please use '").concat(t,"' instead.")),t}(t),n=i.replace(T,"").replace(N,"").replace(V,""),o=n,"filled"===(r=K||p||B)?o+="-fill":"outlined"===r?o+="-o":"twoTone"===r?o+="-twotone":Object(z.a)(!1,"Icon","This icon '".concat(n,"' has unknown theme '").concat(r,"'")),t=o,O.createElement(k,{className:v,type:t,primaryColor:h,style:y})}var n,r,o,i,a,c}u||delete m.viewBox;var g=i;return void 0===g&&a&&(g=-1),O.createElement(D.a,{componentName:"Icon"},function(e){return O.createElement("i",H({"aria-label":l&&"".concat(e.icon,": ").concat(l)},c,{tabIndex:g,onClick:a,className:d}),b())})}W.createFromIconfontCN=function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.scriptUrl,r=t.extraCommonProps,i=void 0===r?{}:r;function o(e){var t=e.type,n=e.children,r=M(e,["type","children"]),o=null;return e.type&&(o=O.createElement("use",{xlinkHref:"#".concat(t)})),n&&(o=n),O.createElement(U,_({},i,r),o)}return"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof n&&n.length&&!P.has(n)&&((e=document.createElement("script")).setAttribute("src",n),e.setAttribute("data-namespace",n),P.add(n),document.body.appendChild(e)),o.displayName="Iconfont",o},W.getTwoToneColor=function(){return k.getTwoToneColors().primaryColor},W.setTwoToneColor=L;var U=t.a=W},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function l(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function s(n){this.setState(function(e){var t=this.constructor.getDerivedStateFromProps(n,e);return null!=t?t:null}.bind(this))}function u(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function r(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=l,t.componentWillReceiveProps=s),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=u;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return r}),u.__suppressDeprecationWarning=s.__suppressDeprecationWarning=l.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(352)),o=a(n(356)),i=a(n(131));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t){e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(207),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(110);t.a=function(e,t,n){Object(r.a)(e,"[antd: ".concat(t,"] ").concat(n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var p=n(0),h=n(111),i=n(24),d=n(33);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(i){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t,n,r,o=u(i);return t=a?(e=u(this).constructor,Reflect.construct(o,arguments,e)):o.apply(this,arguments),n=this,!(r=t)||"object"!==c(r)&&"function"!=typeof r?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):r}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var r=["getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],o=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,p["Component"]);var e,t,n,r=s(o);function o(){var f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(f=r.apply(this,arguments)).getPrefixCls=function(e,t){var n=f.props.prefixCls,r=void 0===n?"asp":n;return t||(e?"".concat(r,"-").concat(e):r)},f.renderProvider=function(e,t){var n=f.props,r=n.children,o=n.getPopupContainer,i=n.renderEmpty,a=n.csp,c=n.autoInsertSpaceInButton,l=n.locale,s=n.pageHeader,u=v(v({},e),{getPrefixCls:f.getPrefixCls,csp:a,autoInsertSpaceInButton:c});return o&&(u.getPopupContainer=o),i&&(u.renderEmpty=i),s&&(u.pageHeader=s),p.createElement(d.b.Provider,{value:u},p.createElement(h.b,{locale:l||t,_ANT_MARK__:h.a},r))},f}return e=o,(t=[{key:"render",value:function(){var r=this;return p.createElement(i.a,null,function(e,t,n){return p.createElement(d.a,null,function(e){return r.renderProvider(e,n)})})}}])&&a(e.prototype,t),n&&a(e,n),o}();t.b=o},function(e,t,n){"use strict";var r=n(3),o=n.n(r);t.a=function(e,t){for(var n=o()({},e),r=0;r<t.length;r++){delete n[t[r]]}return n}},function(e,t,n){"use strict";var r=n(512),o=n(106),i=n(43),a=n(528),c=n(73),l=n(173),s=n(176),u=n(250),f=n(529),p=n(252),h=n(128),d=n(41),v=n(248),y=n(28),m=n(184),b=n(266),g=n(89),O=n(589),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:v,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,SelectionState:g,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:d,RichUtils:b,DefaultDraftBlockRenderMap:s,DefaultDraftInlineStyle:u,convertFromHTML:n(264),convertFromRaw:n(592),convertToRaw:O,genKey:n(58),getDefaultKeyBinding:n(267),getVisibleSelectionRect:n(597)};e.exports=w},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(207),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}t.default=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}},function(e,t){e.exports=o},function(e,t){e.exports=function(e,t,n,r){if(void 0!==(s=n?n.call(r,e,t):void 0))return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!a(l))return!1;var s,u=e[l],f=t[l];if(!1===(s=n?n.call(r,u,f,l):void 0)||void 0===s&&u!==f)return!1}return!0}},function(f,e,p){(function(e){for(var r,o,i,a=p(329),t="undefined"==typeof window?e:window,n=["moz","webkit"],c="AnimationFrame",l=t["request"+c],s=t["cancel"+c]||t["cancelRequest"+c],u=0;!l&&u<n.length;u++)l=t[n[u]+"Request"+c],s=t[n[u]+"Cancel"+c]||t[n[u]+"CancelRequest"+c];l&&s||(o=r=0,i=[],l=function(e){var t,n;return 0===i.length&&(t=a(),n=Math.max(0,1e3/60-(t-r)),r=n+t,setTimeout(function(){for(var e=i.slice(0),t=i.length=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(r)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))),i.push({handle:++o,callback:e,cancelled:!1}),o},s=function(e){for(var t=0;t<i.length;t++)i[t].handle===e&&(i[t].cancelled=!0)}),f.exports=function(e){return l.call(t,e)},f.exports.cancel=function(){s.apply(t,arguments)},f.exports.polyfill=function(e){(e=e||t).requestAnimationFrame=l,e.cancelAnimationFrame=s}}).call(this,p(36))},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){e.exports=function(){"use strict";var r=Array.prototype.slice;function e(e,t){if(t){e.prototype=Object.create(t.prototype)}e.prototype.constructor=e}function l(e){return u(e)?e:Y(e)}function c(e){return f(e)?e:G(e)}function s(e){return p(e)?e:X(e)}function o(e){return u(e)&&!h(e)?e:$(e)}function u(e){return!!(e&&e[t])}function f(e){return!!(e&&e[n])}function p(e){return!!(e&&e[i])}function h(e){return f(e)||p(e)}function d(e){return!!(e&&e[a])}e(c,l),e(s,l),e(o,l),l.isIterable=u,l.isKeyed=f,l.isIndexed=p,l.isAssociative=h,l.isOrdered=d,l.Keyed=c,l.Indexed=s,l.Set=o;var t="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_INDEXED__@@",a="@@__IMMUTABLE_ORDERED__@@",v="delete",g=5,y=1<<g,O=y-1,b={},m={value:false},w={value:false};function C(e){e.value=false;return e}function S(e){e&&(e.value=true)}function E(){}function x(e,t){t=t||0;var n=Math.max(0,e.length-t);var r=new Array(n);for(var o=0;o<n;o++){r[o]=e[o+t]}return r}function k(e){if(e.size===undefined){e.size=e.__iterate(M)}return e.size}function _(e,t){if(typeof t!=="number"){var n=t>>>0;if(""+n!==t||n===4294967295){return NaN}t=n}return t<0?k(e)+t:t}function M(){return true}function P(e,t,n){return(e===0||n!==undefined&&e<=-n)&&(t===undefined||n!==undefined&&t>=n)}function z(e,t){return T(e,t,0)}function j(e,t){return T(e,t,t)}function T(e,t,n){return e===undefined?n:e<0?Math.max(0,t+e):t===undefined?e:Math.min(t,e)}var N=0,V=1,D=2,L=typeof Symbol==="function"&&Symbol.iterator,H="@@iterator",R=L||H;function A(e){this.next=e}function I(e,t,n,r){var o=e===0?t:e===1?n:[t,n];r?r.value=o:r={value:o,done:false};return r}function F(){return{value:undefined,done:true}}function K(e){return!!U(e)}function B(e){return e&&typeof e.next==="function"}function W(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(L&&e[L]||e[H]);if(typeof t==="function"){return t}}function q(e){return e&&typeof e.length==="number"}function Y(e){return e===null||e===undefined?ae():u(e)?e.toSeq():se(e)}function G(e){return e===null||e===undefined?ae().toKeyedSeq():u(e)?f(e)?e.toSeq():e.fromEntrySeq():ce(e)}function X(e){return e===null||e===undefined?ae():!u(e)?le(e):f(e)?e.entrySeq():e.toIndexedSeq()}function $(e){return(e===null||e===undefined?ae():!u(e)?le(e):f(e)?e.entrySeq():e).toSetSeq()}A.prototype.toString=function(){return"[Iterator]"},A.KEYS=N,A.VALUES=V,A.ENTRIES=D,A.prototype.inspect=A.prototype.toSource=function(){return this.toString()},A.prototype[R]=function(){return this},e(Y,l),Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){if(!this._cache&&this.__iterateUncached){this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this},Y.prototype.__iterate=function(e,t){return fe(this,e,t,true)},Y.prototype.__iterator=function(e,t){return pe(this,e,t,true)},e(G,Y),G.prototype.toKeyedSeq=function(){return this},e(X,Y),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,false)},X.prototype.__iterator=function(e,t){return pe(this,e,t,false)},e($,Y),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},Y.isSeq=ie,Y.Keyed=G,Y.Set=$,Y.Indexed=X;var J="@@__IMMUTABLE_SEQ__@@",Z,Q,ee;function te(e){this._array=e;this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e;this._keys=t;this.size=t.length}function re(e){this._iterable=e;this.size=e.length||e.size}function oe(e){this._iterator=e;this._iteratorCache=[]}function ie(e){return!!(e&&e[J])}function ae(){return Z||(Z=new te([]))}function ce(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():B(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():typeof e==="object"?new ne(e):undefined;if(!t){throw new TypeError("Expected Array or iterable object of [k, v] entries, "+"or keyed object: "+e)}return t}function le(e){var t=ue(e);if(!t){throw new TypeError("Expected Array or iterable object of values: "+e)}return t}function se(e){var t=ue(e)||typeof e==="object"&&new ne(e);if(!t){throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}return t}function ue(e){return q(e)?new te(e):B(e)?new oe(e):K(e)?new re(e):undefined}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1;for(var a=0;a<=i;a++){var c=o[n?i-a:a];if(t(c[1],r?c[0]:a,e)===false){return a+1}}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1;var a=0;return new A(function(){var e=o[n?i-a:a];return a++>i?F():I(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?de(t,e,"",{"":e}):ve(e)}function de(n,r,e,t){if(Array.isArray(r)){return n.call(t,e,X(r).map(function(e,t){return de(n,e,t,r)}))}if(ye(r)){return n.call(t,e,G(r).map(function(e,t){return de(n,e,t,r)}))}return r}function ve(e){if(Array.isArray(e)){return X(e).map(ve).toList()}if(ye(e)){return G(e).map(ve).toMap()}return e}function ye(e){return e&&(e.constructor===Object||e.constructor===undefined)}function me(e,t){if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}if(typeof e.valueOf==="function"&&typeof t.valueOf==="function"){e=e.valueOf();t=t.valueOf();if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}}if(typeof e.equals==="function"&&typeof t.equals==="function"&&e.equals(t)){return true}return false}function be(n,e){if(n===e){return true}if(!u(e)||n.size!==undefined&&e.size!==undefined&&n.size!==e.size||n.__hash!==undefined&&e.__hash!==undefined&&n.__hash!==e.__hash||f(n)!==f(e)||p(n)!==p(e)||d(n)!==d(e)){return false}if(n.size===0&&e.size===0){return true}var r=!h(n);if(d(n)){var o=n.entries();return e.every(function(e,t){var n=o.next().value;return n&&me(n[1],e)&&(r||me(n[0],t))})&&o.next().done}var i=false;if(n.size===undefined){if(e.size===undefined){if(typeof n.cacheResult==="function"){n.cacheResult()}}else{i=true;var t=n;n=e;e=t}}var a=true;var c=e.__iterate(function(e,t){if(r?!n.has(e):i?!me(e,n.get(t,b)):!me(n.get(t,b),e)){a=false;return false}});return a&&n.size===c}function ge(e,t){if(!(this instanceof ge)){return new ge(e,t)}this._value=e;this.size=t===undefined?Infinity:Math.max(0,t);if(this.size===0){if(Q){return Q}Q=this}}function Oe(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we)){return new we(e,t,n)}Oe(n!==0,"Cannot step a Range by 0");e=e||0;if(t===undefined){t=Infinity}n=n===undefined?1:Math.abs(n);if(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);if(this.size===0){if(ee){return ee}ee=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function Ee(){}function xe(){}Y.prototype[J]=true,e(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[_(this,e)]:t},te.prototype.__iterate=function(e,t){var n=this._array;var r=n.length-1;for(var o=0;o<=r;o++){if(e(n[t?r-o:o],o,this)===false){return o+1}}return o},te.prototype.__iterator=function(e,t){var n=this._array;var r=n.length-1;var o=0;return new A(function(){return o>r?F():I(e,o,n[t?r-o++:o++])})},e(ne,G),ne.prototype.get=function(e,t){if(t!==undefined&&!this.has(e)){return t}return this._object[e]},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){var n=this._object;var r=this._keys;var o=r.length-1;for(var i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===false){return i+1}}return i},ne.prototype.__iterator=function(t,n){var r=this._object;var o=this._keys;var i=o.length-1;var a=0;return new A(function(){var e=o[n?i-a:a];return a++>i?F():I(t,e,r[e])})},ne.prototype[a]=true,e(re,X),re.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var n=this._iterable;var r=W(n);var o=0;if(B(r)){var i;while(!(i=r.next()).done){if(e(i.value,o++,this)===false){break}}}return o},re.prototype.__iteratorUncached=function(t,e){if(e){return this.cacheResult().__iterator(t,e)}var n=this._iterable;var r=W(n);if(!B(r)){return new A(F)}var o=0;return new A(function(){var e=r.next();return e.done?e:I(t,o++,e.value)})},e(oe,X),oe.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var n=this._iterator;var r=this._iteratorCache;var o=0;while(o<r.length){if(e(r[o],o++,this)===false){return o}}var i;while(!(i=n.next()).done){var a=i.value;r[o]=a;if(e(a,o++,this)===false){break}}return o},oe.prototype.__iteratorUncached=function(t,e){if(e){return this.cacheResult().__iterator(t,e)}var n=this._iterator;var r=this._iteratorCache;var o=0;return new A(function(){if(o>=r.length){var e=n.next();if(e.done){return e}r[o]=e.value}return I(t,o,r[o++])})},e(ge,X),ge.prototype.toString=function(){if(this.size===0){return"Repeat []"}return"Repeat [ "+this._value+" "+this.size+" times ]"},ge.prototype.get=function(e,t){return this.has(e)?this._value:t},ge.prototype.includes=function(e){return me(this._value,e)},ge.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new ge(this._value,j(t,n)-z(e,n))},ge.prototype.reverse=function(){return this},ge.prototype.indexOf=function(e){if(me(this._value,e)){return 0}return-1},ge.prototype.lastIndexOf=function(e){if(me(this._value,e)){return this.size}return-1},ge.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++){if(e(this._value,n,this)===false){return n+1}}return n},ge.prototype.__iterator=function(e,t){var n=this;var r=0;return new A(function(){return r<n.size?I(e,r++,n._value):F()})},ge.prototype.equals=function(e){return e instanceof ge?me(this._value,e._value):be(e)},e(we,X),we.prototype.toString=function(){if(this.size===0){return"Range []"}return"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){if(P(e,t,this.size)){return this}e=z(e,this.size);t=j(t,this.size);if(t<=e){return new we(0,0)}return new we(this.get(e,this._end),this.get(t,this._end),this._step)},we.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},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){var n=this.size-1;var r=this._step;var o=t?this._start+n*r:this._start;for(var i=0;i<=n;i++){if(e(o,i,this)===false){return i+1}o+=t?-r:r}return i},we.prototype.__iterator=function(t,n){var r=this.size-1;var o=this._step;var i=n?this._start+r*o:this._start;var a=0;return new A(function(){var e=i;i+=n?-o:o;return a>r?F():I(t,a++,e)})},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:be(this,e)},e(Ce,l),e(Se,Ce),e(Ee,Ce),e(xe,Ce),Ce.Keyed=Se,Ce.Indexed=Ee,Ce.Set=xe;var ke=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function e(t,n){t=t|0;n=n|0;var r=t&65535;var o=n&65535;return r*o+((t>>>16)*o+r*(n>>>16)<<16>>>0)|0};function _e(e){return e>>>1&1073741824|e&3221225471}function Me(e){if(e===false||e===null||e===undefined){return 0}if(typeof e.valueOf==="function"){e=e.valueOf();if(e===false||e===null||e===undefined){return 0}}if(e===true){return 1}var t=typeof e;if(t==="number"){var n=e|0;if(n!==e){n^=e*4294967295}while(e>4294967295){e/=4294967295;n^=e}return _e(n)}if(t==="string"){return e.length>Ae?Pe(e):ze(e)}if(typeof e.hashCode==="function"){return e.hashCode()}if(t==="object"){return je(e)}if(typeof e.toString==="function"){return ze(e.toString())}throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=Ke[e];if(t===undefined){t=ze(e);if(Fe===Ie){Fe=0;Ke={}}Fe++;Ke[e]=t}return t}function ze(e){var t=0;for(var n=0;n<e.length;n++){t=31*t+e.charCodeAt(n)|0}return _e(t)}function je(e){var t;if(De){t=Le.get(e);if(t!==undefined){return t}}t=e[Re];if(t!==undefined){return t}if(!Ne){t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Re];if(t!==undefined){return t}t=Ve(e);if(t!==undefined){return t}}t=++He;if(He&1073741824){He=0}if(De){Le.set(e,t)}else if(Te!==undefined&&Te(e)===false){throw new Error("Non-extensible objects are not allowed as keys.")}else if(Ne){Object.defineProperty(e,Re,{enumerable:false,configurable:false,writable:false,value:t})}else if(e.propertyIsEnumerable!==undefined&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable){e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};e.propertyIsEnumerable[Re]=t}else if(e.nodeType!==undefined){e[Re]=t}else{throw new Error("Unable to set a non-enumerable property on object.")}return t}var Te=Object.isExtensible,Ne=function(){try{Object.defineProperty({},"@",{});return true}catch(e){return false}}();function Ve(e){if(e&&e.nodeType>0){switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}}var De=typeof WeakMap==="function",Le;if(De){Le=new WeakMap}var He=0,Re="__immutablehash__";if(typeof Symbol==="function"){Re=Symbol(Re)}var Ae=16,Ie=255,Fe=0,Ke={};function Be(e){Oe(e!==Infinity,"Cannot perform this action with an infinite size.")}function We(t){return t===null||t===undefined?ot():Ue(t)&&!d(t)?t:ot().withMutations(function(n){var e=c(t);Be(e.size);e.forEach(function(e,t){return n.set(t,e)})})}function Ue(e){return!!(e&&e[qe])}e(We,Se),We.prototype.toString=function(){return this.__toString("Map {","}")},We.prototype.get=function(e,t){return this._root?this._root.get(0,undefined,e,t):t},We.prototype.set=function(e,t){return it(this,e,t)},We.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},We.prototype.remove=function(e){return it(this,e,b)},We.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},We.prototype.update=function(e,t,n){return arguments.length===1?e(this):this.updateIn([e],t,n)},We.prototype.updateIn=function(e,t,n){if(!n){n=t;t=undefined}var r=yt(this,Cn(e),t,n);return r===b?undefined:r},We.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._root=null;this.__hash=undefined;this.__altered=true;return this}return ot()},We.prototype.merge=function(){return pt(this,undefined,arguments)},We.prototype.mergeWith=function(e){var t=r.call(arguments,1);return pt(this,e,t)},We.prototype.mergeIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,ot(),function(e){return typeof e.merge==="function"?e.merge.apply(e,t):t[t.length-1]})},We.prototype.mergeDeep=function(){return pt(this,ht,arguments)},We.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return pt(this,dt(e),t)},We.prototype.mergeDeepIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,ot(),function(e){return typeof e.mergeDeep==="function"?e.mergeDeep.apply(e,t):t[t.length-1]})},We.prototype.sort=function(e){return Kt(fn(this,e))},We.prototype.sortBy=function(e,t){return Kt(fn(this,t,e))},We.prototype.withMutations=function(e){var t=this.asMutable();e(t);return t.wasAltered()?t.__ensureOwner(this.__ownerID):this},We.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},We.prototype.asImmutable=function(){return this.__ensureOwner()},We.prototype.wasAltered=function(){return this.__altered},We.prototype.__iterator=function(e,t){return new et(this,e,t)},We.prototype.__iterate=function(t,e){var n=this;var r=0;this._root&&this._root.iterate(function(e){r++;return t(e[1],e[0],n)},e);return r},We.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return rt(this.size,this._root,e,this.__hash)},We.isMap=Ue;var qe="@@__IMMUTABLE_MAP__@@",Ye=We.prototype,Ge;function Xe(e,t){this.ownerID=e;this.entries=t}function $e(e,t,n){this.ownerID=e;this.bitmap=t;this.nodes=n}function Je(e,t,n){this.ownerID=e;this.count=t;this.nodes=n}function Ze(e,t,n){this.ownerID=e;this.keyHash=t;this.entries=n}function Qe(e,t,n){this.ownerID=e;this.keyHash=t;this.entry=n}function et(e,t,n){this._type=t;this._reverse=n;this._stack=e._root&&nt(e._root)}function tt(e,t){return I(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ye);o.size=e;o._root=t;o.__ownerID=n;o.__hash=r;o.__altered=false;return o}function ot(){return Ge||(Ge=rt(0))}function it(e,t,n){var r;var o;if(!e._root){if(n===b){return e}o=1;r=new Xe(e.__ownerID,[[t,n]])}else{var i=C(m);var a=C(w);r=at(e._root,e.__ownerID,0,undefined,t,n,i,a);if(!a.value){return e}o=e.size+(i.value?n===b?-1:1:0)}if(e.__ownerID){e.size=o;e._root=r;e.__hash=undefined;e.__altered=true;return e}return r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,c){if(!e){if(i===b){return e}S(c);S(a);return new Qe(t,r,[o,i])}return e.update(t,n,r,o,i,a,c)}function ct(e){return e.constructor===Qe||e.constructor===Ze}function lt(e,t,n,r,o){if(e.keyHash===r){return new Ze(t,r,[e.entry,o])}var i=(n===0?e.keyHash:e.keyHash>>>n)&O;var a=(n===0?r:r>>>n)&O;var c;var l=i===a?[lt(e,t,n+g,r,o)]:(c=new Qe(t,r,o),i<a?[e,c]:[c,e]);return new $e(t,1<<i|1<<a,l)}function st(e,t,n,r){if(!e){e=new E}var o=new Qe(e,Me(n),[n,r]);for(var i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,undefined,a[0],a[1])}return o}function ut(e,t,n,r){var o=0;var i=0;var a=new Array(n);for(var c=0,l=1,s=t.length;c<s;c++,l<<=1){var u=t[c];if(u!==undefined&&c!==r){o|=l;a[i++]=u}}return new $e(e,o,a)}function ft(e,t,n,r,o){var i=0;var a=new Array(y);for(var c=0;n!==0;c++,n>>>=1){a[c]=n&1?t[i++]:undefined}a[r]=o;return new Je(e,i+1,a)}function pt(e,t,n){var r=[];for(var o=0;o<n.length;o++){var i=n[o];var a=c(i);if(!u(i)){a=a.map(function(e){return he(e)})}r.push(a)}return vt(e,t,r)}function ht(e,t,n){return e&&e.mergeDeep&&u(t)?e.mergeDeep(t):me(e,t)?e:t}function dt(o){return function(e,t,n){if(e&&e.mergeDeepWith&&u(t)){return e.mergeDeepWith(o,t)}var r=o(e,t,n);return me(e,r)?e:r}}function vt(e,o,n){n=n.filter(function(e){return e.size!==0});if(n.length===0){return e}if(e.size===0&&!e.__ownerID&&n.length===1){return e.constructor(n[0])}return e.withMutations(function(r){var e=o?function(t,n){r.update(n,b,function(e){return e===b?t:o(e,t,n)})}:function(e,t){r.set(t,e)};for(var t=0;t<n.length;t++){n[t].forEach(e)}})}function yt(e,t,n,r){var o=e===b;var i=t.next();if(i.done){var a=o?n:e;var c=r(a);return c===a?e:c}Oe(o||e&&e.set,"invalid keyPath");var l=i.value;var s=o?b:e.get(l,b);var u=yt(s,t,n,r);return u===s?e:u===b?e.remove(l):(o?ot():e).set(l,u)}function mt(e){e=e-(e>>1&1431655765);e=(e&858993459)+(e>>2&858993459);e=e+(e>>4)&252645135;e=e+(e>>8);e=e+(e>>16);return e&127}function bt(e,t,n,r){var o=r?e:x(e);o[t]=n;return o}function gt(e,t,n,r){var o=e.length+1;if(r&&t+1===o){e[t]=n;return e}var i=new Array(o);var a=0;for(var c=0;c<o;c++){if(c===t){i[c]=n;a=-1}else{i[c]=e[c+a]}}return i}function Ot(e,t,n){var r=e.length-1;if(n&&t===r){e.pop();return e}var o=new Array(r);var i=0;for(var a=0;a<r;a++){if(a===t){i=1}o[a]=e[a+i]}return o}Ye[qe]=true,Ye[v]=Ye.remove,Ye.removeIn=Ye.deleteIn,Xe.prototype.get=function(e,t,n,r){var o=this.entries;for(var i=0,a=o.length;i<a;i++){if(me(n,o[i][0])){return o[i][1]}}return r},Xe.prototype.update=function(e,t,n,r,o,i,a){var c=o===b;var l=this.entries;var s=0;for(var u=l.length;s<u;s++){if(me(r,l[s][0])){break}}var f=s<u;if(f?l[s][1]===o:c){return this}S(a);(c||!f)&&S(i);if(c&&l.length===1){return}if(!f&&!c&&l.length>=wt){return st(e,l,r,o)}var p=e&&e===this.ownerID;var h=p?l:x(l);if(f){if(c){s===u-1?h.pop():h[s]=h.pop()}else{h[s]=[r,o]}}else{h.push([r,o])}if(p){this.entries=h;return this}return new Xe(e,h)},$e.prototype.get=function(e,t,n,r){if(t===undefined){t=Me(n)}var o=1<<((e===0?t:t>>>e)&O);var i=this.bitmap;return(i&o)===0?r:this.nodes[mt(i&o-1)].get(e+g,t,n,r)},$e.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Me(r)}var c=(t===0?n:n>>>t)&O;var l=1<<c;var s=this.bitmap;var u=(s&l)!==0;if(!u&&o===b){return this}var f=mt(s&l-1);var p=this.nodes;var h=u?p[f]:undefined;var d=at(h,e,t+g,n,r,o,i,a);if(d===h){return this}if(!u&&d&&p.length>=Ct){return ft(e,p,s,c,d)}if(u&&!d&&p.length===2&&ct(p[f^1])){return p[f^1]}if(u&&d&&p.length===1&&ct(d)){return d}var v=e&&e===this.ownerID;var y=u?d?s:s^l:s|l;var m=u?d?bt(p,f,d,v):Ot(p,f,v):gt(p,f,d,v);if(v){this.bitmap=y;this.nodes=m;return this}return new $e(e,y,m)},Je.prototype.get=function(e,t,n,r){if(t===undefined){t=Me(n)}var o=(e===0?t:t>>>e)&O;var i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Je.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Me(r)}var c=(t===0?n:n>>>t)&O;var l=o===b;var s=this.nodes;var u=s[c];if(l&&!u){return this}var f=at(u,e,t+g,n,r,o,i,a);if(f===u){return this}var p=this.count;if(!u){p++}else if(!f){p--;if(p<St){return ut(e,s,p,c)}}var h=e&&e===this.ownerID;var d=bt(s,c,f,h);if(h){this.count=p;this.nodes=d;return this}return new Je(e,p,d)},Ze.prototype.get=function(e,t,n,r){var o=this.entries;for(var i=0,a=o.length;i<a;i++){if(me(n,o[i][0])){return o[i][1]}}return r},Ze.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Me(r)}var c=o===b;if(n!==this.keyHash){if(c){return this}S(a);S(i);return lt(this,e,t,n,[r,o])}var l=this.entries;var s=0;for(var u=l.length;s<u;s++){if(me(r,l[s][0])){break}}var f=s<u;if(f?l[s][1]===o:c){return this}S(a);(c||!f)&&S(i);if(c&&u===2){return new Qe(e,this.keyHash,l[s^1])}var p=e&&e===this.ownerID;var h=p?l:x(l);if(f){if(c){s===u-1?h.pop():h[s]=h.pop()}else{h[s]=[r,o]}}else{h.push([r,o])}if(p){this.entries=h;return this}return new Ze(e,this.keyHash,h)},Qe.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var c=o===b;var l=me(r,this.entry[0]);if(l?o===this.entry[1]:c){return this}S(a);if(c){S(i);return}if(l){if(e&&e===this.ownerID){this.entry[1]=o;return this}return new Qe(e,this.keyHash,[r,o])}S(i);return lt(this,e,t,Me(r),[r,o])},Xe.prototype.iterate=Ze.prototype.iterate=function(e,t){var n=this.entries;for(var r=0,o=n.length-1;r<=o;r++){if(e(n[t?o-r:r])===false){return false}}},$e.prototype.iterate=Je.prototype.iterate=function(e,t){var n=this.nodes;for(var r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&i.iterate(e,t)===false){return false}}},Qe.prototype.iterate=function(e,t){return e(this.entry)},e(et,A),et.prototype.next=function(){var e=this._type;var t=this._stack;while(t){var n=t.node;var r=t.index++;var o;if(n.entry){if(r===0){return tt(e,n.entry)}}else if(n.entries){o=n.entries.length-1;if(r<=o){return tt(e,n.entries[this._reverse?o-r:r])}}else{o=n.nodes.length-1;if(r<=o){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry){return tt(e,i.entry)}t=this._stack=nt(i,t)}continue}}t=this._stack=this._stack.__prev}return F()};var wt=y/4,Ct=y/2,St=y/4;function Et(e){var t=Vt();if(e===null||e===undefined){return t}if(xt(e)){return e}var r=s(e);var o=r.size;if(o===0){return t}Be(o);if(o>0&&o<y){return Nt(0,o,g,null,new Mt(r.toArray()))}return t.withMutations(function(n){n.setSize(o);r.forEach(function(e,t){return n.set(t,e)})})}function xt(e){return!!(e&&e[kt])}e(Et,Ee),Et.of=function(){return this(arguments)},Et.prototype.toString=function(){return this.__toString("List [","]")},Et.prototype.get=function(e,t){e=_(this,e);if(e>=0&&e<this.size){e+=this._origin;var n=Rt(this,e);return n&&n.array[e&O]}return t},Et.prototype.set=function(e,t){return Dt(this,e,t)},Et.prototype.remove=function(e){return!this.has(e)?this:e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1)},Et.prototype.insert=function(e,t){return this.splice(e,0,t)},Et.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=g;this._root=this._tail=null;this.__hash=undefined;this.__altered=true;return this}return Vt()},Et.prototype.push=function(){var n=arguments;var r=this.size;return this.withMutations(function(e){At(e,0,r+n.length);for(var t=0;t<n.length;t++){e.set(r+t,n[t])}})},Et.prototype.pop=function(){return At(this,0,-1)},Et.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){At(e,-n.length);for(var t=0;t<n.length;t++){e.set(t,n[t])}})},Et.prototype.shift=function(){return At(this,1)},Et.prototype.merge=function(){return It(this,undefined,arguments)},Et.prototype.mergeWith=function(e){var t=r.call(arguments,1);return It(this,e,t)},Et.prototype.mergeDeep=function(){return It(this,ht,arguments)},Et.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return It(this,dt(e),t)},Et.prototype.setSize=function(e){return At(this,0,e)},Et.prototype.slice=function(e,t){var n=this.size;if(P(e,t,n)){return this}return At(this,z(e,n),j(t,n))},Et.prototype.__iterator=function(t,e){var n=0;var r=Tt(this,e);return new A(function(){var e=r();return e===Pt?F():I(t,n++,e)})},Et.prototype.__iterate=function(e,t){var n=0;var r=Tt(this,t);var o;while((o=r())!==Pt){if(e(o,n++,this)===false){break}}return n},Et.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;return this}return Nt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash)},Et.isList=xt;var kt="@@__IMMUTABLE_LIST__@@",_t=Et.prototype;function Mt(e,t){this.array=e;this.ownerID=t}_t[kt]=true,_t[v]=_t.remove,_t.setIn=Ye.setIn,_t.deleteIn=_t.removeIn=Ye.removeIn,_t.update=Ye.update,_t.updateIn=Ye.updateIn,_t.mergeIn=Ye.mergeIn,_t.mergeDeepIn=Ye.mergeDeepIn,_t.withMutations=Ye.withMutations,_t.asMutable=Ye.asMutable,_t.asImmutable=Ye.asImmutable,_t.wasAltered=Ye.wasAltered,Mt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:false||this.array.length===0){return this}var r=n>>>t&O;if(r>=this.array.length){return new Mt([],e)}var o=r===0;var i;if(t>0){var a=this.array[r];i=a&&a.removeBefore(e,t-g,n);if(i===a&&o){return this}}if(o&&!i){return this}var c=Ht(this,e);if(!o){for(var l=0;l<r;l++){c.array[l]=undefined}}if(i){c.array[r]=i}return c},Mt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||this.array.length===0){return this}var r=n-1>>>t&O;if(r>=this.array.length){return this}var o;if(t>0){var i=this.array[r];o=i&&i.removeAfter(e,t-g,n);if(o===i&&r===this.array.length-1){return this}}var a=Ht(this,e);a.array.splice(r+1);if(o){a.array[r]=o}return a};var Pt={},zt,jt;function Tt(e,l){var s=e._origin;var u=e._capacity;var i=Ft(u);var a=e._tail;return f(e._root,e._level,0);function f(e,t,n){return t===0?r(e,n):o(e,t,n)}function r(e,t){var n=t===i?a&&a.array:e&&e.array;var r=t>s?0:s-t;var o=u-t;if(o>y){o=y}return function(){if(r===o){return Pt}var e=l?--o:r++;return n&&n[e]}}function o(e,n,r){var o;var i=e&&e.array;var a=r>s?0:s-r>>n;var c=(u-r>>n)+1;if(c>y){c=y}return function(){do{if(o){var e=o();if(e!==Pt){return e}o=null}if(a===c){return Pt}var t=l?--c:a++;o=f(i&&i[t],n-g,r+(t<<n))}while(true)}}}function Nt(e,t,n,r,o,i,a){var c=Object.create(_t);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=false;return c}function Vt(){return zt||(zt=Nt(0,0,g))}function Dt(e,t,n){t=_(e,t);if(t!==t){return e}if(t>=e.size||t<0){return e.withMutations(function(e){t<0?At(e,t).set(0,n):At(e,0,t+1).set(t,n)})}t+=e._origin;var r=e._tail;var o=e._root;var i=C(w);if(t>=Ft(e._capacity)){r=Lt(r,e.__ownerID,0,t,n,i)}else{o=Lt(o,e.__ownerID,e._level,t,n,i)}if(!i.value){return e}if(e.__ownerID){e._root=o;e._tail=r;e.__hash=undefined;e.__altered=true;return e}return Nt(e._origin,e._capacity,e._level,o,r)}function Lt(e,t,n,r,o,i){var a=r>>>n&O;var c=e&&a<e.array.length;if(!c&&o===undefined){return e}var l;if(n>0){var s=e&&e.array[a];var u=Lt(s,t,n-g,r,o,i);if(u===s){return e}l=Ht(e,t);l.array[a]=u;return l}if(c&&e.array[a]===o){return e}S(i);l=Ht(e,t);if(o===undefined&&a===l.array.length-1){l.array.pop()}else{l.array[a]=o}return l}function Ht(e,t){if(t&&e&&t===e.ownerID){return e}return new Mt(e?e.array.slice():[],t)}function Rt(e,t){if(t>=Ft(e._capacity)){return e._tail}if(t<1<<e._level+g){var n=e._root;var r=e._level;while(n&&r>0){n=n.array[t>>>r&O];r-=g}return n}}function At(e,t,n){if(t!==undefined){t=t|0}if(n!==undefined){n=n|0}var r=e.__ownerID||new E;var o=e._origin;var i=e._capacity;var a=o+t;var c=n===undefined?i:n<0?i+n:o+n;if(a===o&&c===i){return e}if(a>=c){return e.clear()}var l=e._level;var s=e._root;var u=0;while(a+u<0){s=new Mt(s&&s.array.length?[undefined,s]:[],r);l+=g;u+=1<<l}if(u){a+=u;o+=u;c+=u;i+=u}var f=Ft(i);var p=Ft(c);while(p>=1<<l+g){s=new Mt(s&&s.array.length?[s]:[],r);l+=g}var h=e._tail;var d=p<f?Rt(e,c-1):p>f?new Mt([],r):h;if(h&&p>f&&a<i&&h.array.length){s=Ht(s,r);var v=s;for(var y=l;y>g;y-=g){var m=f>>>y&O;v=v.array[m]=Ht(v.array[m],r)}v.array[f>>>g&O]=h}if(c<i){d=d&&d.removeAfter(r,0,c)}if(a>=p){a-=p;c-=p;l=g;s=null;d=d&&d.removeBefore(r,0,a)}else if(a>o||p<f){u=0;while(s){var b=a>>>l&O;if(b!==p>>>l&O){break}if(b){u+=(1<<l)*b}l-=g;s=s.array[b]}if(s&&a>o){s=s.removeBefore(r,l,a-u)}if(s&&p<f){s=s.removeAfter(r,l,p-u)}if(u){a-=u;c-=u}}if(e.__ownerID){e.size=c-a;e._origin=a;e._capacity=c;e._level=l;e._root=s;e._tail=d;e.__hash=undefined;e.__altered=true;return e}return Nt(a,c,l,s,d)}function It(e,t,n){var r=[];var o=0;for(var i=0;i<n.length;i++){var a=n[i];var c=s(a);if(c.size>o){o=c.size}if(!u(a)){c=c.map(function(e){return he(e)})}r.push(c)}if(o>e.size){e=e.setSize(o)}return vt(e,t,r)}function Ft(e){return e<y?0:e-1>>>g<<g}function Kt(t){return t===null||t===undefined?Ut():Bt(t)?t:Ut().withMutations(function(n){var e=c(t);Be(e.size);e.forEach(function(e,t){return n.set(t,e)})})}function Bt(e){return Ue(e)&&d(e)}function Wt(e,t,n,r){var o=Object.create(Kt.prototype);o.size=e?e.size:0;o._map=e;o._list=t;o.__ownerID=n;o.__hash=r;return o}function Ut(){return jt||(jt=Wt(ot(),Vt()))}function qt(e,t,n){var r=e._map;var o=e._list;var i=r.get(t);var a=i!==undefined;var c;var l;if(n===b){if(!a){return e}if(o.size>=y&&o.size>=r.size*2){l=o.filter(function(e,t){return e!==undefined&&i!==t});c=l.toKeyedSeq().map(function(e){return e[0]}).flip().toMap();if(e.__ownerID){c.__ownerID=l.__ownerID=e.__ownerID}}else{c=r.remove(t);l=i===o.size-1?o.pop():o.set(i,undefined)}}else{if(a){if(n===o.get(i)[1]){return e}c=r;l=o.set(i,[t,n])}else{c=r.set(t,o.size);l=o.set(o.size,[t,n])}}if(e.__ownerID){e.size=c.size;e._map=c;e._list=l;e.__hash=undefined;return e}return Wt(c,l)}function Yt(e,t){this._iter=e;this._useKeys=t;this.size=e.size}function Gt(e){this._iter=e;this.size=e.size}function Xt(e){this._iter=e;this.size=e.size}function $t(e){this._iter=e;this.size=e.size}function Jt(o){var e=gn(o);e._iter=o;e.size=o.size;e.flip=function(){return o};e.reverse=function(){var e=o.reverse.apply(this);e.flip=function(){return o.reverse()};return e};e.has=function(e){return o.includes(e)};e.includes=function(e){return o.has(e)};e.cacheResult=On;e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return n(t,e,r)!==false},e)};e.__iteratorUncached=function(e,t){if(e===D){var n=o.__iterator(e,t);return new A(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1];e.value[1]=t}return e})}return o.__iterator(e===V?N:V,t)};return e}function Zt(i,a,c){var e=gn(i);e.size=i.size;e.has=function(e){return i.has(e)};e.get=function(e,t){var n=i.get(e,b);return n===b?t:a.call(c,n,e,i)};e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return r(a.call(c,e,t,n),t,o)!==false},e)};e.__iteratorUncached=function(r,e){var o=i.__iterator(D,e);return new A(function(){var e=o.next();if(e.done){return e}var t=e.value;var n=t[0];return I(r,n,a.call(c,t[1],n,i),e)})};return e}function Qt(o,n){var e=gn(o);e._iter=o;e.size=o.size;e.reverse=function(){return o};if(o.flip){e.flip=function(){var e=Jt(o);e.reverse=function(){return o.flip()};return e}}e.get=function(e,t){return o.get(n?e:-1-e,t)};e.has=function(e){return o.has(n?e:-1-e)};e.includes=function(e){return o.includes(e)};e.cacheResult=On;e.__iterate=function(n,e){var r=this;return o.__iterate(function(e,t){return n(e,t,r)},!e)};e.__iterator=function(e,t){return o.__iterator(e,!t)};return e}function en(c,l,s,u){var e=gn(c);if(u){e.has=function(e){var t=c.get(e,b);return t!==b&&!!l.call(s,t,e,c)};e.get=function(e,t){var n=c.get(e,b);return n!==b&&l.call(s,n,e,c)?n:t}}e.__iterateUncached=function(r,e){var o=this;var i=0;c.__iterate(function(e,t,n){if(l.call(s,e,t,n)){i++;return r(e,u?t:i-1,o)}},e);return i};e.__iteratorUncached=function(o,e){var i=c.__iterato