🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

netlify-cms-widget-number

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-cms-widget-number - npm Package Compare versions

Comparing version

to
2.3.0

dist/esm/index.js

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.3.0](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-number/compare/netlify-cms-widget-number@2.2.0...netlify-cms-widget-number@2.3.0) (2019-03-22)
### Features
* add ES module builds ([#2215](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-number/issues/2215)) ([d142b32](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-number/commit/d142b32))
# [2.2.0](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-number/compare/netlify-cms-widget-number@2.2.0-beta.0...netlify-cms-widget-number@2.2.0) (2019-03-22)

@@ -8,0 +19,0 @@

2

dist/netlify-cms-widget-number.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("netlify-cms-ui-default")):"function"==typeof define&&define.amd?define("NetlifyCmsWidgetNumber",["prop-types","react","netlify-cms-ui-default"],e):"object"==typeof exports?exports.NetlifyCmsWidgetNumber=e(require("prop-types"),require("react"),require("netlify-cms-ui-default")):t.NetlifyCmsWidgetNumber=e(t.NetlifyCmsDefaultExports.PropTypes,t.React,t.NetlifyCmsUiDefault)}(window,function(t,e,r){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";var n=r(4),i="<<anonymous>>",o={listOf:function(t){return f(t,"List",n.List.isList)},mapOf:function(t,e){return c(t,e,"Map",n.Map.isMap)},orderedMapOf:function(t,e){return c(t,e,"OrderedMap",n.OrderedMap.isOrderedMap)},setOf:function(t){return f(t,"Set",n.Set.isSet)},orderedSetOf:function(t){return f(t,"OrderedSet",n.OrderedSet.isOrderedSet)},stackOf:function(t){return f(t,"Stack",n.Stack.isStack)},iterableOf:function(t){return f(t,"Iterable",n.Iterable.isIterable)},recordOf:function(t){return s(function(e,r,i,o,s){for(var a=arguments.length,f=Array(a>5?a-5:0),c=5;c<a;c++)f[c-5]=arguments[c];var h=e[r];if(!(h instanceof n.Record)){var p=u(h),_=o;return new Error("Invalid "+_+" `"+s+"` of type `"+p+"` supplied to `"+i+"`, expected an Immutable.js Record.")}for(var l in t){var v=t[l];if(v){var y=h.toObject(),d=v.apply(void 0,[y,l,i,o,s+"."+l].concat(f));if(d)return d}}})},shape:p,contains:p,mapContains:function(t){return h(t,"Map",n.Map.isMap)},list:a("List",n.List.isList),map:a("Map",n.Map.isMap),orderedMap:a("OrderedMap",n.OrderedMap.isOrderedMap),set:a("Set",n.Set.isSet),orderedSet:a("OrderedSet",n.OrderedSet.isOrderedSet),stack:a("Stack",n.Stack.isStack),seq:a("Seq",n.Seq.isSeq),record:a("Record",function(t){return t instanceof n.Record}),iterable:a("Iterable",n.Iterable.isIterable)};function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":t instanceof n.Iterable?"Immutable."+t.toSource().split(" ")[0]:e}function s(t){function e(e,r,n,o,u,s){for(var a=arguments.length,f=Array(a>6?a-6:0),c=6;c<a;c++)f[c-6]=arguments[c];return s=s||n,o=o||i,null!=r[n]?t.apply(void 0,[r,n,o,u,s].concat(f)):e?new Error("Required "+u+" `"+s+"` was not specified in `"+o+"`."):void 0}var r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r}function a(t,e){return s(function(r,n,i,o,s){var a=r[n];if(!e(a)){var f=u(a);return new Error("Invalid "+o+" `"+s+"` of type `"+f+"` supplied to `"+i+"`, expected `"+t+"`.")}return null})}function f(t,e,r){return s(function(n,i,o,s,a){for(var f=arguments.length,c=Array(f>5?f-5:0),h=5;h<f;h++)c[h-5]=arguments[h];var p=n[i];if(!r(p)){var _=s,l=u(p);return new Error("Invalid "+_+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected an Immutable.js "+e+".")}if("function"!=typeof t)return new Error("Invalid typeChecker supplied to `"+o+"` for propType `"+a+"`, expected a function.");for(var v=p.toArray(),y=0,d=v.length;y<d;y++){var m=t.apply(void 0,[v,y,o,s,a+"["+y+"]"].concat(c));if(m instanceof Error)return m}})}function c(t,e,r,n){return s(function(){for(var i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];return f(t,r,n).apply(void 0,o)||e&&(a=e,s(function(t,e,r,n,i){for(var o=arguments.length,u=Array(o>5?o-5:0),s=5;s<o;s++)u[s-5]=arguments[s];var f=t[e];if("function"!=typeof a)return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+r+"` for propType `"+i+"`, expected a function.");for(var c=f.keySeq().toArray(),h=0,p=c.length;h<p;h++){var _=a.apply(void 0,[c,h,r,n,i+" -> key("+c[h]+")"].concat(u));if(_ instanceof Error)return _}})).apply(void 0,o);var a})}function h(t){var e=void 0===arguments[1]?"Iterable":arguments[1],r=void 0===arguments[2]?n.Iterable.isIterable:arguments[2];return s(function(n,i,o,s,a){for(var f=arguments.length,c=Array(f>5?f-5:0),h=5;h<f;h++)c[h-5]=arguments[h];var p=n[i];if(!r(p)){var _=u(p);return new Error("Invalid "+s+" `"+a+"` of type `"+_+"` supplied to `"+o+"`, expected an Immutable.js "+e+".")}var l=p.toObject();for(var v in t){var y=t[v];if(y){var d=y.apply(void 0,[l,v,o,s,a+"."+v].concat(c));if(d)return d}}})}function p(t){return h(t)}t.exports=o},function(t,e){t.exports=r},function(t,e,r){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return u(t)?t:H(t)}function n(t){return s(t)?t:G(t)}function i(t){return a(t)?t:F(t)}function o(t){return u(t)&&!f(t)?t:Y(t)}function u(t){return!(!t||!t[h])}function s(t){return!(!t||!t[p])}function a(t){return!(!t||!t[_])}function f(t){return s(t)||a(t)}function c(t){return!(!t||!t[l])}e(n,r),e(i,r),e(o,r),r.isIterable=u,r.isKeyed=s,r.isIndexed=a,r.isAssociative=f,r.isOrdered=c,r.Keyed=n,r.Indexed=i,r.Set=o;var h="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",_="@@__IMMUTABLE_INDEXED__@@",l="@@__IMMUTABLE_ORDERED__@@",v=5,y=1<<v,d=y-1,m={},g={value:!1},w={value:!1};function S(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function b(){}function z(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function q(t){return void 0===t.size&&(t.size=t.__iterate(M)),t.size}function E(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?q(t)+e:e}function M(){return!0}function O(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function x(t,e){return k(t,e,0)}function D(t,e){return k(t,e,e)}function k(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var A=0,R=1,j=2,C="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",U=C||T;function N(t){this.next=t}function K(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function L(){return{value:void 0,done:!0}}function W(t){return!!V(t)}function P(t){return t&&"function"==typeof t.next}function B(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(C&&t[C]||t[T]);if("function"==typeof e)return e}function J(t){return t&&"number"==typeof t.length}function H(t){return null==t?ot():u(t)?t.toSeq():function(t){var e=at(t)||"object"==typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function G(t){return null==t?ot().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():ut(t)}function F(t){return null==t?ot():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():st(t)}function Y(t){return(null==t?ot():u(t)?s(t)?t.entrySeq():t:st(t)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=A,N.VALUES=R,N.ENTRIES=j,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[U]=function(){return this},e(H,r),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(t,e){return ft(this,t,e,!0)},H.prototype.__iterator=function(t,e){return ct(this,t,e,!0)},e(G,H),G.prototype.toKeyedSeq=function(){return this},e(F,H),F.of=function(){return F(arguments)},F.prototype.toIndexedSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq [","]")},F.prototype.__iterate=function(t,e){return ft(this,t,e,!1)},F.prototype.__iterator=function(t,e){return ct(this,t,e,!1)},e(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},H.isSeq=it,H.Keyed=G,H.Set=Y,H.Indexed=F;var Q,X,Z,$="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function rt(t){this._iterable=t,this.size=t.length||t.size}function nt(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[$])}function ot(){return Q||(Q=new tt([]))}function ut(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():P(t)?new nt(t).fromEntrySeq():W(t)?new rt(t).fromEntrySeq():"object"==typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=at(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function at(t){return J(t)?new tt(t):P(t)?new nt(t):W(t)?new rt(t):void 0}function ft(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[r?o-u:u];if(!1===e(s[1],n?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function ct(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new N(function(){var t=i[r?o-u:u];return u++>o?{value:void 0,done:!0}:K(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function ht(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,F(r).map(function(n,i){return t(e,n,i,r)})):_t(r)?e.call(i,n,G(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):pt(t)}function pt(t){return Array.isArray(t)?F(t).map(pt).toList():_t(t)?G(t).map(pt).toMap():t}function _t(t){return t&&(t.constructor===Object||void 0===t.constructor)}function lt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function vt(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!f(t);if(c(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&lt(i[1],t)&&(r||lt(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var h=!0,p=e.__iterate(function(e,n){if(r?!t.has(e):i?!lt(e,t.get(n,m)):!lt(t.get(n,m),e))return h=!1,!1});return h&&t.size===p}function yt(t,e){if(!(this instanceof yt))return new yt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(X)return X;X=this}}function dt(t,e){if(!t)throw new Error(e)}function mt(t,e,r){if(!(this instanceof mt))return new mt(t,e,r);if(dt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Z)return Z;Z=this}}function gt(){throw TypeError("Abstract")}function wt(){}function St(){}function It(){}H.prototype[$]=!0,e(tt,F),tt.prototype.get=function(t,e){return this.has(t)?this._array[E(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},tt.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new N(function(){return i>n?{value:void 0,done:!0}:K(t,i,r[e?n-i++:i++])})},e(et,G),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(!1===t(r[u],u,this))return o+1}return o},et.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new N(function(){var u=n[e?i-o:o];return o++>i?{value:void 0,done:!0}:K(t,u,r[u])})},et.prototype[l]=!0,e(rt,F),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=B(r),i=0;if(P(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,i++,this););return i},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=B(r);if(!P(n))return new N(L);var i=0;return new N(function(){var e=n.next();return e.done?e:K(t,i++,e.value)})},e(nt,F),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var u=r.value;if(i[o]=u,!1===t(u,o++,this))break}return o},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new N(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return K(t,i,n[i++])})},e(yt,F),yt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},yt.prototype.get=function(t,e){return this.has(t)?this._value:e},yt.prototype.includes=function(t){return lt(this._value,t)},yt.prototype.slice=function(t,e){var r=this.size;return O(t,e,r)?this:new yt(this._value,D(e,r)-x(t,r))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return lt(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return lt(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},yt.prototype.__iterator=function(t,e){var r=this,n=0;return new N(function(){return n<r.size?K(t,n++,r._value):{value:void 0,done:!0}})},yt.prototype.equals=function(t){return t instanceof yt?lt(this._value,t._value):vt(t)},e(mt,F),mt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},mt.prototype.get=function(t,e){return this.has(t)?this._start+E(this,t)*this._step:e},mt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},mt.prototype.slice=function(t,e){return O(t,e,this.size)?this:(t=x(t,this.size),(e=D(e,this.size))<=t?new mt(0,0):new mt(this.get(t,this._end),this.get(e,this._end),this._step))},mt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},mt.prototype.lastIndexOf=function(t){return this.indexOf(t)},mt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},mt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new N(function(){var u=i;return i+=e?-n:n,o>r?{value:void 0,done:!0}:K(t,o++,u)})},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:vt(this,t)},e(gt,r),e(wt,gt),e(St,gt),e(It,gt),gt.Keyed=wt,gt.Indexed=St,gt.Set=It;var bt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function zt(t){return t>>>1&1073741824|3221225471&t}function qt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e,r,n=typeof t;if("number"===n){if(t!=t||t===1/0)return 0;var i=0|t;for(i!==t&&(i^=4294967295*t);t>4294967295;)i^=t/=4294967295;return zt(i)}if("string"===n)return t.length>Rt?(void 0===(r=Tt[e=t])&&(r=Et(e),Ct===jt&&(Ct=0,Tt={}),Ct++,Tt[e]=r),r):Et(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===n)return function(t){var e;if(Dt&&void 0!==(e=Mt.get(t)))return e;if(void 0!==(e=t[At]))return e;if(!xt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[At]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++kt,1073741824&kt&&(kt=0),Dt)Mt.set(t,e);else{if(void 0!==Ot&&!1===Ot(t))throw new Error("Non-extensible objects are not allowed as keys.");if(xt)Object.defineProperty(t,At,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[At]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[At]=e}}return e}(t);if("function"==typeof t.toString)return Et(t.toString());throw new Error("Value type "+n+" cannot be hashed.")}function Et(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return zt(e)}var Mt,Ot=Object.isExtensible,xt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Dt="function"==typeof WeakMap;Dt&&(Mt=new WeakMap);var kt=0,At="__immutablehash__";"function"==typeof Symbol&&(At=Symbol(At));var Rt=16,jt=255,Ct=0,Tt={};function Ut(t){dt(t!==1/0,"Cannot perform this action with an infinite size.")}function Nt(t){return null==t?Zt():Kt(t)&&!c(t)?t:Zt().withMutations(function(e){var r=n(t);Ut(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Kt(t){return!(!t||!t[Wt])}e(Nt,wt),Nt.of=function(){var e=t.call(arguments,0);return Zt().withMutations(function(t){for(var r=0;r<e.length;r+=2){if(r+1>=e.length)throw new Error("Missing value for key: "+e[r]);t.set(e[r],e[r+1])}})},Nt.prototype.toString=function(){return this.__toString("Map {","}")},Nt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Nt.prototype.set=function(t,e){return $t(this,t,e)},Nt.prototype.setIn=function(t,e){return this.updateIn(t,m,function(){return e})},Nt.prototype.remove=function(t){return $t(this,t,m)},Nt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return m})},Nt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Nt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===m,u=r.next();if(u.done){var s=o?n:e,a=i(s);return a===s?e:a}dt(o||e&&e.set,"invalid keyPath");var f=u.value,c=o?m:e.get(f,m),h=t(c,r,n,i);return h===c?e:h===m?e.remove(f):(o?Zt():e).set(f,h)}(this,rr(t),e,r);return n===m?void 0:n},Nt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Zt()},Nt.prototype.merge=function(){return ne(this,void 0,arguments)},Nt.prototype.mergeWith=function(e){var r=t.call(arguments,1);return ne(this,e,r)},Nt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]})},Nt.prototype.mergeDeep=function(){return ne(this,ie,arguments)},Nt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ne(this,oe(e),r)},Nt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]})},Nt.prototype.sort=function(t){return xe(Je(this,t))},Nt.prototype.sortBy=function(t,e){return xe(Je(this,e,t))},Nt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Nt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new b)},Nt.prototype.asImmutable=function(){return this.__ensureOwner()},Nt.prototype.wasAltered=function(){return this.__altered},Nt.prototype.__iterator=function(t,e){return new Ft(this,t,e)},Nt.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},Nt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Xt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Nt.isMap=Kt;var Lt,Wt="@@__IMMUTABLE_MAP__@@",Pt=Nt.prototype;function Bt(t,e){this.ownerID=t,this.entries=e}function Vt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Jt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Ht(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Gt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function Ft(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Qt(t._root)}function Yt(t,e){return K(t,e[0],e[1])}function Qt(t,e){return{node:t,index:0,__prev:e}}function Xt(t,e,r,n){var i=Object.create(Pt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Zt(){return Lt||(Lt=Xt(0))}function $t(t,e,r){var n,i;if(t._root){var o=S(g),u=S(w);if(n=te(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===m?-1:1:0)}else{if(r===m)return t;i=1,n=new Bt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Xt(i,n):Zt()}function te(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===m?t:(I(s),I(u),new Gt(e,n,[i,o]))}function ee(t){return t.constructor===Gt||t.constructor===Ht}function re(t,e,r,n,i){if(t.keyHash===n)return new Ht(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&d,s=(0===r?n:n>>>r)&d,a=u===s?[re(t,e,r+v,n,i)]:(o=new Gt(e,n,i),u<s?[t,o]:[o,t]);return new Vt(e,1<<u|1<<s,a)}function ne(t,e,r){for(var i=[],o=0;o<r.length;o++){var s=r[o],a=n(s);u(s)||(a=a.map(function(t){return ht(t)})),i.push(a)}return ue(t,e,i)}function ie(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):lt(t,e)?t:e}function oe(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return lt(e,i)?e:i}}function ue(t,e,r){return 0===(r=r.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,m,function(t){return t===m?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function se(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ae(t,e,r,n){var i=n?t:z(t);return i[e]=r,i}Pt[Wt]=!0,Pt.delete=Pt.remove,Pt.removeIn=Pt.deleteIn,Bt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(lt(r,i[o][0]))return i[o][1];return n},Bt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===m,a=this.entries,f=0,c=a.length;f<c&&!lt(n,a[f][0]);f++);var h=f<c;if(h?a[f][1]===i:s)return this;if(I(u),(s||!h)&&I(o),!s||1!==a.length){if(!h&&!s&&a.length>=fe)return function(t,e,r,n){t||(t=new b);for(var i=new Gt(t,qt(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,n,i);var p=t&&t===this.ownerID,_=p?a:z(a);return h?s?f===c-1?_.pop():_[f]=_.pop():_[f]=[n,i]:_.push([n,i]),p?(this.entries=_,this):new Bt(t,_)}},Vt.prototype.get=function(t,e,r,n){void 0===e&&(e=qt(r));var i=1<<((0===t?e:e>>>t)&d),o=this.bitmap;return 0==(o&i)?n:this.nodes[se(o&i-1)].get(t+v,e,r,n)},Vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=qt(n));var s=(0===e?r:r>>>e)&d,a=1<<s,f=this.bitmap,c=0!=(f&a);if(!c&&i===m)return this;var h=se(f&a-1),p=this.nodes,_=c?p[h]:void 0,l=te(_,t,e+v,r,n,i,o,u);if(l===_)return this;if(!c&&l&&p.length>=ce)return function(t,e,r,n,i){for(var o=0,u=new Array(y),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Jt(t,o+1,u)}(t,p,f,s,l);if(c&&!l&&2===p.length&&ee(p[1^h]))return p[1^h];if(c&&l&&1===p.length&&ee(l))return l;var g=t&&t===this.ownerID,w=c?l?f:f^a:f|a,S=c?l?ae(p,h,l,g):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(p,h,g):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}(p,h,l,g);return g?(this.bitmap=w,this.nodes=S,this):new Vt(t,w,S)},Jt.prototype.get=function(t,e,r,n){void 0===e&&(e=qt(r));var i=(0===t?e:e>>>t)&d,o=this.nodes[i];return o?o.get(t+v,e,r,n):n},Jt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=qt(n));var s=(0===e?r:r>>>e)&d,a=i===m,f=this.nodes,c=f[s];if(a&&!c)return this;var h=te(c,t,e+v,r,n,i,o,u);if(h===c)return this;var p=this.count;if(c){if(!h&&--p<he)return function(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,f=e.length;s<f;s++,a<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=a,u[o++]=c)}return new Vt(t,i,u)}(t,f,p,s)}else p++;var _=t&&t===this.ownerID,l=ae(f,s,h,_);return _?(this.count=p,this.nodes=l,this):new Jt(t,p,l)},Ht.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(lt(r,i[o][0]))return i[o][1];return n},Ht.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=qt(n));var s=i===m;if(r!==this.keyHash)return s?this:(I(u),I(o),re(this,t,e,r,[n,i]));for(var a=this.entries,f=0,c=a.length;f<c&&!lt(n,a[f][0]);f++);var h=f<c;if(h?a[f][1]===i:s)return this;if(I(u),(s||!h)&&I(o),s&&2===c)return new Gt(t,this.keyHash,a[1^f]);var p=t&&t===this.ownerID,_=p?a:z(a);return h?s?f===c-1?_.pop():_[f]=_.pop():_[f]=[n,i]:_.push([n,i]),p?(this.entries=_,this):new Ht(t,this.keyHash,_)},Gt.prototype.get=function(t,e,r,n){return lt(r,this.entry[0])?this.entry[1]:n},Gt.prototype.update=function(t,e,r,n,i,o,u){var s=i===m,a=lt(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(I(u),s?void I(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Gt(t,this.keyHash,[n,i]):(I(o),re(this,t,e,qt(n),[n,i])))},Bt.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Vt.prototype.iterate=Jt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Gt.prototype.iterate=function(t,e){return t(this.entry)},e(Ft,N),Ft.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return Yt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,i<=r)return Yt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,i<=r){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return Yt(t,o.entry);e=this._stack=Qt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var fe=y/4,ce=y/2,he=y/4;function pe(t){var e=Ie();if(null==t)return e;if(_e(t))return t;var r=i(t),n=r.size;return 0===n?e:(Ut(n),n>0&&n<y?Se(0,n,v,null,new ye(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})}))}function _e(t){return!(!t||!t[le])}e(pe,St),pe.of=function(){return this(arguments)},pe.prototype.toString=function(){return this.__toString("List [","]")},pe.prototype.get=function(t,e){if((t=E(this,t))>=0&&t<this.size){var r=qe(this,t+=this._origin);return r&&r.array[t&d]}return e},pe.prototype.set=function(t,e){return function(t,e,r){if((e=E(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Ee(t,e).set(0,r):Ee(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=S(w);return e>=Oe(t._capacity)?n=be(n,t.__ownerID,0,e,r,o):i=be(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Se(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},pe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},pe.prototype.insert=function(t,e){return this.splice(t,0,e)},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ie()},pe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Ee(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},pe.prototype.pop=function(){return Ee(this,0,-1)},pe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Ee(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},pe.prototype.shift=function(){return Ee(this,1)},pe.prototype.merge=function(){return Me(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var r=t.call(arguments,1);return Me(this,e,r)},pe.prototype.mergeDeep=function(){return Me(this,ie,arguments)},pe.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Me(this,oe(e),r)},pe.prototype.setSize=function(t){return Ee(this,0,t)},pe.prototype.slice=function(t,e){var r=this.size;return O(t,e,r)?this:Ee(this,x(t,r),D(e,r))},pe.prototype.__iterator=function(t,e){var r=0,n=we(this,e);return new N(function(){var e=n();return e===ge?{value:void 0,done:!0}:K(t,r++,e)})},pe.prototype.__iterate=function(t,e){for(var r,n=0,i=we(this,e);(r=i())!==ge&&!1!==t(r,n++,this););return n},pe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Se(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},pe.isList=_e;var le="@@__IMMUTABLE_LIST__@@",ve=pe.prototype;function ye(t,e){this.array=t,this.ownerID=e}ve[le]=!0,ve.delete=ve.remove,ve.setIn=Pt.setIn,ve.deleteIn=ve.removeIn=Pt.removeIn,ve.update=Pt.update,ve.updateIn=Pt.updateIn,ve.mergeIn=Pt.mergeIn,ve.mergeDeepIn=Pt.mergeDeepIn,ve.withMutations=Pt.withMutations,ve.asMutable=Pt.asMutable,ve.asImmutable=Pt.asImmutable,ve.wasAltered=Pt.wasAltered,ye.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&d;if(n>=this.array.length)return new ye([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-v,r))===u&&o)return this}if(o&&!i)return this;var s=ze(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},ye.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&d;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-v,r))===o&&i===this.array.length-1)return this}var u=ze(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var de,me,ge={};function we(t,e){var r=t._origin,n=t._capacity,i=Oe(n),o=t._tail;return u(t._root,t._level,0);function u(t,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>r?0:r-u,f=n-u;return f>y&&(f=y),function(){if(a===f)return ge;var t=e?--f:a++;return s&&s[t]}}(t,a):function(t,i,o){var s,a=t&&t.array,f=o>r?0:r-o>>i,c=1+(n-o>>i);return c>y&&(c=y),function(){for(;;){if(s){var t=s();if(t!==ge)return t;s=null}if(f===c)return ge;var r=e?--c:f++;s=u(a&&a[r],i-v,o+(r<<i))}}}(t,s,a)}}function Se(t,e,r,n,i,o,u){var s=Object.create(ve);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Ie(){return de||(de=Se(0,0,v))}function be(t,e,r,n,i,o){var u,s=n>>>r&d,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(r>0){var f=t&&t.array[s],c=be(f,e,r-v,n,i,o);return c===f?t:((u=ze(t,e)).array[s]=c,u)}return a&&t.array[s]===i?t:(I(o),u=ze(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function ze(t,e){return e&&t&&e===t.ownerID?t:new ye(t?t.array.slice():[],e)}function qe(t,e){if(e>=Oe(t._capacity))return t._tail;if(e<1<<t._level+v){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&d],n-=v;return r}}function Ee(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new b,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,c=0;u+c<0;)f=new ye(f&&f.array.length?[void 0,f]:[],n),c+=1<<(a+=v);c&&(u+=c,i+=c,s+=c,o+=c);for(var h=Oe(o),p=Oe(s);p>=1<<a+v;)f=new ye(f&&f.array.length?[f]:[],n),a+=v;var _=t._tail,l=p<h?qe(t,s-1):p>h?new ye([],n):_;if(_&&p>h&&u<o&&_.array.length){for(var y=f=ze(f,n),m=a;m>v;m-=v){var g=h>>>m&d;y=y.array[g]=ze(y.array[g],n)}y.array[h>>>v&d]=_}if(s<o&&(l=l&&l.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=v,f=null,l=l&&l.removeBefore(n,0,u);else if(u>i||p<h){for(c=0;f;){var w=u>>>a&d;if(w!==p>>>a&d)break;w&&(c+=(1<<a)*w),a-=v,f=f.array[w]}f&&u>i&&(f=f.removeBefore(n,a,u-c)),f&&p<h&&(f=f.removeAfter(n,a,p-c)),c&&(u-=c,s-=c)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=l,t.__hash=void 0,t.__altered=!0,t):Se(u,s,a,f,l)}function Me(t,e,r){for(var n=[],o=0,s=0;s<r.length;s++){var a=r[s],f=i(a);f.size>o&&(o=f.size),u(a)||(f=f.map(function(t){return ht(t)})),n.push(f)}return o>t.size&&(t=t.setSize(o)),ue(t,e,n)}function Oe(t){return t<y?0:t-1>>>v<<v}function xe(t){return null==t?Ae():De(t)?t:Ae().withMutations(function(e){var r=n(t);Ut(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function De(t){return Kt(t)&&c(t)}function ke(t,e,r,n){var i=Object.create(xe.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Ae(){return me||(me=ke(Zt(),Ie()))}function Re(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===m){if(!a)return t;u.size>=y&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):ke(n,i)}function je(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ce(t){this._iter=t,this.size=t.size}function Te(t){this._iter=t,this.size=t.size}function Ue(t){this._iter=t,this.size=t.size}function Ne(t){var e=$e(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tr,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(e===j){var n=t.__iterator(e,r);return new N(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===R?A:R,r)},e}function Ke(t,e,r){var n=$e(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,m);return o===m?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(j,i);return new N(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return K(n,s,e.call(r,u[1],s,t),i)})},n}function Le(t,e){var r=$e(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Ne(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=tr,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function We(t,e,r,n){var i=$e(t);return n&&(i.has=function(n){var i=t.get(n,m);return i!==m&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,m);return o!==m&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(j,o),s=0;return new N(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,f=a[0],c=a[1];if(e.call(r,c,f,t))return K(i,n?f:s++,c,o)}})},i}function Pe(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=i:r|=0),O(e,r,i))return t;var o=x(e,i),u=D(r,i);if(o!=o||u!=u)return Pe(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a==a&&(s=a<0?0:a);var f=$e(t);return f.size=0===s?s:t.size&&s||void 0,!n&&it(t)&&s>=0&&(f.get=function(e,r){return(e=E(this,e))>=0&&e<s?t.get(e+o,r):r}),f.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,f=0;return t.__iterate(function(t,r){if(!a||!(a=u++<o))return f++,!1!==e(t,n?r:f-1,i)&&f!==s}),f},f.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new N(function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return n||e===R?t:K(e,a-1,e===A?void 0:t.value[1],t)})},f}function Be(t,e,r,n){var i=$e(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,f){if(!s||!(s=e.call(r,t,o,f)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(j,o),a=!0,f=0;return new N(function(){var t,o,c;do{if((t=s.next()).done)return n||i===R?t:K(i,f++,i===A?void 0:t.value[1],t);var h=t.value;o=h[0],c=h[1],a&&(a=e.call(r,c,o,u))}while(a);return i===j?t:K(i,o,c,t)})},i}function Ve(t,e,r){var n=$e(t);return n.__iterateUncached=function(n,i){var o=0,s=!1;return function t(a,f){var c=this;a.__iterate(function(i,a){return(!e||f<e)&&u(i)?t(i,f+1):!1===n(i,r?a:o++,c)&&(s=!0),!s},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),s=[],a=0;return new N(function(){for(;o;){var t=o.next();if(!1===t.done){var f=t.value;if(n===j&&(f=f[1]),e&&!(s.length<e)||!u(f))return r?t:K(n,a++,f,t);s.push(o),o=f.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}})},n}function Je(t,e,r){e||(e=er);var n=s(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?G(o):a(t)?F(o):Y(o)}function He(t,e,r){if(e||(e=er),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return Ge(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Ge(e,t,r)?r:t})}function Ge(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Fe(t,e,n){var i=$e(t);return i.size=new tt(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(R,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=r(t),B(i?t.reverse():t)}),u=0,s=!1;return new N(function(){var r;return s||(r=o.map(function(t){return t.next()}),s=r.some(function(t){return t.done})),s?{value:void 0,done:!0}:K(t,u++,e.apply(null,r.map(function(t){return t.value})))})},i}function Ye(t,e){return it(t)?e:t.constructor(e)}function Qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Xe(t){return Ut(t.size),q(t)}function Ze(t){return s(t)?n:a(t)?i:o}function $e(t){return Object.create((s(t)?G:a(t)?F:Y).prototype)}function tr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function er(t,e){return t>e?1:t<e?-1:0}function rr(t){var e=B(t);if(!e){if(!J(t))throw new TypeError("Expected iterable or array-like: "+t);e=B(r(t))}return e}function nr(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){dt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(t){}}(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Nt(o)},i=n.prototype=Object.create(ir);return i.constructor=n,n}e(xe,Nt),xe.of=function(){return this(arguments)},xe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},xe.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ae()},xe.prototype.set=function(t,e){return Re(this,t,e)},xe.prototype.remove=function(t){return Re(this,t,m)},xe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},xe.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},xe.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ke(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},xe.isOrderedMap=De,xe.prototype[l]=!0,xe.prototype.delete=xe.prototype.remove,e(je,G),je.prototype.get=function(t,e){return this._iter.get(t,e)},je.prototype.has=function(t){return this._iter.has(t)},je.prototype.valueSeq=function(){return this._iter.valueSeq()},je.prototype.reverse=function(){var t=this,e=Le(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},je.prototype.map=function(t,e){var r=this,n=Ke(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},je.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?Xe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},je.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(R,e),n=e?Xe(this):0;return new N(function(){var i=r.next();return i.done?i:K(t,e?--n:n++,i.value,i)})},je.prototype[l]=!0,e(Ce,F),Ce.prototype.includes=function(t){return this._iter.includes(t)},Ce.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},Ce.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e),n=0;return new N(function(){var e=r.next();return e.done?e:K(t,n++,e.value,e)})},e(Te,Y),Te.prototype.has=function(t){return this._iter.includes(t)},Te.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},Te.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e);return new N(function(){var e=r.next();return e.done?e:K(t,e.value,e.value,e)})},e(Ue,G),Ue.prototype.entrySeq=function(){return this._iter.toSeq()},Ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Qe(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},Ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e);return new N(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Qe(n);var i=u(n);return K(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},Ce.prototype.cacheResult=je.prototype.cacheResult=Te.prototype.cacheResult=Ue.prototype.cacheResult=tr,e(nr,wt),nr.prototype.toString=function(){return this.__toString(ur(this)+" {","}")},nr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},nr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},nr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=or(this,Zt()))},nr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+ur(this));if(this._map&&!this._map.has(t)){var r=this._defaultValues[t];if(e===r)return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:or(this,n)},nr.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:or(this,e)},nr.prototype.wasAltered=function(){return this._map.wasAltered()},nr.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},nr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},nr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?or(this,e,t):(this.__ownerID=t,this._map=e,this)};var ir=nr.prototype;function or(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function ur(t){return t._name||t.constructor.name||"Record"}function sr(t){return null==t?lr():ar(t)&&!c(t)?t:lr().withMutations(function(e){var r=o(t);Ut(r.size),r.forEach(function(t){return e.add(t)})})}function ar(t){return!(!t||!t[cr])}ir.delete=ir.remove,ir.deleteIn=ir.removeIn=Pt.removeIn,ir.merge=Pt.merge,ir.mergeWith=Pt.mergeWith,ir.mergeIn=Pt.mergeIn,ir.mergeDeep=Pt.mergeDeep,ir.mergeDeepWith=Pt.mergeDeepWith,ir.mergeDeepIn=Pt.mergeDeepIn,ir.setIn=Pt.setIn,ir.update=Pt.update,ir.updateIn=Pt.updateIn,ir.withMutations=Pt.withMutations,ir.asMutable=Pt.asMutable,ir.asImmutable=Pt.asImmutable,e(sr,It),sr.of=function(){return this(arguments)},sr.fromKeys=function(t){return this(n(t).keySeq())},sr.prototype.toString=function(){return this.__toString("Set {","}")},sr.prototype.has=function(t){return this._map.has(t)},sr.prototype.add=function(t){return pr(this,this._map.set(t,!0))},sr.prototype.remove=function(t){return pr(this,this._map.remove(t))},sr.prototype.clear=function(){return pr(this,this._map.clear())},sr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var r=0;r<e.length;r++)o(e[r]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},sr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.every(function(t){return t.includes(r)})||t.remove(r)})})},sr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.some(function(t){return t.includes(r)})&&t.remove(r)})})},sr.prototype.merge=function(){return this.union.apply(this,arguments)},sr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},sr.prototype.sort=function(t){return vr(Je(this,t))},sr.prototype.sortBy=function(t,e){return vr(Je(this,e,t))},sr.prototype.wasAltered=function(){return this._map.wasAltered()},sr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},sr.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},sr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},sr.isSet=ar;var fr,cr="@@__IMMUTABLE_SET__@@",hr=sr.prototype;function pr(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function _r(t,e){var r=Object.create(hr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function lr(){return fr||(fr=_r(Zt()))}function vr(t){return null==t?wr():yr(t)?t:wr().withMutations(function(e){var r=o(t);Ut(r.size),r.forEach(function(t){return e.add(t)})})}function yr(t){return ar(t)&&c(t)}hr[cr]=!0,hr.delete=hr.remove,hr.mergeDeep=hr.merge,hr.mergeDeepWith=hr.mergeWith,hr.withMutations=Pt.withMutations,hr.asMutable=Pt.asMutable,hr.asImmutable=Pt.asImmutable,hr.__empty=lr,hr.__make=_r,e(vr,sr),vr.of=function(){return this(arguments)},vr.fromKeys=function(t){return this(n(t).keySeq())},vr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},vr.isOrderedSet=yr;var dr,mr=vr.prototype;function gr(t,e){var r=Object.create(mr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function wr(){return dr||(dr=gr(Ae()))}function Sr(t){return null==t?Mr():Ir(t)?t:Mr().unshiftAll(t)}function Ir(t){return!(!t||!t[zr])}mr[l]=!0,mr.__empty=wr,mr.__make=gr,e(Sr,St),Sr.of=function(){return this(arguments)},Sr.prototype.toString=function(){return this.__toString("Stack [","]")},Sr.prototype.get=function(t,e){var r=this._head;for(t=E(this,t);r&&t--;)r=r.next;return r?r.value:e},Sr.prototype.peek=function(){return this._head&&this._head.value},Sr.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Er(t,e)},Sr.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Ut(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Er(e,r)},Sr.prototype.pop=function(){return this.slice(1)},Sr.prototype.unshift=function(){return this.push.apply(this,arguments)},Sr.prototype.unshiftAll=function(t){return this.pushAll(t)},Sr.prototype.shift=function(){return this.pop.apply(this,arguments)},Sr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mr()},Sr.prototype.slice=function(t,e){if(O(t,e,this.size))return this;var r=x(t,this.size),n=D(e,this.size);if(n!==this.size)return St.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Er(i,o)},Sr.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Er(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sr.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Sr.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new N(function(){if(n){var e=n.value;return n=n.next,K(t,r++,e)}return{value:void 0,done:!0}})},Sr.isStack=Ir;var br,zr="@@__IMMUTABLE_STACK__@@",qr=Sr.prototype;function Er(t,e,r,n){var i=Object.create(qr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Mr(){return br||(br=Er(0))}function Or(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}qr[zr]=!0,qr.withMutations=Pt.withMutations,qr.asMutable=Pt.asMutable,qr.asImmutable=Pt.asImmutable,qr.wasAltered=Pt.wasAltered,r.Iterator=N,Or(r,{toArray:function(){Ut(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new Ce(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Nt(this.toKeyedSeq())},toObject:function(){Ut(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return xe(this.toKeyedSeq())},toOrderedSet:function(){return vr(s(this)?this.valueSeq():this)},toSet:function(){return sr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Te(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sr(s(this)?this.valueSeq():this)},toList:function(){return pe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Ye(this,function(t,e){var r=s(t),i=[t].concat(e).map(function(t){return u(t)?r&&(t=n(t)):t=r?ut(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&s(o)||a(t)&&a(o))return o}var f=new tt(i);return r?f=f.toKeyedSeq():a(t)||(f=f.toSetSeq()),(f=f.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),f}(this,e))},includes:function(t){return this.some(function(e){return lt(e,t)})},entries:function(){return this.__iterator(j)},every:function(t,e){Ut(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return Ye(this,We(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Ut(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ut(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(A)},map:function(t,e){return Ye(this,Ke(this,t,e))},reduce:function(t,e,r){var n,i;return Ut(this.size),arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Ye(this,Le(this,!0))},slice:function(t,e){return Ye(this,Pe(this,t,e,!0))},some:function(t,e){return!this.every(Rr(t),e)},sort:function(t){return Ye(this,Je(this,t))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return q(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Nt().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}(this,t,e)},equals:function(t){return vt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(Ar).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Rr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(M)},flatMap:function(t,e){return Ye(this,function(t,e,r){var n=Ze(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Ye(this,Ve(this,t,!0))},fromEntrySeq:function(){return new Ue(this)},get:function(t,e){return this.find(function(e,r){return lt(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=rr(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,m):m)===m)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=s(t),i=(c(t)?xe():Nt()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return(t=t||[]).push(n?[u,o]:o),t})});var o=Ze(t);return i.map(function(e){return Ye(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},isSubset:function(t){return t="function"==typeof t.includes?t:r(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return lt(e,t)})},keySeq:function(){return this.toSeq().map(kr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return He(this,t)},maxBy:function(t,e){return He(this,e,t)},min:function(t){return He(this,t?jr(t):Ur)},minBy:function(t,e){return He(this,e?jr(e):Ur,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ye(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ye(this,Be(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Rr(t),e)},sortBy:function(t,e){return Ye(this,Je(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ye(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ye(this,function(t,e,r){var n=$e(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(j,i),s=!0;return new N(function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],f=i[1];return e.call(r,f,a,o)?n===j?t:K(n,a,f,t):(s=!1,{value:void 0,done:!0})})},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Rr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),r=s(t),n=e?1:0;return function(t,e){return e=bt(e,3432918353),e=bt(e<<15|e>>>-15,461845907),e=bt(e<<13|e>>>-13,5),e=bt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=zt((e=bt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+Nr(qt(t),qt(e))|0}:function(t,e){n=n+Nr(qt(t),qt(e))|0}:e?function(t){n=31*n+qt(t)|0}:function(t){n=n+qt(t)|0}),n)}(this))}});var xr=r.prototype;xr[h]=!0,xr[U]=xr.values,xr.__toJS=xr.toArray,xr.__toStringMapper=Cr,xr.inspect=xr.toSource=function(){return this.toString()},xr.chain=xr.flatMap,xr.contains=xr.includes,Or(n,{flip:function(){return Ye(this,Ne(this))},mapEntries:function(t,e){var r=this,n=0;return Ye(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Ye(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var Dr=n.prototype;function kr(t,e){return e}function Ar(t,e){return[e,t]}function Rr(t){return function(){return!t.apply(this,arguments)}}function jr(t){return function(){return-t.apply(this,arguments)}}function Cr(t){return"string"==typeof t?JSON.stringify(t):String(t)}function Tr(){return z(arguments)}function Ur(t,e){return t<e?1:t>e?-1:0}function Nr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Dr[p]=!0,Dr[U]=xr.entries,Dr.__toJS=xr.toObject,Dr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Cr(t)},Or(i,{toKeyedSeq:function(){return new je(this,!1)},filter:function(t,e){return Ye(this,We(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ye(this,Le(this,!1))},slice:function(t,e){return Ye(this,Pe(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=x(t,t<0?this.count():this.size);var n=this.slice(0,t);return Ye(this,1===r?n:n.concat(z(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ye(this,Ve(this,t,!1))},get:function(t,e){return(t=E(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=E(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ye(this,function(t,e){var r=$e(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(R,n),u=0;return new N(function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?K(r,u++,e):K(r,u++,i.value,i)})},r}(this,t))},interleave:function(){var t=[this].concat(z(arguments)),e=Fe(this.toSeq(),F.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Ye(this,r)},keySeq:function(){return mt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ye(this,Be(this,t,e,!1))},zip:function(){return Ye(this,Fe(this,Tr,[this].concat(z(arguments))))},zipWith:function(t){var e=z(arguments);return e[0]=this,Ye(this,Fe(this,t,e))}}),i.prototype[_]=!0,i.prototype[l]=!0,Or(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=xr.includes,o.prototype.contains=o.prototype.includes,Or(G,n.prototype),Or(F,i.prototype),Or(Y,o.prototype),Or(wt,n.prototype),Or(St,i.prototype),Or(It,o.prototype),{Iterable:r,Seq:H,Collection:gt,Map:Nt,OrderedMap:xe,List:pe,Stack:Sr,Set:sr,OrderedSet:vr,Record:nr,Range:mt,Repeat:yt,is:lt,fromJS:ht}}()},function(t,e,r){"use strict";r.r(e);var n=r(1),i=r.n(n),o=r(0),u=r.n(o),s=r(2),a={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class c extends i.a.Component{constructor(){super(...arguments),f(this,"handleChange",t=>{const e=this.props.field.get("valueType"),r=this.props.onChange,n="float"===e?parseFloat(t.target.value):parseInt(t.target.value,10);isNaN(n)?r(""):r(n)}),f(this,"isValid",()=>{const t=this.props,e=t.field,r=t.value,n=t.t,i=!!e.get("pattern",!1),o=e.get("min",!1),u=e.get("max",!1);let s;if(i)return!0;switch(!0){case!1!==o&&!1!==u&&(r<o||r>u):s={type:a.RANGE,message:n("editor.editorControlPane.widget.range",{fieldLabel:e.get("label",e.get("name")),minValue:o,maxValue:u})};break;case!1!==o&&r<o:s={type:a.RANGE,message:n("editor.editorControlPane.widget.min",{fieldLabel:e.get("label",e.get("name")),minValue:o})};break;case!1!==u&&r>u:s={type:a.RANGE,message:n("editor.editorControlPane.widget.max",{fieldLabel:e.get("label",e.get("name")),maxValue:u})};break;default:return!0}return{error:s}})}render(){const t=this.props,e=t.field,r=t.value,n=t.classNameWrapper,o=t.forID,u=t.setActiveStyle,s=t.setInactiveStyle,a=e.get("min",""),f=e.get("max",""),c=e.get("step","int"===e.get("valueType")?1:"");return i.a.createElement("input",{type:"number",id:o,className:n,onFocus:u,onBlur:s,value:r||"",step:c,min:a,max:f,onChange:this.handleChange})}}f(c,"propTypes",{field:r.n(s).a.map.isRequired,onChange:u.a.func.isRequired,classNameWrapper:u.a.string.isRequired,setActiveStyle:u.a.func.isRequired,setInactiveStyle:u.a.func.isRequired,value:u.a.node,forID:u.a.string,valueType:u.a.string,step:u.a.number,min:u.a.number,max:u.a.number,t:u.a.func.isRequired}),f(c,"defaultProps",{value:""});var h=r(3);const p=t=>{let e=t.value;return i.a.createElement(h.WidgetPreviewContainer,null,e)};p.propTypes={value:u.a.node};var _=p;r.d(e,"NetlifyCmsWidgetNumber",function(){return l}),r.d(e,"controlComponent",function(){return c}),r.d(e,"previewComponent",function(){return _});const l={controlComponent:c,previewComponent:_}}]).NetlifyCmsWidgetNumber});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("netlify-cms-ui-default")):"function"==typeof define&&define.amd?define("NetlifyCmsWidgetNumber",["prop-types","react","netlify-cms-ui-default"],e):"object"==typeof exports?exports.NetlifyCmsWidgetNumber=e(require("prop-types"),require("react"),require("netlify-cms-ui-default")):t.NetlifyCmsWidgetNumber=e(t.NetlifyCmsDefaultExports.PropTypes,t.React,t.NetlifyCmsUiDefault)}(window,function(t,e,r){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";var n=r(4),i="<<anonymous>>",o={listOf:function(t){return f(t,"List",n.List.isList)},mapOf:function(t,e){return c(t,e,"Map",n.Map.isMap)},orderedMapOf:function(t,e){return c(t,e,"OrderedMap",n.OrderedMap.isOrderedMap)},setOf:function(t){return f(t,"Set",n.Set.isSet)},orderedSetOf:function(t){return f(t,"OrderedSet",n.OrderedSet.isOrderedSet)},stackOf:function(t){return f(t,"Stack",n.Stack.isStack)},iterableOf:function(t){return f(t,"Iterable",n.Iterable.isIterable)},recordOf:function(t){return s(function(e,r,i,o,s){for(var a=arguments.length,f=Array(a>5?a-5:0),c=5;c<a;c++)f[c-5]=arguments[c];var h=e[r];if(!(h instanceof n.Record)){var p=u(h),_=o;return new Error("Invalid "+_+" `"+s+"` of type `"+p+"` supplied to `"+i+"`, expected an Immutable.js Record.")}for(var l in t){var v=t[l];if(v){var y=h.toObject(),d=v.apply(void 0,[y,l,i,o,s+"."+l].concat(f));if(d)return d}}})},shape:p,contains:p,mapContains:function(t){return h(t,"Map",n.Map.isMap)},list:a("List",n.List.isList),map:a("Map",n.Map.isMap),orderedMap:a("OrderedMap",n.OrderedMap.isOrderedMap),set:a("Set",n.Set.isSet),orderedSet:a("OrderedSet",n.OrderedSet.isOrderedSet),stack:a("Stack",n.Stack.isStack),seq:a("Seq",n.Seq.isSeq),record:a("Record",function(t){return t instanceof n.Record}),iterable:a("Iterable",n.Iterable.isIterable)};function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":t instanceof n.Iterable?"Immutable."+t.toSource().split(" ")[0]:e}function s(t){function e(e,r,n,o,u,s){for(var a=arguments.length,f=Array(a>6?a-6:0),c=6;c<a;c++)f[c-6]=arguments[c];return s=s||n,o=o||i,null!=r[n]?t.apply(void 0,[r,n,o,u,s].concat(f)):e?new Error("Required "+u+" `"+s+"` was not specified in `"+o+"`."):void 0}var r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r}function a(t,e){return s(function(r,n,i,o,s){var a=r[n];if(!e(a)){var f=u(a);return new Error("Invalid "+o+" `"+s+"` of type `"+f+"` supplied to `"+i+"`, expected `"+t+"`.")}return null})}function f(t,e,r){return s(function(n,i,o,s,a){for(var f=arguments.length,c=Array(f>5?f-5:0),h=5;h<f;h++)c[h-5]=arguments[h];var p=n[i];if(!r(p)){var _=s,l=u(p);return new Error("Invalid "+_+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected an Immutable.js "+e+".")}if("function"!=typeof t)return new Error("Invalid typeChecker supplied to `"+o+"` for propType `"+a+"`, expected a function.");for(var v=p.toArray(),y=0,d=v.length;y<d;y++){var m=t.apply(void 0,[v,y,o,s,a+"["+y+"]"].concat(c));if(m instanceof Error)return m}})}function c(t,e,r,n){return s(function(){for(var i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];return f(t,r,n).apply(void 0,o)||e&&(a=e,s(function(t,e,r,n,i){for(var o=arguments.length,u=Array(o>5?o-5:0),s=5;s<o;s++)u[s-5]=arguments[s];var f=t[e];if("function"!=typeof a)return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+r+"` for propType `"+i+"`, expected a function.");for(var c=f.keySeq().toArray(),h=0,p=c.length;h<p;h++){var _=a.apply(void 0,[c,h,r,n,i+" -> key("+c[h]+")"].concat(u));if(_ instanceof Error)return _}})).apply(void 0,o);var a})}function h(t){var e=void 0===arguments[1]?"Iterable":arguments[1],r=void 0===arguments[2]?n.Iterable.isIterable:arguments[2];return s(function(n,i,o,s,a){for(var f=arguments.length,c=Array(f>5?f-5:0),h=5;h<f;h++)c[h-5]=arguments[h];var p=n[i];if(!r(p)){var _=u(p);return new Error("Invalid "+s+" `"+a+"` of type `"+_+"` supplied to `"+o+"`, expected an Immutable.js "+e+".")}var l=p.toObject();for(var v in t){var y=t[v];if(y){var d=y.apply(void 0,[l,v,o,s,a+"."+v].concat(c));if(d)return d}}})}function p(t){return h(t)}t.exports=o},function(t,e){t.exports=r},function(t,e,r){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return u(t)?t:H(t)}function n(t){return s(t)?t:G(t)}function i(t){return a(t)?t:F(t)}function o(t){return u(t)&&!f(t)?t:Y(t)}function u(t){return!(!t||!t[h])}function s(t){return!(!t||!t[p])}function a(t){return!(!t||!t[_])}function f(t){return s(t)||a(t)}function c(t){return!(!t||!t[l])}e(n,r),e(i,r),e(o,r),r.isIterable=u,r.isKeyed=s,r.isIndexed=a,r.isAssociative=f,r.isOrdered=c,r.Keyed=n,r.Indexed=i,r.Set=o;var h="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",_="@@__IMMUTABLE_INDEXED__@@",l="@@__IMMUTABLE_ORDERED__@@",v=5,y=1<<v,d=y-1,m={},g={value:!1},w={value:!1};function S(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function b(){}function z(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function q(t){return void 0===t.size&&(t.size=t.__iterate(M)),t.size}function E(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?q(t)+e:e}function M(){return!0}function O(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function x(t,e){return k(t,e,0)}function D(t,e){return k(t,e,e)}function k(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var A=0,R=1,j=2,C="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",U=C||T;function N(t){this.next=t}function K(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function L(){return{value:void 0,done:!0}}function W(t){return!!V(t)}function P(t){return t&&"function"==typeof t.next}function B(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(C&&t[C]||t[T]);if("function"==typeof e)return e}function J(t){return t&&"number"==typeof t.length}function H(t){return null==t?ot():u(t)?t.toSeq():function(t){var e=at(t)||"object"==typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function G(t){return null==t?ot().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():ut(t)}function F(t){return null==t?ot():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():st(t)}function Y(t){return(null==t?ot():u(t)?s(t)?t.entrySeq():t:st(t)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=A,N.VALUES=R,N.ENTRIES=j,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[U]=function(){return this},e(H,r),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(t,e){return ft(this,t,e,!0)},H.prototype.__iterator=function(t,e){return ct(this,t,e,!0)},e(G,H),G.prototype.toKeyedSeq=function(){return this},e(F,H),F.of=function(){return F(arguments)},F.prototype.toIndexedSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq [","]")},F.prototype.__iterate=function(t,e){return ft(this,t,e,!1)},F.prototype.__iterator=function(t,e){return ct(this,t,e,!1)},e(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},H.isSeq=it,H.Keyed=G,H.Set=Y,H.Indexed=F;var Q,X,Z,$="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function rt(t){this._iterable=t,this.size=t.length||t.size}function nt(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[$])}function ot(){return Q||(Q=new tt([]))}function ut(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():P(t)?new nt(t).fromEntrySeq():W(t)?new rt(t).fromEntrySeq():"object"==typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=at(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function at(t){return J(t)?new tt(t):P(t)?new nt(t):W(t)?new rt(t):void 0}function ft(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[r?o-u:u];if(!1===e(s[1],n?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function ct(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new N(function(){var t=i[r?o-u:u];return u++>o?{value:void 0,done:!0}:K(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function ht(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,F(r).map(function(n,i){return t(e,n,i,r)})):_t(r)?e.call(i,n,G(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):pt(t)}function pt(t){return Array.isArray(t)?F(t).map(pt).toList():_t(t)?G(t).map(pt).toMap():t}function _t(t){return t&&(t.constructor===Object||void 0===t.constructor)}function lt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function vt(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!f(t);if(c(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&lt(i[1],t)&&(r||lt(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var h=!0,p=e.__iterate(function(e,n){if(r?!t.has(e):i?!lt(e,t.get(n,m)):!lt(t.get(n,m),e))return h=!1,!1});return h&&t.size===p}function yt(t,e){if(!(this instanceof yt))return new yt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(X)return X;X=this}}function dt(t,e){if(!t)throw new Error(e)}function mt(t,e,r){if(!(this instanceof mt))return new mt(t,e,r);if(dt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Z)return Z;Z=this}}function gt(){throw TypeError("Abstract")}function wt(){}function St(){}function It(){}H.prototype[$]=!0,e(tt,F),tt.prototype.get=function(t,e){return this.has(t)?this._array[E(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},tt.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new N(function(){return i>n?{value:void 0,done:!0}:K(t,i,r[e?n-i++:i++])})},e(et,G),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(!1===t(r[u],u,this))return o+1}return o},et.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new N(function(){var u=n[e?i-o:o];return o++>i?{value:void 0,done:!0}:K(t,u,r[u])})},et.prototype[l]=!0,e(rt,F),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=B(r),i=0;if(P(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,i++,this););return i},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=B(r);if(!P(n))return new N(L);var i=0;return new N(function(){var e=n.next();return e.done?e:K(t,i++,e.value)})},e(nt,F),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var u=r.value;if(i[o]=u,!1===t(u,o++,this))break}return o},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new N(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return K(t,i,n[i++])})},e(yt,F),yt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},yt.prototype.get=function(t,e){return this.has(t)?this._value:e},yt.prototype.includes=function(t){return lt(this._value,t)},yt.prototype.slice=function(t,e){var r=this.size;return O(t,e,r)?this:new yt(this._value,D(e,r)-x(t,r))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return lt(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return lt(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},yt.prototype.__iterator=function(t,e){var r=this,n=0;return new N(function(){return n<r.size?K(t,n++,r._value):{value:void 0,done:!0}})},yt.prototype.equals=function(t){return t instanceof yt?lt(this._value,t._value):vt(t)},e(mt,F),mt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},mt.prototype.get=function(t,e){return this.has(t)?this._start+E(this,t)*this._step:e},mt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},mt.prototype.slice=function(t,e){return O(t,e,this.size)?this:(t=x(t,this.size),(e=D(e,this.size))<=t?new mt(0,0):new mt(this.get(t,this._end),this.get(e,this._end),this._step))},mt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},mt.prototype.lastIndexOf=function(t){return this.indexOf(t)},mt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},mt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new N(function(){var u=i;return i+=e?-n:n,o>r?{value:void 0,done:!0}:K(t,o++,u)})},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:vt(this,t)},e(gt,r),e(wt,gt),e(St,gt),e(It,gt),gt.Keyed=wt,gt.Indexed=St,gt.Set=It;var bt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function zt(t){return t>>>1&1073741824|3221225471&t}function qt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e,r,n=typeof t;if("number"===n){if(t!=t||t===1/0)return 0;var i=0|t;for(i!==t&&(i^=4294967295*t);t>4294967295;)i^=t/=4294967295;return zt(i)}if("string"===n)return t.length>Rt?(void 0===(r=Tt[e=t])&&(r=Et(e),Ct===jt&&(Ct=0,Tt={}),Ct++,Tt[e]=r),r):Et(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===n)return function(t){var e;if(Dt&&void 0!==(e=Mt.get(t)))return e;if(void 0!==(e=t[At]))return e;if(!xt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[At]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++kt,1073741824&kt&&(kt=0),Dt)Mt.set(t,e);else{if(void 0!==Ot&&!1===Ot(t))throw new Error("Non-extensible objects are not allowed as keys.");if(xt)Object.defineProperty(t,At,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[At]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[At]=e}}return e}(t);if("function"==typeof t.toString)return Et(t.toString());throw new Error("Value type "+n+" cannot be hashed.")}function Et(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return zt(e)}var Mt,Ot=Object.isExtensible,xt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Dt="function"==typeof WeakMap;Dt&&(Mt=new WeakMap);var kt=0,At="__immutablehash__";"function"==typeof Symbol&&(At=Symbol(At));var Rt=16,jt=255,Ct=0,Tt={};function Ut(t){dt(t!==1/0,"Cannot perform this action with an infinite size.")}function Nt(t){return null==t?Zt():Kt(t)&&!c(t)?t:Zt().withMutations(function(e){var r=n(t);Ut(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Kt(t){return!(!t||!t[Wt])}e(Nt,wt),Nt.of=function(){var e=t.call(arguments,0);return Zt().withMutations(function(t){for(var r=0;r<e.length;r+=2){if(r+1>=e.length)throw new Error("Missing value for key: "+e[r]);t.set(e[r],e[r+1])}})},Nt.prototype.toString=function(){return this.__toString("Map {","}")},Nt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Nt.prototype.set=function(t,e){return $t(this,t,e)},Nt.prototype.setIn=function(t,e){return this.updateIn(t,m,function(){return e})},Nt.prototype.remove=function(t){return $t(this,t,m)},Nt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return m})},Nt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Nt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===m,u=r.next();if(u.done){var s=o?n:e,a=i(s);return a===s?e:a}dt(o||e&&e.set,"invalid keyPath");var f=u.value,c=o?m:e.get(f,m),h=t(c,r,n,i);return h===c?e:h===m?e.remove(f):(o?Zt():e).set(f,h)}(this,rr(t),e,r);return n===m?void 0:n},Nt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Zt()},Nt.prototype.merge=function(){return ne(this,void 0,arguments)},Nt.prototype.mergeWith=function(e){var r=t.call(arguments,1);return ne(this,e,r)},Nt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]})},Nt.prototype.mergeDeep=function(){return ne(this,ie,arguments)},Nt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ne(this,oe(e),r)},Nt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]})},Nt.prototype.sort=function(t){return xe(Je(this,t))},Nt.prototype.sortBy=function(t,e){return xe(Je(this,e,t))},Nt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Nt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new b)},Nt.prototype.asImmutable=function(){return this.__ensureOwner()},Nt.prototype.wasAltered=function(){return this.__altered},Nt.prototype.__iterator=function(t,e){return new Ft(this,t,e)},Nt.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},Nt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Xt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Nt.isMap=Kt;var Lt,Wt="@@__IMMUTABLE_MAP__@@",Pt=Nt.prototype;function Bt(t,e){this.ownerID=t,this.entries=e}function Vt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Jt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Ht(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Gt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function Ft(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Qt(t._root)}function Yt(t,e){return K(t,e[0],e[1])}function Qt(t,e){return{node:t,index:0,__prev:e}}function Xt(t,e,r,n){var i=Object.create(Pt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Zt(){return Lt||(Lt=Xt(0))}function $t(t,e,r){var n,i;if(t._root){var o=S(g),u=S(w);if(n=te(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===m?-1:1:0)}else{if(r===m)return t;i=1,n=new Bt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Xt(i,n):Zt()}function te(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===m?t:(I(s),I(u),new Gt(e,n,[i,o]))}function ee(t){return t.constructor===Gt||t.constructor===Ht}function re(t,e,r,n,i){if(t.keyHash===n)return new Ht(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&d,s=(0===r?n:n>>>r)&d,a=u===s?[re(t,e,r+v,n,i)]:(o=new Gt(e,n,i),u<s?[t,o]:[o,t]);return new Vt(e,1<<u|1<<s,a)}function ne(t,e,r){for(var i=[],o=0;o<r.length;o++){var s=r[o],a=n(s);u(s)||(a=a.map(function(t){return ht(t)})),i.push(a)}return ue(t,e,i)}function ie(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):lt(t,e)?t:e}function oe(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return lt(e,i)?e:i}}function ue(t,e,r){return 0===(r=r.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,m,function(t){return t===m?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function se(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ae(t,e,r,n){var i=n?t:z(t);return i[e]=r,i}Pt[Wt]=!0,Pt.delete=Pt.remove,Pt.removeIn=Pt.deleteIn,Bt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(lt(r,i[o][0]))return i[o][1];return n},Bt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===m,a=this.entries,f=0,c=a.length;f<c&&!lt(n,a[f][0]);f++);var h=f<c;if(h?a[f][1]===i:s)return this;if(I(u),(s||!h)&&I(o),!s||1!==a.length){if(!h&&!s&&a.length>=fe)return function(t,e,r,n){t||(t=new b);for(var i=new Gt(t,qt(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,n,i);var p=t&&t===this.ownerID,_=p?a:z(a);return h?s?f===c-1?_.pop():_[f]=_.pop():_[f]=[n,i]:_.push([n,i]),p?(this.entries=_,this):new Bt(t,_)}},Vt.prototype.get=function(t,e,r,n){void 0===e&&(e=qt(r));var i=1<<((0===t?e:e>>>t)&d),o=this.bitmap;return 0==(o&i)?n:this.nodes[se(o&i-1)].get(t+v,e,r,n)},Vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=qt(n));var s=(0===e?r:r>>>e)&d,a=1<<s,f=this.bitmap,c=0!=(f&a);if(!c&&i===m)return this;var h=se(f&a-1),p=this.nodes,_=c?p[h]:void 0,l=te(_,t,e+v,r,n,i,o,u);if(l===_)return this;if(!c&&l&&p.length>=ce)return function(t,e,r,n,i){for(var o=0,u=new Array(y),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Jt(t,o+1,u)}(t,p,f,s,l);if(c&&!l&&2===p.length&&ee(p[1^h]))return p[1^h];if(c&&l&&1===p.length&&ee(l))return l;var g=t&&t===this.ownerID,w=c?l?f:f^a:f|a,S=c?l?ae(p,h,l,g):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(p,h,g):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}(p,h,l,g);return g?(this.bitmap=w,this.nodes=S,this):new Vt(t,w,S)},Jt.prototype.get=function(t,e,r,n){void 0===e&&(e=qt(r));var i=(0===t?e:e>>>t)&d,o=this.nodes[i];return o?o.get(t+v,e,r,n):n},Jt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=qt(n));var s=(0===e?r:r>>>e)&d,a=i===m,f=this.nodes,c=f[s];if(a&&!c)return this;var h=te(c,t,e+v,r,n,i,o,u);if(h===c)return this;var p=this.count;if(c){if(!h&&--p<he)return function(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,f=e.length;s<f;s++,a<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=a,u[o++]=c)}return new Vt(t,i,u)}(t,f,p,s)}else p++;var _=t&&t===this.ownerID,l=ae(f,s,h,_);return _?(this.count=p,this.nodes=l,this):new Jt(t,p,l)},Ht.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(lt(r,i[o][0]))return i[o][1];return n},Ht.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=qt(n));var s=i===m;if(r!==this.keyHash)return s?this:(I(u),I(o),re(this,t,e,r,[n,i]));for(var a=this.entries,f=0,c=a.length;f<c&&!lt(n,a[f][0]);f++);var h=f<c;if(h?a[f][1]===i:s)return this;if(I(u),(s||!h)&&I(o),s&&2===c)return new Gt(t,this.keyHash,a[1^f]);var p=t&&t===this.ownerID,_=p?a:z(a);return h?s?f===c-1?_.pop():_[f]=_.pop():_[f]=[n,i]:_.push([n,i]),p?(this.entries=_,this):new Ht(t,this.keyHash,_)},Gt.prototype.get=function(t,e,r,n){return lt(r,this.entry[0])?this.entry[1]:n},Gt.prototype.update=function(t,e,r,n,i,o,u){var s=i===m,a=lt(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(I(u),s?void I(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Gt(t,this.keyHash,[n,i]):(I(o),re(this,t,e,qt(n),[n,i])))},Bt.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Vt.prototype.iterate=Jt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Gt.prototype.iterate=function(t,e){return t(this.entry)},e(Ft,N),Ft.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return Yt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,i<=r)return Yt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,i<=r){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return Yt(t,o.entry);e=this._stack=Qt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var fe=y/4,ce=y/2,he=y/4;function pe(t){var e=Ie();if(null==t)return e;if(_e(t))return t;var r=i(t),n=r.size;return 0===n?e:(Ut(n),n>0&&n<y?Se(0,n,v,null,new ye(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})}))}function _e(t){return!(!t||!t[le])}e(pe,St),pe.of=function(){return this(arguments)},pe.prototype.toString=function(){return this.__toString("List [","]")},pe.prototype.get=function(t,e){if((t=E(this,t))>=0&&t<this.size){var r=qe(this,t+=this._origin);return r&&r.array[t&d]}return e},pe.prototype.set=function(t,e){return function(t,e,r){if((e=E(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Ee(t,e).set(0,r):Ee(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=S(w);return e>=Oe(t._capacity)?n=be(n,t.__ownerID,0,e,r,o):i=be(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Se(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},pe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},pe.prototype.insert=function(t,e){return this.splice(t,0,e)},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ie()},pe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Ee(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},pe.prototype.pop=function(){return Ee(this,0,-1)},pe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Ee(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},pe.prototype.shift=function(){return Ee(this,1)},pe.prototype.merge=function(){return Me(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var r=t.call(arguments,1);return Me(this,e,r)},pe.prototype.mergeDeep=function(){return Me(this,ie,arguments)},pe.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Me(this,oe(e),r)},pe.prototype.setSize=function(t){return Ee(this,0,t)},pe.prototype.slice=function(t,e){var r=this.size;return O(t,e,r)?this:Ee(this,x(t,r),D(e,r))},pe.prototype.__iterator=function(t,e){var r=0,n=we(this,e);return new N(function(){var e=n();return e===ge?{value:void 0,done:!0}:K(t,r++,e)})},pe.prototype.__iterate=function(t,e){for(var r,n=0,i=we(this,e);(r=i())!==ge&&!1!==t(r,n++,this););return n},pe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Se(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},pe.isList=_e;var le="@@__IMMUTABLE_LIST__@@",ve=pe.prototype;function ye(t,e){this.array=t,this.ownerID=e}ve[le]=!0,ve.delete=ve.remove,ve.setIn=Pt.setIn,ve.deleteIn=ve.removeIn=Pt.removeIn,ve.update=Pt.update,ve.updateIn=Pt.updateIn,ve.mergeIn=Pt.mergeIn,ve.mergeDeepIn=Pt.mergeDeepIn,ve.withMutations=Pt.withMutations,ve.asMutable=Pt.asMutable,ve.asImmutable=Pt.asImmutable,ve.wasAltered=Pt.wasAltered,ye.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&d;if(n>=this.array.length)return new ye([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-v,r))===u&&o)return this}if(o&&!i)return this;var s=ze(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},ye.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&d;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-v,r))===o&&i===this.array.length-1)return this}var u=ze(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var de,me,ge={};function we(t,e){var r=t._origin,n=t._capacity,i=Oe(n),o=t._tail;return u(t._root,t._level,0);function u(t,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>r?0:r-u,f=n-u;return f>y&&(f=y),function(){if(a===f)return ge;var t=e?--f:a++;return s&&s[t]}}(t,a):function(t,i,o){var s,a=t&&t.array,f=o>r?0:r-o>>i,c=1+(n-o>>i);return c>y&&(c=y),function(){for(;;){if(s){var t=s();if(t!==ge)return t;s=null}if(f===c)return ge;var r=e?--c:f++;s=u(a&&a[r],i-v,o+(r<<i))}}}(t,s,a)}}function Se(t,e,r,n,i,o,u){var s=Object.create(ve);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Ie(){return de||(de=Se(0,0,v))}function be(t,e,r,n,i,o){var u,s=n>>>r&d,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(r>0){var f=t&&t.array[s],c=be(f,e,r-v,n,i,o);return c===f?t:((u=ze(t,e)).array[s]=c,u)}return a&&t.array[s]===i?t:(I(o),u=ze(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function ze(t,e){return e&&t&&e===t.ownerID?t:new ye(t?t.array.slice():[],e)}function qe(t,e){if(e>=Oe(t._capacity))return t._tail;if(e<1<<t._level+v){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&d],n-=v;return r}}function Ee(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new b,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,c=0;u+c<0;)f=new ye(f&&f.array.length?[void 0,f]:[],n),c+=1<<(a+=v);c&&(u+=c,i+=c,s+=c,o+=c);for(var h=Oe(o),p=Oe(s);p>=1<<a+v;)f=new ye(f&&f.array.length?[f]:[],n),a+=v;var _=t._tail,l=p<h?qe(t,s-1):p>h?new ye([],n):_;if(_&&p>h&&u<o&&_.array.length){for(var y=f=ze(f,n),m=a;m>v;m-=v){var g=h>>>m&d;y=y.array[g]=ze(y.array[g],n)}y.array[h>>>v&d]=_}if(s<o&&(l=l&&l.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=v,f=null,l=l&&l.removeBefore(n,0,u);else if(u>i||p<h){for(c=0;f;){var w=u>>>a&d;if(w!==p>>>a&d)break;w&&(c+=(1<<a)*w),a-=v,f=f.array[w]}f&&u>i&&(f=f.removeBefore(n,a,u-c)),f&&p<h&&(f=f.removeAfter(n,a,p-c)),c&&(u-=c,s-=c)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=l,t.__hash=void 0,t.__altered=!0,t):Se(u,s,a,f,l)}function Me(t,e,r){for(var n=[],o=0,s=0;s<r.length;s++){var a=r[s],f=i(a);f.size>o&&(o=f.size),u(a)||(f=f.map(function(t){return ht(t)})),n.push(f)}return o>t.size&&(t=t.setSize(o)),ue(t,e,n)}function Oe(t){return t<y?0:t-1>>>v<<v}function xe(t){return null==t?Ae():De(t)?t:Ae().withMutations(function(e){var r=n(t);Ut(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function De(t){return Kt(t)&&c(t)}function ke(t,e,r,n){var i=Object.create(xe.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Ae(){return me||(me=ke(Zt(),Ie()))}function Re(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===m){if(!a)return t;u.size>=y&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):ke(n,i)}function je(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ce(t){this._iter=t,this.size=t.size}function Te(t){this._iter=t,this.size=t.size}function Ue(t){this._iter=t,this.size=t.size}function Ne(t){var e=$e(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tr,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(e===j){var n=t.__iterator(e,r);return new N(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===R?A:R,r)},e}function Ke(t,e,r){var n=$e(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,m);return o===m?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(j,i);return new N(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return K(n,s,e.call(r,u[1],s,t),i)})},n}function Le(t,e){var r=$e(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Ne(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=tr,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function We(t,e,r,n){var i=$e(t);return n&&(i.has=function(n){var i=t.get(n,m);return i!==m&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,m);return o!==m&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(j,o),s=0;return new N(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,f=a[0],c=a[1];if(e.call(r,c,f,t))return K(i,n?f:s++,c,o)}})},i}function Pe(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=i:r|=0),O(e,r,i))return t;var o=x(e,i),u=D(r,i);if(o!=o||u!=u)return Pe(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a==a&&(s=a<0?0:a);var f=$e(t);return f.size=0===s?s:t.size&&s||void 0,!n&&it(t)&&s>=0&&(f.get=function(e,r){return(e=E(this,e))>=0&&e<s?t.get(e+o,r):r}),f.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,f=0;return t.__iterate(function(t,r){if(!a||!(a=u++<o))return f++,!1!==e(t,n?r:f-1,i)&&f!==s}),f},f.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new N(function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return n||e===R?t:K(e,a-1,e===A?void 0:t.value[1],t)})},f}function Be(t,e,r,n){var i=$e(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,f){if(!s||!(s=e.call(r,t,o,f)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(j,o),a=!0,f=0;return new N(function(){var t,o,c;do{if((t=s.next()).done)return n||i===R?t:K(i,f++,i===A?void 0:t.value[1],t);var h=t.value;o=h[0],c=h[1],a&&(a=e.call(r,c,o,u))}while(a);return i===j?t:K(i,o,c,t)})},i}function Ve(t,e,r){var n=$e(t);return n.__iterateUncached=function(n,i){var o=0,s=!1;return function t(a,f){var c=this;a.__iterate(function(i,a){return(!e||f<e)&&u(i)?t(i,f+1):!1===n(i,r?a:o++,c)&&(s=!0),!s},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),s=[],a=0;return new N(function(){for(;o;){var t=o.next();if(!1===t.done){var f=t.value;if(n===j&&(f=f[1]),e&&!(s.length<e)||!u(f))return r?t:K(n,a++,f,t);s.push(o),o=f.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}})},n}function Je(t,e,r){e||(e=er);var n=s(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?G(o):a(t)?F(o):Y(o)}function He(t,e,r){if(e||(e=er),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return Ge(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Ge(e,t,r)?r:t})}function Ge(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Fe(t,e,n){var i=$e(t);return i.size=new tt(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(R,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=r(t),B(i?t.reverse():t)}),u=0,s=!1;return new N(function(){var r;return s||(r=o.map(function(t){return t.next()}),s=r.some(function(t){return t.done})),s?{value:void 0,done:!0}:K(t,u++,e.apply(null,r.map(function(t){return t.value})))})},i}function Ye(t,e){return it(t)?e:t.constructor(e)}function Qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Xe(t){return Ut(t.size),q(t)}function Ze(t){return s(t)?n:a(t)?i:o}function $e(t){return Object.create((s(t)?G:a(t)?F:Y).prototype)}function tr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function er(t,e){return t>e?1:t<e?-1:0}function rr(t){var e=B(t);if(!e){if(!J(t))throw new TypeError("Expected iterable or array-like: "+t);e=B(r(t))}return e}function nr(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){dt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(t){}}(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Nt(o)},i=n.prototype=Object.create(ir);return i.constructor=n,n}e(xe,Nt),xe.of=function(){return this(arguments)},xe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},xe.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ae()},xe.prototype.set=function(t,e){return Re(this,t,e)},xe.prototype.remove=function(t){return Re(this,t,m)},xe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},xe.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},xe.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ke(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},xe.isOrderedMap=De,xe.prototype[l]=!0,xe.prototype.delete=xe.prototype.remove,e(je,G),je.prototype.get=function(t,e){return this._iter.get(t,e)},je.prototype.has=function(t){return this._iter.has(t)},je.prototype.valueSeq=function(){return this._iter.valueSeq()},je.prototype.reverse=function(){var t=this,e=Le(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},je.prototype.map=function(t,e){var r=this,n=Ke(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},je.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?Xe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},je.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(R,e),n=e?Xe(this):0;return new N(function(){var i=r.next();return i.done?i:K(t,e?--n:n++,i.value,i)})},je.prototype[l]=!0,e(Ce,F),Ce.prototype.includes=function(t){return this._iter.includes(t)},Ce.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},Ce.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e),n=0;return new N(function(){var e=r.next();return e.done?e:K(t,n++,e.value,e)})},e(Te,Y),Te.prototype.has=function(t){return this._iter.includes(t)},Te.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},Te.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e);return new N(function(){var e=r.next();return e.done?e:K(t,e.value,e.value,e)})},e(Ue,G),Ue.prototype.entrySeq=function(){return this._iter.toSeq()},Ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Qe(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},Ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e);return new N(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Qe(n);var i=u(n);return K(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},Ce.prototype.cacheResult=je.prototype.cacheResult=Te.prototype.cacheResult=Ue.prototype.cacheResult=tr,e(nr,wt),nr.prototype.toString=function(){return this.__toString(ur(this)+" {","}")},nr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},nr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},nr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=or(this,Zt()))},nr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+ur(this));if(this._map&&!this._map.has(t)){var r=this._defaultValues[t];if(e===r)return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:or(this,n)},nr.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:or(this,e)},nr.prototype.wasAltered=function(){return this._map.wasAltered()},nr.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},nr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},nr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?or(this,e,t):(this.__ownerID=t,this._map=e,this)};var ir=nr.prototype;function or(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function ur(t){return t._name||t.constructor.name||"Record"}function sr(t){return null==t?lr():ar(t)&&!c(t)?t:lr().withMutations(function(e){var r=o(t);Ut(r.size),r.forEach(function(t){return e.add(t)})})}function ar(t){return!(!t||!t[cr])}ir.delete=ir.remove,ir.deleteIn=ir.removeIn=Pt.removeIn,ir.merge=Pt.merge,ir.mergeWith=Pt.mergeWith,ir.mergeIn=Pt.mergeIn,ir.mergeDeep=Pt.mergeDeep,ir.mergeDeepWith=Pt.mergeDeepWith,ir.mergeDeepIn=Pt.mergeDeepIn,ir.setIn=Pt.setIn,ir.update=Pt.update,ir.updateIn=Pt.updateIn,ir.withMutations=Pt.withMutations,ir.asMutable=Pt.asMutable,ir.asImmutable=Pt.asImmutable,e(sr,It),sr.of=function(){return this(arguments)},sr.fromKeys=function(t){return this(n(t).keySeq())},sr.prototype.toString=function(){return this.__toString("Set {","}")},sr.prototype.has=function(t){return this._map.has(t)},sr.prototype.add=function(t){return pr(this,this._map.set(t,!0))},sr.prototype.remove=function(t){return pr(this,this._map.remove(t))},sr.prototype.clear=function(){return pr(this,this._map.clear())},sr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var r=0;r<e.length;r++)o(e[r]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},sr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.every(function(t){return t.includes(r)})||t.remove(r)})})},sr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.some(function(t){return t.includes(r)})&&t.remove(r)})})},sr.prototype.merge=function(){return this.union.apply(this,arguments)},sr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},sr.prototype.sort=function(t){return vr(Je(this,t))},sr.prototype.sortBy=function(t,e){return vr(Je(this,e,t))},sr.prototype.wasAltered=function(){return this._map.wasAltered()},sr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},sr.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},sr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},sr.isSet=ar;var fr,cr="@@__IMMUTABLE_SET__@@",hr=sr.prototype;function pr(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function _r(t,e){var r=Object.create(hr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function lr(){return fr||(fr=_r(Zt()))}function vr(t){return null==t?wr():yr(t)?t:wr().withMutations(function(e){var r=o(t);Ut(r.size),r.forEach(function(t){return e.add(t)})})}function yr(t){return ar(t)&&c(t)}hr[cr]=!0,hr.delete=hr.remove,hr.mergeDeep=hr.merge,hr.mergeDeepWith=hr.mergeWith,hr.withMutations=Pt.withMutations,hr.asMutable=Pt.asMutable,hr.asImmutable=Pt.asImmutable,hr.__empty=lr,hr.__make=_r,e(vr,sr),vr.of=function(){return this(arguments)},vr.fromKeys=function(t){return this(n(t).keySeq())},vr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},vr.isOrderedSet=yr;var dr,mr=vr.prototype;function gr(t,e){var r=Object.create(mr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function wr(){return dr||(dr=gr(Ae()))}function Sr(t){return null==t?Mr():Ir(t)?t:Mr().unshiftAll(t)}function Ir(t){return!(!t||!t[zr])}mr[l]=!0,mr.__empty=wr,mr.__make=gr,e(Sr,St),Sr.of=function(){return this(arguments)},Sr.prototype.toString=function(){return this.__toString("Stack [","]")},Sr.prototype.get=function(t,e){var r=this._head;for(t=E(this,t);r&&t--;)r=r.next;return r?r.value:e},Sr.prototype.peek=function(){return this._head&&this._head.value},Sr.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Er(t,e)},Sr.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Ut(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Er(e,r)},Sr.prototype.pop=function(){return this.slice(1)},Sr.prototype.unshift=function(){return this.push.apply(this,arguments)},Sr.prototype.unshiftAll=function(t){return this.pushAll(t)},Sr.prototype.shift=function(){return this.pop.apply(this,arguments)},Sr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mr()},Sr.prototype.slice=function(t,e){if(O(t,e,this.size))return this;var r=x(t,this.size),n=D(e,this.size);if(n!==this.size)return St.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Er(i,o)},Sr.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Er(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sr.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Sr.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new N(function(){if(n){var e=n.value;return n=n.next,K(t,r++,e)}return{value:void 0,done:!0}})},Sr.isStack=Ir;var br,zr="@@__IMMUTABLE_STACK__@@",qr=Sr.prototype;function Er(t,e,r,n){var i=Object.create(qr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Mr(){return br||(br=Er(0))}function Or(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}qr[zr]=!0,qr.withMutations=Pt.withMutations,qr.asMutable=Pt.asMutable,qr.asImmutable=Pt.asImmutable,qr.wasAltered=Pt.wasAltered,r.Iterator=N,Or(r,{toArray:function(){Ut(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new Ce(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Nt(this.toKeyedSeq())},toObject:function(){Ut(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return xe(this.toKeyedSeq())},toOrderedSet:function(){return vr(s(this)?this.valueSeq():this)},toSet:function(){return sr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Te(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sr(s(this)?this.valueSeq():this)},toList:function(){return pe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Ye(this,function(t,e){var r=s(t),i=[t].concat(e).map(function(t){return u(t)?r&&(t=n(t)):t=r?ut(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&s(o)||a(t)&&a(o))return o}var f=new tt(i);return r?f=f.toKeyedSeq():a(t)||(f=f.toSetSeq()),(f=f.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),f}(this,e))},includes:function(t){return this.some(function(e){return lt(e,t)})},entries:function(){return this.__iterator(j)},every:function(t,e){Ut(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return Ye(this,We(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Ut(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ut(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(A)},map:function(t,e){return Ye(this,Ke(this,t,e))},reduce:function(t,e,r){var n,i;return Ut(this.size),arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Ye(this,Le(this,!0))},slice:function(t,e){return Ye(this,Pe(this,t,e,!0))},some:function(t,e){return!this.every(Rr(t),e)},sort:function(t){return Ye(this,Je(this,t))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return q(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Nt().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}(this,t,e)},equals:function(t){return vt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(Ar).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Rr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(M)},flatMap:function(t,e){return Ye(this,function(t,e,r){var n=Ze(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Ye(this,Ve(this,t,!0))},fromEntrySeq:function(){return new Ue(this)},get:function(t,e){return this.find(function(e,r){return lt(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=rr(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,m):m)===m)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=s(t),i=(c(t)?xe():Nt()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return(t=t||[]).push(n?[u,o]:o),t})});var o=Ze(t);return i.map(function(e){return Ye(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},isSubset:function(t){return t="function"==typeof t.includes?t:r(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return lt(e,t)})},keySeq:function(){return this.toSeq().map(kr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return He(this,t)},maxBy:function(t,e){return He(this,e,t)},min:function(t){return He(this,t?jr(t):Ur)},minBy:function(t,e){return He(this,e?jr(e):Ur,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ye(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ye(this,Be(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Rr(t),e)},sortBy:function(t,e){return Ye(this,Je(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ye(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ye(this,function(t,e,r){var n=$e(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(j,i),s=!0;return new N(function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],f=i[1];return e.call(r,f,a,o)?n===j?t:K(n,a,f,t):(s=!1,{value:void 0,done:!0})})},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Rr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),r=s(t),n=e?1:0;return function(t,e){return e=bt(e,3432918353),e=bt(e<<15|e>>>-15,461845907),e=bt(e<<13|e>>>-13,5),e=bt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=zt((e=bt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+Nr(qt(t),qt(e))|0}:function(t,e){n=n+Nr(qt(t),qt(e))|0}:e?function(t){n=31*n+qt(t)|0}:function(t){n=n+qt(t)|0}),n)}(this))}});var xr=r.prototype;xr[h]=!0,xr[U]=xr.values,xr.__toJS=xr.toArray,xr.__toStringMapper=Cr,xr.inspect=xr.toSource=function(){return this.toString()},xr.chain=xr.flatMap,xr.contains=xr.includes,Or(n,{flip:function(){return Ye(this,Ne(this))},mapEntries:function(t,e){var r=this,n=0;return Ye(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Ye(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var Dr=n.prototype;function kr(t,e){return e}function Ar(t,e){return[e,t]}function Rr(t){return function(){return!t.apply(this,arguments)}}function jr(t){return function(){return-t.apply(this,arguments)}}function Cr(t){return"string"==typeof t?JSON.stringify(t):String(t)}function Tr(){return z(arguments)}function Ur(t,e){return t<e?1:t>e?-1:0}function Nr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Dr[p]=!0,Dr[U]=xr.entries,Dr.__toJS=xr.toObject,Dr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Cr(t)},Or(i,{toKeyedSeq:function(){return new je(this,!1)},filter:function(t,e){return Ye(this,We(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ye(this,Le(this,!1))},slice:function(t,e){return Ye(this,Pe(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=x(t,t<0?this.count():this.size);var n=this.slice(0,t);return Ye(this,1===r?n:n.concat(z(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ye(this,Ve(this,t,!1))},get:function(t,e){return(t=E(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=E(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ye(this,function(t,e){var r=$e(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(R,n),u=0;return new N(function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?K(r,u++,e):K(r,u++,i.value,i)})},r}(this,t))},interleave:function(){var t=[this].concat(z(arguments)),e=Fe(this.toSeq(),F.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Ye(this,r)},keySeq:function(){return mt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ye(this,Be(this,t,e,!1))},zip:function(){return Ye(this,Fe(this,Tr,[this].concat(z(arguments))))},zipWith:function(t){var e=z(arguments);return e[0]=this,Ye(this,Fe(this,t,e))}}),i.prototype[_]=!0,i.prototype[l]=!0,Or(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=xr.includes,o.prototype.contains=o.prototype.includes,Or(G,n.prototype),Or(F,i.prototype),Or(Y,o.prototype),Or(wt,n.prototype),Or(St,i.prototype),Or(It,o.prototype),{Iterable:r,Seq:H,Collection:gt,Map:Nt,OrderedMap:xe,List:pe,Stack:Sr,Set:sr,OrderedSet:vr,Record:nr,Range:mt,Repeat:yt,is:lt,fromJS:ht}}()},function(t,e,r){"use strict";r.r(e);var n=r(1),i=r.n(n),o=r(0),u=r.n(o),s=r(2);function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const f={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};class c extends i.a.Component{constructor(){super(...arguments),a(this,"handleChange",t=>{const e=this.props.field.get("valueType"),r=this.props.onChange,n="float"===e?parseFloat(t.target.value):parseInt(t.target.value,10);isNaN(n)?r(""):r(n)}),a(this,"isValid",()=>{const t=this.props,e=t.field,r=t.value,n=t.t,i=!!e.get("pattern",!1),o=e.get("min",!1),u=e.get("max",!1);let s;if(i)return!0;switch(!0){case!1!==o&&!1!==u&&(r<o||r>u):s={type:f.RANGE,message:n("editor.editorControlPane.widget.range",{fieldLabel:e.get("label",e.get("name")),minValue:o,maxValue:u})};break;case!1!==o&&r<o:s={type:f.RANGE,message:n("editor.editorControlPane.widget.min",{fieldLabel:e.get("label",e.get("name")),minValue:o})};break;case!1!==u&&r>u:s={type:f.RANGE,message:n("editor.editorControlPane.widget.max",{fieldLabel:e.get("label",e.get("name")),maxValue:u})};break;default:return!0}return{error:s}})}render(){const t=this.props,e=t.field,r=t.value,n=t.classNameWrapper,o=t.forID,u=t.setActiveStyle,s=t.setInactiveStyle,a=e.get("min",""),f=e.get("max",""),c=e.get("step","int"===e.get("valueType")?1:"");return i.a.createElement("input",{type:"number",id:o,className:n,onFocus:u,onBlur:s,value:r||"",step:c,min:a,max:f,onChange:this.handleChange})}}a(c,"propTypes",{field:r.n(s).a.map.isRequired,onChange:u.a.func.isRequired,classNameWrapper:u.a.string.isRequired,setActiveStyle:u.a.func.isRequired,setInactiveStyle:u.a.func.isRequired,value:u.a.node,forID:u.a.string,valueType:u.a.string,step:u.a.number,min:u.a.number,max:u.a.number,t:u.a.func.isRequired}),a(c,"defaultProps",{value:""});var h=r(3);const p=t=>{let e=t.value;return i.a.createElement(h.WidgetPreviewContainer,null,e)};p.propTypes={value:u.a.node};var _=p;r.d(e,"NetlifyCmsWidgetNumber",function(){return l}),r.d(e,"controlComponent",function(){return c}),r.d(e,"previewComponent",function(){return _});const l={controlComponent:c,previewComponent:_}}]).NetlifyCmsWidgetNumber});
//# sourceMappingURL=netlify-cms-widget-number.js.map
{
"name": "netlify-cms-widget-number",
"description": "Widget for editing numberic values in Netlify CMS.",
"version": "2.2.0",
"version": "2.3.0",
"homepage": "https://www.netlifycms.org/docs/widgets/#number",
"repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-number",
"bugs": "https://github.com/netlify/netlify-cms/issues",
"module": "dist/esm/index.js",
"main": "dist/netlify-cms-widget-number.js",

@@ -20,3 +21,4 @@ "license": "MIT",

"develop": "npm run watch",
"build": "cross-env NODE_ENV=production webpack"
"build": "cross-env NODE_ENV=production webpack",
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore src/**/__tests__/* --root-mode upward"
},

@@ -28,3 +30,3 @@ "peerDependencies": {

},
"gitHead": "96279ce1550478bb5f677dd80155db876638edd4"
"gitHead": "adfdf7bc18921020d86cf91411a2f6a1f03ef7ba"
}
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ValidationErrorTypes from 'netlify-cms-core/src/constants/validationErrorTypes';
const ValidationErrorTypes = {
PRESENCE: 'PRESENCE',
PATTERN: 'PATTERN',
RANGE: 'RANGE',
CUSTOM: 'CUSTOM',
};

@@ -6,0 +11,0 @@ export default class NumberControl extends React.Component {

Sorry, the diff of this file is not supported yet