@bbc/react-transcript-editor
Version:
A React component to make transcribing audio and video easier and faster.
1 lines • 1.93 MB
JavaScript
module.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=232)}([function(e,n){e.exports=require("react")},function(e,n,t){e.exports=t(31)()},function(e,n,t){"use strict";var r=t(119),o=t(37),i=t(19),A=t(135),s=t(29),l=t(61),a=t(64),c=t(91),u=t(136),p=t(93),m=t(52),C=t(16),d=t(89),f=t(7),h=t(71),x=t(107),g=t(34),I=t(196),b={Editor:u,EditorBlock:p,EditorState:f,CompositeDecorator:A,Entity:m,EntityInstance:d,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:l,SelectionState:g,AtomicBlockUtils:r,KeyBindingUtil:h,Modifier:C,RichUtils:x,DefaultDraftBlockRenderMap:a,DefaultDraftInlineStyle:c,convertFromHTML:t(105),convertFromRaw:t(199),convertToRaw:I,genKey:t(25),getDefaultKeyBinding:t(108),getVisibleSelectionRect:t(204)};e.exports=b},function(e,n,t){e.exports=function(){"use strict";var e=Array.prototype.slice;function n(e,n){n&&(e.prototype=Object.create(n.prototype)),e.prototype.constructor=e}function t(e){return A(e)?e:N(e)}function r(e){return s(e)?e:j(e)}function o(e){return l(e)?e:W(e)}function i(e){return A(e)&&!a(e)?e:L(e)}function A(e){return!(!e||!e[u])}function s(e){return!(!e||!e[p])}function l(e){return!(!e||!e[m])}function a(e){return s(e)||l(e)}function c(e){return!(!e||!e[C])}n(r,t),n(o,t),n(i,t),t.isIterable=A,t.isKeyed=s,t.isIndexed=l,t.isAssociative=a,t.isOrdered=c,t.Keyed=r,t.Indexed=o,t.Set=i;var u="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",m="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",d={},f={value:!1},h={value:!1};function x(e){return e.value=!1,e}function g(e){e&&(e.value=!0)}function I(){}function b(e,n){n=n||0;for(var t=Math.max(0,e.length-n),r=new Array(t),o=0;o<t;o++)r[o]=e[o+n];return r}function y(e){return void 0===e.size&&(e.size=e.__iterate(v)),e.size}function E(e,n){if("number"!=typeof n){var t=n>>>0;if(""+t!==n||4294967295===t)return NaN;n=t}return n<0?y(e)+n:n}function v(){return!0}function w(e,n,t){return(0===e||void 0!==t&&e<=-t)&&(void 0===n||void 0!==t&&n>=t)}function B(e,n){return D(e,n,0)}function _(e,n){return D(e,n,n)}function D(e,n,t){return void 0===e?t:e<0?Math.max(0,n+e):void 0===n?e:Math.min(n,e)}var S,M,O,k="function"==typeof Symbol&&Symbol.iterator,T=k||"@@iterator";function P(e){this.next=e}function K(e,n,t,r){var o=0===e?n:1===e?t:[n,t];return r?r.value=o:r={value:o,done:!1},r}function Q(){return{value:void 0,done:!0}}function U(e){return!!Y(e)}function R(e){return e&&"function"==typeof e.next}function G(e){var n=Y(e);return n&&n.call(e)}function Y(e){var n=e&&(k&&e[k]||e["@@iterator"]);if("function"==typeof n)return n}function F(e){return e&&"number"==typeof e.length}function N(e){return null==e?J():A(e)?e.toSeq():function(e){var n=ee(e)||"object"==typeof e&&new X(e);if(!n)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return n}(e)}function j(e){return null==e?J().toKeyedSeq():A(e)?s(e)?e.toSeq():e.fromEntrySeq():Z(e)}function W(e){return null==e?J():A(e)?s(e)?e.entrySeq():e.toIndexedSeq():$(e)}function L(e){return(null==e?J():A(e)?s(e)?e.entrySeq():e:$(e)).toSetSeq()}function z(e){this._array=e,this.size=e.length}function X(e){var n=Object.keys(e);this._object=e,this._keys=n,this.size=n.length}function H(e){this._iterable=e,this.size=e.length||e.size}function q(e){this._iterator=e,this._iteratorCache=[]}function V(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function J(){return S||(S=new z([]))}function Z(e){var n=Array.isArray(e)?new z(e).fromEntrySeq():R(e)?new q(e).fromEntrySeq():U(e)?new H(e).fromEntrySeq():"object"==typeof e?new X(e):void 0;if(!n)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return n}function $(e){var n=ee(e);if(!n)throw new TypeError("Expected Array or iterable object of values: "+e);return n}function ee(e){return F(e)?new z(e):R(e)?new q(e):U(e)?new H(e):void 0}function ne(e,n,t,r){var o=e._cache;if(o){for(var i=o.length-1,A=0;A<=i;A++){var s=o[t?i-A:A];if(!1===n(s[1],r?s[0]:A,e))return A+1}return A}return e.__iterateUncached(n,t)}function te(e,n,t,r){var o=e._cache;if(o){var i=o.length-1,A=0;return new P((function(){var e=o[t?i-A:A];return A++>i?{value:void 0,done:!0}:K(n,r?e[0]:A-1,e[1])}))}return e.__iteratorUncached(n,t)}function re(e,n){return n?function e(n,t,r,o){return Array.isArray(t)?n.call(o,r,W(t).map((function(r,o){return e(n,r,o,t)}))):ie(t)?n.call(o,r,j(t).map((function(r,o){return e(n,r,o,t)}))):t}(n,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?W(e).map(oe).toList():ie(e)?j(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function Ae(e,n){if(e===n||e!=e&&n!=n)return!0;if(!e||!n)return!1;if("function"==typeof e.valueOf&&"function"==typeof n.valueOf){if((e=e.valueOf())===(n=n.valueOf())||e!=e&&n!=n)return!0;if(!e||!n)return!1}return!("function"!=typeof e.equals||"function"!=typeof n.equals||!e.equals(n))}function se(e,n){if(e===n)return!0;if(!A(n)||void 0!==e.size&&void 0!==n.size&&e.size!==n.size||void 0!==e.__hash&&void 0!==n.__hash&&e.__hash!==n.__hash||s(e)!==s(n)||l(e)!==l(n)||c(e)!==c(n))return!1;if(0===e.size&&0===n.size)return!0;var t=!a(e);if(c(e)){var r=e.entries();return n.every((function(e,n){var o=r.next().value;return o&&Ae(o[1],e)&&(t||Ae(o[0],n))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===n.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=n,n=i}var u=!0,p=n.__iterate((function(n,r){if(t?!e.has(n):o?!Ae(n,e.get(r,d)):!Ae(e.get(r,d),n))return u=!1,!1}));return u&&e.size===p}function le(e,n){if(!(this instanceof le))return new le(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(M)return M;M=this}}function ae(e,n){if(!e)throw new Error(n)}function ce(e,n,t){if(!(this instanceof ce))return new ce(e,n,t);if(ae(0!==t,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),t=void 0===t?1:Math.abs(t),n<e&&(t=-t),this._start=e,this._end=n,this._step=t,this.size=Math.max(0,Math.ceil((n-e)/t-1)+1),0===this.size){if(O)return O;O=this}}function ue(){throw TypeError("Abstract")}function pe(){}function me(){}function Ce(){}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[T]=function(){return this},n(N,t),N.of=function(){return N(arguments)},N.prototype.toSeq=function(){return this},N.prototype.toString=function(){return this.__toString("Seq {","}")},N.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},N.prototype.__iterate=function(e,n){return ne(this,e,n,!0)},N.prototype.__iterator=function(e,n){return te(this,e,n,!0)},n(j,N),j.prototype.toKeyedSeq=function(){return this},n(W,N),W.of=function(){return W(arguments)},W.prototype.toIndexedSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq [","]")},W.prototype.__iterate=function(e,n){return ne(this,e,n,!1)},W.prototype.__iterator=function(e,n){return te(this,e,n,!1)},n(L,N),L.of=function(){return L(arguments)},L.prototype.toSetSeq=function(){return this},N.isSeq=V,N.Keyed=j,N.Set=L,N.Indexed=W,N.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,n(z,W),z.prototype.get=function(e,n){return this.has(e)?this._array[E(this,e)]:n},z.prototype.__iterate=function(e,n){for(var t=this._array,r=t.length-1,o=0;o<=r;o++)if(!1===e(t[n?r-o:o],o,this))return o+1;return o},z.prototype.__iterator=function(e,n){var t=this._array,r=t.length-1,o=0;return new P((function(){return o>r?{value:void 0,done:!0}:K(e,o,t[n?r-o++:o++])}))},n(X,j),X.prototype.get=function(e,n){return void 0===n||this.has(e)?this._object[e]:n},X.prototype.has=function(e){return this._object.hasOwnProperty(e)},X.prototype.__iterate=function(e,n){for(var t=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var A=r[n?o-i:i];if(!1===e(t[A],A,this))return i+1}return i},X.prototype.__iterator=function(e,n){var t=this._object,r=this._keys,o=r.length-1,i=0;return new P((function(){var A=r[n?o-i:i];return i++>o?{value:void 0,done:!0}:K(e,A,t[A])}))},X.prototype[C]=!0,n(H,W),H.prototype.__iterateUncached=function(e,n){if(n)return this.cacheResult().__iterate(e,n);var t=G(this._iterable),r=0;if(R(t))for(var o;!(o=t.next()).done&&!1!==e(o.value,r++,this););return r},H.prototype.__iteratorUncached=function(e,n){if(n)return this.cacheResult().__iterator(e,n);var t=G(this._iterable);if(!R(t))return new P(Q);var r=0;return new P((function(){var n=t.next();return n.done?n:K(e,r++,n.value)}))},n(q,W),q.prototype.__iterateUncached=function(e,n){if(n)return this.cacheResult().__iterate(e,n);for(var t,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(t=r.next()).done;){var A=t.value;if(o[i]=A,!1===e(A,i++,this))break}return i},q.prototype.__iteratorUncached=function(e,n){if(n)return this.cacheResult().__iterator(e,n);var t=this._iterator,r=this._iteratorCache,o=0;return new P((function(){if(o>=r.length){var n=t.next();if(n.done)return n;r[o]=n.value}return K(e,o,r[o++])}))},n(le,W),le.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},le.prototype.get=function(e,n){return this.has(e)?this._value:n},le.prototype.includes=function(e){return Ae(this._value,e)},le.prototype.slice=function(e,n){var t=this.size;return w(e,n,t)?this:new le(this._value,_(n,t)-B(e,t))},le.prototype.reverse=function(){return this},le.prototype.indexOf=function(e){return Ae(this._value,e)?0:-1},le.prototype.lastIndexOf=function(e){return Ae(this._value,e)?this.size:-1},le.prototype.__iterate=function(e,n){for(var t=0;t<this.size;t++)if(!1===e(this._value,t,this))return t+1;return t},le.prototype.__iterator=function(e,n){var t=this,r=0;return new P((function(){return r<t.size?K(e,r++,t._value):{value:void 0,done:!0}}))},le.prototype.equals=function(e){return e instanceof le?Ae(this._value,e._value):se(e)},n(ce,W),ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ce.prototype.get=function(e,n){return this.has(e)?this._start+E(this,e)*this._step:n},ce.prototype.includes=function(e){var n=(e-this._start)/this._step;return n>=0&&n<this.size&&n===Math.floor(n)},ce.prototype.slice=function(e,n){return w(e,n,this.size)?this:(e=B(e,this.size),(n=_(n,this.size))<=e?new ce(0,0):new ce(this.get(e,this._end),this.get(n,this._end),this._step))},ce.prototype.indexOf=function(e){var n=e-this._start;if(n%this._step==0){var t=n/this._step;if(t>=0&&t<this.size)return t}return-1},ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},ce.prototype.__iterate=function(e,n){for(var t=this.size-1,r=this._step,o=n?this._start+t*r:this._start,i=0;i<=t;i++){if(!1===e(o,i,this))return i+1;o+=n?-r:r}return i},ce.prototype.__iterator=function(e,n){var t=this.size-1,r=this._step,o=n?this._start+t*r:this._start,i=0;return new P((function(){var A=o;return o+=n?-r:r,i>t?{value:void 0,done:!0}:K(e,i++,A)}))},ce.prototype.equals=function(e){return e instanceof ce?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},n(ue,t),n(pe,ue),n(me,ue),n(Ce,ue),ue.Keyed=pe,ue.Indexed=me,ue.Set=Ce;var de="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,n){var t=65535&(e|=0),r=65535&(n|=0);return t*r+((e>>>16)*r+t*(n>>>16)<<16>>>0)|0};function fe(e){return e>>>1&1073741824|3221225471&e}function he(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var n=typeof e;if("number"===n){var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return fe(t)}if("string"===n)return e.length>we?function(e){var n=De[e];return void 0===n&&(n=xe(e),_e===Be&&(_e=0,De={}),_e++,De[e]=n),n}(e):xe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===n)return function(e){var n;if(ye&&void 0!==(n=ge.get(e)))return n;if(void 0!==(n=e[ve]))return n;if(!be){if(void 0!==(n=e.propertyIsEnumerable&&e.propertyIsEnumerable[ve]))return n;if(void 0!==(n=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return n}if(n=++Ee,1073741824&Ee&&(Ee=0),ye)ge.set(e,n);else{if(void 0!==Ie&&!1===Ie(e))throw new Error("Non-extensible objects are not allowed as keys.");if(be)Object.defineProperty(e,ve,{enumerable:!1,configurable:!1,writable:!1,value:n});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ve]=n;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ve]=n}}return n}(e);if("function"==typeof e.toString)return xe(e.toString());throw new Error("Value type "+n+" cannot be hashed.")}function xe(e){for(var n=0,t=0;t<e.length;t++)n=31*n+e.charCodeAt(t)|0;return fe(n)}var ge,Ie=Object.isExtensible,be=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),ye="function"==typeof WeakMap;ye&&(ge=new WeakMap);var Ee=0,ve="__immutablehash__";"function"==typeof Symbol&&(ve=Symbol(ve));var we=16,Be=255,_e=0,De={};function Se(e){ae(e!==1/0,"Cannot perform this action with an infinite size.")}function Me(e){return null==e?We():Oe(e)&&!c(e)?e:We().withMutations((function(n){var t=r(e);Se(t.size),t.forEach((function(e,t){return n.set(t,e)}))}))}function Oe(e){return!(!e||!e[Te])}n(Me,pe),Me.prototype.toString=function(){return this.__toString("Map {","}")},Me.prototype.get=function(e,n){return this._root?this._root.get(0,void 0,e,n):n},Me.prototype.set=function(e,n){return Le(this,e,n)},Me.prototype.setIn=function(e,n){return this.updateIn(e,d,(function(){return n}))},Me.prototype.remove=function(e){return Le(this,e,d)},Me.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return d}))},Me.prototype.update=function(e,n,t){return 1===arguments.length?e(this):this.updateIn([e],n,t)},Me.prototype.updateIn=function(e,n,t){t||(t=n,n=void 0);var r=function e(n,t,r,o){var i=n===d,A=t.next();if(A.done){var s=i?r:n,l=o(s);return l===s?n:l}ae(i||n&&n.set,"invalid keyPath");var a=A.value,c=i?d:n.get(a,d),u=e(c,t,r,o);return u===c?n:u===d?n.remove(a):(i?We():n).set(a,u)}(this,Vn(e),n,t);return r===d?void 0:r},Me.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):We()},Me.prototype.merge=function(){return qe(this,void 0,arguments)},Me.prototype.mergeWith=function(n){var t=e.call(arguments,1);return qe(this,n,t)},Me.prototype.mergeIn=function(n){var t=e.call(arguments,1);return this.updateIn(n,We(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]}))},Me.prototype.mergeDeep=function(){return qe(this,Ve,arguments)},Me.prototype.mergeDeepWith=function(n){var t=e.call(arguments,1);return qe(this,Je(n),t)},Me.prototype.mergeDeepIn=function(n){var t=e.call(arguments,1);return this.updateIn(n,We(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]}))},Me.prototype.sort=function(e){return yn(Gn(this,e))},Me.prototype.sortBy=function(e,n){return yn(Gn(this,n,e))},Me.prototype.withMutations=function(e){var n=this.asMutable();return e(n),n.wasAltered()?n.__ensureOwner(this.__ownerID):this},Me.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new I)},Me.prototype.asImmutable=function(){return this.__ensureOwner()},Me.prototype.wasAltered=function(){return this.__altered},Me.prototype.__iterator=function(e,n){return new Ye(this,e,n)},Me.prototype.__iterate=function(e,n){var t=this,r=0;return this._root&&this._root.iterate((function(n){return r++,e(n[1],n[0],t)}),n),r},Me.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?je(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Me.isMap=Oe;var ke,Te="@@__IMMUTABLE_MAP__@@",Pe=Me.prototype;function Ke(e,n){this.ownerID=e,this.entries=n}function Qe(e,n,t){this.ownerID=e,this.bitmap=n,this.nodes=t}function Ue(e,n,t){this.ownerID=e,this.count=n,this.nodes=t}function Re(e,n,t){this.ownerID=e,this.keyHash=n,this.entries=t}function Ge(e,n,t){this.ownerID=e,this.keyHash=n,this.entry=t}function Ye(e,n,t){this._type=n,this._reverse=t,this._stack=e._root&&Ne(e._root)}function Fe(e,n){return K(e,n[0],n[1])}function Ne(e,n){return{node:e,index:0,__prev:n}}function je(e,n,t,r){var o=Object.create(Pe);return o.size=e,o._root=n,o.__ownerID=t,o.__hash=r,o.__altered=!1,o}function We(){return ke||(ke=je(0))}function Le(e,n,t){var r,o;if(e._root){var i=x(f),A=x(h);if(r=ze(e._root,e.__ownerID,0,void 0,n,t,i,A),!A.value)return e;o=e.size+(i.value?t===d?-1:1:0)}else{if(t===d)return e;o=1,r=new Ke(e.__ownerID,[[n,t]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?je(o,r):We()}function ze(e,n,t,r,o,i,A,s){return e?e.update(n,t,r,o,i,A,s):i===d?e:(g(s),g(A),new Ge(n,r,[o,i]))}function Xe(e){return e.constructor===Ge||e.constructor===Re}function He(e,n,t,r,o){if(e.keyHash===r)return new Re(n,r,[e.entry,o]);var i,A=31&(0===t?e.keyHash:e.keyHash>>>t),s=31&(0===t?r:r>>>t);return new Qe(n,1<<A|1<<s,A===s?[He(e,n,t+5,r,o)]:(i=new Ge(n,r,o),A<s?[e,i]:[i,e]))}function qe(e,n,t){for(var o=[],i=0;i<t.length;i++){var s=t[i],l=r(s);A(s)||(l=l.map((function(e){return re(e)}))),o.push(l)}return Ze(e,n,o)}function Ve(e,n,t){return e&&e.mergeDeep&&A(n)?e.mergeDeep(n):Ae(e,n)?e:n}function Je(e){return function(n,t,r){if(n&&n.mergeDeepWith&&A(t))return n.mergeDeepWith(e,t);var o=e(n,t,r);return Ae(n,o)?n:o}}function Ze(e,n,t){return 0===(t=t.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==t.length?e.withMutations((function(e){for(var r=n?function(t,r){e.update(r,d,(function(e){return e===d?t:n(e,t,r)}))}:function(n,t){e.set(t,n)},o=0;o<t.length;o++)t[o].forEach(r)})):e.constructor(t[0])}function $e(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function en(e,n,t,r){var o=r?e:b(e);return o[n]=t,o}Pe[Te]=!0,Pe.delete=Pe.remove,Pe.removeIn=Pe.deleteIn,Ke.prototype.get=function(e,n,t,r){for(var o=this.entries,i=0,A=o.length;i<A;i++)if(Ae(t,o[i][0]))return o[i][1];return r},Ke.prototype.update=function(e,n,t,r,o,i,A){for(var s=o===d,l=this.entries,a=0,c=l.length;a<c&&!Ae(r,l[a][0]);a++);var u=a<c;if(u?l[a][1]===o:s)return this;if(g(A),(s||!u)&&g(i),!s||1!==l.length){if(!u&&!s&&l.length>=nn)return function(e,n,t,r){e||(e=new I);for(var o=new Ge(e,he(t),[t,r]),i=0;i<n.length;i++){var A=n[i];o=o.update(e,0,void 0,A[0],A[1])}return o}(e,l,r,o);var p=e&&e===this.ownerID,m=p?l:b(l);return u?s?a===c-1?m.pop():m[a]=m.pop():m[a]=[r,o]:m.push([r,o]),p?(this.entries=m,this):new Ke(e,m)}},Qe.prototype.get=function(e,n,t,r){void 0===n&&(n=he(t));var o=1<<(31&(0===e?n:n>>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[$e(i&o-1)].get(e+5,n,t,r)},Qe.prototype.update=function(e,n,t,r,o,i,A){void 0===t&&(t=he(r));var s=31&(0===n?t:t>>>n),l=1<<s,a=this.bitmap,c=0!=(a&l);if(!c&&o===d)return this;var u=$e(a&l-1),p=this.nodes,m=c?p[u]:void 0,C=ze(m,e,n+5,t,r,o,i,A);if(C===m)return this;if(!c&&C&&p.length>=tn)return function(e,n,t,r,o){for(var i=0,A=new Array(32),s=0;0!==t;s++,t>>>=1)A[s]=1&t?n[i++]:void 0;return A[r]=o,new Ue(e,i+1,A)}(e,p,a,s,C);if(c&&!C&&2===p.length&&Xe(p[1^u]))return p[1^u];if(c&&C&&1===p.length&&Xe(C))return C;var f=e&&e===this.ownerID,h=c?C?a:a^l:a|l,x=c?C?en(p,u,C,f):function(e,n,t){var r=e.length-1;if(t&&n===r)return e.pop(),e;for(var o=new Array(r),i=0,A=0;A<r;A++)A===n&&(i=1),o[A]=e[A+i];return o}(p,u,f):function(e,n,t,r){var o=e.length+1;if(r&&n+1===o)return e[n]=t,e;for(var i=new Array(o),A=0,s=0;s<o;s++)s===n?(i[s]=t,A=-1):i[s]=e[s+A];return i}(p,u,C,f);return f?(this.bitmap=h,this.nodes=x,this):new Qe(e,h,x)},Ue.prototype.get=function(e,n,t,r){void 0===n&&(n=he(t));var o=31&(0===e?n:n>>>e),i=this.nodes[o];return i?i.get(e+5,n,t,r):r},Ue.prototype.update=function(e,n,t,r,o,i,A){void 0===t&&(t=he(r));var s=31&(0===n?t:t>>>n),l=o===d,a=this.nodes,c=a[s];if(l&&!c)return this;var u=ze(c,e,n+5,t,r,o,i,A);if(u===c)return this;var p=this.count;if(c){if(!u&&--p<rn)return function(e,n,t,r){for(var o=0,i=0,A=new Array(t),s=0,l=1,a=n.length;s<a;s++,l<<=1){var c=n[s];void 0!==c&&s!==r&&(o|=l,A[i++]=c)}return new Qe(e,o,A)}(e,a,p,s)}else p++;var m=e&&e===this.ownerID,C=en(a,s,u,m);return m?(this.count=p,this.nodes=C,this):new Ue(e,p,C)},Re.prototype.get=function(e,n,t,r){for(var o=this.entries,i=0,A=o.length;i<A;i++)if(Ae(t,o[i][0]))return o[i][1];return r},Re.prototype.update=function(e,n,t,r,o,i,A){void 0===t&&(t=he(r));var s=o===d;if(t!==this.keyHash)return s?this:(g(A),g(i),He(this,e,n,t,[r,o]));for(var l=this.entries,a=0,c=l.length;a<c&&!Ae(r,l[a][0]);a++);var u=a<c;if(u?l[a][1]===o:s)return this;if(g(A),(s||!u)&&g(i),s&&2===c)return new Ge(e,this.keyHash,l[1^a]);var p=e&&e===this.ownerID,m=p?l:b(l);return u?s?a===c-1?m.pop():m[a]=m.pop():m[a]=[r,o]:m.push([r,o]),p?(this.entries=m,this):new Re(e,this.keyHash,m)},Ge.prototype.get=function(e,n,t,r){return Ae(t,this.entry[0])?this.entry[1]:r},Ge.prototype.update=function(e,n,t,r,o,i,A){var s=o===d,l=Ae(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(g(A),s?void g(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ge(e,this.keyHash,[r,o]):(g(i),He(this,e,n,he(r),[r,o])))},Ke.prototype.iterate=Re.prototype.iterate=function(e,n){for(var t=this.entries,r=0,o=t.length-1;r<=o;r++)if(!1===e(t[n?o-r:r]))return!1},Qe.prototype.iterate=Ue.prototype.iterate=function(e,n){for(var t=this.nodes,r=0,o=t.length-1;r<=o;r++){var i=t[n?o-r:r];if(i&&!1===i.iterate(e,n))return!1}},Ge.prototype.iterate=function(e,n){return e(this.entry)},n(Ye,P),Ye.prototype.next=function(){for(var e=this._type,n=this._stack;n;){var t,r=n.node,o=n.index++;if(r.entry){if(0===o)return Fe(e,r.entry)}else if(r.entries){if(o<=(t=r.entries.length-1))return Fe(e,r.entries[this._reverse?t-o:o])}else if(o<=(t=r.nodes.length-1)){var i=r.nodes[this._reverse?t-o:o];if(i){if(i.entry)return Fe(e,i.entry);n=this._stack=Ne(i,n)}continue}n=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var nn=8,tn=16,rn=8;function on(e){var n=dn();if(null==e)return n;if(An(e))return e;var t=o(e),r=t.size;return 0===r?n:(Se(r),r>0&&r<32?Cn(0,r,5,null,new an(t.toArray())):n.withMutations((function(e){e.setSize(r),t.forEach((function(n,t){return e.set(t,n)}))})))}function An(e){return!(!e||!e[sn])}n(on,me),on.of=function(){return this(arguments)},on.prototype.toString=function(){return this.__toString("List [","]")},on.prototype.get=function(e,n){if((e=E(this,e))>=0&&e<this.size){var t=xn(this,e+=this._origin);return t&&t.array[31&e]}return n},on.prototype.set=function(e,n){return function(e,n,t){if((n=E(e,n))!=n)return e;if(n>=e.size||n<0)return e.withMutations((function(e){n<0?gn(e,n).set(0,t):gn(e,0,n+1).set(n,t)}));n+=e._origin;var r=e._tail,o=e._root,i=x(h);return n>=bn(e._capacity)?r=fn(r,e.__ownerID,0,n,t,i):o=fn(o,e.__ownerID,e._level,n,t,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Cn(e._origin,e._capacity,e._level,o,r):e}(this,e,n)},on.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},on.prototype.insert=function(e,n){return this.splice(e,0,n)},on.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):dn()},on.prototype.push=function(){var e=arguments,n=this.size;return this.withMutations((function(t){gn(t,0,n+e.length);for(var r=0;r<e.length;r++)t.set(n+r,e[r])}))},on.prototype.pop=function(){return gn(this,0,-1)},on.prototype.unshift=function(){var e=arguments;return this.withMutations((function(n){gn(n,-e.length);for(var t=0;t<e.length;t++)n.set(t,e[t])}))},on.prototype.shift=function(){return gn(this,1)},on.prototype.merge=function(){return In(this,void 0,arguments)},on.prototype.mergeWith=function(n){var t=e.call(arguments,1);return In(this,n,t)},on.prototype.mergeDeep=function(){return In(this,Ve,arguments)},on.prototype.mergeDeepWith=function(n){var t=e.call(arguments,1);return In(this,Je(n),t)},on.prototype.setSize=function(e){return gn(this,0,e)},on.prototype.slice=function(e,n){var t=this.size;return w(e,n,t)?this:gn(this,B(e,t),_(n,t))},on.prototype.__iterator=function(e,n){var t=0,r=mn(this,n);return new P((function(){var n=r();return n===pn?{value:void 0,done:!0}:K(e,t++,n)}))},on.prototype.__iterate=function(e,n){for(var t,r=0,o=mn(this,n);(t=o())!==pn&&!1!==e(t,r++,this););return r},on.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Cn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},on.isList=An;var sn="@@__IMMUTABLE_LIST__@@",ln=on.prototype;function an(e,n){this.array=e,this.ownerID=n}ln[sn]=!0,ln.delete=ln.remove,ln.setIn=Pe.setIn,ln.deleteIn=ln.removeIn=Pe.removeIn,ln.update=Pe.update,ln.updateIn=Pe.updateIn,ln.mergeIn=Pe.mergeIn,ln.mergeDeepIn=Pe.mergeDeepIn,ln.withMutations=Pe.withMutations,ln.asMutable=Pe.asMutable,ln.asImmutable=Pe.asImmutable,ln.wasAltered=Pe.wasAltered,an.prototype.removeBefore=function(e,n,t){if(t===n?1<<n:0===this.array.length)return this;var r=t>>>n&31;if(r>=this.array.length)return new an([],e);var o,i=0===r;if(n>0){var A=this.array[r];if((o=A&&A.removeBefore(e,n-5,t))===A&&i)return this}if(i&&!o)return this;var s=hn(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},an.prototype.removeAfter=function(e,n,t){if(t===(n?1<<n:0)||0===this.array.length)return this;var r,o=t-1>>>n&31;if(o>=this.array.length)return this;if(n>0){var i=this.array[o];if((r=i&&i.removeAfter(e,n-5,t))===i&&o===this.array.length-1)return this}var A=hn(this,e);return A.array.splice(o+1),r&&(A.array[o]=r),A};var cn,un,pn={};function mn(e,n){var t=e._origin,r=e._capacity,o=bn(r),i=e._tail;return A(e._root,e._level,0);function A(e,s,l){return 0===s?function(e,A){var s=A===o?i&&i.array:e&&e.array,l=A>t?0:t-A,a=r-A;return a>32&&(a=32),function(){if(l===a)return pn;var e=n?--a:l++;return s&&s[e]}}(e,l):function(e,o,i){var s,l=e&&e.array,a=i>t?0:t-i>>o,c=1+(r-i>>o);return c>32&&(c=32),function(){for(;;){if(s){var e=s();if(e!==pn)return e;s=null}if(a===c)return pn;var t=n?--c:a++;s=A(l&&l[t],o-5,i+(t<<o))}}}(e,s,l)}}function Cn(e,n,t,r,o,i,A){var s=Object.create(ln);return s.size=n-e,s._origin=e,s._capacity=n,s._level=t,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=A,s.__altered=!1,s}function dn(){return cn||(cn=Cn(0,0,5))}function fn(e,n,t,r,o,i){var A,s=r>>>t&31,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(t>0){var a=e&&e.array[s],c=fn(a,n,t-5,r,o,i);return c===a?e:((A=hn(e,n)).array[s]=c,A)}return l&&e.array[s]===o?e:(g(i),A=hn(e,n),void 0===o&&s===A.array.length-1?A.array.pop():A.array[s]=o,A)}function hn(e,n){return n&&e&&n===e.ownerID?e:new an(e?e.array.slice():[],n)}function xn(e,n){if(n>=bn(e._capacity))return e._tail;if(n<1<<e._level+5){for(var t=e._root,r=e._level;t&&r>0;)t=t.array[n>>>r&31],r-=5;return t}}function gn(e,n,t){void 0!==n&&(n|=0),void 0!==t&&(t|=0);var r=e.__ownerID||new I,o=e._origin,i=e._capacity,A=o+n,s=void 0===t?i:t<0?i+t:o+t;if(A===o&&s===i)return e;if(A>=s)return e.clear();for(var l=e._level,a=e._root,c=0;A+c<0;)a=new an(a&&a.array.length?[void 0,a]:[],r),c+=1<<(l+=5);c&&(A+=c,o+=c,s+=c,i+=c);for(var u=bn(i),p=bn(s);p>=1<<l+5;)a=new an(a&&a.array.length?[a]:[],r),l+=5;var m=e._tail,C=p<u?xn(e,s-1):p>u?new an([],r):m;if(m&&p>u&&A<i&&m.array.length){for(var d=a=hn(a,r),f=l;f>5;f-=5){var h=u>>>f&31;d=d.array[h]=hn(d.array[h],r)}d.array[u>>>5&31]=m}if(s<i&&(C=C&&C.removeAfter(r,0,s)),A>=p)A-=p,s-=p,l=5,a=null,C=C&&C.removeBefore(r,0,A);else if(A>o||p<u){for(c=0;a;){var x=A>>>l&31;if(x!==p>>>l&31)break;x&&(c+=(1<<l)*x),l-=5,a=a.array[x]}a&&A>o&&(a=a.removeBefore(r,l,A-c)),a&&p<u&&(a=a.removeAfter(r,l,p-c)),c&&(A-=c,s-=c)}return e.__ownerID?(e.size=s-A,e._origin=A,e._capacity=s,e._level=l,e._root=a,e._tail=C,e.__hash=void 0,e.__altered=!0,e):Cn(A,s,l,a,C)}function In(e,n,t){for(var r=[],i=0,s=0;s<t.length;s++){var l=t[s],a=o(l);a.size>i&&(i=a.size),A(l)||(a=a.map((function(e){return re(e)}))),r.push(a)}return i>e.size&&(e=e.setSize(i)),Ze(e,n,r)}function bn(e){return e<32?0:e-1>>>5<<5}function yn(e){return null==e?wn():En(e)?e:wn().withMutations((function(n){var t=r(e);Se(t.size),t.forEach((function(e,t){return n.set(t,e)}))}))}function En(e){return Oe(e)&&c(e)}function vn(e,n,t,r){var o=Object.create(yn.prototype);return o.size=e?e.size:0,o._map=e,o._list=n,o.__ownerID=t,o.__hash=r,o}function wn(){return un||(un=vn(We(),dn()))}function Bn(e,n,t){var r,o,i=e._map,A=e._list,s=i.get(n),l=void 0!==s;if(t===d){if(!l)return e;A.size>=32&&A.size>=2*i.size?(r=(o=A.filter((function(e,n){return void 0!==e&&s!==n}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(n),o=s===A.size-1?A.pop():A.set(s,void 0))}else if(l){if(t===A.get(s)[1])return e;r=i,o=A.set(s,[n,t])}else r=i.set(n,A.size),o=A.set(A.size,[n,t]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):vn(r,o)}function _n(e,n){this._iter=e,this._useKeys=n,this.size=e.size}function Dn(e){this._iter=e,this.size=e.size}function Sn(e){this._iter=e,this.size=e.size}function Mn(e){this._iter=e,this.size=e.size}function On(e){var n=Xn(e);return n._iter=e,n.size=e.size,n.flip=function(){return e},n.reverse=function(){var n=e.reverse.apply(this);return n.flip=function(){return e.reverse()},n},n.has=function(n){return e.includes(n)},n.includes=function(n){return e.has(n)},n.cacheResult=Hn,n.__iterateUncached=function(n,t){var r=this;return e.__iterate((function(e,t){return!1!==n(t,e,r)}),t)},n.__iteratorUncached=function(n,t){if(2===n){var r=e.__iterator(n,t);return new P((function(){var e=r.next();if(!e.done){var n=e.value[0];e.value[0]=e.value[1],e.value[1]=n}return e}))}return e.__iterator(1===n?0:1,t)},n}function kn(e,n,t){var r=Xn(e);return r.size=e.size,r.has=function(n){return e.has(n)},r.get=function(r,o){var i=e.get(r,d);return i===d?o:n.call(t,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,A){return!1!==r(n.call(t,e,o,A),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new P((function(){var o=i.next();if(o.done)return o;var A=o.value,s=A[0];return K(r,s,n.call(t,A[1],s,e),o)}))},r}function Tn(e,n){var t=Xn(e);return t._iter=e,t.size=e.size,t.reverse=function(){return e},e.flip&&(t.flip=function(){var n=On(e);return n.reverse=function(){return e.flip()},n}),t.get=function(t,r){return e.get(n?t:-1-t,r)},t.has=function(t){return e.has(n?t:-1-t)},t.includes=function(n){return e.includes(n)},t.cacheResult=Hn,t.__iterate=function(n,t){var r=this;return e.__iterate((function(e,t){return n(e,t,r)}),!t)},t.__iterator=function(n,t){return e.__iterator(n,!t)},t}function Pn(e,n,t,r){var o=Xn(e);return r&&(o.has=function(r){var o=e.get(r,d);return o!==d&&!!n.call(t,o,r,e)},o.get=function(r,o){var i=e.get(r,d);return i!==d&&n.call(t,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var A=this,s=0;return e.__iterate((function(e,i,l){if(n.call(t,e,i,l))return s++,o(e,r?i:s-1,A)}),i),s},o.__iteratorUncached=function(o,i){var A=e.__iterator(2,i),s=0;return new P((function(){for(;;){var i=A.next();if(i.done)return i;var l=i.value,a=l[0],c=l[1];if(n.call(t,c,a,e))return K(o,r?a:s++,c,i)}}))},o}function Kn(e,n,t,r){var o=e.size;if(void 0!==n&&(n|=0),void 0!==t&&(t|=0),w(n,t,o))return e;var i=B(n,o),A=_(t,o);if(i!=i||A!=A)return Kn(e.toSeq().cacheResult(),n,t,r);var s,l=A-i;l==l&&(s=l<0?0:l);var a=Xn(e);return a.size=0===s?s:e.size&&s||void 0,!r&&V(e)&&s>=0&&(a.get=function(n,t){return(n=E(this,n))>=0&&n<s?e.get(n+i,t):t}),a.__iterateUncached=function(n,t){var o=this;if(0===s)return 0;if(t)return this.cacheResult().__iterate(n,t);var A=0,l=!0,a=0;return e.__iterate((function(e,t){if(!l||!(l=A++<i))return a++,!1!==n(e,r?t:a-1,o)&&a!==s})),a},a.__iteratorUncached=function(n,t){if(0!==s&&t)return this.cacheResult().__iterator(n,t);var o=0!==s&&e.__iterator(n,t),A=0,l=0;return new P((function(){for(;A++<i;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||1===n?e:K(n,l-1,0===n?void 0:e.value[1],e)}))},a}function Qn(e,n,t,r){var o=Xn(e);return o.__iterateUncached=function(o,i){var A=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,a){if(!s||!(s=n.call(t,e,i,a)))return l++,o(e,r?i:l-1,A)})),l},o.__iteratorUncached=function(o,i){var A=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),l=!0,a=0;return new P((function(){var e,i,c;do{if((e=s.next()).done)return r||1===o?e:K(o,a++,0===o?void 0:e.value[1],e);var u=e.value;i=u[0],c=u[1],l&&(l=n.call(t,c,i,A))}while(l);return 2===o?e:K(o,i,c,e)}))},o}function Un(e,n){var t=s(e),o=[e].concat(n).map((function(e){return A(e)?t&&(e=r(e)):e=t?Z(e):$(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||t&&s(i)||l(e)&&l(i))return i}var a=new z(o);return t?a=a.toKeyedSeq():l(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=o.reduce((function(e,n){if(void 0!==e){var t=n.size;if(void 0!==t)return e+t}}),0),a}function Rn(e,n,t){var r=Xn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(l,a){var c=this;l.__iterate((function(o,l){return(!n||a<n)&&A(o)?e(o,a+1):!1===r(o,t?l:i++,c)&&(s=!0),!s}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],l=0;return new P((function(){for(;i;){var e=i.next();if(!1===e.done){var a=e.value;if(2===r&&(a=a[1]),n&&!(s.length<n)||!A(a))return t?e:K(r,l++,a,e);s.push(i),i=a.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}}))},r}function Gn(e,n,t){n||(n=qn);var r=s(e),o=0,i=e.toSeq().map((function(n,r){return[r,n,o++,t?t(n,r,e):n]})).toArray();return i.sort((function(e,t){return n(e[3],t[3])||e[2]-t[2]})).forEach(r?function(e,n){i[n].length=2}:function(e,n){i[n]=e[1]}),r?j(i):l(e)?W(i):L(i)}function Yn(e,n,t){if(n||(n=qn),t){var r=e.toSeq().map((function(n,r){return[n,t(n,r,e)]})).reduce((function(e,t){return Fn(n,e[1],t[1])?t:e}));return r&&r[0]}return e.reduce((function(e,t){return Fn(n,e,t)?t:e}))}function Fn(e,n,t){var r=e(t,n);return 0===r&&t!==n&&(null==t||t!=t)||r>0}function Nn(e,n,r){var o=Xn(e);return o.size=new z(r).map((function(e){return e.size})).min(),o.__iterate=function(e,n){for(var t,r=this.__iterator(1,n),o=0;!(t=r.next()).done&&!1!==e(t.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=t(e),G(o?e.reverse():e)})),A=0,s=!1;return new P((function(){var t;return s||(t=i.map((function(e){return e.next()})),s=t.some((function(e){return e.done}))),s?{value:void 0,done:!0}:K(e,A++,n.apply(null,t.map((function(e){return e.value}))))}))},o}function jn(e,n){return V(e)?n:e.constructor(n)}function Wn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ln(e){return Se(e.size),y(e)}function zn(e){return s(e)?r:l(e)?o:i}function Xn(e){return Object.create((s(e)?j:l(e)?W:L).prototype)}function Hn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function qn(e,n){return e>n?1:e<n?-1:0}function Vn(e){var n=G(e);if(!n){if(!F(e))throw new TypeError("Expected iterable or array-like: "+e);n=G(t(e))}return n}function Jn(e,n){var t,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!t){t=!0;var A=Object.keys(e);!function(e,n){try{n.forEach(nt.bind(void 0,e))}catch(e){}}(o,A),o.size=A.length,o._name=n,o._keys=A,o._defaultValues=e}this._map=Me(i)},o=r.prototype=Object.create(Zn);return o.constructor=r,r}n(yn,Me),yn.of=function(){return this(arguments)},yn.prototype.toString=function(){return this.__toString("OrderedMap {","}")},yn.prototype.get=function(e,n){var t=this._map.get(e);return void 0!==t?this._list.get(t)[1]:n},yn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):wn()},yn.prototype.set=function(e,n){return Bn(this,e,n)},yn.prototype.remove=function(e){return Bn(this,e,d)},yn.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},yn.prototype.__iterate=function(e,n){var t=this;return this._list.__iterate((function(n){return n&&e(n[1],n[0],t)}),n)},yn.prototype.__iterator=function(e,n){return this._list.fromEntrySeq().__iterator(e,n)},yn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var n=this._map.__ensureOwner(e),t=this._list.__ensureOwner(e);return e?vn(n,t,e,this.__hash):(this.__ownerID=e,this._map=n,this._list=t,this)},yn.isOrderedMap=En,yn.prototype[C]=!0,yn.prototype.delete=yn.prototype.remove,n(_n,j),_n.prototype.get=function(e,n){return this._iter.get(e,n)},_n.prototype.has=function(e){return this._iter.has(e)},_n.prototype.valueSeq=function(){return this._iter.valueSeq()},_n.prototype.reverse=function(){var e=this,n=Tn(this,!0);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().reverse()}),n},_n.prototype.map=function(e,n){var t=this,r=kn(this,e,n);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().map(e,n)}),r},_n.prototype.__iterate=function(e,n){var t,r=this;return this._iter.__iterate(this._useKeys?function(n,t){return e(n,t,r)}:(t=n?Ln(this):0,function(o){return e(o,n?--t:t++,r)}),n)},_n.prototype.__iterator=function(e,n){if(this._useKeys)return this._iter.__iterator(e,n);var t=this._iter.__iterator(1,n),r=n?Ln(this):0;return new P((function(){var o=t.next();return o.done?o:K(e,n?--r:r++,o.value,o)}))},_n.prototype[C]=!0,n(Dn,W),Dn.prototype.includes=function(e){return this._iter.includes(e)},Dn.prototype.__iterate=function(e,n){var t=this,r=0;return this._iter.__iterate((function(n){return e(n,r++,t)}),n)},Dn.prototype.__iterator=function(e,n){var t=this._iter.__iterator(1,n),r=0;return new P((function(){var n=t.next();return n.done?n:K(e,r++,n.value,n)}))},n(Sn,L),Sn.prototype.has=function(e){return this._iter.includes(e)},Sn.prototype.__iterate=function(e,n){var t=this;return this._iter.__iterate((function(n){return e(n,n,t)}),n)},Sn.prototype.__iterator=function(e,n){var t=this._iter.__iterator(1,n);return new P((function(){var n=t.next();return n.done?n:K(e,n.value,n.value,n)}))},n(Mn,j),Mn.prototype.entrySeq=function(){return this._iter.toSeq()},Mn.prototype.__iterate=function(e,n){var t=this;return this._iter.__iterate((function(n){if(n){Wn(n);var r=A(n);return e(r?n.get(1):n[1],r?n.get(0):n[0],t)}}),n)},Mn.prototype.__iterator=function(e,n){var t=this._iter.__iterator(1,n);return new P((function(){for(;;){var n=t.next();if(n.done)return n;var r=n.value;if(r){Wn(r);var o=A(r);return K(e,o?r.get(0):r[0],o?r.get(1):r[1],n)}}}))},Dn.prototype.cacheResult=_n.prototype.cacheResult=Sn.prototype.cacheResult=Mn.prototype.cacheResult=Hn,n(Jn,pe),Jn.prototype.toString=function(){return this.__toString(et(this)+" {","}")},Jn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Jn.prototype.get=function(e,n){if(!this.has(e))return n;var t=this._defaultValues[e];return this._map?this._map.get(e,t):t},Jn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=$n(this,We()))},Jn.prototype.set=function(e,n){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+et(this));var t=this._map&&this._map.set(e,n);return this.__ownerID||t===this._map?this:$n(this,t)},Jn.prototype.remove=function(e){if(!this.has(e))return this;var n=this._map&&this._map.remove(e);return this.__ownerID||n===this._map?this:$n(this,n)},Jn.prototype.wasAltered=function(){return this._map.wasAltered()},Jn.prototype.__iterator=function(e,n){var t=this;return r(this._defaultValues).map((function(e,n){return t.get(n)})).__iterator(e,n)},Jn.prototype.__iterate=function(e,n){var t=this;return r(this._defaultValues).map((function(e,n){return t.get(n)})).__iterate(e,n)},Jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var n=this._map&&this._map.__ensureOwner(e);return e?$n(this,n,e):(this.__ownerID=e,this._map=n,this)};var Zn=Jn.prototype;function $n(e,n,t){var r=Object.create(Object.getPrototypeOf(e));return r._map=n,r.__ownerID=t,r}function et(e){return e._name||e.constructor.name||"Record"}function nt(e,n){Object.defineProperty(e,n,{get:function(){return this.get(n)},set:function(e){ae(this.__ownerID,"Cannot set on an immutable record."),this.set(n,e)}})}function tt(e){return null==e?at():rt(e)&&!c(e)?e:at().withMutations((function(n){var t=i(e);Se(t.size),t.forEach((function(e){return n.add(e)}))}))}function rt(e){return!(!e||!e[it])}Zn.delete=Zn.remove,Zn.deleteIn=Zn.removeIn=Pe.removeIn,Zn.merge=Pe.merge,Zn.mergeWith=Pe.mergeWith,Zn.mergeIn=Pe.mergeIn,Zn.mergeDeep=Pe.mergeDeep,Zn.mergeDeepWith=Pe.mergeDeepWith,Zn.mergeDeepIn=Pe.mergeDeepIn,Zn.setIn=Pe.setIn,Zn.update=Pe.update,Zn.updateIn=Pe.updateIn,Zn.withMutations=Pe.withMutations,Zn.asMutable=Pe.asMutable,Zn.asImmutable=Pe.asImmutable,n(tt,Ce),tt.of=function(){return this(arguments)},tt.fromKeys=function(e){return this(r(e).keySeq())},tt.prototype.toString=function(){return this.__toString("Set {","}")},tt.prototype.has=function(e){return this._map.has(e)},tt.prototype.add=function(e){return st(this,this._map.set(e,!0))},tt.prototype.remove=function(e){return st(this,this._map.remove(e))},tt.prototype.clear=function(){return st(this,this._map.clear())},tt.prototype.union=function(){var n=e.call(arguments,0);return 0===(n=n.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){for(var t=0;t<n.length;t++)i(n[t]).forEach((function(n){return e.add(n)}))})):this.constructor(n[0])},tt.prototype.intersect=function(){var n=e.call(arguments,0);if(0===n.length)return this;n=n.map((function(e){return i(e)}));var t=this;return this.withMutations((function(e){t.forEach((function(t){n.every((function(e){return e.includes(t)}))||e.remove(t)}))}))},tt.prototype.subtract=function(){var n=e.call(arguments,0);if(0===n.length)return this;n=n.map((function(e){return i(e)}));var t=this;return this.withMutations((function(e){t.forEach((function(t){n.some((function(e){return e.includes(t)}))&&e.remove(t)}))}))},tt.prototype.merge=function(){return this.union.apply(this,arguments)},tt.prototype.mergeWith=function(n){var t=e.call(arguments,1);return this.union.apply(this,t)},tt.prototype.sort=function(e){return ct(Gn(this,e))},tt.prototype.sortBy=function(e,n){return ct(Gn(this,n,e))},tt.prototype.wasAltered=function(){return this._map.wasAltered()},tt.prototype.__iterate=function(e,n){var t=this;return this._map.__iterate((function(n,r){return e(r,r,t)}),n)},tt.prototype.__iterator=function(e,n){return this._map.map((function(e,n){return n})).__iterator(e,n)},tt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var n=this._map.__ensureOwner(e);return e?this.__make(n,e):(this.__ownerID=e,this._map=n,this)},tt.isSet=rt;var ot,it="@@__IMMUTABLE_SET__@@",At=tt.prototype;function st(e,n){return e.__ownerID?(e.size=n.size,e._map=n,e):n===e._map?e:0===n.size?e.__empty():e.__make(n)}function lt(e,n){var t=Object.create(At);return t.size=e?e.size:0,t._map=e,t.__ownerID=n,t}function at(){return ot||(ot=lt(We()))}function ct(e){return null==e?dt():ut(e)?e:dt().withMutations((function(n){var t=i(e);Se(t.size),t.forEach((function(e){return n.add(e)}))}))}function ut(e){return rt(e)&&c(e)}At[it]=!0,At.delete=At.remove,At.mergeDeep=At.merge,At.mergeDeepWith=At.mergeWith,At.withMutations=Pe.withMutations,At.asMutable=Pe.asMutable,At.asImmutable=Pe.asImmutable,At.__empty=at,At.__make=lt,n(ct,tt),ct.of=function(){return this(arguments)},ct.fromKeys=function(e){return this(r(e).keySeq())},ct.prototype.toString=function(){return this.__toString("OrderedSet {","}")},ct.isOrderedSet=ut;var pt,mt=ct.prototype;function Ct(e,n){var t=Object.create(mt);return t.size=e?e.size:0,t._map=e,t.__ownerID=n,t}function dt(){return pt||(pt=Ct(wn()))}function ft(e){return null==e?yt():ht(e)?e:yt().unshiftAll(e)}function ht(e){return!(!e||!e[gt])}mt[C]=!0,mt.__empty=dt,mt.__make=Ct,n(ft,me),ft.of=function(){return this(arguments)},ft.prototype.toString=function(){return this.__toString("Stack [","]")},ft.prototype.get=function(e,n){var t=this._head;for(e=E(this,e);t&&e--;)t=t.next;return t?t.value:n},ft.prototype.peek=function(){return this._head&&this._head.value},ft.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,t=arguments.length-1;t>=0;t--)n={value:arguments[t],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):bt(e,n)},ft.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Se(e.size);var n=this.size,t=this._head;return e.reverse().forEach((function(e){n++,t={value:e,next:t}})),this.__ownerID?(this.size=n,this._head=t,this.__hash=void 0,this.__altered=!0,this):bt(n,t)},ft.prototype.pop=function(){return this.slice(1)},ft.prototype.unshift=function(){return this.push.apply(this,arguments)},ft.prototype.unshiftAll=function(e){return this.pushAll(e)},ft.prototype.shift=function(){return this.pop.apply(this,arguments)},ft.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):yt()},ft.prototype.slice=function(e,n){if(w(e,n,this.size))return this;var t=B(e,this.size);if(_(n,this.size)!==this.size)return me.prototype.slice.call(this,e,n);for(var r=this.size-t,o=this._head;t--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):bt(r,o)},ft.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?bt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ft.prototype.__iterate=function(e,n){if(n)return this.reverse().__iterate(e);for(var t=0,r=this._head;r&&!1!==e(r.value,t++,this);)r=r.next;return t},ft.prototype.__iterator=function(e,n){if(n)return this.reverse().__iterator(e);var t=0,r=this._head;return new P((function(){if(r){var n=r.value;return r=r.next,K(e,t++,n)}return{value:void 0,done:!0}}))},ft.isStack=ht;var xt,gt="@@__IMMUTABLE_STACK__@@",It=ft.prototype;function bt(e,n,t,r){var o=Object.create(It);return o.size=e,o._head=n,o.__ownerID=t,o.__hash=r,o.__altered=!1,o}function yt(){return xt||(xt=bt(0))}function Et(e,n){var t=function(t){e.prototype[t]=n[t]};return Object.keys(n).forEach(t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(t),e}It[gt]=!0,It.withMutations=Pe.withMutations,It.asMutable=Pe.asMutable,It.asImmutable=Pe.asImmutable,It.wasAltered=Pe.wasAltered,t.Iterator=P,Et(t,{toArray:function(){Se(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(n,t){e[t]=n})),e},toIndexedSeq:function(){return new Dn(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new _n(this,!0)},toMap:function(){return Me(this.toKeyedSeq())},toObject:function(){Se(this.size);var e={};return this.__iterate((function(n,t){e[t]=n})),e},toOrderedMap:function(){return yn(this.toKeyedSeq())},toOrderedSet:function(){return ct(s(this)?this.valueSeq():this)},toSet:function(){return tt(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Sn(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ft(s(this)?this.valueSeq():this)},toList:function(){return on(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,n){return 0===this.size?e+n:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+n},concat:function(){var n=e.call(arguments,0);return jn(this,Un(this,n))},includes:function(e){return this.some((function(n){return Ae(n,e)}))},entries:function(){return this.__iterator(2)},every:function(e,n){Se(this.size);var t=!0;return this.__iterate((function(r,o,i){if(!e.call(n,r,o,i))return t=!1,!1})),t},filter:function(e,n){return jn(this,Pn(this,e,n,!0))},find:function(e,n,t){var r=this.findEntry(e,n);return r?r[1]:t},findEntry:function(e,n){var t;return this.__iterate((function(r,o,i){if(e.call(n,r,o,i))return t=[o,r],!1})),t},findLastEntry:function(e,n){return this.toSeq().reverse().findEntry(e,n)},forEach:function(e,n){return Se(this.size),this.__iterate(n?e.bind(n):e)},join:function(e){Se(this.size),e=void 0!==e?""+e:",";var n="",t=!0;return this.__iterate((function(r){t?t=!1:n+=e,n+=null!=r?r.toString():""})),n},keys:function(){return this.__iterator(0)},map:function