%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/knwn/wp-content/plugins/wordpress-seo/js/dist/externals/
Upload File :
Create Path :
Current File : /var/www/knwn/wp-content/plugins/wordpress-seo/js/dist/externals/replacementVariableEditor.js

window.yoast=window.yoast||{},window.yoast.replacementVariableEditor=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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=527)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},10:function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0},11:function(t,e,n){var r=n(30);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},12:function(t,e,n){var r=n(24).default,i=n(14);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e},t.exports.default=t.exports,t.exports.__esModule=!0},13:function(t,e){t.exports=window.yoast.componentsNew},14:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},146:function(t,e){t.exports=window.lodash.escapeRegExp},15:function(t,e){t.exports=window.yoast.helpers},16:function(t,e){t.exports=window.yoast.draftJs},17:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},19: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 u(t)?t:V(t)}function r(t){return s(t)?t:U(t)}function i(t){return a(t)?t:W(t)}function o(t){return u(t)&&!c(t)?t:N(t)}function u(t){return!(!t||!t[p])}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[l])}function c(t){return s(t)||a(t)}function f(t){return!(!t||!t[d])}e(r,n),e(i,n),e(o,n),n.isIterable=u,n.isKeyed=s,n.isIndexed=a,n.isAssociative=c,n.isOrdered=f,n.Keyed=r,n.Indexed=i,n.Set=o;var p="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",l="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",v={},_={value:!1},y={value:!1};function g(t){return t.value=!1,t}function m(t){t&&(t.value=!0)}function b(){}function w(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function S(t){return void 0===t.size&&(t.size=t.__iterate(x)),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?S(t)+e:e}function x(){return!0}function E(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function I(t,e){return k(t,e,0)}function z(t,e){return k(t,e,e)}function k(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var M,D,R,C="function"==typeof Symbol&&Symbol.iterator,j=C||"@@iterator";function A(t){this.next=t}function q(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function P(){return{value:void 0,done:!0}}function B(t){return!!F(t)}function T(t){return t&&"function"==typeof t.next}function K(t){var e=F(t);return e&&e.call(t)}function F(t){var e=t&&(C&&t[C]||t["@@iterator"]);if("function"==typeof e)return e}function L(t){return t&&"number"==typeof t.length}function V(t){return null==t?Q():u(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new J(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function U(t){return null==t?Q().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():G(t)}function W(t){return null==t?Q():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():Z(t)}function N(t){return(null==t?Q():u(t)?s(t)?t.entrySeq():t:Z(t)).toSetSeq()}function H(t){this._array=t,this.size=t.length}function J(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function Y(t){this._iterator=t,this._iteratorCache=[]}function X(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Q(){return M||(M=new H([]))}function G(t){var e=Array.isArray(t)?new H(t).fromEntrySeq():T(t)?new Y(t).fromEntrySeq():B(t)?new $(t).fromEntrySeq():"object"==typeof t?new J(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function Z(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return L(t)?new H(t):T(t)?new Y(t):B(t)?new $(t):void 0}function et(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[n?o-u:u];if(!1===e(s[1],r?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,n)}function nt(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,u=0;return new A((function(){var t=i[n?o-u:u];return u++>o?{value:void 0,done:!0}:q(e,r?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,n)}function rt(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,W(n).map((function(r,i){return t(e,r,i,n)}))):ot(n)?e.call(i,r,U(n).map((function(r,i){return t(e,r,i,n)}))):n}(e,t,"",{"":t}):it(t)}function it(t){return Array.isArray(t)?W(t).map(it).toList():ot(t)?U(t).map(it).toMap():t}function ot(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ut(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!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function st(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!c(t);if(f(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&ut(i[1],t)&&(n||ut(i[0],e))}))&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var p=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!ut(e,t.get(r,v)):!ut(t.get(r,v),e))return p=!1,!1}));return p&&t.size===h}function at(t,e){if(!(this instanceof at))return new at(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(D)return D;D=this}}function ct(t,e){if(!t)throw new Error(e)}function ft(t,e,n){if(!(this instanceof ft))return new ft(t,e,n);if(ct(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(R)return R;R=this}}function pt(){throw TypeError("Abstract")}function ht(){}function lt(){}function dt(){}A.prototype.toString=function(){return"[Iterator]"},A.KEYS=0,A.VALUES=1,A.ENTRIES=2,A.prototype.inspect=A.prototype.toSource=function(){return this.toString()},A.prototype[j]=function(){return this},e(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(t,e){return et(this,t,e,!0)},V.prototype.__iterator=function(t,e){return nt(this,t,e,!0)},e(U,V),U.prototype.toKeyedSeq=function(){return this},e(W,V),W.of=function(){return W(arguments)},W.prototype.toIndexedSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq [","]")},W.prototype.__iterate=function(t,e){return et(this,t,e,!1)},W.prototype.__iterator=function(t,e){return nt(this,t,e,!1)},e(N,V),N.of=function(){return N(arguments)},N.prototype.toSetSeq=function(){return this},V.isSeq=X,V.Keyed=U,V.Set=N,V.Indexed=W,V.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,e(H,W),H.prototype.get=function(t,e){return this.has(t)?this._array[O(this,t)]:e},H.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},H.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new A((function(){return i>r?{value:void 0,done:!0}:q(t,i,n[e?r-i++:i++])}))},e(J,U),J.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},J.prototype.has=function(t){return this._object.hasOwnProperty(t)},J.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var u=r[e?i-o:o];if(!1===t(n[u],u,this))return o+1}return o},J.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new A((function(){var u=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:q(t,u,n[u])}))},J.prototype[d]=!0,e($,W),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=K(this._iterable),r=0;if(T(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},$.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=K(this._iterable);if(!T(n))return new A(P);var r=0;return new A((function(){var e=n.next();return e.done?e:q(t,r++,e.value)}))},e(Y,W),Y.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(n=r.next()).done;){var u=n.value;if(i[o]=u,!1===t(u,o++,this))break}return o},Y.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new A((function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return q(t,i,r[i++])}))},e(at,W),at.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},at.prototype.get=function(t,e){return this.has(t)?this._value:e},at.prototype.includes=function(t){return ut(this._value,t)},at.prototype.slice=function(t,e){var n=this.size;return E(t,e,n)?this:new at(this._value,z(e,n)-I(t,n))},at.prototype.reverse=function(){return this},at.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},at.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},at.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},at.prototype.__iterator=function(t,e){var n=this,r=0;return new A((function(){return r<n.size?q(t,r++,n._value):{value:void 0,done:!0}}))},at.prototype.equals=function(t){return t instanceof at?ut(this._value,t._value):st(t)},e(ft,W),ft.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ft.prototype.get=function(t,e){return this.has(t)?this._start+O(this,t)*this._step:e},ft.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},ft.prototype.slice=function(t,e){return E(t,e,this.size)?this:(t=I(t,this.size),(e=z(e,this.size))<=t?new ft(0,0):new ft(this.get(t,this._end),this.get(e,this._end),this._step))},ft.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},ft.prototype.lastIndexOf=function(t){return this.indexOf(t)},ft.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===t(i,o,this))return o+1;i+=e?-r:r}return o},ft.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new A((function(){var u=i;return i+=e?-r:r,o>n?{value:void 0,done:!0}:q(t,o++,u)}))},ft.prototype.equals=function(t){return t instanceof ft?this._start===t._start&&this._end===t._end&&this._step===t._step:st(this,t)},e(pt,n),e(ht,pt),e(lt,pt),e(dt,pt),pt.Keyed=ht,pt.Indexed=lt,pt.Set=dt;var vt="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 _t(t){return t>>>1&1073741824|3221225471&t}function yt(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=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return _t(n)}if("string"===e)return t.length>Et?function(t){var e=kt[t];return void 0===e&&(e=gt(t),zt===It&&(zt=0,kt={}),zt++,kt[t]=e),e}(t):gt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(St&&void 0!==(e=mt.get(t)))return e;if(void 0!==(e=t[xt]))return e;if(!wt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[xt]))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=++Ot,1073741824&Ot&&(Ot=0),St)mt.set(t,e);else{if(void 0!==bt&&!1===bt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(wt)Object.defineProperty(t,xt,{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[xt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[xt]=e}}return e}(t);if("function"==typeof t.toString)return gt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function gt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return _t(e)}var mt,bt=Object.isExtensible,wt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),St="function"==typeof WeakMap;St&&(mt=new WeakMap);var Ot=0,xt="__immutablehash__";"function"==typeof Symbol&&(xt=Symbol(xt));var Et=16,It=255,zt=0,kt={};function Mt(t){ct(t!==1/0,"Cannot perform this action with an infinite size.")}function Dt(t){return null==t?Wt():Rt(t)&&!f(t)?t:Wt().withMutations((function(e){var n=r(t);Mt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Rt(t){return!(!t||!t[jt])}e(Dt,ht),Dt.prototype.toString=function(){return this.__toString("Map {","}")},Dt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Dt.prototype.set=function(t,e){return Nt(this,t,e)},Dt.prototype.setIn=function(t,e){return this.updateIn(t,v,(function(){return e}))},Dt.prototype.remove=function(t){return Nt(this,t,v)},Dt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return v}))},Dt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Dt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,i){var o=e===v,u=n.next();if(u.done){var s=o?r:e,a=i(s);return a===s?e:a}ct(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?v:e.get(c,v),p=t(f,n,r,i);return p===f?e:p===v?e.remove(c):(o?Wt():e).set(c,p)}(this,Ye(t),e,n);return r===v?void 0:r},Dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Wt()},Dt.prototype.merge=function(){return Yt(this,void 0,arguments)},Dt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Yt(this,e,n)},Dt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Wt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},Dt.prototype.mergeDeep=function(){return Yt(this,Xt,arguments)},Dt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Yt(this,Qt(e),n)},Dt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Wt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},Dt.prototype.sort=function(t){return we(Te(this,t))},Dt.prototype.sortBy=function(t,e){return we(Te(this,e,t))},Dt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Dt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new b)},Dt.prototype.asImmutable=function(){return this.__ensureOwner()},Dt.prototype.wasAltered=function(){return this.__altered},Dt.prototype.__iterator=function(t,e){return new Ft(this,t,e)},Dt.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},Dt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ut(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Dt.isMap=Rt;var Ct,jt="@@__IMMUTABLE_MAP__@@",At=Dt.prototype;function qt(t,e){this.ownerID=t,this.entries=e}function Pt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Bt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Tt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Kt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Ft(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Vt(t._root)}function Lt(t,e){return q(t,e[0],e[1])}function Vt(t,e){return{node:t,index:0,__prev:e}}function Ut(t,e,n,r){var i=Object.create(At);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Wt(){return Ct||(Ct=Ut(0))}function Nt(t,e,n){var r,i;if(t._root){var o=g(_),u=g(y);if(r=Ht(t._root,t.__ownerID,0,void 0,e,n,o,u),!u.value)return t;i=t.size+(o.value?n===v?-1:1:0)}else{if(n===v)return t;i=1,r=new qt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Ut(i,r):Wt()}function Ht(t,e,n,r,i,o,u,s){return t?t.update(e,n,r,i,o,u,s):o===v?t:(m(s),m(u),new Kt(e,r,[i,o]))}function Jt(t){return t.constructor===Kt||t.constructor===Tt}function $t(t,e,n,r,i){if(t.keyHash===r)return new Tt(e,r,[t.entry,i]);var o,u=31&(0===n?t.keyHash:t.keyHash>>>n),s=31&(0===n?r:r>>>n);return new Pt(e,1<<u|1<<s,u===s?[$t(t,e,n+5,r,i)]:(o=new Kt(e,r,i),u<s?[t,o]:[o,t]))}function Yt(t,e,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=r(s);u(s)||(a=a.map((function(t){return rt(t)}))),i.push(a)}return Gt(t,e,i)}function Xt(t,e,n){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):ut(t,e)?t:e}function Qt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&u(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return ut(e,i)?e:i}}function Gt(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,v,(function(t){return t===v?n:e(t,n,r)}))}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)})):t.constructor(n[0])}function Zt(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function te(t,e,n,r){var i=r?t:w(t);return i[e]=n,i}At[jt]=!0,At.delete=At.remove,At.removeIn=At.deleteIn,qt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(n,i[o][0]))return i[o][1];return r},qt.prototype.update=function(t,e,n,r,i,o,u){for(var s=i===v,a=this.entries,c=0,f=a.length;c<f&&!ut(r,a[c][0]);c++);var p=c<f;if(p?a[c][1]===i:s)return this;if(m(u),(s||!p)&&m(o),!s||1!==a.length){if(!p&&!s&&a.length>=ee)return function(t,e,n,r){t||(t=new b);for(var i=new Kt(t,yt(n),[n,r]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,r,i);var h=t&&t===this.ownerID,l=h?a:w(a);return p?s?c===f-1?l.pop():l[c]=l.pop():l[c]=[r,i]:l.push([r,i]),h?(this.entries=l,this):new qt(t,l)}},Pt.prototype.get=function(t,e,n,r){void 0===e&&(e=yt(n));var i=1<<(31&(0===t?e:e>>>t)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Zt(o&i-1)].get(t+5,e,n,r)},Pt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=yt(r));var s=31&(0===e?n:n>>>e),a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===v)return this;var p=Zt(c&a-1),h=this.nodes,l=f?h[p]:void 0,d=Ht(l,t,e+5,n,r,i,o,u);if(d===l)return this;if(!f&&d&&h.length>=ne)return function(t,e,n,r,i){for(var o=0,u=new Array(32),s=0;0!==n;s++,n>>>=1)u[s]=1&n?e[o++]:void 0;return u[r]=i,new Bt(t,o+1,u)}(t,h,c,s,d);if(f&&!d&&2===h.length&&Jt(h[1^p]))return h[1^p];if(f&&d&&1===h.length&&Jt(d))return d;var _=t&&t===this.ownerID,y=f?d?c:c^a:c|a,g=f?d?te(h,p,d,_):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,u=0;u<r;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,p,_):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=n,u=-1):o[s]=t[s+u];return o}(h,p,d,_);return _?(this.bitmap=y,this.nodes=g,this):new Pt(t,y,g)},Bt.prototype.get=function(t,e,n,r){void 0===e&&(e=yt(n));var i=31&(0===t?e:e>>>t),o=this.nodes[i];return o?o.get(t+5,e,n,r):r},Bt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=yt(r));var s=31&(0===e?n:n>>>e),a=i===v,c=this.nodes,f=c[s];if(a&&!f)return this;var p=Ht(f,t,e+5,n,r,i,o,u);if(p===f)return this;var h=this.count;if(f){if(!p&&--h<re)return function(t,e,n,r){for(var i=0,o=0,u=new Array(n),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==r&&(i|=a,u[o++]=f)}return new Pt(t,i,u)}(t,c,h,s)}else h++;var l=t&&t===this.ownerID,d=te(c,s,p,l);return l?(this.count=h,this.nodes=d,this):new Bt(t,h,d)},Tt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(n,i[o][0]))return i[o][1];return r},Tt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=yt(r));var s=i===v;if(n!==this.keyHash)return s?this:(m(u),m(o),$t(this,t,e,n,[r,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!ut(r,a[c][0]);c++);var p=c<f;if(p?a[c][1]===i:s)return this;if(m(u),(s||!p)&&m(o),s&&2===f)return new Kt(t,this.keyHash,a[1^c]);var h=t&&t===this.ownerID,l=h?a:w(a);return p?s?c===f-1?l.pop():l[c]=l.pop():l[c]=[r,i]:l.push([r,i]),h?(this.entries=l,this):new Tt(t,this.keyHash,l)},Kt.prototype.get=function(t,e,n,r){return ut(n,this.entry[0])?this.entry[1]:r},Kt.prototype.update=function(t,e,n,r,i,o,u){var s=i===v,a=ut(r,this.entry[0]);return(a?i===this.entry[1]:s)?this:(m(u),s?void m(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Kt(t,this.keyHash,[r,i]):(m(o),$t(this,t,e,yt(r),[r,i])))},qt.prototype.iterate=Tt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},Pt.prototype.iterate=Bt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&!1===o.iterate(t,e))return!1}},Kt.prototype.iterate=function(t,e){return t(this.entry)},e(Ft,A),Ft.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return Lt(t,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Lt(t,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Lt(t,o.entry);e=this._stack=Vt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ee=8,ne=16,re=8;function ie(t){var e=de();if(null==t)return e;if(oe(t))return t;var n=i(t),r=n.size;return 0===r?e:(Mt(r),r>0&&r<32?le(0,r,5,null,new ae(n.toArray())):e.withMutations((function(t){t.setSize(r),n.forEach((function(e,n){return t.set(n,e)}))})))}function oe(t){return!(!t||!t[ue])}e(ie,lt),ie.of=function(){return this(arguments)},ie.prototype.toString=function(){return this.__toString("List [","]")},ie.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var n=ye(this,t+=this._origin);return n&&n.array[31&t]}return e},ie.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?ge(t,e).set(0,n):ge(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,i=t._root,o=g(y);return e>=be(t._capacity)?r=ve(r,t.__ownerID,0,e,n,o):i=ve(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):le(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},ie.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ie.prototype.insert=function(t,e){return this.splice(t,0,e)},ie.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):de()},ie.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){ge(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},ie.prototype.pop=function(){return ge(this,0,-1)},ie.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){ge(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},ie.prototype.shift=function(){return ge(this,1)},ie.prototype.merge=function(){return me(this,void 0,arguments)},ie.prototype.mergeWith=function(e){var n=t.call(arguments,1);return me(this,e,n)},ie.prototype.mergeDeep=function(){return me(this,Xt,arguments)},ie.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return me(this,Qt(e),n)},ie.prototype.setSize=function(t){return ge(this,0,t)},ie.prototype.slice=function(t,e){var n=this.size;return E(t,e,n)?this:ge(this,I(t,n),z(e,n))},ie.prototype.__iterator=function(t,e){var n=0,r=he(this,e);return new A((function(){var e=r();return e===pe?{value:void 0,done:!0}:q(t,n++,e)}))},ie.prototype.__iterate=function(t,e){for(var n,r=0,i=he(this,e);(n=i())!==pe&&!1!==t(n,r++,this););return r},ie.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?le(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ie.isList=oe;var ue="@@__IMMUTABLE_LIST__@@",se=ie.prototype;function ae(t,e){this.array=t,this.ownerID=e}se[ue]=!0,se.delete=se.remove,se.setIn=At.setIn,se.deleteIn=se.removeIn=At.removeIn,se.update=At.update,se.updateIn=At.updateIn,se.mergeIn=At.mergeIn,se.mergeDeepIn=At.mergeDeepIn,se.withMutations=At.withMutations,se.asMutable=At.asMutable,se.asImmutable=At.asImmutable,se.wasAltered=At.wasAltered,ae.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&31;if(r>=this.array.length)return new ae([],t);var i,o=0===r;if(e>0){var u=this.array[r];if((i=u&&u.removeBefore(t,e-5,n))===u&&o)return this}if(o&&!i)return this;var s=_e(this,t);if(!o)for(var a=0;a<r;a++)s.array[a]=void 0;return i&&(s.array[r]=i),s},ae.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-5,n))===o&&i===this.array.length-1)return this}var u=_e(this,t);return u.array.splice(i+1),r&&(u.array[i]=r),u};var ce,fe,pe={};function he(t,e){var n=t._origin,r=t._capacity,i=be(r),o=t._tail;return function t(u,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>n?0:n-u,c=r-u;return c>32&&(c=32),function(){if(a===c)return pe;var t=e?--c:a++;return s&&s[t]}}(u,a):function(i,o,u){var s,a=i&&i.array,c=u>n?0:n-u>>o,f=1+(r-u>>o);return f>32&&(f=32),function(){for(;;){if(s){var n=s();if(n!==pe)return n;s=null}if(c===f)return pe;var r=e?--f:c++;s=t(a&&a[r],o-5,u+(r<<o))}}}(u,s,a)}(t._root,t._level,0)}function le(t,e,n,r,i,o,u){var s=Object.create(se);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function de(){return ce||(ce=le(0,0,5))}function ve(t,e,n,r,i,o){var u,s=r>>>n&31,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(n>0){var c=t&&t.array[s],f=ve(c,e,n-5,r,i,o);return f===c?t:((u=_e(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(m(o),u=_e(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function _e(t,e){return e&&t&&e===t.ownerID?t:new ae(t?t.array.slice():[],e)}function ye(t,e){if(e>=be(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&31],r-=5;return n}}function ge(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new b,i=t._origin,o=t._capacity,u=i+e,s=void 0===n?o:n<0?o+n:i+n;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new ae(c&&c.array.length?[void 0,c]:[],r),f+=1<<(a+=5);f&&(u+=f,i+=f,s+=f,o+=f);for(var p=be(o),h=be(s);h>=1<<a+5;)c=new ae(c&&c.array.length?[c]:[],r),a+=5;var l=t._tail,d=h<p?ye(t,s-1):h>p?new ae([],r):l;if(l&&h>p&&u<o&&l.array.length){for(var v=c=_e(c,r),_=a;_>5;_-=5){var y=p>>>_&31;v=v.array[y]=_e(v.array[y],r)}v.array[p>>>5&31]=l}if(s<o&&(d=d&&d.removeAfter(r,0,s)),u>=h)u-=h,s-=h,a=5,c=null,d=d&&d.removeBefore(r,0,u);else if(u>i||h<p){for(f=0;c;){var g=u>>>a&31;if(g!==h>>>a&31)break;g&&(f+=(1<<a)*g),a-=5,c=c.array[g]}c&&u>i&&(c=c.removeBefore(r,a,u-f)),c&&h<p&&(c=c.removeAfter(r,a,h-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):le(u,s,a,c,d)}function me(t,e,n){for(var r=[],o=0,s=0;s<n.length;s++){var a=n[s],c=i(a);c.size>o&&(o=c.size),u(a)||(c=c.map((function(t){return rt(t)}))),r.push(c)}return o>t.size&&(t=t.setSize(o)),Gt(t,e,r)}function be(t){return t<32?0:t-1>>>5<<5}function we(t){return null==t?xe():Se(t)?t:xe().withMutations((function(e){var n=r(t);Mt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Se(t){return Rt(t)&&f(t)}function Oe(t,e,n,r){var i=Object.create(we.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function xe(){return fe||(fe=Oe(Wt(),de()))}function Ee(t,e,n){var r,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(n===v){if(!a)return t;u.size>=32&&u.size>=2*o.size?(r=(i=u.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(n===u.get(s)[1])return t;r=o,i=u.set(s,[e,n])}else r=o.set(e,u.size),i=u.set(u.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Oe(r,i)}function Ie(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function ke(t){this._iter=t,this.size=t.size}function Me(t){this._iter=t,this.size=t.size}function De(t){var e=He(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=Je,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(2===e){var r=t.__iterator(e,n);return new A((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(1===e?0:1,n)},e}function Re(t,e,n){var r=He(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,v);return o===v?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate((function(t,i,u){return!1!==r(e.call(n,t,i,u),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(2,i);return new A((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return q(r,s,e.call(n,u[1],s,t),i)}))},r}function Ce(t,e){var n=He(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=De(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=Je,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 je(t,e,n,r){var i=He(t);return r&&(i.has=function(r){var i=t.get(r,v);return i!==v&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,v);return o!==v&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(e.call(n,t,o,a))return s++,i(t,r?o:s-1,u)}),o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),s=0;return new A((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(n,f,c,t))return q(i,r?c:s++,f,o)}}))},i}function Ae(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),E(e,n,i))return t;var o=I(e,i),u=z(n,i);if(o!=o||u!=u)return Ae(t.toSeq().cacheResult(),e,n,r);var s,a=u-o;a==a&&(s=a<0?0:a);var c=He(t);return c.size=0===s?s:t.size&&s||void 0,!r&&X(t)&&s>=0&&(c.get=function(e,n){return(e=O(this,e))>=0&&e<s?t.get(e+o,n):n}),c.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var u=0,a=!0,c=0;return t.__iterate((function(t,n){if(!a||!(a=u++<o))return c++,!1!==e(t,r?n:c-1,i)&&c!==s})),c},c.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),u=0,a=0;return new A((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return r||1===e?t:q(e,a-1,0===e?void 0:t.value[1],t)}))},c}function qe(t,e,n,r){var i=He(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return a++,i(t,r?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),a=!0,c=0;return new A((function(){var t,o,f;do{if((t=s.next()).done)return r||1===i?t:q(i,c++,0===i?void 0:t.value[1],t);var p=t.value;o=p[0],f=p[1],a&&(a=e.call(n,f,o,u))}while(a);return 2===i?t:q(i,o,f,t)}))},i}function Pe(t,e){var n=s(t),i=[t].concat(e).map((function(t){return u(t)?n&&(t=r(t)):t=n?G(t):Z(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||a(t)&&a(o))return o}var c=new H(i);return n?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),c}function Be(t,e,n){var r=He(t);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function t(a,c){var f=this;a.__iterate((function(i,a){return(!e||c<e)&&u(i)?t(i,c+1):!1===r(i,n?a:o++,f)&&(s=!0),!s}),i)}(t,0),o},r.__iteratorUncached=function(r,i){var o=t.__iterator(r,i),s=[],a=0;return new A((function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(s.length<e)||!u(c))return n?t:q(r,a++,c,t);s.push(o),o=c.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Te(t,e,n){e||(e=$e);var r=s(t),i=0,o=t.toSeq().map((function(e,r){return[r,e,i++,n?n(e,r,t):e]})).toArray();return o.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?U(o):a(t)?W(o):N(o)}function Ke(t,e,n){if(e||(e=$e),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return Fe(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return Fe(e,t,n)?n:t}))}function Fe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Le(t,e,r){var i=He(t);return i.size=new H(r).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=n(t),K(i?t.reverse():t)})),u=0,s=!1;return new A((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:q(t,u++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function Ve(t,e){return X(t)?e:t.constructor(e)}function Ue(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function We(t){return Mt(t.size),S(t)}function Ne(t){return s(t)?r:a(t)?i:o}function He(t){return Object.create((s(t)?U:a(t)?W:N).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function $e(t,e){return t>e?1:t<e?-1:0}function Ye(t){var e=K(t);if(!e){if(!L(t))throw new TypeError("Expected iterable or array-like: "+t);e=K(n(t))}return e}function Xe(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var u=Object.keys(t);!function(t,e){try{e.forEach(tn.bind(void 0,t))}catch(t){}}(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Dt(o)},i=r.prototype=Object.create(Qe);return i.constructor=r,r}e(we,Dt),we.of=function(){return this(arguments)},we.prototype.toString=function(){return this.__toString("OrderedMap {","}")},we.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},we.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):xe()},we.prototype.set=function(t,e){return Ee(this,t,e)},we.prototype.remove=function(t){return Ee(this,t,v)},we.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},we.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},we.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},we.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Oe(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},we.isOrderedMap=Se,we.prototype[d]=!0,we.prototype.delete=we.prototype.remove,e(Ie,U),Ie.prototype.get=function(t,e){return this._iter.get(t,e)},Ie.prototype.has=function(t){return this._iter.has(t)},Ie.prototype.valueSeq=function(){return this._iter.valueSeq()},Ie.prototype.reverse=function(){var t=this,e=Ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Ie.prototype.map=function(t,e){var n=this,r=Re(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Ie.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?We(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Ie.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(1,e),r=e?We(this):0;return new A((function(){var i=n.next();return i.done?i:q(t,e?--r:r++,i.value,i)}))},Ie.prototype[d]=!0,e(ze,W),ze.prototype.includes=function(t){return this._iter.includes(t)},ze.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate((function(e){return t(e,r++,n)}),e)},ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e),r=0;return new A((function(){var e=n.next();return e.done?e:q(t,r++,e.value,e)}))},e(ke,N),ke.prototype.has=function(t){return this._iter.includes(t)},ke.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},ke.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new A((function(){var e=n.next();return e.done?e:q(t,e.value,e.value,e)}))},e(Me,U),Me.prototype.entrySeq=function(){return this._iter.toSeq()},Me.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Ue(e);var r=u(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},Me.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new A((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ue(r);var i=u(r);return q(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}}))},ze.prototype.cacheResult=Ie.prototype.cacheResult=ke.prototype.cacheResult=Me.prototype.cacheResult=Je,e(Xe,ht),Xe.prototype.toString=function(){return this.__toString(Ze(this)+" {","}")},Xe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Xe.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},Xe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ge(this,Wt()))},Xe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ze(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Ge(this,n)},Xe.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:Ge(this,e)},Xe.prototype.wasAltered=function(){return this._map.wasAltered()},Xe.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterator(t,e)},Xe.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterate(t,e)},Xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ge(this,e,t):(this.__ownerID=t,this._map=e,this)};var Qe=Xe.prototype;function Ge(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function Ze(t){return t._name||t.constructor.name||"Record"}function tn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ct(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function en(t){return null==t?cn():nn(t)&&!f(t)?t:cn().withMutations((function(e){var n=o(t);Mt(n.size),n.forEach((function(t){return e.add(t)}))}))}function nn(t){return!(!t||!t[on])}Qe.delete=Qe.remove,Qe.deleteIn=Qe.removeIn=At.removeIn,Qe.merge=At.merge,Qe.mergeWith=At.mergeWith,Qe.mergeIn=At.mergeIn,Qe.mergeDeep=At.mergeDeep,Qe.mergeDeepWith=At.mergeDeepWith,Qe.mergeDeepIn=At.mergeDeepIn,Qe.setIn=At.setIn,Qe.update=At.update,Qe.updateIn=At.updateIn,Qe.withMutations=At.withMutations,Qe.asMutable=At.asMutable,Qe.asImmutable=At.asImmutable,e(en,dt),en.of=function(){return this(arguments)},en.fromKeys=function(t){return this(r(t).keySeq())},en.prototype.toString=function(){return this.__toString("Set {","}")},en.prototype.has=function(t){return this._map.has(t)},en.prototype.add=function(t){return sn(this,this._map.set(t,!0))},en.prototype.remove=function(t){return sn(this,this._map.remove(t))},en.prototype.clear=function(){return sn(this,this._map.clear())},en.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++)o(e[n]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},en.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.every((function(t){return t.includes(n)}))||t.remove(n)}))}))},en.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.some((function(t){return t.includes(n)}))&&t.remove(n)}))}))},en.prototype.merge=function(){return this.union.apply(this,arguments)},en.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},en.prototype.sort=function(t){return fn(Te(this,t))},en.prototype.sortBy=function(t,e){return fn(Te(this,e,t))},en.prototype.wasAltered=function(){return this._map.wasAltered()},en.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e,r){return t(r,r,n)}),e)},en.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},en.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)},en.isSet=nn;var rn,on="@@__IMMUTABLE_SET__@@",un=en.prototype;function sn(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 an(t,e){var n=Object.create(un);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function cn(){return rn||(rn=an(Wt()))}function fn(t){return null==t?vn():pn(t)?t:vn().withMutations((function(e){var n=o(t);Mt(n.size),n.forEach((function(t){return e.add(t)}))}))}function pn(t){return nn(t)&&f(t)}un[on]=!0,un.delete=un.remove,un.mergeDeep=un.merge,un.mergeDeepWith=un.mergeWith,un.withMutations=At.withMutations,un.asMutable=At.asMutable,un.asImmutable=At.asImmutable,un.__empty=cn,un.__make=an,e(fn,en),fn.of=function(){return this(arguments)},fn.fromKeys=function(t){return this(r(t).keySeq())},fn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},fn.isOrderedSet=pn;var hn,ln=fn.prototype;function dn(t,e){var n=Object.create(ln);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function vn(){return hn||(hn=dn(xe()))}function yn(t){return null==t?On():gn(t)?t:On().unshiftAll(t)}function gn(t){return!(!t||!t[bn])}ln[d]=!0,ln.__empty=vn,ln.__make=dn,e(yn,lt),yn.of=function(){return this(arguments)},yn.prototype.toString=function(){return this.__toString("Stack [","]")},yn.prototype.get=function(t,e){var n=this._head;for(t=O(this,t);n&&t--;)n=n.next;return n?n.value:e},yn.prototype.peek=function(){return this._head&&this._head.value},yn.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):Sn(t,e)},yn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Mt(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):Sn(e,n)},yn.prototype.pop=function(){return this.slice(1)},yn.prototype.unshift=function(){return this.push.apply(this,arguments)},yn.prototype.unshiftAll=function(t){return this.pushAll(t)},yn.prototype.shift=function(){return this.pop.apply(this,arguments)},yn.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):On()},yn.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var n=I(t,this.size);if(z(e,this.size)!==this.size)return lt.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Sn(r,i)},yn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Sn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},yn.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},yn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new A((function(){if(r){var e=r.value;return r=r.next,q(t,n++,e)}return{value:void 0,done:!0}}))},yn.isStack=gn;var mn,bn="@@__IMMUTABLE_STACK__@@",wn=yn.prototype;function Sn(t,e,n,r){var i=Object.create(wn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function On(){return mn||(mn=Sn(0))}function xn(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}wn[bn]=!0,wn.withMutations=At.withMutations,wn.asMutable=At.asMutable,wn.asImmutable=At.asImmutable,wn.wasAltered=At.wasAltered,n.Iterator=A,xn(n,{toArray:function(){Mt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new ze(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 Ie(this,!0)},toMap:function(){return Dt(this.toKeyedSeq())},toObject:function(){Mt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return we(this.toKeyedSeq())},toOrderedSet:function(){return fn(s(this)?this.valueSeq():this)},toSet:function(){return en(s(this)?this.valueSeq():this)},toSetSeq:function(){return new ke(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return yn(s(this)?this.valueSeq():this)},toList:function(){return ie(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 Ve(this,Pe(this,e))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Mt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1})),n},filter:function(t,e){return Ve(this,je(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,i,o){if(t.call(e,r,i,o))return n=[i,r],!1})),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Mt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Mt(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(0)},map:function(t,e){return Ve(this,Re(this,t,e))},reduce:function(t,e,n){var r,i;return Mt(this.size),arguments.length<2?i=!0:r=e,this.__iterate((function(e,o,u){i?(i=!1,r=e):r=t.call(n,r,e,o,u)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ve(this,Ce(this,!0))},slice:function(t,e){return Ve(this,Ae(this,t,e,!0))},some:function(t,e){return!this.every(Mn(t),e)},sort:function(t){return Ve(this,Te(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return S(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Dt().asMutable();return t.__iterate((function(i,o){r.update(e.call(n,i,o,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return st(this,t)},entrySeq:function(){var t=this;if(t._cache)return new H(t._cache);var e=t.toSeq().map(kn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Mn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(x)},flatMap:function(t,e){return Ve(this,function(t,e,n){var r=Ne(t);return t.toSeq().map((function(i,o){return r(e.call(n,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Ve(this,Be(this,t,!0))},fromEntrySeq:function(){return new Me(this)},get:function(t,e){return this.find((function(e,n){return ut(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,i=Ye(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),i=(f(t)?we():Dt()).asMutable();t.__iterate((function(o,u){i.update(e.call(n,o,u,t),(function(t){return(t=t||[]).push(r?[u,o]:o),t}))}));var o=Ne(t);return i.map((function(e){return Ve(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Ke(this,t)},maxBy:function(t,e){return Ke(this,e,t)},min:function(t){return Ke(this,t?Dn(t):jn)},minBy:function(t,e){return Ke(this,e?Dn(e):jn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ve(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ve(this,qe(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Mn(t),e)},sortBy:function(t,e){return Ve(this,Te(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ve(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ve(this,function(t,e,n){var r=He(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var u=0;return t.__iterate((function(t,i,s){return e.call(n,t,i,s)&&++u&&r(t,i,o)})),u},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var u=t.__iterator(2,i),s=!0;return new A((function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(n,c,a,o)?2===r?t:q(r,a,c,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Mn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=f(t),n=s(t),r=e?1:0;return function(t,e){return e=vt(e,3432918353),e=vt(e<<15|e>>>-15,461845907),e=vt(e<<13|e>>>-13,5),e=vt((e=(e+3864292196|0)^t)^e>>>16,2246822507),_t((e=vt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+An(yt(t),yt(e))|0}:function(t,e){r=r+An(yt(t),yt(e))|0}:e?function(t){r=31*r+yt(t)|0}:function(t){r=r+yt(t)|0}),r)}(this))}});var En=n.prototype;En[p]=!0,En[j]=En.values,En.__toJS=En.toArray,En.__toStringMapper=Rn,En.inspect=En.toSource=function(){return this.toString()},En.chain=En.flatMap,En.contains=En.includes,function(){try{Object.defineProperty(En,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),xn(r,{flip:function(){return Ve(this,De(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return ut(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return ut(e,t)}))},mapEntries:function(t,e){var n=this,r=0;return Ve(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ve(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var In=r.prototype;function zn(t,e){return e}function kn(t,e){return[e,t]}function Mn(t){return function(){return!t.apply(this,arguments)}}function Dn(t){return function(){return-t.apply(this,arguments)}}function Rn(t){return"string"==typeof t?JSON.stringify(t):t}function Cn(){return w(arguments)}function jn(t,e){return t<e?1:t>e?-1:0}function An(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return In[h]=!0,In[j]=En.entries,In.__toJS=En.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Rn(t)},xn(i,{toKeyedSeq:function(){return new Ie(this,!1)},filter:function(t,e){return Ve(this,je(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Ve(this,Ce(this,!1))},slice:function(t,e){return Ve(this,Ae(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=I(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ve(this,1===n?r:r.concat(w(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return Ve(this,Be(this,t,!1))},get:function(t,e){return(t=O(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=O(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ve(this,function(t,e){var n=He(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate((function(t,r){return(!o||!1!==n(e,o++,i))&&!1!==n(t,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(1,r),u=0;return new A((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?q(n,u++,e):q(n,u++,i.value,i)}))},n}(this,t))},interleave:function(){var t=[this].concat(w(arguments)),e=Le(this.toSeq(),W.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Ve(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ve(this,qe(this,t,e,!1))},zip:function(){var t=[this].concat(w(arguments));return Ve(this,Le(this,Cn,t))},zipWith:function(t){var e=w(arguments);return e[0]=this,Ve(this,Le(this,t,e))}}),i.prototype[l]=!0,i.prototype[d]=!0,xn(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=En.includes,xn(U,r.prototype),xn(W,i.prototype),xn(N,o.prototype),xn(ht,r.prototype),xn(lt,i.prototype),xn(dt,o.prototype),{Iterable:n,Seq:V,Collection:pt,Map:Dt,OrderedMap:we,List:ie,Stack:yn,Set:en,OrderedSet:fn,Record:Xe,Range:ft,Repeat:at,is:ut,fromJS:rt}}()},2:function(t,e){t.exports=window.lodash},20:function(t,e,n){var r=n(54),i=n(55),o=n(51),u=n(56);t.exports=function(t){return r(t)||i(t)||o(t)||u()},t.exports.default=t.exports,t.exports.__esModule=!0},24:function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},243:function(t,e){t.exports=window.lodash.get},244:function(t,e,n){var r=n(285),i=n(286),o=n(51),u=n(287);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||u()},t.exports.default=t.exports,t.exports.__esModule=!0},245:function(t,e){var n="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;t.exports=function(t,e){try{return function t(e,u){if(e===u)return!0;if(e&&u&&"object"==typeof e&&"object"==typeof u){if(e.constructor!==u.constructor)return!1;var s,a,c,f;if(Array.isArray(e)){if((s=e.length)!=u.length)return!1;for(a=s;0!=a--;)if(!t(e[a],u[a]))return!1;return!0}if(r&&e instanceof Map&&u instanceof Map){if(e.size!==u.size)return!1;for(f=e.entries();!(a=f.next()).done;)if(!u.has(a.value[0]))return!1;for(f=e.entries();!(a=f.next()).done;)if(!t(a.value[1],u.get(a.value[0])))return!1;return!0}if(i&&e instanceof Set&&u instanceof Set){if(e.size!==u.size)return!1;for(f=e.entries();!(a=f.next()).done;)if(!u.has(a.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(u)){if((s=e.length)!=u.length)return!1;for(a=s;0!=a--;)if(e[a]!==u[a])return!1;return!0}if(e.constructor===RegExp)return e.source===u.source&&e.flags===u.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===u.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===u.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(u).length)return!1;for(a=s;0!=a--;)if(!Object.prototype.hasOwnProperty.call(u,c[a]))return!1;if(n&&e instanceof Element)return!1;for(a=s;0!=a--;)if(("_owner"!==c[a]&&"__v"!==c[a]&&"__o"!==c[a]||!e.$$typeof)&&!t(e[c[a]],u[c[a]]))return!1;return!0}return e!=e&&u!=u}(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},285:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},286:function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(_n=(o=u.next()).done)&&(n.push(o.value),!e||n.length!==e);_n=!0);}catch(t){r=!0,i=t}finally{try{_n||null==u.return||u.return()}finally{if(r)throw i}}return n}},t.exports.default=t.exports,t.exports.__esModule=!0},287:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},3:function(t,e){t.exports=window.wp.i18n},30:function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},4:function(t,e){t.exports=window.React},40:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},42:function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var u=i.apply(null,r);u&&t.push(u)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},48:function(t,e){t.exports=window.wp.a11y},5:function(t,e){t.exports=window.yoast.styledComponents},51:function(t,e,n){var r=n(40);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},527:function(t,e,n){"use strict";n.r(e),n.d(e,"ReplacementVariableEditor",(function(){return Bn})),n.d(e,"ReplacementVariableEditorStandalone",(function(){return kn})),n.d(e,"SettingsSnippetEditor",(function(){return Vn})),n.d(e,"StyledEditor",(function(){return Tn})),n.d(e,"StandardButton",(function(){return jn})),n.d(e,"TriggerReplacementVariableSuggestionsButton",(function(){return An})),n.d(e,"replacementVariablesShape",(function(){return Ue})),n.d(e,"recommendedReplacementVariablesShape",(function(){return We}));var r=n(9),i=n.n(r),o=n(10),u=n.n(o),s=n(14),a=n.n(s),c=n(11),f=n.n(c),p=n(12),h=n.n(p),l=n(8),d=n.n(l),v=n(1),_=n(4),y=n.n(_),g=n(0),m=n.n(g),b=n(68),w=n.n(b),S=n(3),O=n(17),x=n.n(O),E=n(6),I=n.n(E),z=n(16),k=n(19),M=n.n(k);function D(){return(D=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function R(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function C(t){var e=t.getCurrentContent().getBlockMap(),n=e.last().getKey(),r=e.last().getLength(),i=new z.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return z.EditorState.acceptSelection(t,i)}var j=function(){function t(t){this.decorators=void 0,this.decorators=M.a.List(t)}var e=t.prototype;return e.getDecorations=function(t,e){var n=new Array(t.getText().length).fill(null);return this.decorators.forEach((function(r,i){r.getDecorations(t,e).forEach((function(t,e){t&&(n[e]=i+"-"+t)}))})),M.a.List(n)},e.getComponentForKey=function(e){return this.getDecoratorForKey(e).getComponentForKey(t.getInnerKey(e))},e.getPropsForKey=function(e){return this.getDecoratorForKey(e).getPropsForKey(t.getInnerKey(e))},e.getDecoratorForKey=function(t){var e=t.split("-"),n=Number(e[0]);return this.decorators.get(n)},t.getInnerKey=function(t){return t.split("-").slice(1).join("-")},t}(),A=function(t){return"function"==typeof t.getDecorations&&"function"==typeof t.getComponentForKey&&"function"==typeof t.getPropsForKey};function q(t){return Object(z.getDefaultKeyBinding)(t)}function P(t,e,n,r){var i,o=r.setEditorState;switch(t){case"backspace":case"backspace-word":case"backspace-to-start-of-line":i=z.RichUtils.onBackspace(e);break;case"delete":case"delete-word":case"delete-to-end-of-block":i=z.RichUtils.onDelete(e);break;default:return"not-handled"}return null!=i?(o(i),"handled"):"not-handled"}var B=function(t){var e,n;return null!=(null==t?void 0:t.decorators)?null==(e=t.decorators)?void 0:e.size:null!=(null==t?void 0:t._decorators)?null==(n=t._decorators)?void 0:n.length:void 0},T=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).editor=null,n.state={readOnly:!1},n.onChange=function(t){var e=t;n.resolvePlugins().forEach((function(t){t.onChange&&(e=t.onChange(e,n.getPluginMethods()))})),n.props.onChange&&n.props.onChange(e)},n.getPlugins=function(){return[].concat(n.props.plugins)},n.getProps=function(){return D({},n.props)},n.getReadOnly=function(){return n.props.readOnly||n.state.readOnly},n.setReadOnly=function(t){t!==n.state.readOnly&&n.setState({readOnly:t})},n.getEditorRef=function(){return n.editor},n.getEditorState=function(){return n.props.editorState},n.getPluginMethods=function(){return{getPlugins:n.getPlugins,getProps:n.getProps,setEditorState:n.onChange,getEditorState:n.getEditorState,getReadOnly:n.getReadOnly,setReadOnly:n.setReadOnly,getEditorRef:n.getEditorRef}},n.createPluginHooks=function(){return t=[n.props].concat(n.resolvePlugins()),e=n.getPluginMethods(),r={},i=new Set(["onChange"]),t.forEach((function(n){Object.keys(n).forEach((function(n){i.has(n)||(i.add(n),n.startsWith("on")?r[n]=function(t,e,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.some((function(e){var r=e[t];return"function"==typeof r&&!0===r.apply(void 0,i.concat([n]))}))}}(n,t,e):function(t){return t.startsWith("handle")}(n)?r[n]=function(t,e,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.some((function(e){var r=e[t];return"function"==typeof r&&"handled"===r.apply(void 0,i.concat([n]))}))?"handled":"not-handled"}}(n,t,e):function(t){return t.endsWith("Fn")}(n)&&("blockRendererFn"===n?r.blockRendererFn=function(t,e){return function(n){var r={props:{}};return t.forEach((function(t){if("function"==typeof t.blockRendererFn){var i=t.blockRendererFn(n,e);if(null!=i){var o=i.props,u=R(i,["props"]),s=r,a=s.props,c=R(s,["props"]);r=D({},c,u,{props:D({},a,o)})}}})),!!r.component&&r}}(t,e):"blockStyleFn"===n?r.blockStyleFn=function(t,e){return function(n){var r=[];return t.forEach((function(t){if("function"==typeof t.blockStyleFn){var i=t.blockStyleFn(n,e);null!=i&&r.push(i)}})),r.join(" ")}}(t,e):"customStyleFn"===n?r.customStyleFn=function(t,e){return function(n,r){var i;return t.some((function(t){return"function"==typeof t.customStyleFn&&void 0!==(i=t.customStyleFn(n,r,e))}))&&i?i:{}}}(t,e):"keyBindingFn"===n&&(r.keyBindingFn=function(t,e){return function(n){var r=null;return t.some((function(t){return"function"==typeof t.keyBindingFn&&void 0!==(r=t.keyBindingFn(n,e))}))?r:null}}(t,e))))}))})),r;var t,e,r,i},n.resolvePlugins=function(){var t=n.getPlugins();return!0===n.props.defaultKeyBindings&&t.push({keyBindingFn:q}),!0===n.props.defaultKeyCommands&&t.push({handleKeyCommand:P}),t},n.resolveCustomStyleMap=function(){return n.props.plugins.filter((function(t){return void 0!==t.customStyleMap})).map((function(t){return t.customStyleMap})).concat([n.props.customStyleMap]).reduce((function(t,e){return D({},t,e)}),{})},n.resolveblockRenderMap=function(){var t=n.props.plugins.filter((function(t){return void 0!==t.blockRenderMap})).reduce((function(t,e){return t.merge(e.blockRenderMap)}),Object(k.Map)({}));return n.props.defaultBlockRenderMap&&(t=z.DefaultDraftBlockRenderMap.merge(t)),n.props.blockRenderMap&&(t=t.merge(n.props.blockRenderMap)),t},n.resolveAccessibilityProps=function(){var t={};return n.resolvePlugins().forEach((function(e){if("function"==typeof e.getAccessibilityProps){var n=e.getAccessibilityProps(),r={};void 0===t.ariaHasPopup?r.ariaHasPopup=n.ariaHasPopup:"true"===n.ariaHasPopup&&(r.ariaHasPopup="true"),void 0===t.ariaExpanded?r.ariaExpanded=n.ariaExpanded:!0===n.ariaExpanded&&(r.ariaExpanded=!0),t=D({},t,n,r)}})),t},[n.props].concat(n.resolvePlugins()).forEach((function(t){t&&"function"==typeof t.initialize&&t.initialize(n.getPluginMethods())})),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.focus=function(){this.editor&&this.editor.focus()},i.blur=function(){this.editor&&this.editor.blur()},i.componentDidMount=function(){var t,e,n,r,i,o,u=(t=this.props,e=this.getEditorState,n=this.onChange,r=function(t){var e=t.decorators,n=t.plugins,r=void 0===n?[]:n;return Object(k.List)([{decorators:e}].concat(r)).filter((function(t){return void 0!==(null==t?void 0:t.decorators)})).flatMap((function(t){return null==t?void 0:t.decorators}))}(t),i=function(t,e,n){var r=Object(k.List)(t).map((function(t){var r=t.component;return D({},t,{component:function(t){return y.a.createElement(r,D({},t,{getEditorState:e,setEditorState:n}))}})})).toJS();return new z.CompositeDecorator(r)}(r.filter((function(t){return!A(t)})),e,n),o=r.filter((function(t){return A(t)})),new j(o.push(i))),s=z.EditorState.set(this.props.editorState,{decorator:u});this.onChange(C(s))},i.componentDidUpdate=function(t){var e=this.props,n=t.editorState.getDecorator(),r=e.editorState.getDecorator();if(n&&!(n===r||n&&r&&B(n)===B(r))){var i=z.EditorState.set(e.editorState,{decorator:n});this.onChange(C(i))}},i.componentWillUnmount=function(){var t=this;this.resolvePlugins().forEach((function(e){e.willUnmount&&e.willUnmount({getEditorState:t.getEditorState,setEditorState:t.onChange})}))},i.render=function(){var t=this,e=this.createPluginHooks(),n=this.resolveCustomStyleMap(),r=this.resolveAccessibilityProps(),i=this.resolveblockRenderMap(),o=this.props;o.keyBindingFn;var u=R(o,["keyBindingFn"]);return y.a.createElement(z.Editor,D({},u,r,e,{readOnly:this.props.readOnly||this.state.readOnly,customStyleMap:n,blockRenderMap:i,onChange:this.onChange,editorState:this.props.editorState,ref:function(e){t.editor=e}}))},r}(_.Component);T.propTypes={editorState:m.a.object.isRequired,onChange:m.a.func.isRequired,plugins:m.a.array,defaultKeyBindings:m.a.bool,defaultKeyCommands:m.a.bool,defaultBlockRenderMap:m.a.bool,customStyleMap:m.a.object,decorators:m.a.array},T.defaultProps={defaultBlockRenderMap:!0,defaultKeyBindings:!0,defaultKeyCommands:!0,customStyleMap:{},plugins:[],decorators:[]};var K=T;function F(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=F(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}var L=function(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=F(t))&&(r&&(r+=" "),r+=e);return r},V=n(146),U=n.n(V);function W(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function N(t){return t instanceof W(t).Element||t instanceof Element}function H(t){return t instanceof W(t).HTMLElement||t instanceof HTMLElement}function J(t){return"undefined"!=typeof ShadowRoot&&(t instanceof W(t).ShadowRoot||t instanceof ShadowRoot)}var $=Math.max,Y=Math.min,X=Math.round;function Q(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(H(t)&&e){var o=t.offsetHeight,u=t.offsetWidth;u>0&&(r=X(n.width)/u||1),o>0&&(i=X(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function G(t){var e=W(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z(t){return t?(t.nodeName||"").toLowerCase():null}function tt(t){return((N(t)?t.ownerDocument:t.document)||window.document).documentElement}function et(t){return Q(tt(t)).left+G(t).scrollLeft}function nt(t){return W(t).getComputedStyle(t)}function rt(t){var e=nt(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function it(t,e,n){void 0===n&&(n=!1);var r,i,o=H(e),u=H(e)&&function(t){var e=t.getBoundingClientRect(),n=X(e.width)/t.offsetWidth||1,r=X(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),s=tt(e),a=Q(t,u),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(o||!o&&!n)&&(("body"!==Z(e)||rt(s))&&(c=(r=e)!==W(r)&&H(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:G(r)),H(e)?((f=Q(e,!0)).x+=e.clientLeft,f.y+=e.clientTop):s&&(f.x=et(s))),{x:a.left+c.scrollLeft-f.x,y:a.top+c.scrollTop-f.y,width:a.width,height:a.height}}function ot(t){var e=Q(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ut(t){return"html"===Z(t)?t:t.assignedSlot||t.parentNode||(J(t)?t.host:null)||tt(t)}function st(t,e){var n;void 0===e&&(e=[]);var r=function t(e){return["html","body","#document"].indexOf(Z(e))>=0?e.ownerDocument.body:H(e)&&rt(e)?e:t(ut(e))}(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=W(r),u=i?[o].concat(o.visualViewport||[],rt(r)?r:[]):r,s=e.concat(u);return i?s:s.concat(st(ut(u)))}function at(t){return["table","td","th"].indexOf(Z(t))>=0}function ct(t){return H(t)&&"fixed"!==nt(t).position?t.offsetParent:null}function ft(t){for(var e=W(t),n=ct(t);n&&at(n)&&"static"===nt(n).position;)n=ct(n);return n&&("html"===Z(n)||"body"===Z(n)&&"static"===nt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&H(t)&&"fixed"===nt(t).position)return null;for(var n=ut(t);H(n)&&["html","body"].indexOf(Z(n))<0;){var r=nt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}var pt="top",ht="bottom",lt="right",dt="left",vt=[pt,ht,lt,dt],_t=vt.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),yt=[].concat(vt,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),gt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var mt={placement:"bottom",modifiers:[],strategy:"absolute"};function bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function wt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?mt:i;return function(t,e,n){void 0===n&&(n=o);var i,u,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},mt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],c=!1,f={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:N(t)?st(t):t.contextElement?st(t.contextElement):[],popper:st(e)};var u,c,h=function(t){var e=function(t){var e=new Map,n=new Set,r=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=e.get(r);i&&t(i)}})),r.push(i)}(t)})),r}(t);return gt.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((u=[].concat(r,s.options.modifiers),c=u.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var o=i({state:s,name:e,instance:f,options:r});a.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(bt(e,n)){s.rects={reference:it(e,ft(n),"fixed"===s.options.strategy),popper:ot(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,u=i.options,a=void 0===u?{}:u,p=i.name;"function"==typeof o&&(s=o({state:s,options:a,name:p,instance:f})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){f.forceUpdate(),t(s)}))},function(){return u||(u=new Promise((function(t){Promise.resolve().then((function(){u=void 0,t(i())}))}))),u}),destroy:function(){p(),c=!0}};if(!bt(t,e))return f;function p(){a.forEach((function(t){return t()})),a=[]}return f.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),f}}var St={passive:!0};function Ot(t){return t.split("-")[0]}function xt(t){return t.split("-")[1]}function Et(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function It(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?Ot(i):null,u=i?xt(i):null,s=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(o){case pt:e={x:s,y:n.y-r.height};break;case ht:e={x:s,y:n.y+n.height};break;case lt:e={x:n.x+n.width,y:a};break;case dt:e={x:n.x-r.width,y:a};break;default:e={x:n.x,y:n.y}}var c=o?Et(o):null;if(null!=c){var f="y"===c?"height":"width";switch(u){case"start":e[c]=e[c]-(n[f]/2-r[f]/2);break;case"end":e[c]=e[c]+(n[f]/2-r[f]/2)}}return e}var zt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kt(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,u=t.offsets,s=t.position,a=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,p=t.isFixed,h=!0===f?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:X(e*r)/r||0,y:X(n*r)/r||0}}(u):"function"==typeof f?f(u):u,l=h.x,d=void 0===l?0:l,v=h.y,_=void 0===v?0:v,y=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),m=dt,b=pt,w=window;if(c){var S=ft(n),O="clientHeight",x="clientWidth";S===W(n)&&"static"!==nt(S=tt(n)).position&&"absolute"===s&&(O="scrollHeight",x="scrollWidth"),S=S,(i===pt||(i===dt||i===lt)&&"end"===o)&&(b=ht,_-=(p&&w.visualViewport?w.visualViewport.height:S[O])-r.height,_*=a?1:-1),i!==dt&&(i!==pt&&i!==ht||"end"!==o)||(m=lt,d-=(p&&w.visualViewport?w.visualViewport.width:S[x])-r.width,d*=a?1:-1)}var E,I=Object.assign({position:s},c&&zt);return a?Object.assign({},I,((E={})[b]=g?"0":"",E[m]=y?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+_+"px)":"translate3d("+d+"px, "+_+"px, 0)",E)):Object.assign({},I,((e={})[b]=g?_+"px":"",e[m]=y?d+"px":"",e.transform="",e))}var Mt={left:"right",right:"left",bottom:"top",top:"bottom"};function Dt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Mt[t]}))}var Rt={start:"end",end:"start"};function Ct(t){return t.replace(/start|end/g,(function(t){return Rt[t]}))}function jt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&J(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function At(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function qt(t,e){return"viewport"===e?At(function(t){var e=W(t),n=tt(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,u=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:u+et(t),y:s}}(t)):N(e)?function(t){var e=Q(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):At(function(t){var e,n=tt(t),r=G(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=$(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=$(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+et(t),a=-r.scrollTop;return"rtl"===nt(i||n).direction&&(s+=$(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:u,x:s,y:a}}(tt(t)))}function Pt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Bt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Tt(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.boundary,u=void 0===o?"clippingParents":o,s=n.rootBoundary,a=void 0===s?"viewport":s,c=n.elementContext,f=void 0===c?"popper":c,p=n.altBoundary,h=void 0!==p&&p,l=n.padding,d=void 0===l?0:l,v=Pt("number"!=typeof d?d:Bt(d,vt)),_="popper"===f?"reference":"popper",y=t.rects.popper,g=t.elements[h?_:f],m=function(t,e,n){var r="clippingParents"===e?function(t){var e=st(ut(t)),n=["absolute","fixed"].indexOf(nt(t).position)>=0,r=n&&H(t)?ft(t):t;return N(r)?e.filter((function(t){return N(t)&&jt(t,r)&&"body"!==Z(t)&&(!n||"static"!==nt(t).position)})):[]}(t):[].concat(e),i=[].concat(r,[n]),o=i[0],u=i.reduce((function(e,n){var r=qt(t,n);return e.top=$(r.top,e.top),e.right=Y(r.right,e.right),e.bottom=Y(r.bottom,e.bottom),e.left=$(r.left,e.left),e}),qt(t,o));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}(N(g)?g:g.contextElement||tt(t.elements.popper),u,a),b=Q(t.elements.reference),w=It({reference:b,element:y,strategy:"absolute",placement:i}),S=At(Object.assign({},y,w)),O="popper"===f?S:b,x={top:m.top-O.top+v.top,bottom:O.bottom-m.bottom+v.bottom,left:m.left-O.left+v.left,right:O.right-m.right+v.right},E=t.modifiersData.offset;if("popper"===f&&E){var I=E[i];Object.keys(x).forEach((function(t){var e=[lt,ht].indexOf(t)>=0?1:-1,n=[pt,ht].indexOf(t)>=0?"y":"x";x[t]+=I[n]*e}))}return x}function Kt(t,e,n){return $(t,Y(e,n))}function Ft(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Lt(t){return[pt,lt,ht,dt].some((function(e){return t[e]>=0}))}var Vt=wt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,u=r.resize,s=void 0===u||u,a=W(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,St)})),s&&a.addEventListener("resize",n.update,St),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,St)})),s&&a.removeEventListener("resize",n.update,St)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=It({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,u=void 0===o||o,s=n.roundOffsets,a=void 0===s||s,c={placement:Ot(e.placement),variation:xt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,kt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:u,roundOffsets:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,kt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];H(i)&&Z(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});H(r)&&Z(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,u=yt.reduce((function(t,n){return t[n]=function(t,e,n){var r=Ot(t),i=[dt,pt].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,u=o[0],s=o[1];return u=u||0,s=(s||0)*i,[dt,lt].indexOf(r)>=0?{x:s,y:u}:{x:u,y:s}}(n,e.rects,o),t}),{}),s=u[e.placement],a=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=u}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,u=n.altAxis,s=void 0===u||u,a=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,l=n.flipVariations,d=void 0===l||l,v=n.allowedAutoPlacements,_=e.options.placement,y=Ot(_),g=a||(y!==_&&d?function(t){if("auto"===Ot(t))return[];var e=Dt(t);return[Ct(t),e,Ct(e)]}(_):[Dt(_)]),m=[_].concat(g).reduce((function(t,n){return t.concat("auto"===Ot(n)?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,u=n.padding,s=n.flipVariations,a=n.allowedAutoPlacements,c=void 0===a?yt:a,f=xt(r),p=f?s?_t:_t.filter((function(t){return xt(t)===f})):vt,h=p.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=p);var l=h.reduce((function(e,n){return e[n]=Tt(t,{placement:n,boundary:i,rootBoundary:o,padding:u})[Ot(n)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}(e,{placement:n,boundary:f,rootBoundary:p,padding:c,flipVariations:d,allowedAutoPlacements:v}):n)}),[]),b=e.rects.reference,w=e.rects.popper,S=new Map,O=!0,x=m[0],E=0;E<m.length;E++){var I=m[E],z=Ot(I),k="start"===xt(I),M=[pt,ht].indexOf(z)>=0,D=M?"width":"height",R=Tt(e,{placement:I,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),C=M?k?lt:dt:k?ht:pt;b[D]>w[D]&&(C=Dt(C));var j=Dt(C),A=[];if(o&&A.push(R[z]<=0),s&&A.push(R[C]<=0,R[j]<=0),A.every((function(t){return t}))){x=I,O=!1;break}S.set(I,A)}if(O)for(var q=function(t){var e=m.find((function(e){var n=S.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},P=d?3:1;P>0&&"break"!==q(P);P--);e.placement!==x&&(e.modifiersData[r]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,u=n.altAxis,s=void 0!==u&&u,a=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,l=void 0===h||h,d=n.tetherOffset,v=void 0===d?0:d,_=Tt(e,{boundary:a,rootBoundary:c,padding:p,altBoundary:f}),y=Ot(e.placement),g=xt(e.placement),m=!g,b=Et(y),w="x"===b?"y":"x",S=e.modifiersData.popperOffsets,O=e.rects.reference,x=e.rects.popper,E="function"==typeof v?v(Object.assign({},e.rects,{placement:e.placement})):v,I="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(S){if(o){var M,D="y"===b?pt:dt,R="y"===b?ht:lt,C="y"===b?"height":"width",j=S[b],A=j+_[D],q=j-_[R],P=l?-x[C]/2:0,B="start"===g?O[C]:x[C],T="start"===g?-x[C]:-O[C],K=e.elements.arrow,F=l&&K?ot(K):{width:0,height:0},L=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=L[D],U=L[R],W=Kt(0,O[C],F[C]),N=m?O[C]/2-P-W-V-I.mainAxis:B-W-V-I.mainAxis,H=m?-O[C]/2+P+W+U+I.mainAxis:T+W+U+I.mainAxis,J=e.elements.arrow&&ft(e.elements.arrow),X=J?"y"===b?J.clientTop||0:J.clientLeft||0:0,Q=null!=(M=null==z?void 0:z[b])?M:0,G=j+H-Q,Z=Kt(l?Y(A,j+N-Q-X):A,j,l?$(q,G):q);S[b]=Z,k[b]=Z-j}if(s){var tt,et="x"===b?pt:dt,nt="x"===b?ht:lt,rt=S[w],it="y"===w?"height":"width",ut=rt+_[et],st=rt-_[nt],at=-1!==[pt,dt].indexOf(y),ct=null!=(tt=null==z?void 0:z[w])?tt:0,vt=at?ut:rt-O[it]-x[it]-ct+I.altAxis,_t=at?rt+O[it]+x[it]-ct-I.altAxis:st,yt=l&&at?function(t,e,n){var r=Kt(t,e,n);return r>n?n:r}(vt,rt,_t):Kt(l?vt:ut,rt,l?_t:st);S[w]=yt,k[w]=yt-rt}e.modifiersData[r]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,u=n.modifiersData.popperOffsets,s=Ot(n.placement),a=Et(s),c=[dt,lt].indexOf(s)>=0?"height":"width";if(o&&u){var f=function(t,e){return Pt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Bt(t,vt))}(i.padding,n),p=ot(o),h="y"===a?pt:dt,l="y"===a?ht:lt,d=n.rects.reference[c]+n.rects.reference[a]-u[a]-n.rects.popper[c],v=u[a]-n.rects.reference[a],_=ft(o),y=_?"y"===a?_.clientHeight||0:_.clientWidth||0:0,g=d/2-v/2,m=f[h],b=y-p[c]-f[l],w=y/2-p[c]/2+g,S=Kt(m,w,b),O=a;n.modifiersData[r]=((e={})[O]=S,e.centerOffset=S-w,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&jt(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,u=Tt(e,{elementContext:"reference"}),s=Tt(e,{altBoundary:!0}),a=Ft(u,r),c=Ft(s,i,o),f=Lt(a),p=Lt(c);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}}]}),Ut=n(245),Wt=n.n(Ut),Nt=function(t){return t.reduce((function(t,e){var n=e[0],r=e[1];return t[n]=r,t}),{})},Ht="undefined"!=typeof window&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,Jt=[],$t=n(2);function Yt(){return(Yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qt(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zt(t){var e=t.mention,n=t.children,r=t.className;return y.a.createElement("a",{href:e.link,className:r,spellCheck:!1,"data-testid":"mentionLink"},n)}function te(t){var e=t.children,n=t.className;return y.a.createElement("span",{className:n,spellCheck:!1,"data-testid":"mentionText"},e)}function ee(t){var e=t.entityKey,n=t.theme,r=void 0===n?{}:n,i=t.mentionComponent,o=t.children,u=t.decoratedText,s=t.className,a=t.contentState,c=L(r.mention,s),f=a.getEntity(e).getData().mention,p=i||(f.link?Zt:te);return y.a.createElement(p,{entityKey:e,mention:f,theme:r,className:c,decoratedText:u},o)}var ne=function(t){var e=t.onMentionSelect,n=t.mention,r=t.theme,i=t.index,o=t.onMentionFocus,u=t.isFocused,s=t.id,a=t.searchValue,c=t.entryComponent,f=Object(_.useRef)(!1),p=Object(_.useRef)(null);Object(_.useEffect)((function(){u&&requestAnimationFrame((function(){var t;return null==(t=p.current)?void 0:t.scrollIntoView({behavior:"smooth",block:"nearest"})}))}),[u]),Object(_.useEffect)((function(){f.current=!1}));var h=u?r.mentionSuggestionsEntryFocused:r.mentionSuggestionsEntry;return y.a.createElement("div",{ref:p},y.a.createElement(c,{className:h,onMouseDown:function(t){t.preventDefault(),f.current=!0},onMouseUp:function(){f.current&&(e(n),f.current=!1)},onMouseEnter:function(){o(i)},role:"option",id:s,"aria-selected":u?"true":void 0,theme:r,mention:n,isFocused:u,searchValue:a,selectMention:e}))};ne.propTypes={entryComponent:m.a.any.isRequired,searchValue:m.a.string,onMentionSelect:m.a.func};var re=ne,ie=function(t,e,n){var r=e.getAnchorKey(),i=e.getAnchorOffset();return function(t,e,n){for(var r,i=t.substr(0,e),o=n.map((function(t){return U()(t)})).join("|"),u=new RegExp("(\\s|^)("+o+")","g"),s=0,a=0,c=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Gt(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.matchAll(u));!(r=c()).done;){var f=r.value,p=f[1].length,h=f[2].length;a=(s=(f.index||0)+p)+h}var l=i.slice(a);return{begin:s,end:i.length,matchingString:l}}(t.getCurrentContent().getBlockForKey(r).getText(),i,n)};function oe(t){return"@"===t?"mention":t+"mention"}function ue(t){var e=t.mention,n=t.theme,r=void 0===n?{}:n;return e.avatar?y.a.createElement("img",{src:e.avatar,className:r.mentionSuggestionsEntryAvatar,role:"presentation"}):null}var se=["mention","theme","isFocused","searchValue","selectMention"];function ae(t){var e=t.mention,n=t.theme;t.isFocused,t.searchValue,t.selectMention;var r=Qt(t,se);return y.a.createElement("div",r,y.a.createElement(ue,{mention:e,theme:n}),y.a.createElement("span",{className:null==n?void 0:n.mentionSuggestionsEntryText},e.name))}function ce(t){var e,n=t.decoratorRect,r=t.popover,i=t.props,o=function t(e){return e?"static"!==window.getComputedStyle(e).getPropertyValue("position")?e:t(e.parentElement):null}(r.parentElement);if(o){var u=o.getBoundingClientRect();e={scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,left:n.left-u.left,top:n.bottom-u.top}}else e={scrollTop:window.pageYOffset||document.documentElement.scrollTop,scrollLeft:window.pageXOffset||document.documentElement.scrollLeft,top:n.bottom,left:n.left};var s,a,c=e.left+e.scrollLeft,f=e.top+e.scrollTop;return i.open&&(i.suggestions.length>0?(s="scale(1)",a="all 0.25s cubic-bezier(.3,1.2,.2,1)"):(s="scale(0)",a="all 0.35s cubic-bezier(.3,1,.2,1)")),{left:c+"px",top:f+"px",transform:s,transformOrigin:"1em 0%",transition:a}}function fe(t){return void 0!==t}function pe(t){var e=t.store,n=t.children,r=t.theme,i=t.popperOptions,o=void 0===i?{placement:"bottom-start"}:i,u=Object(_.useState)((function(){return L(r.mentionSuggestions,r.mentionSuggestionsPopup)})),s=u[0],a=u[1],c=Object(_.useState)(null),f=c[0],p=c[1],h=function(t,e,n){void 0===n&&(n={});var r=_.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Jt},o=_.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=o[0],s=o[1],a=_.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(t){var e=t.state,n=Object.keys(e.elements);s({styles:Nt(n.map((function(t){return[t,e.styles[t]||{}]}))),attributes:Nt(n.map((function(t){return[t,e.attributes[t]]})))})},requires:["computeStyles"]}}),[]),c=_.useMemo((function(){var t={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[a,{name:"applyStyles",enabled:!1}])};return Wt()(r.current,t)?r.current||t:(r.current=t,t)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,a]),f=_.useRef();return Ht((function(){f.current&&f.current.setOptions(c)}),[c]),Ht((function(){if(null!=t&&null!=e){var r=(n.createPopper||Vt)(t,e,c);return f.current=r,function(){r.destroy(),f.current=null}}}),[t,e,n.createPopper]),{state:f.current?f.current.state:null,styles:u.styles,attributes:u.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(e.getReferenceElement(),f,o),l=h.styles,d=h.attributes;return Object(_.useEffect)((function(){requestAnimationFrame((function(){return a(L(r.mentionSuggestions,r.mentionSuggestionsPopup,r.mentionSuggestionsPopupVisible))}))}),[r]),y.a.createElement("div",Yt({ref:p,style:l.popper},d.popper,{className:s}),n)}var he=Object($t.once)((function(t){})),le=["entryComponent","popoverComponent","popperOptions","popoverContainer","onOpenChange","onAddMention","onSearchChange","suggestions","ariaProps","callbacks","theme","store","entityMutability","positionSuggestions","mentionTriggers","mentionPrefix"],de=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).state={focusedOptionIndex:0},n.key=Object(z.genKey)(),n.popover=void 0,n.activeOffsetKey=void 0,n.lastSearchValue=void 0,n.lastActiveTrigger="",n.lastSelectionIsInsideWord=void 0,n.onEditorStateChange=function(t){var e=n.props.store.getAllSearches();if(0===e.size)return t;var r=function(t,e,n){var r=t.getSelection(),i=r.getAnchorKey(),o=r.getAnchorOffset();if(!r.isCollapsed()||!r.getHasFocus())return null;var u=e.map((function(t){return function(t){var e=t.split("-"),n=e[0],r=e[1],i=e[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}(t)})).filter((function(t){return t.blockKey===i})).map((function(e){return t.getBlockTree(e.blockKey).getIn([e.decoratorKey])}));if(u.every((function(t){return void 0===t})))return null;var s=t.getCurrentContent().getBlockForKey(i).getText(),a=u.filter(fe).map((function(t){var e=t.start,r=t.end;return n.map((function(t){return 0===e&&o>=e+t.length&&s.substr(0,t.length)===t&&o<=r||n.length>1&&o>=e+t.length&&(s.substr(e+1,t.length)===t||s.substr(e,t.length)===t)&&o<=r||1===n.length&&o>=e+t.length&&o<=r?t:void 0})).filter(fe)[0]})).filter(fe);if(a.isEmpty())return null;var c=a.entrySeq().first();return{activeOffsetKey:c[0],activeTrigger:c[1]}}(t,e,n.props.mentionTriggers);if(!r)return n.props.store.resetEscapedSearch(),n.closeDropdown(),t;var i=n.activeOffsetKey;return n.activeOffsetKey=r.activeOffsetKey,n.onSearchChange(t,t.getSelection(),n.activeOffsetKey,i,r.activeTrigger),n.props.store.isEscaped(n.activeOffsetKey||"")||n.props.store.resetEscapedSearch(),n.props.open||n.props.store.isEscaped(n.activeOffsetKey||"")||n.openDropdown(),i!==n.activeOffsetKey&&n.setState({focusedOptionIndex:0}),t},n.onSearchChange=function(t,e,r,i,o){var u=ie(t,e,[o]).matchingString;n.lastActiveTrigger===o&&n.lastSearchValue===u&&r===i||(n.lastActiveTrigger=o,n.lastSearchValue=u,n.props.onSearchChange({trigger:o,value:u}),n.setState({focusedOptionIndex:0}))},n.onDownArrow=function(t){t.preventDefault();var e=n.state.focusedOptionIndex+1;n.onMentionFocus(e>=n.props.suggestions.length?0:e)},n.onTab=function(t){t.preventDefault(),n.commitSelection()},n.onUpArrow=function(t){if(t.preventDefault(),n.props.suggestions.length>0){var e=n.state.focusedOptionIndex-1;n.onMentionFocus(e<0?n.props.suggestions.length-1:e)}},n.onEscape=function(t){t.preventDefault(),n.props.store.escapeSearch(n.activeOffsetKey||""),n.closeDropdown(),n.props.store.setEditorState(n.props.store.getEditorState())},n.onMentionSelect=function(t){if(t){n.props.onAddMention&&n.props.onAddMention(t),n.closeDropdown();var e=function(t,e,n,r,i){var o=t.getCurrentContent().createEntity(oe(r),i,{mention:e}).getLastCreatedEntityKey(),u=t.getSelection(),s=ie(t,u,[r]),a=s.begin,c=s.end,f=u.merge({anchorOffset:a,focusOffset:c}),p=z.Modifier.replaceText(t.getCurrentContent(),f,""+n+e.name,void 0,o),h=f.getAnchorKey();t.getCurrentContent().getBlockForKey(h).getLength()===c&&(p=z.Modifier.insertText(p,p.getSelectionAfter()," "));var l=z.EditorState.push(t,p,"insert-fragment");return z.EditorState.forceSelection(l,p.getSelectionAfter())}(n.props.store.getEditorState(),t,n.props.mentionPrefix,n.lastActiveTrigger||"",n.props.entityMutability);n.props.store.setEditorState(e)}},n.onMentionFocus=function(t){var e="mention-option-"+n.key+"-"+t;n.props.ariaProps.ariaActiveDescendantID=e,n.setState({focusedOptionIndex:t}),n.props.store.setEditorState(n.props.store.getEditorState())},n.commitSelection=function(){var t=n.props.suggestions[n.state.focusedOptionIndex];return n.props.store.getIsOpened()&&t?(n.onMentionSelect(t),"handled"):"not-handled"},n.openDropdown=function(){n.props.callbacks.handleReturn=n.commitSelection,n.props.callbacks.keyBindingFn=function(t){40===t.keyCode&&n.onDownArrow(t),38===t.keyCode&&n.onUpArrow(t),27===t.keyCode&&n.onEscape(t),9===t.keyCode&&n.onTab(t)};var t="mention-option-"+n.key+"-"+n.state.focusedOptionIndex;n.props.ariaProps.ariaActiveDescendantID=t,n.props.ariaProps.ariaOwneeID="mentions-list-"+n.key,n.props.ariaProps.ariaHasPopup="true",n.props.ariaProps.ariaExpanded=!0,n.props.onOpenChange(!0)},n.closeDropdown=function(){n.props.callbacks.handleReturn=void 0,n.props.callbacks.keyBindingFn=void 0,n.props.ariaProps.ariaHasPopup="false",n.props.ariaProps.ariaExpanded=!1,n.props.ariaProps.ariaActiveDescendantID=void 0,n.props.ariaProps.ariaOwneeID=void 0,n.props.onOpenChange(!1)},n.props.callbacks.onChange=n.onEditorStateChange,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,Xt(e,n);var i=r.prototype;return i.componentDidUpdate=function(){if(this.popover){var t=this.props.suggestions.length;if(t>0&&this.state.focusedOptionIndex>=t&&this.setState({focusedOptionIndex:t-1}),!this.props.store.getAllSearches().has(this.activeOffsetKey))return;for(var e=this.props.store.getPortalClientRect(this.activeOffsetKey),n=(this.props.positionSuggestions||ce)({decoratorRect:e,props:this.props,popover:this.popover}),r=0,i=Object.entries(n);r<i.length;r++){var o=i[r],u=o[0],s=o[1];this.popover.style[u]=s}}},i.componentWillUnmount=function(){this.props.callbacks.onChange=void 0},i.render=function(){var t=this;if(!this.props.open)return null;var e=this.props,n=e.entryComponent,r=e.popoverComponent,i=e.popperOptions,o=e.popoverContainer,u=void 0===o?pe:o;e.onOpenChange,e.onAddMention,e.onSearchChange,e.suggestions,e.ariaProps,e.callbacks;var s=e.theme,a=void 0===s?{}:s;e.store,e.entityMutability;var c=e.positionSuggestions;e.mentionTriggers,e.mentionPrefix;var f=Qt(e,le);return r||c?(he("The properties `popoverComponent` and `positionSuggestions` are deprecated and will be removed in @draft-js-plugins/mentions 6.0 . Use `popperOptions` instead"),y.a.cloneElement(r||y.a.createElement("div",null),Yt({},f,{className:a.mentionSuggestions,role:"listbox",id:"mentions-list-"+this.key,ref:function(e){t.popover=e}}),this.props.suggestions.map((function(e,r){return y.a.createElement(re,{key:null!=e.id?e.id:e.name,onMentionSelect:t.onMentionSelect,onMentionFocus:t.onMentionFocus,isFocused:t.state.focusedOptionIndex===r,mention:e,index:r,id:"mention-option-"+t.key+"-"+r,theme:a,searchValue:t.lastSearchValue,entryComponent:n||ae})})))):this.props.renderEmptyPopup||0!==this.props.suggestions.length?y.a.createElement(u,{store:this.props.store,popperOptions:i,theme:a},this.props.suggestions.map((function(e,r){return y.a.createElement(re,{key:null!=e.id?e.id:e.name,onMentionSelect:t.onMentionSelect,onMentionFocus:t.onMentionFocus,isFocused:t.state.focusedOptionIndex===r,mention:e,index:r,id:"mention-option-"+t.key+"-"+r,theme:a,searchValue:t.lastSearchValue,entryComponent:n||ae})}))):null},r}(_.Component);de.propTypes={open:m.a.bool.isRequired,onOpenChange:m.a.func.isRequired,entityMutability:m.a.oneOf(["SEGMENTED","IMMUTABLE","MUTABLE"]),entryComponent:m.a.func,onAddMention:m.a.func,suggestions:m.a.array.isRequired};var ve=de,_e="undefined"!=typeof window?_.useLayoutEffect:_.useEffect;function ye(t){var e=Object(_.useRef)(),n=function(t){t.store.updatePortalClientRect(t.offsetKey,(function(){return e.current.getBoundingClientRect()}))};return _e((function(){return t.store.register(t.offsetKey),t.store.setIsOpened(!0),n(t),t.store.setEditorState(t.store.getEditorState()),function(){t.store.unregister(t.offsetKey),t.store.setIsOpened(!1),t.store.setReferenceElement(null)}}),[]),Object(_.useEffect)((function(){n(t)})),y.a.createElement("span",{ref:function(n){e.current=n,t.store.setReferenceElement(n)}},t.children)}var ge={mention:"m6zwb4v",mentionSuggestions:"mnw6qvm",mentionSuggestionsPopup:"m1ymsnxd",mentionSuggestionsPopupVisible:"m126ak5t",mentionSuggestionsEntry:"mtiwdxc",mentionSuggestionsEntryFocused:"myz2dw1",mentionSuggestionsEntryText:"mpqdcgq",mentionSuggestionsEntryAvatar:"m1mfvffo"},me=function(t){return function(e,n,r){e.findEntityRanges((function(e){var n=e.getEntity();return null!==n&&t.some((function(t){return r.getEntity(n).getType()===oe(t)}))}),n)}},be=/\s/;function we(t,e){return 0===e||be.test(t[e-1])}var Se=n(97),Oe=/\n/g;function xe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return t.replace(Oe,e)}function Ee(t,e,n){e=e||t.getCurrentContent().getBlocksAsArray();var r=Object(Se.List)(),i=Object(Se.List)();e.forEach((function(t){"atomic"!==t.getType()&&(r=r.push(xe(t.getText())),i=i.concat(t.getCharacterList()))})),n.stripEntities&&(i=i.map(Ie));var o=new z.ContentBlock({key:Object(z.genKey)(),text:r.join(""),type:"unstyled",characterList:i,depth:0}),u=z.ContentState.createFromBlockArray([o]);return t=z.EditorState.push(t,u,"remove-range"),z.EditorState.moveFocusToEnd(t)}function Ie(t){return t.set("entity",null)}function ze(t){var e=!1;return t.forEach((function(t){null!==t.get("entity")&&(e=!0)})),e}var ke,Me={stripEntities:!0},De=n(95),Re=n.n(De),Ce=n(94),je=n.n(Ce),Ae=n(72),qe=n.n(Ae),Pe=n(73),Be=n.n(Pe),Te=n(243),Ke=n.n(Te),Fe=n(48),Le=n(5),Ve=n.n(Le),Ue=m.a.arrayOf(m.a.shape({name:m.a.string.isRequired,value:m.a.string.isRequired,label:m.a.string,description:m.a.string,hidden:m.a.bool})),We=m.a.arrayOf(m.a.string),Ne=n(42),He=n.n(Ne),Je=n(7),$e=Ve.a.span(ke||(ke=I()(["\n\tcolor: ",";\n\tbackground-color: ",";\n\tpadding: 0 8px;\n\tmargin: 0 2px;\n\tline-height: 1.71428571; // 24px based on 14px font-size\n\tborder-radius: 17px;\n\tcursor: default;\n\n\t&:hover {\n\t\tcolor: ",";\n\t\tbackground-color: ",";\n\t}\n"])),Je.colors.$color_white,Je.colors.$color_pink_dark,Je.colors.$color_white,Je.colors.$color_pink_dark),Ye=function(t){var e=t.children,n=t.className;return Object(v.createElement)($e,{className:He()("yst-replacevar__mention",n),spellCheck:!1},e)};Ye.propTypes={children:m.a.node.isRequired,className:m.a.string.isRequired};var Xe=n(244),Qe=n.n(Xe),Ge=n(20),Ze=n.n(Ge),tn=n(15);function en(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?en(Object(n),!0).forEach((function(e){x()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var rn=/%%([A-Za-z0-9_]+)%%/g;function on(t){return"%%"+t+"%%"}function un(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Ze()(e).reverse().forEach((function(e){var n=e.start,r=e.end,i=e.replacementText,o=t.slice(0,n),u=t.slice(r,t.length);t=o+i+u})),t}function sn(t,e,n){return t>=e&&t<=n}function an(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.start,i=void 0===r?0:r,o=n.end,u=void 0===o?t.getText().length:o,s=t.getText().slice(i,u),a=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(n,r){if(sn(n,i,u)&&sn(r,i,u)){var o=e(t.getEntityAt(n));a.push({start:n-i,end:r-i,replacementText:on(o.data.mention.replaceName)})}})),un(s,a)}function cn(t,e){var n=e;return t.forEach((function(t){t.name===e&&t.label&&(n=t.label)})),n}function fn(t,e){var n=t.getCurrentContent().getBlockMap(),r=t;return n.forEach((function(t){var n=t.text,i=t.key,o=function(t){for(var e,n=[];e=rn.exec(t);){var r=e,i=Qe()(r,2),o=i[0],u=i[1];n.push({name:u,start:e.index,length:o.length})}return n}(n);Ze()(o).reverse().forEach((function(t){t=function(t){return nn(nn({},t),{},{start:t.start,end:t.start+t.length,delta:t.label.length-t.length})}(t=function(t,e){return nn(nn({},t),{},{label:cn(e,t.name)})}(t,e));var n=r.getSelection();n=function(t,e,n){var r=n.start,i=n.end,o=n.delta;if(t.hasEdgeWithin(e,r,i)){var u=i+o;t=t.merge({anchorOffset:u,focusOffset:u})}else t.focusOffset>i&&(t=t.merge({anchorOffset:t.anchorOffset+o,focusOffset:t.focusOffset+o}));return t}(n,i,t);var o=function(t,e,n,r){var i=t.getCurrentContent(),o=function(t,e){var n=e.getAnchorKey(),r=t.getCurrentContent().getBlockForKey(n),i=e.getStartOffset(),o=e.getEndOffset();return r.getText().slice(i,o)}(t,z.SelectionState.createEmpty(n).merge({anchorOffset:r.end,focusOffset:r.end+1}));if(!Object(tn.getWordBoundaries)().includes(o)){var u=z.SelectionState.createEmpty(n).merge({anchorOffset:r.end,focusOffset:r.end}),s=z.Modifier.insertText(i,u," ");t=z.EditorState.push(t,s,"insert-characters"),e.getAnchorOffset()>=r.start&&(e=e.merge({anchorOffset:e.getAnchorOffset()+1,focusOffset:e.getFocusOffset()+1}))}return{editorState:t,selection:e}}(r,n,i,t);r=function(t,e,n){var r=t.getCurrentContent(),i=z.SelectionState.createEmpty(n).merge({anchorOffset:e.start,focusOffset:e.end});r=function(t,e){var n={mention:{replaceName:e.name}};return t.createEntity("%mention","IMMUTABLE",n)}(r,e);var o=z.Modifier.replaceText(r,i,e.label,null,r.getLastCreatedEntityKey());return z.EditorState.push(t,o,"apply-entity")}(o.editorState,t,i),r=z.EditorState.acceptSelection(r,o.selection)}))})),r}function pn(t,e){return fn(z.EditorState.createWithContent(z.ContentState.createFromText(t)),e)}var hn,ln=function(t,e){var n=t.charAt(e);return 0===n.length||/\s/.test(n)},dn=function(t,e){var n=e.getAnchorKey();return t.getBlockForKey(n)};function vn(t,e,n){var r=t.getBlockForKey(e),i=null;return r.findEntityRanges((function(t){return t.getEntity()===n}),(function(t,e){i={start:t,end:e}})),i}function yn(t,e,n){var r=t.getBlockForKey(e).getEntityAt(n),i=vn(t,e,r);return null===i||i.start===n?null:r}function gn(t,e){var n=e.start,r=e.end;return t.getStartOffset()<=n&&t.getEndOffset()>=r}function mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mn(Object(n),!0).forEach((function(e){x()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var wn=Ve.a.div(hn||(hn=I()(["\n\tdiv {\n\t\tz-index: 10995;\n\t}\n"]))),Sn=function(t){f()(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=d()(e);if(n){var i=d()(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h()(this,t)});function o(t){var e;i()(this,o);var n=(e=r.call(this,t)).props,u=n.content,s=n.replacementVariables,a=n.recommendedReplacementVariables,c=pn(u,s),f=e.determineCurrentReplacementVariables(s,a);return e.state={editorState:c,searchValue:"",isSuggestionsOpen:!1,suggestions:e.mapReplacementVariablesToSuggestions(f)},e._serializedContent=u,e.initializeBinds(),e.initializeDraftJsPlugins(),e}return u()(o,[{key:"initializeBinds",value:function(){this.onChange=this.onChange.bind(this),this.onSearchChange=this.onSearchChange.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.handleCopyCutEvent=this.handleCopyCutEvent.bind(this),this.debouncedA11ySpeak=Re()(Fe.speak.bind(this),500),this.onSuggestionsOpenChange=this.onSuggestionsOpenChange.bind(this)}},{key:"initializeDraftJsPlugins",value:function(){this.mentionsPlugin=function(t){void 0===t&&(t={});var e,n,r,i,o,u,s,a={keyBindingFn:void 0,handleKeyCommand:void 0,handleReturn:void 0,onChange:void 0},c={ariaHasPopup:"false",ariaExpanded:!1,ariaOwneeID:void 0,ariaActiveDescendantID:void 0},f=Object(k.Map)(),p=Object(k.Map)(),h=!1,l={getEditorState:void 0,setEditorState:void 0,getPortalClientRect:function(t){return p.get(t)()},getAllSearches:function(){return f},isEscaped:function(t){return e===t},escapeSearch:function(t){e=t},resetEscapedSearch:function(){e=void 0},register:function(t){f=f.set(t,t)},updatePortalClientRect:function(t,e){p=p.set(t,e)},unregister:function(t){f=f.delete(t),p=p.delete(t)},getIsOpened:function(){return h},setIsOpened:function(t){h=t},getReferenceElement:function(){return n},setReferenceElement:function(t){n=t}},d=t,v=d.mentionPrefix,_=void 0===v?"":v,g=d.theme,m=void 0===g?ge:g,b=d.positionSuggestions,w=d.mentionComponent,S=d.mentionSuggestionsComponent,O=void 0===S?ve:S,x=d.entityMutability,E=void 0===x?"SEGMENTED":x,I=d.mentionTrigger,z=void 0===I?"@":I,M=d.mentionRegExp,D=void 0===M?"[\\w-À-ÖØ-öø-ÿĀ-ňŊ-ſА-я぀-ゟ゠-ヿ㄰-㆏가-힣一-龥؀-ۿÀ-ỹ]":M,R=d.supportWhitespace,C=void 0!==R&&R,j=d.popperOptions,A="string"==typeof z?[z]:z,q={ariaProps:c,callbacks:a,theme:m,store:l,entityMutability:E,positionSuggestions:b,mentionTriggers:A,mentionPrefix:_,popperOptions:j};return{MentionSuggestions:function(t){return y.a.createElement(O,Yt({},t,q))},decorators:[{strategy:me(A),component:function(t){return y.a.createElement(ee,Yt({},t,{theme:m,mentionComponent:w}))}},{strategy:(r=A,i=C,o=D,u="("+r.map((function(t){return U()(t)})).join("|")+")",s=i?new RegExp(u+"("+o+"|\\s)*","g"):new RegExp("(\\s|^)"+u+o+"*","g"),function(t,e){!function(t,e,n,r){var i=e.getText();e.findEntityRanges((function(t){return!t.getEntity()}),(function(e,o){var u=i.slice(e,o);n?function(t,e,n,r){for(var i,o,u=t.lastIndex;null!==(i=t.exec(e))&&t.lastIndex!==u;){u=t.lastIndex;var s=(o=n+i.index)+i[0].length;we(e,i.index)&&r(o,s)}}(t,u,e,r):function(t,e,n,r){for(var i,o,u=t.lastIndex;null!==(i=t.exec(e))&&t.lastIndex!==u;){u=t.lastIndex;var s=(o=n+i.index)+i[0].length;be.test(e[o])&&(o+=1),r(o,s)}}(t,u,e,r)}))}(s,t,i,e)}),component:function(t){return y.a.createElement(ye,Yt({},t,{store:l}))}}],getAccessibilityProps:function(){return{role:"combobox",ariaAutoComplete:"list",ariaHasPopup:c.ariaHasPopup,ariaExpanded:c.ariaExpanded,ariaActiveDescendantID:c.ariaActiveDescendantID,ariaOwneeID:c.ariaOwneeID}},initialize:function(t){var e=t.getEditorState,n=t.setEditorState;l.getEditorState=e,l.setEditorState=n},keyBindingFn:function(t){return a.keyBindingFn&&a.keyBindingFn(t)},handleReturn:function(t){return a.handleReturn&&a.handleReturn(t)},onChange:function(t){return a.onChange?a.onChange(t):t}}}({mentionTrigger:"%",entityMutability:"IMMUTABLE",mentionComponent:Ye}),this.singleLinePlugin=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},Me,t),{blockRenderMap:Object(Se.Map)({unstyled:{element:"div"}}),onChange:function(e){var n=e.getCurrentContent().getBlocksAsArray();if(n.length>1)e=Ee(e,n,t);else{var r=n[0],i=r.getText(),o=r.getCharacterList(),u=t.stripEntities&&ze(o);if(Oe.test(i)||u){i=xe(i),t.stripEntities&&(o=o.map(Ie)),r=new z.ContentBlock({key:Object(z.genKey)(),text:i,type:"unstyled",characterList:o,depth:0});var s=z.ContentState.createFromBlockArray([r]);e=z.EditorState.push(e,s,"insert-characters")}}return e},handleReturn:function(t){return"handled"}}}({stripEntities:!1})}},{key:"serializeContent",value:function(t){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=t.getBlockMap();return n.map((function(e){return an(e,(function(e){return t.getEntity(e)}))})).join(e)}(t.getCurrentContent());this._serializedContent!==e&&(this._serializedContent=e,this.props.onChange(this._serializedContent))}},{key:"onChange",value:function(t){var e=this;return new Promise((function(n){t=function(t,e){var n=t.getSelection(),r=e.getSelection(),i=t.getCurrentContent();if(n===r)return t;var o=function(t,e,n){var r=t.getStartOffset(),i=t.getStartKey(),o=t.getEndOffset(),u=t.getEndKey(),s=function(t){var e="anchorOffset",n="focusOffset";return t&&(e="focusOffset",n="anchorOffset"),{startOffsetProperty:e,endOffsetProperty:n}}(t.getIsBackward()),a=s.startOffsetProperty,c=s.endOffsetProperty,f=yn(n,i,r);if(null!==f){var p=vn(n,i,f),h=p.start,l=p.end;t=gn(e,p)?t.merge(x()({},a,l)):t.merge(x()({},a,h))}var d=yn(n,u,o);if(null!==d){var v=vn(n,i,d),_=v.start,y=v.end;t=gn(e,v)?t.merge(x()({},c,_)):t.merge(x()({},c,y))}return t}(n,r,i);return o!==n&&(t=z.EditorState.forceSelection(t,o)),t}(t=fn(t,e.props.replacementVariables),e.state.editorState),e.setState({editorState:t},(function(){e.serializeContent(t),n()}))}))}},{key:"mapReplacementVariablesToSuggestions",value:function(t){return t.map((function(t){return bn(bn({},t),{},{name:t.label,replaceName:t.name})}))}},{key:"suggestionsFilter",value:function(t,e){var n=t.toLowerCase();return e.filter((function(t){return!(t.hidden||n&&0!==t.name.toLowerCase().indexOf(n))}))}},{key:"determineCurrentReplacementVariables",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=""===n&&!je()(e);if(r){var i=qe()(t,(function(t){return Be()(e,t.name)}));if(0!==i.length)return i}return t}},{key:"onSearchChange",value:function(t){var e=this,n=t.value,r=this.determineCurrentReplacementVariables(this.props.replacementVariables,this.props.recommendedReplacementVariables,n),i=this.mapReplacementVariablesToSuggestions(r);this.setState({searchValue:n,suggestions:this.suggestionsFilter(n,i)}),setTimeout((function(){e.announceSearchResults()}))}},{key:"onSuggestionsOpenChange",value:function(t){this.setState({isSuggestionsOpen:t})}},{key:"announceSearchResults",value:function(){var t=this.state.suggestions;t.length?this.debouncedA11ySpeak(Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate","%d results found, use up and down arrow keys to navigate",t.length,"wordpress-seo"),t.length),"assertive"):this.debouncedA11ySpeak(Object(S.__)("No results","wordpress-seo"),"assertive")}},{key:"focus",value:function(){this.editor.focus()}},{key:"setEditorRef",value:function(t){this.editor=t}},{key:"setEditorFieldId",value:function(){Ke()(this.editor,"editor.editor").id=this.props.fieldId}},{key:"triggerReplacementVariableSuggestions",value:function(){var t,e=this,n=function(t){var e=t.getCurrentContent(),n=t.getSelection(),r=z.Modifier.removeRange(e,n,"backward");return z.EditorState.push(t,r,"remove-range")}(this.state.editorState),r=n.getSelection(),i=n.getCurrentContent(),o=dn(i,r).getText(),u=(t=r).getIsBackward()?t.getEndOffset():t.getStartOffset(),s=!ln(o,u-1),a=!ln(o,u),c=function(t,e){var n="%";return t&&(n=" "+n),e&&(n+=" "),n}(s,a);n=function(t,e){var n=t.getCurrentContent(),r=t.getSelection();if(!r.isCollapsed())return t;var i=z.Modifier.insertText(n,r,e);return z.EditorState.push(t,i,"insert-characters")}(n,c),a&&(n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t.getCurrentContent(),i=t.getSelection();""===n&&(n=dn(r,i).getKey());var o=z.SelectionState.createEmpty(n).merge({anchorOffset:e,focusOffset:e});return z.EditorState.acceptSelection(t,o)}(n,u+c.length-1)),this.onChange(n).then((function(){return e.focus()}))}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.content,r=e.replacementVariables,i=e.recommendedReplacementVariables,o=this.state.searchValue;if(t.content!==this._serializedContent&&t.content!==n||t.replacementVariables!==r){this._serializedContent=t.content;var u=pn(t.content,t.replacementVariables),s=this.determineCurrentReplacementVariables(t.replacementVariables,i,o),a=this.mapReplacementVariablesToSuggestions(s);this.setState({editorState:u,suggestions:this.suggestionsFilter(o,a)})}}},{key:"handleCopyCutEvent",value:function(t){var e=this.state.editorState,n=e.getSelection();if(n.getHasFocus())try{var r=t.clipboardData,i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=e.getStartKey(),i=e.getEndKey(),o=t.getBlockMap(),u=!1,s=o.skipUntil((function(t){return t.getKey()===r})).takeUntil((function(t){var e=u;return t.getKey()===i&&(u=!0),e}));return s.map((function(n){var o=n.getKey(),u={};return o===r&&(u.start=e.getStartOffset()),o===i&&(u.end=e.getEndOffset()),an(n,(function(e){return t.getEntity(e)}),u)})).join(n)}(e.getCurrentContent(),n);r.setData("text/plain",i),t.preventDefault()}catch(t){console.error("Couldn't copy content of editor to clipboard, defaulting to browser copy behavior."),console.error("Original error: ",t)}}},{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopyCutEvent),document.addEventListener("cut",this.handleCopyCutEvent),this.setEditorFieldId()}},{key:"componentWillUnmount",value:function(){this.debouncedA11ySpeak.cancel(),document.removeEventListener("copy",this.handleCopyCutEvent),document.removeEventListener("cut",this.handleCopyCutEvent)}},{key:"render",value:function(){var t=this.mentionsPlugin.MentionSuggestions,e=this.props,n=e.onFocus,r=e.onBlur,i=e.ariaLabelledBy,o=e.placeholder,u=e.theme,s=e.isDisabled,a=this.state,c=a.editorState,f=a.suggestions,p=a.isSuggestionsOpen;return Object(v.createElement)(y.a.Fragment,null,Object(v.createElement)(K,{textDirectionality:u.isRtl?"RTL":"LTR",editorState:c,onChange:this.onChange,onFocus:n,onBlur:r,plugins:[this.mentionsPlugin,this.singleLinePlugin],ref:this.setEditorRef,stripPastedStyles:!0,ariaLabelledBy:i,placeholder:o,spellCheck:!0,readOnly:s}),Object(v.createElement)(wn,null,Object(v.createElement)(t,{onSearchChange:this.onSearchChange,suggestions:f,onOpenChange:this.onSuggestionsOpenChange,open:p})))}}]),o}(y.a.Component);Sn.propTypes={content:m.a.string.isRequired,replacementVariables:Ue.isRequired,recommendedReplacementVariables:We,ariaLabelledBy:m.a.string.isRequired,onChange:m.a.func.isRequired,onFocus:m.a.func,onBlur:m.a.func,theme:m.a.object,placeholder:m.a.string,fieldId:m.a.string.isRequired,isDisabled:m.a.bool},Sn.defaultProps={onFocus:function(){},onBlur:function(){},placeholder:"",theme:{isRtl:!1},recommendedReplacementVariables:[],isDisabled:!1};var On,xn,En,In,zn,kn=Object(Le.withTheme)(Sn),Mn=n(13),Dn=Ve()(Mn.VariableEditorInputContainer)(On||(On=I()(["\n\t.public-DraftStyleDefault-block {\n\t\tline-height: 1.85714285; // 26px based on 14px font-size\n\t}\n\n\t.public-DraftEditorPlaceholder-root {\n\t\tcolor: ",";\n\t\tline-height: 1.85714285; // 26px based on 14px font-size\n\t}\n\n\t.public-DraftEditorPlaceholder-hasFocus {\n\t\tcolor: ",";\n\t}\n"])),"#707070","#707070"),Rn=Ve()(Mn.VariableEditorInputContainer)(xn||(xn=I()(["\n\tmin-height: 72px;\n\tpadding: 4px 5px;\n\tline-height: 1.85714285; // 26px based on 14px font-size\n\n\t.public-DraftEditorPlaceholder-root {\n\t\tcolor: ",";\n\t\tposition: absolute;\n\t\tline-height: 1.85714285; // 26px based on 14px font-size\n\t}\n\n\t.public-DraftEditorPlaceholder-hasFocus {\n\t\tcolor: ",";\n\t\tposition: absolute;\n\t}\n"])),"#707070","#707070"),Cn=Ve.a.div(En||(En=I()(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tmargin: 16px 0 0 0;\n"]))),jn=Ve()(Mn.Button)(In||(In=I()(['\n\tcolor: #303030;\n\tbox-sizing: border-box;\n\tborder-radius: 4px;\n\tbox-shadow: inset 0 -2px 0 0 rgba(0,0,0,0.1);\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\tpadding: 4px;\n\tborder: 1px solid #dbdbdb;\n\tfont-size: 14px;\n\tfont-weight: 400;\n\tline-height: 1.5;\n\tmargin-bottom: 5px;\n\tmax-width: 200px;\n\tpadding: 0 0.5em;\n']))),An=Ve()(jn)(zn||(zn=I()(["\n\tfont-size: 13px;\n\tmargin-left: auto;\n\t& svg {\n\t\t",": 7px;\n\t\tfill: ",";\n\t}\n"])),Object(tn.getDirectionalStyle)("margin-right","margin-left"),Je.colors.$color_grey_dark);var qn=function(t){f()(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=d()(e);if(n){var i=d()(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h()(this,t)});function o(t){var e;switch(i()(this,o),(e=r.call(this,t)).uniqueId=w()("replacement-variable-editor-field-"),t.type){case"description":e.InputContainer=Rn;break;case"title":e.InputContainer=Dn;break;default:e.InputContainer=Dn}return t.withCaret&&(e.InputContainer=Object(Je.withCaretStyles)(e.InputContainer)),e.triggerReplacementVariableSuggestions=e.triggerReplacementVariableSuggestions.bind(a()(e)),e}return u()(o,[{key:"triggerReplacementVariableSuggestions",value:function(){this.ref.triggerReplacementVariableSuggestions()}},{key:"render",value:function(){var t=this,e=this.props,n=e.label,r=e.onChange,i=e.content,o=e.onFocus,u=e.onBlur,s=e.isActive,a=e.isHovered,c=e.replacementVariables,f=e.recommendedReplacementVariables,p=e.editorRef,h=e.placeholder,l=e.fieldId,d=e.onMouseEnter,_=e.onMouseLeave,y=e.hasNewBadge,g=e.isDisabled,m=e.hasPremiumBadge,b=this.InputContainer,w=Object(v.createElement)(An,{className:"yst-replacevar__button-insert",onClick:this.triggerReplacementVariableSuggestions,disabled:g},Object(S.__)("Insert variable","wordpress-seo"));return Object(v.createElement)(Cn,{className:"yst-replacevar",onMouseEnter:d,onMouseLeave:_},Object(v.createElement)(Mn.SimulatedLabel,{className:"yst-replacevar__label",id:this.uniqueId,onClick:o},n),m&&Object(v.createElement)(Mn.PremiumBadge,{inLabel:!0}),y&&Object(v.createElement)(Mn.NewBadge,{inLabel:!0}),w,Object(v.createElement)(b,{className:"yst-replacevar__editor",onClick:o,isActive:s&&!g,isHovered:a},Object(v.createElement)(kn,{fieldId:l,placeholder:h,content:i,onChange:r,onFocus:o,onBlur:u,replacementVariables:c,recommendedReplacementVariables:f,ref:function(e){t.ref=e,p(e)},ariaLabelledBy:this.uniqueId,isDisabled:g})))}}]),o}(y.a.Component);qn.propTypes={editorRef:m.a.func,content:m.a.string.isRequired,onChange:m.a.func.isRequired,onBlur:m.a.func,replacementVariables:Ue,recommendedReplacementVariables:We,isActive:m.a.bool,isHovered:m.a.bool,withCaret:m.a.bool,onFocus:m.a.func,label:m.a.string,placeholder:m.a.string,type:m.a.oneOf(["title","description"]).isRequired,fieldId:m.a.string,onMouseEnter:m.a.func,onMouseLeave:m.a.func,hasNewBadge:m.a.bool,isDisabled:m.a.bool,hasPremiumBadge:m.a.bool},qn.defaultProps={onFocus:function(){},onBlur:function(){},replacementVariables:[],recommendedReplacementVariables:[],fieldId:"",placeholder:"",label:"",withCaret:!1,isHovered:!1,isActive:!1,editorRef:function(){},onMouseEnter:function(){},onMouseLeave:function(){},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1};var Pn,Bn=qn;var Tn=Ve.a.section(Pn||(Pn=I()(["\n\tpadding: ",";\n"])),(function(t){return t.padding?t.padding:"0 20px"})),Kn=function(t){f()(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=d()(e);if(n){var i=d()(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h()(this,t)});function o(t){var e;return i()(this,o),(e=r.call(this,t)).elements={title:null,description:null},e.setRef=e.setRef.bind(a()(e)),e.setTitleRef=e.setTitleRef.bind(a()(e)),e.setDescriptionRef=e.setDescriptionRef.bind(a()(e)),e.triggerReplacementVariableSuggestions=e.triggerReplacementVariableSuggestions.bind(a()(e)),e.onFocusTitle=e.onFocusTitle.bind(a()(e)),e.onChangeTitle=e.onChangeTitle.bind(a()(e)),e.onFocusDescription=e.onFocusDescription.bind(a()(e)),e.onChangeDescription=e.onChangeDescription.bind(a()(e)),e}return u()(o,[{key:"setRef",value:function(t,e){this.elements[t]=e}},{key:"setTitleRef",value:function(t){this.setRef("title",t)}},{key:"setDescriptionRef",value:function(t){this.setRef("description",t)}},{key:"componentDidUpdate",value:function(t){this.focusOnActiveFieldChange(t.activeField)}},{key:"focusOnActiveFieldChange",value:function(t){var e=this.props.activeField;e&&e!==t&&this.elements[e].focus()}},{key:"triggerReplacementVariableSuggestions",value:function(t){this.elements[t].triggerReplacementVariableSuggestions()}},{key:"onFocusTitle",value:function(){this.props.onFocus("title")}},{key:"onChangeTitle",value:function(t){this.props.onChange("title",t)}},{key:"onFocusDescription",value:function(){this.props.onFocus("description")}},{key:"onChangeDescription",value:function(t){this.props.onChange("description",t)}},{key:"render",value:function(){var t=this.props,e=t.descriptionEditorFieldPlaceholder,n=t.activeField,r=t.hoveredField,i=t.replacementVariables,o=t.recommendedReplacementVariables,u=t.onBlur,s=t.data,a=s.title,c=s.description,f=t.containerPadding,p=t.fieldIds,h=t.labels,l=t.hasNewBadge,d=t.isDisabled,_=t.hasPremiumBadge;return Object(v.createElement)(Tn,{padding:f},Object(v.createElement)(Bn,{type:"title",label:h.title||Object(S.__)("SEO title","wordpress-seo"),onFocus:this.onFocusTitle,onBlur:u,isActive:"title"===n,isHovered:"title"===r,editorRef:this.setTitleRef,replacementVariables:i,recommendedReplacementVariables:o,content:a,onChange:this.onChangeTitle,fieldId:p.title,hasNewBadge:l,isDisabled:d,hasPremiumBadge:_}),Object(v.createElement)(Bn,{type:"description",placeholder:e,label:h.description||Object(S.__)("Meta description","wordpress-seo"),onFocus:this.onFocusDescription,onBlur:u,isActive:"description"===n,isHovered:"description"===r,editorRef:this.setDescriptionRef,replacementVariables:i,recommendedReplacementVariables:o,content:c,onChange:this.onChangeDescription,fieldId:p.description,hasNewBadge:l,isDisabled:d,hasPremiumBadge:_}))}}]),o}(y.a.Component);Kn.propTypes={replacementVariables:Ue,recommendedReplacementVariables:We,onChange:m.a.func.isRequired,onFocus:m.a.func,onBlur:m.a.func,data:m.a.shape({title:m.a.string,description:m.a.string}).isRequired,activeField:m.a.oneOf(["title","description"]),hoveredField:m.a.oneOf(["title","description"]),descriptionEditorFieldPlaceholder:m.a.string,containerPadding:m.a.string,fieldIds:m.a.shape({title:m.a.string.isRequired,description:m.a.string.isRequired}).isRequired,labels:m.a.shape({title:m.a.string,description:m.a.string}),hasNewBadge:m.a.bool,isDisabled:m.a.bool,hasPremiumBadge:m.a.bool},Kn.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],onFocus:function(){},onBlur:function(){},containerPadding:"0 20px",descriptionEditorFieldPlaceholder:null,labels:{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,activeField:"",hoveredField:""};var Fn=Kn;var Ln=function(t){f()(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=d()(e);if(n){var i=d()(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h()(this,t)});function o(t){var e;return i()(this,o),(e=r.call(this,t)).state={activeField:null,hoveredField:null},e.setFieldFocus=e.setFieldFocus.bind(a()(e)),e.handleChange=e.handleChange.bind(a()(e)),e.onClick=e.onClick.bind(a()(e)),e.onBlur=e.onBlur.bind(a()(e)),e}return u()(o,[{key:"handleChange",value:function(t,e){this.props.onChange(t,e)}},{key:"setFieldFocus",value:function(t){this.setState({activeField:t})}},{key:"onBlur",value:function(){this.setState({activeField:null})}},{key:"onClick",value:function(t){this.setFieldFocus(t)}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.replacementVariables,r=t.recommendedReplacementVariables,i=t.descriptionEditorFieldPlaceholder,o=t.hasPaperStyle,u=t.fieldIds,s=t.labels,a=t.hasNewBadge,c=t.isDisabled,f=t.hasPremiumBadge,p=this.state,h=p.activeField,l=p.hoveredField;return Object(v.createElement)(Mn.ErrorBoundary,null,Object(v.createElement)(Fn,{descriptionEditorFieldPlaceholder:i,data:e,activeField:h,hoveredField:l,onChange:this.handleChange,onFocus:this.setFieldFocus,onBlur:this.onBlur,replacementVariables:n,recommendedReplacementVariables:r,containerPadding:o?"0 20px":"0",fieldIds:u,labels:s,hasNewBadge:a,isDisabled:c,hasPremiumBadge:f}))}}]),o}(y.a.Component);Ln.propTypes={replacementVariables:Ue,recommendedReplacementVariables:We,data:m.a.shape({title:m.a.string.isRequired,description:m.a.string.isRequired}).isRequired,onChange:m.a.func.isRequired,descriptionEditorFieldPlaceholder:m.a.string,hasPaperStyle:m.a.bool,fieldIds:m.a.shape({title:m.a.string.isRequired,description:m.a.string.isRequired}).isRequired,labels:m.a.shape({title:m.a.string,description:m.a.string}),hasNewBadge:m.a.bool,isDisabled:m.a.bool,hasPremiumBadge:m.a.bool},Ln.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],hasPaperStyle:!0,descriptionEditorFieldPlaceholder:null,labels:{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1};var Vn=Ln},54:function(t,e,n){var r=n(40);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},55:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},56:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},6:function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.default=t.exports,t.exports.__esModule=!0},68:function(t,e){t.exports=window.lodash.uniqueId},7:function(t,e){t.exports=window.yoast.styleGuide},72:function(t,e){t.exports=window.lodash.filter},73:function(t,e){t.exports=window.lodash.includes},8:function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},9:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},94:function(t,e){t.exports=window.lodash.isEmpty},95:function(t,e){t.exports=window.lodash.debounce},97: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 u(t)?t:V(t)}function r(t){return s(t)?t:U(t)}function i(t){return a(t)?t:W(t)}function o(t){return u(t)&&!c(t)?t:N(t)}function u(t){return!(!t||!t[p])}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[l])}function c(t){return s(t)||a(t)}function f(t){return!(!t||!t[d])}e(r,n),e(i,n),e(o,n),n.isIterable=u,n.isKeyed=s,n.isIndexed=a,n.isAssociative=c,n.isOrdered=f,n.Keyed=r,n.Indexed=i,n.Set=o;var p="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",l="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",v={},_={value:!1},y={value:!1};function g(t){return t.value=!1,t}function m(t){t&&(t.value=!0)}function b(){}function w(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function S(t){return void 0===t.size&&(t.size=t.__iterate(x)),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?S(t)+e:e}function x(){return!0}function E(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function I(t,e){return k(t,e,0)}function z(t,e){return k(t,e,e)}function k(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var M,D,R,C="function"==typeof Symbol&&Symbol.iterator,j=C||"@@iterator";function A(t){this.next=t}function q(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function P(){return{value:void 0,done:!0}}function B(t){return!!F(t)}function T(t){return t&&"function"==typeof t.next}function K(t){var e=F(t);return e&&e.call(t)}function F(t){var e=t&&(C&&t[C]||t["@@iterator"]);if("function"==typeof e)return e}function L(t){return t&&"number"==typeof t.length}function V(t){return null==t?Q():u(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new J(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function U(t){return null==t?Q().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():G(t)}function W(t){return null==t?Q():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():Z(t)}function N(t){return(null==t?Q():u(t)?s(t)?t.entrySeq():t:Z(t)).toSetSeq()}function H(t){this._array=t,this.size=t.length}function J(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function Y(t){this._iterator=t,this._iteratorCache=[]}function X(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Q(){return M||(M=new H([]))}function G(t){var e=Array.isArray(t)?new H(t).fromEntrySeq():T(t)?new Y(t).fromEntrySeq():B(t)?new $(t).fromEntrySeq():"object"==typeof t?new J(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function Z(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return L(t)?new H(t):T(t)?new Y(t):B(t)?new $(t):void 0}function et(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[n?o-u:u];if(!1===e(s[1],r?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,n)}function nt(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,u=0;return new A((function(){var t=i[n?o-u:u];return u++>o?{value:void 0,done:!0}:q(e,r?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,n)}function rt(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,W(n).map((function(r,i){return t(e,r,i,n)}))):ot(n)?e.call(i,r,U(n).map((function(r,i){return t(e,r,i,n)}))):n}(e,t,"",{"":t}):it(t)}function it(t){return Array.isArray(t)?W(t).map(it).toList():ot(t)?U(t).map(it).toMap():t}function ot(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ut(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!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function st(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!c(t);if(f(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&ut(i[1],t)&&(n||ut(i[0],e))}))&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var p=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!ut(e,t.get(r,v)):!ut(t.get(r,v),e))return p=!1,!1}));return p&&t.size===h}function at(t,e){if(!(this instanceof at))return new at(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(D)return D;D=this}}function ct(t,e){if(!t)throw new Error(e)}function ft(t,e,n){if(!(this instanceof ft))return new ft(t,e,n);if(ct(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(R)return R;R=this}}function pt(){throw TypeError("Abstract")}function ht(){}function lt(){}function dt(){}A.prototype.toString=function(){return"[Iterator]"},A.KEYS=0,A.VALUES=1,A.ENTRIES=2,A.prototype.inspect=A.prototype.toSource=function(){return this.toString()},A.prototype[j]=function(){return this},e(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(t,e){return et(this,t,e,!0)},V.prototype.__iterator=function(t,e){return nt(this,t,e,!0)},e(U,V),U.prototype.toKeyedSeq=function(){return this},e(W,V),W.of=function(){return W(arguments)},W.prototype.toIndexedSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq [","]")},W.prototype.__iterate=function(t,e){return et(this,t,e,!1)},W.prototype.__iterator=function(t,e){return nt(this,t,e,!1)},e(N,V),N.of=function(){return N(arguments)},N.prototype.toSetSeq=function(){return this},V.isSeq=X,V.Keyed=U,V.Set=N,V.Indexed=W,V.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,e(H,W),H.prototype.get=function(t,e){return this.has(t)?this._array[O(this,t)]:e},H.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},H.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new A((function(){return i>r?{value:void 0,done:!0}:q(t,i,n[e?r-i++:i++])}))},e(J,U),J.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},J.prototype.has=function(t){return this._object.hasOwnProperty(t)},J.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var u=r[e?i-o:o];if(!1===t(n[u],u,this))return o+1}return o},J.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new A((function(){var u=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:q(t,u,n[u])}))},J.prototype[d]=!0,e($,W),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=K(this._iterable),r=0;if(T(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},$.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=K(this._iterable);if(!T(n))return new A(P);var r=0;return new A((function(){var e=n.next();return e.done?e:q(t,r++,e.value)}))},e(Y,W),Y.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(n=r.next()).done;){var u=n.value;if(i[o]=u,!1===t(u,o++,this))break}return o},Y.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new A((function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return q(t,i,r[i++])}))},e(at,W),at.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},at.prototype.get=function(t,e){return this.has(t)?this._value:e},at.prototype.includes=function(t){return ut(this._value,t)},at.prototype.slice=function(t,e){var n=this.size;return E(t,e,n)?this:new at(this._value,z(e,n)-I(t,n))},at.prototype.reverse=function(){return this},at.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},at.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},at.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},at.prototype.__iterator=function(t,e){var n=this,r=0;return new A((function(){return r<n.size?q(t,r++,n._value):{value:void 0,done:!0}}))},at.prototype.equals=function(t){return t instanceof at?ut(this._value,t._value):st(t)},e(ft,W),ft.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ft.prototype.get=function(t,e){return this.has(t)?this._start+O(this,t)*this._step:e},ft.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},ft.prototype.slice=function(t,e){return E(t,e,this.size)?this:(t=I(t,this.size),(e=z(e,this.size))<=t?new ft(0,0):new ft(this.get(t,this._end),this.get(e,this._end),this._step))},ft.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},ft.prototype.lastIndexOf=function(t){return this.indexOf(t)},ft.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===t(i,o,this))return o+1;i+=e?-r:r}return o},ft.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new A((function(){var u=i;return i+=e?-r:r,o>n?{value:void 0,done:!0}:q(t,o++,u)}))},ft.prototype.equals=function(t){return t instanceof ft?this._start===t._start&&this._end===t._end&&this._step===t._step:st(this,t)},e(pt,n),e(ht,pt),e(lt,pt),e(dt,pt),pt.Keyed=ht,pt.Indexed=lt,pt.Set=dt;var vt="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 _t(t){return t>>>1&1073741824|3221225471&t}function yt(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=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return _t(n)}if("string"===e)return t.length>Et?function(t){var e=kt[t];return void 0===e&&(e=gt(t),zt===It&&(zt=0,kt={}),zt++,kt[t]=e),e}(t):gt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(St&&void 0!==(e=mt.get(t)))return e;if(void 0!==(e=t[xt]))return e;if(!wt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[xt]))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=++Ot,1073741824&Ot&&(Ot=0),St)mt.set(t,e);else{if(void 0!==bt&&!1===bt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(wt)Object.defineProperty(t,xt,{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[xt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[xt]=e}}return e}(t);if("function"==typeof t.toString)return gt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function gt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return _t(e)}var mt,bt=Object.isExtensible,wt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),St="function"==typeof WeakMap;St&&(mt=new WeakMap);var Ot=0,xt="__immutablehash__";"function"==typeof Symbol&&(xt=Symbol(xt));var Et=16,It=255,zt=0,kt={};function Mt(t){ct(t!==1/0,"Cannot perform this action with an infinite size.")}function Dt(t){return null==t?Wt():Rt(t)&&!f(t)?t:Wt().withMutations((function(e){var n=r(t);Mt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Rt(t){return!(!t||!t[jt])}e(Dt,ht),Dt.of=function(){var e=t.call(arguments,0);return Wt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},Dt.prototype.toString=function(){return this.__toString("Map {","}")},Dt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Dt.prototype.set=function(t,e){return Nt(this,t,e)},Dt.prototype.setIn=function(t,e){return this.updateIn(t,v,(function(){return e}))},Dt.prototype.remove=function(t){return Nt(this,t,v)},Dt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return v}))},Dt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Dt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,i){var o=e===v,u=n.next();if(u.done){var s=o?r:e,a=i(s);return a===s?e:a}ct(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?v:e.get(c,v),p=t(f,n,r,i);return p===f?e:p===v?e.remove(c):(o?Wt():e).set(c,p)}(this,Ye(t),e,n);return r===v?void 0:r},Dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Wt()},Dt.prototype.merge=function(){return Yt(this,void 0,arguments)},Dt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Yt(this,e,n)},Dt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Wt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},Dt.prototype.mergeDeep=function(){return Yt(this,Xt,arguments)},Dt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Yt(this,Qt(e),n)},Dt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Wt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},Dt.prototype.sort=function(t){return we(Te(this,t))},Dt.prototype.sortBy=function(t,e){return we(Te(this,e,t))},Dt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Dt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new b)},Dt.prototype.asImmutable=function(){return this.__ensureOwner()},Dt.prototype.wasAltered=function(){return this.__altered},Dt.prototype.__iterator=function(t,e){return new Ft(this,t,e)},Dt.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},Dt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ut(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Dt.isMap=Rt;var Ct,jt="@@__IMMUTABLE_MAP__@@",At=Dt.prototype;function qt(t,e){this.ownerID=t,this.entries=e}function Pt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Bt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Tt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Kt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Ft(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Vt(t._root)}function Lt(t,e){return q(t,e[0],e[1])}function Vt(t,e){return{node:t,index:0,__prev:e}}function Ut(t,e,n,r){var i=Object.create(At);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Wt(){return Ct||(Ct=Ut(0))}function Nt(t,e,n){var r,i;if(t._root){var o=g(_),u=g(y);if(r=Ht(t._root,t.__ownerID,0,void 0,e,n,o,u),!u.value)return t;i=t.size+(o.value?n===v?-1:1:0)}else{if(n===v)return t;i=1,r=new qt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Ut(i,r):Wt()}function Ht(t,e,n,r,i,o,u,s){return t?t.update(e,n,r,i,o,u,s):o===v?t:(m(s),m(u),new Kt(e,r,[i,o]))}function Jt(t){return t.constructor===Kt||t.constructor===Tt}function $t(t,e,n,r,i){if(t.keyHash===r)return new Tt(e,r,[t.entry,i]);var o,u=31&(0===n?t.keyHash:t.keyHash>>>n),s=31&(0===n?r:r>>>n);return new Pt(e,1<<u|1<<s,u===s?[$t(t,e,n+5,r,i)]:(o=new Kt(e,r,i),u<s?[t,o]:[o,t]))}function Yt(t,e,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=r(s);u(s)||(a=a.map((function(t){return rt(t)}))),i.push(a)}return Gt(t,e,i)}function Xt(t,e,n){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):ut(t,e)?t:e}function Qt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&u(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return ut(e,i)?e:i}}function Gt(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,v,(function(t){return t===v?n:e(t,n,r)}))}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)})):t.constructor(n[0])}function Zt(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function te(t,e,n,r){var i=r?t:w(t);return i[e]=n,i}At[jt]=!0,At.delete=At.remove,At.removeIn=At.deleteIn,qt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(n,i[o][0]))return i[o][1];return r},qt.prototype.update=function(t,e,n,r,i,o,u){for(var s=i===v,a=this.entries,c=0,f=a.length;c<f&&!ut(r,a[c][0]);c++);var p=c<f;if(p?a[c][1]===i:s)return this;if(m(u),(s||!p)&&m(o),!s||1!==a.length){if(!p&&!s&&a.length>=ee)return function(t,e,n,r){t||(t=new b);for(var i=new Kt(t,yt(n),[n,r]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,r,i);var h=t&&t===this.ownerID,l=h?a:w(a);return p?s?c===f-1?l.pop():l[c]=l.pop():l[c]=[r,i]:l.push([r,i]),h?(this.entries=l,this):new qt(t,l)}},Pt.prototype.get=function(t,e,n,r){void 0===e&&(e=yt(n));var i=1<<(31&(0===t?e:e>>>t)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Zt(o&i-1)].get(t+5,e,n,r)},Pt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=yt(r));var s=31&(0===e?n:n>>>e),a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===v)return this;var p=Zt(c&a-1),h=this.nodes,l=f?h[p]:void 0,d=Ht(l,t,e+5,n,r,i,o,u);if(d===l)return this;if(!f&&d&&h.length>=ne)return function(t,e,n,r,i){for(var o=0,u=new Array(32),s=0;0!==n;s++,n>>>=1)u[s]=1&n?e[o++]:void 0;return u[r]=i,new Bt(t,o+1,u)}(t,h,c,s,d);if(f&&!d&&2===h.length&&Jt(h[1^p]))return h[1^p];if(f&&d&&1===h.length&&Jt(d))return d;var _=t&&t===this.ownerID,y=f?d?c:c^a:c|a,g=f?d?te(h,p,d,_):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,u=0;u<r;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,p,_):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=n,u=-1):o[s]=t[s+u];return o}(h,p,d,_);return _?(this.bitmap=y,this.nodes=g,this):new Pt(t,y,g)},Bt.prototype.get=function(t,e,n,r){void 0===e&&(e=yt(n));var i=31&(0===t?e:e>>>t),o=this.nodes[i];return o?o.get(t+5,e,n,r):r},Bt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=yt(r));var s=31&(0===e?n:n>>>e),a=i===v,c=this.nodes,f=c[s];if(a&&!f)return this;var p=Ht(f,t,e+5,n,r,i,o,u);if(p===f)return this;var h=this.count;if(f){if(!p&&--h<re)return function(t,e,n,r){for(var i=0,o=0,u=new Array(n),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==r&&(i|=a,u[o++]=f)}return new Pt(t,i,u)}(t,c,h,s)}else h++;var l=t&&t===this.ownerID,d=te(c,s,p,l);return l?(this.count=h,this.nodes=d,this):new Bt(t,h,d)},Tt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(n,i[o][0]))return i[o][1];return r},Tt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=yt(r));var s=i===v;if(n!==this.keyHash)return s?this:(m(u),m(o),$t(this,t,e,n,[r,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!ut(r,a[c][0]);c++);var p=c<f;if(p?a[c][1]===i:s)return this;if(m(u),(s||!p)&&m(o),s&&2===f)return new Kt(t,this.keyHash,a[1^c]);var h=t&&t===this.ownerID,l=h?a:w(a);return p?s?c===f-1?l.pop():l[c]=l.pop():l[c]=[r,i]:l.push([r,i]),h?(this.entries=l,this):new Tt(t,this.keyHash,l)},Kt.prototype.get=function(t,e,n,r){return ut(n,this.entry[0])?this.entry[1]:r},Kt.prototype.update=function(t,e,n,r,i,o,u){var s=i===v,a=ut(r,this.entry[0]);return(a?i===this.entry[1]:s)?this:(m(u),s?void m(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Kt(t,this.keyHash,[r,i]):(m(o),$t(this,t,e,yt(r),[r,i])))},qt.prototype.iterate=Tt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},Pt.prototype.iterate=Bt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&!1===o.iterate(t,e))return!1}},Kt.prototype.iterate=function(t,e){return t(this.entry)},e(Ft,A),Ft.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return Lt(t,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Lt(t,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Lt(t,o.entry);e=this._stack=Vt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ee=8,ne=16,re=8;function ie(t){var e=de();if(null==t)return e;if(oe(t))return t;var n=i(t),r=n.size;return 0===r?e:(Mt(r),r>0&&r<32?le(0,r,5,null,new ae(n.toArray())):e.withMutations((function(t){t.setSize(r),n.forEach((function(e,n){return t.set(n,e)}))})))}function oe(t){return!(!t||!t[ue])}e(ie,lt),ie.of=function(){return this(arguments)},ie.prototype.toString=function(){return this.__toString("List [","]")},ie.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var n=ye(this,t+=this._origin);return n&&n.array[31&t]}return e},ie.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?ge(t,e).set(0,n):ge(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,i=t._root,o=g(y);return e>=be(t._capacity)?r=ve(r,t.__ownerID,0,e,n,o):i=ve(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):le(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},ie.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ie.prototype.insert=function(t,e){return this.splice(t,0,e)},ie.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):de()},ie.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){ge(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},ie.prototype.pop=function(){return ge(this,0,-1)},ie.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){ge(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},ie.prototype.shift=function(){return ge(this,1)},ie.prototype.merge=function(){return me(this,void 0,arguments)},ie.prototype.mergeWith=function(e){var n=t.call(arguments,1);return me(this,e,n)},ie.prototype.mergeDeep=function(){return me(this,Xt,arguments)},ie.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return me(this,Qt(e),n)},ie.prototype.setSize=function(t){return ge(this,0,t)},ie.prototype.slice=function(t,e){var n=this.size;return E(t,e,n)?this:ge(this,I(t,n),z(e,n))},ie.prototype.__iterator=function(t,e){var n=0,r=he(this,e);return new A((function(){var e=r();return e===pe?{value:void 0,done:!0}:q(t,n++,e)}))},ie.prototype.__iterate=function(t,e){for(var n,r=0,i=he(this,e);(n=i())!==pe&&!1!==t(n,r++,this););return r},ie.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?le(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ie.isList=oe;var ue="@@__IMMUTABLE_LIST__@@",se=ie.prototype;function ae(t,e){this.array=t,this.ownerID=e}se[ue]=!0,se.delete=se.remove,se.setIn=At.setIn,se.deleteIn=se.removeIn=At.removeIn,se.update=At.update,se.updateIn=At.updateIn,se.mergeIn=At.mergeIn,se.mergeDeepIn=At.mergeDeepIn,se.withMutations=At.withMutations,se.asMutable=At.asMutable,se.asImmutable=At.asImmutable,se.wasAltered=At.wasAltered,ae.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&31;if(r>=this.array.length)return new ae([],t);var i,o=0===r;if(e>0){var u=this.array[r];if((i=u&&u.removeBefore(t,e-5,n))===u&&o)return this}if(o&&!i)return this;var s=_e(this,t);if(!o)for(var a=0;a<r;a++)s.array[a]=void 0;return i&&(s.array[r]=i),s},ae.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-5,n))===o&&i===this.array.length-1)return this}var u=_e(this,t);return u.array.splice(i+1),r&&(u.array[i]=r),u};var ce,fe,pe={};function he(t,e){var n=t._origin,r=t._capacity,i=be(r),o=t._tail;return function t(u,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>n?0:n-u,c=r-u;return c>32&&(c=32),function(){if(a===c)return pe;var t=e?--c:a++;return s&&s[t]}}(u,a):function(i,o,u){var s,a=i&&i.array,c=u>n?0:n-u>>o,f=1+(r-u>>o);return f>32&&(f=32),function(){for(;;){if(s){var n=s();if(n!==pe)return n;s=null}if(c===f)return pe;var r=e?--f:c++;s=t(a&&a[r],o-5,u+(r<<o))}}}(u,s,a)}(t._root,t._level,0)}function le(t,e,n,r,i,o,u){var s=Object.create(se);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function de(){return ce||(ce=le(0,0,5))}function ve(t,e,n,r,i,o){var u,s=r>>>n&31,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(n>0){var c=t&&t.array[s],f=ve(c,e,n-5,r,i,o);return f===c?t:((u=_e(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(m(o),u=_e(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function _e(t,e){return e&&t&&e===t.ownerID?t:new ae(t?t.array.slice():[],e)}function ye(t,e){if(e>=be(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&31],r-=5;return n}}function ge(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new b,i=t._origin,o=t._capacity,u=i+e,s=void 0===n?o:n<0?o+n:i+n;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new ae(c&&c.array.length?[void 0,c]:[],r),f+=1<<(a+=5);f&&(u+=f,i+=f,s+=f,o+=f);for(var p=be(o),h=be(s);h>=1<<a+5;)c=new ae(c&&c.array.length?[c]:[],r),a+=5;var l=t._tail,d=h<p?ye(t,s-1):h>p?new ae([],r):l;if(l&&h>p&&u<o&&l.array.length){for(var v=c=_e(c,r),_=a;_>5;_-=5){var y=p>>>_&31;v=v.array[y]=_e(v.array[y],r)}v.array[p>>>5&31]=l}if(s<o&&(d=d&&d.removeAfter(r,0,s)),u>=h)u-=h,s-=h,a=5,c=null,d=d&&d.removeBefore(r,0,u);else if(u>i||h<p){for(f=0;c;){var g=u>>>a&31;if(g!==h>>>a&31)break;g&&(f+=(1<<a)*g),a-=5,c=c.array[g]}c&&u>i&&(c=c.removeBefore(r,a,u-f)),c&&h<p&&(c=c.removeAfter(r,a,h-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):le(u,s,a,c,d)}function me(t,e,n){for(var r=[],o=0,s=0;s<n.length;s++){var a=n[s],c=i(a);c.size>o&&(o=c.size),u(a)||(c=c.map((function(t){return rt(t)}))),r.push(c)}return o>t.size&&(t=t.setSize(o)),Gt(t,e,r)}function be(t){return t<32?0:t-1>>>5<<5}function we(t){return null==t?xe():Se(t)?t:xe().withMutations((function(e){var n=r(t);Mt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Se(t){return Rt(t)&&f(t)}function Oe(t,e,n,r){var i=Object.create(we.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function xe(){return fe||(fe=Oe(Wt(),de()))}function Ee(t,e,n){var r,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(n===v){if(!a)return t;u.size>=32&&u.size>=2*o.size?(r=(i=u.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(n===u.get(s)[1])return t;r=o,i=u.set(s,[e,n])}else r=o.set(e,u.size),i=u.set(u.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Oe(r,i)}function Ie(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function ke(t){this._iter=t,this.size=t.size}function Me(t){this._iter=t,this.size=t.size}function De(t){var e=He(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=Je,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(2===e){var r=t.__iterator(e,n);return new A((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(1===e?0:1,n)},e}function Re(t,e,n){var r=He(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,v);return o===v?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate((function(t,i,u){return!1!==r(e.call(n,t,i,u),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(2,i);return new A((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return q(r,s,e.call(n,u[1],s,t),i)}))},r}function Ce(t,e){var n=He(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=De(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=Je,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 je(t,e,n,r){var i=He(t);return r&&(i.has=function(r){var i=t.get(r,v);return i!==v&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,v);return o!==v&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(e.call(n,t,o,a))return s++,i(t,r?o:s-1,u)}),o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),s=0;return new A((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(n,f,c,t))return q(i,r?c:s++,f,o)}}))},i}function Ae(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),E(e,n,i))return t;var o=I(e,i),u=z(n,i);if(o!=o||u!=u)return Ae(t.toSeq().cacheResult(),e,n,r);var s,a=u-o;a==a&&(s=a<0?0:a);var c=He(t);return c.size=0===s?s:t.size&&s||void 0,!r&&X(t)&&s>=0&&(c.get=function(e,n){return(e=O(this,e))>=0&&e<s?t.get(e+o,n):n}),c.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var u=0,a=!0,c=0;return t.__iterate((function(t,n){if(!a||!(a=u++<o))return c++,!1!==e(t,r?n:c-1,i)&&c!==s})),c},c.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),u=0,a=0;return new A((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return r||1===e?t:q(e,a-1,0===e?void 0:t.value[1],t)}))},c}function qe(t,e,n,r){var i=He(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return a++,i(t,r?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),a=!0,c=0;return new A((function(){var t,o,f;do{if((t=s.next()).done)return r||1===i?t:q(i,c++,0===i?void 0:t.value[1],t);var p=t.value;o=p[0],f=p[1],a&&(a=e.call(n,f,o,u))}while(a);return 2===i?t:q(i,o,f,t)}))},i}function Pe(t,e){var n=s(t),i=[t].concat(e).map((function(t){return u(t)?n&&(t=r(t)):t=n?G(t):Z(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||a(t)&&a(o))return o}var c=new H(i);return n?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),c}function Be(t,e,n){var r=He(t);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function t(a,c){var f=this;a.__iterate((function(i,a){return(!e||c<e)&&u(i)?t(i,c+1):!1===r(i,n?a:o++,f)&&(s=!0),!s}),i)}(t,0),o},r.__iteratorUncached=function(r,i){var o=t.__iterator(r,i),s=[],a=0;return new A((function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(s.length<e)||!u(c))return n?t:q(r,a++,c,t);s.push(o),o=c.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Te(t,e,n){e||(e=$e);var r=s(t),i=0,o=t.toSeq().map((function(e,r){return[r,e,i++,n?n(e,r,t):e]})).toArray();return o.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?U(o):a(t)?W(o):N(o)}function Ke(t,e,n){if(e||(e=$e),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return Fe(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return Fe(e,t,n)?n:t}))}function Fe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Le(t,e,r){var i=He(t);return i.size=new H(r).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=n(t),K(i?t.reverse():t)})),u=0,s=!1;return new A((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:q(t,u++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function Ve(t,e){return X(t)?e:t.constructor(e)}function Ue(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function We(t){return Mt(t.size),S(t)}function Ne(t){return s(t)?r:a(t)?i:o}function He(t){return Object.create((s(t)?U:a(t)?W:N).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function $e(t,e){return t>e?1:t<e?-1:0}function Ye(t){var e=K(t);if(!e){if(!L(t))throw new TypeError("Expected iterable or array-like: "+t);e=K(n(t))}return e}function Xe(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var u=Object.keys(t);!function(t,e){try{e.forEach(tn.bind(void 0,t))}catch(t){}}(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Dt(o)},i=r.prototype=Object.create(Qe);return i.constructor=r,r}e(we,Dt),we.of=function(){return this(arguments)},we.prototype.toString=function(){return this.__toString("OrderedMap {","}")},we.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},we.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):xe()},we.prototype.set=function(t,e){return Ee(this,t,e)},we.prototype.remove=function(t){return Ee(this,t,v)},we.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},we.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},we.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},we.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Oe(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},we.isOrderedMap=Se,we.prototype[d]=!0,we.prototype.delete=we.prototype.remove,e(Ie,U),Ie.prototype.get=function(t,e){return this._iter.get(t,e)},Ie.prototype.has=function(t){return this._iter.has(t)},Ie.prototype.valueSeq=function(){return this._iter.valueSeq()},Ie.prototype.reverse=function(){var t=this,e=Ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Ie.prototype.map=function(t,e){var n=this,r=Re(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Ie.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?We(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Ie.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(1,e),r=e?We(this):0;return new A((function(){var i=n.next();return i.done?i:q(t,e?--r:r++,i.value,i)}))},Ie.prototype[d]=!0,e(ze,W),ze.prototype.includes=function(t){return this._iter.includes(t)},ze.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate((function(e){return t(e,r++,n)}),e)},ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e),r=0;return new A((function(){var e=n.next();return e.done?e:q(t,r++,e.value,e)}))},e(ke,N),ke.prototype.has=function(t){return this._iter.includes(t)},ke.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},ke.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new A((function(){var e=n.next();return e.done?e:q(t,e.value,e.value,e)}))},e(Me,U),Me.prototype.entrySeq=function(){return this._iter.toSeq()},Me.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Ue(e);var r=u(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},Me.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new A((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ue(r);var i=u(r);return q(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}}))},ze.prototype.cacheResult=Ie.prototype.cacheResult=ke.prototype.cacheResult=Me.prototype.cacheResult=Je,e(Xe,ht),Xe.prototype.toString=function(){return this.__toString(Ze(this)+" {","}")},Xe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Xe.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},Xe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ge(this,Wt()))},Xe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ze(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Ge(this,n)},Xe.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:Ge(this,e)},Xe.prototype.wasAltered=function(){return this._map.wasAltered()},Xe.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterator(t,e)},Xe.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterate(t,e)},Xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ge(this,e,t):(this.__ownerID=t,this._map=e,this)};var Qe=Xe.prototype;function Ge(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function Ze(t){return t._name||t.constructor.name||"Record"}function tn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ct(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function en(t){return null==t?cn():nn(t)&&!f(t)?t:cn().withMutations((function(e){var n=o(t);Mt(n.size),n.forEach((function(t){return e.add(t)}))}))}function nn(t){return!(!t||!t[on])}Qe.delete=Qe.remove,Qe.deleteIn=Qe.removeIn=At.removeIn,Qe.merge=At.merge,Qe.mergeWith=At.mergeWith,Qe.mergeIn=At.mergeIn,Qe.mergeDeep=At.mergeDeep,Qe.mergeDeepWith=At.mergeDeepWith,Qe.mergeDeepIn=At.mergeDeepIn,Qe.setIn=At.setIn,Qe.update=At.update,Qe.updateIn=At.updateIn,Qe.withMutations=At.withMutations,Qe.asMutable=At.asMutable,Qe.asImmutable=At.asImmutable,e(en,dt),en.of=function(){return this(arguments)},en.fromKeys=function(t){return this(r(t).keySeq())},en.prototype.toString=function(){return this.__toString("Set {","}")},en.prototype.has=function(t){return this._map.has(t)},en.prototype.add=function(t){return sn(this,this._map.set(t,!0))},en.prototype.remove=function(t){return sn(this,this._map.remove(t))},en.prototype.clear=function(){return sn(this,this._map.clear())},en.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++)o(e[n]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},en.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.every((function(t){return t.includes(n)}))||t.remove(n)}))}))},en.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.some((function(t){return t.includes(n)}))&&t.remove(n)}))}))},en.prototype.merge=function(){return this.union.apply(this,arguments)},en.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},en.prototype.sort=function(t){return fn(Te(this,t))},en.prototype.sortBy=function(t,e){return fn(Te(this,e,t))},en.prototype.wasAltered=function(){return this._map.wasAltered()},en.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e,r){return t(r,r,n)}),e)},en.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},en.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)},en.isSet=nn;var rn,on="@@__IMMUTABLE_SET__@@",un=en.prototype;function sn(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 an(t,e){var n=Object.create(un);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function cn(){return rn||(rn=an(Wt()))}function fn(t){return null==t?vn():pn(t)?t:vn().withMutations((function(e){var n=o(t);Mt(n.size),n.forEach((function(t){return e.add(t)}))}))}function pn(t){return nn(t)&&f(t)}un[on]=!0,un.delete=un.remove,un.mergeDeep=un.merge,un.mergeDeepWith=un.mergeWith,un.withMutations=At.withMutations,un.asMutable=At.asMutable,un.asImmutable=At.asImmutable,un.__empty=cn,un.__make=an,e(fn,en),fn.of=function(){return this(arguments)},fn.fromKeys=function(t){return this(r(t).keySeq())},fn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},fn.isOrderedSet=pn;var hn,ln=fn.prototype;function dn(t,e){var n=Object.create(ln);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function vn(){return hn||(hn=dn(xe()))}function yn(t){return null==t?On():gn(t)?t:On().unshiftAll(t)}function gn(t){return!(!t||!t[bn])}ln[d]=!0,ln.__empty=vn,ln.__make=dn,e(yn,lt),yn.of=function(){return this(arguments)},yn.prototype.toString=function(){return this.__toString("Stack [","]")},yn.prototype.get=function(t,e){var n=this._head;for(t=O(this,t);n&&t--;)n=n.next;return n?n.value:e},yn.prototype.peek=function(){return this._head&&this._head.value},yn.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):Sn(t,e)},yn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Mt(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):Sn(e,n)},yn.prototype.pop=function(){return this.slice(1)},yn.prototype.unshift=function(){return this.push.apply(this,arguments)},yn.prototype.unshiftAll=function(t){return this.pushAll(t)},yn.prototype.shift=function(){return this.pop.apply(this,arguments)},yn.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):On()},yn.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var n=I(t,this.size);if(z(e,this.size)!==this.size)return lt.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Sn(r,i)},yn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Sn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},yn.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},yn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new A((function(){if(r){var e=r.value;return r=r.next,q(t,n++,e)}return{value:void 0,done:!0}}))},yn.isStack=gn;var mn,bn="@@__IMMUTABLE_STACK__@@",wn=yn.prototype;function Sn(t,e,n,r){var i=Object.create(wn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function On(){return mn||(mn=Sn(0))}function xn(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}wn[bn]=!0,wn.withMutations=At.withMutations,wn.asMutable=At.asMutable,wn.asImmutable=At.asImmutable,wn.wasAltered=At.wasAltered,n.Iterator=A,xn(n,{toArray:function(){Mt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new ze(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 Ie(this,!0)},toMap:function(){return Dt(this.toKeyedSeq())},toObject:function(){Mt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return we(this.toKeyedSeq())},toOrderedSet:function(){return fn(s(this)?this.valueSeq():this)},toSet:function(){return en(s(this)?this.valueSeq():this)},toSetSeq:function(){return new ke(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return yn(s(this)?this.valueSeq():this)},toList:function(){return ie(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 Ve(this,Pe(this,e))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Mt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1})),n},filter:function(t,e){return Ve(this,je(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Mt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Mt(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(0)},map:function(t,e){return Ve(this,Re(this,t,e))},reduce:function(t,e,n){var r,i;return Mt(this.size),arguments.length<2?i=!0:r=e,this.__iterate((function(e,o,u){i?(i=!1,r=e):r=t.call(n,r,e,o,u)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ve(this,Ce(this,!0))},slice:function(t,e){return Ve(this,Ae(this,t,e,!0))},some:function(t,e){return!this.every(Mn(t),e)},sort:function(t){return Ve(this,Te(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return S(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Dt().asMutable();return t.__iterate((function(i,o){r.update(e.call(n,i,o,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return st(this,t)},entrySeq:function(){var t=this;if(t._cache)return new H(t._cache);var e=t.toSeq().map(kn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Mn(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1})),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(x)},flatMap:function(t,e){return Ve(this,function(t,e,n){var r=Ne(t);return t.toSeq().map((function(i,o){return r(e.call(n,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Ve(this,Be(this,t,!0))},fromEntrySeq:function(){return new Me(this)},get:function(t,e){return this.find((function(e,n){return ut(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,i=Ye(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),i=(f(t)?we():Dt()).asMutable();t.__iterate((function(o,u){i.update(e.call(n,o,u,t),(function(t){return(t=t||[]).push(r?[u,o]:o),t}))}));var o=Ne(t);return i.map((function(e){return Ve(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return ut(e,t)}))},keySeq:function(){return this.toSeq().map(zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ke(this,t)},maxBy:function(t,e){return Ke(this,e,t)},min:function(t){return Ke(this,t?Dn(t):jn)},minBy:function(t,e){return Ke(this,e?Dn(e):jn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ve(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ve(this,qe(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Mn(t),e)},sortBy:function(t,e){return Ve(this,Te(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ve(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ve(this,function(t,e,n){var r=He(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var u=0;return t.__iterate((function(t,i,s){return e.call(n,t,i,s)&&++u&&r(t,i,o)})),u},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var u=t.__iterator(2,i),s=!0;return new A((function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(n,c,a,o)?2===r?t:q(r,a,c,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Mn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=f(t),n=s(t),r=e?1:0;return function(t,e){return e=vt(e,3432918353),e=vt(e<<15|e>>>-15,461845907),e=vt(e<<13|e>>>-13,5),e=vt((e=(e+3864292196|0)^t)^e>>>16,2246822507),_t((e=vt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+An(yt(t),yt(e))|0}:function(t,e){r=r+An(yt(t),yt(e))|0}:e?function(t){r=31*r+yt(t)|0}:function(t){r=r+yt(t)|0}),r)}(this))}});var En=n.prototype;En[p]=!0,En[j]=En.values,En.__toJS=En.toArray,En.__toStringMapper=Rn,En.inspect=En.toSource=function(){return this.toString()},En.chain=En.flatMap,En.contains=En.includes,xn(r,{flip:function(){return Ve(this,De(this))},mapEntries:function(t,e){var n=this,r=0;return Ve(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ve(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var In=r.prototype;function zn(t,e){return e}function kn(t,e){return[e,t]}function Mn(t){return function(){return!t.apply(this,arguments)}}function Dn(t){return function(){return-t.apply(this,arguments)}}function Rn(t){return"string"==typeof t?JSON.stringify(t):String(t)}function Cn(){return w(arguments)}function jn(t,e){return t<e?1:t>e?-1:0}function An(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return In[h]=!0,In[j]=En.entries,In.__toJS=En.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Rn(t)},xn(i,{toKeyedSeq:function(){return new Ie(this,!1)},filter:function(t,e){return Ve(this,je(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ve(this,Ce(this,!1))},slice:function(t,e){return Ve(this,Ae(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=I(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ve(this,1===n?r:r.concat(w(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ve(this,Be(this,t,!1))},get:function(t,e){return(t=O(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=O(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ve(this,function(t,e){var n=He(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate((function(t,r){return(!o||!1!==n(e,o++,i))&&!1!==n(t,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(1,r),u=0;return new A((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?q(n,u++,e):q(n,u++,i.value,i)}))},n}(this,t))},interleave:function(){var t=[this].concat(w(arguments)),e=Le(this.toSeq(),W.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Ve(this,n)},keySeq:function(){return ft(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ve(this,qe(this,t,e,!1))},zip:function(){var t=[this].concat(w(arguments));return Ve(this,Le(this,Cn,t))},zipWith:function(t){var e=w(arguments);return e[0]=this,Ve(this,Le(this,t,e))}}),i.prototype[l]=!0,i.prototype[d]=!0,xn(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=En.includes,o.prototype.contains=o.prototype.includes,xn(U,r.prototype),xn(W,i.prototype),xn(N,o.prototype),xn(ht,r.prototype),xn(lt,i.prototype),xn(dt,o.prototype),{Iterable:n,Seq:V,Collection:pt,Map:Dt,OrderedMap:we,List:ie,Stack:yn,Set:en,OrderedSet:fn,Record:Xe,Range:ft,Repeat:at,is:ut,fromJS:rt}}()}});

Zerion Mini Shell 1.0