@bbc/react-transcript-editor
Version:
A React component to make transcribing audio and video easier and faster.
1 lines • 472 kB
JavaScript
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=208)}([function(t,e){t.exports=require("react")},function(t,e,n){t.exports=n(28)()},function(t,e,n){(e=t.exports=n(13)(!1)).push([t.i," {\n}\n",""]),e.locals={"color-labs-red":"#a0372d","color-darkest-grey":"#282828","color-dark-grey":"#4a4a4a","color-mid-grey":"#696969","color-light-grey":"#767676","color-lightest-grey":"#f2f2f2","color-subt-green":"#69e3c2","color-light-shilo":"#E2A9A2"}},function(t,e,n){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 n(t){return a(t)?t:q(t)}function r(t){return s(t)?t:X(t)}function o(t){return c(t)?t:J(t)}function i(t){return a(t)&&!u(t)?t:G(t)}function a(t){return!(!t||!t[f])}function s(t){return!(!t||!t[p])}function c(t){return!(!t||!t[d])}function u(t){return s(t)||c(t)}function l(t){return!(!t||!t[h])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g=5,y=1<<g,v=y-1,m={},b={value:!1},_={value:!1};function w(t){return t.value=!1,t}function S(t){t&&(t.value=!0)}function k(){}function x(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function E(t){return void 0===t.size&&(t.size=t.__iterate(C)),t.size}function O(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?E(t)+e:e}function C(){return!0}function T(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function A(t,e){return M(t,e,0)}function I(t,e){return M(t,e,e)}function M(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var j=0,D=1,P=2,R="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",L=R||N;function B(t){this.next=t}function z(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function K(){return{value:void 0,done:!0}}function F(t){return!!V(t)}function U(t){return t&&"function"==typeof t.next}function W(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(R&&t[R]||t[N]);if("function"==typeof e)return e}function H(t){return t&&"number"==typeof t.length}function q(t){return null==t?it():a(t)?t.toSeq():function(t){var e=ct(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 X(t){return null==t?it().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():at(t)}function J(t){return null==t?it():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():st(t)}function G(t){return(null==t?it():a(t)?s(t)?t.entrySeq():t:st(t)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=j,B.VALUES=D,B.ENTRIES=P,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[L]=function(){return this},e(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(t,e){return ut(this,t,e,!0)},q.prototype.__iterator=function(t,e){return lt(this,t,e,!0)},e(X,q),X.prototype.toKeyedSeq=function(){return this},e(J,q),J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(t,e){return ut(this,t,e,!1)},J.prototype.__iterator=function(t,e){return lt(this,t,e,!1)},e(G,q),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},q.isSeq=ot,q.Keyed=X,q.Set=G,q.Indexed=J;var Y,$,Z,Q="@@__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 nt(t){this._iterable=t,this.size=t.length||t.size}function rt(t){this._iterator=t,this._iteratorCache=[]}function ot(t){return!(!t||!t[Q])}function it(){return Y||(Y=new tt([]))}function at(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():U(t)?new rt(t).fromEntrySeq():F(t)?new nt(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=ct(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ct(t){return H(t)?new tt(t):U(t)?new rt(t):F(t)?new nt(t):void 0}function ut(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function lt(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new B(function(){var t=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:z(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function ft(t,e){return e?function t(e,n,r,o){return Array.isArray(n)?e.call(o,r,J(n).map(function(r,o){return t(e,r,o,n)})):dt(n)?e.call(o,r,X(n).map(function(r,o){return t(e,r,o,n)})):n}(e,t,"",{"":t}):pt(t)}function pt(t){return Array.isArray(t)?J(t).map(pt).toList():dt(t)?X(t).map(pt).toMap():t}function dt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ht(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 gt(t,e){if(t===e)return!0;if(!a(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)||c(t)!==c(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&ht(o[1],t)&&(n||ht(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var f=!0,p=e.__iterate(function(e,r){if(n?!t.has(e):o?!ht(e,t.get(r,m)):!ht(t.get(r,m),e))return f=!1,!1});return f&&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($)return $;$=this}}function vt(t,e){if(!t)throw new Error(e)}function mt(t,e,n){if(!(this instanceof mt))return new mt(t,e,n);if(vt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function bt(){throw TypeError("Abstract")}function _t(){}function wt(){}function St(){}q.prototype[Q]=!0,e(tt,J),tt.prototype.get=function(t,e){return this.has(t)?this._array[O(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},tt.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new B(function(){return o>r?{value:void 0,done:!0}:z(t,o,n[e?r-o++:o++])})},e(et,X),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 n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},et.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new B(function(){var a=r[e?o-i:i];return i++>o?{value:void 0,done:!0}:z(t,a,n[a])})},et.prototype[h]=!0,e(nt,J),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=W(n),o=0;if(U(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,o++,this););return o},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=W(n);if(!U(r))return new B(K);var o=0;return new B(function(){var e=r.next();return e.done?e:z(t,o++,e.value)})},e(rt,J),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new B(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return z(t,o,r[o++])})},e(yt,J),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 ht(this._value,t)},yt.prototype.slice=function(t,e){var n=this.size;return T(t,e,n)?this:new yt(this._value,I(e,n)-A(t,n))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return ht(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return ht(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},yt.prototype.__iterator=function(t,e){var n=this,r=0;return new B(function(){return r<n.size?z(t,r++,n._value):{value:void 0,done:!0}})},yt.prototype.equals=function(t){return t instanceof yt?ht(this._value,t._value):gt(t)},e(mt,J),mt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},mt.prototype.get=function(t,e){return this.has(t)?this._start+O(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 T(t,e,this.size)?this:(t=A(t,this.size),(e=I(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 n=e/this._step;if(n>=0&&n<this.size)return n}return-1},mt.prototype.lastIndexOf=function(t){return this.indexOf(t)},mt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},mt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new B(function(){var a=o;return o+=e?-r:r,i>n?{value:void 0,done:!0}:z(t,i++,a)})},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:gt(this,t)},e(bt,n),e(_t,bt),e(wt,bt),e(St,bt),bt.Keyed=_t,bt.Indexed=wt,bt.Set=St;var kt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function xt(t){return t>>>1&1073741824|3221225471&t}function Et(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,n,r=typeof t;if("number"===r){var o=0|t;for(o!==t&&(o^=4294967295*t);t>4294967295;)o^=t/=4294967295;return xt(o)}if("string"===r)return t.length>Dt?(void 0===(n=Nt[e=t])&&(n=Ot(e),Rt===Pt&&(Rt=0,Nt={}),Rt++,Nt[e]=n),n):Ot(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===r)return function(t){var e;if(It&&void 0!==(e=Ct.get(t)))return e;if(void 0!==(e=t[jt]))return e;if(!At){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[jt]))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=++Mt,1073741824&Mt&&(Mt=0),It)Ct.set(t,e);else{if(void 0!==Tt&&!1===Tt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(At)Object.defineProperty(t,jt,{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[jt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[jt]=e}}return e}(t);if("function"==typeof t.toString)return Ot(t.toString());throw new Error("Value type "+r+" cannot be hashed.")}function Ot(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return xt(e)}var Ct,Tt=Object.isExtensible,At=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),It="function"==typeof WeakMap;It&&(Ct=new WeakMap);var Mt=0,jt="__immutablehash__";"function"==typeof Symbol&&(jt=Symbol(jt));var Dt=16,Pt=255,Rt=0,Nt={};function Lt(t){vt(t!==1/0,"Cannot perform this action with an infinite size.")}function Bt(t){return null==t?Zt():zt(t)&&!l(t)?t:Zt().withMutations(function(e){var n=r(t);Lt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function zt(t){return!(!t||!t[Ft])}e(Bt,_t),Bt.prototype.toString=function(){return this.__toString("Map {","}")},Bt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Bt.prototype.set=function(t,e){return Qt(this,t,e)},Bt.prototype.setIn=function(t,e){return this.updateIn(t,m,function(){return e})},Bt.prototype.remove=function(t){return Qt(this,t,m)},Bt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return m})},Bt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Bt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,o){var i=e===m,a=n.next();if(a.done){var s=i?r:e,c=o(s);return c===s?e:c}vt(i||e&&e.set,"invalid keyPath");var u=a.value,l=i?m:e.get(u,m),f=t(l,n,r,o);return f===l?e:f===m?e.remove(u):(i?Zt():e).set(u,f)}(this,nn(t),e,n);return r===m?void 0:r},Bt.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()},Bt.prototype.merge=function(){return re(this,void 0,arguments)},Bt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return re(this,e,n)},Bt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},Bt.prototype.mergeDeep=function(){return re(this,oe,arguments)},Bt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return re(this,ie(e),n)},Bt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},Bt.prototype.sort=function(t){return Ae(He(this,t))},Bt.prototype.sortBy=function(t,e){return Ae(He(this,e,t))},Bt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Bt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Bt.prototype.asImmutable=function(){return this.__ensureOwner()},Bt.prototype.wasAltered=function(){return this.__altered},Bt.prototype.__iterator=function(t,e){return new Jt(this,t,e)},Bt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Bt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?$t(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Bt.isMap=zt;var Kt,Ft="@@__IMMUTABLE_MAP__@@",Ut=Bt.prototype;function Wt(t,e){this.ownerID=t,this.entries=e}function Vt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Ht(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function qt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Xt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Jt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Yt(t._root)}function Gt(t,e){return z(t,e[0],e[1])}function Yt(t,e){return{node:t,index:0,__prev:e}}function $t(t,e,n,r){var o=Object.create(Ut);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zt(){return Kt||(Kt=$t(0))}function Qt(t,e,n){var r,o;if(t._root){var i=w(b),a=w(_);if(r=te(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===m?-1:1:0)}else{if(n===m)return t;o=1,r=new Wt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?$t(o,r):Zt()}function te(t,e,n,r,o,i,a,s){return t?t.update(e,n,r,o,i,a,s):i===m?t:(S(s),S(a),new Xt(e,r,[o,i]))}function ee(t){return t.constructor===Xt||t.constructor===qt}function ne(t,e,n,r,o){if(t.keyHash===r)return new qt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v,c=a===s?[ne(t,e,n+g,r,o)]:(i=new Xt(e,r,o),a<s?[t,i]:[i,t]);return new Vt(e,1<<a|1<<s,c)}function re(t,e,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map(function(t){return ft(t)})),o.push(c)}return ae(t,e,o)}function oe(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):ht(t,e)?t:e}function ie(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return ht(e,o)?e:o}}function ae(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,m,function(t){return t===m?n:e(t,n,r)})}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)}):t.constructor(n[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 ce(t,e,n,r){var o=r?t:x(t);return o[e]=n,o}Ut[Ft]=!0,Ut.delete=Ut.remove,Ut.removeIn=Ut.deleteIn,Wt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ht(n,o[i][0]))return o[i][1];return r},Wt.prototype.update=function(t,e,n,r,o,i,a){for(var s=o===m,c=this.entries,u=0,l=c.length;u<l&&!ht(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=ue)return function(t,e,n,r){t||(t=new k);for(var o=new Xt(t,Et(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,c,r,o);var p=t&&t===this.ownerID,d=p?c:x(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Wt(t,d)}},Vt.prototype.get=function(t,e,n,r){void 0===e&&(e=Et(n));var o=1<<((0===t?e:e>>>t)&v),i=this.bitmap;return 0==(i&o)?r:this.nodes[se(i&o-1)].get(t+g,e,n,r)},Vt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&v,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===m)return this;var f=se(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=te(d,t,e+g,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=le)return function(t,e,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Ht(t,i+1,a)}(t,p,u,s,h);if(l&&!h&&2===p.length&&ee(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&ee(h))return h;var b=t&&t===this.ownerID,_=l?h?u:u^c:u|c,w=l?h?ce(p,f,h,b):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(p,f,b):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(p,f,h,b);return b?(this.bitmap=_,this.nodes=w,this):new Vt(t,_,w)},Ht.prototype.get=function(t,e,n,r){void 0===e&&(e=Et(n));var o=(0===t?e:e>>>t)&v,i=this.nodes[o];return i?i.get(t+g,e,n,r):r},Ht.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&v,c=o===m,u=this.nodes,l=u[s];if(c&&!l)return this;var f=te(l,t,e+g,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<fe)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Vt(t,o,a)}(t,u,p,s)}else p++;var d=t&&t===this.ownerID,h=ce(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Ht(t,p,h)},qt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ht(n,o[i][0]))return o[i][1];return r},qt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Et(r));var s=o===m;if(n!==this.keyHash)return s?this:(S(a),S(i),ne(this,t,e,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ht(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===l)return new Xt(t,this.keyHash,c[1^u]);var p=t&&t===this.ownerID,d=p?c:x(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new qt(t,this.keyHash,d)},Xt.prototype.get=function(t,e,n,r){return ht(n,this.entry[0])?this.entry[1]:r},Xt.prototype.update=function(t,e,n,r,o,i,a){var s=o===m,c=ht(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Xt(t,this.keyHash,[r,o]):(S(i),ne(this,t,e,Et(r),[r,o])))},Wt.prototype.iterate=qt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Vt.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Xt.prototype.iterate=function(t,e){return t(this.entry)},e(Jt,B),Jt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return Gt(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return Gt(t,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Gt(t,i.entry);e=this._stack=Yt(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ue=y/4,le=y/2,fe=y/4;function pe(t){var e=Se();if(null==t)return e;if(de(t))return t;var n=o(t),r=n.size;return 0===r?e:(Lt(r),r>0&&r<y?we(0,r,g,null,new ye(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function de(t){return!(!t||!t[he])}e(pe,wt),pe.of=function(){return this(arguments)},pe.prototype.toString=function(){return this.__toString("List [","]")},pe.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var n=Ee(this,t+=this._origin);return n&&n.array[t&v]}return e},pe.prototype.set=function(t,e){return function(t,e,n){if((e=O(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Oe(t,e).set(0,n):Oe(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=w(_);return e>=Te(t._capacity)?r=ke(r,t.__ownerID,0,e,n,i):o=ke(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):we(t._origin,t._capacity,t._level,o,r):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=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Se()},pe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Oe(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},pe.prototype.pop=function(){return Oe(this,0,-1)},pe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Oe(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},pe.prototype.shift=function(){return Oe(this,1)},pe.prototype.merge=function(){return Ce(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Ce(this,e,n)},pe.prototype.mergeDeep=function(){return Ce(this,oe,arguments)},pe.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Ce(this,ie(e),n)},pe.prototype.setSize=function(t){return Oe(this,0,t)},pe.prototype.slice=function(t,e){var n=this.size;return T(t,e,n)?this:Oe(this,A(t,n),I(e,n))},pe.prototype.__iterator=function(t,e){var n=0,r=_e(this,e);return new B(function(){var e=r();return e===be?{value:void 0,done:!0}:z(t,n++,e)})},pe.prototype.__iterate=function(t,e){for(var n,r=0,o=_e(this,e);(n=o())!==be&&!1!==t(n,r++,this););return r},pe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?we(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},pe.isList=de;var he="@@__IMMUTABLE_LIST__@@",ge=pe.prototype;function ye(t,e){this.array=t,this.ownerID=e}ge[he]=!0,ge.delete=ge.remove,ge.setIn=Ut.setIn,ge.deleteIn=ge.removeIn=Ut.removeIn,ge.update=Ut.update,ge.updateIn=Ut.updateIn,ge.mergeIn=Ut.mergeIn,ge.mergeDeepIn=Ut.mergeDeepIn,ge.withMutations=Ut.withMutations,ge.asMutable=Ut.asMutable,ge.asImmutable=Ut.asImmutable,ge.wasAltered=Ut.wasAltered,ye.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&v;if(r>=this.array.length)return new ye([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-g,n))===a&&i)return this}if(i&&!o)return this;var s=xe(this,t);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},ye.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&v;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-g,n))===i&&o===this.array.length-1)return this}var a=xe(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ve,me,be={};function _e(t,e){var n=t._origin,r=t._capacity,o=Te(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;return u>y&&(u=y),function(){if(c===u)return be;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var t=s();if(t!==be)return t;s=null}if(u===l)return be;var n=e?--l:u++;s=a(c&&c[n],o-g,i+(n<<o))}}}(t,s,c)}}function we(t,e,n,r,o,i,a){var s=Object.create(ge);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Se(){return ve||(ve=we(0,0,g))}function ke(t,e,n,r,o,i){var a,s=r>>>n&v,c=t&&s<t.array.length;if(!c&&void 0===o)return t;if(n>0){var u=t&&t.array[s],l=ke(u,e,n-g,r,o,i);return l===u?t:((a=xe(t,e)).array[s]=l,a)}return c&&t.array[s]===o?t:(S(i),a=xe(t,e),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function xe(t,e){return e&&t&&e===t.ownerID?t:new ye(t?t.array.slice():[],e)}function Ee(t,e){if(e>=Te(t._capacity))return t._tail;if(e<1<<t._level+g){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&v],r-=g;return n}}function Oe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new k,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var c=t._level,u=t._root,l=0;a+l<0;)u=new ye(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=g);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Te(i),p=Te(s);p>=1<<c+g;)u=new ye(u&&u.array.length?[u]:[],r),c+=g;var d=t._tail,h=p<f?Ee(t,s-1):p>f?new ye([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var y=u=xe(u,r),m=c;m>g;m-=g){var b=f>>>m&v;y=y.array[b]=xe(y.array[b],r)}y.array[f>>>g&v]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=g,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var _=a>>>c&v;if(_!==p>>>c&v)break;_&&(l+=(1<<c)*_),c-=g,u=u.array[_]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=c,t._root=u,t._tail=h,t.__hash=void 0,t.__altered=!0,t):we(a,s,c,u,h)}function Ce(t,e,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map(function(t){return ft(t)})),r.push(u)}return i>t.size&&(t=t.setSize(i)),ae(t,e,r)}function Te(t){return t<y?0:t-1>>>g<<g}function Ae(t){return null==t?je():Ie(t)?t:je().withMutations(function(e){var n=r(t);Lt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Ie(t){return zt(t)&&l(t)}function Me(t,e,n,r){var o=Object.create(Ae.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function je(){return me||(me=Me(Zt(),Se()))}function De(t,e,n){var r,o,i=t._map,a=t._list,s=i.get(e),c=void 0!==s;if(n===m){if(!c)return t;a.size>=y&&a.size>=2*i.size?(o=a.filter(function(t,e){return void 0!==t&&s!==e}),r=o.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):Me(r,o)}function Pe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Re(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function Le(t){this._iter=t,this.size=t.size}function Be(t){var e=Qe(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=tn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===P){var r=t.__iterator(e,n);return new B(function(){var t=r.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===D?j:D,n)},e}function ze(t,e,n){var r=Qe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,m);return i===m?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(P,o);return new B(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,e.call(n,a[1],s,t),o)})},r}function Ke(t,e){var n=Qe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Be(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=tn,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Fe(t,e,n,r){var o=Qe(t);return r&&(o.has=function(r){var o=t.get(r,m);return o!==m&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,m);return i!==m&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate(function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(P,i),s=0;return new B(function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(e.call(n,l,u,t))return z(o,r?u:s++,l,i)}})},o}function Ue(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),T(e,n,o))return t;var i=A(e,o),a=I(n,o);if(i!=i||a!=a)return Ue(t.toSeq().cacheResult(),e,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=Qe(t);return u.size=0===s?s:t.size&&s||void 0,!r&&ot(t)&&s>=0&&(u.get=function(e,n){return(e=O(this,e))>=0&&e<s?t.get(e+i,n):n}),u.__iterateUncached=function(e,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,c=!0,u=0;return t.__iterate(function(t,n){if(!c||!(c=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==s}),u},u.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var o=0!==s&&t.__iterator(e,n),a=0,c=0;return new B(function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var t=o.next();return r||e===D?t:z(e,c-1,e===j?void 0:t.value[1],t)})},u}function We(t,e,n,r){var o=Qe(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate(function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(P,i),c=!0,u=0;return new B(function(){var t,i,l;do{if((t=s.next()).done)return r||o===D?t:z(o,u++,o===j?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],c&&(c=e.call(n,l,i,a))}while(c);return o===P?t:z(o,i,l,t)})},o}function Ve(t,e,n){var r=Qe(t);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function t(c,u){var l=this;c.__iterate(function(o,c){return(!e||u<e)&&a(o)?t(o,u+1):!1===r(o,n?c:i++,l)&&(s=!0),!s},o)}(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),s=[],c=0;return new B(function(){for(;i;){var t=i.next();if(!1===t.done){var u=t.value;if(r===P&&(u=u[1]),e&&!(s.length<e)||!a(u))return n?t:z(r,c++,u,t);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}})},r}function He(t,e,n){e||(e=en);var r=s(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?X(i):c(t)?J(i):G(i)}function qe(t,e,n){if(e||(e=en),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return Xe(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return Xe(e,t,n)?n:t})}function Xe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Je(t,e,r){var o=Qe(t);return o.size=new tt(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(D,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=n(t),W(o?t.reverse():t)}),a=0,s=!1;return new B(function(){var n;return s||(n=i.map(function(t){return t.next()}),s=n.some(function(t){return t.done})),s?{value:void 0,done:!0}:z(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function Ge(t,e){return ot(t)?e:t.constructor(e)}function Ye(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function $e(t){return Lt(t.size),E(t)}function Ze(t){return s(t)?r:c(t)?o:i}function Qe(t){return Object.create((s(t)?X:c(t)?J:G).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function en(t,e){return t>e?1:t<e?-1:0}function nn(t){var e=W(t);if(!e){if(!H(t))throw new TypeError("Expected iterable or array-like: "+t);e=W(n(t))}return e}function rn(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){vt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(t){}}(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=Bt(i)},o=r.prototype=Object.create(on);return o.constructor=r,r}e(Ae,Bt),Ae.of=function(){return this(arguments)},Ae.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ae.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):je()},Ae.prototype.set=function(t,e){return De(this,t,e)},Ae.prototype.remove=function(t){return De(this,t,m)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ae.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Ae.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ae.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Me(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Ae.isOrderedMap=Ie,Ae.prototype[h]=!0,Ae.prototype.delete=Ae.prototype.remove,e(Pe,X),Pe.prototype.get=function(t,e){return this._iter.get(t,e)},Pe.prototype.has=function(t){return this._iter.has(t)},Pe.prototype.valueSeq=function(){return this._iter.valueSeq()},Pe.prototype.reverse=function(){var t=this,e=Ke(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Pe.prototype.map=function(t,e){var n=this,r=ze(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Pe.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?$e(this):0,function(o){return t(o,e?--n:n++,r)}),e)},Pe.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(D,e),r=e?$e(this):0;return new B(function(){var o=n.next();return o.done?o:z(t,e?--r:r++,o.value,o)})},Pe.prototype[h]=!0,e(Re,J),Re.prototype.includes=function(t){return this._iter.includes(t)},Re.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Re.prototype.__iterator=function(t,e){var n=this._iter.__iterator(D,e),r=0;return new B(function(){var e=n.next();return e.done?e:z(t,r++,e.value,e)})},e(Ne,G),Ne.prototype.has=function(t){return this._iter.includes(t)},Ne.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Ne.prototype.__iterator=function(t,e){var n=this._iter.__iterator(D,e);return new B(function(){var e=n.next();return e.done?e:z(t,e.value,e.value,e)})},e(Le,X),Le.prototype.entrySeq=function(){return this._iter.toSeq()},Le.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ye(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Le.prototype.__iterator=function(t,e){var n=this._iter.__iterator(D,e);return new B(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ye(r);var o=a(r);return z(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},Re.prototype.cacheResult=Pe.prototype.cacheResult=Ne.prototype.cacheResult=Le.prototype.cacheResult=tn,e(rn,_t),rn.prototype.toString=function(){return this.__toString(sn(this)+" {","}")},rn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},rn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},rn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=an(this,Zt()))},rn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+sn(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:an(this,n)},rn.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:an(this,e)},rn.prototype.wasAltered=function(){return this._map.wasAltered()},rn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},rn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},rn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?an(this,e,t):(this.__ownerID=t,this._map=e,this)};var on=rn.prototype;function an(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function sn(t){return t._name||t.constructor.name||"Record"}function cn(t){return null==t?gn():un(t)&&!l(t)?t:gn().withMutations(function(e){var n=i(t);Lt(n.size),n.forEach(function(t){return e.add(t)})})}function un(t){return!(!t||!t[fn])}on.delete=on.remove,on.deleteIn=on.removeIn=Ut.removeIn,on.merge=Ut.merge,on.mergeWith=Ut.mergeWith,on.mergeIn=Ut.mergeIn,on.mergeDeep=Ut.mergeDeep,on.mergeDeepWith=Ut.mergeDeepWith,on.mergeDeepIn=Ut.mergeDeepIn,on.setIn=Ut.setIn,on.update=Ut.update,on.updateIn=Ut.updateIn,on.withMutations=Ut.withMutations,on.asMutable=Ut.asMutable,on.asImmutable=Ut.asImmutable,e(cn,St),cn.of=function(){return this(arguments)},cn.fromKeys=function(t){return this(r(t).keySeq())},cn.prototype.toString=function(){return this.__toString("Set {","}")},cn.prototype.has=function(t){return this._map.has(t)},cn.prototype.add=function(t){return dn(this,this._map.set(t,!0))},cn.prototype.remove=function(t){return dn(this,this._map.remove(t))},cn.prototype.clear=function(){return dn(this,this._map.clear())},cn.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 n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},cn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},cn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},cn.prototype.merge=function(){return this.union.apply(this,arguments)},cn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},cn.prototype.sort=function(t){return yn(He(this,t))},cn.prototype.sortBy=function(t,e){return yn(He(this,e,t))},cn.prototype.wasAltered=function(){return this._map.wasAltered()},cn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},cn.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},cn.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)},cn.isSet=un;var ln,fn="@@__IMMUTABLE_SET__@@",pn=cn.prototype;function dn(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 hn(t,e){var n=Object.create(pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function gn(){return ln||(ln=hn(Zt()))}function yn(t){return null==t?wn():vn(t)?t:wn().withMutations(function(e){var n=i(t);Lt(n.size),n.forEach(function(t){return e.add(t)})})}function vn(t){return un(t)&&l(t)}pn[fn]=!0,pn.delete=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=Ut.withMutations,pn.asMutable=Ut.asMutable,pn.asImmutable=Ut.asImmutable,pn.__empty=gn,pn.__make=hn,e(yn,cn),yn.of=function(){return this(arguments)},yn.fromKeys=function(t){return this(r(t).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=vn;var mn,bn=yn.prototype;function _n(t,e){var n=Object.create(bn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function wn(){return mn||(mn=_n(je()))}function Sn(t){return null==t?Tn():kn(t)?t:Tn().unshiftAll(t)}function kn(t){return!(!t||!t[En])}bn[h]=!0,bn.__empty=wn,bn.__make=_n,e(Sn,wt),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(t,e){var n=this._head;for(t=O(this,t);n&&t--;)n=n.next;return n?n.value:e},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Cn(t,e)},Sn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Lt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(e,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(t){return this.pushAll(t)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.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):Tn()},Sn.prototype.slice=function(t,e){if(T(t,e,this.size))return this;var n=A(t,this.size),r=I(e,this.size);if(r!==this.size)return wt.prototype.slice.call(this,t,e);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Cn(o,i)},Sn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Cn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new B(function(){if(r){var e=r.value;return r=r.next,z(t,n++,e)}return{value:void 0,done:!0}})},Sn.isStack=kn;var xn,En="@@__IMMUTABLE_STACK__@@",On=Sn.prototype;function Cn(t,e,n,r){var o=Object.create(On);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Tn(){return xn||(xn=Cn(0))}function An(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}On[En]=!0,On.withMutations=Ut.withMutations,On.asMutable=Ut.asMutable,On.asImmutable=Ut.asImmutable,On.wasAltered=Ut.wasAltered,n.Iterator=B,An(n,{toArray:function(){Lt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Re(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 Pe(this,!0)},toMap:function(){return Bt(this.toKeyedSeq())},toObject:function(){Lt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Ae(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ne(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(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 Ge(this,function(t,e){var n=s(t),o=[t].concat(e).map(function(t){return a(t)?n&&(t=r(t)):t=n?at(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&s(i)||c(t)&&c(i))return i}var u=new tt(o);return n?u=u.toKeyedSeq():c(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),u}(this,e))},includes:function(t){return this.some(function(e){return ht(e,t)})},entries:function(){return this.__iterator(P)},every:function(t,e){Lt(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Ge(this,Fe(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Lt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Lt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(j)},map:function(t,e){return Ge(this,ze(this,t,e))},reduce:function(t,e,n){var r,o;return Lt(this.size),arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ge(this,Ke(this,!0))},slice:function(t,e){return Ge(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(Pn(t),e)},sort:function(t){return Ge(this,He(this,t)