Ubuntu
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=741)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},10:function(t,e){t.exports=window.wp.i18n},100:function(t,e){t.exports=window.lodash.filter},101:function(t,e){t.exports=window.lodash.includes},11:function(t,e,n){var r=n(37);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(23).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},123:function(t,e){t.exports=window.lodash.isEmpty},125:function(t,e){t.exports=window.lodash.debounce},127: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:U(t)}function r(t){return s(t)?t:V(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[l])}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[p])}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 l="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",p="@@__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>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?S(t)+e:e}function E(){return!0}function x(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function I(t,e){return z(t,e,0)}function M(t,e){return z(t,e,e)}function z(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var k,D,C,j="function"==typeof Symbol&&Symbol.iterator,R=j||"@@iterator";function P(t){this.next=t}function A(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 q(){return{value:void 0,done:!0}}function T(t){return!!F(t)}function B(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&&(j&&t[j]||t["@@iterator"]);if("function"==typeof e)return e}function L(t){return t&&"number"==typeof t.length}function U(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 V(t){return null==t?Q().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():X(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 G(t){this._iterator=t,this._iteratorCache=[]}function Y(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Q(){return k||(k=new H([]))}function X(t){var e=Array.isArray(t)?new H(t).fromEntrySeq():B(t)?new G(t).fromEntrySeq():T(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):B(t)?new G(t):T(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 P((function(){var t=i[n?o-u:u];return u++>o?{value:void 0,done:!0}:A(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,V(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)?V(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 l=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!ut(e,t.get(r,_)):!ut(t.get(r,_),e))return l=!1,!1}));return l&&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),er?{value:void 0,done:!0}:A(t,i,n[e?r-i++:i++])}))},e(J,V),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 P((function(){var u=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:A(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(B(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(!B(n))return new P(q);var r=0;return new P((function(){var e=n.next();return e.done?e:A(t,r++,e.value)}))},e(G,W),G.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=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return A(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 x(t,e,n)?this:new at(this._value,M(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=0&&e=0&&nn?{value:void 0,done:!0}:A(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(lt,n),e(ht,lt),e(pt,lt),e(dt,lt),lt.Keyed=ht,lt.Indexed=pt,lt.Set=dt;var _t="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 vt(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 vt(n)}if("string"===e)return t.length>xt?function(t){var e=zt[t];return void 0===e&&(e=gt(t),Mt===It&&(Mt=0,zt={}),Mt++,zt[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[Et]))return e;if(!wt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Et]))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,Et,{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[Et]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Et]=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=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,_,(function(){return e}))},Dt.prototype.remove=function(t){return Nt(this,t,_)},Dt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return _}))},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===_,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?_:e.get(c,_),l=t(f,n,r,i);return l===f?e:l===_?e.remove(c):(o?Wt():e).set(c,l)}(this,Ge(t),e,n);return r===_?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 Gt(this,void 0,arguments)},Dt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Gt(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 Gt(this,Yt,arguments)},Dt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Gt(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(Be(this,t))},Dt.prototype.sortBy=function(t,e){return we(Be(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?Vt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Dt.isMap=Ct;var jt,Rt="@@__IMMUTABLE_MAP__@@",Pt=Dt.prototype;function At(t,e){this.ownerID=t,this.entries=e}function qt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Tt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Bt(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&&Ut(t._root)}function Lt(t,e){return A(t,e[0],e[1])}function Ut(t,e){return{node:t,index:0,__prev:e}}function Vt(t,e,n,r){var i=Object.create(Pt);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Wt(){return jt||(jt=Vt(0))}function Nt(t,e,n){var r,i;if(t._root){var o=g(v),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===_?-1:1:0)}else{if(n===_)return t;i=1,r=new At(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Vt(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===_?t:(m(s),m(u),new Kt(e,r,[i,o]))}function Jt(t){return t.constructor===Kt||t.constructor===Bt}function $t(t,e,n,r,i){if(t.keyHash===r)return new Bt(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 qt(e,1<>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}Pt[Rt]=!0,Pt.delete=Pt.remove,Pt.removeIn=Pt.deleteIn,At.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o=ee)return function(t,e,n,r){t||(t=new b);for(var i=new Kt(t,yt(n),[n,r]),o=0;o>>t)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Zt(o&i-1)].get(t+5,e,n,r)},qt.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<=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 Tt(t,o+1,u)}(t,h,c,s,d);if(f&&!d&&2===h.length&&Jt(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&Jt(d))return d;var v=t&&t===this.ownerID,y=f?d?c:c^a:c|a,g=f?d?te(h,l,d,v):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>>t),o=this.nodes[i];return o?o.get(t+5,e,n,r):r},Tt.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===_,c=this.nodes,f=c[s];if(a&&!f)return this;var l=Ht(f,t,e+5,n,r,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h0&&r<32?pe(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,pt),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=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=_e(r,t.__ownerID,0,e,n,o):i=_e(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):pe(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>>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=ve(this,t);if(!o)for(var a=0;a>>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=ve(this,t);return u.array.splice(i+1),r&&(u.array[i]=r),u};var ce,fe,le={};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 le;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!==le)return n;s=null}if(c===f)return le;var r=e?--f:c++;s=t(a&&a[r],o-5,u+(r<>>n&31,a=t&&s0){var c=t&&t.array[s],f=_e(c,e,n-5,r,i,o);return f===c?t:((u=ve(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(m(o),u=ve(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function ve(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<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 l=be(o),h=be(s);h>=1<l?new ae([],r):p;if(p&&h>l&&u5;v-=5){var y=l>>>v&31;_=_.array[y]=ve(_.array[y],r)}_.array[l>>>5&31]=p}if(s=h)u-=h,s-=h,a=5,c=null,d=d&&d.removeBefore(r,0,u);else if(u>i||h>>a&31;if(g!==h>>>a&31)break;g&&(f+=(1<i&&(c=c.removeBefore(r,a,u-f)),c&&ho&&(o=c.size),u(a)||(c=c.map((function(t){return rt(t)}))),r.push(c)}return o>t.size&&(t=t.setSize(o)),Xt(t,e,r)}function be(t){return t<32?0:t-1>>>5<<5}function we(t){return null==t?Ee():Se(t)?t:Ee().withMutations((function(e){var n=r(t);kt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Se(t){return Ct(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 Ee(){return fe||(fe=Oe(Wt(),de()))}function xe(t,e,n){var r,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(n===_){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 Me(t){this._iter=t,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 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 P((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 Ce(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,_);return o===_?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 P((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return A(r,s,e.call(n,u[1],s,t),i)}))},r}function je(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 Re(t,e,n,r){var i=He(t);return r&&(i.has=function(r){var i=t.get(r,_);return i!==_&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,_);return o!==_&&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 P((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 A(i,r?c:s++,f,o)}}))},i}function Pe(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),x(e,n,i))return t;var o=I(e,i),u=M(n,i);if(o!=o||u!=u)return Pe(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&&Y(t)&&s>=0&&(c.get=function(e,n){return(e=O(this,e))>=0&&es)return{value:void 0,done:!0};var t=i.next();return r||1===e?t:A(e,a-1,0===e?void 0:t.value[1],t)}))},c}function Ae(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 P((function(){var t,o,f;do{if((t=s.next()).done)return r||1===i?t:A(i,c++,0===i?void 0:t.value[1],t);var l=t.value;o=l[0],f=l[1],a&&(a=e.call(n,f,o,u))}while(a);return 2===i?t:A(i,o,f,t)}))},i}function qe(t,e){var n=s(t),i=[t].concat(e).map((function(t){return u(t)?n&&(t=r(t)):t=n?X(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 Te(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||c0}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 P((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}:A(t,u++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function Ue(t,e){return Y(t)?e:t.constructor(e)}function Ve(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function We(t){return kt(t.size),S(t)}function Ne(t){return s(t)?r:a(t)?i:o}function He(t){return Object.create((s(t)?V:a(t)?W:N).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):U.prototype.cacheResult.call(this)}function $e(t,e){return t>e?1:t=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;kt(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(x(t,e,this.size))return this;var n=I(t,this.size);if(M(e,this.size)!==this.size)return pt.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 P((function(){if(r){var e=r.value;return r=r.next,A(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 En(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=Pt.withMutations,wn.asMutable=Pt.asMutable,wn.asImmutable=Pt.asImmutable,wn.wasAltered=Pt.wasAltered,n.Iterator=P,En(n,{toArray:function(){kt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Me(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(){kt(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 ze(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 Ue(this,qe(this,e))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){kt(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 Ue(this,Re(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 kt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){kt(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 Ue(this,Ce(this,t,e))},reduce:function(t,e,n){var r,i;return kt(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 Ue(this,je(this,!0))},slice:function(t,e){return Ue(this,Pe(this,t,e,!0))},some:function(t,e){return!this.every(kn(t),e)},sort:function(t){return Ue(this,Be(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(zn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(kn(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(E)},flatMap:function(t,e){return Ue(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 Ue(this,Te(this,t,!0))},fromEntrySeq:function(){return new ke(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=Ge(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,_):_)===_)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 Ue(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,_)!==_},hasIn:function(t){return this.getIn(t,_)!==_},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(Mn).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):Rn)},minBy:function(t,e){return Ke(this,e?Dn(e):Rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ue(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ue(this,Ae(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(kn(t),e)},sortBy:function(t,e){return Ue(this,Be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ue(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ue(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 P((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:A(r,a,c,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(kn(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=_t(e,3432918353),e=_t(e<<15|e>>>-15,461845907),e=_t(e<<13|e>>>-13,5),e=_t((e=(e+3864292196|0)^t)^e>>>16,2246822507),vt((e=_t(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Pn(yt(t),yt(e))|0}:function(t,e){r=r+Pn(yt(t),yt(e))|0}:e?function(t){r=31*r+yt(t)|0}:function(t){r=r+yt(t)|0}),r)}(this))}});var xn=n.prototype;xn[l]=!0,xn[R]=xn.values,xn.__toJS=xn.toArray,xn.__toStringMapper=Cn,xn.inspect=xn.toSource=function(){return this.toString()},xn.chain=xn.flatMap,xn.contains=xn.includes,En(r,{flip:function(){return Ue(this,De(this))},mapEntries:function(t,e){var n=this,r=0;return Ue(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ue(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var In=r.prototype;function Mn(t,e){return e}function zn(t,e){return[e,t]}function kn(t){return function(){return!t.apply(this,arguments)}}function Dn(t){return function(){return-t.apply(this,arguments)}}function Cn(t){return"string"==typeof t?JSON.stringify(t):String(t)}function jn(){return w(arguments)}function Rn(t,e){return te?-1:0}function Pn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return In[h]=!0,In[R]=xn.entries,In.__toJS=xn.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Cn(t)},En(i,{toKeyedSeq:function(){return new Ie(this,!1)},filter:function(t,e){return Ue(this,Re(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 Ue(this,je(this,!1))},slice:function(t,e){return Ue(this,Pe(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 Ue(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 Ue(this,Te(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>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?S(t)+e:e}function E(){return!0}function x(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function I(t,e){return z(t,e,0)}function M(t,e){return z(t,e,e)}function z(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var k,D,C,j="function"==typeof Symbol&&Symbol.iterator,R=j||"@@iterator";function P(t){this.next=t}function A(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 q(){return{value:void 0,done:!0}}function T(t){return!!F(t)}function B(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&&(j&&t[j]||t["@@iterator"]);if("function"==typeof e)return e}function L(t){return t&&"number"==typeof t.length}function U(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 V(t){return null==t?Q().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():X(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 G(t){this._iterator=t,this._iteratorCache=[]}function Y(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Q(){return k||(k=new H([]))}function X(t){var e=Array.isArray(t)?new H(t).fromEntrySeq():B(t)?new G(t).fromEntrySeq():T(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):B(t)?new G(t):T(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 P((function(){var t=i[n?o-u:u];return u++>o?{value:void 0,done:!0}:A(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,V(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)?V(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 l=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!ut(e,t.get(r,_)):!ut(t.get(r,_),e))return l=!1,!1}));return l&&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),er?{value:void 0,done:!0}:A(t,i,n[e?r-i++:i++])}))},e(J,V),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 P((function(){var u=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:A(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(B(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(!B(n))return new P(q);var r=0;return new P((function(){var e=n.next();return e.done?e:A(t,r++,e.value)}))},e(G,W),G.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=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return A(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 x(t,e,n)?this:new at(this._value,M(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;n1?" 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=0&&nn?{value:void 0,done:!0}:A(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(lt,n),e(ht,lt),e(pt,lt),e(dt,lt),lt.Keyed=ht,lt.Indexed=pt,lt.Set=dt;var _t="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 vt(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 vt(n)}if("string"===e)return t.length>xt?function(t){var e=zt[t];return void 0===e&&(e=gt(t),Mt===It&&(Mt=0,zt={}),Mt++,zt[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[Et]))return e;if(!wt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Et]))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,Et,{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[Et]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Et]=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>>n),s=31&(0===n?r:r>>>n);return new qt(e,1<>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}Pt[Rt]=!0,Pt.delete=Pt.remove,Pt.removeIn=Pt.deleteIn,At.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o=ee)return function(t,e,n,r){t||(t=new b);for(var i=new Kt(t,yt(n),[n,r]),o=0;o>>t)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Zt(o&i-1)].get(t+5,e,n,r)},qt.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<=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 Tt(t,o+1,u)}(t,h,c,s,d);if(f&&!d&&2===h.length&&Jt(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&Jt(d))return d;var v=t&&t===this.ownerID,y=f?d?c:c^a:c|a,g=f?d?te(h,l,d,v):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>>t),o=this.nodes[i];return o?o.get(t+5,e,n,r):r},Tt.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===_,c=this.nodes,f=c[s];if(a&&!f)return this;var l=Ht(f,t,e+5,n,r,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h0&&r<32?pe(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,pt),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=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=_e(r,t.__ownerID,0,e,n,o):i=_e(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):pe(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>>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=ve(this,t);if(!o)for(var a=0;a>>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=ve(this,t);return u.array.splice(i+1),r&&(u.array[i]=r),u};var ce,fe,le={};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 le;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!==le)return n;s=null}if(c===f)return le;var r=e?--f:c++;s=t(a&&a[r],o-5,u+(r<>>n&31,a=t&&s0){var c=t&&t.array[s],f=_e(c,e,n-5,r,i,o);return f===c?t:((u=ve(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(m(o),u=ve(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function ve(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<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 l=be(o),h=be(s);h>=1<l?new ae([],r):p;if(p&&h>l&&u5;v-=5){var y=l>>>v&31;_=_.array[y]=ve(_.array[y],r)}_.array[l>>>5&31]=p}if(s=h)u-=h,s-=h,a=5,c=null,d=d&&d.removeBefore(r,0,u);else if(u>i||h>>a&31;if(g!==h>>>a&31)break;g&&(f+=(1<i&&(c=c.removeBefore(r,a,u-f)),c&&ho&&(o=c.size),u(a)||(c=c.map((function(t){return rt(t)}))),r.push(c)}return o>t.size&&(t=t.setSize(o)),Xt(t,e,r)}function be(t){return t<32?0:t-1>>>5<<5}function we(t){return null==t?Ee():Se(t)?t:Ee().withMutations((function(e){var n=r(t);kt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Se(t){return Ct(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 Ee(){return fe||(fe=Oe(Wt(),de()))}function xe(t,e,n){var r,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(n===_){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 Me(t){this._iter=t,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 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 P((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 Ce(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,_);return o===_?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 P((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return A(r,s,e.call(n,u[1],s,t),i)}))},r}function je(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 Re(t,e,n,r){var i=He(t);return r&&(i.has=function(r){var i=t.get(r,_);return i!==_&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,_);return o!==_&&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 P((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 A(i,r?c:s++,f,o)}}))},i}function Pe(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),x(e,n,i))return t;var o=I(e,i),u=M(n,i);if(o!=o||u!=u)return Pe(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&&Y(t)&&s>=0&&(c.get=function(e,n){return(e=O(this,e))>=0&&es)return{value:void 0,done:!0};var t=i.next();return r||1===e?t:A(e,a-1,0===e?void 0:t.value[1],t)}))},c}function Ae(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 P((function(){var t,o,f;do{if((t=s.next()).done)return r||1===i?t:A(i,c++,0===i?void 0:t.value[1],t);var l=t.value;o=l[0],f=l[1],a&&(a=e.call(n,f,o,u))}while(a);return 2===i?t:A(i,o,f,t)}))},i}function qe(t,e){var n=s(t),i=[t].concat(e).map((function(t){return u(t)?n&&(t=r(t)):t=n?X(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 Te(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||c0}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 P((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}:A(t,u++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function Ue(t,e){return Y(t)?e:t.constructor(e)}function Ve(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function We(t){return kt(t.size),S(t)}function Ne(t){return s(t)?r:a(t)?i:o}function He(t){return Object.create((s(t)?V:a(t)?W:N).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):U.prototype.cacheResult.call(this)}function $e(t,e){return t>e?1:t=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;kt(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(x(t,e,this.size))return this;var n=I(t,this.size);if(M(e,this.size)!==this.size)return pt.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 P((function(){if(r){var e=r.value;return r=r.next,A(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 En(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=Pt.withMutations,wn.asMutable=Pt.asMutable,wn.asImmutable=Pt.asImmutable,wn.wasAltered=Pt.wasAltered,n.Iterator=P,En(n,{toArray:function(){kt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Me(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(){kt(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 ze(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 Ue(this,qe(this,e))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){kt(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 Ue(this,Re(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 kt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){kt(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 Ue(this,Ce(this,t,e))},reduce:function(t,e,n){var r,i;return kt(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 Ue(this,je(this,!0))},slice:function(t,e){return Ue(this,Pe(this,t,e,!0))},some:function(t,e){return!this.every(kn(t),e)},sort:function(t){return Ue(this,Be(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(zn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(kn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(E)},flatMap:function(t,e){return Ue(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 Ue(this,Te(this,t,!0))},fromEntrySeq:function(){return new ke(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=Ge(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,_):_)===_)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 Ue(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,_)!==_},hasIn:function(t){return this.getIn(t,_)!==_},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(Mn).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):Rn)},minBy:function(t,e){return Ke(this,e?Dn(e):Rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ue(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ue(this,Ae(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(kn(t),e)},sortBy:function(t,e){return Ue(this,Be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ue(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ue(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 P((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:A(r,a,c,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(kn(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=_t(e,3432918353),e=_t(e<<15|e>>>-15,461845907),e=_t(e<<13|e>>>-13,5),e=_t((e=(e+3864292196|0)^t)^e>>>16,2246822507),vt((e=_t(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Pn(yt(t),yt(e))|0}:function(t,e){r=r+Pn(yt(t),yt(e))|0}:e?function(t){r=31*r+yt(t)|0}:function(t){r=r+yt(t)|0}),r)}(this))}});var xn=n.prototype;xn[l]=!0,xn[R]=xn.values,xn.__toJS=xn.toArray,xn.__toStringMapper=Cn,xn.inspect=xn.toSource=function(){return this.toString()},xn.chain=xn.flatMap,xn.contains=xn.includes,function(){try{Object.defineProperty(xn,"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){}}(),En(r,{flip:function(){return Ue(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 Ue(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ue(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var In=r.prototype;function Mn(t,e){return e}function zn(t,e){return[e,t]}function kn(t){return function(){return!t.apply(this,arguments)}}function Dn(t){return function(){return-t.apply(this,arguments)}}function Cn(t){return"string"==typeof t?JSON.stringify(t):t}function jn(){return w(arguments)}function Rn(t,e){return te?-1:0}function Pn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return In[h]=!0,In[R]=xn.entries,In.__toJS=xn.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Cn(t)},En(i,{toKeyedSeq:function(){return new Ie(this,!1)},filter:function(t,e){return Ue(this,Re(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 Ue(this,je(this,!1))},slice:function(t,e){return Ue(this,Pe(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 Ue(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 Ue(this,Te(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||t0&&void 0!==arguments[0]?arguments[0]:{},e={keyBindingFn:void 0,handleKeyCommand:void 0,handleReturn:void 0,onChange:void 0},n={ariaHasPopup:"false",ariaExpanded:!1,ariaOwneeID:void 0,ariaActiveDescendantID:void 0},i=(0,u.Map)(),p=void 0,d=(0,u.Map)(),_=void 0,v={getEditorState:void 0,setEditorState:void 0,getPortalClientRect:function(t){return d.get(t)()},getAllSearches:function(){return i},isEscaped:function(t){return p===t},escapeSearch:function(t){p=t},resetEscapedSearch:function(){p=void 0},register:function(t){i=i.set(t,t)},updatePortalClientRect:function(t,e){d=d.set(t,e)},unregister:function(t){i=i.delete(t),d=d.delete(t)},getIsOpened:function(){return _},setIsOpened:function(t){_=t}},g=t.mentionPrefix,b=void 0===g?"":g,w=t.theme,S=void 0===w?m:w,O=t.positionSuggestions,E=void 0===O?y.default:O,x=t.mentionComponent,I=t.mentionSuggestionsComponent,M=void 0===I?a.default:I,z=t.entityMutability,k=void 0===z?"SEGMENTED":z,D=t.mentionTrigger,C=void 0===D?"@":D,j=t.mentionRegExp,R=void 0===j?f.default:j,P=t.supportWhitespace,A=void 0!==P&&P,q={ariaProps:n,callbacks:e,theme:S,store:v,entityMutability:k,positionSuggestions:E,mentionTrigger:C,mentionPrefix:b},T=function(t){return o.default.createElement(M,r({},t,q))},B=function(t){return o.default.createElement(s.default,r({},t,{theme:S,mentionComponent:x}))},K=function(t){return o.default.createElement(c.default,r({},t,{store:v}))};return{MentionSuggestions:T,decorators:[{strategy:(0,l.default)(C),component:B},{strategy:(0,h.default)(C,A,R),component:K}],getAccessibilityProps:function(){return{role:"combobox",ariaAutoComplete:"list",ariaHasPopup:n.ariaHasPopup,ariaExpanded:n.ariaExpanded,ariaActiveDescendantID:n.ariaActiveDescendantID,ariaOwneeID:n.ariaOwneeID}},initialize:function(t){var e=t.getEditorState,n=t.setEditorState;v.getEditorState=e,v.setEditorState=n},keyBindingFn:function(t){return e.keyBindingFn&&e.keyBindingFn(t)},handleReturn:function(t){return e.handleReturn&&e.handleReturn(t)},onChange:function(t){return e.onChange?e.onChange(t):t}}},e.defaultSuggestionsFilter=v.default},316:function(t,e){t.exports=window.lodash.get},317:function(t,e,n){var r=n(502),i=n(503),o=n(64),u=n(504);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||u()},t.exports.default=t.exports,t.exports.__esModule=!0},37: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.yoast.styledComponents},476:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(18);e.default=function(t){return r.EditorState.createWithContent(r.ContentState.createFromText(t))}},477:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,e=Array(t),n=0;n=0;n-=1){var i=e[n];t=i(t)}return t}}},478:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function y(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&r.state.focusedOptionIndex>=n&&r.setState({focusedOptionIndex:n-1}),!r.props.store.getAllSearches().has(r.activeOffsetKey))return;var i=r.props.store.getPortalClientRect(r.activeOffsetKey),o=r.props.positionSuggestions({decoratorRect:i,prevProps:t,prevState:e,props:r.props,state:r.state,popover:r.popover});Object.keys(o).forEach((function(t){r.popover.style[t]=o[t]}))}},r.componentWillUnmount=function(){r.props.callbacks.onChange=void 0},r.onEditorStateChange=function(t){var e=r.props.store.getAllSearches();if(0===e.size)return t;var n=function(){return r.props.store.resetEscapedSearch(),r.closeDropdown(),t},i=t.getSelection(),o=i.getAnchorKey(),u=i.getAnchorOffset();if(!i.isCollapsed()||!i.getHasFocus())return n();var s=e.map((function(t){return(0,h.default)(t)})).filter((function(t){return t.blockKey===o})).map((function(e){var n=e.blockKey,r=e.decoratorKey;return t.getBlockTree(n).getIn([r])}));if(s.every((function(t){return void 0===t})))return n();var a=t.getCurrentContent().getPlainText(),f=s.filter((function(t){return void 0!==t})).map((function(t){var e=t.start,n=t.end;return 0===e&&u===r.props.mentionTrigger.length&&a.charAt(u)!==r.props.mentionTrigger&&new RegExp(String.raw({raw:""+(0,c.default)(r.props.mentionTrigger)}),"g").test(a)&&u<=n||u>e+r.props.mentionTrigger.length&&u<=n}));if(f.every((function(t){return!1===t})))return n();var l=r.activeOffsetKey;return r.activeOffsetKey=f.filter((function(t){return!0===t})).keySeq().first(),r.onSearchChange(t,i,r.activeOffsetKey,l),r.props.store.isEscaped(r.activeOffsetKey)||r.props.store.resetEscapedSearch(),!r.state.isActive&&!r.props.store.isEscaped(r.activeOffsetKey)&&r.props.suggestions.length>0&&r.openDropdown(),void 0!==r.lastSelectionIsInsideWord&&f.equals(r.lastSelectionIsInsideWord)||r.setState({focusedOptionIndex:0}),r.lastSelectionIsInsideWord=f,t},r.onSearchChange=function(t,e,n,i){var o=(0,p.default)(t,e,r.props.mentionTrigger).matchingString;r.lastSearchValue===o&&n===i||(r.lastSearchValue=o,r.props.onSearchChange({value:o}))},r.onDownArrow=function(t){t.preventDefault();var e=r.state.focusedOptionIndex+1;r.onMentionFocus(e>=r.props.suggestions.length?0:e)},r.onTab=function(t){t.preventDefault(),r.commitSelection()},r.onUpArrow=function(t){if(t.preventDefault(),r.props.suggestions.length>0){var e=r.state.focusedOptionIndex-1;r.onMentionFocus(e<0?r.props.suggestions.length-1:e)}},r.onEscape=function(t){t.preventDefault();var e=r.lastSelectionIsInsideWord.filter((function(t){return!0===t})).keySeq().first();r.props.store.escapeSearch(e),r.closeDropdown(),r.props.store.setEditorState(r.props.store.getEditorState())},r.onMentionSelect=function(t){if(t){r.props.onAddMention&&r.props.onAddMention(t),r.closeDropdown();var e=(0,l.default)(r.props.store.getEditorState(),t,r.props.mentionPrefix,r.props.mentionTrigger,r.props.entityMutability);r.props.store.setEditorState(e)}},r.onMentionFocus=function(t){var e="mention-option-"+r.key+"-"+t;r.props.ariaProps.ariaActiveDescendantID=e,r.setState({focusedOptionIndex:t}),r.props.store.setEditorState(r.props.store.getEditorState())},r.commitSelection=function(){return r.props.store.getIsOpened()?(r.onMentionSelect(r.props.suggestions[r.state.focusedOptionIndex]),"handled"):"not-handled"},r.openDropdown=function(){r.props.callbacks.handleReturn=r.commitSelection,r.props.callbacks.keyBindingFn=function(t){40===t.keyCode&&r.onDownArrow(t),38===t.keyCode&&r.onUpArrow(t),27===t.keyCode&&r.onEscape(t),9===t.keyCode&&r.onTab(t)};var t="mention-option-"+r.key+"-"+r.state.focusedOptionIndex;r.props.ariaProps.ariaActiveDescendantID=t,r.props.ariaProps.ariaOwneeID="mentions-list-"+r.key,r.props.ariaProps.ariaHasPopup="true",r.props.ariaProps.ariaExpanded=!0,r.setState({isActive:!0}),r.props.onOpen&&r.props.onOpen()},r.closeDropdown=function(){r.props.callbacks.handleReturn=void 0,r.props.callbacks.keyBindingFn=void 0,r.props.ariaProps.ariaHasPopup="false",r.props.ariaProps.ariaExpanded=!1,r.props.ariaProps.ariaActiveDescendantID=void 0,r.props.ariaProps.ariaOwneeID=void 0,r.setState({isActive:!1}),r.props.onClose&&r.props.onClose()},y(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentWillMount",value:function(){this.key=(0,a.genKey)(),this.props.callbacks.onChange=this.onEditorStateChange}},{key:"componentWillReceiveProps",value:function(t){0===t.suggestions.length&&this.state.isActive?this.closeDropdown():t.suggestions.length>0&&t.suggestions!==this.props.suggestions&&!this.state.isActive&&this.openDropdown()}},{key:"render",value:function(){var t=this;if(!this.state.isActive)return null;var e=this.props,n=e.entryComponent,i=e.popoverComponent,o=void 0===i?u.default.createElement("div",null):i,s=(e.onClose,e.onOpen,e.onAddMention,e.onSearchChange,e.suggestions,e.ariaProps,e.callbacks,e.theme),a=void 0===s?{}:s,c=(e.store,e.entityMutability,e.positionSuggestions,e.mentionTrigger,e.mentionPrefix,function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["entryComponent","popoverComponent","onClose","onOpen","onAddMention","onSearchChange","suggestions","ariaProps","callbacks","theme","store","entityMutability","positionSuggestions","mentionTrigger","mentionPrefix"]));return u.default.cloneElement(o,r({},c,{className:a.mentionSuggestions,role:"listbox",id:"mentions-list-"+this.key,ref:function(e){t.popover=e}}),this.props.suggestions.map((function(e,r){return u.default.createElement(f.default,{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||d.default})})))}}]),e}(o.Component);g.propTypes={entityMutability:s.default.oneOf(["SEGMENTED","IMMUTABLE","MUTABLE"]),entryComponent:s.default.func,onAddMention:s.default.func,suggestions:s.default.array},e.default=g},488:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["mention","theme","isFocused","searchValue"]));return r.default.createElement("div",o,r.default.createElement(i.default,{mention:e,theme:n}),r.default.createElement("span",{className:n.mentionSuggestionsEntryText},e.name))}},493:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(3))&&r.__esModule?r:{default:r};e.default=function(t){var e=t.mention,n=t.theme,r=void 0===n?{}:n;return e.avatar?i.default.createElement("img",{src:e.avatar,className:r.mentionSuggestionsEntryAvatar,role:"presentation"}):null}},494:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(3)),i=o(n(495));function o(t){return t&&t.__esModule?t:{default:t}}var u=function(t){var e=t.mention,n=t.children,i=t.className;return r.default.createElement("a",{href:e.link,className:i,spellCheck:!1},n)},s=function(t){var e=t.children,n=t.className;return r.default.createElement("span",{className:n,spellCheck:!1},e)};e.default=function(t){var e=t.entityKey,n=t.theme,o=void 0===n?{}:n,a=t.mentionComponent,c=t.children,f=t.decoratedText,l=t.className,h=t.contentState,p=(0,i.default)(o.mention,l),d=h.getEntity(e).getData().mention,_=a||(d.link?u:s);return r.default.createElement(_,{entityKey:e,mention:d,theme:o,className:p,decoratedText:f},c)}},495:function(t,e,n){"use strict";function r(t){var e,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e-1})),i=r.length<5?r.length:5;return r.slice(0,i)}},501:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.decoratorRect,n=t.popover,r=t.state,i=t.props,o=function t(e){return e?"static"!==window.getComputedStyle(e).getPropertyValue("position")?e:t(e.parentElement):null}(n.parentElement),u={};if(o){u.scrollLeft=o.scrollLeft,u.scrollTop=o.scrollTop;var s=o.getBoundingClientRect();u.left=e.left-s.left,u.top=e.bottom-s.top}else u.scrollTop=window.pageYOffset||document.documentElement.scrollTop,u.scrollLeft=window.pageXOffset||document.documentElement.scrollLeft,u.top=e.bottom,u.left=e.left;var a=u.left+u.scrollLeft,c=u.top+u.scrollTop,f=void 0,l=void 0;return r.isActive&&(i.suggestions.length>0?(f="scale(1)",l="all 0.25s cubic-bezier(.3,1.2,.2,1)"):(f="scale(0)",l="all 0.35s cubic-bezier(.3,1,.2,1)")),{left:a+"px",top:c+"px",transform:f,transformOrigin:"1em 0%",transition:l}}},502:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},503: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},504: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},51:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:" ";return t.replace(R,e)}function A(t,e,n){e=e||t.getCurrentContent().getBlocksAsArray();var r=Object(C.List)(),i=Object(C.List)();e.forEach((function(t){"atomic"!==t.getType()&&(r=r.push(P(t.getText())),i=i.concat(t.getCharacterList()))})),n.stripEntities&&(i=i.map(q));var o=new j.ContentBlock({key:Object(j.genKey)(),text:r.join(""),type:"unstyled",characterList:i,depth:0}),u=j.ContentState.createFromBlockArray([o]);return t=j.EditorState.push(t,u,"remove-range"),j.EditorState.moveFocusToEnd(t)}function q(t){return t.set("entity",null)}function T(t){var e=!1;return t.forEach((function(t){null!==t.get("entity")&&(e=!0)})),e}var B={stripEntities:!0},K=n(125),F=n.n(K),L=n(123),U=n.n(L),V=n(100),W=n.n(V),N=n(101),H=n.n(N),J=n(316),$=n.n(J),G=n(61),Y=n(4),Q=n.n(Y),X=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})),Z=m.a.arrayOf(m.a.string);function tt(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 et(t){for(var e=1;ewindow.innerHeight?r-i-n:r+i},ut=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.left-t.left;r&&(i-=n);var o=e.left+n+3;if(r&&(o-=n),o>window.innerWidth){var u=o-window.innerWidth;return i-u}return i},st=function(t,e){var n="scale(0)",r="all 0.35s cubic-bezier(.3,1,.2,1)";return t.isActive&&e.suggestions.length>0&&(n="scale(1)",r="all 0.25s cubic-bezier(.3,1.2,.2,1)"),{transform:n,transformOrigin:"1em 0%",transition:r}},at=n(55),ct=n.n(at),ft=n(6),lt=Q.a.span(nt||(nt=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"])),ft.colors.$color_white,ft.colors.$color_pink_dark,ft.colors.$color_white,ft.colors.$color_pink_dark),ht=function(t){var e=t.children,n=t.className;return Object(_.createElement)(lt,{className:ct()("yst-replacevar__mention",n),spellCheck:!1},e)};ht.propTypes={children:m.a.node.isRequired,className:m.a.string.isRequired};var pt=n(317),dt=n.n(pt),_t=n(21),vt=n.n(_t),yt=n(15);function gt(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 mt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[];return vt()(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 Ot(t,e,n){return t>=e&&t<=n}function Et(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(Ot(n,i,u)&&Ot(r,i,u)){var o=e(t.getEntityAt(n));a.push({start:n-i,end:r-i,replacementText:wt(o.data.mention.replaceName)})}})),St(s,a)}function xt(t,e){var n=e;return t.forEach((function(t){t.name===e&&t.label&&(n=t.label)})),n}function It(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=bt.exec(t);){var r=e,i=dt()(r,2),o=i[0],u=i[1];n.push({name:u,start:e.index,length:o.length})}return n}(n);vt()(o).reverse().forEach((function(t){t=function(t){return mt(mt({},t),{},{start:t.start,end:t.start+t.length,delta:t.label.length-t.length})}(t=function(t,e){return mt(mt({},t),{},{label:xt(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,j.SelectionState.createEmpty(n).merge({anchorOffset:r.end,focusOffset:r.end+1}));if(!Object(yt.getWordBoundaries)().includes(o)){var u=j.SelectionState.createEmpty(n).merge({anchorOffset:r.end,focusOffset:r.end}),s=j.Modifier.insertText(i,u," ");t=j.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=j.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=j.Modifier.replaceText(r,i,e.label,null,r.getLastCreatedEntityKey());return j.EditorState.push(t,o,"apply-entity")}(o.editorState,t,i),r=j.EditorState.acceptSelection(r,o.selection)}))})),r}function Mt(t,e){return It(j.EditorState.createWithContent(j.ContentState.createFromText(t)),e)}var zt,kt=function(t,e){var n=t.charAt(e);return 0===n.length||/\s/.test(n)},Dt=function(t,e){var n=e.getAnchorKey();return t.getBlockForKey(n)};function Ct(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 jt(t,e,n){var r=t.getBlockForKey(e).getEntityAt(n),i=Ct(t,e,r);return null===i||i.start===n?null:r}function Rt(t,e){var n=e.start,r=e.end;return t.getStartOffset()<=n&&t.getEndOffset()>=r}function Pt(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 At(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],u=rt(n.parentElement),s=u.getBoundingClientRect(),a=it(n),c={top:ot(s,e,a.height),left:ut(s,e,a.width,o)},f=st(r,i);return et({top:c.top+"px",left:c.left+"px"},f)}(e,t)},mentionComponent:ht}),this.singleLinePlugin=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},B,t),{blockRenderMap:Object(C.Map)({unstyled:{element:"div"}}),onChange:function(e){var n=e.getCurrentContent().getBlocksAsArray();if(n.length>1)e=A(e,n,t);else{var r=n[0],i=r.getText(),o=r.getCharacterList(),u=t.stripEntities&&T(o);if(R.test(i)||u){i=P(i),t.stripEntities&&(o=o.map(q)),r=new j.ContentBlock({key:Object(j.genKey)(),text:i,type:"unstyled",characterList:o,depth:0});var s=j.ContentState.createFromBlockArray([r]);e=j.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 Et(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=jt(n,i,r);if(null!==f){var l=Ct(n,i,f),h=l.start,p=l.end;t=Rt(e,l)?t.merge(E()({},a,p)):t.merge(E()({},a,h))}var d=jt(n,u,o);if(null!==d){var _=Ct(n,i,d),v=_.start,y=_.end;t=Rt(e,_)?t.merge(E()({},c,v)):t.merge(E()({},c,y))}return t}(n,r,i);return o!==n&&(t=j.EditorState.forceSelection(t,o)),t}(t=It(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 At(At({},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&&!U()(e);if(r){var i=W()(t,(function(t){return H()(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:"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,"yoast-components"),t.length),"assertive"):this.debouncedA11ySpeak(Object(S.__)("No results","yoast-components"),"assertive")}},{key:"focus",value:function(){this.editor.focus()}},{key:"setEditorRef",value:function(t){this.editor=t}},{key:"setEditorFieldId",value:function(){$()(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=j.Modifier.removeRange(e,n,"backward");return j.EditorState.push(t,r,"remove-range")}(this.state.editorState),r=n.getSelection(),i=n.getCurrentContent(),o=Dt(i,r).getText(),u=(t=r).getIsBackward()?t.getEndOffset():t.getStartOffset(),s=!kt(o,u-1),a=!kt(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=j.Modifier.insertText(n,r,e);return j.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=Dt(r,i).getKey());var o=j.SelectionState.createEmpty(n).merge({anchorOffset:e,focusOffset:e});return j.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=Mt(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()),Et(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;return Object(_.createElement)(y.a.Fragment,null,Object(_.createElement)(z.a,{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(_.createElement)(qt,null,Object(_.createElement)(t,{onSearchChange:this.onSearchChange,suggestions:f})))}}]),o}(y.a.Component);Tt.propTypes={content:m.a.string.isRequired,replacementVariables:X.isRequired,recommendedReplacementVariables:Z,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},Tt.defaultProps={onFocus:function(){},onBlur:function(){},placeholder:"",theme:{isRtl:!1},recommendedReplacementVariables:[],isDisabled:!1};var Bt,Kt,Ft,Lt,Ut,Vt=Object(Y.withTheme)(Tt),Wt=n(13),Nt=Q()(Wt.VariableEditorInputContainer)(Bt||(Bt=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"),Ht=Q()(Wt.VariableEditorInputContainer)(Kt||(Kt=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"),Jt=Q.a.div(Ft||(Ft=I()(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tmargin: 16px 0 0 0;\n"]))),$t=Q()(Wt.Button)(Lt||(Lt=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\twidth: 112px;\n\theight: 40px;\n']))),Gt=Q()($t)(Ut||(Ut=I()(["\n\tfont-size: 13px;\n\twidth: 103px;\n\theight: 28px;\n\tmargin-left: auto;\n\t& svg {\n\t\t",": 7px;\n\t\tfill: ",";\n\t}\n"])),Object(yt.getDirectionalStyle)("margin-right","margin-left"),ft.colors.$color_grey_dark);var Yt=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=Ht;break;case"title":e.InputContainer=Nt;break;default:e.InputContainer=Nt}return t.withCaret&&(e.InputContainer=Object(ft.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,l=e.editorRef,h=e.placeholder,p=e.fieldId,d=e.onMouseEnter,v=e.onMouseLeave,y=e.hasNewBadge,g=e.isDisabled,m=e.hasPremiumBadge,b=this.InputContainer,w=Object(_.createElement)(Gt,{className:"yst-replacevar__button-insert",onClick:this.triggerReplacementVariableSuggestions,disabled:g},Object(S.__)("Insert variable","yoast-components"));return Object(_.createElement)(Jt,{className:"yst-replacevar",onMouseEnter:d,onMouseLeave:v},Object(_.createElement)(Wt.SimulatedLabel,{className:"yst-replacevar__label",id:this.uniqueId,onClick:o},n),m&&Object(_.createElement)(Wt.PremiumBadge,{inLabel:!0}),y&&Object(_.createElement)(Wt.NewBadge,{inLabel:!0}),w,Object(_.createElement)(b,{className:"yst-replacevar__editor",onClick:o,isActive:s&&!g,isHovered:a},Object(_.createElement)(Vt,{fieldId:p,placeholder:h,content:i,onChange:r,onFocus:o,onBlur:u,replacementVariables:c,recommendedReplacementVariables:f,ref:function(e){t.ref=e,l(e)},ariaLabelledBy:this.uniqueId,isDisabled:g})))}}]),o}(y.a.Component);Yt.propTypes={editorRef:m.a.func,content:m.a.string.isRequired,onChange:m.a.func.isRequired,onBlur:m.a.func,replacementVariables:X,recommendedReplacementVariables:Z,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},Yt.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 Qt,Xt=Yt;var Zt=Q.a.section(Qt||(Qt=I()(["\n\tpadding: ",";\n"])),(function(t){return t.padding?t.padding:"0 20px"})),te=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,l=t.fieldIds,h=t.labels,p=t.hasNewBadge,d=t.isDisabled,v=t.hasPremiumBadge;return Object(_.createElement)(Zt,{padding:f},Object(_.createElement)(Xt,{type:"title",label:h.title||Object(S.__)("SEO title","yoast-components"),onFocus:this.onFocusTitle,onBlur:u,isActive:"title"===n,isHovered:"title"===r,editorRef:this.setTitleRef,replacementVariables:i,recommendedReplacementVariables:o,content:a,onChange:this.onChangeTitle,fieldId:l.title,hasNewBadge:p,isDisabled:d,hasPremiumBadge:v}),Object(_.createElement)(Xt,{type:"description",placeholder:e,label:h.description||Object(S.__)("Meta description","yoast-components"),onFocus:this.onFocusDescription,onBlur:u,isActive:"description"===n,isHovered:"description"===r,editorRef:this.setDescriptionRef,replacementVariables:i,recommendedReplacementVariables:o,content:c,onChange:this.onChangeDescription,fieldId:l.description,hasNewBadge:p,isDisabled:d,hasPremiumBadge:v}))}}]),o}(y.a.Component);te.propTypes={replacementVariables:X,recommendedReplacementVariables:Z,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},te.defaultProps={replacementVariables:[],onFocus:function(){},onBlur:function(){},containerPadding:"0 20px",descriptionEditorFieldPlaceholder:null,labels:{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1};var ee=te;var ne=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,l=this.state,h=l.activeField,p=l.hoveredField;return Object(_.createElement)(Wt.ErrorBoundary,null,Object(_.createElement)(ee,{descriptionEditorFieldPlaceholder:i,data:e,activeField:h,hoveredField:p,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);ne.propTypes={replacementVariables:X,recommendedReplacementVariables:Z,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},ne.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],hasPaperStyle:!0,descriptionEditorFieldPlaceholder:null,labels:{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1};var re=ne},75:function(t,e,n){var r=n(51);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},76: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},77: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},8: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},87:function(t,e){t.exports=window.lodash.uniqueId},9:function(t,e){function n(t,e){for(var n=0;n