react-quizzes-fork
Version:
React quizz/form builder and delivery solution
2 lines • 1.71 MB
JavaScript
/*! For license information please see 2.4016d8a6.chunk.js.LICENSE.txt */
(this["webpackJsonpreact-quizzes-fork"]=this["webpackJsonpreact-quizzes-fork"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(270)},function(e,t,n){e.exports=n(274)()},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(276),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(195),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";t.__esModule=!0;var r,o=n(126),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"!==("undefined"===typeof t?"undefined":(0,i.default)(t))&&"function"!==typeof t?e:t}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(271)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(306)),o=c(n(310)),i=c(n(126));function c(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 "+("undefined"===typeof t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;(i=new Error(t.replace(/%s/g,(function(){return r[c++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n.n(o),c=n(180),a=n(4),l=n.n(a),u=n(3),s=n.n(u),f=n(22),p=n.n(f),d=n(7),h=n.n(d),v=n(11),m=n.n(v),y=n(5),g=n.n(y),b=n(8),w=n.n(b),M=n(63),O={primaryColor:"#333",secondaryColor:"#E6E6E6"},S=function(e){function t(){return h()(this,t),g()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return w()(t,e),m()(t,[{key:"render",value:function(){var e,n=this.props,r=n.type,o=n.className,i=n.onClick,c=n.style,a=n.primaryColor,u=n.secondaryColor,f=p()(n,["type","className","onClick","style","primaryColor","secondaryColor"]),d=void 0,h=O;if(a&&(h={primaryColor:a,secondaryColor:u||Object(M.c)(a)}),Object(M.d)(r))d=r;else if("string"===typeof r&&!(d=t.get(r,h)))return null;return d?(d&&"function"===typeof d.icon&&(d=s()({},d,{icon:d.icon(h.primaryColor,h.secondaryColor)})),Object(M.b)(d.icon,"svg-"+d.name,s()((e={className:o,onClick:i,style:c},l()(e,"data-icon",d.name),l()(e,"width","1em"),l()(e,"height","1em"),l()(e,"fill","currentColor"),l()(e,"aria-hidden","true"),l()(e,"focusable","false"),e),f))):(Object(M.e)("type should be string or icon definiton, but got "+r),null)}}],[{key:"add",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){e.definitions.set(Object(M.f)(t.name,t.theme),t)}))}},{key:"clear",value:function(){this.definitions.clear()}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O;if(e){var n=this.definitions.get(e);return n&&"function"===typeof n.icon&&(n=s()({},n,{icon:n.icon(t.primaryColor,t.secondaryColor)})),n}}},{key:"setTwoToneColors",value:function(e){var t=e.primaryColor,n=e.secondaryColor;O.primaryColor=t,O.secondaryColor=n||Object(M.c)(t)}},{key:"getTwoToneColors",value:function(){return s()({},O)}}]),t}(r.Component);S.displayName="IconReact",S.definitions=new M.a;var C=S;function z(){return(z=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 E=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){var o=0;for(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=new Set;var x=n(15),_={width:"1em",height:"1em",fill:"currentColor","aria-hidden":!0,focusable:"false"},j=/-fill$/,T=/-o$/,N=/-twotone$/;var L=n(46);function D(e){return C.setTwoToneColors({primaryColor:e})}function A(){return(A=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 P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 H,V=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){var o=0;for(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};C.add.apply(C,function(e){if(Array.isArray(e))return I(e)}(H=Object.keys(c).map((function(e){return c[e]})))||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(H)||function(e,t){if(e){if("string"===typeof e)return I(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)?I(e,t):void 0}}(H)||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.")}()),D("#1890ff");var R,F="outlined";var B=function(e){var t,n=e.className,o=e.type,c=e.component,a=e.viewBox,l=e.spin,u=e.rotate,s=e.tabIndex,f=e.onClick,p=e.children,d=e.theme,h=e.twoToneColor,v=V(e,["className","type","component","viewBox","spin","rotate","tabIndex","onClick","children","theme","twoToneColor"]);Object(x.a)(Boolean(o||c||p),"Icon","Should have `type` prop or `component` prop or `children`.");var m=i()((P(t={},"anticon",!0),P(t,"anticon-".concat(o),Boolean(o)),t),n),y=i()(P({},"anticon-spin",!!l||"loading"===o)),g=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,b=A(A({},_),{className:y,style:g,viewBox:a});a||delete b.viewBox;var w=function(){if(c)return r.createElement(c,b,p);if(p)return Object(x.a)(Boolean(a)||1===r.Children.count(p)&&r.isValidElement(p)&&"use"===r.Children.only(p).type,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",A({},b,{viewBox:a}),p);if("string"===typeof o){var e=o;if(d){var t=function(e){var t=null;return j.test(e)?t="filled":T.test(e)?t="outlined":N.test(e)&&(t="twoTone"),t}(o);Object(x.a)(!t||d===t,"Icon","The icon name '".concat(o,"' already specify a theme '").concat(t,"',")+" the 'theme' prop '".concat(d,"' will be ignored."))}return e=function(e,t){var n=e;return"filled"===t?n+="-fill":"outlined"===t?n+="-o":"twoTone"===t?n+="-twotone":Object(x.a)(!1,"Icon","This icon '".concat(e,"' has unknown theme '").concat(t,"'")),n}(function(e){return e.replace(j,"").replace(T,"").replace(N,"")}(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(x.a)(t===e,"Icon","Icon '".concat(e,"' was a typo and is now deprecated, please use '").concat(t,"' instead.")),t}(e)),R||d||F),r.createElement(C,{className:y,type:e,primaryColor:h,style:g})}},M=s;return void 0===M&&f&&(M=-1),r.createElement(L.a,{componentName:"Icon"},(function(e){return r.createElement("i",A({"aria-label":o&&"".concat(e.icon,": ").concat(o)},v,{tabIndex:M,onClick:f,className:m}),w())}))};B.createFromIconfontCN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,o=void 0===n?{}:n;if("undefined"!==typeof document&&"undefined"!==typeof window&&"function"===typeof document.createElement&&"string"===typeof t&&t.length&&!k.has(t)){var i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),k.add(t),document.body.appendChild(i)}var c=function(e){var t=e.type,n=e.children,i=E(e,["type","children"]),c=null;return e.type&&(c=r.createElement("use",{xlinkHref:"#".concat(t)})),n&&(c=n),r.createElement(U,z({},o,i),c)};return c.displayName="Iconfont",c},B.getTwoToneColor=function(){return C.getTwoToneColors().primaryColor},B.setTwoToneColor=D;var U=t.a=B},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(195),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function c(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,c=null,a=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?c="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(c="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?a="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==c||null!==a){var l=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==c?"\n "+c:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return c})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return c(e)?e:B(e)}function r(e){return a(e)?e:U(e)}function o(e){return l(e)?e:K(e)}function i(e){return c(e)&&!u(e)?e:W(e)}function c(e){return!(!e||!e[f])}function a(e){return!(!e||!e[p])}function l(e){return!(!e||!e[d])}function u(e){return a(e)||l(e)}function s(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=c,n.isKeyed=a,n.isIndexed=l,n.isAssociative=u,n.isOrdered=s,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",v={},m={value:!1},y={value:!1};function g(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function w(){}function M(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 O(e){return void 0===e.size&&(e.size=e.__iterate(C)),e.size}function S(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function C(){return!0}function z(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function E(e,t){return x(e,t,0)}function k(e,t){return x(e,t,t)}function x(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var _,j,T,N="function"===typeof Symbol&&Symbol.iterator,L=N||"@@iterator";function D(e){this.next=e}function A(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 P(){return{value:void 0,done:!0}}function I(e){return!!R(e)}function H(e){return e&&"function"===typeof e.next}function V(e){var t=R(e);return t&&t.call(e)}function R(e){var t=e&&(N&&e[N]||e["@@iterator"]);if("function"===typeof t)return t}function F(e){return e&&"number"===typeof e.length}function B(e){return null===e||void 0===e?$():c(e)?e.toSeq():function(e){var t=ee(e)||"object"===typeof e&&new q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function U(e){return null===e||void 0===e?$().toKeyedSeq():c(e)?a(e)?e.toSeq():e.fromEntrySeq():J(e)}function K(e){return null===e||void 0===e?$():c(e)?a(e)?e.entrySeq():e.toIndexedSeq():X(e)}function W(e){return(null===e||void 0===e?$():c(e)?a(e)?e.entrySeq():e:X(e)).toSetSeq()}function Y(e){this._array=e,this.size=e.length}function q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Q(e){this._iterable=e,this.size=e.length||e.size}function G(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function $(){return _||(_=new Y([]))}function J(e){var t=Array.isArray(e)?new Y(e).fromEntrySeq():H(e)?new G(e).fromEntrySeq():I(e)?new Q(e).fromEntrySeq():"object"===typeof e?new q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function X(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return F(e)?new Y(e):H(e)?new G(e):I(e)?new Q(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,c=0;c<=i;c++){var a=o[n?i-c:c];if(!1===t(a[1],r?a[0]:c,e))return c+1}return c}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,c=0;return new D((function(){var e=o[n?i-c:c];return c++>i?{value:void 0,done:!0}:A(t,r?e[0]:c-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,K(n).map((function(r,o){return e(t,r,o,n)}))):ie(n)?t.call(o,r,U(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?K(e).map(oe).toList():ie(e)?U(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ce(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!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function ae(e,t){if(e===t)return!0;if(!c(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)||l(e)!==l(t)||s(e)!==s(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(s(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ce(o[1],e)&&(n||ce(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 i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ce(t,e.get(r,v)):!ce(e.get(r,v),t))return f=!1,!1}));return f&&e.size===p}function le(e,t){if(!(this instanceof le))return new le(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(j)return j;j=this}}function ue(e,t){if(!e)throw new Error(t)}function se(e,t,n){if(!(this instanceof se))return new se(e,t,n);if(ue(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(T)return T;T=this}}function fe(){throw TypeError("Abstract")}function pe(){}function de(){}function he(){}D.prototype.toString=function(){return"[Iterator]"},D.KEYS=0,D.VALUES=1,D.ENTRIES=2,D.prototype.inspect=D.prototype.toSource=function(){return this.toString()},D.prototype[L]=function(){return this},t(B,n),B.of=function(){return B(arguments)},B.prototype.toSeq=function(){return this},B.prototype.toString=function(){return this.__toString("Seq {","}")},B.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},B.prototype.__iterate=function(e,t){return te(this,e,t,!0)},B.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(U,B),U.prototype.toKeyedSeq=function(){return this},t(K,B),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return te(this,e,t,!1)},K.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t(W,B),W.of=function(){return W(arguments)},W.prototype.toSetSeq=function(){return this},B.isSeq=Z,B.Keyed=U,B.Set=W,B.Indexed=K,B.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t(Y,K),Y.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},Y.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},Y.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new D((function(){return o>r?{value:void 0,done:!0}:A(e,o,n[t?r-o++:o++])}))},t(q,U),q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},q.prototype.has=function(e){return this._object.hasOwnProperty(e)},q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var c=r[t?o-i:i];if(!1===e(n[c],c,this))return i+1}return i},q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new D((function(){var c=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:A(e,c,n[c])}))},q.prototype[h]=!0,t(Q,K),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._iterable),r=0;if(H(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._iterable);if(!H(n))return new D(P);var r=0;return new D((function(){var t=n.next();return t.done?t:A(e,r++,t.value)}))},t(G,K),G.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var c=n.value;if(o[i]=c,!1===e(c,i++,this))break}return i},G.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new D((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return A(e,o,r[o++])}))},t(le,K),le.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},le.prototype.get=function(e,t){return this.has(e)?this._value:t},le.prototype.includes=function(e){return ce(this._value,e)},le.prototype.slice=function(e,t){var n=this.size;return z(e,t,n)?this:new le(this._value,k(t,n)-E(e,n))},le.prototype.reverse=function(){return this},le.prototype.indexOf=function(e){return ce(this._value,e)?0:-1},le.prototype.lastIndexOf=function(e){return ce(this._value,e)?this.size:-1},le.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},le.prototype.__iterator=function(e,t){var n=this,r=0;return new D((function(){return r<n.size?A(e,r++,n._value):{value:void 0,done:!0}}))},le.prototype.equals=function(e){return e instanceof le?ce(this._value,e._value):ae(e)},t(se,K),se.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},se.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},se.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},se.prototype.slice=function(e,t){return z(e,t,this.size)?this:(e=E(e,this.size),(t=k(t,this.size))<=e?new se(0,0):new se(this.get(e,this._end),this.get(t,this._end),this._step))},se.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},se.prototype.lastIndexOf=function(e){return this.indexOf(e)},se.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},se.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 D((function(){var c=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:A(e,i++,c)}))},se.prototype.equals=function(e){return e instanceof se?this._start===e._start&&this._end===e._end&&this._step===e._step:ae(this,e)},t(fe,n),t(pe,fe),t(de,fe),t(he,fe),fe.Keyed=pe,fe.Indexed=de,fe.Set=he;var ve="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function ye(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>ze?function(e){var t=xe[e];return void 0===t&&(t=ge(e),ke===Ee&&(ke=0,xe={}),ke++,xe[e]=t),t}(e):ge(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Oe&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Ce]))return t;if(!Me){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Se,1073741824&Se&&(Se=0),Oe)be.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Me)Object.defineProperty(e,Ce,{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[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(e);if("function"===typeof e.toString)return ge(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ge(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return me(t)}var be,we=Object.isExtensible,Me=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Oe="function"===typeof WeakMap;Oe&&(be=new WeakMap);var Se=0,Ce="__immutablehash__";"function"===typeof Symbol&&(Ce=Symbol(Ce));var ze=16,Ee=255,ke=0,xe={};function _e(e){ue(e!==1/0,"Cannot perform this action with an infinite size.")}function je(e){return null===e||void 0===e?Ke():Te(e)&&!s(e)?e:Ke().withMutations((function(t){var n=r(e);_e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Te(e){return!(!e||!e[Le])}t(je,pe),je.prototype.toString=function(){return this.__toString("Map {","}")},je.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},je.prototype.set=function(e,t){return We(this,e,t)},je.prototype.setIn=function(e,t){return this.updateIn(e,v,(function(){return t}))},je.prototype.remove=function(e){return We(this,e,v)},je.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return v}))},je.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},je.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===v,c=n.next();if(c.done){var a=i?r:t,l=o(a);return l===a?t:l}ue(i||t&&t.set,"invalid keyPath");var u=c.value,s=i?v:t.get(u,v),f=e(s,n,r,o);return f===s?t:f===v?t.remove(u):(i?Ke():t).set(u,f)}(this,Gt(e),t,n);return r===v?void 0:r},je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ke()},je.prototype.merge=function(){return Ge(this,void 0,arguments)},je.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ge(this,t,n)},je.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ke(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},je.prototype.mergeDeep=function(){return Ge(this,Ze,arguments)},je.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ge(this,$e(t),n)},je.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ke(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},je.prototype.sort=function(e){return Mt(Ht(this,e))},je.prototype.sortBy=function(e,t){return Mt(Ht(this,t,e))},je.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},je.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},je.prototype.asImmutable=function(){return this.__ensureOwner()},je.prototype.wasAltered=function(){return this.__altered},je.prototype.__iterator=function(e,t){return new Re(this,e,t)},je.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},je.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ue(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},je.isMap=Te;var Ne,Le="@@__IMMUTABLE_MAP__@@",De=je.prototype;function Ae(e,t){this.ownerID=e,this.entries=t}function Pe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ie(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function He(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Re(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Be(e._root)}function Fe(e,t){return A(e,t[0],t[1])}function Be(e,t){return{node:e,index:0,__prev:t}}function Ue(e,t,n,r){var o=Object.create(De);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ke(){return Ne||(Ne=Ue(0))}function We(e,t,n){var r,o;if(e._root){var i=g(m),c=g(y);if(r=Ye(e._root,e.__ownerID,0,void 0,t,n,i,c),!c.value)return e;o=e.size+(i.value?n===v?-1:1:0)}else{if(n===v)return e;o=1,r=new Ae(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ue(o,r):Ke()}function Ye(e,t,n,r,o,i,c,a){return e?e.update(t,n,r,o,i,c,a):i===v?e:(b(a),b(c),new Ve(t,r,[o,i]))}function qe(e){return e.constructor===Ve||e.constructor===He}function Qe(e,t,n,r,o){if(e.keyHash===r)return new He(t,r,[e.entry,o]);var i,c=31&(0===n?e.keyHash:e.keyHash>>>n),a=31&(0===n?r:r>>>n);return new Pe(t,1<<c|1<<a,c===a?[Qe(e,t,n+5,r,o)]:(i=new Ve(t,r,o),c<a?[e,i]:[i,e]))}function Ge(e,t,n){for(var o=[],i=0;i<n.length;i++){var a=n[i],l=r(a);c(a)||(l=l.map((function(e){return re(e)}))),o.push(l)}return Je(e,t,o)}function Ze(e,t,n){return e&&e.mergeDeep&&c(t)?e.mergeDeep(t):ce(e,t)?e:t}function $e(e){return function(t,n,r){if(t&&t.mergeDeepWith&&c(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ce(t,o)?t:o}}function Je(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,v,(function(e){return e===v?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 Xe(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:M(e);return o[t]=n,o}De[Le]=!0,De.delete=De.remove,De.removeIn=De.deleteIn,Ae.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,c=o.length;i<c;i++)if(ce(n,o[i][0]))return o[i][1];return r},Ae.prototype.update=function(e,t,n,r,o,i,c){for(var a=o===v,l=this.entries,u=0,s=l.length;u<s&&!ce(r,l[u][0]);u++);var f=u<s;if(f?l[u][1]===o:a)return this;if(b(c),(a||!f)&&b(i),!a||1!==l.length){if(!f&&!a&&l.length>=tt)return function(e,t,n,r){e||(e=new w);for(var o=new Ve(e,ye(n),[n,r]),i=0;i<t.length;i++){var c=t[i];o=o.update(e,0,void 0,c[0],c[1])}return o}(e,l,r,o);var p=e&&e===this.ownerID,d=p?l:M(l);return f?a?u===s-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ae(e,d)}},Pe.prototype.get=function(e,t,n,r){void 0===t&&(t=ye(n));var o=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0===(i&o)?r:this.nodes[Xe(i&o-1)].get(e+5,t,n,r)},Pe.prototype.update=function(e,t,n,r,o,i,c){void 0===n&&(n=ye(r));var a=31&(0===t?n:n>>>t),l=1<<a,u=this.bitmap,s=0!==(u&l);if(!s&&o===v)return this;var f=Xe(u&l-1),p=this.nodes,d=s?p[f]:void 0,h=Ye(d,e,t+5,n,r,o,i,c);if(h===d)return this;if(!s&&h&&p.length>=nt)return function(e,t,n,r,o){for(var i=0,c=new Array(32),a=0;0!==n;a++,n>>>=1)c[a]=1&n?t[i++]:void 0;return c[r]=o,new Ie(e,i+1,c)}(e,p,u,a,h);if(s&&!h&&2===p.length&&qe(p[1^f]))return p[1^f];if(s&&h&&1===p.length&&qe(h))return h;var m=e&&e===this.ownerID,y=s?h?u:u^l:u|l,g=s?h?et(p,f,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,c=0;c<r;c++)c===t&&(i=1),o[c]=e[c+i];return o}(p,f,m):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),c=0,a=0;a<o;a++)a===t?(i[a]=n,c=-1):i[a]=e[a+c];return i}(p,f,h,m);return m?(this.bitmap=y,this.nodes=g,this):new Pe(e,y,g)},Ie.prototype.get=function(e,t,n,r){void 0===t&&(t=ye(n));var o=31&(0===e?t:t>>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Ie.prototype.update=function(e,t,n,r,o,i,c){void 0===n&&(n=ye(r));var a=31&(0===t?n:n>>>t),l=o===v,u=this.nodes,s=u[a];if(l&&!s)return this;var f=Ye(s,e,t+5,n,r,o,i,c);if(f===s)return this;var p=this.count;if(s){if(!f&&--p<rt)return function(e,t,n,r){for(var o=0,i=0,c=new Array(n),a=0,l=1,u=t.length;a<u;a++,l<<=1){var s=t[a];void 0!==s&&a!==r&&(o|=l,c[i++]=s)}return new Pe(e,o,c)}(e,u,p,a)}else p++;var d=e&&e===this.ownerID,h=et(u,a,f,d);return d?(this.count=p,this.nodes=h,this):new Ie(e,p,h)},He.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,c=o.length;i<c;i++)if(ce(n,o[i][0]))return o[i][1];return r},He.prototype.update=function(e,t,n,r,o,i,c){void 0===n&&(n=ye(r));var a=o===v;if(n!==this.keyHash)return a?this:(b(c),b(i),Qe(this,e,t,n,[r,o]));for(var l=this.entries,u=0,s=l.length;u<s&&!ce(r,l[u][0]);u++);var f=u<s;if(f?l[u][1]===o:a)return this;if(b(c),(a||!f)&&b(i),a&&2===s)return new Ve(e,this.keyHash,l[1^u]);var p=e&&e===this.ownerID,d=p?l:M(l);return f?a?u===s-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new He(e,this.keyHash,d)},Ve.prototype.get=function(e,t,n,r){return ce(n,this.entry[0])?this.entry[1]:r},Ve.prototype.update=function(e,t,n,r,o,i,c){var a=o===v,l=ce(r,this.entry[0]);return(l?o===this.entry[1]:a)?this:(b(c),a?void b(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ve(e,this.keyHash,[r,o]):(b(i),Qe(this,e,t,ye(r),[r,o])))},Ae.prototype.iterate=He.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Pe.prototype.iterate=Ie.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ve.prototype.iterate=function(e,t){return e(this.entry)},t(Re,D),Re.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 Fe(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Fe(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Fe(e,i.entry);t=this._stack=Be(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,rt=8;function ot(e){var t=ht();if(null===e||void 0===e)return t;if(it(e))return e;var n=o(e),r=n.size;return 0===r?t:(_e(r),r>0&&r<32?dt(0,r,5,null,new lt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[ct])}t(ot,de),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=yt(this,e+=this._origin);return n&&n.array[31&e]}return t},ot.prototype.set=function(e,t){return function(e,t,n){if((t=S(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?gt(e,t).set(0,n):gt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=g(y);return t>=wt(e._capacity)?r=vt(r,e.__ownerID,0,t,n,i):o=vt(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):dt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},ot.prototype.pop=function(){return gt(this,0,-1)},ot.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){gt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},ot.prototype.shift=function(){return gt(this,1)},ot.prototype.merge=function(){return bt(this,void 0,arguments)},ot.prototype.mergeWith=function(t){var n=e.call(arguments,1);return bt(this,t,n)},ot.prototype.mergeDeep=function(){return bt(this,Ze,arguments)},ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return bt(this,$e(t),n)},ot.prototype.setSize=function(e){return gt(this,0,e)},ot.prototype.slice=function(e,t){var n=this.size;return z(e,t,n)?this:gt(this,E(e,n),k(t,n))},ot.prototype.__iterator=function(e,t){var n=0,r=pt(this,t);return new D((function(){var t=r();return t===ft?{value:void 0,done:!0}:A(e,n++,t)}))},ot.prototype.__iterate=function(e,t){for(var n,r=0,o=pt(this,t);(n=o())!==ft&&!1!==e(n,r++,this););return r},ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},ot.isList=it;var ct="@@__IMMUTABLE_LIST__@@",at=ot.prototype;function lt(e,t){this.array=e,this.ownerID=t}at[ct]=!0,at.delete=at.remove,at.setIn=De.setIn,at.deleteIn=at.removeIn=De.removeIn,at.update=De.update,at.updateIn=De.updateIn,at.mergeIn=De.mergeIn,at.mergeDeepIn=De.mergeDeepIn,at.withMutations=De.withMutations,at.asMutable=De.asMutable,at.asImmutable=De.asImmutable,at.wasAltered=De.wasAltered,lt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new lt([],e);var o,i=0===r;if(t>0){var c=this.array[r];if((o=c&&c.removeBefore(e,t-5,n))===c&&i)return this}if(i&&!o)return this;var a=mt(this,e);if(!i)for(var l=0;l<r;l++)a.array[l]=void 0;return o&&(a.array[r]=o),a},lt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var c=mt(this,e);return c.array.splice(o+1),r&&(c.array[o]=r),c};var ut,st,ft={};function pt(e,t){var n=e._origin,r=e._capacity,o=wt(r),i=e._tail;return c(e._root,e._level,0);function c(e,a,l){return 0===a?function(e,c){var a=c===o?i&&i.array:e&&e.array,l=c>n?0:n-c,u=r-c;return u>32&&(u=32),function(){if(l===u)return ft;var e=t?--u:l++;return a&&a[e]}}(e,l):function(e,o,i){var a,l=e&&e.array,u=i>n?0:n-i>>o,s=1+(r-i>>o);return s>32&&(s=32),function(){for(;;){if(a){var e=a();if(e!==ft)return e;a=null}if(u===s)return ft;var n=t?--s:u++;a=c(l&&l[n],o-5,i+(n<<o))}}}(e,a,l)}}function dt(e,t,n,r,o,i,c){var a=Object.create(at);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=o,a.__ownerID=i,a.__hash=c,a.__altered=!1,a}function ht(){return ut||(ut=dt(0,0,5))}function vt(e,t,n,r,o,i){var c,a=r>>>n&31,l=e&&a<e.array.length;if(!l&&void 0===o)return e;if(n>0){var u=e&&e.array[a],s=vt(u,t,n-5,r,o,i);return s===u?e:((c=mt(e,t)).array[a]=s,c)}return l&&e.array[a]===o?e:(b(i),c=mt(e,t),void 0===o&&a===c.array.length-1?c.array.pop():c.array[a]=o,c)}function mt(e,t){return t&&e&&t===e.ownerID?e:new lt(e?e.array.slice():[],t)}function yt(e,t){if(t>=wt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function gt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,i=e._capacity,c=o+t,a=void 0===n?i:n<0?i+n:o+n;if(c===o&&a===i)return e;if(c>=a)return e.clear();for(var l=e._level,u=e._root,s=0;c+s<0;)u=new lt(u&&u.array.length?[void 0,u]:[],r),s+=1<<(l+=5);s&&(c+=s,o+=s,a+=s,i+=s);for(var f=wt(i),p=wt(a);p>=1<<l+5;)u=new lt(u&&u.array.length?[u]:[],r),l+=5;var d=e._tail,h=p<f?yt(e,a-1):p>f?new lt([],r):d;if(d&&p>f&&c<i&&d.array.length){for(var v=u=mt(u,r),m=l;m>5;m-=5){var y=f>>>m&31;v=v.array[y]=mt(v.array[y],r)}v.array[f>>>5&31]=d}if(a<i&&(h=h&&h.removeAfter(r,0,a)),c>=p)c-=p,a-=p,l=5,u=null,h=h&&h.removeBefore(r,0,c);else if(c>o||p<f){for(s=0;u;){var g=c>>>l&31;if(g!==p>>>l&31)break;g&&(s+=(1<<l)*g),l-=5,u=u.array[g]}u&&c>o&&(u=u.removeBefore(r,l,c-s)),u&&p<f&&(u=u.removeAfter(r,l,p-s)),s&&(c-=s,a-=s)}return e.__ownerID?(e.size=a-c,e._origin=c,e._capacity=a,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):dt(c,a,l,u,h)}function bt(e,t,n){for(var r=[],i=0,a=0;a<n.length;a++){var l=n[a],u=o(l);u.size>i&&(i=u.size),c(l)||(u=u.map((function(e){return re(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),Je(e,t,r)}function wt(e){return e<32?0:e-1>>>5<<5}function Mt(e){return null===e||void 0===e?Ct():Ot(e)?e:Ct().withMutations((function(t){var n=r(e);_e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ot(e){return Te(e)&&s(e)}function St(e,t,n,r){var o=Object.create(Mt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ct(){return st||(st=St(Ke(),ht()))}function zt(e,t,n){var r,o,i=e._map,c=e._list,a=i.get(t),l=void 0!==a;if(n===v){if(!l)return e;c.size>=32&&c.size>=2*i.size?(r=(o=c.filter((function(e,t){return void 0!==e&&a!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=a===c.size-1?c.pop():c.set(a,void 0))}else if(l){if(n===c.get(a)[1])return e;r=i,o=c.set(a,[t,n])}else r=i.set(t,c.size),o=c.set(c.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):St(r,o)}function Et(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function kt(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(e){var t=Yt(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=qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new D((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(1===t?0:1,n)},t}function Tt(e,t,n){var r=Yt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,v);return i===v?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,c){return!1!==r(t.call(n,e,o,c),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new D((function(){var o=i.next();if(o.done)return o;var c=o.value,a=c[0];return A(r,a,t.call(n,c[1],a,e),o)}))},r}function Nt(e,t){var n=Yt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=jt(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=qt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Lt(e,t,n,r){var o=Yt(e);return r&&(o.has=function(r){var o=e.get(r,v);return o!==v&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,v);return i!==v&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var c=this,a=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return a++,o(e,r?i:a-1,c)}),i),a},o.__iteratorUncached=function(o,i){var c=e.__iterator(2,i),a=0;return new D((function(){for(;;){var i=c.next();if(i.done)return i;var l=i.value,u=l[0],s=l[1];if(t.call(n,s,u,e))return A(o,r?u:a++,s,i)}}))},o}function Dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),z(t,n,o))return e;var i=E(t,o),c=k(n,o);if(i!==i||c!==c)return Dt(e.toSeq().cacheResult(),t,n,r);var a,l=c-i;l===l&&(a=l<0?0:l);var u=Yt(e);return u.size=0===a?a:e.size&&a||void 0,!r&&Z(e)&&a>=0&&(u.get=function(t,n){return(t=S(this,t))>=0&&t<a?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var c=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=c++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==a})),u},u.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);var o=0!==a&&e.__iterator(t,n),c=0,l=0;return new D((function(){for(;c++<i;)o.next();if(++l>a)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:A(t,l-1,0===t?void 0:e.value[1],e)}))},u}function At(e,t,n,r){var o=Yt(e);return o.__iterateUncached=function(o,i){var c=this;if(i)return this.cacheResult().__iterate(o,i);var a=!0,l=0;return e.__iterate((function(e,i,u){if(!a||!(a=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,c)})),l},o.__iteratorUncached=function(o,i){var c=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(2,i),l=!0,u=0;return new D((function(){var e,i,s;do{if((e=a.next()).done)return r||1===o?e:A(o,u++,0===o?void 0:e.value[1],e);var f=e.value;i=f[0],s=f[1],l&&(l=t.call(n,s,i,c))}while(l);return 2===o?e:A(o,i,s,e)}))},o}function Pt(e,t){var n=a(e),o=[e].concat(t).map((function(e){return c(e)?n&&(e=r(e)):e=n?J(e):X(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&a(i)||l(e)&&l(i))return i}var u=new Y(o);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function It(e,t,n){var r=Yt(e);return r.__iterateUncached=function(r,o){var i=0,a=!1;return function e(l,u){var s=this;l.__iterate((function(o,l){return(!t||u<t)&&c(o)?e(o,u+1):!1===r(o,n?l:i++,s)&&(a=!0),!a}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),a=[],l=0;return new D((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(a.length<t)||!c(u))return n?e:A(r,l++,u,e);a.push(i),i=u.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Ht(e,t,n){t||(t=Qt);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?U(i):l(e)?K(i):W(i)}function Vt(e,t,n){if(t||(t=Qt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Rt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Rt(t,e,n)?n:e}))}function Rt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function Ft(e,t,r){var o=Yt(e);return o.size=new Y(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),V(o?e.reverse():e)})),c=0,a=!1;return new D((function(){var n;return a||(n=i.map((function(e){return e.next()})),a=n.some((function(e){return e.done}))),a?{value:void 0,done:!0}:A(e,c++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Bt(e,t){return Z(e)?t:e.constructor(t)}function Ut(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Kt(e){return _e(e.size),O(e)}function Wt(e){return a(e)?r:l(e)?o:i}function Yt(e){return Object.create((a(e)?U:l(e)?K:W).prototype)}function qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):B.prototype.cacheResult.call(this)}function Qt(e,t){return e>t?1:e<t?-1:0}function Gt(e){var t=V(e);if(!t){if(!F(e))throw new TypeError("Expected iterable or array-like: "+e);t=V(n(e))}return t}function Zt(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var c=Object.keys(e);!function(e,t){try{t.forEach(en.bind(void 0,e))}catch(n){}}(o,c),o.size=c.length,o._name=t,o._keys=c,o._defaultValues=e}this._map=je(i)},o=r.prototype=Object.create($t);return o.constructor=r,r}t(Mt,je),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Mt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ct()},Mt.prototype.set=function(e,t){return zt(this,e,t)},Mt.prototype.remove=function(e){return zt(this,e,v)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Mt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Mt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?St(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Mt.isOrderedMap=Ot,Mt.prototype[h]=!0,Mt.prototype.delete=Mt.prototype.remove,t(Et,U),Et.prototype.get=function(e,t){return this._iter.get(e,t)},Et.prototype.has=function(e){return this._iter.has(e)},Et.prototype.valueSeq=function(){return this._iter.valueSeq()},Et.prototype.reverse=function(){var e=this,t=Nt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Et.prototype.map=function(e,t){var n=this,r=Tt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Et.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Kt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Et.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Kt(this):0;return new D((function(){var o=n.next();return o.done?o:A(e,t?--r:r++,o.value,o)}))},Et.prototype[h]=!0,t(kt,K),kt.prototype.includes=function(