1import{b as zu,c as Jm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-X4ETO7DD.js";import{a as Ru,b as Wm,k as Bo,n as zn,w as Xm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-PQ5PMIBL.js";import{d as qu,f as Vt,i as Do,q as Pu,x as Un}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-7SWECSNK.js";import{a as Uu,b as $m,c as Vr,d as Gm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-LQBZ6M4P.js";import{a as Wu,g as Ym}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-4KGDKEAA.js";import{a as Wt}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-YHRL57DV.js";import{b as Tu,c as Pm,d as Ge,g as Ou,h as Lu}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-P7QYVZOR.js";import{k as Pn,l as zm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-XBRQTDVM.js";import{B as fr,D as Um,c as Ku,s as _o}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-FWXVQ7GR.js";import{c as Co,d as qn,f as xo,i as Iu}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-WH4NSP3L.js";import{n as Wr,o as At,r as Nu,v as Vm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-JSMY6PMS.js";import{a as Ve,j as wo,k as jm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-P64QW3CS.js";import{D as Ft,F as dr}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-TPYLDRXG.js";import{a as Ne}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-DHPKJP35.js";import{a as gr,b as Hm}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-Y2RO3SBO.js";import{b as pr,c as Mu}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-G6QWTGSD.js";import{a as pe,b as x,d as zt}from"https://st-p.rmcdn1.net/5f7ff697/dist/c/c-PIJB5DBS.js";var ko,Vu,_1,C1,x1,Hu=pe(()=>{"use strict";ko="listStyle",Vu="ordered-key",_1="default-list-style",C1={"unordered-list-item":{element:"li"},"ordered-list-item":{element:"li"}},x1={"unordered-list-item":{label:"Unordered list",style:` 2 .unordered-list-item { 3 padding: 0; 4 margin: 0; 5 list-style-type: none; 6 } 7 8 .unordered-list-item div[data-offset-key]:before, 9 .unordered-list-item > li:before { 10 white-space: nowrap; 11 content: "\u2022\\00a0"; 12 } 13 `},"ordered-list-item":{label:"Ordered list",style:` 14 .ordered-list-item { 15 padding: 0; 16 margin: 0; 17 list-style-type: none; 18 } 19 20 .ordered-list-item div[data-offset-key]:before, 21 .ordered-list-item > li:before { 22 white-space: nowrap; 23 counter-increment: ${Vu}; 24 content: counter(${Vu})"."; 25 } 26 `}}});var hr,D1,Wn=pe(()=>{"use strict";hr="align",D1={"align-left":{label:"Left",style:".align-left { text-align: left !important; }"},"align-center":{label:"Center",style:".align-center { text-align: center !important; }"},"align-right":{label:"Right",style:".align-right { text-align: right !important; }"},"align-justify":{label:"Justify",style:`.align-justify { 27 text-align: justify !important; 28 ${typeof Modernizr<"u"&&(Modernizr.safari||Modernizr.firefox)?"white-space: normal !important;":""} 29 }`}}});var Gu=x((k1,$u)=>{"use strict";function Zm(e,t){for(;e.length<t;)e="0"+e;return e}function gt(e,t){var r,i,n;if(t.length===0)return e;for(r=0,n=t.length;r<n;r++)i=t.charCodeAt(r),e=(e<<5)-e+i,e|=0;return e<0?e*-2:e}function Qm(e,t,r){return Object.keys(t).sort().reduce(i,e);function i(n,a){return ju(n,t[a],a,r)}}function ju(e,t,r,i){var n=gt(gt(gt(e,r),eS(t)),typeof t);if(t===null)return gt(n,"null");if(t===void 0)return gt(n,"undefined");if(typeof t=="object"||typeof t=="function"){if(i.indexOf(t)!==-1)return gt(n,"[Circular]"+r);i.push(t);var a=Qm(n,t,i);if(!("valueOf"in t)||typeof t.valueOf!="function")return a;try{return gt(a,String(t.valueOf()))}catch(u){return gt(a,"[valueOf exception]"+(u.stack||u.message))}}return gt(n,t.toString())}function eS(e){return Object.prototype.toString.call(e)}function tS(e){return Zm(ju(0,e,"",[]).toString(16),8)}$u.exports=tS});var re=x((Ao,Fo)=>{"use strict";(function(e,t){typeof Ao=="object"&&typeof Fo<"u"?Fo.exports=t():typeof define=="function"&&define.amd?define(t):e.Immutable=t()})(Ao,function(){"use strict";var e=Array.prototype.slice;function t(o,s){s&&(o.prototype=Object.create(s.prototype)),o.prototype.constructor=o}function r(o){return u(o)?o:ge(o)}t(i,r);function i(o){return c(o)?o:ze(o)}t(n,r);function n(o){return l(o)?o:he(o)}t(a,r);
vendor: 89,958 bytes, lines 29-31
29function a(o){return u(o)&&!g(o)?o:Xe(o)}function u(o){return!!(o&&o[y])}function c(o){return!!(o&&o[v])}function l(o){return!!(o&&o[S])}function g(o){return c(o)||l(o)}function d(o){return!!(o&&o[_])}r.isIterable=u,r.isKeyed=c,r.isIndexed=l,r.isAssociative=g,r.isOrdered=d,r.Keyed=i,r.Indexed=n,r.Set=a;var y="@@__IMMUTABLE_ITERABLE__@@",v="@@__IMMUTABLE_KEYED__@@",S="@@__IMMUTABLE_INDEXED__@@",_="@@__IMMUTABLE_ORDERED__@@",A="delete",B=5,w=1<<B,k=w-1,b={},O={value:!1},N={value:!1};function q(o){return o.value=!1,o}function K(o){o&&(o.value=!0)}function V(){}function U(o,s){s=s||0;for(var f=Math.max(0,o.length-s),p=new Array(f),h=0;h<f;h++)p[h]=o[h+s];return p}function j(o){return o.size===void 0&&(o.size=o.__iterate(Q)),o.size}function J(o,s){if(typeof s!="number"){var f=s>>>0;if(""+f!==s||f===4294967295)return NaN;s=f}return s<0?j(o)+s:s}function Q(){return!0}function I(o,s,f){return(o===0||f!==void 0&&o<=-f)&&(s===void 0||f!==void 0&&s>=f)}function z(o,s){return Y(o,s,0)}function L(o,s){return Y(o,s,s)}function Y(o,s,f){return o===void 0?f:o<0?Math.max(0,s+o):s===void 0?o:Math.min(s,o)}var X=0,oe=1,H=2,Ee=typeof Symbol=="function"&&Symbol.iterator,de="@@iterator",Oe=Ee||de;function Z(o){this.next=o}Z.prototype.toString=function(){return"[Iterator]"},Z.KEYS=X,Z.VALUES=oe,Z.ENTRIES=H,Z.prototype.inspect=Z.prototype.toSource=function(){return this.toString()},Z.prototype[Oe]=function(){return this};function ae(o,s,f,p){var h=o===0?s:o===1?f:[s,f];return p?p.value=h:p={value:h,done:!1},p}function _e(){return{value:void 0,done:!0}}function Bn(o){return!!pt(o)}function xt(o){return o&&typeof o.next=="function"}function Le(o){var s=pt(o);return s&&s.call(o)}function pt(o){var s=o&&(Ee&&o[Ee]||o[de]);if(typeof s=="function")return s}function Or(o){return o&&typeof o.length=="number"}t(ge,r);function ge(o){return o==null?kn():u(o)?o.toSeq():fm(o)}ge.of=function(){return ge(arguments)},ge.prototype.toSeq=function(){return this},ge.prototype.toString=function(){return this.__toString("Seq {","}")},ge.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},ge.prototype.__iterate=function(o,s){return Is(this,o,s,!0)},ge.prototype.__iterator=function(o,s){return Rs(this,o,s,!0)},t(ze,ge);function ze(o){return o==null?kn().toKeyedSeq():u(o)?c(o)?o.toSeq():o.fromEntrySeq():Ks(o)}ze.prototype.toKeyedSeq=function(){return this},t(he,ge);function he(o){return o==null?kn():u(o)?c(o)?o.entrySeq():o.toIndexedSeq():zi(o)}he.of=function(){return he(arguments)},he.prototype.toIndexedSeq=function(){return this},he.prototype.toString=function(){return this.__toString("Seq [","]")},he.prototype.__iterate=function(o,s){return Is(this,o,s,!1)},he.prototype.__iterator=function(o,s){return Rs(this,o,s,!1)},t(Xe,ge);function Xe(o){return(o==null?kn():u(o)?c(o)?o.entrySeq():o:zi(o)).toSetSeq()}Xe.of=function(){return Xe(arguments)},Xe.prototype.toSetSeq=function(){return this},ge.isSeq=Ui,ge.Keyed=ze,ge.Set=Xe,ge.Indexed=he;var Os="@@__IMMUTABLE_SEQ__@@";ge.prototype[Os]=!0,t(Ze,he);function Ze(o){this._array=o,this.size=o.length}Ze.prototype.get=function(o,s){return this.has(o)?this._array[J(this,o)]:s},Ze.prototype.__iterate=function(o,s){for(var f=this._array,p=f.length-1,h=0;h<=p;h++)if(o(f[s?p-h:h],h,this)===!1)return h+1;return h},Ze.prototype.__iterator=function(o,s){var f=this._array,p=f.length-1,h=0;return new Z(function(){return h>p?_e():ae(o,h,f[s?p-h++:h++])})},t(wt,ze);function wt(o){var s=Object.keys(o);this._object=o,this._keys=s,this.size=s.length}wt.prototype.get=function(o,s){return s!==void 0&&!this.has(o)?s:this._object[o]},wt.prototype.has=function(o){return this._object.hasOwnProperty(o)},wt.prototype.__iterate=function(o,s){for(var f=this._object,p=this._keys,h=p.length-1,m=0;m<=h;m++){var E=p[s?h-m:m];if(o(f[E],E,this)===!1)return m+1}return m},wt.prototype.__iterator=function(o,s){var f=this._object,p=this._keys,h=p.length-1,m=0;return new Z(function(){var E=p[s?h-m:m];return m++>h?_e():ae(o,E,f[E])})},wt.prototype[_]=!0,t(Lr,he);function Lr(o){this._iterable=o,this.size=o.length||o.size}Lr.prototype.__iterateUncached=function(o,s){if(s)return this.cacheResult().__iterate(o,s);var f=this._iterable,p=Le(f),h=0;if(xt(p))for(var m;!(m=p.next()).done&&o(m.value,h++,this)!==!1;);return h},Lr.prototype.__iteratorUncached=function(o,s){if(s)return this.cacheResult().__iterator(o,s);var f=this._iterable,p=Le(f);if(!xt(p))return new Z(_e);var h=0;return new Z(function(){var m=p.next();return m.done?m:ae(o,h++,m.value)})},t(Kr,he);function Kr(o){this._iterator=o,this._iteratorCache=[]}Kr.prototype.__iterateUncached=function(o,s){if(s)return this.cacheResult().__iterate(o,s);for(var f=this._iterator,p=this._iteratorCache,h=0;h<p.length;)if(o(p[h],h++,this)===!1)return h;for(var m;!(m=f.next()).done;){var E=m.value;if(p[h]=E,o(E,h++,this)===!1)break}return h},Kr.prototype.__iteratorUncached=function(o,s){if(s)return this.cacheResult().__iterator(o,s);var f=this._iterator,p=this._iteratorCache,h=0;return new Z(function(){if(h>=p.length){var m=f.next();if(m.done)return m;p[h]=m.value}return ae(o,h,p[h++])})};function Ui(o){return!!(o&&o[Os])}var Ls;function kn(){return Ls||(Ls=new Ze([]))}function Ks(o){var s=Array.isArray(o)?new Ze(o).fromEntrySeq():xt(o)?new Kr(o).fromEntrySeq():Bn(o)?new Lr(o).fromEntrySeq():typeof o=="object"?new wt(o):void 0;if(!s)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+o);return s}function zi(o){var s=Ms(o);if(!s)throw new TypeError("Expected Array or iterable object of values: "+o);return s}function fm(o){var s=Ms(o)||typeof o=="object"&&new wt(o);if(!s)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+o);return s}function Ms(o){return Or(o)?new Ze(o):xt(o)?new Kr(o):Bn(o)?new Lr(o):void 0}function Is(o,s,f,p){var h=o._cache;if(h){for(var m=h.length-1,E=0;E<=m;E++){var C=h[f?m-E:E];if(s(C[1],p?C[0]:E,o)===!1)return E+1}return E}return o.__iterateUncached(s,f)}function Rs(o,s,f,p){var h=o._cache;if(h){var m=h.length-1,E=0;return new Z(function(){var C=h[f?m-E:E];return E++>m?_e():ae(s,p?C[0]:E-1,C[1])})}return o.__iteratorUncached(s,f)}function Wi(o,s){return s?Vi(s,o,"",{"":o}):Hi(o)}function Vi(o,s,f,p){return Array.isArray(s)?o.call(p,f,he(s).map(function(h,m){return Vi(o,h,m,s)})):Ns(s)?o.call(p,f,ze(s).map(function(h,m){return Vi(o,h,m,s)})):s}function Hi(o){return Array.isArray(o)?he(o).map(Hi).toList():Ns(o)?ze(o).map(Hi).toMap():o}function Ns(o){return o&&(o.constructor===Object||o.constructor===void 0)}function ve(o,s){if(o===s||o!==o&&s!==s)return!0;if(!o||!s)return!1;if(typeof o.valueOf=="function"&&typeof s.valueOf=="function"){if(o=o.valueOf(),s=s.valueOf(),o===s||o!==o&&s!==s)return!0;if(!o||!s)return!1}return!!(typeof o.equals=="function"&&typeof s.equals=="function"&&o.equals(s))}function ji(o,s){if(o===s)return!0;if(!u(s)||o.size!==void 0&&s.size!==void 0&&o.size!==s.size||o.__hash!==void 0&&s.__hash!==void 0&&o.__hash!==s.__hash||c(o)!==c(s)||l(o)!==l(s)||d(o)!==d(s))return!1;if(o.size===0&&s.size===0)return!0;var f=!g(o);if(d(o)){var p=o.entries();return s.every(function(D,F){var T=p.next().value;return T&&ve(T[1],D)&&(f||ve(T[0],F))})&&p.next().done}var h=!1;if(o.size===void 0)if(s.size===void 0)typeof o.cacheResult=="function"&&o.cacheResult();else{h=!0;var m=o;o=s,s=m}var E=!0,C=s.__iterate(function(D,F){if(f?!o.has(D):h?!ve(D,o.get(F,b)):!ve(o.get(F,b),D))return E=!1,!1});return E&&o.size===C}t(we,he);function we(o,s){if(!(this instanceof we))return new we(o,s);if(this._value=o,this.size=s===void 0?1/0:Math.max(0,s),this.size===0){if($i)return $i;$i=this}}we.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},we.prototype.get=function(o,s){return this.has(o)?this._value:s},we.prototype.includes=function(o){return ve(this._value,o)},we.prototype.slice=function(o,s){var f=this.size;return I(o,s,f)?this:new we(this._value,L(s,f)-z(o,f))},we.prototype.reverse=function(){return this},we.prototype.indexOf=function(o){return ve(this._value,o)?0:-1},we.prototype.lastIndexOf=function(o){return ve(this._value,o)?this.size:-1},we.prototype.__iterate=function(o,s){for(var f=0;f<this.size;f++)if(o(this._value,f,this)===!1)return f+1;return f},we.prototype.__iterator=function(o,s){var f=this,p=0;return new Z(function(){return p<f.size?ae(o,p++,f._value):_e()})},we.prototype.equals=function(o){return o instanceof we?ve(this._value,o._value):ji(o)};var $i;function An(o,s){if(!o)throw new Error(s)}t(De,he);function De(o,s,f){if(!(this instanceof De))return new De(o,s,f);if(An(f!==0,"Cannot step a Range by 0"),o=o||0,s===void 0&&(s=1/0),f=f===void 0?1:Math.abs(f),s<o&&(f=-f),this._start=o,this._end=s,this._step=f,this.size=Math.max(0,Math.ceil((s-o)/f-1)+1),this.size===0){if(Gi)return Gi;Gi=this}}De.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},De.prototype.get=function(o,s){return this.has(o)?this._start+J(this,o)*this._step:s},De.prototype.includes=function(o){var s=(o-this._start)/this._step;return s>=0&&s<this.size&&s===Math.floor(s)},De.prototype.slice=function(o,s){return I(o,s,this.size)?this:(o=z(o,this.size),s=L(s,this.size),s<=o?new De(0,0):new De(this.get(o,this._end),this.get(s,this._end),this._step))},De.prototype.indexOf=function(o){var s=o-this._start;if(s%this._step===0){var f=s/this._step;if(f>=0&&f<this.size)return f}return-1},De.prototype.lastIndexOf=function(o){return this.indexOf(o)},De.prototype.__iterate=function(o,s){for(var f=this.size-1,p=this._step,h=s?this._start+f*p:this._start,m=0;m<=f;m++){if(o(h,m,this)===!1)return m+1;h+=s?-p:p}return m},De.prototype.__iterator=function(o,s){var f=this.size-1,p=this._step,h=s?this._start+f*p:this._start,m=0;return new Z(function(){var E=h;return h+=s?-p:p,m>f?_e():ae(o,m++,E)})},De.prototype.equals=function(o){return o instanceof De?this._start===o._start&&this._end===o._end&&this._step===o._step:ji(this,o)};var Gi;t(Dt,r);function Dt(){throw TypeError("Abstract")}t(Mr,Dt);function Mr(){}t(rr,Dt);function rr(){}t(Fn,Dt);function Fn(){}Dt.Keyed=Mr,Dt.Indexed=rr,Dt.Set=Fn;var Ir=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(s,f){s=s|0,f=f|0;var p=s&65535,h=f&65535;return p*h+((s>>>16)*h+p*(f>>>16)<<16>>>0)|0};function Ji(o){return o>>>1&1073741824|o&3221225471}function Ke(o){if(o===!1||o===null||o===void 0||typeof o.valueOf=="function"&&(o=o.valueOf(),o===!1||o===null||o===void 0))return 0;if(o===!0)return 1;var s=typeof o;if(s==="number"){var f=o|0;for(f!==o&&(f^=o*4294967295);o>4294967295;)o/=4294967295,f^=o;return Ji(f)}if(s==="string")return o.length>hm?pm(o):Yi(o);if(typeof o.hashCode=="function")return o.hashCode();if(s==="object")return dm(o);if(typeof o.toString=="function")return Yi(o.toString());throw new Error("Value type "+s+" cannot be hashed.")}function pm(o){var s=to[o];return s===void 0&&(s=Yi(o),eo===vm&&(eo=0,to={}),eo++,to[o]=s),s}function Yi(o){for(var s=0,f=0;f<o.length;f++)s=31*s+o.charCodeAt(f)|0;return Ji(s)}function dm(o){var s;if(Xi&&(s=Zi.get(o),s!==void 0)||(s=o[Ut],s!==void 0)||!Ps&&(s=o.propertyIsEnumerable&&o.propertyIsEnumerable[Ut],s!==void 0||(s=gm(o),s!==void 0)))return s;if(s=++Qi,Qi&1073741824&&(Qi=0),Xi)Zi.set(o,s);else{if(qs!==void 0&&qs(o)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Ps)Object.defineProperty(o,Ut,{enumerable:!1,configurable:!1,writable:!1,value:s});else if(o.propertyIsEnumerable!==void 0&&o.propertyIsEnumerable===o.constructor.prototype.propertyIsEnumerable)o.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},o.propertyIsEnumerable[Ut]=s;else if(o.nodeType!==void 0)o[Ut]=s;else throw new Error("Unable to set a non-enumerable property on object.")}return s}var qs=Object.isExtensible,Ps=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function gm(o){if(o&&o.nodeType>0)switch(o.nodeType){case 1:return o.uniqueID;case 9:return o.documentElement&&o.documentElement.uniqueID}}var Xi=typeof WeakMap=="function",Zi;Xi&&(Zi=new WeakMap);var Qi=0,Ut="__immutablehash__";typeof Symbol=="function"&&(Ut=Symbol(Ut));var hm=16,vm=255,eo=0,to={};function Me(o){An(o!==1/0,"Cannot perform this action with an infinite size.")}t(ne,Mr);function ne(o){return o==null?Qe():ro(o)&&!d(o)?o:Qe().withMutations(function(s){var f=i(o);Me(f.size),f.forEach(function(p,h){return s.set(h,p)})})}ne.prototype.toString=function(){return this.__toString("Map {","}")},ne.prototype.get=function(o,s){return this._root?this._root.get(0,void 0,o,s):s},ne.prototype.set=function(o,s){return Vs(this,o,s)},ne.prototype.setIn=function(o,s){return this.updateIn(o,b,function(){return s})},ne.prototype.remove=function(o){return Vs(this,o,b)},ne.prototype.deleteIn=function(o){return this.updateIn(o,function(){return b})},ne.prototype.update=function(o,s,f){return arguments.length===1?o(this):this.updateIn([o],s,f)},ne.prototype.updateIn=function(o,s,f){f||(f=s,s=void 0);var p=Js(this,vu(o),s,f);return p===b?void 0:p},ne.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Qe()},ne.prototype.merge=function(){return bn(this,void 0,arguments)},ne.prototype.mergeWith=function(o){var s=e.call(arguments,1);return bn(this,o,s)},ne.prototype.mergeIn=function(o){var s=e.call(arguments,1);return this.updateIn(o,Qe(),function(f){return typeof f.merge=="function"?f.merge.apply(f,s):s[s.length-1]})},ne.prototype.mergeDeep=function(){return bn(this,js,arguments)},ne.prototype.mergeDeepWith=function(o){var s=e.call(arguments,1);return bn(this,$s(o),s)},ne.prototype.mergeDeepIn=function(o){var s=e.call(arguments,1);return this.updateIn(o,Qe(),function(f){return typeof f.mergeDeep=="function"?f.mergeDeep.apply(f,s):s[s.length-1]})},ne.prototype.sort=function(o){return ye(cr(this,o))},ne.prototype.sortBy=function(o,s){return ye(cr(this,s,o))},ne.prototype.withMutations=function(o){var s=this.asMutable();return o(s),s.wasAltered()?s.__ensureOwner(this.__ownerID):this},ne.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new V)},ne.prototype.asImmutable=function(){return this.__ensureOwner()},ne.prototype.wasAltered=function(){return this.__altered},ne.prototype.__iterator=function(o,s){return new no(this,o,s)},ne.prototype.__iterate=function(o,s){var f=this,p=0;return this._root&&this._root.iterate(function(h){return p++,o(h[1],h[0],f)},s),p},ne.prototype.__ensureOwner=function(o){return o===this.__ownerID?this:o?oo(this.size,this._root,o,this.__hash):(this.__ownerID=o,this.__altered=!1,this)};function ro(o){return!!(o&&o[Us])}ne.isMap=ro;var Us="@@__IMMUTABLE_MAP__@@",te=ne.prototype;te[Us]=!0,te[A]=te.remove,te.removeIn=te.deleteIn;function Rr(o,s){this.ownerID=o,this.entries=s}Rr.prototype.get=function(o,s,f,p){for(var h=this.entries,m=0,E=h.length;m<E;m++)if(ve(f,h[m][0]))return h[m][1];return p},Rr.prototype.update=function(o,s,f,p,h,m,E){for(var C=h===b,D=this.entries,F=0,T=D.length;F<T&&!ve(p,D[F][0]);F++);var M=F<T;if(M?D[F][1]===h:C)return this;if(K(E),(C||!M)&&K(m),!(C&&D.length===1)){if(!M&&!C&&D.length>=Cm)return ym(o,D,p,h);var R=o&&o===this.ownerID,G=R?D:U(D);return M?C?F===T-1?G.pop():G[F]=G.pop():G[F]=[p,h]:G.push([p,h]),R?(this.entries=G,this):new Rr(o,G)}};function nr(o,s,f){this.ownerID=o,this.bitmap=s,this.nodes=f}nr.prototype.get=function(o,s,f,p){s===void 0&&(s=Ke(f));var h=1<<((o===0?s:s>>>o)&k),m=this.bitmap;return m&h?this.nodes[Ys(m&h-1)].get(o+B,s,f,p):p},nr.prototype.update=function(o,s,f,p,h,m,E){f===void 0&&(f=Ke(p));var C=(s===0?f:f>>>s)&k,D=1<<C,F=this.bitmap,T=(F&D)!==0;if(!T&&h===b)return this;var M=Ys(F&D-1),R=this.nodes,G=T?R[M]:void 0,ee=ao(G,o,s+B,f,p,h,m,E);if(ee===G)return this;if(!T&&ee&&R.length>=xm)return Sm(o,R,F,C,ee);if(T&&!ee&&R.length===2&&Hs(R[M^1]))return R[M^1];if(T&&ee&&R.length===1&&Hs(ee))return ee;var fe=o&&o===this.ownerID,$e=T?ee?F:F^D:F|D,nt=T?ee?Xs(R,M,ee,fe):_m(R,M,fe):Em(R,M,ee,fe);return fe?(this.bitmap=$e,this.nodes=nt,this):new nr(o,$e,nt)};function Nr(o,s,f){this.ownerID=o,this.count=s,this.nodes=f}Nr.prototype.get=function(o,s,f,p){s===void 0&&(s=Ke(f));var h=(o===0?s:s>>>o)&k,m=this.nodes[h];return m?m.get(o+B,s,f,p):p},Nr.prototype.update=function(o,s,f,p,h,m,E){f===void 0&&(f=Ke(p));var C=(s===0?f:f>>>s)&k,D=h===b,F=this.nodes,T=F[C];if(D&&!T)return this;var M=ao(T,o,s+B,f,p,h,m,E);if(M===T)return this;var R=this.count;if(!T)R++;else if(!M&&(R--,R<wm))return mm(o,F,R,C);var G=o&&o===this.ownerID,ee=Xs(F,C,M,G);return G?(this.count=R,this.nodes=ee,this):new Nr(o,R,ee)};function ir(o,s,f){this.ownerID=o,this.keyHash=s,this.entries=f}ir.prototype.get=function(o,s,f,p){for(var h=this.entries,m=0,E=h.length;m<E;m++)if(ve(f,h[m][0]))return h[m][1];return p},ir.prototype.update=function(o,s,f,p,h,m,E){f===void 0&&(f=Ke(p));var C=h===b;if(f!==this.keyHash)return C?this:(K(E),K(m),so(this,o,s,f,[p,h]));for(var D=this.entries,F=0,T=D.length;F<T&&!ve(p,D[F][0]);F++);var M=F<T;if(M?D[F][1]===h:C)return this;if(K(E),(C||!M)&&K(m),C&&T===2)return new dt(o,this.keyHash,D[F^1]);var R=o&&o===this.ownerID,G=R?D:U(D);return M?C?F===T-1?G.pop():G[F]=G.pop():G[F]=[p,h]:G.push([p,h]),R?(this.entries=G,this):new ir(o,this.keyHash,G)};function dt(o,s,f){this.ownerID=o,this.keyHash=s,this.entry=f}dt.prototype.get=function(o,s,f,p){return ve(f,this.entry[0])?this.entry[1]:p},dt.prototype.update=function(o,s,f,p,h,m,E){var C=h===b,D=ve(p,this.entry[0]);if(D?h===this.entry[1]:C)return this;if(K(E),C){K(m);return}return D?o&&o===this.ownerID?(this.entry[1]=h,this):new dt(o,this.keyHash,[p,h]):(K(m),so(this,o,s,Ke(p),[p,h]))},Rr.prototype.iterate=ir.prototype.iterate=function(o,s){for(var f=this.entries,p=0,h=f.length-1;p<=h;p++)if(o(f[s?h-p:p])===!1)return!1},nr.prototype.iterate=Nr.prototype.iterate=function(o,s){for(var f=this.nodes,p=0,h=f.length-1;p<=h;p++){var m=f[s?h-p:p];if(m&&m.iterate(o,s)===!1)return!1}},dt.prototype.iterate=function(o,s){return o(this.entry)},t(no,Z);function no(o,s,f){this._type=s,this._reverse=f,this._stack=o._root&&zs(o._root)}no.prototype.next=function(){for(var o=this._type,s=this._stack;s;){var f=s.node,p=s.index++,h;if(f.entry){if(p===0)return io(o,f.entry)}else if(f.entries){if(h=f.entries.length-1,p<=h)return io(o,f.entries[this._reverse?h-p:p])}else if(h=f.nodes.length-1,p<=h){var m=f.nodes[this._reverse?h-p:p];if(m){if(m.entry)return io(o,m.entry);s=this._stack=zs(m,s)}continue}s=this._stack=this._stack.__prev}return _e()};function io(o,s){return ae(o,s[0],s[1])}function zs(o,s){return{node:o,index:0,__prev:s}}function oo(o,s,f,p){var h=Object.create(te);return h.size=o,h._root=s,h.__ownerID=f,h.__hash=p,h.__altered=!1,h}var Ws;function Qe(){return Ws||(Ws=oo(0))}function Vs(o,s,f){var p,h;if(o._root){var m=q(O),E=q(N);if(p=ao(o._root,o.__ownerID,0,void 0,s,f,m,E),!E.value)return o;h=o.size+(m.value?f===b?-1:1:0)}else{if(f===b)return o;h=1,p=new Rr(o.__ownerID,[[s,f]])}return o.__ownerID?(o.size=h,o._root=p,o.__hash=void 0,o.__altered=!0,o):p?oo(h,p):Qe()}function ao(o,s,f,p,h,m,E,C){return o?o.update(s,f,p,h,m,E,C):m===b?o:(K(C),K(E),new dt(s,p,[h,m]))}function Hs(o){return o.constructor===dt||o.constructor===ir}function so(o,s,f,p,h){if(o.keyHash===p)return new ir(s,p,[o.entry,h]);var m=(f===0?o.keyHash:o.keyHash>>>f)&k,E=(f===0?p:p>>>f)&k,C,D=m===E?[so(o,s,f+B,p,h)]:(C=new dt(s,p,h),m<E?[o,C]:[C,o]);return new nr(s,1<<m|1<<E,D)}function ym(o,s,f,p){o||(o=new V);for(var h=new dt(o,Ke(f),[f,p]),m=0;m<s.length;m++){var E=s[m];h=h.update(o,0,void 0,E[0],E[1])}return h}function mm(o,s,f,p){for(var h=0,m=0,E=new Array(f),C=0,D=1,F=s.length;C<F;C++,D<<=1){var T=s[C];T!==void 0&&C!==p&&(h|=D,E[m++]=T)}return new nr(o,h,E)}function Sm(o,s,f,p,h){for(var m=0,E=new Array(w),C=0;f!==0;C++,f>>>=1)E[C]=f&1?s[m++]:void 0;return E[p]=h,new Nr(o,m+1,E)}function bn(o,s,f){for(var p=[],h=0;h<f.length;h++){var m=f[h],E=i(m);u(m)||(E=E.map(function(C){return Wi(C)})),p.push(E)}return Gs(o,s,p)}function js(o,s,f){return o&&o.mergeDeep&&u(s)?o.mergeDeep(s):ve(o,s)?o:s}function $s(o){return function(s,f,p){if(s&&s.mergeDeepWith&&u(f))return s.mergeDeepWith(o,f);var h=o(s,f,p);return ve(s,h)?s:h}}function Gs(o,s,f){return f=f.filter(function(p){return p.size!==0}),f.length===0?o:o.size===0&&!o.__ownerID&&f.length===1?o.constructor(f[0]):o.withMutations(function(p){for(var h=s?function(E,C){p.update(C,b,function(D){return D===b?E:s(D,E,C)})}:function(E,C){p.set(C,E)},m=0;m<f.length;m++)f[m].forEach(h)})}function Js(o,s,f,p){var h=o===b,m=s.next();if(m.done){var E=h?f:o,C=p(E);return C===E?o:C}An(h||o&&o.set,"invalid keyPath");var D=m.value,F=h?b:o.get(D,b),T=Js(F,s,f,p);return T===F?o:T===b?o.remove(D):(h?Qe():o).set(D,T)}function Ys(o){return o=o-(o>>1&1431655765),o=(o&858993459)+(o>>2&858993459),o=o+(o>>4)&252645135,o=o+(o>>8),o=o+(o>>16),o&127}function Xs(o,s,f,p){var h=p?o:U(o);return h[s]=f,h}function Em(o,s,f,p){var h=o.length+1;if(p&&s+1===h)return o[s]=f,o;for(var m=new Array(h),E=0,C=0;C<h;C++)C===s?(m[C]=f,E=-1):m[C]=o[C+E];return m}function _m(o,s,f){var p=o.length-1;if(f&&s===p)return o.pop(),o;for(var h=new Array(p),m=0,E=0;E<p;E++)E===s&&(m=1),h[E]=o[E+m];return h}var Cm=w/4,xm=w/2,wm=w/4;t(ce,rr);function ce(o){var s=uo();if(o==null)return s;if(Zs(o))return o;var f=n(o),p=f.size;return p===0?s:(Me(p),p>0&&p<w?Pr(0,p,B,null,new Bt(f.toArray())):s.withMutations(function(h){h.setSize(p),f.forEach(function(m,E){return h.set(E,m)})}))}ce.of=function(){return this(arguments)},ce.prototype.toString=function(){return this.__toString("List [","]")},ce.prototype.get=function(o,s){if(o=J(this,o),o>=0&&o<this.size){o+=this._origin;var f=ru(this,o);return f&&f.array[o&k]}return s},ce.prototype.set=function(o,s){return Dm(this,o,s)},ce.prototype.remove=function(o){return this.has(o)?o===0?this.shift():o===this.size-1?this.pop():this.splice(o,1):this},ce.prototype.insert=function(o,s){return this.splice(o,0,s)},ce.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=B,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):uo()},ce.prototype.push=function(){var o=arguments,s=this.size;return this.withMutations(function(f){kt(f,0,s+o.length);for(var p=0;p<o.length;p++)f.set(s+p,o[p])})},ce.prototype.pop=function(){return kt(this,0,-1)},ce.prototype.unshift=function(){var o=arguments;return this.withMutations(function(s){kt(s,-o.length);for(var f=0;f<o.length;f++)s.set(f,o[f])})},ce.prototype.shift=function(){return kt(this,1)},ce.prototype.merge=function(){return Tn(this,void 0,arguments)},ce.prototype.mergeWith=function(o){var s=e.call(arguments,1);return Tn(this,o,s)},ce.prototype.mergeDeep=function(){return Tn(this,js,arguments)},ce.prototype.mergeDeepWith=function(o){var s=e.call(arguments,1);return Tn(this,$s(o),s)},ce.prototype.setSize=function(o){return kt(this,0,o)},ce.prototype.slice=function(o,s){var f=this.size;return I(o,s,f)?this:kt(this,z(o,f),L(s,f))},ce.prototype.__iterator=function(o,s){var f=0,p=eu(this,s);return new Z(function(){var h=p();return h===qr?_e():ae(o,f++,h)})},ce.prototype.__iterate=function(o,s){for(var f=0,p=eu(this,s),h;(h=p())!==qr&&o(h,f++,this)!==!1;);return f},ce.prototype.__ensureOwner=function(o){return o===this.__ownerID?this:o?Pr(this._origin,this._capacity,this._level,this._root,this._tail,o,this.__hash):(this.__ownerID=o,this)};function Zs(o){return!!(o&&o[Qs])}ce.isList=Zs;var Qs="@@__IMMUTABLE_LIST__@@",ke=ce.prototype;ke[Qs]=!0,ke[A]=ke.remove,ke.setIn=te.setIn,ke.deleteIn=ke.removeIn=te.removeIn,ke.update=te.update,ke.updateIn=te.updateIn,ke.mergeIn=te.mergeIn,ke.mergeDeepIn=te.mergeDeepIn,ke.withMutations=te.withMutations,ke.asMutable=te.asMutable,ke.asImmutable=te.asImmutable,ke.wasAltered=te.wasAltered;function Bt(o,s){this.array=o,this.ownerID=s}Bt.prototype.removeBefore=function(o,s,f){if(f===s?1<<s:this.array.length===0)return this;var p=f>>>s&k;if(p>=this.array.length)return new Bt([],o);var h=p===0,m;if(s>0){var E=this.array[p];if(m=E&&E.removeBefore(o,s-B,f),m===E&&h)return this}if(h&&!m)return this;var C=or(this,o);if(!h)for(var D=0;D<p;D++)C.array[D]=void 0;return m&&(C.array[p]=m),C},Bt.prototype.removeAfter=function(o,s,f){if(f===(s?1<<s:0)||this.array.length===0)return this;var p=f-1>>>s&k;if(p>=this.array.length)return this;var h;if(s>0){var m=this.array[p];if(h=m&&m.removeAfter(o,s-B,f),h===m&&p===this.array.length-1)return this}var E=or(this,o);return E.array.splice(p+1),h&&(E.array[p]=h),E};var qr={};function eu(o,s){var f=o._origin,p=o._capacity,h=Ur(p),m=o._tail;return E(o._root,o._level,0);function E(F,T,M){return T===0?C(F,M):D(F,T,M)}function C(F,T){var M=T===h?m&&m.array:F&&F.array,R=T>f?0:f-T,G=p-T;return G>w&&(G=w),function(){if(R===G)return qr;var ee=s?--G:R++;return M&&M[ee]}}function D(F,T,M){var R,G=F&&F.array,ee=M>f?0:f-M>>T,fe=(p-M>>T)+1;return fe>w&&(fe=w),function(){do{if(R){var $e=R();if($e!==qr)return $e;R=null}if(ee===fe)return qr;var nt=s?--fe:ee++;R=E(G&&G[nt],T-B,M+(nt<<T))}while(!0)}}}function Pr(o,s,f,p,h,m,E){var C=Object.create(ke);return C.size=s-o,C._origin=o,C._capacity=s,C._level=f,C._root=p,C._tail=h,C.__ownerID=m,C.__hash=E,C.__altered=!1,C}var tu;function uo(){return tu||(tu=Pr(0,0,B))}function Dm(o,s,f){if(s=J(o,s),s!==s)return o;if(s>=o.size||s<0)return o.withMutations(function(E){s<0?kt(E,s).set(0,f):kt(E,0,s+1).set(s,f)});s+=o._origin;var p=o._tail,h=o._root,m=q(N);return s>=Ur(o._capacity)?p=co(p,o.__ownerID,0,s,f,m):h=co(h,o.__ownerID,o._level,s,f,m),m.value?o.__ownerID?(o._root=h,o._tail=p,o.__hash=void 0,o.__altered=!0,o):Pr(o._origin,o._capacity,o._level,h,p):o}function co(o,s,f,p,h,m){var E=p>>>f&k,C=o&&E<o.array.length;if(!C&&h===void 0)return o;var D;if(f>0){var F=o&&o.array[E],T=co(F,s,f-B,p,h,m);return T===F?o:(D=or(o,s),D.array[E]=T,D)}return C&&o.array[E]===h?o:(K(m),D=or(o,s),h===void 0&&E===D.array.length-1?D.array.pop():D.array[E]=h,D)}function or(o,s){return s&&o&&s===o.ownerID?o:new Bt(o?o.array.slice():[],s)}function ru(o,s){if(s>=Ur(o._capacity))return o._tail;if(s<1<<o._level+B){for(var f=o._root,p=o._level;f&&p>0;)f=f.array[s>>>p&k],p-=B;return f}}function kt(o,s,f){s!==void 0&&(s=s|0),f!==void 0&&(f=f|0);var p=o.__ownerID||new V,h=o._origin,m=o._capacity,E=h+s,C=f===void 0?m:f<0?m+f:h+f;if(E===h&&C===m)return o;if(E>=C)return o.clear();for(var D=o._level,F=o._root,T=0;E+T<0;)F=new Bt(F&&F.array.length?[void 0,F]:[],p),D+=B,T+=1<<D;T&&(E+=T,h+=T,C+=T,m+=T);for(var M=Ur(m),R=Ur(C);R>=1<<D+B;)F=new Bt(F&&F.array.length?[F]:[],p),D+=B;var G=o._tail,ee=R<M?ru(o,C-1):R>M?new Bt([],p):G;if(G&&R>M&&E<m&&G.array.length){F=or(F,p);for(var fe=F,$e=D;$e>B;$e-=B){var nt=M>>>$e&k;fe=fe.array[nt]=or(fe.array[nt],p)}fe.array[M>>>B&k]=G}if(C<m&&(ee=ee&&ee.removeAfter(p,0,C)),E>=R)E-=R,C-=R,D=B,F=null,ee=ee&&ee.removeBefore(p,0,E);else if(E>h||R<M){for(T=0;F;){var Nn=E>>>D&k;if(Nn!==R>>>D&k)break;Nn&&(T+=(1<<D)*Nn),D-=B,F=F.array[Nn]}F&&E>h&&(F=F.removeBefore(p,D,E-T)),F&&R<M&&(F=F.removeAfter(p,D,R-T)),T&&(E-=T,C-=T)}return o.__ownerID?(o.size=C-E,o._origin=E,o._capacity=C,o._level=D,o._root=F,o._tail=ee,o.__hash=void 0,o.__altered=!0,o):Pr(E,C,D,F,ee)}function Tn(o,s,f){for(var p=[],h=0,m=0;m<f.length;m++){var E=f[m],C=n(E);C.size>h&&(h=C.size),u(E)||(C=C.map(function(D){return Wi(D)})),p.push(C)}return h>o.size&&(o=o.setSize(h)),Gs(o,s,p)}function Ur(o){return o<w?0:o-1>>>B<<B}t(ye,ne);function ye(o){return o==null?On():nu(o)?o:On().withMutations(function(s){var f=i(o);Me(f.size),f.forEach(function(p,h){return s.set(h,p)})})}ye.of=function(){return this(arguments)},ye.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ye.prototype.get=function(o,s){var f=this._map.get(o);return f!==void 0?this._list.get(f)[1]:s},ye.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):On()},ye.prototype.set=function(o,s){return ou(this,o,s)},ye.prototype.remove=function(o){return ou(this,o,b)},ye.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ye.prototype.__iterate=function(o,s){var f=this;return this._list.__iterate(function(p){return p&&o(p[1],p[0],f)},s)},ye.prototype.__iterator=function(o,s){return this._list.fromEntrySeq().__iterator(o,s)},ye.prototype.__ensureOwner=function(o){if(o===this.__ownerID)return this;var s=this._map.__ensureOwner(o),f=this._list.__ensureOwner(o);return o?lo(s,f,o,this.__hash):(this.__ownerID=o,this._map=s,this._list=f,this)};function nu(o){return ro(o)&&d(o)}ye.isOrderedMap=nu,ye.prototype[_]=!0,ye.prototype[A]=ye.prototype.remove;function lo(o,s,f,p){var h=Object.create(ye.prototype);return h.size=o?o.size:0,h._map=o,h._list=s,h.__ownerID=f,h.__hash=p,h}var iu;function On(){return iu||(iu=lo(Qe(),uo()))}function ou(o,s,f){var p=o._map,h=o._list,m=p.get(s),E=m!==void 0,C,D;if(f===b){if(!E)return o;h.size>=w&&h.size>=p.size*2?(D=h.filter(function(F,T){return F!==void 0&&m!==T}),C=D.toKeyedSeq().map(function(F){return F[0]}).flip().toMap(),o.__ownerID&&(C.__ownerID=D.__ownerID=o.__ownerID)):(C=p.remove(s),D=m===h.size-1?h.pop():h.set(m,void 0))}else if(E){if(f===h.get(m)[1])return o;C=p,D=h.set(m,[s,f])}else C=p.set(s,h.size),D=h.set(h.size,[s,f]);return o.__ownerID?(o.size=C.size,o._map=C,o._list=D,o.__hash=void 0,o):lo(C,D)}t(We,ze);function We(o,s){this._iter=o,this._useKeys=s,this.size=o.size}We.prototype.get=function(o,s){return this._iter.get(o,s)},We.prototype.has=function(o){return this._iter.has(o)},We.prototype.valueSeq=function(){return this._iter.valueSeq()},We.prototype.reverse=function(){var o=this,s=fo(this,!0);return this._useKeys||(s.valueSeq=function(){return o._iter.toSeq().reverse()}),s},We.prototype.map=function(o,s){var f=this,p=su(this,o,s);return this._useKeys||(p.valueSeq=function(){return f._iter.toSeq().map(o,s)}),p},We.prototype.__iterate=function(o,s){var f=this,p;return this._iter.__iterate(this._useKeys?function(h,m){return o(h,m,f)}:(p=s?du(this):0,function(h){return o(h,s?--p:p++,f)}),s)},We.prototype.__iterator=function(o,s){if(this._useKeys)return this._iter.__iterator(o,s);var f=this._iter.__iterator(oe,s),p=s?du(this):0;return new Z(function(){var h=f.next();return h.done?h:ae(o,s?--p:p++,h.value,h)})},We.prototype[_]=!0,t(ar,he);function ar(o){this._iter=o,this.size=o.size}ar.prototype.includes=function(o){return this._iter.includes(o)},ar.prototype.__iterate=function(o,s){var f=this,p=0;return this._iter.__iterate(function(h){return o(h,p++,f)},s)},ar.prototype.__iterator=function(o,s){var f=this._iter.__iterator(oe,s),p=0;return new Z(function(){var h=f.next();return h.done?h:ae(o,p++,h.value,h)})},t(sr,Xe);function sr(o){this._iter=o,this.size=o.size}sr.prototype.has=function(o){return this._iter.includes(o)},sr.prototype.__iterate=function(o,s){var f=this;return this._iter.__iterate(function(p){return o(p,p,f)},s)},sr.prototype.__iterator=function(o,s){var f=this._iter.__iterator(oe,s);return new Z(function(){var p=f.next();return p.done?p:ae(o,p.value,p.value,p)})},t(ur,ze);function ur(o){this._iter=o,this.size=o.size}ur.prototype.entrySeq=function(){return this._iter.toSeq()},ur.prototype.__iterate=function(o,s){var f=this;return this._iter.__iterate(function(p){if(p){pu(p);var h=u(p);return o(h?p.get(1):p[1],h?p.get(0):p[0],f)}},s)},ur.prototype.__iterator=function(o,s){var f=this._iter.__iterator(oe,s);return new Z(function(){for(;;){var p=f.next();if(p.done)return p;var h=p.value;if(h){pu(h);var m=u(h);return ae(o,m?h.get(0):h[0],m?h.get(1):h[1],p)}}})},ar.prototype.cacheResult=We.prototype.cacheResult=sr.prototype.cacheResult=ur.prototype.cacheResult=ho;function au(o){var s=et(o);return s._iter=o,s.size=o.size,s.flip=function(){return o},s.reverse=function(){var f=o.reverse.apply(this);return f.flip=function(){return o.reverse()},f},s.has=function(f){return o.includes(f)},s.includes=function(f){return o.has(f)},s.cacheResult=ho,s.__iterateUncached=function(f,p){var h=this;return o.__iterate(function(m,E){return f(E,m,h)!==!1},p)},s.__iteratorUncached=function(f,p){if(f===H){var h=o.__iterator(f,p);return new Z(function(){var m=h.next();if(!m.done){var E=m.value[0];m.value[0]=m.value[1],m.value[1]=E}return m})}return o.__iterator(f===oe?X:oe,p)},s}function su(o,s,f){var p=et(o);return p.size=o.size,p.has=function(h){return o.has(h)},p.get=function(h,m){var E=o.get(h,b);return E===b?m:s.call(f,E,h,o)},p.__iterateUncached=function(h,m){var E=this;return o.__iterate(function(C,D,F){return h(s.call(f,C,D,F),D,E)!==!1},m)},p.__iteratorUncached=function(h,m){var E=o.__iterator(H,m);return new Z(function(){var C=E.next();if(C.done)return C;var D=C.value,F=D[0];return ae(h,F,s.call(f,D[1],F,o),C)})},p}function fo(o,s){var f=et(o);return f._iter=o,f.size=o.size,f.reverse=function(){return o},o.flip&&(f.flip=function(){var p=au(o);return p.reverse=function(){return o.flip()},p}),f.get=function(p,h){return o.get(s?p:-1-p,h)},f.has=function(p){return o.has(s?p:-1-p)},f.includes=function(p){return o.includes(p)},f.cacheResult=ho,f.__iterate=function(p,h){var m=this;return o.__iterate(function(E,C){return p(E,C,m)},!h)},f.__iterator=function(p,h){return o.__iterator(p,!h)},f}function uu(o,s,f,p){var h=et(o);return p&&(h.has=function(m){var E=o.get(m,b);return E!==b&&!!s.call(f,E,m,o)},h.get=function(m,E){var C=o.get(m,b);return C!==b&&s.call(f,C,m,o)?C:E}),h.__iterateUncached=function(m,E){var C=this,D=0;return o.__iterate(function(F,T,M){if(s.call(f,F,T,M))return D++,m(F,p?T:D-1,C)},E),D},h.__iteratorUncached=function(m,E){var C=o.__iterator(H,E),D=0;return new Z(function(){for(;;){var F=C.next();if(F.done)return F;var T=F.value,M=T[0],R=T[1];if(s.call(f,R,M,o))return ae(m,p?M:D++,R,F)}})},h}function Bm(o,s,f){var p=ne().asMutable();return o.__iterate(function(h,m){p.update(s.call(f,h,m,o),0,function(E){return E+1})}),p.asImmutable()}function km(o,s,f){var p=c(o),h=(d(o)?ye():ne()).asMutable();o.__iterate(function(E,C){h.update(s.call(f,E,C,o),function(D){return D=D||[],D.push(p?[C,E]:E),D})});var m=gu(o);return h.map(function(E){return se(o,m(E))})}function po(o,s,f,p){var h=o.size;if(s!==void 0&&(s=s|0),f!==void 0&&(f=f|0),I(s,f,h))return o;var m=z(s,h),E=L(f,h);if(m!==m||E!==E)return po(o.toSeq().cacheResult(),s,f,p);var C=E-m,D;C===C&&(D=C<0?0:C);var F=et(o);return F.size=D===0?D:o.size&&D||void 0,!p&&Ui(o)&&D>=0&&(F.get=function(T,M){return T=J(this,T),T>=0&&T<D?o.get(T+m,M):M}),F.__iterateUncached=function(T,M){var R=this;if(D===0)return 0;if(M)return this.cacheResult().__iterate(T,M);var G=0,ee=!0,fe=0;return o.__iterate(function($e,nt){if(!(ee&&(ee=G++<m)))return fe++,T($e,p?nt:fe-1,R)!==!1&&fe!==D}),fe},F.__iteratorUncached=function(T,M){if(D!==0&&M)return this.cacheResult().__iterator(T,M);var R=D!==0&&o.__iterator(T,M),G=0,ee=0;return new Z(function(){for(;G++<m;)R.next();if(++ee>D)return _e();var fe=R.next();return p||T===oe?fe:T===X?ae(T,ee-1,void 0,fe):ae(T,ee-1,fe.value[1],fe)})},F}function Am(o,s,f){var p=et(o);return p.__iterateUncached=function(h,m){var E=this;if(m)return this.cacheResult().__iterate(h,m);var C=0;return o.__iterate(function(D,F,T){return s.call(f,D,F,T)&&++C&&h(D,F,E)}),C},p.__iteratorUncached=function(h,m){var E=this;if(m)return this.cacheResult().__iterator(h,m);var C=o.__iterator(H,m),D=!0;return new Z(function(){if(!D)return _e();var F=C.next();if(F.done)return F;var T=F.value,M=T[0],R=T[1];return s.call(f,R,M,E)?h===H?F:ae(h,M,R,F):(D=!1,_e())})},p}function cu(o,s,f,p){var h=et(o);return h.__iterateUncached=function(m,E){var C=this;if(E)return this.cacheResult().__iterate(m,E);var D=!0,F=0;return o.__iterate(function(T,M,R){if(!(D&&(D=s.call(f,T,M,R))))return F++,m(T,p?M:F-1,C)}),F},h.__iteratorUncached=function(m,E){var C=this;if(E)return this.cacheResult().__iterator(m,E);var D=o.__iterator(H,E),F=!0,T=0;return new Z(function(){var M,R,G;do{if(M=D.next(),M.done)return p||m===oe?M:m===X?ae(m,T++,void 0,M):ae(m,T++,M.value[1],M);var ee=M.value;R=ee[0],G=ee[1],F&&(F=s.call(f,G,R,C))}while(F);return m===H?M:ae(m,R,G,M)})},h}function Fm(o,s){var f=c(o),p=[o].concat(s).map(function(E){return u(E)?f&&(E=i(E)):E=f?Ks(E):zi(Array.isArray(E)?E:[E]),E}).filter(function(E){return E.size!==0});if(p.length===0)return o;if(p.length===1){var h=p[0];if(h===o||f&&c(h)||l(o)&&l(h))return h}var m=new Ze(p);return f?m=m.toKeyedSeq():l(o)||(m=m.toSetSeq()),m=m.flatten(!0),m.size=p.reduce(function(E,C){if(E!==void 0){var D=C.size;if(D!==void 0)return E+D}},0),m}function lu(o,s,f){var p=et(o);return p.__iterateUncached=function(h,m){var E=0,C=!1;function D(F,T){var M=this;F.__iterate(function(R,G){return(!s||T<s)&&u(R)?D(R,T+1):h(R,f?G:E++,M)===!1&&(C=!0),!C},m)}return D(o,0),E},p.__iteratorUncached=function(h,m){var E=o.__iterator(h,m),C=[],D=0;return new Z(function(){for(;E;){var F=E.next();if(F.done!==!1){E=C.pop();continue}var T=F.value;if(h===H&&(T=T[1]),(!s||C.length<s)&&u(T))C.push(E),E=T.__iterator(h,m);else return f?F:ae(h,D++,T,F)}return _e()})},p}function bm(o,s,f){var p=gu(o);return o.toSeq().map(function(h,m){return p(s.call(f,h,m,o))}).flatten(!0)}function Tm(o,s){var f=et(o);return f.size=o.size&&o.size*2-1,f.__iterateUncached=function(p,h){var m=this,E=0;return o.__iterate(function(C,D){return(!E||p(s,E++,m)!==!1)&&p(C,E++,m)!==!1},h),E},f.__iteratorUncached=function(p,h){var m=o.__iterator(oe,h),E=0,C;return new Z(function(){return(!C||E%2)&&(C=m.next(),C.done)?C:E%2?ae(p,E++,s):ae(p,E++,C.value,C)})},f}function cr(o,s,f){s||(s=hu);var p=c(o),h=0,m=o.toSeq().map(function(E,C){return[C,E,h++,f?f(E,C,o):E]}).toArray();return m.sort(function(E,C){return s(E[3],C[3])||E[2]-C[2]}).forEach(p?function(E,C){m[C].length=2}:function(E,C){m[C]=E[1]}),p?ze(m):l(o)?he(m):Xe(m)}function Ln(o,s,f){if(s||(s=hu),f){var p=o.toSeq().map(function(h,m){return[h,f(h,m,o)]}).reduce(function(h,m){return fu(s,h[1],m[1])?m:h});return p&&p[0]}else return o.reduce(function(h,m){return fu(s,h,m)?m:h})}function fu(o,s,f){var p=o(f,s);return p===0&&f!==s&&(f==null||f!==f)||p>0}function go(o,s,f){var p=et(o);return p.size=new Ze(f).map(function(h){return h.size}).min(),p.__iterate=function(h,m){for(var E=this.__iterator(oe,m),C,D=0;!(C=E.next()).done&&h(C.value,D++,this)!==!1;);return D},p.__iteratorUncached=function(h,m){var E=f.map(function(F){return F=r(F),Le(m?F.reverse():F)}),C=0,D=!1;return new Z(function(){var F;return D||(F=E.map(function(T){return T.next()}),D=F.some(function(T){return T.done})),D?_e():ae(h,C++,s.apply(null,F.map(function(T){return T.value})))})},p}function se(o,s){return Ui(o)?s:o.constructor(s)}function pu(o){if(o!==Object(o))throw new TypeError("Expected [K, V] tuple: "+o)}function du(o){return Me(o.size),j(o)}function gu(o){return c(o)?i:l(o)?n:a}function et(o){return Object.create((c(o)?ze:l(o)?he:Xe).prototype)}function ho(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ge.prototype.cacheResult.call(this)}function hu(o,s){return o>s?1:o<s?-1:0}function vu(o){var s=Le(o);if(!s){if(!Or(o))throw new TypeError("Expected iterable or array-like: "+o);s=Le(r(o))}return s}t(Ie,Mr);function Ie(o,s){var f,p=function(E){if(E instanceof p)return E;if(!(this instanceof p))return new p(E);if(!f){f=!0;var C=Object.keys(o);Om(h,C),h.size=C.length,h._name=s,h._keys=C,h._defaultValues=o}this._map=ne(E)},h=p.prototype=Object.create(Ce);return h.constructor=p,p}Ie.prototype.toString=function(){return this.__toString(yu(this)+" {","}")},Ie.prototype.has=function(o){return this._defaultValues.hasOwnProperty(o)},Ie.prototype.get=function(o,s){if(!this.has(o))return s;var f=this._defaultValues[o];return this._map?this._map.get(o,f):f},Ie.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var o=this.constructor;return o._empty||(o._empty=Kn(this,Qe()))},Ie.prototype.set=function(o,s){if(!this.has(o))throw new Error('Cannot set unknown key "'+o+'" on '+yu(this));var f=this._map&&this._map.set(o,s);return this.__ownerID||f===this._map?this:Kn(this,f)},Ie.prototype.remove=function(o){if(!this.has(o))return this;var s=this._map&&this._map.remove(o);return this.__ownerID||s===this._map?this:Kn(this,s)},Ie.prototype.wasAltered=function(){return this._map.wasAltered()},Ie.prototype.__iterator=function(o,s){var f=this;return i(this._defaultValues).map(function(p,h){return f.get(h)}).__iterator(o,s)},Ie.prototype.__iterate=function(o,s){var f=this;return i(this._defaultValues).map(function(p,h){return f.get(h)}).__iterate(o,s)},Ie.prototype.__ensureOwner=function(o){if(o===this.__ownerID)return this;var s=this._map&&this._map.__ensureOwner(o);return o?Kn(this,s,o):(this.__ownerID=o,this._map=s,this)};var Ce=Ie.prototype;Ce[A]=Ce.remove,Ce.deleteIn=Ce.removeIn=te.removeIn,Ce.merge=te.merge,Ce.mergeWith=te.mergeWith,Ce.mergeIn=te.mergeIn,Ce.mergeDeep=te.mergeDeep,Ce.mergeDeepWith=te.mergeDeepWith,Ce.mergeDeepIn=te.mergeDeepIn,Ce.setIn=te.setIn,Ce.update=te.update,Ce.updateIn=te.updateIn,Ce.withMutations=te.withMutations,Ce.asMutable=te.asMutable,Ce.asImmutable=te.asImmutable;function Kn(o,s,f){var p=Object.create(Object.getPrototypeOf(o));return p._map=s,p.__ownerID=f,p}function yu(o){return o._name||o.constructor.name||"Record"}function Om(o,s){try{s.forEach(Lm.bind(void 0,o))}catch{}}function Lm(o,s){Object.defineProperty(o,s,{get:function(){return this.get(s)},set:function(f){An(this.__ownerID,"Cannot set on an immutable record."),this.set(s,f)}})}t(le,Fn);function le(o){return o==null?mo():vo(o)&&!d(o)?o:mo().withMutations(function(s){var f=a(o);Me(f.size),f.forEach(function(p){return s.add(p)})})}le.of=function(){return this(arguments)},le.fromKeys=function(o){return this(i(o).keySeq())},le.prototype.toString=function(){return this.__toString("Set {","}")},le.prototype.has=function(o){return this._map.has(o)},le.prototype.add=function(o){return yo(this,this._map.set(o,!0))},le.prototype.remove=function(o){return yo(this,this._map.remove(o))},le.prototype.clear=function(){return yo(this,this._map.clear())},le.prototype.union=function(){var o=e.call(arguments,0);return o=o.filter(function(s){return s.size!==0}),o.length===0?this:this.size===0&&!this.__ownerID&&o.length===1?this.constructor(o[0]):this.withMutations(function(s){for(var f=0;f<o.length;f++)a(o[f]).forEach(function(p){return s.add(p)})})},le.prototype.intersect=function(){var o=e.call(arguments,0);if(o.length===0)return this;o=o.map(function(f){return a(f)});var s=this;return this.withMutations(function(f){s.forEach(function(p){o.every(function(h){return h.includes(p)})||f.remove(p)})})},le.prototype.subtract=function(){var o=e.call(arguments,0);if(o.length===0)return this;o=o.map(function(f){return a(f)});var s=this;return this.withMutations(function(f){s.forEach(function(p){o.some(function(h){return h.includes(p)})&&f.remove(p)})})},le.prototype.merge=function(){return this.union.apply(this,arguments)},le.prototype.mergeWith=function(o){var s=e.call(arguments,1);return this.union.apply(this,s)},le.prototype.sort=function(o){return tt(cr(this,o))},le.prototype.sortBy=function(o,s){return tt(cr(this,s,o))},le.prototype.wasAltered=function(){return this._map.wasAltered()},le.prototype.__iterate=function(o,s){var f=this;return this._map.__iterate(function(p,h){return o(h,h,f)},s)},le.prototype.__iterator=function(o,s){return this._map.map(function(f,p){return p}).__iterator(o,s)},le.prototype.__ensureOwner=function(o){if(o===this.__ownerID)return this;var s=this._map.__ensureOwner(o);return o?this.__make(s,o):(this.__ownerID=o,this._map=s,this)};function vo(o){return!!(o&&o[mu])}le.isSet=vo;var mu="@@__IMMUTABLE_SET__@@",Re=le.prototype;Re[mu]=!0,Re[A]=Re.remove,Re.mergeDeep=Re.merge,Re.mergeDeepWith=Re.mergeWith,Re.withMutations=te.withMutations,Re.asMutable=te.asMutable,Re.asImmutable=te.asImmutable,Re.__empty=mo,Re.__make=Su;function yo(o,s){return o.__ownerID?(o.size=s.size,o._map=s,o):s===o._map?o:s.size===0?o.__empty():o.__make(s)}function Su(o,s){var f=Object.create(Re);return f.size=o?o.size:0,f._map=o,f.__ownerID=s,f}var Eu;function mo(){return Eu||(Eu=Su(Qe()))}t(tt,le);function tt(o){return o==null?So():_u(o)?o:So().withMutations(function(s){var f=a(o);Me(f.size),f.forEach(function(p){return s.add(p)})})}tt.of=function(){return this(arguments)},tt.fromKeys=function(o){return this(i(o).keySeq())},tt.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _u(o){return vo(o)&&d(o)}tt.isOrderedSet=_u;var Mn=tt.prototype;Mn[_]=!0,Mn.__empty=So,Mn.__make=Cu;function Cu(o,s){var f=Object.create(Mn);return f.size=o?o.size:0,f._map=o,f.__ownerID=s,f}var xu;function So(){return xu||(xu=Cu(On()))}t(Se,rr);function Se(o){return o==null?Eo():wu(o)?o:Eo().unshiftAll(o)}Se.of=function(){return this(arguments)},Se.prototype.toString=function(){return this.__toString("Stack [","]")},Se.prototype.get=function(o,s){var f=this._head;for(o=J(this,o);f&&o--;)f=f.next;return f?f.value:s},Se.prototype.peek=function(){return this._head&&this._head.value},Se.prototype.push=function(){if(arguments.length===0)return this;for(var o=this.size+arguments.length,s=this._head,f=arguments.length-1;f>=0;f--)s={value:arguments[f],next:s};return this.__ownerID?(this.size=o,this._head=s,this.__hash=void 0,this.__altered=!0,this):zr(o,s)},Se.prototype.pushAll=function(o){if(o=n(o),o.size===0)return this;Me(o.size);var s=this.size,f=this._head;return o.reverse().forEach(function(p){s++,f={value:p,next:f}}),this.__ownerID?(this.size=s,this._head=f,this.__hash=void 0,this.__altered=!0,this):zr(s,f)},Se.prototype.pop=function(){return this.slice(1)},Se.prototype.unshift=function(){return this.push.apply(this,arguments)},Se.prototype.unshiftAll=function(o){return this.pushAll(o)},Se.prototype.shift=function(){return this.pop.apply(this,arguments)},Se.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Eo()},Se.prototype.slice=function(o,s){if(I(o,s,this.size))return this;var f=z(o,this.size),p=L(s,this.size);if(p!==this.size)return rr.prototype.slice.call(this,o,s);for(var h=this.size-f,m=this._head;f--;)m=m.next;return this.__ownerID?(this.size=h,this._head=m,this.__hash=void 0,this.__altered=!0,this):zr(h,m)},Se.prototype.__ensureOwner=function(o){return o===this.__ownerID?this:o?zr(this.size,this._head,o,this.__hash):(this.__ownerID=o,this.__altered=!1,this)},Se.prototype.__iterate=function(o,s){if(s)return this.reverse().__iterate(o);for(var f=0,p=this._head;p&&o(p.value,f++,this)!==!1;)p=p.next;return f},Se.prototype.__iterator=function(o,s){if(s)return this.reverse().__iterator(o);var f=0,p=this._head;return new Z(function(){if(p){var h=p.value;return p=p.next,ae(o,f++,h)}return _e()})};function wu(o){return!!(o&&o[Du])}Se.isStack=wu;var Du="@@__IMMUTABLE_STACK__@@",lr=Se.prototype;lr[Du]=!0,lr.withMutations=te.withMutations,lr.asMutable=te.asMutable,lr.asImmutable=te.asImmutable,lr.wasAltered=te.wasAltered;function zr(o,s,f,p){var h=Object.create(lr);return h.size=o,h._head=s,h.__ownerID=f,h.__hash=p,h.__altered=!1,h}var Bu;function Eo(){return Bu||(Bu=zr(0))}function rt(o,s){var f=function(p){o.prototype[p]=s[p]};return Object.keys(s).forEach(f),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(s).forEach(f),o}r.Iterator=Z,rt(r,{toArray:function(){Me(this.size);var o=new Array(this.size||0);return this.valueSeq().__iterate(function(s,f){o[f]=s}),o},toIndexedSeq:function(){return new ar(this)},toJS:function(){return this.toSeq().map(function(o){return o&&typeof o.toJS=="function"?o.toJS():o}).__toJS()},toJSON:function(){return this.toSeq().map(function(o){return o&&typeof o.toJSON=="function"?o.toJSON():o}).__toJS()},toKeyedSeq:function(){return new We(this,!0)},toMap:function(){return ne(this.toKeyedSeq())},toObject:function(){Me(this.size);var o={};return this.__iterate(function(s,f){o[f]=s}),o},toOrderedMap:function(){return ye(this.toKeyedSeq())},toOrderedSet:function(){return tt(c(this)?this.valueSeq():this)},toSet:function(){return le(c(this)?this.valueSeq():this)},toSetSeq:function(){return new sr(this)},toSeq:function(){return l(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Se(c(this)?this.valueSeq():this)},toList:function(){return ce(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(o,s){return this.size===0?o+s:o+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+s},concat:function(){var o=e.call(arguments,0);return se(this,Fm(this,o))},includes:function(o){return this.some(function(s){return ve(s,o)})},entries:function(){return this.__iterator(H)},every:function(o,s){Me(this.size);var f=!0;return this.__iterate(function(p,h,m){if(!o.call(s,p,h,m))return f=!1,!1}),f},filter:function(o,s){return se(this,uu(this,o,s,!0))},find:function(o,s,f){var p=this.findEntry(o,s);return p?p[1]:f},findEntry:function(o,s){var f;return this.__iterate(function(p,h,m){if(o.call(s,p,h,m))return f=[h,p],!1}),f},findLastEntry:function(o,s){return this.toSeq().reverse().findEntry(o,s)},forEach:function(o,s){return Me(this.size),this.__iterate(s?o.bind(s):o)},join:function(o){Me(this.size),o=o!==void 0?""+o:",";var s="",f=!0;return this.__iterate(function(p){f?f=!1:s+=o,s+=p!=null?p.toString():""}),s},keys:function(){return this.__iterator(X)},map:function(o,s){return se(this,su(this,o,s))},reduce:function(o,s,f){Me(this.size);var p,h;return arguments.length<2?h=!0:p=s,this.__iterate(function(m,E,C){h?(h=!1,p=m):p=o.call(f,p,m,E,C)}),p},reduceRight:function(o,s,f){var p=this.toKeyedSeq().reverse();return p.reduce.apply(p,arguments)},reverse:function(){return se(this,fo(this,!0))},slice:function(o,s){return se(this,po(this,o,s,!0))},some:function(o,s){return!this.every(Rn(o),s)},sort:function(o){return se(this,cr(this,o))},values:function(){return this.__iterator(oe)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(o,s){return j(o?this.toSeq().filter(o,s):this)},countBy:function(o,s){return Bm(this,o,s)},equals:function(o){return ji(this,o)},entrySeq:function(){var o=this;if(o._cache)return new Ze(o._cache);var s=o.toSeq().map(Mm).toIndexedSeq();return s.fromEntrySeq=function(){return o.toSeq()},s},filterNot:function(o,s){return this.filter(Rn(o),s)},findLast:function(o,s,f){return this.toKeyedSeq().reverse().find(o,s,f)},first:function(){return this.find(Q)},flatMap:function(o,s){return se(this,bm(this,o,s))},flatten:function(o){return se(this,lu(this,o,!0))},fromEntrySeq:function(){return new ur(this)},get:function(o,s){return this.find(function(f,p){return ve(p,o)},void 0,s)},getIn:function(o,s){for(var f=this,p=vu(o),h;!(h=p.next()).done;){var m=h.value;if(f=f&&f.get?f.get(m,b):b,f===b)return s}return f},groupBy:function(o,s){return km(this,o,s)},has:function(o){return this.get(o,b)!==b},hasIn:function(o){return this.getIn(o,b)!==b},isSubset:function(o){return o=typeof o.includes=="function"?o:r(o),this.every(function(s){return o.includes(s)})},isSuperset:function(o){return o=typeof o.isSubset=="function"?o:r(o),o.isSubset(this)},keySeq:function(){return this.toSeq().map(Km).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(o){return Ln(this,o)},maxBy:function(o,s){return Ln(this,s,o)},min:function(o){return Ln(this,o?ku(o):Fu)},minBy:function(o,s){return Ln(this,s?ku(s):Fu,o)},rest:function(){return this.slice(1)},skip:function(o){return this.slice(Math.max(0,o))},skipLast:function(o){return se(this,this.toSeq().reverse().skip(o).reverse())},skipWhile:function(o,s){return se(this,cu(this,o,s,!0))},skipUntil:function(o,s){return this.skipWhile(Rn(o),s)},sortBy:function(o,s){return se(this,cr(this,s,o))},take:function(o){return this.slice(0,Math.max(0,o))},takeLast:function(o){return se(this,this.toSeq().reverse().take(o).reverse())},takeWhile:function(o,s){return se(this,Am(this,o,s))},takeUntil:function(o,s){return this.takeWhile(Rn(o),s)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rm(this))}});var Be=r.prototype;Be[y]=!0,Be[Oe]=Be.values,Be.__toJS=Be.toArray,Be.__toStringMapper=Au,Be.inspect=Be.toSource=function(){return this.toString()},Be.chain=Be.flatMap,Be.contains=Be.includes,function(){try{Object.defineProperty(Be,"length",{get:function(){if(!r.noLengthWarning){var o;try{throw new Error}catch(s){o=s.stack}if(o.indexOf("_wrapObject")===-1)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. "+o),this.size}}})}catch{}}(),rt(i,{flip:function(){return se(this,au(this))},findKey:function(o,s){var f=this.findEntry(o,s);return f&&f[0]},findLastKey:function(o,s){return this.toSeq().reverse().findKey(o,s)},keyOf:function(o){return this.findKey(function(s){return ve(s,o)})},lastKeyOf:function(o){return this.findLastKey(function(s){return ve(s,o)})},mapEntries:function(o,s){var f=this,p=0;return se(this,this.toSeq().map(function(h,m){return o.call(s,[m,h],p++,f)}).fromEntrySeq())},mapKeys:function(o,s){var f=this;return se(this,this.toSeq().flip().map(function(p,h){return o.call(s,p,h,f)}).flip())}});var In=i.prototype;In[v]=!0,In[Oe]=Be.entries,In.__toJS=Be.toObject,In.__toStringMapper=function(o,s){return JSON.stringify(s)+": "+Au(o)},rt(n,{toKeyedSeq:function(){return new We(this,!1)},filter:function(o,s){return se(this,uu(this,o,s,!1))},findIndex:function(o,s){var f=this.findEntry(o,s);return f?f[0]:-1},indexOf:function(o){var s=this.toKeyedSeq().keyOf(o);return s===void 0?-1:s},lastIndexOf:function(o){var s=this.toKeyedSeq().reverse().keyOf(o);return s===void 0?-1:s},reverse:function(){return se(this,fo(this,!1))},slice:function(o,s){return se(this,po(this,o,s,!1))},splice:function(o,s){var f=arguments.length;if(s=Math.max(s|0,0),f===0||f===2&&!s)return this;o=z(o,o<0?this.count():this.size);var p=this.slice(0,o);return se(this,f===1?p:p.concat(U(arguments,2),this.slice(o+s)))},findLastIndex:function(o,s){var f=this.toKeyedSeq().findLastKey(o,s);return f===void 0?-1:f},first:function(){return this.get(0)},flatten:function(o){return se(this,lu(this,o,!1))},get:function(o,s){return o=J(this,o),o<0||this.size===1/0||this.size!==void 0&&o>this.size?s:this.find(function(f,p){return p===o},void 0,s)},has:function(o){return o=J(this,o),o>=0&&(this.size!==void 0?this.size===1/0||o<this.size:this.indexOf(o)!==-1)},interpose:function(o){return se(this,Tm(this,o))},interleave:function(){var o=[this].concat(U(arguments)),s=go(this.toSeq(),he.of,o),f=s.flatten(!0);return s.size&&(f.size=s.size*o.length),se(this,f)},last:function(){return this.get(-1)},skipWhile:function(o,s){return se(this,cu(this,o,s,!1))},zip:function(){var o=[this].concat(U(arguments));return se(this,go(this,Im,o))},zipWith:function(o){var s=U(arguments);return s[0]=this,se(this,go(this,o,s))}}),n.prototype[S]=!0,n.prototype[_]=!0,rt(a,{get:function(o,s){return this.has(o)?o:s},includes:function(o){return this.has(o)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Be.includes,rt(ze,i.prototype),rt(he,n.prototype),rt(Xe,a.prototype),rt(Mr,i.prototype),rt(rr,n.prototype),rt(Fn,a.prototype);function Km(o,s){return s}function Mm(o,s){return[s,o]}function Rn(o){return function(){return!o.apply(this,arguments)}}function ku(o){return function(){return-o.apply(this,arguments)}}function Au(o){return typeof o=="string"?JSON.stringify(o):o}function Im(){return U(arguments)}function Fu(o,s){return o<s?1:o>s?-1:0}function Rm(o){if(o.size===1/0)return 0;var s=d(o),f=c(o),p=s?1:0,h=o.__iterate(f?s?function(m,E){p=31*p+bu(Ke(m),Ke(E))|0}:function(m,E){p=p+bu(Ke(m),Ke(E))|0}:s?function(m){p=31*p+Ke(m)|0}:function(m){p=p+Ke(m)|0});return Nm(h,p)}function Nm(o,s){return s=Ir(s,3432918353),s=Ir(s<<15|s>>>-15,461845907),s=Ir(s<<13|s>>>-13,5),s=(s+3864292196|0)^o,s=Ir(s^s>>>16,2246822507),s=Ir(s^s>>>13,3266489909),s=Ji(s^s>>>16),s}function bu(o,s){return o^s+2654435769+(o<<6)+(o>>2)|0}var qm={Iterable:r,Seq:ge,Collection:Dt,Map:ne,OrderedMap:ye,List:ce,Stack:Se,Set:le,OrderedSet:tt,Record:Ie,Range:De,Repeat:we,is:ve,fromJS:Wi};return qm})});var vr=x((A1,Ju)=>{"use strict";var rS=re(),nS=rS.OrderedMap,iS={createFromArray:function(t){return nS(t.map(function(r){return[r.getKey(),r]}))}};Ju.exports=iS});var qe=x((F1,Zu)=>{"use strict";function oS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Lo=re(),To=Lo.Map,Oo=Lo.OrderedSet,aS=Lo.Record,Yu=Oo(),Xu={style:Yu,entity:null},sS=aS(Xu),Ko=function(e){oS(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(n){return this.getStyle().includes(n)},t.applyStyle=function(n,a){var u=n.set("style",n.getStyle().add(a));return t.create(u)},t.removeStyle=function(n,a){var u=n.set("style",n.getStyle().remove(a));return t.create(u)},t.applyEntity=function(n,a){var u=n.getEntity()===a?n:n.set("entity",a);return t.create(u)},t.create=function(n){if(!n)return Mo;var a={style:Yu,entity:null},u=To(a).merge(n),c=bo.get(u);if(c)return c;var l=new t(u);return bo=bo.set(u,l),l},t.fromJS=function(n){var a=n.style,u=n.entity;return new t({style:Array.isArray(a)?Oo(a):a,entity:Array.isArray(u)?Oo(u):u})},t}(sS),Mo=new Ko,bo=To([[To(Xu),Mo]]);Ko.EMPTY=Mo;Zu.exports=Ko});var yr=x((b1,Qu)=>{"use strict";function uS(e,t,r,i){if(e.size){var n=0;e.reduce(function(a,u,c){return t(a,u)||(r(a)&&i(n,c),n=c),u}),r(e.last())&&i(n,e.count())}}Qu.exports=uS});var bt=x((T1,rc)=>{"use strict";function cS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lS=qe(),ec=yr(),Hr=re(),tc=Hr.List,fS=Hr.Map,pS=Hr.OrderedSet,dS=Hr.Record,gS=Hr.Repeat,hS=pS(),vS={key:"",type:"unstyled",text:"",characterList:tc(),depth:0,data:fS()},yS=dS(vS),mS=function(t){if(!t)return t;var r=t.characterList,i=t.text;return i&&!r&&(t.characterList=tc(gS(lS.EMPTY,i.length))),t},SS=function(e){cS(t,e);function t(i){return e.call(this,mS(i))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(n){var a=this.getCharacterList().get(n);return a?a.getStyle():hS},r.getEntityAt=function(n){var a=this.getCharacterList().get(n);return a?a.getEntity():null},r.findStyleRanges=function(n,a){ec(this.getCharacterList(),ES,n,a)},r.findEntityRanges=function(n,a){ec(this.getCharacterList(),_S,n,a)},t}(yS);function ES(e,t){return e.getStyle()===t.getStyle()}function _S(e,t){return e.getEntity()===t.getEntity()}rc.exports=SS});var Pe=x((O1,oc)=>{"use strict";function CS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var xS=qe(),nc=yr(),jr=re(),Io=jr.List,wS=jr.Map,DS=jr.OrderedSet,BS=jr.Record,kS=jr.Repeat,AS=DS(),ic={parent:null,characterList:Io(),data:wS(),depth:0,key:"",text:"",type:"unstyled",children:Io(),prevSibling:null,nextSibling:null},FS=function(t,r){return t.getStyle()===r.getStyle()},bS=function(t,r){return t.getEntity()===r.getEntity()},TS=function(t){if(!t)return t;var r=t.characterList,i=t.text;return i&&!r&&(t.characterList=Io(kS(xS.EMPTY,i.length))),t},OS=function(e){CS(t,e);function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ic;return e.call(this,TS(i))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(n){var a=this.getCharacterList().get(n);return a?a.getStyle():AS},r.getEntityAt=function(n){var a=this.getCharacterList().get(n);return a?a.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(n,a){nc(this.getCharacterList(),FS,n,a)},r.findEntityRanges=function(n,a){nc(this.getCharacterList(),bS,n,a)},t}(BS(ic));oc.exports=OS});var cc=x((L1,uc)=>{"use strict";var ac=qe(),LS=re(),KS=LS.Map,MS={add:function(t,r,i){return sc(t,r,i,!0)},remove:function(t,r,i){return sc(t,r,i,!1)}};function sc(e,t,r,i){var n=e.getBlockMap(),a=t.getStartKey(),u=t.getStartOffset(),c=t.getEndKey(),l=t.getEndOffset(),g=n.skipUntil(function(d,y){return y===a}).takeUntil(function(d,y){return y===c}).concat(KS([[c,n.get(c)]])).map(function(d,y){var v,S;a===c?(v=u,S=l):(v=y===a?u:0,S=y===c?l:d.getLength());for(var _=d.getCharacterList(),A;v<S;)A=_.get(v),_=_.set(v,i?ac.applyStyle(A,r):ac.removeStyle(A,r)),v++;return d.set("characterList",_)});return e.merge({blockMap:n.merge(g),selectionBefore:t,selectionAfter:t})}uc.exports=MS});var fc=x((K1,lc)=>{"use strict";var IS=qe();function RS(e,t,r,i){for(var n=t,a=e.getCharacterList();n<r;)a=a.set(n,IS.applyEntity(a.get(n),i)),n++;return e.set("characterList",a)}lc.exports=RS});var dc=x((M1,pc)=>{"use strict";var NS=fc(),qS=re();function PS(e,t,r){var i=e.getBlockMap(),n=t.getStartKey(),a=t.getStartOffset(),u=t.getEndKey(),c=t.getEndOffset(),l=i.skipUntil(function(g,d){return d===n}).takeUntil(function(g,d){return d===u}).toOrderedMap().merge(qS.OrderedMap([[u,i.get(u)]])).map(function(g,d){var y=d===n?a:0,v=d===u?c:g.getLength();return NS(g,y,v,r)});return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}pc.exports=PS});var hc=x((I1,gc)=>{"use strict";var US={getRemovalRange:function(t,r,i,n,a){var u=i.split(" ");u=u.map(function(B,w){if(a==="forward"){if(w>0)return" "+B}else if(w<u.length-1)return B+" ";return B});for(var c=n,l,g,d=null,y=null,v=0;v<u.length;v++){if(g=u[v],l=c+g.length,t<l&&c<r)d!==null||(d=c),y=l;else if(d!==null)break;c=l}var S=n+i.length,_=d===n,A=y===S;return(!_&&A||_&&!A)&&(a==="forward"?y!==S&&y++:d!==n&&d--),{start:d,end:y}}};gc.exports=US});var ie=x((R1,vc)=>{"use strict";var zS=function(e){};function WS(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];if(zS(t),!e){var a;if(t===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;a=new Error(t.replace(/%s/g,function(){return String(i[u++])})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}vc.exports=WS});var mc=x((N1,yc)=>{"use strict";var VS=ie();function HS(e,t){var r=[];return e.findEntityRanges(function(i){return i.getEntity()===t},function(i,n){r.push({start:i,end:n})}),r.length||VS(!1),r}yc.exports=HS});var Ec=x((q1,Sc)=>{"use strict";var jS=hc(),$S=mc(),GS=ie();function JS(e,t,r,i,n){var a=i.getStartOffset(),u=i.getEndOffset(),c=t.getEntityAt(a),l=r.getEntityAt(u-1);if(!c&&!l)return i;var g=i;if(c&&c===l)g=$r(e,t,g,n,c,!0,!0);else if(c&&l){var d=$r(e,t,g,n,c,!1,!0),y=$r(e,r,g,n,l,!1,!1);g=g.merge({anchorOffset:d.getAnchorOffset(),focusOffset:y.getFocusOffset(),isBackward:!1})}else if(c){var v=$r(e,t,g,n,c,!1,!0);g=g.merge({anchorOffset:v.getStartOffset(),isBackward:!1})}else if(l){var S=$r(e,r,g,n,l,!1,!1);g=g.merge({focusOffset:S.getEndOffset(),isBackward:!1})}return g}function $r(e,t,r,i,n,a,u){var c=r.getStartOffset(),l=r.getEndOffset(),g=e.__get(n),d=g.getMutability(),y=u?c:l;if(d==="MUTABLE")return r;var v=$S(t,n).filter(function(A){return y<=A.end&&y>=A.start});v.length!=1&&GS(!1);var S=v[0];if(d==="IMMUTABLE")return r.merge({anchorOffset:S.start,focusOffset:S.end,isBackward:!1});a||(u?l=S.end:c=S.start);var _=jS.getRemovalRange(c,l,t.getText().slice(S.start,S.end),S.start,i);return r.merge({anchorOffset:_.start,focusOffset:_.end,isBackward:!1})}Sc.exports=JS});var Je=x((P1,Cc)=>{"use strict";var _c={},YS=Math.pow(2,24);function XS(){for(var e;e===void 0||_c.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*YS).toString(32);return _c[e]=!0,e}Cc.exports=XS});var Ro=x((U1,Dc)=>{"use strict";var ZS=Pe(),xc=Je(),QS=re(),wc=QS.OrderedMap,e0=function(t){var r={},i;return wc(t.withMutations(function(n){n.forEach(function(a,u){var c=a.getKey(),l=a.getNextSiblingKey(),g=a.getPrevSiblingKey(),d=a.getChildKeys(),y=a.getParentKey(),v=xc();if(r[c]=v,l){var S=n.get(l);S?n.setIn([l,"prevSibling"],v):n.setIn([c,"nextSibling"],null)}if(g){var _=n.get(g);_?n.setIn([g,"nextSibling"],v):n.setIn([c,"prevSibling"],null)}if(y&&n.get(y)){var A=n.get(y),B=A.getChildKeys();n.setIn([y,"children"],B.set(B.indexOf(a.getKey()),v))}else n.setIn([c,"parent"],null),i&&(n.setIn([i.getKey(),"nextSibling"],v),n.setIn([c,"prevSibling"],r[i.getKey()])),i=n.get(c);d.forEach(function(w){var k=n.get(w);k?n.setIn([w,"parent"],v):n.setIn([c,"children"],a.getChildKeys().filter(function(b){return b!==w}))})})}).toArray().map(function(n){return[r[n.getKey()],n.set("key",r[n.getKey()])]}))},t0=function(t){return wc(t.toArray().map(function(r){var i=xc();return[i,r.set("key",i)]}))},r0=function(t){var r=t.first()instanceof ZS;return r?e0(t):t0(t)};Dc.exports=r0});var No=x((z1,kc)=>{"use strict";var n0=qe(),i0=yr(),o0=ie();function a0(e,t){var r=e.getBlockMap(),i=e.getEntityMap(),n={},a=t.getStartKey(),u=t.getStartOffset(),c=r.get(a),l=Bc(i,c,u);l!==c&&(n[a]=l);var g=t.getEndKey(),d=t.getEndOffset(),y=r.get(g);a===g&&(y=l);var v=Bc(i,y,d);return v!==y&&(n[g]=v),Object.keys(n).length?e.merge({blockMap:r.merge(n),selectionAfter:t}):e.set("selectionAfter",t)}function s0(e,t,r){var i;return i0(e,function(n,a){return n.getEntity()===a.getEntity()},function(n){return n.getEntity()===t},function(n,a){n<=r&&a>=r&&(i={start:n,end:a})}),typeof i!="object"&&o0(!1),i}function Bc(e,t,r){var i=t.getCharacterList(),n=r>0?i.get(r-1):void 0,a=r<i.count()?i.get(r):void 0,u=n?n.getEntity():void 0,c=a?a.getEntity():void 0;if(c&&c===u){var l=e.__get(c);if(l.getMutability()!=="MUTABLE"){for(var g=s0(i,c,r),d=g.start,y=g.end,v;d<y;)v=i.get(d),i=i.set(d,n0.applyEntity(v,null)),d++;return t.set("characterList",i)}}return t}kc.exports=a0});var Gr=x((W1,Ac)=>{"use strict";var u0=Ro(),c0=No(),l0=function(t,r){var i=r.getStartKey(),n=r.getStartOffset(),a=r.getEndKey(),u=r.getEndOffset(),c=c0(t,r),l=c.getBlockMap(),g=l.keySeq(),d=g.indexOf(i),y=g.indexOf(a)+1;return u0(l.slice(d,y).map(function(v,S){var _=v.getText(),A=v.getCharacterList();return i===a?v.merge({text:_.slice(n,u),characterList:A.slice(n,u)}):S===i?v.merge({text:_.slice(n),characterList:A.slice(n)}):S===a?v.merge({text:_.slice(0,u),characterList:A.slice(0,u)}):v}))};Ac.exports=l0});var qo=x((V1,Fc)=>{"use strict";function f0(e,t,r){var i=e;if(r===i.count())t.forEach(function(u){i=i.push(u)});else if(r===0)t.reverse().forEach(function(u){i=i.unshift(u)});else{var n=i.slice(0,r),a=i.slice(r);i=n.concat(t,a).toList()}return i}Fc.exports=f0});var Lc=x((H1,Oc)=>{"use strict";var p0=vr(),Tc=Pe(),d0=re(),g0=qo(),bc=ie(),h0=Ro(),v0=d0.List,y0=function(t,r,i,n,a,u){var c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",l=i.get(a),g=l.getText(),d=l.getCharacterList(),y=a,v=u+n.getText().length,S=null;switch(c){case"MERGE_OLD_DATA_TO_NEW_DATA":S=n.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":S=n.getData();break}var _=l.getType();g&&_==="unstyled"&&(_=n.getType());var A=l.merge({text:g.slice(0,u)+n.getText()+g.slice(u),characterList:g0(d,n.getCharacterList(),u),type:_,data:S});return t.merge({blockMap:i.set(a,A),selectionBefore:r,selectionAfter:r.merge({anchorKey:y,anchorOffset:v,focusKey:y,focusOffset:v,isBackward:!1})})},m0=function(t,r,i){var n=t.getText(),a=t.getCharacterList(),u=n.slice(0,r),c=a.slice(0,r),l=i.first();return t.merge({text:u+l.getText(),characterList:c.concat(l.getCharacterList()),type:u?t.getType():l.getType(),data:l.getData()})},S0=function(t,r,i){var n=t.getText(),a=t.getCharacterList(),u=n.length,c=n.slice(r,u),l=a.slice(r,u),g=i.last();return g.merge({text:g.getText()+c,characterList:g.getCharacterList().concat(l),data:g.getData()})},E0=function(t,r){var i=t.getKey(),n=t,a=[];for(r.get(i)&&a.push(i);n&&n.getNextSiblingKey();){var u=n.getNextSiblingKey();if(!u)break;a.push(u),n=r.get(u)}return a},_0=function(t,r,i,n){return t.withMutations(function(a){var u=i.getKey(),c=n.getKey(),l=i.getNextSiblingKey(),g=i.getParentKey(),d=E0(n,t),y=d[d.length-1];if(a.get(c)?(a.setIn([u,"nextSibling"],c),a.setIn([c,"prevSibling"],u)):(a.setIn([u,"nextSibling"],n.getNextSiblingKey()),a.setIn([n.getNextSiblingKey(),"prevSibling"],u)),a.setIn([y,"nextSibling"],l),l&&a.setIn([l,"prevSibling"],y),d.forEach(function(w){return a.setIn([w,"parent"],g)}),g){var v=t.get(g),S=v.getChildKeys(),_=S.indexOf(u),A=_+1,B=S.toArray();B.splice.apply(B,[A,0].concat(d)),a.setIn([g,"children"],v0(B))}})},C0=function(t,r,i,n,a,u){var c=i.first()instanceof Tc,l=[],g=n.size,d=i.get(a),y=n.first(),v=n.last(),S=v.getLength(),_=v.getKey(),A=c&&(!d.getChildKeys().isEmpty()||!y.getChildKeys().isEmpty());i.forEach(function(w,k){if(k!==a){l.push(w);return}A?l.push(w):l.push(m0(w,u,n)),n.slice(A?0:1,g-1).forEach(function(b){return l.push(b)}),l.push(S0(w,u,n))});var B=p0.createFromArray(l);return c&&(B=_0(B,i,d,y)),t.merge({blockMap:B,selectionBefore:r,selectionAfter:r.merge({anchorKey:_,anchorOffset:S,focusKey:_,focusOffset:S,isBackward:!1})})},x0=function(t,r,i){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||bc(!1);var a=t.getBlockMap(),u=h0(i),c=r.getStartKey(),l=r.getStartOffset(),g=a.get(c);return g instanceof Tc&&(g.getChildKeys().isEmpty()||bc(!1)),u.size===1?y0(t,r,a,u.first(),c,l,n):C0(t,r,a,u,c,l)};Oc.exports=x0});var Mc=x((j1,Kc)=>{"use strict";var w0=re(),D0=qo(),B0=ie(),k0=w0.Repeat;function A0(e,t,r,i){t.isCollapsed()||B0(!1);var n=null;if(r!=null&&(n=r.length),n==null||n===0)return e;var a=e.getBlockMap(),u=t.getStartKey(),c=t.getStartOffset(),l=a.get(u),g=l.getText(),d=l.merge({text:g.slice(0,c)+r+g.slice(c,l.getLength()),characterList:D0(l.getCharacterList(),k0(i,n).toList(),c)}),y=c+n;return e.merge({blockMap:a.set(u,d),selectionAfter:t.merge({anchorOffset:y,focusOffset:y})})}Kc.exports=A0});var Po=x(($1,Ic)=>{"use strict";var F0=re(),b0=F0.Map;function T0(e,t,r){var i=t.getStartKey(),n=t.getEndKey(),a=e.getBlockMap(),u=a.toSeq().skipUntil(function(c,l){return l===i}).takeUntil(function(c,l){return l===n}).concat(b0([[n,a.get(n)]])).map(r);return e.merge({blockMap:a.merge(u),selectionBefore:t,selectionAfter:t})}Ic.exports=T0});var Uo=x((G1,Rc)=>{"use strict";var O0=Pe(),L0=function(t,r){var i=t instanceof O0;if(!i)return null;var n=t.getNextSiblingKey();if(n)return n;var a=t.getParentKey();if(!a)return null;for(var u=r.get(a);u&&!u.getNextSiblingKey();){var c=u.getParentKey();u=c?r.get(c):null}return u?u.getNextSiblingKey():null};Rc.exports=L0});var Uc=x((Y1,Pc)=>{"use strict";var K0=Pe(),zo=Uo(),qc=re(),J1=qc.List,Nc=qc.Map,Te=function(t,r,i){if(t){var n=r.get(t);n&&r.set(t,i(n))}},Vn=function(t,r){var i=[];if(!t)return i;for(var n=r.get(t);n&&n.getParentKey();){var a=n.getParentKey();a&&i.push(a),n=a?r.get(a):null}return i},M0=function(t,r){var i=[];if(!t)return i;for(var n=zo(t,r);n&&r.get(n);){var a=r.get(n);i.push(n),n=a.getParentKey()?zo(a,r):null}return i},mr=function(t,r,i){if(!t)return null;for(var n=i.get(t.getKey()).getNextSiblingKey();n&&!r.get(n);)n=i.get(n).getNextSiblingKey()||null;return n},Sr=function(t,r,i){if(!t)return null;for(var n=i.get(t.getKey()).getPrevSiblingKey();n&&!r.get(n);)n=i.get(n).getPrevSiblingKey()||null;return n},I0=function(t,r,i,n){return t.withMutations(function(a){if(Te(r.getKey(),a,function(d){return d.merge({nextSibling:mr(d,a,n),prevSibling:Sr(d,a,n)})}),Te(i.getKey(),a,function(d){return d.merge({nextSibling:mr(d,a,n),prevSibling:Sr(d,a,n)})}),Vn(r.getKey(),n).forEach(function(d){return Te(d,a,function(y){return y.merge({children:y.getChildKeys().filter(function(v){return a.get(v)}),nextSibling:mr(y,a,n),prevSibling:Sr(y,a,n)})})}),Te(r.getNextSiblingKey(),a,function(d){return d.merge({prevSibling:r.getPrevSiblingKey()})}),Te(r.getPrevSiblingKey(),a,function(d){return d.merge({nextSibling:mr(d,a,n)})}),Te(i.getNextSiblingKey(),a,function(d){return d.merge({prevSibling:Sr(d,a,n)})}),Te(i.getPrevSiblingKey(),a,function(d){return d.merge({nextSibling:i.getNextSiblingKey()})}),Vn(i.getKey(),n).forEach(function(d){Te(d,a,function(y){return y.merge({children:y.getChildKeys().filter(function(v){return a.get(v)}),nextSibling:mr(y,a,n),prevSibling:Sr(y,a,n)})})}),M0(i,n).forEach(function(d){return Te(d,a,function(y){return y.merge({nextSibling:mr(y,a,n),prevSibling:Sr(y,a,n)})})}),t.get(r.getKey())==null&&t.get(i.getKey())!=null&&i.getParentKey()===r.getKey()&&i.getPrevSiblingKey()==null){var u=r.getPrevSiblingKey();Te(i.getKey(),a,function(d){return d.merge({prevSibling:u})}),Te(u,a,function(d){return d.merge({nextSibling:i.getKey()})});var c=u?t.get(u):null,l=c?c.getParentKey():null;if(r.getChildKeys().forEach(function(d){Te(d,a,function(y){return y.merge({parent:l})})}),l!=null){var g=t.get(l);Te(l,a,function(d){return d.merge({children:g.getChildKeys().concat(r.getChildKeys())})})}Te(r.getChildKeys().find(function(d){var y=t.get(d);return y.getNextSiblingKey()===null}),a,function(d){return d.merge({nextSibling:r.getNextSiblingKey()})})}})},R0=function(t,r){if(r.isCollapsed())return t;var i=t.getBlockMap(),n=r.getStartKey(),a=r.getStartOffset(),u=r.getEndKey(),c=r.getEndOffset(),l=i.get(n),g=i.get(u),d=l instanceof K0,y=[];if(d){var v=g.getChildKeys(),S=Vn(u,i);g.getNextSiblingKey()&&(y=y.concat(S)),v.isEmpty()||(y=y.concat(S.concat([u]))),y=y.concat(Vn(zo(g,i),i))}var _;l===g?_=N0(l.getCharacterList(),a,c):_=l.getCharacterList().slice(0,a).concat(g.getCharacterList().slice(c));var A=l.merge({text:l.getText().slice(0,a)+g.getText().slice(c),characterList:_}),B=d&&a===0&&c===0&&g.getParentKey()===n&&g.getPrevSiblingKey()==null,w=B?Nc([[n,null]]):i.toSeq().skipUntil(function(b,O){return O===n}).takeUntil(function(b,O){return O===u}).filter(function(b,O){return y.indexOf(O)===-1}).concat(Nc([[u,null]])).map(function(b,O){return O===n?A:null}),k=i.merge(w).filter(function(b){return!!b});return d&&l!==g&&(k=I0(k,l,g,i)),t.merge({blockMap:k,selectionBefore:r,selectionAfter:r.merge({anchorKey:n,anchorOffset:a,focusKey:n,focusOffset:a,isBackward:!1})})},N0=function(t,r,i){if(r===0)for(;r<i;)t=t.shift(),r++;else if(i===t.count())for(;i>r;)t=t.pop(),i--;else{var n=t.slice(0,r),a=t.slice(i);t=n.concat(a).toList()}return t};Pc.exports=R0});var Hc=x((X1,Vc)=>{"use strict";var q0=Pe(),P0=Je(),Wc=re(),zc=ie(),U0=Po(),z0=Wc.List,W0=Wc.Map,Hn=function(t,r,i){if(t){var n=r.get(t);n&&r.set(t,i(n))}},V0=function(t,r,i){return t.withMutations(function(n){var a=r.getKey(),u=i.getKey();Hn(r.getParentKey(),n,function(c){var l=c.getChildKeys(),g=l.indexOf(a)+1,d=l.toArray();return d.splice(g,0,u),c.merge({children:z0(d)})}),Hn(r.getNextSiblingKey(),n,function(c){return c.merge({prevSibling:u})}),Hn(a,n,function(c){return c.merge({nextSibling:u})}),Hn(u,n,function(c){return c.merge({prevSibling:a})})})},H0=function(t,r){r.isCollapsed()||zc(!1);var i=r.getAnchorKey(),n=t.getBlockMap(),a=n.get(i),u=a.getText();if(!u){var c=a.getType();if(c==="unordered-list-item"||c==="ordered-list-item")return U0(t,r,function(w){return w.merge({type:"unstyled",depth:0})})}var l=r.getAnchorOffset(),g=a.getCharacterList(),d=P0(),y=a instanceof q0,v=a.merge({text:u.slice(0,l),characterList:g.slice(0,l)}),S=v.merge({key:d,text:u.slice(l),characterList:g.slice(l),data:W0()}),_=n.toSeq().takeUntil(function(w){return w===a}),A=n.toSeq().skipUntil(function(w){return w===a}).rest(),B=_.concat([[i,v],[d,S]],A).toOrderedMap();return y&&(a.getChildKeys().isEmpty()||zc(!1),B=V0(B,v,S)),t.merge({blockMap:B,selectionBefore:r,selectionAfter:r.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})};Vc.exports=H0});var Ae=x((Z1,$c)=>{"use strict";var j0=qe(),jc=cc(),$0=dc(),G0=Ec(),J0=Gr(),Y0=re(),X0=Lc(),Z0=Mc(),Q0=ie(),Wo=Po(),Jr=No(),Yr=Uc(),eE=Hc(),tE=Y0.OrderedSet,jn={replaceText:function(t,r,i,n,a){var u=Jr(t,r),c=Yr(u,r),l=j0.create({style:n||tE(),entity:a||null});return Z0(c,c.getSelectionAfter(),i,l)},insertText:function(t,r,i,n,a){return r.isCollapsed()||Q0(!1),jn.replaceText(t,r,i,n,a)},moveText:function(t,r,i){var n=J0(t,r),a=jn.removeRange(t,r,"backward");return jn.replaceWithFragment(a,i,n)},replaceWithFragment:function(t,r,i){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",a=Jr(t,r),u=Yr(a,r);return X0(u,u.getSelectionAfter(),i,n)},removeRange:function(t,r,i){var n,a,u,c;r.getIsBackward()&&(r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:!1})),n=r.getAnchorKey(),a=r.getFocusKey(),u=t.getBlockForKey(n),c=t.getBlockForKey(a);var l=r.getStartOffset(),g=r.getEndOffset(),d=u.getEntityAt(l),y=c.getEntityAt(g-1);if(n===a&&d&&d===y){var v=G0(t.getEntityMap(),u,c,r,i);return Yr(t,v)}var S=Jr(t,r);return Yr(S,r)},splitBlock:function(t,r){var i=Jr(t,r),n=Yr(i,r);return eE(n,n.getSelectionAfter())},applyInlineStyle:function(t,r,i){return jc.add(t,r,i)},removeInlineStyle:function(t,r,i){return jc.remove(t,r,i)},setBlockType:function(t,r,i){return Wo(t,r,function(n){return n.merge({type:i,depth:0})})},setBlockData:function(t,r,i){return Wo(t,r,function(n){return n.merge({data:i})})},mergeBlockData:function(t,r,i){return Wo(t,r,function(n){return n.merge({data:n.getData().merge(i)})})},applyEntity:function(t,r,i){var n=Jr(t,r);return $0(n,r,i)}};$c.exports=jn});var Vo=x((Q1,Gc)=>{"use strict";function rE(e){return Object.keys(e).map(function(t){return e[t]})}Gc.exports=rE});var el=x((eO,Qc)=>{"use strict";function nE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){iE(e,n,r[n])})}return e}function iE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oE(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,a;for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var Jc=yr(),aE=Vo(),$o=re(),Er=$o.List,sE=$o.Repeat,Yc=$o.Record,Xc=function(){return!0},uE={start:null,end:null},jo=Yc(uE),cE={start:null,end:null,decoratorKey:null,leaves:null},Ho=Yc(cE),lE={generate:function(t,r,i){var n=r.getLength();if(!n)return Er.of(new Ho({start:0,end:0,decoratorKey:null,leaves:Er.of(new jo({start:0,end:0}))}));var a=[],u=i?i.getDecorations(r,t):Er(sE(null,n)),c=r.getCharacterList();return Jc(u,Zc,Xc,function(l,g){a.push(new Ho({start:l,end:g,decoratorKey:u.get(l),leaves:fE(c.slice(l,g).toList(),l)}))}),Er(a)},fromJS:function(t){var r=t.leaves,i=oE(t,["leaves"]);return new Ho(nE({},i,{leaves:r!=null?Er(Array.isArray(r)?r:aE(r)).map(function(n){return jo(n)}):null}))}};function fE(e,t){var r=[],i=e.map(function(n){return n.getStyle()}).toList();return Jc(i,Zc,Xc,function(n,a){r.push(new jo({start:n+t,end:a+t}))}),Er(r)}function Zc(e,t){return e===t}Qc.exports=lE});var Go=x((tO,tl)=>{"use strict";function pE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dE=re(),gE=dE.Record,hE=gE({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),vE=function(e){pE(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},t}(hE);tl.exports=vE});var nl=x((rO,rl)=>{"use strict";function yE(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}rl.exports=yE});var Zr=x((nO,il)=>{"use strict";function mE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){SE(e,n,r[n])})}return e}function SE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var EE=Go(),_E=re(),CE=ie(),Jo=nl(),xE=_E.Map,ht=xE(),Xr=Jo();function _r(e,t){console.warn("WARNING: "+e+` will be deprecated soon! 30Please use "`+t+'" instead.')}var it={getLastCreatedEntityKey:function(){return _r("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),it.__getLastCreatedEntityKey()},create:function(t,r,i){return _r("DraftEntity.create","contentState.createEntity"),it.__create(t,r,i)},add:function(t){return _r("DraftEntity.add","contentState.addEntity"),it.__add(t)},get:function(t){return _r("DraftEntity.get","contentState.getEntity"),it.__get(t)},__getAll:function(){return ht},__loadWithEntities:function(t){ht=t,Xr=Jo()},mergeData:function(t,r){return _r("DraftEntity.mergeData","contentState.mergeEntityData"),it.__mergeData(t,r)},replaceData:function(t,r){return _r("DraftEntity.replaceData","contentState.replaceEntityData"),it.__replaceData(t,r)},__getLastCreatedEntityKey:function(){return Xr},__create:function(t,r,i){return it.__add(new EE({type:t,mutability:r,data:i||{}}))},__add:function(t){return Xr=Jo(),ht=ht.set(Xr,t),Xr},__get:function(t){var r=ht.get(t);return r||CE(!1),r},__mergeData:function(t,r){var i=it.__get(t),n=mE({},i.getData(),r),a=i.set("data",n);return ht=ht.set(t,a),a},__replaceData:function(t,r){var i=it.__get(t),n=i.set("data",r);return ht=ht.set(t,n),n}};il.exports=it});var Qr=x((iO,ol)=>{"use strict";function wE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var DE=re(),BE=DE.Record,kE={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},AE=BE(kE),FE=function(e){wE(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(n,a,u){var c=this.getAnchorKey(),l=this.getFocusKey();if(c===l&&c===n){var g=this.getStartOffset(),d=this.getEndOffset();return a<=g&&g<=u||a<=d&&d<=u}if(n!==c&&n!==l)return!1;var y=n===c?this.getAnchorOffset():this.getFocusOffset();return a<=y&&u>=y},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(n){return new t({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(AE);ol.exports=FE});var vt=x((oO,al)=>{"use strict";al.exports=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1}});var Yo=x((aO,sl)=>{"use strict";var bE=new RegExp("\r","g");function TE(e){return e.replace(bE,"")}sl.exports=TE});var Gn=x((sO,pl)=>{"use strict";function ul(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){OE(e,n,r[n])})}return e}function OE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var KE=vr(),cl=qe(),ME=bt(),IE=Pe(),ot=Zr(),$n=Qr(),RE=Je(),NE=Vo(),qE=vt(),en=re(),PE=Yo(),ll=en.List,UE=en.Record,zE=en.Repeat,WE=en.Map,VE=en.OrderedMap,HE={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},jE=UE(HE),fl=qE("draft_tree_data_support")?IE:ME,$E=function(e){LE(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getEntityMap=function(){return ot},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(n){var a=this.getBlockMap().get(n);return a},r.getKeyBefore=function(n){return this.getBlockMap().reverse().keySeq().skipUntil(function(a){return a===n}).skip(1).first()},r.getKeyAfter=function(n){return this.getBlockMap().keySeq().skipUntil(function(a){return a===n}).skip(1).first()},r.getBlockAfter=function(n){return this.getBlockMap().skipUntil(function(a,u){return u===n}).skip(1).first()},r.getBlockBefore=function(n){return this.getBlockMap().reverse().skipUntil(function(a,u){return u===n}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(n){return this.getBlockMap().map(function(a){return a?a.getText():""}).join(n||` 31`)},r.getLastCreatedEntityKey=function(){return ot.__getLastCreatedEntityKey()},r.hasText=function(){var n=this.getBlockMap();return n.size>1||escape(n.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(n,a,u){return ot.__create(n,a,u),this},r.mergeEntityData=function(n,a){return ot.__mergeData(n,a),this},r.replaceEntityData=function(n,a){return ot.__replaceData(n,a),this},r.addEntity=function(n){return ot.__add(n),this},r.getEntity=function(n){return ot.__get(n)},r.getAllEntities=function(){return ot.__getAll()},r.loadWithEntities=function(n){return ot.__loadWithEntities(n)},t.createFromBlockArray=function(n,a){var u=Array.isArray(n)?n:n.contentBlocks,c=KE.createFromArray(u),l=c.isEmpty()?new $n:$n.createEmpty(c.first().getKey());return new t({blockMap:c,entityMap:a||ot,selectionBefore:l,selectionAfter:l})},t.createFromText=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,u=n.split(a),c=u.map(function(l){return l=PE(l),new fl({key:RE(),text:l,type:"unstyled",characterList:ll(zE(cl.EMPTY,l.length))})});return t.createFromBlockArray(c)},t.fromJS=function(n){return new t(ul({},n,{blockMap:VE(n.blockMap).map(t.createContentBlockFromJS),selectionBefore:new $n(n.selectionBefore),selectionAfter:new $n(n.selectionAfter)}))},t.createContentBlockFromJS=function(n){var a=n.characterList;return new fl(ul({},n,{data:WE(n.data),characterList:a!=null?ll((Array.isArray(a)?a:NE(a)).map(function(u){return cl.fromJS(u)})):void 0}))},t}(jE);pl.exports=$E});var tn=x((uO,vl)=>{"use strict";var Yn=ie(),GE="NEUTRAL",Zn="LTR",dl="RTL",Jn=null;function Xn(e){return e===Zn||e===dl}function gl(e){return Xn(e)||Yn(!1),e===Zn?"ltr":"rtl"}function JE(e,t){return Xn(e)||Yn(!1),Xn(t)||Yn(!1),e===t?null:gl(e)}function hl(e){Jn=e}function YE(){hl(Zn)}function XE(){return Jn||this.initGlobalDir(),Jn||Yn(!1),Jn}var ZE={NEUTRAL:GE,LTR:Zn,RTL:dl,isStrong:Xn,getHTMLDir:gl,getHTMLDirIfDifferent:JE,setGlobalDir:hl,initGlobalDir:YE,getGlobalDir:XE};vl.exports=ZE});var Qn=x((cO,El)=>{"use strict";var yt=tn(),QE=ie(),rn={L:"A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u01BA\u01BB\u01BC-\u01BF\u01C0-\u01C3\u01C4-\u0293\u0294\u0295-\u02AF\u02B0-\u02B8\u02BB-\u02C1\u02D0-\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A\u037B-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0482\u048A-\u052F\u0531-\u0556\u0559\u055A-\u055F\u0561-\u0587\u0589\u0903\u0904-\u0939\u093B\u093D\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096F\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09CE\u09D7\u09DC-\u09DD\u09DF-\u09E1\u09E6-\u09EF\u09F0-\u09F1\u09F4-\u09F9\u09FA\u0A03\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0AD0\u0AE0-\u0AE1\u0AE6-\u0AEF\u0AF0\u0B02-\u0B03\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B70\u0B71\u0B72-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BEF\u0BF0-\u0BF2\u
310C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C59\u0C60-\u0C61\u0C66-\u0C6F\u0C7F\u0C82-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CBE\u0CBF\u0CC0-\u0CC4\u0CC6\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF2\u0D02-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D61\u0D66-\u0D6F\u0D70-\u0D75\u0D79\u0D7A-\u0D7F\u0D82-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0DF4\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E46\u0E4F\u0E50-\u0E59\u0E5A-\u0E5B\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F01-\u0F03\u0F04-\u0F12\u0F13\u0F14\u0F15-\u0F17\u0F1A-\u0F1F\u0F20-\u0F29\u0F2A-\u0F33\u0F34\u0F36\u0F38\u0F3E-\u0F3F\u0F40-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FCF\u0FD0-\u0FD4\u0FD5-\u0FD8\u0FD9-\u0FDA\u1000-\u102A\u102B-\u102C\u1031\u1038\u103B-\u103C\u103F\u1040-\u1049\u104A-\u104F\u1050-\u1055\u1056-\u1057\u105A-\u105D\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106D\u106E-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108C\u108E\u108F\u1090-\u1099\u109A-\u109C\u109E-\u109F\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FB\u10FC\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u1368\u1369-\u137C\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166D-\u166E\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EB-\u16ED\u16EE-\u16F0\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7-\u17C8\u17D4-\u17D6\u17D7\u17D8-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1946-\u194F\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C0\u19C1-\u19C7\u19C8-\u19C9\u19D0-\u19D9\u19DA\u1A00-\u1A16\u1A19-\u1A1A\u1A1E-\u1A1F\u1A20-\u1A54\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AA6\u1AA7\u1AA8-\u1AAD\u1B04\u1B05-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B45-\u1B4B\u1B50-\u1B59\u1B5A-\u1B60\u1B61-\u1B6A\u1B74-\u1B7C\u1B82\u1B83-\u1BA0\u1BA1\u1BA6-\u1BA7\u1BAA\u1BAE-\u1BAF\u1BB0-\u1BB9\u1BBA-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1BFC-\u1BFF\u1C00-\u1C23\u1C24-\u1C2B\u1C34-\u1C35\u1C3B-\u1C3F\u1C40-\u1C49\u1C4D-\u1C4F\u1C50-\u1C59\u1C5A-\u1C77\u1C78-\u1C7D\u1C7E-\u1C7F\u1CC0-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF2-\u1CF3\u1CF5-\u1CF6\u1D00-\u1D2B\u1D2C-\u1D6A\u1D6B-\u1D77\u1D78\u1D79-\u1D9A\u1D9B-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2134\u2135-\u2138\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C7B\u2C7C-\u2C7D\u2C7E-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005\u3006\u3007\u3021-\u3029\u302E-\u302F\u3031-\u3035\u3038-\u303A\u303B\u303C\u3041-\u3096\u309D-\u309E\u309F\u30A1-\u30FA\u30FC-\u30FE\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u3191\u3192-\u3195\u3196-\u319F\u31A0-\u31BA\u31F0-\u31FF\u3200-\u321C\u3220-\u3229\u322A-\u3247\u3248-\u324F\u3260-\u327B\u327F\u3280-\u3289\u328A-\u32B0\u32C0-\u32CB\u32D0-\u32FE\u3300-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA014\uA015\uA016-\uA48C\uA4D0-\uA4F7\uA4F8-\uA4FD\uA4FE-\uA4FF\uA500-\uA60B\uA60C\uA610-\uA61F\uA620-\uA629\uA62A-\uA62B\uA640-\uA66D\uA66E\uA680-\uA69B\uA69C-\uA69D\uA6A0-\uA6E5\uA6E6-\uA6EF\uA6F2-\uA6F7\uA722-\uA76F\uA770\uA771-\uA787\uA789-\uA78A\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B1\uA7F7\uA7F8-\uA7F9\uA7FA\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA823-\uA824\uA827\uA830-\uA835\uA836-\uA837\uA840-\uA873\uA880-\uA881\uA882-\uA8B3\uA8B4-\uA8C3\uA8CE-\uA8CF\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8F8-\uA8FA\uA8FB\uA900-\uA909\uA90A-\uA925\uA92E-\uA92F\uA930-\uA946\uA952-\uA953\uA95F\uA960-\uA97C\uA983\uA984-\uA9B2\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uA9C1-\uA9CD\uA9CF\uA9D0-\uA9D9\uA9DE-\uA9DF\uA9E0-\uA9E4\uA9E6\uA9E7-\uA9EF\uA9F0-\uA9F9\uA9FA-\uA9FE\uAA00-\uAA28\uAA2F-\uAA30\uAA33-\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA5F\uAA60-\uAA6F\uAA70\uAA71-\uAA76\uAA77-\uAA79\uAA7A\uAA7B\uAA7D\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAADD\uAADE-\uAADF\uAAE0-\uAAEA\uAAEB\uAAEE-\uAAEF\uAAF0-\uAAF1\uAAF2\uAAF3-\uAAF4\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5B\uAB5C-\uAB5F\uAB64-\uAB65\uABC0-\uABE2\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEB\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uE000-\uF8FF\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFF6F\uFF70\uFF71-\uFF9D\uFF9E-\uFF9F\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",R:"\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05D0-\u05EA\u05EB-\u05EF\u05F0-\u05F2\u05F3-\u05F4\u05F5-\u05FF\u07C0-\u07C9\u07CA-\u07EA\u07F4-\u07F5\u07FA\u07FB-\u07FF\u0800-\u0815\u081A\u0824\u0828\u082E-\u082F\u0830-\u083E\u083F\u0840-\u0858\u085C-\u085D\u085E\u085F-\u089F\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB37\uFB38-\uFB3C\uFB3D\uFB3E\uFB3F\uFB40-\uFB41\uFB42\uFB43-\uFB44\uFB45\uFB46-\uFB4F",AL:"\u0608\u060B\u060D\u061B\u061C\u061D\u061E-\u061F\u0620-\u063F\u0640\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070E\u070F\u0710\u0712-\u072F\u074B-\u074C\u074D-\u07A5\u07B1\u07B2-\u07BF\u08A0-\u08B2\u08B3-\u08E3\uFB50-\uFBB1\uFBB2-\uFBC1\uFBC2-\uFBD2\uFBD3-\uFD3D\uFD40-\uFD4F\uFD50-\uFD8F\uFD90-\uFD91\uFD92-\uFDC7\uFDC8-\uFDCF\uFDF0-\uFDFB\uFDFC\uFDFE-\uFDFF\uFE70-\uFE74\uFE75\uFE76-\uFEFC\uFEFD-\uFEFE"},e_=new RegExp("["+rn.L+rn.R+rn.AL+"]"),t_=new RegExp("["+rn.R+rn.AL+"]");function yl(e){var t=e_.exec(e);return t==null?null:t[0]}function ml(e){var t=yl(e);return t==null?yt.NEUTRAL:t_.exec(t)?yt.RTL:yt.LTR}function Sl(e,t){if(t=t||yt.NEUTRAL,!e.length)return t;var r=ml(e);return r===yt.NEUTRAL?t:r}function Xo(e,t){return t||(t=yt.getGlobalDir()),yt.isStrong(t)||QE(!1),Sl(e,t)}function r_(e,t){return Xo(e,t)===yt.LTR}function n_(e,t){return Xo(e,t)===yt.RTL}var i_={firstStrongChar:yl,firstStrongCharDir:ml,resolveBlockDir:Sl,getDirection:Xo,isDirectionLTR:r_,isDirectionRTL:n_};El.exports=i_});var wl=x((lO,xl)=>{"use strict";function _l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o_=Qn(),Cl=tn(),a_=ie(),s_=function(){function e(r){_l(this,"_defaultDir",void 0),_l(this,"_lastDir",void 0),r?Cl.isStrong(r)||a_(!1):r=Cl.getGlobalDir(),this._defaultDir=r,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(i){return this._lastDir=o_.getDirection(i,this._lastDir),this._lastDir},e}();xl.exports=s_});var Fe=x((fO,Dl)=>{"use strict";var u_=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")};Dl.exports=u_});var Al=x((pO,kl)=>{"use strict";var c_=wl(),Bl=re(),l_=Fe(),f_=Bl.OrderedMap,ei,p_={getDirectionMap:function(t,r){ei?ei.reset():ei=new c_;var i=t.getBlockMap(),n=i.valueSeq().map(function(u){return l_(ei).getDirection(u.getText())}),a=f_(i.keySeq().zip(n));return r!=null&&Bl.is(r,a)?r:a}};
vendor: 12,549 bytes, line 31
31kl.exports=p_});var ue=x((dO,Nl)=>{"use strict";function Fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){Kl(e,n,r[n])})}return e}function Kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ri=el(),nn=Gn(),ti=Al(),Zo=Qr(),on=re(),Ml=on.OrderedSet,d_=on.Record,Ht=on.Stack,bl=on.OrderedMap,g_=on.List,h_={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Ht(),selection:null,treeMap:null,undoStack:Ht()},Tl=d_(h_),Il=function(){t.createEmpty=function(i){return this.createWithText("",i)},t.createWithText=function(i,n){return t.createWithContent(nn.createFromText(i),n)},t.createWithContent=function(i,n){if(i.getBlockMap().count()===0)return t.createEmpty(n);var a=i.getBlockMap().first().getKey();return t.create({currentContent:i,undoStack:Ht(),redoStack:Ht(),decorator:n||null,selection:Zo.createEmpty(a)})},t.create=function(i){var n=i.currentContent,a=i.decorator,u=Fl({},i,{treeMap:Ll(n,a),directionMap:ti.getDirectionMap(n)});return new t(new Tl(u))},t.fromJS=function(i){return new t(new Tl(Fl({},i,{directionMap:i.directionMap!=null?bl(i.directionMap):i.directionMap,inlineStyleOverride:i.inlineStyleOverride!=null?Ml(i.inlineStyleOverride):i.inlineStyleOverride,nativelyRenderedContent:i.nativelyRenderedContent!=null?nn.fromJS(i.nativelyRenderedContent):i.nativelyRenderedContent,redoStack:i.redoStack!=null?Ht(i.redoStack.map(function(n){return nn.fromJS(n)})):i.redoStack,selection:i.selection!=null?new Zo(i.selection):i.selection,treeMap:i.treeMap!=null?bl(i.treeMap).map(function(n){return g_(n).map(function(a){return ri.fromJS(a)})}):i.treeMap,undoStack:i.undoStack!=null?Ht(i.undoStack.map(function(n){return nn.fromJS(n)})):i.undoStack,currentContent:nn.fromJS(i.currentContent)})))},t.set=function(i,n){var a=i.getImmutable().withMutations(function(u){var c=u.get("decorator"),l=c;n.decorator===null?l=null:n.decorator&&(l=n.decorator);var g=n.currentContent||i.getCurrentContent();if(l!==c){var d=u.get("treeMap"),y;l&&c?y=y_(g,g.getBlockMap(),d,l,c):y=Ll(g,l),u.merge({decorator:l,treeMap:y,nativelyRenderedContent:null});return}var v=i.getCurrentContent();g!==v&&u.set("treeMap",v_(i,g.getBlockMap(),g.getEntityMap(),l)),u.merge(n)});return new t(a)};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(i,n){return t.set(i,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var i=this.getInlineStyleOverride();if(i!=null)return i;var n=this.getCurrentContent(),a=this.getSelection();return a.isCollapsed()?S_(n,a):E_(n,a)},e.getBlockTree=function(i){return this.getImmutable().getIn(["treeMap",i])},e.isSelectionAtStartOfContent=function(){var i=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(i,0,0)},e.isSelectionAtEndOfContent=function(){var i=this.getCurrentContent(),n=i.getBlockMap(),a=n.last(),u=a.getLength();return this.getSelection().hasEdgeWithin(a.getKey(),u,u)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(i,n){return Ol(i,n,!1)},t.forceSelection=function(i,n){return n.getHasFocus()||(n=n.set("hasFocus",!0)),Ol(i,n,!0)},t.moveSelectionToEnd=function(i){var n=i.getCurrentContent(),a=n.getLastBlock(),u=a.getKey(),c=a.getLength();return t.acceptSelection(i,new Zo({anchorKey:u,anchorOffset:c,focusKey:u,focusOffset:c,isBackward:!1}))},t.moveFocusToEnd=function(i){var n=t.moveSelectionToEnd(i);return t.forceSelection(n,n.getSelection())},t.push=function(i,n,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(i.getCurrentContent()===n)return i;var c=ti.getDirectionMap(n,i.getDirectionMap());if(!i.getAllowUndo())return t.set(i,{currentContent:n,directionMap:c,lastChangeType:a,selection:n.getSelectionAfter(),forceSelection:u,inlineStyleOverride:null});var l=i.getSelection(),g=i.getCurrentContent(),d=i.getUndoStack(),y=n;l!==g.getSelectionAfter()||m_(i,a)?(d=d.push(g),y=y.set("selectionBefore",l)):(a==="insert-characters"||a==="backspace-character"||a==="delete-character")&&(y=y.set("selectionBefore",g.getSelectionBefore()));var v=i.getInlineStyleOverride(),S=["adjust-depth","change-block-type","split-block"];S.indexOf(a)===-1&&(v=null);var _={currentContent:y,directionMap:c,undoStack:d,redoStack:Ht(),lastChangeType:a,selection:n.getSelectionAfter(),forceSelection:u,inlineStyleOverride:v};return t.set(i,_)},t.undo=function(i){if(!i.getAllowUndo())return i;var n=i.getUndoStack(),a=n.peek();if(!a)return i;var u=i.getCurrentContent(),c=ti.getDirectionMap(a,i.getDirectionMap());return t.set(i,{currentContent:a,directionMap:c,undoStack:n.shift(),redoStack:i.getRedoStack().push(u),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:u.getSelectionBefore()})},t.redo=function(i){if(!i.getAllowUndo())return i;var n=i.getRedoStack(),a=n.peek();if(!a)return i;var u=i.getCurrentContent(),c=ti.getDirectionMap(a,i.getDirectionMap());return t.set(i,{currentContent:a,directionMap:c,undoStack:i.getUndoStack().push(u),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:a.getSelectionAfter()})};function t(r){Kl(this,"_immutable",void 0),this._immutable=r}return e.getImmutable=function(){return this._immutable},t}();function Ol(e,t,r){return Il.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function Ll(e,t){return e.getBlockMap().map(function(r){return ri.generate(e,r,t)}).toOrderedMap()}function v_(e,t,r,i){var n=e.getCurrentContent().set("entityMap",r),a=n.getBlockMap(),u=e.getImmutable().get("treeMap");return u.merge(t.toSeq().filter(function(c,l){return c!==a.get(l)}).map(function(c){return ri.generate(n,c,i)}))}function y_(e,t,r,i,n){return r.merge(t.toSeq().filter(function(a){return i.getDecorations(a,e)!==n.getDecorations(a,e)}).map(function(a){return ri.generate(e,a,i)}))}function m_(e,t){var r=e.getLastChangeType();return t!==r||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function S_(e,t){var r=t.getStartKey(),i=t.getStartOffset(),n=e.getBlockForKey(r);return i>0?n.getInlineStyleAt(i-1):n.getLength()?n.getInlineStyleAt(0):Rl(e,r)}function E_(e,t){var r=t.getStartKey(),i=t.getStartOffset(),n=e.getBlockForKey(r);return i<n.getLength()?n.getInlineStyleAt(i):i>0?n.getInlineStyleAt(i-1):Rl(e,r)}function Rl(e,t){var r=e.getBlockMap().reverse().skipUntil(function(i,n){return n===t}).skip(1).skipUntil(function(i,n){return i.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):Ml()}Nl.exports=Il});var Ul=x((gO,Pl)=>{"use strict";var __=Pe(),C_=Uo(),ql=re(),ni=ie(),x_=ql.OrderedMap,w_=ql.List,jt=function(t,r,i){if(t){var n=r.get(t);n&&r.set(t,i(n))}},D_=function(t,r,i,n,a){if(!a)return t;var u=n==="after",c=r.getKey(),l=i.getKey(),g=r.getParentKey(),d=r.getNextSiblingKey(),y=r.getPrevSiblingKey(),v=i.getParentKey(),S=u?i.getNextSiblingKey():l,_=u?l:i.getPrevSiblingKey();return t.withMutations(function(A){jt(g,A,function(B){var w=B.getChildKeys();return B.merge({children:w.delete(w.indexOf(c))})}),jt(y,A,function(B){return B.merge({nextSibling:d})}),jt(d,A,function(B){return B.merge({prevSibling:y})}),jt(S,A,function(B){return B.merge({prevSibling:c})}),jt(_,A,function(B){return B.merge({nextSibling:c})}),jt(v,A,function(B){var w=B.getChildKeys(),k=w.indexOf(l),b=u?k+1:k!==0?k-1:0,O=w.toArray();return O.splice(b,0,c),B.merge({children:w_(O)})}),jt(c,A,function(B){return B.merge({nextSibling:S,prevSibling:_,parent:v})})})},B_=function(t,r,i,n){n==="replace"&&ni(!1);var a=i.getKey(),u=r.getKey();u===a&&ni(!1);var c=t.getBlockMap(),l=r instanceof __,g=[r],d=c.delete(u);l&&(g=[],d=c.withMutations(function(w){var k=r.getNextSiblingKey(),b=C_(r,w);w.toSeq().skipUntil(function(O){return O.getKey()===u}).takeWhile(function(O){var N=O.getKey(),q=N===u,K=k&&N!==k,V=!k&&O.getParentKey()&&(!b||N!==b);return!!(q||K||V)}).forEach(function(O){g.push(O),w.delete(O.getKey())})}));var y=d.toSeq().takeUntil(function(w){return w===i}),v=d.toSeq().skipUntil(function(w){return w===i}).skip(1),S=g.map(function(w){return[w.getKey(),w]}),_=x_();if(n==="before"){var A=t.getBlockBefore(a);!A||A.getKey()!==r.getKey()||ni(!1),_=y.concat([].concat(S,[[a,i]]),v).toOrderedMap()}else if(n==="after"){var B=t.getBlockAfter(a);!B||B.getKey()!==u||ni(!1),_=y.concat([[a,i]].concat(S),v).toOrderedMap()}return t.merge({blockMap:D_(_,r,i,n,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})};Pl.exports=B_});var Jl=x((hO,Gl)=>{"use strict";function zl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){k_(e,n,r[n])})}return e}function k_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A_=vr(),F_=qe(),b_=bt(),T_=Pe(),Cr=Ae(),Wl=ue(),Vl=Je(),O_=vt(),jl=re(),ii=Ul(),$l=O_("draft_tree_data_support"),Hl=$l?T_:b_,L_=jl.List,K_=jl.Repeat,M_={insertAtomicBlock:function(t,r,i){var n=t.getCurrentContent(),a=t.getSelection(),u=Cr.removeRange(n,a,"backward"),c=u.getSelectionAfter(),l=Cr.splitBlock(u,c),g=l.getSelectionAfter(),d=Cr.setBlockType(l,g,"atomic"),y=F_.create({entity:r}),v={key:Vl(),type:"atomic",text:i,characterList:L_(K_(y,i.length))},S={key:Vl(),type:"unstyled"};$l&&(v=zl({},v,{nextSibling:S.key}),S=zl({},S,{prevSibling:v.key}));var _=[new Hl(v),new Hl(S)],A=A_.createFromArray(_),B=Cr.replaceWithFragment(d,g,A),w=B.merge({selectionBefore:a,selectionAfter:B.getSelectionAfter().set("hasFocus",!0)});return Wl.push(t,w,"insert-fragment")},moveAtomicBlock:function(t,r,i,n){var a=t.getCurrentContent(),u=t.getSelection(),c;if(n==="before"||n==="after"){var l=a.getBlockForKey(n==="before"?i.getStartKey():i.getEndKey());c=ii(a,r,l,n)}else{var g=Cr.removeRange(a,i,"backward"),d=g.getSelectionAfter(),y=g.getBlockForKey(d.getFocusKey());if(d.getStartOffset()===0)c=ii(g,r,y,"before");else if(d.getEndOffset()===y.getLength())c=ii(g,r,y,"after");else{var v=Cr.splitBlock(g,d),S=v.getSelectionAfter(),_=v.getBlockForKey(S.getFocusKey());c=ii(v,r,_,"before")}}var A=c.merge({selectionBefore:u,selectionAfter:c.getSelectionAfter().set("hasFocus",!0)});return Wl.push(t,A,"move-block")}};Gl.exports=M_});var Xl=x((vO,Yl)=>{"use strict";function I_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R_=re(),N_=R_.List,Qo=".",q_=function(){function e(r){I_(this,"_decorators",void 0),this._decorators=r.slice()}var t=e.prototype;return t.getDecorations=function(i,n){var a=Array(i.getText().length).fill(null);return this._decorators.forEach(function(u,c){var l=0,g=u.strategy,d=function(v,S){P_(a,v,S)&&(U_(a,v,S,c+Qo+l),l++)};g(i,d,n)}),N_(a)},t.getComponentForKey=function(i){var n=parseInt(i.split(Qo)[0],10);return this._decorators[n].component},t.getPropsForKey=function(i){var n=parseInt(i.split(Qo)[0],10);return this._decorators[n].props},e}();function P_(e,t,r){for(var i=t;i<r;i++)if(e[i]!=null)return!1;return!0}
31function U_(e,t,r,i){for(var n=t;n<r;n++)e[n]=i}Yl.exports=q_});var Tt=x((yO,Ql)=>{"use strict";function z_(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(Zl).join(" "):Array.prototype.map.call(arguments,Zl).join(" ")}function Zl(e){return e.replace(/\//g,"-")}Ql.exports=z_});var oi=x((mO,ef)=>{"use strict";var ea=Ne(),ta=Tt(),W_=re(),V_=W_.Map,H_=ea.createElement("ul",{className:ta("public/DraftStyleDefault/ul")}),j_=ea.createElement("ol",{className:ta("public/DraftStyleDefault/ol")}),$_=ea.createElement("pre",{className:ta("public/DraftStyleDefault/pre")}),G_=V_({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:H_},"ordered-list-item":{element:"li",wrapper:j_},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:$_},unstyled:{element:"div",aliasedElements:["p"]}});ef.exports=G_});var ra=x((SO,tf)=>{"use strict";tf.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}});var rf=x((an,ai)=>{"use strict";(function(e,t){"use strict";var r="0.7.20",i="",n="?",a="function",u="undefined",c="object",l="string",g="major",d="model",y="name",v="type",S="vendor",_="version",A="architecture",B="console",w="mobile",k="tablet",b="smarttv",O="wearable",N="embedded",q={extend:function(I,z){var L={};for(var Y in I)z[Y]&&z[Y].length%2===0?L[Y]=z[Y].concat(I[Y]):L[Y]=I[Y];return L},has:function(I,z){return typeof I=="string"?z.toLowerCase().indexOf(I.toLowerCase())!==-1:!1},lowerize:function(I){return I.toLowerCase()},major:function(I){return typeof I===l?I.replace(/[^\d\.]/g,"").split(".")[0]:t},trim:function(I){return I.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},K={rgx:function(I,z){for(var L=0,Y,X,oe,H,Ee,de;L<z.length&&!Ee;){var Oe=z[L],Z=z[L+1];for(Y=X=0;Y<Oe.length&&!Ee;)if(Ee=Oe[Y++].exec(I),Ee)for(oe=0;oe<Z.length;oe++)de=Ee[++X],H=Z[oe],typeof H===c&&H.length>0?H.length==2?typeof H[1]==a?this[H[0]]=H[1].call(this,de):this[H[0]]=H[1]:H.length==3?typeof H[1]===a&&!(H[1].exec&&H[1].test)?this[H[0]]=de?H[1].call(this,de,H[2]):t:this[H[0]]=de?de.replace(H[1],H[2]):t:H.length==4&&(this[H[0]]=de?H[3].call(this,de.replace(H[1],H[2])):t):this[H]=de||t;L+=2}},str:function(I,z){for(var L in z)if(typeof z[L]===c&&z[L].length>0){for(var Y=0;Y<z[L].length;Y++)if(q.has(z[L][Y],I))return L===n?t:L}else if(q.has(z[L],I))return L===n?t:L;return I}},V={browser:{oldsafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},U={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[y,_],[/(opios)[\/\s]+([\w\.]+)/i],[[y,"Opera Mini"],_],[/\s(opr)\/([\w\.]+)/i],[[y,"Opera"],_],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[y,_],[/(konqueror)\/([\w\.]+)/i],[[y,"Konqueror"],_],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[y,"IE"],_],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[y,"Edge"],_],[/(yabrowser)\/([\w\.]+)/i],[[y,"Yandex"],_],[/(puffin)\/([\w\.]+)/i],[[y,"Puffin"],_],[/(focus)\/([\w\.]+)/i],[[y,"Firefox Focus"],_],[/(opt)\/([\w\.]+)/i],[[y,"Opera Touch"],_],[/((?:[\s\/]
31)uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[y,"UCBrowser"],_],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],_],[/(windowswechat qbcore)\/([\w\.]+)/i],[[y,"WeChat(Win) Desktop"],_],[/(micromessenger)\/([\w\.]+)/i],[[y,"WeChat"],_],[/(brave)\/([\w\.]+)/i],[[y,"Brave"],_],[/(qqbrowserlite)\/([\w\.]+)/i],[y,_],[/(QQ)\/([\d\.]+)/i],[y,_],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[y,_],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[y,_],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[y,_],[/(MetaSr)[\/\s]?([\w\.]+)/i],[y],[/(LBBROWSER)/i],[y],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[_,[y,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[_,[y,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[y,_],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[_,[y,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[y,/(.+)/,"$1 WebView"],_],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[y,/(.+(?:g|us))(.+)/,"$1 $2"],_],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[_,[y,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[y,"Sailfish Browser"],_],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[y,_],[/(dolfin)\/([\w\.]+)/i],[[y,"Dolphin"],_],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[y,"Chrome"],_],[/(coast)\/([\w\.]+)/i],[[y,"Opera Coast"],_],[/fxios\/([\w\.-]+)/i],[_,[y,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[_,[y,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[_,y],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[y,"GSA"],_],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[y,[_,K.str,V.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[y,_],[/(navigator|netscape)\/([\w\.-]+)/i],[[y,"Netscape"],_],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.
31+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[y,_]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[A,/ower/,"",q.lowerize]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[A,q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[d,S,[v,k]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[S,"Apple"],[v,k]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[S,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[S,d,[v,k]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[d,[S,"Amazon"],[v,k]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[d,K.str,V.device.amazon.model],[S,"Amazon"],[v,w]],[/android.+aft([bms])\sbuild/i],[d,[S,"Amazon"],[v,b]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,S,[v,w]],[/\((ip[honed|\s\w*]+);/i],[d,[S,"Apple"],[v,w]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[S,d,[v,w]],[/\(bb10;\s(\w+)/i],[d,[S,"BlackBerry"],[v,w]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[d,[S,"Asus"],[v,k]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[S,"Sony"],[d,"Xperia Tablet"],[v,k]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[S,"Sony"],[v,w]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[S,d,[v,B]],[/android.+;\s(shield)\sbuild/i],[d,[S,"Nvidia"],[v,B]],[/(playstation\s[34portablevi]+)/i],[d,[S,"Sony"],[v,B]],[/(sprint\s(\w+))/i],[[S,K.str,V.device.sprint.vendor],[d,K.str,V.device.sprint.model],[v,w]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[S,[d,/_/g," "],[v,w]],[/(nexus\s9)/i],[d,[S,"HTC"],[v,k]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[d,[S,"Huawei"],[v,w]],[/(microsoft);\s(lumia[\s\w]+)/i],[S,d,[v,w]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[S,"Microsoft"],[v,B]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[S,"Microsoft"],[v,w]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[d,[S,"Motorola"],[v,w]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[S,"Motorola"],[v,k]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[S,q.trim],[d,q.trim],[v,b]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[S,"Samsung"],[v,b]],[/\(dtv[\);].+(aquos)/i],[d,[S,"Sharp"],[v,b]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[S,"Samsung"],d,[v,k]],[/smart-tv.+(samsung)/i],[S,[v,b],d],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[S,"Samsung"],d,[v,w]],[/sie-(\w*)/i],[d,[S,"Siemens"],[v,w]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[S,"Nokia"],d,[v,w]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[d,[S,"Acer"],[v,k]],[/android.+([vl]k\-?\d{3})\s+build/i],[d,[S,"LG"],[v,k]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[S,"LG"],d,[v,k]],[/(lg) netcast\.tv/i],[S,d,[v,b]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[d,[S,"LG"],[v,w]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[S,d,[v,k]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[S,"Lenovo"],[v,k]],[/(lenovo)[_\s-]?([\w-]+)/i],[S,d,[v,w]],[/linux;.+((jolla));/i],[S,d,[v,w]],[/((pebble))app\/[\d\.]+\s/i],[S,d,[v,O]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[S,d,[v,w]],[/crkey/i],[[d,"Chromecast"],[S,"Google"]],[/android.+;\s(glass)\s\d/i],[d,[S,"Google"],[v,O]],[/android.+;\s(pixel c)[\s)]/i],[d,[S,"Google"],[v,k]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[d,[S,"Google"],[v,w]],[/android.+;
vendor: 2,969 bytes, line 31
31\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[S,"Xiaomi"],[v,w]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[S,"Xiaomi"],[v,k]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[d,[S,"Meizu"],[v,w]],[/(mz)-([\w-]{2,})/i],[[S,"Meizu"],d,[v,w]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[d,[S,"OnePlus"],[v,w]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[d,[S,"RCA"],[v,k]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[d,[S,"Dell"],[v,k]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[d,[S,"Verizon"],[v,k]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[S,"Barnes & Noble"],d,[v,k]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[d,[S,"NuVision"],[v,k]],[/android.+;\s(k88)\sbuild/i],[d,[S,"ZTE"],[v,k]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[d,[S,"Swiss"],[v,w]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[d,[S,"Swiss"],[v,k]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[d,[S,"Zeki"],[v,k]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[S,"Dragon Touch"],d,[v,k]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[d,[S,"Insignia"],[v,k]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[d,[S,"NextBook"],[v,k]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[S,"Voice"],d,[v,w]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[S,"LvTel"],d,[v,w]],[/android.+;\s(PH-1)\s/i],[d,[S,"Essential"],[v,w]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[d,[S,"Envizen"],[v,k]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[S,d,[v,k]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[d,[S,"MachSpeed"],[v,k]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[S,d,[v,k]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[d,[S,"Rotor"],[v,k]],[/android.+(KS(.+))\s+build/i],[d,[S,"Amazon"],[v,k]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[S,d,[v,k]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[v,q.lowerize],S,d],[/[\s\/\(](smart-?tv)[;\)]/i],[[v,b]],[/(android[\w\.\s\-]{0,9});.+build/i],[d,[S,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[_,[y,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[y,_],[/rv\:([\w\.]{1,9}).+(gecko)/i],[_,y]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[y,_],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[y,[_,K.str,V.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[y,"Windows"],[_,K.str,V.os.windows.version]],[/\((bb)(10);
31/i],[[y,"BlackBerry"],_],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[y,_],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[y,"Symbian"],_],[/\((series40);/i],[y],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[y,"Firefox OS"],_],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[y,_],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[y,"Chromium OS"],_],[/(sunos)\s?([\w\.\d]*)/i],[[y,"Solaris"],_],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[y,_],[/(haiku)\s(\w+)/i],[y,_],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[_,/_/g,"."],[y,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[y,"Mac OS"],[_,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[y,_]]},j=function(I,z){if(typeof I=="object"&&(z=I,I=t),!(this instanceof j))return new j(I,z).getResult();var L=I||(e&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:i),Y=z?q.extend(U,z):U;return this.getBrowser=function(){var X={name:t,version:t};return K.rgx.call(X,L,Y.browser),X.major=q.major(X.version),X},this.getCPU=function(){var X={architecture:t};return K.rgx.call(X,L,Y.cpu),X},this.getDevice=function(){var X={vendor:t,model:t,type:t};return K.rgx.call(X,L,Y.device),X},this.getEngine=function(){var X={name:t,version:t};return K.rgx.call(X,L,Y.engine),X},this.getOS=function(){var X={name:t,version:t};return K.rgx.call(X,L,Y.os),X},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return L},this.setUA=function(X){return L=X,this},this};j.VERSION=r,j.BROWSER={NAME:y,MAJOR:g,VERSION:_},j.CPU={ARCHITECTURE:A},j.DEVICE={MODEL:d,VENDOR:S,TYPE:v,CONSOLE:B,MOBILE:w,SMARTTV:b,TABLET:k,WEARABLE:O,EMBEDDED:N},j.ENGINE={NAME:y,VERSION:_},j.OS={NAME:y,VERSION:_},typeof an!==u?(typeof ai!==u&&ai.exports&&(an=ai.exports=j),an.UAParser=j):typeof define=="function"&&define.amd?define(function(){return j}):e&&(e.UAParser=j);var J=e&&(e.jQuery||e.Zepto);if(typeof J!==u&&!J.ua){var Q=new j;J.ua=Q.getResult(),J.ua.get=function(){return Q.getUA()},J.ua.set=function(I){Q.setUA(I);var z=Q.getResult();for(var L in z)J.ua[L]=z[L]}}})(typeof window=="object"?window:an)});var of=x((EO,nf)=>{"use strict";var J_=rf(),He="Unknown",Y_={"Mac OS":"Mac OS X"};function X_(e){return Y_[e]||e}function Z_(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var Q_=new J_,je=Q_.getResult(),eC=Z_(je.browser.version),tC={browserArchitecture:je.cpu.architecture||He,browserFullVersion:je.browser.version||He,browserMinorVersion:eC.minor||He,browserName:je.browser.name||He,browserVersion:je.browser.major||He,deviceName:je.device.model||He,engineName:je.engine.name||He,engineVersion:je.engine.version||He,platformArchitecture:je.cpu.architecture||He,platformName:X_(je.os.name)||He,platformVersion:je.os.version||He,platformFullVersion:je.os.version||He};nf.exports=tC});var vf=x((_O,hf)=>{"use strict";var si=ie(),lf=/\./,rC=/\|\|/,nC=/\s+\-\s+/,iC=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,af=/^(\d*)(.*)/;function oC(e,t){var r=e.split(rC);return r.length>1?r.some(function(i){return gf.contains(i,t)}):(e=r[0].trim(),aC(e,t))}function aC(e,t){var r=e.split(nC);if(r.length>0&&r.length<=2||si(!1),r.length===1)return na(r[0],t);var i=r[0],n=r[1];return sf(i)&&sf(n)||si(!1),na(">="+i,t)&&na("<="+n,t)}function na(e,t){if(e=e.trim(),e==="")return!0;var r=t.split(lf),i=df(e),n=i.modifier,a=i.rangeComponents;switch(n){case"<":return ff(r,a);case"<=":return sC(r,a);case">=":return pf(r,a);case">":return cC(r,a);case"~":case"~>":return lC(r,a);default:return uC(r,a)}}function ff(e,t){return sn(e,t)===-1}function sC(e,t){var r=sn(e,t);return r===-1||r===0}function uC(e,t){return sn(e,t)===0}function pf(e,t){var r=sn(e,t);return r===1||r===0}function cC(e,t){return sn(e,t)===1}function lC(e,t){var r=t.slice(),i=t.slice();i.length>1&&i.pop();var n=i.length-1,a=parseInt(i[n],10);
vendor: 40,402 bytes, lines 31-41
31return ia(a)&&(i[n]=a+1+""),pf(e,r)&&ff(e,i)}function df(e){var t=e.split(lf),r=t[0].match(iC);return r||si(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function ia(e){return!isNaN(e)&&isFinite(e)}function sf(e){return!df(e).modifier}function uf(e,t){for(var r=e.length;r<t;r++)e[r]="0"}function fC(e,t){e=e.slice(),t=t.slice(),uf(e,t.length);for(var r=0;r<t.length;r++){var i=t[r].match(/^[x*]$/i);if(i&&(t[r]=e[r]="0",i[0]==="*"&&r===t.length-1))for(var n=r;n<e.length;n++)e[n]="0"}return uf(t,e.length),[e,t]}function pC(e,t){var r=e.match(af)[1],i=t.match(af)[1],n=parseInt(r,10),a=parseInt(i,10);return ia(n)&&ia(a)&&n!==a?cf(n,a):cf(e,t)}function cf(e,t){return typeof e!=typeof t&&si(!1),e>t?1:e<t?-1:0}function sn(e,t){for(var r=fC(e,t),i=r[0],n=r[1],a=0;a<n.length;a++){var u=pC(i[a],n[a]);if(u)return u}return 0}var gf={contains:function(t,r){return oC(t.trim(),r.trim())}};hf.exports=gf});var mf=x((CO,yf)=>{"use strict";var dC=Object.prototype.hasOwnProperty;function gC(e,t,r){if(!e)return null;var i={};for(var n in e)dC.call(e,n)&&(i[n]=t.call(r,e[n],n,e));return i}yf.exports=gC});var Ef=x((xO,Sf)=>{"use strict";function hC(e){var t={};return function(r){return t.hasOwnProperty(r)||(t[r]=e.call(this,r)),t[r]}}Sf.exports=hC});var be=x((wO,_f)=>{"use strict";var at=of(),vC=vf(),yC=mf(),mC=Ef();function xr(e,t,r,i){if(e===r)return!0;if(!r.startsWith(e))return!1;var n=r.slice(e.length);return t?(n=i?i(n):n,vC.contains(n,t)):!1}function SC(e){return at.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var EC={isBrowser:function(t){return xr(at.browserName,at.browserFullVersion,t)},isBrowserArchitecture:function(t){return xr(at.browserArchitecture,null,t)},isDevice:function(t){return xr(at.deviceName,null,t)},isEngine:function(t){return xr(at.engineName,at.engineVersion,t)},isPlatform:function(t){return xr(at.platformName,at.platformFullVersion,t,SC)},isPlatformArchitecture:function(t){return xr(at.platformArchitecture,null,t)}};_f.exports=yC(EC,mC)});var un=x((DO,Cf)=>{"use strict";function _C(e){return!e||!e.ownerDocument?document:e.ownerDocument}Cf.exports=_C});var Ot=x((BO,xf)=>{"use strict";function CC(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}xf.exports=CC});var oa=x((kO,Df)=>{"use strict";var xC=Ot();function wf(e){if(xC(e)){var t=e,r=t.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<t.childNodes.length;i++){var n=wf(t.childNodes[i]);if(n)return n}}return null}Df.exports=wf});var cn=x((AO,Bf)=>{"use strict";var wC=un(),DC=oa();function BC(e){for(var t=e;t&&t!==wC(e).documentElement;){var r=DC(t);if(r!=null)return r;t=t.parentNode}return null}Bf.exports=BC});var aa=x((FO,kf)=>{"use strict";function kC(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}kf.exports=kC});var Tf=x((bO,bf)=>{"use strict";function ui(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AC=be(),FC=cn(),bC=aa(),TC=re(),OC=ie(),LC=Fe(),Af=TC.Map,KC={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Ff=AC.isBrowser("IE <= 11"),MC=function(){function e(r){var i=this;ui(this,"observer",void 0),ui(this,"container",void 0),ui(this,"mutations",void 0),ui(this,"onCharData",void 0),this.container=r,this.mutations=Af();var n=bC(r);n.MutationObserver&&!Ff?this.observer=new n.MutationObserver(function(a){return i.registerMutations(a)}):this.onCharData=function(a){a.target instanceof Node||OC(!1),i.registerMutation({type:"characterData",target:a.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,KC):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var i=this.observer;i?(this.registerMutations(i.takeRecords()),i.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var n=this.mutations;return this.mutations=Af(),n},t.registerMutations=function(i){for(var n=0;n<i.length;n++)this.registerMutation(i[n])},t.getMutationTextContent=function(i){var n=i.type,a=i.target,u=i.removedNodes;if(n==="characterData"){if(a.textContent!=="")return Ff?a.textContent.replace(` 32`,""):a.textContent}else if(n==="childList"){if(u&&u.length)return"";if(a.textContent!=="")return a.textContent}return null},t.registerMutation=function(i){var n=this.getMutationTextContent(i);if(n!=null){var a=LC(FC(i.target));this.mutations=this.mutations.set(a,n)}},e}();bf.exports=MC});var st=x((TO,Of)=>{"use strict";var ci="-",IC={encode:function(t,r,i){return t+ci+r+ci+i},decode:function(t){var r=t.split(ci).reverse(),i=r[0],n=r[1],a=r.slice(2);return{blockKey:a.reverse().join(ci),decoratorKey:parseInt(n,10),leafKey:parseInt(i,10)}}};Of.exports=IC});var ln=x((OO,Lf)=>{"use strict";Lf.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}});var sa=x((LO,Kf)=>{"use strict";Kf.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}});var wr=x((KO,Mf)=>{"use strict";function RC(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}Mf.exports=RC});var ua=x((MO,Rf)=>{"use strict";var If=ie(),NC=wr();function qC(e){var t=e.editorContainer;t||If(!1),NC(t.firstChild)||If(!1);var r=t.firstChild;return r}Rf.exports=qC});var ca=x((IO,qf)=>{"use strict";var Nf=st(),PC=Fe();function UC(e,t,r,i,n){var a=PC(e.getSelection());if(!t||!i)return a;var u=Nf.decode(t),c=u.blockKey,l=e.getBlockTree(c),g=l&&l.getIn([u.decoratorKey,"leaves",u.leafKey]),d=Nf.decode(i),y=d.blockKey,v=e.getBlockTree(y),S=v&&v.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!g||!S)return a;var _=g.get("start"),A=S.get("start"),B=g?_+r:null,w=S?A+n:null,k=a.getAnchorKey()===c&&a.getAnchorOffset()===B&&a.getFocusKey()===y&&a.getFocusOffset()===w;if(k)return a;var b=!1;if(c===y){var O=g.get("end"),N=S.get("end");A===_&&N===O?b=n<r:b=A<_}else{var q=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(K){return K===c||K===y}).first();b=q===y}return a.merge({anchorKey:c,anchorOffset:B,focusKey:y,focusOffset:w,isBackward:b})}qf.exports=UC});var pa=x((RO,zf)=>{"use strict";var fn=cn(),pn=oa(),Pf=ca(),la=ie(),fa=Ot(),$t=Fe();function zC(e,t,r,i,n,a){var u=r.nodeType===Node.TEXT_NODE,c=n.nodeType===Node.TEXT_NODE;if(u&&c)return{selectionState:Pf(e,$t(fn(r)),i,$t(fn(n)),a),needsRecovery:!1};var l=null,g=null,d=!0;return u?(l={key:$t(fn(r)),offset:i},g=li(t,n,a)):c?(g={key:$t(fn(n)),offset:a},l=li(t,r,i)):(l=li(t,r,i),g=li(t,n,a),r===n&&i===a&&(d=!!r.firstChild&&r.firstChild.nodeName!=="BR")),{selectionState:Pf(e,l.key,l.offset,g.key,g.offset),needsRecovery:d}}function WC(e){for(;e.firstChild&&(fa(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||pn(e.firstChild));)e=e.firstChild;return e}function VC(e){for(;e.lastChild&&(fa(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||pn(e.lastChild));)e=e.lastChild;return e}function li(e,t,r){var i=t,n=fn(i);if(n!=null||e&&(e===i||e.firstChild===i)||la(!1),e===i){i=i.firstChild,fa(i)||la(!1);var a=i;i=a,i.getAttribute("data-contents")!=="true"&&la(!1),r>0&&(r=i.childNodes.length)}if(r===0){var u=null;if(n!=null)u=n;else{var c=WC(i);u=$t(pn(c))}return{key:u,offset:0}}var l=i.childNodes[r-1],g=null,d=null;if(!pn(l))g=$t(n),d=Uf(l);else{var y=VC(l);g=$t(pn(y)),d=Uf(y)}return{key:g,offset:d}}function Uf(e){var t=e.textContent;return t===` 33`?0:t.length}zf.exports=zC});var da=x((NO,Wf)=>{"use strict";var HC=pa();function jC(e,t){var r=t.ownerDocument.defaultView.getSelection(),i=r.anchorNode,n=r.anchorOffset,a=r.focusNode,u=r.focusOffset,c=r.rangeCount;return c===0||i==null||a==null?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:HC(e,t,i,n,a,u)}Wf.exports=jC});var ga=x((qO,Hf)=>{"use strict";var $C=sa(),Vf=ue(),GC=ua(),JC=da();function YC(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,r=t.getSelection();$C.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(r.toJS())})}return}var i=e.props.editorState,n=JC(i,GC(e)),a=n.selectionState;a!==i.getSelection()&&(n.needsRecovery?i=Vf.forceSelection(i,a):i=Vf.acceptSelection(i,a),e.update(i))}Hf.exports=YC});var ha=x((PO,jf)=>{"use strict";function XC(e){return e!=null&&e!=""}jf.exports={notEmptyKey:XC}});var fi=x((UO,Gf)=>{"use strict";var ZC=ha(),QC=ZC.notEmptyKey;function ex(e,t){var r;if(t.isCollapsed()){var i=t.getAnchorKey(),n=t.getAnchorOffset();return n>0?(r=e.getBlockForKey(i).getEntityAt(n-1),r!==e.getBlockForKey(i).getEntityAt(n)?null:$f(e.getEntityMap(),r)):null}var a=t.getStartKey(),u=t.getStartOffset(),c=e.getBlockForKey(a);return r=u===c.getLength()?null:c.getEntityAt(u),$f(e.getEntityMap(),r)}function $f(e,t){if(QC(t)){var r=e.__get(t);return r.getMutability()==="MUTABLE"?t:null}return null}Gf.exports=ex});var Xf=x((zO,Yf)=>{"use strict";var tx=Tf(),rx=Ae(),nx=st(),dn=ue(),va=ln(),ix=be(),ox=ga(),Jf=ua(),ax=da(),sx=fi(),ux=Fe(),cx=ix.isBrowser("IE"),lx=20,ya=!1,pi=!1,gn=null;function fx(e){gn||(gn=new tx(Jf(e)),gn.start())}var ma={onCompositionStart:function(t){pi=!0,fx(t)},onCompositionEnd:function(t){ya=!1,pi=!1,setTimeout(function(){ya||ma.resolveComposition(t)},lx)},onSelect:ox,onKeyDown:function(t,r){if(!pi){ma.resolveComposition(t),t._onKeyDown(r);return}(r.which===va.RIGHT||r.which===va.LEFT)&&r.preventDefault()},onKeyPress:function(t,r){r.which===va.RETURN&&r.preventDefault()},resolveComposition:function(t){if(!pi){var r=ux(gn).stopAndFlushMutations();gn=null,ya=!0;var i=dn.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!r.size){t.update(i);return}var n=i.getCurrentContent();r.forEach(function(l,g){var d=nx.decode(g),y=d.blockKey,v=d.decoratorKey,S=d.leafKey,_=i.getBlockTree(y).getIn([v,"leaves",S]),A=_.start,B=_.end,w=i.getSelection().merge({anchorKey:y,focusKey:y,anchorOffset:A,focusOffset:B,isBackward:!1}),k=sx(n,w),b=n.getBlockForKey(y).getInlineStyleAt(A);n=rx.replaceText(n,w,l,b,k),i=dn.set(i,{currentContent:n})});var a=ax(i,Jf(t)),u=a.selectionState;t.restoreEditorDOM();var c=cx?dn.forceSelection(i,u):dn.acceptSelection(i,u);t.update(dn.push(c,n,"insert-characters"))}}};Yf.exports=ma});var ep=x((WO,Qf)=>{"use strict";var px=Wt();function Sa(){return Sa=px||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sa.apply(this,arguments)}function dx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var gx=st(),Zf=Ne(),hx=Qn(),vx=tn(),yx=function(e){dx(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var n=this.props,a=n.block,u=n.children,c=n.contentState,l=n.decorator,g=n.decoratorKey,d=n.direction,y=n.leafSet,v=n.text,S=a.getKey(),_=y.get("leaves"),A=l.getComponentForKey(g),B=l.getPropsForKey(g),w=gx.encode(S,parseInt(g,10),0),k=v.slice(_.first().get("start"),_.last().get("end")),b=vx.getHTMLDirIfDifferent(hx.getDirection(k),d);return Zf.createElement(A,Sa({},B,{contentState:c,decoratedText:k,dir:b,key:w,entityKey:a.getEntityAt(y.get("start")),offsetKey:w}),u)},t}(Zf.Component);Qf.exports=yx});var ip=x((VO,np)=>{"use strict";function tp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function rp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dr=Ne(),Sx=be(),Ex=ie(),_x=Ot(),Ea=Sx.isBrowser("IE <= 11");function Cx(e){return Ea?e.textContent===` 34`:e.tagName==="BR"}var xx=function(t){return Ea?Dr.createElement("span",{key:"A","data-text":"true",ref:t},` 35`):Dr.createElement("br",{key:"A","data-text":"true",ref:t})},wx=function(t){return Ea?Dr.createElement("span",{key:"B","data-text":"true",ref:t},` 36`):Dr.createElement("br",{key:"B","data-text":"true",ref:t})},Dx=function(e){mx(t,e);function t(i){var n;return n=e.call(this,i)||this,rp(tp(n),"_forceFlag",void 0),rp(tp(n),"_node",void 0),n._forceFlag=!1,n}var r=t.prototype;return r.shouldComponentUpdate=function(n){var a=this._node,u=n.children==="";_x(a)||Ex(!1);var c=a;return u?!Cx(c):c.textContent!==n.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var n=this;return this.props.children===""?this._forceFlag?xx(function(a){return n._node=a}):wx(function(a){return n._node=a}):Dr.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(u){return n._node=u}},this.props.children)},t}(Dr.Component);np.exports=Dx});var _a=x((HO,op)=>{"use strict";var Bx=Ot();function kx(e){return!e||!e.ownerDocument?!1:Bx(e)&&e.nodeName==="BR"}op.exports=kx});var Ca=x((jO,ap)=>{"use strict";ap.exports={initODS:function(){},handleExtensionCausedError:function(){}}});var up=x(($O,sp)=>{"use strict";function Ax(e){var t=e?e.ownerDocument||e:document,r=t.defaultView||window;return!!(e&&(typeof r.Node=="function"?e instanceof r.Node:typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"))}sp.exports=Ax});var lp=x((GO,cp)=>{"use strict";var Fx=up();function bx(e){return Fx(e)&&e.nodeType==3}cp.exports=bx});var di=x((JO,dp)=>{"use strict";var fp=lp();function pp(e,t){return!e||!t?!1:e===t?!0:fp(e)?!1:fp(t)?pp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}dp.exports=pp});var xa=x((YO,gp)=>{"use strict";function Tx(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}gp.exports=Tx});var Ep=x((XO,Sp)=>{"use strict";var Ox=Ca(),wa=sa(),Lx=be(),hp=di(),Kx=xa(),Ba=un(),Mx=ie(),vp=Ot(),Ix=Lx.isBrowser("IE");function Rx(e,t){if(!e)return"[empty]";var r=yp(e,t);if(r.nodeType===Node.TEXT_NODE)return r.textContent;vp(r)||Mx(!1);var i=r;return i.outerHTML}function yp(e,t){var r=t!==void 0?t(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return Ba(e).createTextNode("[text "+i+(r.length?" | "+r.join(", "):"")+"]")}var n=e.cloneNode();n.nodeType===1&&r.length&&n.setAttribute("data-labels",r.join(", "));for(var a=e.childNodes,u=0;u<a.length;u++)n.appendChild(yp(a[u],t));return n}function Da(e,t){for(var r=e,i=r;r;){if(vp(r)&&i.hasAttribute("contenteditable"))return Rx(r,t);r=r.parentNode,i=r}return"Could not find contentEditable parent of node"}function mp(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function Nx(e,t,r,i,n){var a=Ba(t);if(hp(a.documentElement,t)){var u=a.defaultView.getSelection(),c=e.getAnchorKey(),l=e.getAnchorOffset(),g=e.getFocusKey(),d=e.getFocusOffset(),y=e.getIsBackward();if(!u.extend&&y){var v=c,S=l;c=g,l=d,g=v,d=S,y=!1}var _=c===r&&i<=l&&n>=l,A=g===r&&i<=d&&n>=d;if(_&&A){u.removeAllRanges(),gi(u,t,l-i,e),hi(u,t,d-i,e);return}if(!y)_&&(u.removeAllRanges(),gi(u,t,l-i,e)),A&&hi(u,t,d-i,e);else if(A&&(u.removeAllRanges(),gi(u,t,d-i,e)),_){var B=u.focusNode,w=u.focusOffset;u.removeAllRanges(),gi(u,t,l-i,e),hi(u,B,w,e)}}}function hi(e,t,r,i){var n=Kx(),a=e.extend;if(a&&t!=null&&hp(n,t)){r>mp(t)&&wa.logSelectionStateFailure({anonymizedDom:Da(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())});var u=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,r)}catch(l){throw wa.logSelectionStateFailure({anonymizedDom:Da(t,function(g){var d=[];return g===n&&d.push("active element"),g===e.anchorNode&&d.push("selection anchor node"),g===e.focusNode&&d.push("selection focus node"),d}),extraParams:JSON.stringify({activeElementName:n?n.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:l?""+l:null,offset:r},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),l}}else if(t&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(t,r),e.addRange(c.cloneRange())}}function gi(e,t,r,i){var n=Ba(t).createRange();if(r>mp(t)&&(wa.logSelectionStateFailure({anonymizedDom:Da(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())}),Ox.handleExtensionCausedError()),n.setStart(t,r),Ix)try{e.addRange(n)}catch{}else e.addRange(n)}Sp.exports={setDraftEditorSelection:Nx,addFocusToSelection:hi}});var Aa=x((ZO,Cp)=>{"use strict";var _p=Wt();function qx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ux(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zx=ip(),ka=Ne(),vi=ie(),Wx=_a(),Vx=Ep().setDraftEditorSelection,Hx=function(e){Px(t,e);function t(){for(var i,n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return i=e.call.apply(e,[this].concat(a))||this,Ux(qx(i),"leaf",void 0),i}var r=t.prototype;return r._setSelection=function(){var n=this.props.selection;if(!(n==null||!n.getHasFocus())){var a=this.props,u=a.block,c=a.start,l=a.text,g=u.getKey(),d=c+l.length;if(n.hasEdgeWithin(g,c,d)){var y=this.leaf;y||vi(!1);var v=y.firstChild;v||vi(!1);var S;v.nodeType===Node.TEXT_NODE?S=v:Wx(v)?S=y:(S=v.firstChild,S||vi(!1)),Vx(n,S,g,c,d)}}},r.shouldComponentUpdate=function(n){var a=this.leaf;a||vi(!1);var u=a.textContent!==n.text||n.styleSet!==this.props.styleSet||n.forceSelection;return u},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var n=this,a=this.props.block,u=this.props.text;u.endsWith(` 37`)&&this.props.isLast&&(u+=` 38`);var c=this.props,l=c.customStyleMap,g=c.customStyleFn,d=c.offsetKey,y=c.styleSet,v=y.reduce(function(_,A){var B={},w=l[A];return w!==void 0&&_.textDecoration!==w.textDecoration&&(B.textDecoration=[_.textDecoration,w.textDecoration].join(" ").trim()),_p(_,w,B)},{});if(g){var S=g(y,a);v=_p(v,S)}return ka.createElement("span",{"data-offset-key":d,ref:function(A){return n.leaf=A},style:v},ka.createElement(zx,null,u))},t}(ka.Component);Cp.exports=Hx});var Dp=x((eL,wp)=>{"use strict";function jx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $x=ep(),Gx=Aa(),xp=st(),Jx=re(),yi=Ne(),Yx=Tt(),QO=Jx.List,Xx=function(e){jx(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var n=this.props,a=n.block,u=n.contentState,c=n.customStyleFn,l=n.customStyleMap,g=n.decorator,d=n.direction,y=n.forceSelection,v=n.hasSelection,S=n.selection,_=n.tree,A=a.getKey(),B=a.getText(),w=_.size-1,k=this.props.children||_.map(function(b,O){var N=b.get("decoratorKey"),q=b.get("leaves"),K=q.size-1,V=q.map(function(U,j){var J=xp.encode(A,O,j),Q=U.get("start"),I=U.get("end");return yi.createElement(Gx,{key:J,offsetKey:J,block:a,start:Q,selection:v?S:null,forceSelection:y,text:B.slice(Q,I),styleSet:a.getInlineStyleAt(Q),customStyleMap:l,customStyleFn:c,isLast:N===w&&j===K})}).toArray();return!N||!g?V:yi.createElement($x,{block:a,children:V,contentState:u,decorator:g,decoratorKey:N,direction:d,leafSet:b,text:B,key:O})}).toArray();return yi.createElement("div",{"data-offset-key":xp.encode(A,0,0),className:Yx({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":d==="LTR","public/DraftStyleDefault/rtl":d==="RTL"})},k)},t}(yi.Component);wp.exports=Xx});var Si=x((tL,Bp)=>{"use strict";function mi(e,t){return!!t&&(e===t.documentElement||e===t.body)}var Zx={getTop:function(t){var r=t.ownerDocument;return mi(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var i=t.ownerDocument;mi(t,i)?i.body.scrollTop=i.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return mi(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var i=t.ownerDocument;mi(t,i)?i.body.scrollLeft=i.documentElement.scrollLeft=r:t.scrollLeft=r}};Bp.exports=Zx});var Ap=x((rL,kp)=>{"use strict";var Qx=/-(.)/g;function ew(e){return e.replace(Qx,function(t,r){return r.toUpperCase()})}kp.exports=ew});var bp=x((nL,Fp)=>{"use strict";var tw=/([A-Z])/g;function rw(e){return e.replace(tw,"-$1").toLowerCase()}Fp.exports=rw});var Kp=x((iL,Lp)=>{"use strict";var Tp=Ap(),Op=bp();function hn(e){return e==null?e:String(e)}function nw(e,t){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null),r))return hn(r.getPropertyValue(Op(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null),r)return hn(r.getPropertyValue(Op(t)));if(t==="display")return"none"}return e.currentStyle?hn(t==="float"?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Tp(t)]):hn(e.style&&e.style[Tp(t)])}Lp.exports=nw});var vn=x((oL,Ip)=>{"use strict";var iw=Kp();function Fa(e,t){var r=Mp.get(e,t);return r==="auto"||r==="scroll"}var Mp={get:iw,getScrollParent:function(t){if(!t)return null;for(var r=t.ownerDocument;t&&t!==r.body;){if(Fa(t,"overflow")||Fa(t,"overflowY")||Fa(t,"overflowX"))return t;t=t.parentNode}return r.defaultView||r.parentWindow}};Ip.exports=Mp});var Np=x((aL,Rp)=>{"use strict";var ow=di();function aw(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!ow(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}Rp.exports=aw});var ba=x((sL,qp)=>{"use strict";var sw=Np();function uw(e){var t=sw(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}qp.exports=uw});var Up=x((uL,Pp)=>{"use strict";var cw=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function lw(e){return e=e||document,e.scrollingElement?e.scrollingElement:!cw&&e.compatMode==="CSS1Compat"?e.documentElement:e.body}Pp.exports=lw});var Wp=x((cL,zp)=>{"use strict";function fw(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}zp.exports=fw});var yn=x((lL,Vp)=>{"use strict";var pw=Up(),dw=Wp();function gw(e){var t=pw(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=dw(e),i=e===t?e.ownerDocument.documentElement:e,n=e.scrollWidth-i.clientWidth,a=e.scrollHeight-i.clientHeight;return r.x=Math.max(0,Math.min(r.x,n)),r.y=Math.max(0,Math.min(r.y,a)),r}Vp.exports=gw});var Ta=x((fL,Gp)=>{"use strict";function Hp(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function jp(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function $p(){return{width:window.innerWidth||Hp(),height:window.innerHeight||jp()}}$p.withoutScrollbars=function(){return{width:Hp(),height:jp()}};Gp.exports=$p});var id=x((dL,nd)=>{"use strict";var hw=Wt();function Oa(){return Oa=hw||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Oa.apply(this,arguments)}function vw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function td(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){rd(e,n,r[n])})}return e}function rd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mw=Dp(),La=st(),Lt=Ne(),Jp=Si(),Sw=vn(),Ew=ba(),_w=yn(),Cw=Ta(),xw=re(),ww=ie(),Dw=wr(),Yp=10,pL=xw.List,Xp=function(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r},Bw=function(t,r){var i=t.getNextSiblingKey();return i?r.getBlockForKey(i).getType()===t.getType():!1},kw=function(t,r,i){var n=[],a=!0,u=!1,c=void 0;try{for(var l=i.reverse()[Symbol.iterator](),g;!(a=(g=l.next()).done);a=!0){var d=g.value;if(d.type!==r)break;n.push(d)}}catch(S){u=!0,c=S}finally{try{!a&&l.return!=null&&l.return()}finally{if(u)throw c}}i.splice(i.indexOf(n[0]),n.length+1);var y=n.reverse(),v=y[0].key;return i.push(Lt.cloneElement(t,{key:"".concat(v,"-wrap"),"data-offset-key":La.encode(v,0,0)},y)),i},Zp=function(t,r){var i=r.get(t.getType())||r.get("unstyled"),n=i.wrapper,a=i.element||r.get("unstyled").element;return{Element:a,wrapperTemplate:n}},Qp=function(t,r){var i=r(t);if(!i)return{};var n=i.component,a=i.props,u=i.editable;return{CustomComponent:n,customProps:a,customEditable:u}},ed=function(t,r,i,n,a,u){var c={"data-block":!0,"data-editor":r,"data-offset-key":i,key:t.getKey(),ref:u},l=n(t);return l&&(c.className=l),a.customEditable!==void 0&&(c=td({},c,{contentEditable:a.customEditable,suppressContentEditableWarning:!0})),c},Aw=function(e){yw(t,e);function t(){for(var i,n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return i=e.call.apply(e,[this].concat(a))||this,rd(vw(i),"wrapperRef",Lt.createRef()),i}var r=t.prototype;return r.shouldComponentUpdate=function(n){var a=this.props,u=a.block,c=a.direction,l=a.tree,g=!u.getChildKeys().isEmpty(),d=u!==n.block||l!==n.tree||c!==n.direction||Xp(n.selection,n.block.getKey())&&n.forceSelection;return g||d},r.componentDidMount=function(){var n=this.props.selection,a=n.getEndKey();if(!(!n.getHasFocus()||a!==this.props.block.getKey())){var u=this.wrapperRef.current;if(u){var c=Sw.getScrollParent(u),l=_w(c),g;if(c===window){var d=Ew(u),y=d.y+d.height,v=Cw().height;g=y-v,g>0&&window.scrollTo(l.x,l.y+g+Yp)}else{Dw(u)||ww(!1);var S=u,_=S.offsetHeight+S.offsetTop,A=c.offsetHeight+l.y;g=_-A,g>0&&Jp.setTop(c,Jp.getTop(c)+g+Yp)}}}},r.render=function(){var n=this,a=this.props,u=a.block,c=a.blockRenderMap,l=a.blockRendererFn,g=a.blockStyleFn,d=a.contentState,y=a.decorator,v=a.editorKey,S=a.editorState,_=a.customStyleFn,A=a.customStyleMap,B=a.direction,w=a.forceSelection,k=a.selection,b=a.tree,O=null;u.children.size&&(O=u.children.reduce(function(I,z){var L=La.encode(z,0,0),Y=d.getBlockForKey(z),X=Qp(Y,l),oe=X.CustomComponent||t,H=Zp(Y,c),Ee=H.Element,de=H.wrapperTemplate,Oe=ed(Y,v,L,g,X,null),Z=td({},n.props,{tree:S.getBlockTree(z),blockProps:X.customProps,offsetKey:L,block:Y});return I.push(Lt.createElement(Ee,Oe,Lt.createElement(oe,Z))),!de||Bw(Y,d)||kw(de,Ee,I),I},[]));var N=u.getKey(),q=La.encode(N,0,0),K=Qp(u,l),V=K.CustomComponent,U=V!=null?Lt.createElement(V,Oa({},this.props,{tree:S.getBlockTree(N),blockProps:K.customProps,offsetKey:q,block:u})):Lt.createElement(mw,{block:u,children:O,contentState:d,customStyleFn:_,customStyleMap:A,decorator:y,direction:B,forceSelection:w,hasSelection:Xp(k,N),selection:k,tree:b});if(u.getParentKey())return U;var j=Zp(u,c),J=j.Element,Q=ed(u,v,q,g,K,this.wrapperRef);return Lt.createElement(J,Q,U)},t}(Lt.Component);nd.exports=Aw});var ad=x((gL,od)=>{"use strict";var Fw=Wt();function Ka(){return Ka=Fw||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ka.apply(this,arguments)}function bw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Tw=id(),Ow=st(),Ei=Ne(),Lw=Fe(),Kw=function(e){bw(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.shouldComponentUpdate=function(n){var a=this.props.editorState,u=n.editorState,c=a.getDirectionMap(),l=u.getDirectionMap();if(c!==l)return!0;var g=a.getSelection().getHasFocus(),d=u.getSelection().getHasFocus();if(g!==d)return!0;var y=u.getNativelyRenderedContent(),v=a.isInCompositionMode(),S=u.isInCompositionMode();if(a===u||y!==null&&u.getCurrentContent()===y||v&&S)return!1;var _=a.getCurrentContent(),A=u.getCurrentContent(),B=a.getDecorator(),w=u.getDecorator();return v!==S||_!==A||B!==w||u.mustForceSelection()},r.render=function(){for(var n=this.props,a=n.blockRenderMap,u=n.blockRendererFn,c=n.blockStyleFn,l=n.customStyleMap,g=n.customStyleFn,d=n.editorState,y=n.editorKey,v=n.textDirectionality,S=d.getCurrentContent(),_=d.getSelection(),A=d.mustForceSelection(),B=d.getDecorator(),w=Lw(d.getDirectionMap()),k=S.getBlocksAsArray(),b=k[0],O=[],N=b;N;){var q=N.getKey(),K={blockRenderMap:a,blockRendererFn:u,blockStyleFn:c,contentState:S,customStyleFn:g,customStyleMap:l,decorator:B,editorKey:y,editorState:d,forceSelection:A,selection:_,block:N,direction:v||w.get(q),tree:d.getBlockTree(q)},V=a.get(N.getType())||a.get("unstyled"),U=V.wrapper;O.push({block:Ei.createElement(Tw,Ka({key:q},K)),wrapperTemplate:U,key:q,offsetKey:Ow.encode(q,0,0)});var j=N.getNextSiblingKey();N=j?S.getBlockForKey(j):null}for(var J=[],Q=0;Q<O.length;){var I=O[Q];if(I.wrapperTemplate){var z=[];do z.push(O[Q].block),Q++;while(Q<O.length&&O[Q].wrapperTemplate===I.wrapperTemplate);var L=Ei.cloneElement(I.wrapperTemplate,{key:I.key+"-wrap","data-offset-key":I.offsetKey},z);J.push(L)}else J.push(I.block),Q++}return Ei.createElement("div",{"data-contents":"true"},J)},t}(Ei.Component);od.exports=Kw});var Ia=x((hL,fd)=>{"use strict";var Mw=Wt();function Ma(){return Ma=Mw||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ma.apply(this,arguments)}function Iw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Nw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qw=Aa(),sd=st(),_i=Ne(),ud=Si(),Pw=vn(),Uw=Qn(),zw=tn(),Ww=Tt(),Vw=ba(),Hw=yn(),jw=Ta(),$w=ie(),Gw=wr(),Jw=Fe(),cd=10,ld=function(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r},Yw=function(e){Rw(t,e);function t(){for(var i,n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return i=e.call.apply(e,[this].concat(a))||this,Nw(Iw(i),"_node",void 0),i}var r=t.prototype;return r.shouldComponentUpdate=function(n){return this.props.block!==n.block||this.props.tree!==n.tree||this.props.direction!==n.direction||ld(n.selection,n.block.getKey())&&n.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var n=this.props.selection,a=n.getEndKey();if(!(!n.getHasFocus()||a!==this.props.block.getKey())){var u=this._node;if(u!=null){var c=Pw.getScrollParent(u),l=Hw(c),g;if(c===window){var d=Vw(u),y=d.y+d.height,v=jw().height;g=y-v,g>0&&window.scrollTo(l.x,l.y+g+cd)}else{Gw(u)||$w(!1);var S=u.offsetHeight+u.offsetTop,_=c.offsetTop+c.offsetHeight,A=_+l.y;g=S-A,g>0&&ud.setTop(c,ud.getTop(c)+g+cd)}}}}},r._renderChildren=function(){var n=this,a=this.props.block,u=a.getKey(),c=a.getText(),l=this.props.tree.size-1,g=ld(this.props.selection,u);return this.props.tree.map(function(d,y){var v=d.get("leaves");if(v.size===0)return null;var S=v.size-1,_=v.map(function(j,J){var Q=sd.encode(u,y,J),I=j.get("start"),z=j.get("end");return _i.createElement(qw,{key:Q,offsetKey:Q,block:a,start:I,selection:g?n.props.selection:null,forceSelection:n.props.forceSelection,text:c.slice(I,z),styleSet:a.getInlineStyleAt(I),customStyleMap:n.props.customStyleMap,customStyleFn:n.props.customStyleFn,isLast:y===l&&J===S})}).toArray(),A=d.get("decoratorKey");if(A==null||!n.props.decorator)return _;var B=Jw(n.props.decorator),w=B.getComponentForKey(A);if(!w)return _;var k=B.getPropsForKey(A),b=sd.encode(u,y,0),O=v.first().get("start"),N=v.last().get("end"),q=c.slice(O,N),K=a.getEntityAt(d.get("start")),V=zw.getHTMLDirIfDifferent(Uw.getDirection(q),n.props.direction),U={contentState:n.props.contentState,decoratedText:q,dir:V,start:O,end:N,blockKey:u,entityKey:K,offsetKey:b};return _i.createElement(w,Ma({},k,U,{key:b}),_)}).toArray()},r.render=function(){var n=this,a=this.props,u=a.direction,c=a.offsetKey,l=Ww({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":u==="LTR","public/DraftStyleDefault/rtl":u==="RTL"});return _i.createElement("div",{"data-offset-key":c,className:l,ref:function(d){return n._node=d}},this._renderChildren())},t}(_i.Component);fd.exports=Yw});var dd=x((vL,pd)=>{"use strict";function Xw(e){var t=e||"",r=arguments.length;if(r>1)for(var i=1;i<r;i++){var n=arguments[i];n&&(t=(t?t+" ":"")+n)}return t}pd.exports=Xw});var hd=x((yL,gd)=>{"use strict";var Zw=Wt();function Ra(){return Ra=Zw||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ra.apply(this,arguments)}function Qw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){eD(e,n,r[n])})}return e}function eD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var rD=Ia(),nD=st(),mn=Ne(),iD=Tt(),oD=dd(),aD=Fe(),sD=function(t,r,i,n){return iD({"public/DraftStyleDefault/unorderedListItem":t==="unordered-list-item","public/DraftStyleDefault/orderedListItem":t==="ordered-list-item","public/DraftStyleDefault/reset":i,"public/DraftStyleDefault/depth0":r===0,"public/DraftStyleDefault/depth1":r===1,"public/DraftStyleDefault/depth2":r===2,"public/DraftStyleDefault/depth3":r===3,"public/DraftStyleDefault/depth4":r>=4,"public/DraftStyleDefault/listLTR":n==="LTR","public/DraftStyleDefault/listRTL":n==="RTL"})},uD=function(e){tD(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.shouldComponentUpdate=function(n){var a=this.props.editorState,u=n.editorState,c=a.getDirectionMap(),l=u.getDirectionMap();if(c!==l)return!0;var g=a.getSelection().getHasFocus(),d=u.getSelection().getHasFocus();if(g!==d)return!0;var y=u.getNativelyRenderedContent(),v=a.isInCompositionMode(),S=u.isInCompositionMode();if(a===u||y!==null&&u.getCurrentContent()===y||v&&S)return!1;var _=a.getCurrentContent(),A=u.getCurrentContent(),B=a.getDecorator(),w=u.getDecorator();return v!==S||_!==A||B!==w||u.mustForceSelection()},r.render=function(){for(var n=this.props,a=n.blockRenderMap,u=n.blockRendererFn,c=n.blockStyleFn,l=n.customStyleMap,g=n.customStyleFn,d=n.editorState,y=n.editorKey,v=n.preventScroll,S=n.textDirectionality,_=d.getCurrentContent(),A=d.getSelection(),B=d.mustForceSelection(),w=d.getDecorator(),k=aD(d.getDirectionMap()),b=_.getBlocksAsArray(),O=[],N=null,q=null,K=0;K<b.length;K++){var V=b[K],U=V.getKey(),j=V.getType(),J=u(V),Q=void 0,I=void 0,z=void 0;J&&(Q=J.component,I=J.props,z=J.editable);var L=S||k.get(U),Y=nD.encode(U,0,0),X={contentState:_,block:V,blockProps:I,blockStyleFn:c,customStyleMap:l,customStyleFn:g,decorator:w,direction:L,forceSelection:B,offsetKey:Y,preventScroll:v,selection:A,tree:d.getBlockTree(U)},oe=a.get(j)||a.get("unstyled"),H=oe.wrapper,Ee=oe.element||a.get("unstyled").element,de=V.getDepth(),Oe="";if(c&&(Oe=c(V)),Ee==="li"){var Z=q!==H||N===null||de>N;Oe=oD(Oe,sD(j,de,Z,L))}var ae=Q||rD,_e={className:Oe,"data-block":!0,"data-editor":y,"data-offset-key":Y,key:U};z!==void 0&&(_e=Qw({},_e,{contentEditable:z,suppressContentEditableWarning:!0}));var Bn=mn.createElement(Ee,_e,mn.createElement(ae,Ra({},X,{key:U})));O.push({block:Bn,wrapperTemplate:H,key:U,offsetKey:Y}),H?N=V.getDepth():N=null,q=H}for(var xt=[],Le=0;Le<O.length;){var pt=O[Le];if(pt.wrapperTemplate){var Or=[];do Or.push(O[Le].block),Le++;while(Le<O.length&&O[Le].wrapperTemplate===pt.wrapperTemplate);var ge=mn.cloneElement(pt.wrapperTemplate,{key:pt.key+"-wrap","data-offset-key":pt.offsetKey},Or);xt.push(ge)}else xt.push(pt.block),Le++}return mn.createElement("div",{"data-contents":"true"},xt)},t}(mn.Component);gd.exports=uD});var yd=x((mL,vd)=>{"use strict";var cD=vt(),lD=cD("draft_tree_data_support");vd.exports=lD?ad():hd()});var _d=x((SL,Ed)=>{"use strict";var Sd={isImage:function(t){return md(t)[0]==="image"},isJpeg:function(t){var r=md(t);return Sd.isImage(t)&&(r[1]==="jpeg"||r[1]==="pjpeg")}};function md(e){return e.split("/")}Ed.exports=Sd});var xd=x((EL,Cd)=>{"use strict";var Ci=ie();function fD(e){var t=e.length;if(!Array.isArray(e)&&(typeof e=="object"||typeof e=="function")||Ci(!1),typeof t!="number"&&Ci(!1),t===0||t-1 in e||Ci(!1),typeof e.callee=="function"&&Ci(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch{}for(var r=Array(t),i=0;i<t;i++)r[i]=e[i];return r}function pD(e){return!!e&&(typeof e=="object"||typeof e=="function")&&"length"in e&&!("setInterval"in e)&&typeof e.nodeType!="number"&&(Array.isArray(e)||"callee"in e||"item"in e)}function dD(e){return pD(e)?Array.isArray(e)?e.slice():fD(e):[e]}Cd.exports=dD});var Na=x((_L,wd)=>{"use strict";function xi(e){return function(){return e}}var Gt=function(){};Gt.thatReturns=xi;Gt.thatReturnsFalse=xi(!1);Gt.thatReturnsTrue=xi(!0);Gt.thatReturnsNull=xi(null);Gt.thatReturnsThis=function(){return this};Gt.thatReturnsArgument=function(e){return e};wd.exports=Gt});var qa=x((CL,Dd)=>{"use strict";var gD=_d(),hD=xd(),vD=Na(),yD=new RegExp(`\r 39`,"g"),mD=` 40`,SD={"text/rtf":1,"text/html":1};function ED(e){if(e.kind=="file")return e.getAsFile()}var _D=function(){function e(r){this.data=r,this.types=r.types?hD(r.types):[]}var t=e.prototype;return t.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(i){return SD[i]})},t.getText=function(){var i;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(i=this.data.getData("text/plain")):i=this.data.getData("Text")),i?i.replace(yD,mD):null},t.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},t.isLink=function(){return this.types.some(function(i){return i.indexOf("Url")!=-1||i.indexOf("text/uri-list")!=-1||i.indexOf("text/x-moz-url")})},t.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var i=this.data.getData("text/x-moz-url").split(` 41`);return i[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},t.isImage=function(){var i=this.types.some(function(c){return c.indexOf("application/x-moz-file")!=-1});if(i)return!0;for(var n=this.getFiles(),a=0;a<n.length;a++){var u=n[a].type;if(!gD.isImage(u))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(ED).filter(vD.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();Dd.exports=_D});var Pa=x((xL,kd)=>{"use strict";var CD=ie(),Bd=/\.textClipping$/,xD={"text/plain":!0,"text/html":!0,"text/rtf":!0},wD=5e3;function DD(e,t){var r=0,i=[];e.forEach(function(n){BD(n,function(a){r++,a&&i.push(a.slice(0,wD)),r==e.length&&t(i.join("\r"))})})}function BD(e,t){if(!window.FileReader||e.type&&!(e.type in xD)){t("");return}if(e.type===""){var r="";Bd.test(e.name)&&(r=e.name.replace(Bd,"")),t(r);return}var i=new FileReader;i.onload=function(){var n=i.result;
41typeof n!="string"&&CD(!1),t(n)},i.onerror=function(){t("")},i.readAsText(e)}kd.exports=DD});var Sn=x((wL,Ad)=>{"use strict";function kD(e){return e==="handled"||e===!0}Ad.exports=kD});var Md=x((DL,Kd)=>{"use strict";var AD=qa(),Od=Ae(),Ld=ue(),FD=cn(),bD=un(),TD=Pa(),OD=ca(),LD=aa(),Fd=Sn(),Ua=Fe();function KD(e,t){var r=null,i=null,n=bD(e.currentTarget);if(typeof n.caretRangeFromPoint=="function"){var a=n.caretRangeFromPoint(e.x,e.y);r=a.startContainer,i=a.startOffset}else if(e.rangeParent)r=e.rangeParent,i=e.rangeOffset;else return null;r=Ua(r),i=Ua(i);var u=Ua(FD(r));return OD(t,u,i,u,i)}var MD={onDragEnd:function(t){t.exitCurrentMode(),bd(t)},onDrop:function(t,r){var i=new AD(r.nativeEvent.dataTransfer),n=t._latestEditorState,a=KD(r.nativeEvent,n);if(r.preventDefault(),t._dragCount=0,t.exitCurrentMode(),a!=null){var u=i.getFiles();if(u.length>0){if(t.props.handleDroppedFiles&&Fd(t.props.handleDroppedFiles(a,u)))return;TD(u,function(l){l&&t.update(Td(n,a,l))});return}var c=t._internalDrag?"internal":"external";t.props.handleDrop&&Fd(t.props.handleDrop(a,i,c))||(t._internalDrag?t.update(ID(n,a)):t.update(Td(n,a,i.getText()))),bd(t)}}};function bd(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var r=new MouseEvent("mouseup",{view:LD(t),bubbles:!0,cancelable:!0});t.dispatchEvent(r)}}function ID(e,t){var r=Od.moveText(e.getCurrentContent(),e.getSelection(),t);return Ld.push(e,r,"insert-fragment")}function Td(e,t,r){var i=Od.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return Ld.push(e,i,"insert-fragment")}Kd.exports=MD});var Rd=x((BL,Id)=>{"use strict";function RD(e){var t=e.getSelection(),r=t.getAnchorKey(),i=e.getBlockTree(r),n=t.getStartOffset(),a=!1;return i.some(function(u){return n===u.get("start")?(a=!0,!0):n<u.get("end")?u.get("leaves").some(function(c){var l=c.get("start");return n===l?(a=!0,!0):!1}):!1}),a}Id.exports=RD});var qd=x(Nd=>{"use strict";(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,u;function c(k){typeof k!="function"&&(k=new Function(""+k));for(var b=new Array(arguments.length-1),O=0;O<b.length;O++)b[O]=arguments[O+1];var N={callback:k,args:b};return i[r]=N,u(r),r++}function l(k){delete i[k]}function g(k){var b=k.callback,O=k.args;switch(O.length){case 0:b();break;case 1:b(O[0]);break;case 2:b(O[0],O[1]);break;case 3:b(O[0],O[1],O[2]);break;default:b.apply(t,O);break}}function d(k){if(n)setTimeout(d,0,k);else{var b=i[k];if(b){n=!0;try{g(b)}finally{l(k),n=!1}}}}function y(){u=function(k){process.nextTick(function(){d(k)})}}function v(){if(e.postMessage&&!e.importScripts){var k=!0,b=e.onmessage;return e.onmessage=function(){k=!1},e.postMessage("","*"),e.onmessage=b,k}}function S(){var k="setImmediate$"+Math.random()+"$",b=function(O){O.source===e&&typeof O.data=="string"&&O.data.indexOf(k)===0&&d(+O.data.slice(k.length))};e.addEventListener?e.addEventListener("message",b,!1):e.attachEvent("onmessage",b),u=function(O){e.postMessage(k+O,"*")}}function _(){var k=new MessageChannel;k.port1.onmessage=function(b){var O=b.data;d(O)},u=function(b){k.port2.postMessage(b)}}function A(){var k=a.documentElement;u=function(b){var O=a.createElement("script");O.onreadystatechange=function(){d(b),O.onreadystatechange=null,k.removeChild(O),O=null},k.appendChild(O)}}function B(){u=function(k){setTimeout(d,0,k)}}var w=Object.getPrototypeOf&&Object.getPrototypeOf(e);w=w&&w.setTimeout?w:e,{}.toString.call(e.process)==="[object process]"?y():v()?S():e.MessageChannel?_():a&&"onreadystatechange"in a.createElement("script")?A():B(),w.setImmediate=c,w.clearImmediate=l})(typeof self>"u"?typeof window>"u"?Nd:window:self)});var Ud=x((AL,Pd)=>{"use strict";qd();Pd.exports=window.setImmediate});var jd=x((FL,Hd)=>{"use strict";var ND=Ae(),za=ue(),qD=be(),zd=fi(),PD=Sn(),UD=Rd(),Wd=Fe(),zD=Ud(),WD="'",VD="/",HD=qD.isBrowser("Firefox");function jD(e){return HD&&(e==WD||e==VD)}function Vd(e,t,r,i,n){var a=ND.replaceText(e.getCurrentContent(),e.getSelection(),t,r,i);return za.push(e,a,"insert-characters",n)}function $D(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e._latestEditorState,i=t.data;if(i){if(e.props.handleBeforeInput&&PD(e.props.handleBeforeInput(i,r,t.timeStamp))){t.preventDefault();return}
vendor: 35,259 bytes, lines 41-48
41var n=r.getSelection(),a=n.getStartOffset(),u=n.getAnchorKey();if(!n.isCollapsed()){t.preventDefault(),e.update(Vd(r,i,r.getCurrentInlineStyle(),zd(r.getCurrentContent(),r.getSelection()),!0));return}var c=Vd(r,i,r.getCurrentInlineStyle(),zd(r.getCurrentContent(),r.getSelection()),!1),l=!1;if(l||(l=UD(e._latestCommittedEditorState)),!l){var g=r.getBlockTree(u),d=c.getBlockTree(u);l=g.size!==d.size||g.zip(d).some(function(y){var v=y[0],S=y[1],_=v.get("start"),A=_+(_>=a?i.length:0),B=v.get("end"),w=B+(B>=a?i.length:0),k=S.get("start"),b=S.get("end"),O=S.get("decoratorKey");return v.get("decoratorKey")!==O||v.get("leaves").size!==S.get("leaves").size||A!==k||w!==b||O!=null&&b-k!==B-_})}if(l||(l=jD(i)),l||(l=Wd(c.getDirectionMap()).get(u)!==Wd(r.getDirectionMap()).get(u)),l){t.preventDefault(),c=za.set(c,{forceSelection:!0}),e.update(c);return}c=za.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,zD(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}Hd.exports=$D});var Jd=x((bL,Gd)=>{"use strict";var GD=ue(),$d=di(),JD=xa();function YD(e,t){var r=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&JD(r)===r.body){var i=r.defaultView.getSelection(),n=e.editor;i.rangeCount===1&&$d(n,i.anchorNode)&&$d(n,i.focusNode)&&i.removeAllRanges()}var a=e._latestEditorState,u=a.getSelection();if(u.getHasFocus()){var c=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(GD.acceptSelection(a,c))}}Gd.exports=YD});var Xd=x((TL,Yd)=>{"use strict";var XD=ue();function ZD(e,t){e.setMode("composite"),e.update(XD.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}Yd.exports=ZD});var Wa=x((OL,Zd)=>{"use strict";var QD=Gr();function eB(e){var t=e.getSelection();return t.isCollapsed()?null:QD(e.getCurrentContent(),t)}Zd.exports=eB});var eg=x((LL,Qd)=>{"use strict";var tB=Wa();function rB(e,t){var r=e._latestEditorState,i=r.getSelection();if(i.isCollapsed()){t.preventDefault();return}e.setClipboard(tB(e._latestEditorState))}Qd.exports=rB});var rg=x((KL,tg)=>{"use strict";function nB(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}tg.exports=nB});var ig=x((ML,ng)=>{"use strict";var iB=Ae(),oB=ue(),aB=vn(),sB=Wa(),uB=yn(),cB=rg();function lB(e,t){var r=e._latestEditorState,i=r.getSelection(),n=t.target,a;if(i.isCollapsed()){t.preventDefault();return}if(cB(n)){var u=n;a=uB(aB.getScrollParent(u))}var c=sB(r);e.setClipboard(c),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(a),e.exitCurrentMode(),e.update(fB(r))},0)}function fB(e){var t=iB.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return oB.push(e,t,"remove-range")}ng.exports=lB});var ag=x((IL,og)=>{"use strict";function pB(e,t){e.setMode("drag"),t.preventDefault()}og.exports=pB});var ug=x((RL,sg)=>{"use strict";function dB(e){e._internalDrag=!0,e.setMode("drag")}sg.exports=dB});var fg=x((NL,lg)=>{"use strict";var cg=ue(),gB=be();function hB(e,t){var r=e._latestEditorState,i=r.getSelection();if(!i.getHasFocus()){var n=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),gB.isBrowser("Chrome < 60.0.3081.0")?e.update(cg.forceSelection(r,n)):e.update(cg.acceptSelection(r,n))}}lg.exports=hB});var Kt=x((qL,vg)=>{"use strict";var vB=ie(),pg=55296,yB=56319,mB=56320,dg=57343,SB=/[\uD800-\uDFFF]/;function gg(e){return pg<=e&&e<=dg}function EB(e,t){if(0<=t&&t<e.length||vB(!1),t+1===e.length)return!1;var r=e.charCodeAt(t),i=e.charCodeAt(t+1);return pg<=r&&r<=yB&&mB<=i&&i<=dg}function Va(e){return SB.test(e)}function Br(e,t){return 1+gg(e.charCodeAt(t))}function _B(e){if(!Va(e))return e.length;for(var t=0,r=0;r<e.length;r+=Br(e,r))t++;return t}function hg(e,t,r){if(t=t||0,r=r===void 0?1/0:r||0,!Va(e))return e.substr(t,r);var i=e.length;if(i<=0||t>i||r<=0)return"";var n=0;if(t>0){for(;t>0&&n<i;t--)n+=Br(e,n);if(n>=i)return""}else if(t<0){for(n=i;t<0&&0<n;t++)n-=Br(e,n-1);n<0&&(n=0)}var a=i;if(r<i)for(a=n;r>0&&a<i;r--)a+=Br(e,a);return e.substring(n,a)}function CB(e,t,r){t=t||0,r=r===void 0?1/0:r||0,t<0&&(t=0),r<0&&(r=0);var i=Math.abs(r-t);return t=t<r?t:r,hg(e,t,i)}function xB(e){for(var t=[],r=0;r<e.length;r+=Br(e,r))t.push(e.codePointAt(r));return t}var wB={getCodePoints:xB,getUTF16Length:Br,hasSurrogateUnit:Va,isCodeUnitInSurrogateRange:gg,isSurrogatePair:EB,strlen:_B,substring:CB,substr:hg};vg.exports=wB});var wi=x((PL,yg)=>{"use strict";var DB=Na(),BB=DB;yg.exports=BB});var Di=x((zL,mg)=>{"use strict";var UL=wi();function kB(e,t){var r=e.getSelection(),i=e.getCurrentContent(),n=r.getStartKey(),a=r.getStartOffset(),u=n,c=0;if(t>a){var l=i.getKeyBefore(n);if(l==null)u=n;else{u=l;var g=i.getBlockForKey(l);c=g.getText().length}}else c=a-t;return r.merge({focusKey:u,focusOffset:c,isBackward:!0})}mg.exports=kB});var kr=x((WL,Eg)=>{"use strict";var AB=Ae(),FB=vt(),Sg=FB("draft_tree_data_support");function bB(e,t,r){var i=e.getSelection(),n=e.getCurrentContent(),a=i,u=i.getAnchorKey(),c=i.getFocusKey(),l=n.getBlockForKey(u);if(Sg&&r==="forward"&&u!==c)return n;if(i.isCollapsed()){if(r==="forward"){if(e.isSelectionAtEndOfContent())return n;if(Sg){var g=i.getAnchorOffset()===n.getBlockForKey(u).getLength();if(g){var d=n.getBlockForKey(l.nextSibling);if(!d||d.getLength()===0)return n}}}else if(e.isSelectionAtStartOfContent())return n;if(a=t(e),a===i)return n}return AB.removeRange(n,a,r)}Eg.exports=bB});var Ha=x((VL,_g)=>{"use strict";var TB=ue(),OB=Kt(),LB=Di(),KB=kr();function MB(e){var t=KB(e,function(i){var n=i.getSelection(),a=i.getCurrentContent(),u=n.getAnchorKey(),c=n.getAnchorOffset(),l=a.getBlockForKey(u).getText()[c-1];return LB(i,l?OB.getUTF16Length(l,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return TB.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}_g.exports=MB});var xg=x((HL,Cg)=>{"use strict";var IB=Ae(),RB=st(),NB=ue(),qB=be(),PB=ha(),UB=PB.notEmptyKey,zB=cn(),WB=Ha(),VB=Fe(),HB=qB.isEngine("Gecko"),jB=` 42 43`;function $B(e,t){switch(e){case"deleteContentBackward":return WB(t)}return t}function GB(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e.editor,i=r.ownerDocument.defaultView.getSelection(),n=i.anchorNode,a=i.isCollapsed,u=n?.nodeType!==Node.TEXT_NODE&&n?.nodeType!==Node.ELEMENT_NODE;if(!(n==null||u)){if(n.nodeType===Node.TEXT_NODE&&(n.previousSibling!==null||n.nextSibling!==null)){var c=n.parentNode;if(c==null)return;n.nodeValue=c.textContent;for(var l=c.firstChild;l!=null;l=l.nextSibling)l!==n&&c.removeChild(l)}var g=n.textContent,d=e._latestEditorState,y=VB(zB(n)),v=RB.decode(y),S=v.blockKey,_=v.decoratorKey,A=v.leafKey,B=d.getBlockTree(S).getIn([_,"leaves",A]),w=B.start,k=B.end,b=d.getCurrentContent(),O=b.getBlockForKey(S),N=O.getText().slice(w,k);if(g.endsWith(jB)&&(g=g.slice(0,-1)),g===N){var q=t.nativeEvent.inputType;if(q){var K=$B(q,d);if(K!==d){e.restoreEditorDOM(),e.update(K);return}}return}var V=d.getSelection(),U=V.merge({anchorOffset:w,focusOffset:k,isBackward:!1}),j=O.getEntityAt(w),J=UB(j)?b.getEntity(j):null,Q=J!=null?J.getMutability():null,I=Q==="MUTABLE",z=I?"spellcheck-change":"apply-entity",L=IB.replaceText(b,U,g,O.getInlineStyleAt(w),I?O.getEntityAt(w):null),Y,X,oe,H;if(HB)Y=i.anchorOffset,X=i.focusOffset,oe=w+Math.min(Y,X),H=oe+Math.abs(Y-X),Y=oe,X=H;else{var Ee=g.length-N.length;oe=V.getStartOffset(),H=V.getEndOffset(),Y=a?H+Ee:oe,X=H+Ee}var de=L.merge({selectionBefore:b.getSelectionAfter(),selectionAfter:V.merge({anchorOffset:Y,focusOffset:X})});e.update(NB.push(d,de,z))}}Cg.exports=GB});var Dg=x((jL,wg)=>{"use strict";var JB=ln();function YB(e){return e.which===JB.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}wg.exports=YB});var Bi=x(($L,kg)=>{"use strict";var XB=be(),ZB=Dg(),ja=XB.isPlatform("Mac OS X"),Bg={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return ja&&t.altKey},usesMacOSHeuristics:function(){return ja},hasCommandModifier:function(t){return ja?!!t.metaKey&&!t.altKey:Bg.isCtrlKeyCommand(t)},isSoftNewlineEvent:ZB};kg.exports=Bg});var Tg=x((GL,bg)=>{"use strict";var Ag=Ae(),Fg=ue(),QB=Gr(),ek=Fe(),$a=null,tk={cut:function(t){var r=t.getCurrentContent(),i=t.getSelection(),n=null;if(i.isCollapsed()){var a=i.getAnchorKey(),u=r.getBlockForKey(a).getLength();if(u===i.getAnchorOffset()){var c=r.getKeyAfter(a);if(c==null)return t;n=i.set("focusKey",c).set("focusOffset",0)}else n=i.set("focusOffset",u)}else n=i;n=ek(n),$a=QB(r,n);var l=Ag.removeRange(r,n,"forward");return l===r?t:Fg.push(t,l,"remove-range")},paste:function(t){if(!$a)return t;var r=Ag.replaceWithFragment(t.getCurrentContent(),t.getSelection(),$a);return Fg.push(t,r,"insert-fragment")}};bg.exports=tk});var Ga=x((JL,Og)=>{"use strict";var rk=be(),nk=ie(),ik=rk.isBrowser("Chrome");function ok(e){for(var t=e.cloneRange(),r=[],i=e.endContainer;i!=null;i=i.parentNode){var n=i===e.commonAncestorContainer;n?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a=Array.from(t.getClientRects());if(r.push(a),n){var u;return r.reverse(),(u=[]).concat.apply(u,r)}t.setEndBefore(i)}nk(!1)}var ak=ik?ok:function(e){return Array.from(e.getClientRects())};Og.exports=ak});var Ig=x((YL,Mg)=>{"use strict";var sk=Kt(),uk=un(),Lg=Ga(),Ja=ie();function ck(e){var t=getComputedStyle(e),r=uk(e),i=r.createElement("div");i.style.fontFamily=t.fontFamily,i.style.fontSize=t.fontSize,i.style.fontStyle=t.fontStyle,i.style.fontWeight=t.fontWeight,i.style.lineHeight=t.lineHeight,i.style.position="absolute",i.textContent="M";var n=r.body;n||Ja(!1),n.appendChild(i);var a=i.getBoundingClientRect();return n.removeChild(i),a.height}function Kg(e,t){for(var r=1/0,i=1/0,n=-1/0,a=-1/0,u=0;u<e.length;u++){var c=e[u];c.width===0||c.width===1||(r=Math.min(r,c.top),i=Math.min(i,c.bottom),n=Math.max(n,c.top),a=Math.max(a,c.bottom))}return n<=i&&n-r<t&&a-i<t}function lk(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}function fk(e){e.collapsed||Ja(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var r=ck(t),i=e.endContainer,n=e.endOffset;for(e.setStart(e.startContainer,0);Kg(Lg(e),r)&&(i=e.startContainer,n=e.startOffset,i.parentNode||Ja(!1),e.setStartBefore(i),!(i.nodeType===1&&getComputedStyle(i).display!=="inline")););var a=i,u=n-1;do{for(var c=a.nodeValue,l=u;l>=0;l--)if(!(c!=null&&l>0&&sk.isSurrogatePair(c,l-1)))if(e.setStart(a,l),Kg(Lg(e),r))i=a,n=l;else break;if(l===-1||a.childNodes.length===0)break;a=a.childNodes[l],u=lk(a)}while(!0);return e.setStart(i,n),e}Mg.exports=fk});var Ng=x((XL,Rg)=>{"use strict";var pk=ue(),dk=Ig(),gk=pa(),hk=Di(),vk=kr();function yk(e,t){var r=vk(e,function(i){var n=i.getSelection();if(n.isCollapsed()&&n.getAnchorOffset()===0)return hk(i,1);var a=t.currentTarget.ownerDocument,u=a.defaultView.getSelection(),c=u.getRangeAt(0);return c=dk(c),gk(i,null,c.endContainer,c.endOffset,c.startContainer,c.startOffset).selectionState},"backward");return r===e.getCurrentContent()?e:pk.push(e,r,"remove-range")}Rg.exports=yk});var Pg=x((ZL,qg)=>{"use strict";var mk=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;\u30FB\u3001\u3002\u3008-\u3011\u3014-\u301F\uFF1A-\uFF1F\uFF01-\uFF0F\uFF3B-\uFF40\uFF5B-\uFF65\u2E2E\u061F\u066A-\u066C\u061B\u060C\u060D\uFD3E\uFD3F\u1801\u0964\u104A\u104B\u2010-\u2027\u2030-\u205E\xA1-\xB1\xB4-\xB8\xBA\xBB\xBF]`;qg.exports={getPunctuation:function(){return mk}}});var Ya=x((QL,Wg)=>{"use strict";var Sk=Pg(),Ek=Sk.getPunctuation(),zg="['\u2018\u2019]",Ar="\\s|(?![_])"+Ek,_k="^(?:"+Ar+")*(?:"+zg+"|(?!"+Ar+").)*(?:(?!"+Ar+").)",Ck=new RegExp(_k),xk="(?:(?!"+Ar+").)(?:"+zg+"|(?!"+Ar+").)*(?:"+Ar+")*$",wk=new RegExp(xk);function Ug(e,t){var r=t?wk.exec(e):Ck.exec(e);return r?r[0]:e}var Dk={getBackward:function(t){return Ug(t,!0)},getForward:function(t){return Ug(t,!1)}};Wg.exports=Dk});var jg=x((eK,Hg)=>{"use strict";var Bk=Ya(),kk=ue(),Vg=Di(),Ak=kr();function Fk(e){var t=Ak(e,function(r){var i=r.getSelection(),n=i.getStartOffset();if(n===0)return Vg(r,1);var a=i.getStartKey(),u=r.getCurrentContent(),c=u.getBlockForKey(a).getText().slice(0,n),l=Bk.getBackward(c);return Vg(r,l.length||1)},"backward");return t===e.getCurrentContent()?e:kk.push(e,t,"remove-range")}Hg.exports=Fk});var Xa=x((rK,$g)=>{"use strict";var tK=wi();function bk(e,t){var r=e.getSelection(),i=r.getStartKey(),n=r.getStartOffset(),a=e.getCurrentContent(),u=i,c,l=a.getBlockForKey(i);return t>l.getText().length-n?(u=a.getKeyAfter(i),c=0):c=n+t,r.merge({focusKey:u,focusOffset:c})}$g.exports=bk});var Jg=x((nK,Gg)=>{"use strict";var Tk=Ya(),Ok=ue(),Lk=Xa(),Kk=kr();function Mk(e){var t=Kk(e,function(r){var i=r.getSelection(),n=i.getStartOffset(),a=i.getStartKey(),u=r.getCurrentContent(),c=u.getBlockForKey(a).getText().slice(n),l=Tk.getForward(c);return Lk(r,l.length||1)},"forward");return t===e.getCurrentContent()?e:Ok.push(e,t,"remove-range")}Gg.exports=Mk});var Xg=x((iK,Yg)=>{"use strict";var Ik=Ae(),Rk=ue();function Nk(e){var t=Ik.splitBlock(e.getCurrentContent(),e.getSelection());return Rk.push(e,t,"split-block")}Yg.exports=Nk});var Qg=x((oK,Zg)=>{"use strict";var qk=ue();function Pk(e){var t=e.getSelection(),r=t.getEndKey(),i=e.getCurrentContent(),n=i.getBlockForKey(r).getLength();return qk.set(e,{selection:t.merge({anchorKey:r,anchorOffset:n,focusKey:r,focusOffset:n,isBackward:!1}),forceSelection:!0})}Zg.exports=Pk});var th=x((aK,eh)=>{"use strict";var Uk=ue();function zk(e){var t=e.getSelection(),r=t.getStartKey();return Uk.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}eh.exports=zk});var nh=x((sK,rh)=>{"use strict";var Wk=ue(),Vk=Kt(),Hk=Xa(),jk=kr();function $k(e){var t=jk(e,function(i){var n=i.getSelection(),a=i.getCurrentContent(),u=n.getAnchorKey(),c=n.getAnchorOffset(),l=a.getBlockForKey(u).getText()[c];return Hk(i,l?Vk.getUTF16Length(l,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return Wk.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}rh.exports=$k});var sh=x((uK,ah)=>{"use strict";var ih=Ae(),oh=ue(),Gk=Gr();function Jk(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(r===0)return e;var i=t.getAnchorKey(),n=e.getCurrentContent(),a=n.getBlockForKey(i),u=a.getLength();if(u<=1)return e;var c,l;r===u?(c=t.set("anchorOffset",r-1),l=t):(c=t.set("focusOffset",r+1),l=c.set("anchorOffset",r+1));var g=Gk(n,c),d=ih.removeRange(n,c,"backward"),y=d.getSelectionAfter(),v=y.getAnchorOffset()-1,S=y.merge({anchorOffset:v,focusOffset:v}),_=ih.replaceWithFragment(d,S,g),A=oh.push(e,_,"insert-fragment");return oh.acceptSelection(A,l)}ah.exports=Jk});var ch=x((cK,uh)=>{"use strict";var Za=ue();function Yk(e,t,r){var i=Za.undo(t);if(t.getLastChangeType()==="spellcheck-change"){var n=i.getCurrentContent();r(Za.set(i,{nativelyRenderedContent:n}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){r(i);return}r(Za.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)}uh.exports=Yk});var vh=x((lK,hh)=>{"use strict";var Xk=Ae(),gh=ue(),Zk=Bi(),mt=ln(),lh=Tg(),Qk=be(),fh=Sn(),eA=Ng(),tA=jg(),rA=Jg(),nA=Xg(),iA=Qg(),oA=th(),aA=Ha(),sA=nh(),uA=sh(),cA=ch(),ph=Zk.isOptionKeyCommand,dh=Qk.isBrowser("Chrome");function lA(e,t,r){switch(e){case"redo":return gh.redo(t);case"delete":return sA(t);case"delete-word":return rA(t);case"backspace":return aA(t);case"backspace-word":return tA(t);case"backspace-to-start-of-line":return eA(t,r);case"split-block":return nA(t);case"transpose-characters":return uA(t);case"move-selection-to-start-of-block":return oA(t);case"move-selection-to-end-of-block":return iA(t);case"secondary-cut":return lh.cut(t);case"secondary-paste":return lh.paste(t);default:return t}}function fA(e,t){var r=t.which,i=e._latestEditorState;function n(l){var g=e.props[l];return g?(g(t),!0):!1}switch(r){case mt.RETURN:if(t.preventDefault(),e.props.handleReturn&&fh(e.props.handleReturn(t,i)))return;break;case mt.ESC:if(t.preventDefault(),n("onEscape"))return;break;case mt.TAB:if(n("onTab"))return;break;case mt.UP:if(n("onUpArrow"))return;break;case mt.RIGHT:if(n("onRightArrow"))return;break;case mt.DOWN:if(n("onDownArrow"))return;break;case mt.LEFT:if(n("onLeftArrow"))return;break;case mt.SPACE:dh&&ph(t)&&t.preventDefault()}var a=e.props.keyBindingFn(t);if(a==null||a===""){if(r===mt.SPACE&&dh&&ph(t)){var u=Xk.replaceText(i.getCurrentContent(),i.getSelection(),"\xA0");e.update(gh.push(i,u,"insert-characters"))}return}if(a==="undo"){cA(t,i,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&fh(e.props.handleKeyCommand(a,i,t.timeStamp)))){var c=lA(a,i,t);c!==i&&e.update(c)}}hh.exports=fA});var mh=x((fK,yh)=>{"use strict";function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dA=function(){function e(r){pA(this,"_uri",void 0),this._uri=r}var t=e.prototype;return t.toString=function(){return this._uri},e}();yh.exports=dA});var Qa=x((pK,Sh)=>{"use strict";var gA=be(),hA=ie(),vA=gA.isBrowser("IE <= 9");function yA(e){var t,r=null;return!vA&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||hA(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}Sh.exports=yA});var _h=x((dK,Eh)=>{"use strict";var mA=Ot();function SA(e){return!e||!e.ownerDocument?!1:mA(e)&&e.nodeName==="A"}Eh.exports=SA});var xh=x((gK,Ch)=>{"use strict";var EA=Ot();function _A(e){return!e||!e.ownerDocument?!1:EA(e)&&e.nodeName==="IMG"}Ch.exports=_A});var is=x((hK,Mh)=>{"use strict";var Jt;function es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){xe(e,n,r[n])})}return e}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var CA=qe(),xA=bt(),wA=Pe(),DA=oi(),wh=Zr(),Fh=mh(),En=Tt(),Dh=Je(),BA=Qa(),bh=vt(),rs=re(),Mt=rs.List,Th=rs.Map,kA=rs.OrderedSet,Oh=_h(),AA=_a(),ns=wr(),Lh=xh(),Bh=bh("draft_tree_data_support"),FA=" ",Kh=" ",bA=new RegExp("\r","g"),TA=new RegExp(` 44`,"g"),OA=new RegExp(`^ 45`,"g"),LA=new RegExp(FA,"g"),KA=new RegExp(" ?","g"),MA=new RegExp("​?","g"),IA=["bold","bolder","500","600","700","800","900"],RA=["light","lighter","normal","100","200","300","400"],NA=["className","href","rel","target","title"],qA=["alt","className","height","src","width"],kh=(Jt={},xe(Jt,En("public/DraftStyleDefault/depth0"),0),xe(Jt,En("public/DraftStyleDefault/depth1"),1),xe(Jt,En("public/DraftStyleDefault/depth2"),2),xe(Jt,En("public/DraftStyleDefault/depth3"),3),xe(Jt,En("public/DraftStyleDefault/depth4"),4),Jt),Ah=Th({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),PA=function(t){var r={};return t.mapKeys(function(i,n){var a=[n.element];n.aliasedElements!==void 0&&a.push.apply(a,n.aliasedElements),a.forEach(function(u){r[u]===void 0?r[u]=i:typeof r[u]=="string"?r[u]=[r[u],i]:r[u].push(i)})}),Th(r)},UA=function(t){if(ns(t)){var r=t;if(r.style.fontFamily.includes("monospace"))return"CODE"}return null},zA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(kh).some(function(i){t.classList.contains(i)&&(r=kh[i])}),r},WA=function(t){if(!Oh(t))return!1;var r=t;if(!r.href||r.protocol!=="http:"&&r.protocol!=="https:"&&r.protocol!=="mailto:"&&r.protocol!=="tel:")return!1;try{var i=new Fh(r.href);return!0}catch{return!1}},VA=function(t){if(!Lh(t))return!1;var r=t;return!!(r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value)},HA=function(t,r){if(!ns(t))return r;var i=t,n=i.style.fontWeight,a=i.style.fontStyle,u=i.style.textDecoration;return r.withMutations(function(c){IA.indexOf(n)>=0?c.add("BOLD"):RA.indexOf(n)>=0&&c.remove("BOLD"),a==="italic"?c.add("ITALIC"):a==="normal"&&c.remove("ITALIC"),u==="underline"&&c.add("UNDERLINE"),u==="line-through"&&c.add("STRIKETHROUGH"),u==="none"&&(c.remove("UNDERLINE"),c.remove("STRIKETHROUGH"))})},ts=function(t){return t==="ul"||t==="ol"},jA=function(){function e(r,i){xe(this,"characterList",Mt()),xe(this,"currentBlockType","unstyled"),xe(this,"currentDepth",0),xe(this,"currentEntity",null),xe(this,"currentText",""),xe(this,"wrapper",null),xe(this,"blockConfigs",[]),xe(this,"contentBlocks",[]),xe(this,"entityMap",wh),xe(this,"blockTypeMap",void 0),xe(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=r,this.disambiguate=i}var t=e.prototype;return t.clear=function(){this.characterList=Mt(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=wh,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(i){var n;return this.contentBlocks=[],this.currentDepth=0,(n=this.blockConfigs).push.apply(n,this._toBlockConfigs([i],kA())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&(Bh?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.key||Dh(),a=es({key:n,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Mt(),prevSibling:null,nextSibling:null,childConfigs:[]},i);return this.characterList=Mt(),this.currentBlockType="unstyled",this.currentText="",a},t._toBlockConfigs=function(i,n){for(var a=[],u=0;u<i.length;u++){var c=i[u],l=c.nodeName.toLowerCase();if(l==="body"||ts(l)){this._trimCurrentText(),this.currentText!==""&&a.push(this._makeBlockConfig());var g=this.currentDepth,d=this.wrapper;ts(l)&&(this.wrapper=l,ts(d)&&this.currentDepth++),a.push.apply(a,this._toBlockConfigs(Array.from(c.childNodes),n)),this.currentDepth=g,this.wrapper=d;continue}var y=this.blockTypeMap.get(l);if(y!==void 0){this._trimCurrentText(),this.currentText!==""&&a.push(this._makeBlockConfig());var v=this.currentDepth,S=this.wrapper;if(this.wrapper=l==="pre"?"pre":this.wrapper,typeof y!="string"&&(y=this.disambiguate(l,this.wrapper)||y[0]||"unstyled"),!Bh&&ns(c)&&(y==="unordered-list-item"||y==="ordered-list-item")){var _=c;this.currentDepth=zA(_,this.currentDepth)}var A=Dh(),B=this._toBlockConfigs(Array.from(c.childNodes),n);this._trimCurrentText(),a.push(this._makeBlockConfig({key:A,childConfigs:B,type:y})),this.currentDepth=v,this.wrapper=S;continue}if(l==="#text"){this._addTextNode(c,n);continue}if(l==="br"){this._addBreakNode(c,n);continue}if(VA(c)){this._addImgNode(c,n);continue}if(WA(c)){this._addAnchorNode(c,a,n);continue}var w=n;Ah.has(l)&&(w=w.add(Ah.get(l))),w=HA(c,w);var k=UA(c);k!=null&&(w=w.add(k)),a.push.apply(a,this._toBlockConfigs(Array.from(c.childNodes),w))}return a},t._appendText=function(i,n){var a;this.currentText+=i;var u=CA.create({style:n,entity:this.currentEntity});this.characterList=(a=this.characterList).push.apply(a,Array(i.length).fill(u))},t._trimCurrentText=function(){var i=this.currentText.length,n=i-this.currentText.trimLeft().length,a=this.currentText.trimRight().length,u=this.characterList.findEntry(function(c){return c.getEntity()!==null});n=u!==void 0?Math.min(n,u[0]):n,u=this.characterList.reverse().findEntry(function(c){return c.getEntity()!==null}),a=u!==void 0?Math.max(a,i-u[0]):a,n>a?(this.currentText="",this.characterList=Mt()):(this.currentText=this.currentText.slice(n,a),this.characterList=this.characterList.slice(n,a))},t._addTextNode=function(i,n){var a=i.textContent,u=a.trim();u===""&&this.wrapper!=="pre"&&(a=" "),this.wrapper!=="pre"&&(a=a.replace(OA,""),a=a.replace(TA,Kh)),this._appendText(a,n)},t._addBreakNode=function(i,n){AA(i)&&this._appendText(` 46`,n)},t._addImgNode=function(i,n){if(Lh(i)){var a=i,u={};qA.forEach(function(c){var l=a.getAttribute(c);l&&(u[c]=l)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",u),bh("draftjs_fix_paste_for_img")?a.getAttribute("role")!=="presentation"&&this._appendText("\u{1F4F7}",n):this._appendText("\u{1F4F7}",n),this.currentEntity=null}},t._addAnchorNode=function(i,n,a){if(Oh(i)){var u=i,c={};NA.forEach(function(l){var g=u.getAttribute(l);g&&(c[l]=g)}),c.url=new Fh(u.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",c||{}),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),a)),this.currentEntity=null}},t._toContentBlocks=function(i){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=i.length-1,u=0;u<=a;u++){var c=i[u];c.parent=n,c.prevSibling=u>0?i[u-1].key:null,c.nextSibling=u<a?i[u+1].key:null,c.children=Mt(c.childConfigs.map(function(l){return l.key})),this.contentBlocks.push(new wA(es({},c))),this._toContentBlocks(c.childConfigs,c.key)}},t._hoistContainersInBlockConfigs=function(i){var n=this,a=Mt(i).flatMap(function(u){return u.type!=="unstyled"||u.text!==""?[u]:n._hoistContainersInBlockConfigs(u.childConfigs)});return a},t._toFlatContentBlocks=function(i){var n=this,a=this._hoistContainersInBlockConfigs(i);a.forEach(function(u){var c=n._extractTextFromBlockConfigs(u.childConfigs),l=c.text,g=c.characterList;n.contentBlocks.push(new xA(es({},u,{text:u.text+l,characterList:u.characterList.concat(g)})))})},t._extractTextFromBlockConfigs=function(i){for(var n=i.length-1,a="",u=Mt(),c=0;c<=n;c++){var l=i[c];a+=l.text,u=u.concat(l.characterList),a!==""&&l.type!=="unstyled"&&(a+=` 47`,u=u.push(u.last()));var g=this._extractTextFromBlockConfigs(l.childConfigs);a+=g.text,u=u.concat(g.characterList)}return{text:a,characterList:u}},e}(),$A=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:BA,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:DA;t=t.trim().replace(bA,"").replace(LA,Kh).replace(KA,"").replace(MA,"");var n=r(t);if(!n)return null;var a=PA(i),u=function(l,g){return l==="li"?g==="ol"?"ordered-list-item":"unordered-list-item":null};return new jA(a,u).addDOMNode(n).getContentBlocks()};Mh.exports=$A});var qh=x((vK,Nh)=>{"use strict";function GA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){JA(e,n,r[n])})}return e}function JA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YA=bt(),XA=Pe(),ZA=is(),QA=Je(),eF=Qa(),tF=vt(),Ih=re(),rF=Yo(),nF=Ih.List,iF=Ih.Repeat,Rh=tF("draft_tree_data_support"),oF=Rh?XA:YA,aF={processHTML:function(t,r){return ZA(t,eF,r)},processText:function(t,r,i){return t.reduce(function(n,a,u){a=rF(a);var c=QA(),l={key:c,type:i,text:a,characterList:nF(iF(r,a.length))};if(Rh&&u!==0){var g=u-1,d=n[g]=n[g].merge({nextSibling:c});l=GA({},l,{prevSibling:d.getKey()})}return n.push(new oF(l)),n},[])}};Nh.exports=aF});var Uh=x((yK,Ph)=>{"use strict";function sF(e,t,r,i){var n=t.getStartKey(),a=t.getEndKey(),u=e.getBlockMap(),c=u.toSeq().skipUntil(function(l,g){return g===n}).takeUntil(function(l,g){return g===a}).concat([[a,u.get(a)]]).map(function(l){var g=l.getDepth()+r;return g=Math.max(0,Math.min(g,i)),l.set("depth",g)});return u=u.merge(c),e.merge({blockMap:u,selectionBefore:t,selectionAfter:t})}Ph.exports=sF});var os=x((mK,zh)=>{"use strict";var Yt=Ae(),ut=ue(),uF=Uh(),cF=Fe(),ct={currentBlockContainsLink:function(t){var r=t.getSelection(),i=t.getCurrentContent(),n=i.getEntityMap();return i.getBlockForKey(r.getAnchorKey()).getCharacterList().slice(r.getStartOffset(),r.getEndOffset()).some(function(a){var u=a.getEntity();return!!u&&n.__get(u).getType()==="LINK"})},getCurrentBlockType:function(t){var r=t.getSelection();return t.getCurrentContent().getBlockForKey(r.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,r,i){switch(r){case"bold":return ct.toggleInlineStyle(t,"BOLD");case"italic":return ct.toggleInlineStyle(t,"ITALIC");case"underline":return ct.toggleInlineStyle(t,"UNDERLINE");case"code":return ct.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return ct.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return ct.onDelete(t);default:return null}},insertSoftNewline:function(t){var r=Yt.insertText(t.getCurrentContent(),t.getSelection(),` 48`,t.getCurrentInlineStyle(),null),i=ut.push(t,r,"insert-characters");return ut.forceSelection(i,r.getSelectionAfter())},onBackspace:function(t){var r=t.getSelection();if(!r.isCollapsed()||r.getAnchorOffset()||r.getFocusOffset())return null;var i=t.getCurrentContent(),n=r.getStartKey(),a=i.getBlockBefore(n);if(a&&a.getType()==="atomic"){var u=i.getBlockMap().delete(a.getKey()),c=i.merge({blockMap:u,selectionAfter:r});if(c!==i)return ut.push(t,c,"remove-range")}var l=ct.tryToRemoveBlockStyle(t);return l?ut.push(t,l,"change-block-type"):null},onDelete:function(t){var r=t.getSelection();if(!r.isCollapsed())return null;var i=t.getCurrentContent(),n=r.getStartKey(),a=i.getBlockForKey(n),u=a.getLength();if(r.getStartOffset()<u)return null;var c=i.getBlockAfter(n);if(!c||c.getType()!=="atomic")return null;var l=r.merge({focusKey:c.getKey(),focusOffset:c.getLength()}),g=Yt.removeRange(i,l,"forward");return g!==i?ut.push(t,g,"remove-range"):null},onTab:function(t,r,i){var n=r.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return r;var u=r.getCurrentContent(),c=u.getBlockForKey(a),l=c.getType();if(l!=="unordered-list-item"&&l!=="ordered-list-item")return r;t.preventDefault();var g=c.getDepth();if(!t.shiftKey&&g===i)return r;var d=uF(u,n,t.shiftKey?-1:1,i);return ut.push(r,d,"adjust-depth")},toggleBlockType:function(t,r){var i=t.getSelection(),n=i.getStartKey(),a=i.getEndKey(),u=t.getCurrentContent(),c=i;if(n!==a&&i.getEndOffset()===0){var l=cF(u.getBlockBefore(a));a=l.getKey(),c=c.merge({anchorKey:n,anchorOffset:i.getStartOffset(),focusKey:a,focusOffset:l.getLength(),isBackward:!1})}var g=u.getBlockMap().skipWhile(function(y,v){return v!==n}).reverse().skipWhile(function(y,v){return v!==a}).some(function(y){return y.getType()==="atomic"});if(g)return t;var d=u.getBlockForKey(n).getType()===r?"unstyled":r;return ut.push(t,Yt.setBlockType(u,c,d),"change-block-type")},toggleCode:function(t){var r=t.getSelection(),i=r.getAnchorKey(),n=r.getFocusKey();return r.isCollapsed()||i!==n?ct.toggleBlockType(t,"code-block"):ct.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,r){var i=t.getSelection(),n=t.getCurrentInlineStyle();if(i.isCollapsed())return ut.setInlineStyleOverride(t,n.has(r)?n.remove(r):n.add(r));var a=t.getCurrentContent(),u;return n.has(r)?u=Yt.removeInlineStyle(a,i,r):u=Yt.applyInlineStyle(a,i,r),ut.push(t,u,"change-inline-style")},toggleLink:function(t,r,i){var n=Yt.applyEntity(t.getCurrentContent(),r,i);return ut.push(t,n,"apply-entity")},tryToRemoveBlockStyle:function(t){var r=t.getSelection(),i=r.getAnchorOffset();if(r.isCollapsed()&&i===0){var n=r.getAnchorKey(),a=t.getCurrentContent(),u=a.getBlockForKey(n),c=u.getType(),l=a.getBlockBefore(n);if(c==="code-block"&&l&&l.getType()==="code-block"&&l.getLength()!==0)return null;if(c!=="unstyled")return Yt.setBlockType(a,r,"unstyled")}return null}};zh.exports=ct});var Vh=x((SK,Wh)=>{"use strict";var lF=/\r\n?|\n/g;function fF(e){return e.split(lF)}Wh.exports=fF});var Qh=x((EK,Zh)=>{"use strict";var as=vr(),Hh=qe(),pF=qa(),Yh=Ae(),ss=qh(),Xh=ue(),jh=os(),$h=fi(),dF=Pa(),Gh=Sn(),Jh=Vh();function gF(e,t){t.preventDefault();var r=new pF(t.clipboardData);if(!r.isRichText()){var i=r.getFiles(),n=r.getText();if(i.length>0){if(e.props.handlePastedFiles&&Gh(e.props.handlePastedFiles(i)))return;dF(i,function(q){if(q=q||n,!!q){var K=e._latestEditorState,V=Jh(q),U=Hh.create({style:K.getCurrentInlineStyle(),entity:$h(K.getCurrentContent(),K.getSelection())}),j=jh.getCurrentBlockType(K),J=ss.processText(V,U,j),Q=as.createFromArray(J),I=Yh.replaceWithFragment(K.getCurrentContent(),K.getSelection(),Q);e.update(Xh.push(K,I,"insert-fragment"))}});return}}var a=[],u=r.getText(),c=r.getHTML(),l=e._latestEditorState;if(e.props.formatPastedText){var g=e.props.formatPastedText(u,c),d=g.text,y=g.html;u=d,c=y}if(!(e.props.handlePastedText&&Gh(e.props.handlePastedText(u,c,l)))){if(u&&(a=Jh(u)),!e.props.stripPastedStyles){var v=e.getClipboard();if(!e.props.formatPastedText&&r.isRichText()&&v){var S;if(((S=c)===null||S===void 0?void 0:S.indexOf(e.getEditorKey()))!==-1||a.length===1&&v.size===1&&v.first().getText()===u){e.update(ki(e._latestEditorState,v));return}}else if(v&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&hF(a,v)){e.update(ki(e._latestEditorState,v));return}if(c){var _=ss.processHTML(c,e.props.blockRenderMap);if(_){var A=_.contentBlocks,B=_.entityMap;if(A){var w=as.createFromArray(A);e.update(ki(e._latestEditorState,w,B));return}}}e.setClipboard(null)}if(a.length){var k=Hh.create({style:l.getCurrentInlineStyle(),entity:$h(l.getCurrentContent(),l.getSelection())}),b=jh.getCurrentBlockType(l),O=ss.processText(a,k,b),N=as.createFromArray(O);e.update(ki(e._latestEditorState,N))}}}function ki(e,t,r){var i=Yh.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return Xh.push(e,i.set("entityMap",r),"insert-fragment")}function hF(e,t){return e.length===t.size&&t.valueSeq().every(function(r,i){return r.getText()===e[i]})}Zh.exports=gF});var iv=x((_K,nv)=>{"use strict";var tv=be(),vF=jd(),yF=Jd(),mF=Xd(),SF=eg(),EF=ig(),_F=ag(),CF=ug(),xF=fg(),wF=xg(),DF=vh(),BF=Qh(),rv=ga(),kF=tv.isBrowser("Chrome"),AF=tv.isBrowser("Firefox"),ev=kF||AF?rv:function(e){},FF={onBeforeInput:vF,onBlur:yF,onCompositionStart:mF,onCopy:SF,onCut:EF,onDragOver:_F,onDragStart:CF,onFocus:xF,onInput:wF,onKeyDown:DF,onPaste:BF,onSelect:rv,onMouseUp:ev,onKeyUp:ev};nv.exports=FF});var av=x((CK,ov)=>{"use strict";var bF=jm(),TF=bF.unstable_flushControlled;ov.exports=TF});var cv=x((xK,uv)=>{"use strict";function OF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var us=Ne(),sv=Tt(),LF=function(e){OF(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.shouldComponentUpdate=function(n){return this.props.text!==n.text||this.props.editorState.getSelection().getHasFocus()!==n.editorState.getSelection().getHasFocus()},r.render=function(){var n=this.props.editorState.getSelection().getHasFocus(),a=sv({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
48Focus":n}),u={whiteSpace:"pre-wrap"};return us.createElement("div",{className:a},us.createElement("div",{className:sv("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:u},this.props.text))},t}(us.Component);uv.exports=LF});var cs=x((wK,gv)=>{"use strict";var fv=Bi(),_n=ln(),pv=be(),Rt=pv.isPlatform("Mac OS X"),lv=Rt&&pv.isBrowser("Firefox < 29"),It=fv.hasCommandModifier,St=fv.isCtrlKeyCommand;function dv(e){return Rt&&e.altKey||St(e)}function KF(e){return It(e)?e.shiftKey?"redo":"undo":null}function MF(e){return!Rt&&e.shiftKey?null:dv(e)?"delete-word":"delete"}function IF(e){return It(e)&&Rt?"backspace-to-start-of-line":dv(e)?"backspace-word":"backspace"}function RF(e){switch(e.keyCode){case 66:return It(e)?"bold":null;case 68:return St(e)?"delete":null;case 72:return St(e)?"backspace":null;case 73:return It(e)?"italic":null;case 74:return It(e)?"code":null;case 75:return Rt&&St(e)?"secondary-cut":null;case 77:return St(e)?"split-block":null;case 79:return St(e)?"split-block":null;case 84:return Rt&&St(e)?"transpose-characters":null;case 85:return It(e)?"underline":null;case 87:return Rt&&St(e)?"backspace-word":null;case 89:return St(e)?Rt?"secondary-paste":"redo":null;case 90:return KF(e)||null;case _n.RETURN:return"split-block";case _n.DELETE:return MF(e);case _n.BACKSPACE:return IF(e);case _n.LEFT:return lv&&It(e)?"move-selection-to-start-of-block":null;case _n.RIGHT:return lv&&It(e)?"move-selection-to-end-of-block":null;default:return null}}gv.exports=RF});var wv=x((DK,xv)=>{"use strict";var NF=Wt();function ps(){return ps=NF||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ps.apply(this,arguments)}function ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){P(e,n,r[n])})}return e}function W(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ev(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qF=oi(),PF=ra(),UF=Xf(),zF=yd(),WF=Md(),VF=iv(),hv=av(),HF=cv(),jF=Ca(),$F=ue(),Nt=Ne(),GF=Si(),JF=vn(),YF=be(),fs=Tt(),XF=Je(),ZF=cs(),QF=yn(),eb=vt(),vv=ie(),yv=wr(),tb=Fe(),_v=YF.isBrowser("IE"),rb=!_v,mv={edit:VF,composite:UF,drag:WF,cut:null,render:null},Sv=!1,nb=function(e){Ev(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var n=this.props.editor;n._latestEditorState=this.props.editorState,n._blockSelectEvents=!0},t}(Nt.Component),Cv=function(e){Ev(t,e);function t(i){var n;return n=e.call(this,i)||this,P(W(n),"_blockSelectEvents",void 0),P(W(n),"_clipboard",void 0),P(W(n),"_handler",void 0),P(W(n),"_dragCount",void 0),P(W(n),"_internalDrag",void 0),P(W(n),"_editorKey",void 0),P(W(n),"_placeholderAccessibilityID",void 0),P(W(n),"_latestEditorState",void 0),P(W(n),"_latestCommittedEditorState",void 0),P(W(n),"_pendingStateFromBeforeInput",void 0),P(W(n),"_onBeforeInput",void 0),P(W(n),"_onBlur",void 0),P(W(n),"_onCharacterData",void 0),P(W(n),"_onCompositionEnd",void 0),P(W(n),"_onCompositionStart",void 0),P(W(n),"_onCopy",void 0),P(W(n),"_onCut",void 0),P(W(n),"_onDragEnd",void 0),P(W(n),"_onDragOver",void 0),P(W(n),"_onDragStart",void 0),P(W(n),"_onDrop",void 0),P(W(n),"_onInput",void 0),P(W(n),"_onFocus",void 0),P(W(n),"_onKeyDown",void 0),P(W(n),"_onKeyPress",void 0),P(W(n),"_onKeyUp",void 0),P(W(n),"_onMouseDown",void 0),P(W(n),"_onMouseUp",void 0),P(W(n),"_onPaste",void 0),P(W(n),"_onSelect",void 0),P(W(n),"editor",void 0),P(W(n),"editorContainer",void 0),P(W(n),"focus",void 0),P(W(n),"blur",void 0),P(W(n),"setMode",void 0),P(W(n),"exitCurrentMode",void 0),P(W(n),"restoreEditorDOM",void 0),P(W(n),"setClipboard",void 0),P(W(n),"getClipboard",void 0),P(W(n),"getEditorKey",void 0),P(W(n),"update",void 0),P(W(n),"onDragEnter",void 0),P(W(n),"onDragLeave",void 0),P(W(n),"_handleEditorContainerRef",function(a){n.editorContainer=a,n.editor=a!==null?a.firstChild:null}),P(W(n),"focus",function(a){var u=n.props.editorState,c=u.getSelection().getHasFocus(),l=n.editor;if(l){var g=JF.getScrollParent(l),d=a||QF(g),y=d.x,v=d.y;yv(l)||vv(!1),l.focus(),g===window?window.scrollTo(y,v):GF.setTop(g,v),c||n.update($F.forceSelection(u,u.getSelection()))}}),P(W(n),"blur",function(){var a=n.editor;
vendor: 13,812 bytes, line 48
48a&&(yv(a)||vv(!1),a.blur())}),P(W(n),"setMode",function(a){var u=n.props,c=u.onPaste,l=u.onCut,g=u.onCopy,d=ls({},mv.edit);c&&(d.onPaste=c),l&&(d.onCut=l),g&&(d.onCopy=g);var y=ls({},mv,{edit:d});n._handler=y[a]}),P(W(n),"exitCurrentMode",function(){n.setMode("edit")}),P(W(n),"restoreEditorDOM",function(a){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(a)})}),P(W(n),"setClipboard",function(a){n._clipboard=a}),P(W(n),"getClipboard",function(){return n._clipboard}),P(W(n),"update",function(a){n._latestEditorState=a,n.props.onChange(a)}),P(W(n),"onDragEnter",function(){n._dragCount++}),P(W(n),"onDragLeave",function(){n._dragCount--,n._dragCount===0&&n.exitCurrentMode()}),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=i.editorKey||XF(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=i.editorState,n._latestCommittedEditorState=i.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}var r=t.prototype;return r._buildHandler=function(n){var a=this;return function(u){if(!a.props.readOnly){var c=a._handler&&a._handler[n];c&&(hv?hv(function(){return c(a,u)}):c(a,u))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var n={text:tb(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Nt.createElement(HF,n)}return null},r._renderARIADescribedBy=function(){var n=this.props.ariaDescribedBy||"",a=this._showPlaceholder()?this._placeholderAccessibilityID:"";return n.replace("{{editor_id_placeholder}}",a)||void 0},r.render=function(){var n=this.props,a=n.blockRenderMap,u=n.blockRendererFn,c=n.blockStyleFn,l=n.customStyleFn,g=n.customStyleMap,d=n.editorState,y=n.preventScroll,v=n.readOnly,S=n.textAlignment,_=n.textDirectionality,A=fs({"DraftEditor/root":!0,"DraftEditor/alignLeft":S==="left","DraftEditor/alignRight":S==="right","DraftEditor/alignCenter":S==="center"}),B={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},w=this.props.role||"textbox",k=w==="combobox"?!!this.props.ariaExpanded:null,b={blockRenderMap:a,blockRendererFn:u,blockStyleFn:c,customStyleMap:ls({},PF,g),customStyleFn:l,editorKey:this._editorKey,editorState:d,preventScroll:y,textDirectionality:_};return Nt.createElement("div",{className:A},this._renderPlaceholder(),Nt.createElement("div",{className:fs("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Nt.createElement("div",{"aria-activedescendant":v?null:this.props.ariaActiveDescendantID,"aria-autocomplete":v?null:this.props.ariaAutoComplete,"aria-controls":v?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":v?null:k,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":v?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:fs({notranslate:!v,"public/DraftEditor/content":!0}),contentEditable:!v,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:v?null:w,spellCheck:rb&&this.props.spellCheck,style:B,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Nt.createElement(nb,{editor:this,editorState:d}),Nt.createElement(zF,ps({},b,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!Sv&&eb("draft_ods_enabled")&&(Sv=!0,jF.initODS()),this.setMode("edit"),_v&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):window.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Nt.Component);P(Cv,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:qF,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:ZF,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});xv.exports=Cv});var Dv=x(()=>{"use strict"});var ds=x((AK,Bv)=>{"use strict";var ib={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};Bv.exports=ib});var Fv=x((FK,Av)=>{"use strict";var ob=ds(),ab=Kt(),kv=ab.strlen;function sb(e,t){var r=[];return e.findEntityRanges(function(i){return!!i.getEntity()},function(i,n){var a=e.getText(),u=e.getEntityAt(i);r.push({offset:kv(a.slice(0,i)),length:kv(a.slice(i,n)),key:Number(t[ob.stringify(u)])})}),r}Av.exports=sb});var Ov=x((bK,Tv)=>{"use strict";var bv=Kt(),ub=yr(),cb=function(t,r){return t===r},lb=function(t){return!!t},fb=[];function pb(e,t,r){var i=[],n=t.map(function(a){return a.has(r)}).toList();return ub(n,cb,lb,function(a,u){var c=e.getText();i.push({offset:bv.strlen(c.slice(0,a)),length:bv.strlen(c.slice(a,u)),style:r})}),i}function db(e){var t=e.getCharacterList().map(function(i){return i.getStyle()}).toList(),r=t.flatten().toSet().map(function(i){return pb(e,t,i)});return Array.prototype.concat.apply(fb,r.toJS())}Tv.exports=db});var Iv=x((TK,Mv)=>{"use strict";function gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){hb(e,n,r[n])})}return e}function hb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vb=bt(),yb=Pe(),Kv=ds(),mb=Fv(),Sb=Ov(),Eb=ie(),Lv=function(t,r){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:Sb(t),entityRanges:mb(t,r),data:t.getData().toObject()}},_b=function(t,r,i,n){if(t instanceof vb){i.push(Lv(t,r));return}t instanceof yb||Eb(!1);var a=t.getParentKey(),u=n[t.getKey()]=gb({},Lv(t,r),{children:[]});if(a){n[a].children.push(u);return}i.push(u)},Cb=function(t,r){var i=r.entityMap,n=[],a={},u={},c=0;return t.getBlockMap().forEach(function(l){l.findEntityRanges(function(g){return g.getEntity()!==null},function(g){var d=l.getEntityAt(g),y=Kv.stringify(d);u[y]||(u[y]=d,i[y]="".concat(c),c++)}),_b(l,i,n,a)}),{blocks:n,entityMap:i}},xb=function(t,r){var i=r.blocks,n=r.entityMap,a={};return Object.keys(n).forEach(function(u,c){var l=t.getEntity(Kv.unstringify(u));a[c]={type:l.getType(),mutability:l.getMutability(),data:l.getData()}}),{blocks:i,entityMap:a}},wb=function(t){var r={entityMap:{},blocks:[]};return r=Cb(t,r),r=xb(t,r),r};Mv.exports=wb});var Pv=x((OK,qv)=>{"use strict";function Cn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){Db(e,n,r[n])})}return e}function Db(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bb=Je(),Nv=ie(),kb=function(t,r){for(var i=[].concat(t).reverse();i.length;){var n=i.pop();r(n);var a=n.children;Array.isArray(a)||Nv(!1),i=i.concat([].concat(a.reverse()))}},Rv=function(t){if(!(t&&t.type))return!1;var r=t.type;return r==="unordered-list-item"||r==="ordered-list-item"},Ab=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(r){return r.type===t.type?Cn({},r,{depth:(t.depth||0)+1}):r}))},Fb={fromRawTreeStateToRawState:function(t){var r=t.blocks,i=[];return Array.isArray(r)||Nv(!1),!Array.isArray(r)||!r.length?t:(kb(r,function(n){var a=Cn({},n);Rv(n)&&(a.depth=a.depth||0,Ab(n),n.children!=null&&n.children.length>0)||(delete a.children,i.push(a))}),t.blocks=i,Cn({},t,{blocks:i}))},fromRawStateToRawTreeState:function(t){var r=[],i=[];return t.blocks.forEach(function(n){var a=Rv(n),u=n.depth||0,c=Cn({},n,{children:[]});if(!a){r.push(c);return}var l=i[0];if(l==null&&u===0)r.push(c);else if(l==null||l.depth<u-1){var g={key:Bb(),text:"",depth:u-1,type:n.type,children:[],entityRanges:[],inlineStyleRanges:[]};i.unshift(g),u===1?r.push(g):l?.children.push(g),g.children.push(c)}else if(l.depth===u-1)l.children.push(c);else{for(;l!=null&&l.depth>=u;)i.shift(),l=i[0];u>0?l.children.push(c):r.push(c)}}),Cn({},t,{blocks:r})}};qv.exports=Fb});var zv=x((KK,Uv)=>{"use strict";var LK=wi(),bb={isValidBlock:function(t,r){var i=t.getKey(),n=t.getParentKey();if(n!=null){var a=r.get(n);if(!a.getChildKeys().includes(i))return!1}var u=t.getChildKeys().map(function(y){return r.get(y)});if(!u.every(function(y){return y.getParentKey()===i}))return!1;var c=t.getPrevSiblingKey();if(c!=null){var l=r.get(c);if(l.getNextSiblingKey()!==i)return!1}var g=t.getNextSiblingKey();if(g!=null){var d=r.get(g);if(d.getPrevSiblingKey()!==i)return!1}return!(g!==null&&c!==null&&c===g||t.text!=""&&t.getChildKeys().size>0)},isConnectedTree:function(t){var r=t.toArray().filter(function(v){return v.getParentKey()==null&&v.getPrevSiblingKey()==null});if(r.length!==1)return!1;for(var i=r.shift(),n=0,a=i.getKey(),u=[];a!=null;){var c=t.get(a),l=c.getChildKeys(),g=c.getNextSiblingKey();if(l.size>0){g!=null&&u.unshift(g);var d=l.map(function(v){return t.get(v)}),y=d.find(function(v){return v.getPrevSiblingKey()==null});if(y==null)return!1;a=y.getKey()}else c.getNextSiblingKey()!=null?a=c.getNextSiblingKey():a=u.shift();n++}return n===t.size},isValidTree:function(t){var r=this,i=t.toArray();return i.every(function(n){return r.isValidBlock(n,t)})?this.isConnectedTree(t):!1}};Uv.exports=bb});var Vv=x((MK,Wv)=>{"use strict";var Tb=qe(),Ob=re(),Lb=Ob.List;function Kb(e,t){var r=e.map(function(i,n){var a=t[n];return Tb.create({style:i,entity:a})});return Lb(r)}Wv.exports=Kb});var $v=x((IK,jv)=>{"use strict";var Mb=Kt(),Hv=Mb.substr;function Ib(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(i){for(var n=Hv(e,0,i.offset).length,a=n+Hv(e,i.offset,i.length).length,u=n;u<a;u++)r[u]=i.key}),r}jv.exports=Ib});var Yv=x((RK,Jv)=>{"use strict";var Rb=Kt(),Nb=re(),qb=Nb.OrderedSet,Gv=Rb.substr,Pb=qb();function Ub(e,t){var r=Array(e.length).fill(Pb);return t&&t.forEach(function(i){for(var n=Gv(e,0,i.offset).length,a=n+Gv(e,i.offset,i.length).length;n<a;)r[n]=r[n].add(i.style),n++}),r}Jv.exports=Ub});var ay=x((qK,oy)=>{"use strict";function xn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){zb(e,n,r[n])})}return e}function zb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wb=bt(),Xv=Pe(),Vb=Gn(),Hb=Zr(),Zv=Pv(),NK=zv(),Qv=Qr(),jb=Vv(),$b=$v(),Gb=Yv(),ny=Je(),Jb=vt(),ys=re(),hs=ie(),ey=Jb("draft_tree_data_support"),ty=ys.List,Yb=ys.Map,iy=ys.OrderedMap,vs=function(t,r){var i=t.key,n=t.type,a=t.data,u=t.text,c=t.depth,l={text:u,depth:c||0,type:n||"unstyled",key:i||ny(),data:Yb(a),characterList:Xb(t,r)};return l},Xb=function(t,r){var i=t.text,n=t.entityRanges,a=t.inlineStyleRanges,u=n||[],c=a||[];return jb(Gb(i,c),$b(i,u.filter(function(l){return r.hasOwnProperty(l.key)}).map(function(l){return xn({},l,{key:r[l.key]})})))},gs=function(t){return xn({},t,{key:t.key||ny()})},ry=function(t,r,i){var n=r.map(function(a){return xn({},a,{parentRef:i})});return t.concat(n.reverse())},Zb=function(t,r){return t.map(gs).reduce(function(i,n,a){Array.isArray(n.children)||hs(!1);var u=n.children.map(gs),c=new Xv(xn({},vs(n,r),{prevSibling:a===0?null:t[a-1].key,nextSibling:a===t.length-1?null:t[a+1].key,children:ty(u.map(function(B){return B.key}))}));i=i.set(c.getKey(),c);for(var l=ry([],u,c);l.length>0;){var g=l.pop(),d=g.parentRef,y=d.getChildKeys(),v=y.indexOf(g.key),S=Array.isArray(g.children);if(!S){S||hs(!1);break}var _=g.children.map(gs),A=new Xv(xn({},vs(g,r),{parent:d.getKey(),children:ty(_.map(function(B){return B.key})),prevSibling:v===0?null:y.get(v-1),nextSibling:v===y.size-1?null:y.get(v+1)}));i=i.set(A.getKey(),A),l=ry(l,_,A)}
48return i},iy())},Qb=function(t,r){return iy(t.map(function(i){var n=new Wb(vs(i,r));return[n.getKey(),n]}))},eT=function(t,r){var i=t.blocks.find(function(u){return Array.isArray(u.children)&&u.children.length>0}),n=ey&&!i?Zv.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!ey)return Qb(i?Zv.fromRawTreeStateToRawState(t).blocks:n,r);var a=Zb(n,r);return a},tT=function(t){var r=t.entityMap,i={};return Object.keys(r).forEach(function(n){var a=r[n],u=a.type,c=a.mutability,l=a.data;i[n]=Hb.__create(u,c,l||{})}),i},rT=function(t){Array.isArray(t.blocks)||hs(!1);var r=tT(t),i=eT(t,r),n=i.isEmpty()?new Qv:Qv.createEmpty(i.first().getKey());return new Vb({blockMap:i,entityMap:r,selectionBefore:n,selectionAfter:n})};oy.exports=rT});var uy=x((PK,sy)=>{"use strict";var nT=Ga();function iT(e){var t=nT(e),r=0,i=0,n=0,a=0;if(t.length){if(t.length>1&&t[0].width===0){var u=t[1];r=u.top,i=u.right,n=u.bottom,a=u.left}else{var c=t[0];r=c.top,i=c.right,n=c.bottom,a=c.left}for(var l=1;l<t.length;l++){var g=t[l];g.height!==0&&g.width!==0&&(r=Math.min(r,g.top),i=Math.max(i,g.right),n=Math.max(n,g.bottom),a=Math.min(a,g.left))}}return{top:r,right:i,bottom:n,left:a,width:i-a,height:n-r}}sy.exports=iT});var ly=x((UK,cy)=>{"use strict";var oT=uy();function aT(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=t.getRangeAt(0),i=oT(r),n=i.top,a=i.right,u=i.bottom,c=i.left;return n===0&&a===0&&u===0&&c===0?null:i}cy.exports=aT});var Ai=x((zK,fy)=>{"use strict";var sT=Jl(),uT=vr(),cT=qe(),lT=Xl(),fT=bt(),pT=Gn(),dT=oi(),gT=ra(),hT=wv(),vT=Ia(),yT=Zr(),mT=Ae(),ST=Go(),ET=ue(),_T=Bi(),CT=Dv(),xT=os(),wT=Qr(),DT=Iv(),BT=ay(),kT=Je(),AT=cs(),FT=ly(),bT=is(),TT={Editor:hT,EditorBlock:vT,EditorState:ET,CompositeDecorator:lT,Entity:yT,EntityInstance:ST,BlockMapBuilder:uT,CharacterMetadata:cT,ContentBlock:fT,ContentState:pT,RawDraftContentState:CT,SelectionState:wT,AtomicBlockUtils:sT,KeyBindingUtil:_T,Modifier:mT,RichUtils:xT,DefaultDraftBlockRenderMap:dT,DefaultDraftInlineStyle:gT,convertFromHTML:bT,convertFromRaw:BT,convertToRaw:DT,genKey:kT,getDefaultKeyBinding:AT,getVisibleSelectionRect:FT};fy.exports=TT});var qt,HK,jK,Fi=pe(()=>{"use strict";Wn();qt={fontSize:18,lineHeight:26,fontFamily:"Inter",fontWeight:400,fontStyle:"normal",fontWeights:["n1","i1","n3","i3","n4","i4","n5","i5","n7","i7","n9","i9"],textAlign:"align-left",fontVariationSettings:[]},HK={unstyled:{element:"p"}},jK={'[data-block="true"], .widget-text-v3 p:not([class]), .widget-text-v3 p[class=""]':{label:"Unstyled",style:""}}});function XK({cursor:e,rect:t,scale:r=1}){return!(e.x===0&&e.y===0&&t.width===0&&t.height===0)&&t.left*r<=e.x&&e.x<=t.left*r+t.width*r&&t.top*r<=e.y&&e.y<=t.top*r+t.height*r}function ZK(e){let t=(e!==void 0?-e:0)*(Math.PI/180);return{cos:Math.cos(t),sin:Math.sin(t)}}function QK({blur:e=0,rect:t,angleData:r,cursor:i,vertical:n,flipH:a,flipV:u,shadowRatio:c=10,scale:l=1}){let y={x:t.left*l+t.width*l/2,y:t.top*l+t.height*l/2},v={x:n?i.x:y.x-i.x,y:n?y.y:y.y-i.y};if(r){let{cos:B,sin:w}=r;v.x=v.x*B-v.y*w,v.y=v.x*w+v.y*B}a&&(v.x*=-1),u&&(v.y*=-1);let S=n?v.x:v.x/c,_=v.y/c,A=0;if(e>0){let B=n?v.y:Ru.getDistance(y,i);A=Math.min(Math.round(Uu.easeInQuint(B/500)),23)+e}return{x:S,y:_,blur:A}}function py(e){let t=[e.x,e.y,e.blur].map(n=>`${n||0}px`).join(" "),r=Vt(e.color),i=`rgba(${r.r}, ${r.g}, ${r.b}, ${r.a})`;return{shadowPosition:t,shadowColor:i}}function eM(e){let t="visible";if(e){let{shadowPosition:r,shadowColor:i}=py(e),a=`drop-shadow(${`${r} ${i}`})`;return{filter:a,WebkitFilter:a,backfaceVisibility:t,MozBackfaceVisibility:t,WebkitBackfaceVisibility:t}}return{filter:"",WebkitFilter:"",backfaceVisibility:t,MozBackfaceVisibility:t,WebkitBackfaceVisibility:t}}function dy(e){let{shadowPosition:t,shadowColor:r}=py(e);return{textShadow:`${t} ${r}`}}function tM({pages:e,includeWidgetIds:t}){return e?e.reduce((r,i)=>{let n=i.widgets?.models?.filter(a=>!!a.get("shadow")||(t||[]).includes(a.get("_id")));return n?.length?[...r,...n]:r},[]):[]}function rM(e,t){return[`${t}`,e.x||0,e.y||0,e.blur||0,e.color,e.onHover?"hover":e.onScroll?"scroll":e.fadeOnHover?"fade-hover":"none",typeof e.ratio=="number"?e.ratio:.5,typeof e.duration=="number"?e.duration:.5]}function gy(e){let[t,r,i,n,a,u,c,l]=e,g={x:parseInt(r),y:parseInt(i),blur:parseInt(n),color:a,onHover:u==="hover",onScroll:u==="scroll",fadeOnHover:u==="fade-hover",ratio:typeof c<"u"?parseFloat(c):.5,duration:typeof l<"u"?parseFloat(l):.5};return{isShadowEnabled:t==="true",shadow:g,interactions:u}}var hy=pe(()=>{"use strict";$m();Wm();Un()});var ms,Ss=pe(()=>{"use strict";Un();lt();hy();ms={LETTER_SPACING:{name:"letterSpacing",value:e=>`${e}px`},FONT_FAMILY:{name:"fontFamily",value:e=>e},FONT_STYLE:{name:"fontStyle",value:e=>e},FONT_WEIGHT:{name:"fontWeight",value:e=>e},FONT_SIZE:{name:"fontSize",value:e=>`${e}px`},COLOR:{name:"color",value:e=>{let{r:t,g:r,b:i,a:n}=Vt(e);return`rgba(${t}, ${r}, ${i}, ${n})`}},FONT_FEATURE:{name:"fontFeatureSettings",value:e=>e.split(me).filter(r=>r).map(r=>`"${r}"`).join(", ")},FONT_VARIABLE:{name:"fontVariationSettings",value:e=>e.split(me).filter(r=>r).map(r=>{let[i,n]=r.split("|");return`'${i}' ${n}`}).join(", ")},STROKE:{styleFn:e=>
48{let[t,r]=e.split(me),{r:i,g:n,b:a,a:u}=Vt(r),c=`rgba(${i}, ${n}, ${a}, ${u})`,l=`${t}px ${c}`;return{WebkitTextStroke:l,textStroke:l}}},DECORATION:{name:"textDecoration",value:e=>e},TRANSFORM:{name:"textTransform",value:e=>e},FEATURES:{styleFn:e=>{switch(e){case"superscript":return{verticalAlign:"baseline",position:"relative",top:"-0.4em",fontSize:"smaller"};case"subscript":return{verticalAlign:"baseline",position:"relative",top:"0.4em",fontSize:"smaller"};default:return{}}}},FONT_KERNING:{styleFn:e=>e==="none"?{}:{fontKerning:"auto",WebkitFontKerning:"auto"}},SHADOW:{name:"textShadow",styleFn:e=>{let t=e.split(me).filter(r=>r);if(t.length){let{shadow:r,isShadowEnabled:i}=gy(t);if(!i||r.x===0&&r.y===0&&r.blur===0)return{};let n=typeof window<"u"&&window.RM&&window.RM.constructorRouter&&!window.RM.constructorRouter.preview,a=r.fadeOnHover&&!n?"ffffff00":r.color;return dy({...r,color:a})}return{}}}}});var yy,Es=pe(()=>{"use strict";lt();Ss();Ss();yy=e=>Object.keys(ms).reduce((r,i)=>{let n=e.filter(a=>a?a.startsWith(i):!1).first();if(n){let a=n.replace(`${i}${me}`,""),u=ms[i];u.styleFn?Object.assign(r,u.styleFn(a)):u.name&&u.value&&Object.assign(r,{[u.name]:u.value(a)})}return r},{})});var bi,pM,my=pe(()=>{"use strict";bi=(L=>(L.Smallcaps="smcp",L.StandardLigatures="liga",L.DiscretionaryLigatures="dlig",L.RequiredLigatures="rlig",L.HistoricalLigatures="hlig",L.Fractions="frac",L.Alternates="salt",L.StylisticSet01="ss01",L.StylisticSet02="ss02",L.StylisticSet03="ss03",L.StylisticSet04="ss04",L.StylisticSet05="ss05",L.StylisticSet06="ss06",L.StylisticSet07="ss07",L.StylisticSet08="ss08",L.StylisticSet09="ss09",L.StylisticSet10="ss10",L.StylisticSet11="ss11",L.StylisticSet12="ss12",L.StylisticSet13="ss13",L.StylisticSet14="ss14",L.StylisticSet15="ss15",L.StylisticSet16="ss16",L.StylisticSet17="ss17",L.StylisticSet18="ss18",L.StylisticSet19="ss19",L.StylisticSet20="ss20",L.LiningFigures="lnum",L.OldstyleFigures="onum",L.ProportionalFigures="pnum",L.TabularFigures="tnum",L))(bi||{}),pM={lnum:"Lining figures",onum:"Oldstyle figures",pnum:"Proportional figures",tnum:"Tabular figures"}});var Sy,hM,vM,yM,mM,SM,Ey=pe(()=>{"use strict";Hm();Sy=e=>gr.post("/api/font-features",e),hM=e=>gr.post("/api/fonts-features",e),vM=e=>{let t=new FormData;return t.append("upload",e),fetch("/api/upload/font",{method:"post",body:t}).then(async r=>{let i=await r.json();if(r.ok)return i;throw new Error(i.message||"Font uploading error")})},yM=e=>gr.post("/api/custom-font",e),mM=e=>gr.get(`/api/custom-font/${e}`),SM=(e,t)=>gr.put(`/api/custom-font/${e}`,t)});var xM,wM,Et,DM,BM,_s,kM,AM,Ti,FM,bM,Oi=pe(()=>{"use strict";Gm();Jm();[xM,wM,Et]=Vr({global:[],project:[]}),[DM,BM,_s]=Vr({global:[],project:[]}),[kM,AM,Ti]=Vr({global:[],project:[]}),[FM]=Vr({}),bM=({fontFamily:e,fontWeight:t,fontStyle:r})=>`${e}_${t}_${r}`;zu("styleStore",{getTextStylesStore:Et,getLinkStylesStore:_s,getListStylesStore:Ti})});var _t,_y,OT,MM,IM,RM,Xt,Cs=pe(()=>{"use strict";Pm();Un();Oi();_t="textStyle",_y=["fontSize","lineHeight","letterSpacing","textIndent","paddingLeft","paddingTop","paddingRight","paddingBottom","width","minWidth"],OT=(e,t)=>{if(t){if(_y.includes(e)&&!isNaN(Number(t)))return`${t}px`;if(e==="color"){let{r,g:i,b:n,a}=Vt(String(t));return`rgba(${r}, ${i}, ${n}, ${a})`}return t}},MM=(e,t)=>{if(t){if(_y.includes(e))return parseInt(String(t));if(e==="color"){let{r,g:i,b:n}=Pu(String(t));return qu({r,g:i,b:n,a:1})}return t}},IM=(e,t=!1)=>Object.keys(e).reduce((r,i)=>e[i]?`${r}${Tu(i)}: ${OT(i,e[i])}${t?" !important":""}; `:r,""),RM=()=>{let t=Et()||window.ServerData&&window.ServerData.mags&&window.ServerData.mags.mag&&window.ServerData.mags.mag.textStyles;return t?[...t.project||[],...t.global||[]].reduce((r,i)=>(Object.assign(r,{[i.name]:{element:i.tag}}),r),{}):{}},Xt=(e,t)=>e?t?parseFloat(String(e)):parseInt(String(e)):0});var Fr,LT,Li,xs,zM,Cy=pe(()=>{"use strict";lt();Fi();Cs();Oi();Fr="lineHeight",LT=({editorState:e,block:t})=>{let r=ft({editorState:e,block:t,key:Fr});return typeof r=="number"?r:void 0},Li=({block:e,editorState:t,lineHeight:r})=>Ct({editorState:t,block:e,key:Fr,value:r}),xs=e=>{let t=LT({editorState:e}),r=typeof t=="number"&&t,i=wn({editorState:e}),a=Et()||{project:[],global:[]},u=[...a.project,...a.global].find(l=>
48l.name===i),c=!!i&&Xt(u?.cssProperties.lineHeight);return r||c||qt.lineHeight},zM=({editorState:e,method:t})=>{let i=xs(e);if(!(i<=8)){if(t==="increase")return Li({editorState:e,lineHeight:i+1});if(t==="decrease")return Li({editorState:e,lineHeight:Math.max(8,i-1)})}}});var Ki,VM,HM,jM,xy=pe(()=>{"use strict";lt();Ki="paddings",VM=({editorState:e,block:t})=>{let r=ft({editorState:e,block:t,key:Ki});return typeof r=="object"?r:void 0},HM=({block:e,editorState:t,paddings:r})=>Ct({editorState:t,block:e,key:Ki,value:r}),jM=({blockPaddings:e,stylePaddings:t})=>({left:t&&e?!!(t.left&&e.left):!1,top:t&&e?!!(t.top&&e.top):!1,bottom:t&&e?!!(t.bottom&&e.bottom):!1,right:t&&e?!!(t.right&&e.right):!1})});var Qt,wy,ws=pe(()=>{"use strict";wo();Bo();Qt="LINK",wy={name:"link-1",label:"Default Link Style",style:{link:{textColor:`${Ve.blue}64`,color:`${Ve.blue}64`,type:"Solid",size:1,padding:0},hover:{textColor:`${Ve.blue}64`,color:`${Ve.blue}64`,type:"None",size:1,padding:0},current:{textColor:`${Ve.blue}64`,color:`${Ve.blue}64`,type:"None",size:1,padding:0}}}});var Mi,QM,Dy,By=pe(()=>{"use strict";lt();Mi="sizesLinkedStatus",QM=({editorState:e,block:t})=>{let r=ft({editorState:e,block:t,key:Mi});return typeof r=="boolean"?r:!1},Dy=({block:e,editorState:t,linkedStatus:r})=>Ct({editorState:t,block:e,key:Mi,value:r})});var Ds,ky,Ay,Fy=pe(()=>{"use strict";Ds=zt(Ne()),ky=(0,Ds.createContext)({}),Ay=(0,Ds.createContext)({})});function uI(e){if(e.clickLink){let t={closeTip:e.closeTip},{mag:r}=window.RM.constructorRouter;if(e.clickLink?.toLowerCase()==="__rm_anchor")return{...t,type:"Anchor",target:e.clickTarget,url:`${e.anchor_link_pos}px`,anchorPosition:e.anchor_link_pos,pageId:e.clickPage};if(e.clickLink?.toLowerCase().includes("mailto:"))return{...t,type:"Email",target:e.clickTarget,url:e.clickLink.toLowerCase().replace("mailto:","")};if(e.clickLink?.toLowerCase().includes("tel:"))return{...t,type:"Phone",target:e.clickTarget,url:e.clickLink.toLowerCase().replace("tel:","")};if(e.clickLink?.toLowerCase().includes("back to top"))return{...t,type:"ScrollToTop",url:""};if(e.clickLink?.toLowerCase()==="__rm_goback")return{...t,type:"GoBack",url:""};if(r.getPageNum(e.clickLink)){let i=r.getPageNum(e.clickLink);return{...t,type:"Page",target:e.clickTarget,pageId:e.clickLink,url:i?`${i}`:""}}else if(Co(e.clickLink))return{...t,type:"URL",target:e.clickTarget,url:e.clickLink}}return null}function cI(e){let t={anchor_link_pos:void 0,clickLink:void 0,clickPage:void 0,clickTarget:void 0,closeTip:void 0};return typeof e.closeTip=="boolean"&&(t.closeTip=e.closeTip),e.type==="Anchor"?{...t,clickLink:"__rm_anchor",clickTarget:e.target,anchor_link_pos:e.anchorPosition}:e.type==="Email"?{...t,clickLink:`mailto:${e.url}`,clickTarget:e.target}:e.type==="Phone"?{...t,clickLink:`tel:${e.url}`,clickTarget:e.target}:e.type==="ScrollToTop"?{...t,clickLink:"Back to Top",clickTarget:e.target}:e.type==="GoBack"?{...t,clickLink:"__rm_goback",clickTarget:e.target}:e.type==="Page"?{...t,clickLink:e.pageId,clickTarget:e.target}:e.type==="URL"?{...t,clickLink:qn(e.url),clickTarget:e.target}:t}function Ty(e,t,r){let{search:i,hostname:n}=r?{hostname:r.hostname,search:void 0}:typeof window<"u"?window.location:{search:void 0,hostname:void 0},a=r?.searchParams??new URLSearchParams(i);if(a.get("link_target")==="parent")return"_parent";if(a.get("external_link_target")==="parent"&&t){let u=!1;try{u=new URL(t).hostname!==n}catch{}return u?"_parent":e||"_blank"}else return e||"_blank"}var by,lI,fI,Oy=pe(()=>{"use strict";Bo();Mu();Iu();by={URL:e=>!xo(e)&&Co(e),ScrollToTop:e=>/^(back|scroll)\sto\stop$/i.test(e),GoBack:e=>/^(__rm_goback|go\sback)$/i.test(e),Anchor:e=>/^(__rm_anchor|\d+px)$/i.test(e),Email:e=>xo(e),Page:(e,t)=>!!t.getPageId(e),Phone:e=>/\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\d{1,14}$/i.test(e)},lI=(e="",t)=>e?Object.keys(by).reduce((r,i)=>{if(r===null){let n=i;return by[n](e,t)?n:null}return r},null):null,fI=(e,t,r)=>{let n=e.edit_params.get(pr.textWidget.cachedTextLinkStyleKey)||null,a=[...r,...t];return n&&a.some(u=>u.name===n)?n:null}});function IT(e){let{model:t}=(0,br.useContext)(Wu),{model:r}=(0,br.useContext)(Ay),{model:i}=(0,br.useContext)(ky),[n]=i?i.useTextWidgetStore({partial:!1}):(0,br.useState)(null),a=e.mag,u="noopener noreferrer",{url:c,target:l="_self",type:g,linkStyle:d,anchorPosition:y,pageNum:v,pageUri:S,id:_,pageId:A,closeTip:B}=e.contentState&&e.entityKey?e.contentState.getEntity(e.entityKey).getData():e.data||{},w=e.insideParentBlock?typeof B=="boolean"?B:!0:!1,k=e.contentState&&e.blockKey&&typeof e.start=="number"&&typeof e.end=="number"?MT({contentState:e.contentState,start:e.start,end:e.end,blockKey:e.blockKey}):{},b=K=>{let U=[d||wy.name,...typeof K=="string"?[K]:K];if(i&&i.currentLinkStyle&&i.currentLinkStyle!=="link"&&n){let j=Bs(n);j&&j.id===_&&U.push(i.currentLinkStyle)}return w&&U.push("close-tip-on-click"),U.join(" ")},O=()=>{if(!a||!(v||S))return"";let V=window.RM.common&&window.RM.common.isDownloadedSource&&!window.RM.common.homepageRewrite&&window.RM.config?.root||"/";if(A){let U=a.getPageUri(A);return U?`${V}${U}`:"javascript:void(0)"}if(S){let U=a.getPage(S);if(U&&U._id)return`${V}${a.getPageUri(U._id)}`}if(v){let U=a.getPage(v);if(U&&U._id)return`${V}${a.getPageUri(U._id)}`}return"javascript:void(0)"},N=()=>
48{if(window.RM.constructorRouter&&!window.RM.constructorRouter.previewMode)return[];if(!a||!(v||S||A))return[];let K=[],V=e.isGlobal||t&&t.is_global,U=e.isAbove||t&&t.is_above,j=v;if(S){let I=a.getPage(S);I&&I._id&&(j=I.num)}else if(A){let I=a.getPageNum(A);I&&(j=I)}let J=e.currentPageNum?e.currentPageNum===j:r&&r.currentPage&&r.currentPage.num===j,Q=e.page?e.page.num===j:r&&r.page&&r.page.num===j;return(U?J:Q)&&(K.push("back-to-top"),V&&K.push("current")),K};return Ft("a",{...(()=>{switch(g){case"URL":{let K=qn(c);return{href:K,target:Ty(l,K),rel:u,className:b("external-link")}}case"Email":return{href:`mailto:${c}`,className:b("external-link")};case"Phone":return{href:`tel:${c}`,className:b("external-link")};case"Anchor":return{href:"javascript:void(0)",className:b("anchor-link"),"data-anchor-link-pos":y,"data-page-uri":a&&v?v:"","data-page-id":a&&A?A:void 0};case"ScrollToTop":return{href:"javascript:void(0)",className:b(["maglink","back-to-top"])};case"GoBack":return{href:"javascript:void(0)",className:b("goback-link")};case"Page":return{href:O(),target:l,className:b([...l==="_blank"?[]:["maglink"],...N()])};default:return{}}})(),style:{pointerEvents:a?void 0:"none",...k},tabIndex:0,role:"link",dangerouslySetInnerHTML:typeof e.children=="string"?{__html:Ou.sanitize(e.children)}:void 0,children:typeof e.children!="string"?e.children:null})}var br,Pt,MT,Ly,Ky,Ii,Bs,My,AI,RT,NT,FI,bI,TI,Iy=pe(()=>{"use strict";br=zt(Ne());Lu();Pt=zt(Ai());Fy();Ym();Bo();lt();Oy();Es();Iu();ws();dr();MT=({contentState:e,start:t,end:r,blockKey:i})=>{let a=e.getBlockForKey(i).getCharacterList().slice(t,r),u={};if(a.size){let c=a.reduce((l,g)=>{if(typeof l>"u")return 0;if(g){let y=g.getStyle().find(_=>!!_?.startsWith("FONT_SIZE")),v=y&&Ye(y,"FONT_SIZE"),S=v?.length?parseInt(v[0]):0;return S>l?S:l}return l},0);c>0&&(u.fontSize=c)}return u};Ly={strategy:(e,t,r)=>{e.findEntityRanges(i=>{let n=i.getEntity();return n!==null&&r.getEntity(n).getType()===Qt},t)},component:IT},Ky=e=>{let t=e.getSelection(),r=e.getCurrentContent(),i=t.getAnchorKey(),n=r.getBlockForKey(i),a=t.getStartOffset(),u=t.getEndOffset(),c=[],l=!1;return n.getCharacterList().slice(a,u).forEach(d=>{let y=d?.getEntity();y&&!c.includes(y)&&c.push(y),y||(l=!0)}),{entityKeys:c,hasNonEntityChar:l}},Ii=e=>{let t=e.getSelection(),r=e.getCurrentContent(),i=t.getStartKey(),n=t.getStartOffset(),a=r.getBlockForKey(i),u=a.getEntityAt(n);return u||(u=a.getEntityAt(n-1)),u},Bs=e=>{let t=Ii(e);return t?e.getCurrentContent().getEntity(t).getData()||{}:null},My=({editorState:e,entityKey:t})=>{let r=e.getSelection();if(!t)return r;let n=e.getCurrentContent().getBlockForKey(r.getAnchorKey()),a=0,u=0;return n&&n.findEntityRanges(c=>c.getEntity()===t,(c,l)=>{c<=r.getFocusOffset()&&c+l>=r.getFocusOffset()&&(a=c,u=l)}),u-a>0?new Pt.SelectionState({anchorKey:r.getAnchorKey(),anchorOffset:a,focusKey:r.getAnchorKey(),focusOffset:u,isBackward:r.getIsBackward(),hasFocus:r.getHasFocus()}):r},AI=({editorState:e,...t})=>{let r=e.getSelection().isCollapsed(),i=e;return r&&(i=Ri(i,!0)),i=NT(i),i=RT({editorState:i,...t}),r&&(i=Ue(i,e.getSelection())),i},RT=({editorState:e,...t})=>{let i=Bs(e)?.id||Ny(),a=e.getCurrentContent().createEntity(Qt,"MUTABLE",{...t,id:i}),u=a.getLastCreatedEntityKey(),c=Pt.EditorState.set(e,{currentContent:a}),l=My({editorState:c,entityKey:Ii(c)});return Ue(Pt.RichUtils.toggleLink(c,l,u),e.getSelection())},NT=e=>{let t=e.getSelection(),r=My({editorState:e,entityKey:Ii(e)});return Ue(Pt.RichUtils.toggleLink(e,r,null),t)},FI=({editorState:e,oldStyle:t,newStyle:r})=>{let i=e.getCurrentContent(),n=Ry(i,Qt);if(Object.keys(n).length){let a=Object.keys(n).reduce((u,c)=>{let l=n[c];return l&&l.data?.linkStyle===t?u.mergeEntityData(c,{linkStyle:r}):u},i);return Ue(Pt.EditorState.push(e,a,"apply-entity"),e.getSelection())}return e},bI=e=>{if(!e.getSelection().isCollapsed()){let{entityKeys:r}=Ky(e);return r.map(i=>e.getCurrentContent().getEntity(i).getData()||{})}return[Bs(e)].filter(Boolean)},TI=e=>{let t=Ii(e),{entityKeys:r,hasNonEntityChar:i}=Ky(e);return r.length>0&&i?"mixed":t?"active":"disabled"}});var Tr,ks=pe(()=>{"use strict";Vm();Tr=Nu("span")` 49 &:before { 50 content: ''; 51 height: ${e=>e.size}; 52 padding-right: ${e=>e.size}; 53 margin-right: -${e=>e.size}; 54 position: relative; 55 background-repeat: no-repeat; 56 57 ${At("backgroundImage")} 58 ${At("backgroundPosition")} 59 ${At("backgroundSize")} 60 ${At("left",{transform:Wr})} 61 ${At("top",{transform:Wr})} 62 ${At("right",{transform:Wr})} 63 ${At("bottom",{transform:Wr})} 64 } 65`;Tr.defaultProps={left:"-0.1em"}});function UT(e){return Ft(Tr,{size:"0.5em",backgroundSize:"0.4em",backgroundPosition:"bottom",backgroundImage:`url('data:image/svg+xml,${encodeURIComponent(PT)}')`,...e})}function VT(e){return Ft(Tr,{size:"0.4em",backgroundSize:"0.4em",backgroundPosition:"top",backgroundImage:`url('data:image/svg+xml,${encodeURIComponent(WT)}')`,...e})}var qy,Py,PI,qT,PT,zT,WT,Uy,zy,Wy=pe(()=>{"use strict";wo();lt();ks();dr();qy="\xA0",Py="\u202F",PI=[{name:"No-break space",char:qy},{name:"Narrow no-break space",char:Py}],qT=`<?xml version="1.0" encoding="UTF-8"?> 66<svg width="5px" height="6px" viewBox="0 0 5 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 67 <title>no-break-space</title> 68 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 69 <g id="Insert-Space" transform="translate(-472.000000, -500.000000)" fill-rule="nonzero" stroke="currentColor"> 70 <polyline id="no-break-space" transform="translate(474.333984, 503.483398) rotate(-180.000000) translate(-474.333984, -503.483398) " points="475.9687
705 500.966797 474.386719 506 474.287109 506 472.699219 500.966797"></polyline> 71 </g> 72 </g> 73</svg> 74`,PT=qT.replace(/currentColor/g,Ve.blue);zT=`<?xml version="1.0" encoding="UTF-8"?> 75<svg width="4px" height="4px" viewBox="0 0 4 4" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 76 <title>narrow no-break-space</title> 77 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 78 <g id="Insert-Space" transform="translate(-514.000000, -535.000000)" fill-rule="nonzero" stroke="currentColor"> 79 <polyline id="narrow-no-break-space" points="517 535 516.032258 538 515.971326 538 515 535"></polyline> 80 </g> 81 </g> 82</svg> 83`,WT=zT.replace(/currentColor/g,Ve.blue);Uy={strategy:(e,t)=>{Dn(e,qy).forEach(i=>{t(i,i+1)})},component:UT},zy={strategy:(e,t)=>{Dn(e,Py).forEach(i=>{t(i,i+1)})},component:VT}});function jT(){return Ft("br",{})}function YT(e){return Ft(Tr,{size:"0.8em",backgroundSize:"0.6em",backgroundPosition:"bottom",backgroundImage:`url('data:image/svg+xml,${encodeURIComponent(JT)}')`,top:"-0.15em",left:"0em",...e})}var HT,Vy,$T,GT,JT,Hy,jy=pe(()=>{"use strict";lt();wo();ks();dr();HT="BR_ENTITY";Vy={strategy:(e,t,r)=>{e.findEntityRanges(i=>{let n=i.getEntity();return n!==null&&r.getEntity(n).getType()===HT},t)},component:jT},$T=` 84`,GT=`<?xml version="1.0" encoding="UTF-8"?> 85<svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg"> 86 <path 87 d="M-6.10352e-05 5.00002L5.99994 2.21676e-05V4.00001L11 4.00001L11 -1.52588e-05L13 -1.49216e-05V5.99998L5.99994 6.00001V10L-6.10352e-05 5.00002Z" 88 fill="currentColor" 89 /> 90</svg>`,JT=GT.replace(/currentColor/g,Ve.blue);Hy={strategy:(e,t)=>{Dn(e,$T).forEach(i=>{t(i,i+1)})},component:YT}});var $y,Ni,Gy=pe(()=>{"use strict";$y=zt(Ai());Iy();Wy();jy();Ni=new $y.CompositeDecorator([Ly,Uy,zy,Vy,Hy])});function ft({editorState:e,block:t,key:r}){let i;if(t)i=t;else if(e){let a=e.getSelection().getAnchorKey();i=e.getCurrentContent().getBlockMap().get(a)}if(!i)return"";let n=i.getData().toObject();return r?n&&n[r]||void 0:n}async function n1(e){let t={},r=pr.readymag_assets_cdn;for(let i in Ge.styleSheets){let n=Ge.styleSheets[i],a=null;try{a=n.rules||n.cssRules}catch{n.href&&!n.href.includes(r)&&(a=await Xy(n.href))}a||n.href&&!n.href.includes(r)&&(a=await Xy(n.href)),t={...t,...i1(a)}}return e?t[e]||null:t}function i1(e){let t={};if(e)for(let r in e){let i=e[r];if(i&&i instanceof CSSFontFaceRule){let a=i.style?.getPropertyValue("src")?.match(r1);if(a?.length){let u=a[a.length-1].slice(4,-1).replace(/"/g,"").replace(/'/g,""),c=i.style?.getPropertyValue("font-family").replace(/['"]+/g,"");t[c]=u}}}return t}function a1(e,t){if(t)for(let r of t.split(", ")){let[i,n]=r.split(" ");if(i.replace(/['"]+/g,"")===e)return`${e}|${n}`}}function s1(e){return e?e.split("|")[1]:null}function Zy({fontFamily:e,fontStyle:t,fontWeight:r}){let i=[];if(e){let n=Ye(e,"FONT_FAMILY");if(i.push(n),n){i.push(t?Ye(t,"FONT_STYLE"):qt.fontStyle);let a=r?Ye(String(r),"FONT_WEIGHT"):qt.fontWeight;typeof a!="number"&&a[0]==="normal"&&(a=qt.fontWeight),i.push(String(a)==="initial"?"variable":a)}}return i.length?i.join("|"):null}function XR(e){let t=[];for(let r in e){let i=e[r],n=d1(i);t=[...t,...n]}return t}function d1(e){if(e.length===0)return[];let t=[],r=e[0];for(let i=1;i<e.length;i++){let n=e[i];_o(n.style,r.style)?r.length+=n.length:(t.push(r),r=n)}return t.push(r),t}function cN(e,t){let r=sm(e);if(r){let i=ft({editorState:e,block:r});return t.map(n=>{if(n){let a=n.get("data");return n.set("data",Pi.default.Map({...a?a.toObject():{},...i}))}return n})}return t}function Ri(e,t){return t?t1(e):Ue(e,lm({content:e.getCurrentContent()}))}function vN(e,t){let r=e.getCurrentContent(),n=(0,$.convertToRaw)(r).blocks;for(let a=0;a<n.length;a++){let u=n[a],c=u.text.length,l=u.inlineStyleRanges.filter(d=>d.style.startsWith(t));if(l.length===0)return!1;let g=0;for(let d of l)g+=d.length;if(c>g)return!1}return!0}var om,Pi,$,Ue,am,sm,kR,AR,qi,um,FR,cm,lm,bR,XT,ZT,QT,Jy,Ct,er,TR,OR,LR,e1,KR,MR,IR,RR,Dn,NR,tr,Yy,qR,t1,PR,UR,zR,Ry,WR,VR,HR,r1,Xy,o1,jR,$R,u1,Qy,As,c1,GR,me,b
90s,JR,l1,f1,Ye,YR,p1,g1,h1,em,tm,v1,Ny,ZR,QR,eN,tN,rN,nN,iN,oN,y1,m1,S1,aN,sN,uN,lN,fN,pN,dN,Ts,E1,gN,hN,yN,wn,Fs,mN,lt=pe(()=>{"use strict";Lu();Um();om=zt(Gu()),Pi=zt(re()),$=zt(Ai());Fi();Es();my();Ey();Fi();Oi();Cs();Hu();Cy();Wn();im();xy();zm();ws();Un();Mu();By();Gy();Xm();Ue=(e,t,r=!0)=>$.EditorState[r?"forceSelection":"acceptSelection"](e,t||e.getSelection()),am=(e,t)=>$.RichUtils.toggleInlineStyle(e,t),sm=e=>e.getCurrentContent().getBlockForKey(e.getSelection().getStartKey()),kR=e=>sm(e).getType(),AR=(e,t)=>$.RichUtils.toggleBlockType(e,t),qi=(e,t)=>typeof e.get=="function"?e.get(t):e[t],um=(e,t)=>{let i={blocks:(qi(e,"blocks")||[]).map(n=>{let a=t&&e[t]?.styles||qi(e,"styles"),u=t&&e[t]?.blocksMeta||qi(e,"blocksMeta"),c=(a||[]).find(d=>d.key===n.key),l=(u||[]).find(d=>d.key===n.key),g=[];return c&&(typeof c.inlineStyles!="object"||!c.inlineStyles.hasOwnProperty("keys")||!c.inlineStyles.hasOwnProperty("values")?g=c?.inlineStyles||[]:g=h1(c.inlineStyles)),{...n,data:l?.data||n.data||{},type:c?c.type:"unstyled",inlineStyleRanges:g}})||[],entityMap:qi(e,"entityMap")||{}};return(0,$.convertFromRaw)(i)},FR=e=>{let t=(0,$.convertToRaw)(e),r=t.blocks.map(a=>({key:a.key,text:a.text,entityRanges:a.entityRanges,depth:a.depth})),i=t.blocks.map(a=>({key:a.key,type:a.type,inlineStyles:p1(a.inlineStyleRanges)})),n=t.blocks.map(a=>({key:a.key,data:a.data||{}}));return{blocks:r,styles:i,entityMap:t.entityMap,blocksMeta:n}},cm=e=>{let t=er(e,!0),r=e.getSelection();if(t.length!==2||r.getAnchorOffset()!==0||r.getFocusOffset()!==0)return r;let i=e.getCurrentContent(),n=r.getStartKey(),a=i.getBlockForKey(n);return new $.SelectionState({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:a.getText().length,isBackward:!1,isCollapsed:r.isCollapsed()})},lm=({content:e,selection:t})=>(t||new $.SelectionState).merge({anchorKey:e.getFirstBlock().getKey(),anchorOffset:0,focusOffset:e.getLastBlock().getText().length,focusKey:e.getLastBlock().getKey()}),bR=e=>{let t=$.EditorState.moveSelectionToEnd(e).getSelection();return Ue(e,t)},XT=e=>{let t=e.getSelection();return t.getAnchorKey()!==t.getFocusKey()||t.getAnchorOffset()!==t.getFocusOffset()},ZT=({editorState:e,block:t})=>{let i=e.getCurrentContent().getBlockMap(),n=t,a="";n?a=n.getKey():(a=e.getSelection().getAnchorKey(),n=i.get(a));let c=n.getCharacterList().map(v=>v&&v.set("style",v.get("style").clear())),l=n.get("data"),g=Pi.default.Map({...l?l.toObject():{},[Fr]:void 0,[hr]:void 0,[Ki]:void 0}),d=n.set("characterList",c).set("data",g),y=i.set(a,d);return $.EditorState.push(e,$.ContentState.createFromBlockArray(y.toArray()),"change-inline-style")},QT=e=>{let t=e.getCurrentInlineStyle();return yy(t)};Jy=({editorState:e,blockKey:t,data:r,selection:i})=>{let n=i||e.getSelection(),a=e.getCurrentContent(),u=a.getBlockMap(),c=a.getBlockForKey(t),l=c.get("data"),g=c.set("data",Pi.default.Map({...l?l.toObject():{},...r}));return a.merge({blockMap:u.merge({[c.getKey()]:g}),selectionBefore:n,selectionAfter:n})},Ct=({editorState:e,block:t,key:r,value:i})=>{let n=cm(e);if(t){let u=Jy({editorState:e,selection:n,blockKey:t.getKey(),data:{[r]:i}});return $.EditorState.push(e,u,"change-block-data")}return er(e).reduce((u,c)=>{let l=Jy({editorState:u,selection:n,blockKey:c,data:{[r]:i}});return $.EditorState.push(e,l,"change-block-data")},e)},er=(e,t=!1)=>{let r=e.getSelection();if(r.isCollapsed())return[r.getStartKey()];let i=e.getCurrentContent(),n=r.getIsBackward(),a=n?r.getFocusKey():r.getAnchorKey(),u=n?r.getAnchorKey():r.getFocusKey(),c=r.getFocusOffset()===0&&r.getAnchorOffset()===0&&a!==u,l=r.getFocusOffset()===0&&a!==u&&r.getAnchorOffset()===i.getBlockForKey(r.getAnchorKey())?.getCharacterList()?.size,d=i.getBlockMap().toIndexedSeq().map(_=>_&&_.getKey()).toJS(),y=[],v=d.indexOf(a),S=d.indexOf(u);return v>-1&&S>-1&&(y=d.slice(v,S+1)),(!t&&c||l)&&y.pop(),y},TR=(e,t)=>er(e).includes(t),OR=({editorState:e,text:t,selection:r,entityKey:i})=>{let n=e.getCurrentInlineStyle(),a=r||e.getSelection(),u=e.getCurrentContent(),c=a.isCollapsed()?$.Modifier.insertText(u,a,t,n,i):$.Modifier.replaceText(u,a,t,n,i);return $.EditorState.push(e,c,t.length===1?"insert-characters":"insert-fragment")},LR=({editorState:e,selection:t})=>{let r=e.getCurrentContent(),i=$.Modifier.removeRange(r,t,"forward");return $.EditorState.push(e,i,"remove-range")},e1=e=>{let t=e.getCurrentContent(),{startKey:r,startOffset:i}=tr(e);return t.getBlockForKey(r).getText().slice(0,i).split(" ").pop()||""},KR=(e,t=1)=>{let r=e.getCurrentContent(),{startKey:i,startOffset:n}=tr(e);return r.getBlockForKey(i).getText().slice(n-t,n)},MR=(e,t=1)=>{let r=e.getCurrentContent(),{endKey:i,endOffset:n}=tr(e);return r.getBlockForKey(i).getText().slice(n,n+t)},IR=(e,t=0)=>{let{startKey:r,endKey:i,startOffset:n,endOffset:a}=tr(e),u=e.getCurrentContent(),l=u.getBlockForKey(r).getEntityAt(n+t),d=u.getBlockForKey(i).getEntityAt(a+t);return[l,d]},RR=e=>{let t=e.getSelection(),r=t.isCollapsed()&&e1(e)||"";return r?Ue(e,t.merge({anchorOffset:t.getAnchorOffset()-r.length})):e},Dn=(e,t)=>{let r=e.getText();return Array.from(r.matchAll(RegExp(t,"g")),n=>n.index).filter(n=>typeof n=="number")},NR=e=>e.getIsBackward()?e.merge({isBackward:!1,anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset()}):e,tr=e=>{let t=e.getSelection(),r=t.getIsBackward(),i=r?t.getFocusKey():t.getAnchorKey(),n=r?t.getAnchorKey():t.getFocusKey(),a=r?t.getEndOffset():t.getStartOffset(),u=r?t.getStartOffset():t.getEndOffset();if(a===0&&u===0){let c=r?n:i,l=e.getCurrentContent().getBlockForKey(c);return{startKey:c,endKey:c,startOffset:0,endOffset:l.getCharacterList().size}}return{startKey:i,endKey:n,startOffset:a,endOffset:u}},Yy=e=>e.some(t=>t&&t.style.length),qR=e=>{if(e.getSelection().isCollapsed()){let l=QT(e);return!!(l&&Object.keys(l).length)}let r=e.getCurrentContent(),{startKey:i,endKey:n,startOffset:a,endOffset:u}=tr(e);if(i===n){let l=r.getBlockForKey(i).getCharacterList().slice(a,u).toJS();return Yy(l)}return er(e).some(l=>{let g=r.getBlockForKey(l).getCharacterList(),d=i===l?a:0,y=n===l?u:g.size,v=g.slice(d,y).toJS();return Yy(v)})},t1=e=>{let t=e.getSelection(),r=t.getStartKey(),i=t.getEndKey();if(r===i){let n=e.getCurrentContent(),a=t.merge({anchorKey:r,anchorOffset:0,focusOffset:n.getBlockForKey(r).getText().length,focusKey:r});return Ue(e,a)}return e},PR=(e,t)=>{let r=e.getSelection();if(r.isCollapsed()){let i=e.getCurrentContent(),{startKey:n,endKey:a,startOffset:u}=tr(e);if(n===a){let c=i.getBlockForKey(n).getText(),l=null;if(t==="next")for(let g=u+1;g<=c.length;g++)l===null&&(c[g]===" "||g===c.length)&&(l=g);else if(t==="prev")for(let g=u-1;g>=0;g--)l===null&&(c[g]===" "&&Math.abs(u-g)>1||g===0)&&(l=g===0?0:g+1);if(l!==null){let g=r.merge({anchorKey:n,anchorOffset:l,focusOffset:l,focusKey:a});return Ue(e,g)}}}},UR=e=>{let t=e.getSelection();if(t.isCollapsed()){let r=e.getCurrentContent(),i=t.getStartKey(),n=r.getBlockForKey(i);if(n){let a=n.getData(),u=$.Modifier.splitBlock(e.getCurrentContent(),e.getSelection()),c=$.EditorState.push(e,u,"split-block"),l=c.getSelection(),g=$.Modifier.mergeBlockData(c.getCurrentContent(),l,a);return c=$.EditorState.push(e,g,"split-block"),{status:"handled",editorState:c}}}return{status:"not-handled",editorState:e}},zR=e=>{let t=[];
90return e.getBlockMap().forEach(i=>{i&&t.push({key:i.getKey(),data:i.getData().toObject()})}),t},Ry=(e,t,r)=>{let i={},n=0;return e.getBlockMap().forEach(a=>{a?.findEntityRanges(u=>u.getEntity()!==null,u=>{let c=a.getEntityAt(u),l=c&&e.getEntity(c);if(l){let g=l.getType();(!t||t===g)&&(i[r?c:n]={type:g,data:l.getData(),mutability:l.getMutability()},n++)}})}),i},WR=e=>{let t=["rlig","liga","hlig","dlig"];return e.filter(r=>t.includes(r))},VR=e=>{let t=/^ss[\d]{2}$/i,r=Object.values(bi).filter(i=>t.test(i));return e.filter(i=>r.includes(i))},HR=e=>{let t=["lnum","onum","pnum","tnum"];return e.filter(r=>t.includes(r))},r1=/url\((?:"|'|)(.*?)(?:"|'|)\)/g;Xy=async e=>{let t=await fetch(e).then(r=>r.text()).catch(r=>{console.error(`Error while getting stylesheet from url ${e}: `,r)});if(t){let r=Ge.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=t:r.appendChild(Ge.createTextNode(t)),Ge.head.appendChild(r);let i=r.sheet||r.styleSheet,n=i&&(i.rules||i.cssRules)?i.rules||i.cssRules:null;return Ge.head.removeChild(r),n}return null},o1=(e,t)=>{let r=e;return typeof r=="string"&&/^\d+$/.test(r)&&(r=Number(r)),typeof r=="string"?"v":`${t[0]?.toLowerCase()}${Math.floor(r/100)}`},jR=e=>{let t=e&&[...e],r=t[0]==="v",i=t[0]&&t[0]==="i"?"italic":"normal",n=r?"initial":t[1]?parseInt(t[1])*100:400;return{style:i,weight:n}},$R=async({fontFamily:e,fontWeight:t,fontStyle:r})=>{let i={features:[],variations:[],characters:[]},n=typeof window<"u"&&window.RM&&window.RM.constructorRouter.fonts.findFontByCSSName(e);if(!n||!n.variations)return i;let a=n.variations.includes("v")?"v":o1(t,r);if(!n.variations.includes(a))return i;let u={weight:a};if(n&&n.provider==="custom")u.id=n._id;else{let l=await n1(e);l&&(u.url=l)}if(n&&n.provider==="system"&&(u.systemFontName=n.name),!(!u.url&&!u.id&&!u.systemFontName||u.id&&!u.weight))try{let{data:l}=await Sy(u),g=l&&l.features;if(g&&g.length){let y=Object.values(bi).filter(v=>g.some(S=>S.toLowerCase()===v.toLowerCase()));i.features=y||[]}return i.variations=l&&l.variations,i.characters=l&&l.characters,i}catch(l){throw new Error(l||"Can't detect font features")}};u1=()=>{let{fontFamily:e,fontWeight:t,fontStyle:r}=qt;return{fontFamily:e,fontWeight:String(t),fontStyle:r}},Qy=(e,t,r)=>{let i=e.getData().get(t);if(!i)return null;let n=r.find(a=>a.name?.toLowerCase()===i.toLowerCase());return n?n.cssProperties:u1()},As=(e,t,r)=>{let{fontFamily:i,fontWeight:n,fontStyle:a,fontVariationSettings:u}=t,c=Zy({fontFamily:i,fontStyle:a,fontWeight:n});if(c&&e.add(c),u){let l=s1(r?a1("wght",u):u);if(l){let g=Zy({fontFamily:i,fontStyle:a,fontWeight:l});g&&e.add(g)}}},c1=(e,t)=>{let r=e.getStyle().reduce((n,a)=>{if(!a)return n||{};let[u,c]=a.split(me);return{...n,[u]:c}},{});return{fontFamily:r.FONT_FAMILY||t?.fontFamily,fontStyle:r.FONT_STYLE||t?.fontStyle,fontWeight:r.FONT_WEIGHT||t?.fontWeight,fontVariationSettings:r.FONT_VARIABLE}},GR=e=>{let t=um(e),i=Et()||{project:[],global:[]},n=[...i.project,...i.global],u=Ti()||{project:[],global:[]},c=[...u.project,...u.global],l=new Set([]);return t.getBlockMap().forEach(g=>{if(!g)return;let d=Qy(g,"textStyle",n);As(l,d||{},!0);let y=Qy(g,"listStyle",c);As(l,y||{},!0);let v=g.getText();g.getCharacterList().map((S,_)=>{!S||typeof _!="number"||v.charCodeAt(_)===32||As(l,c1(S,d||{}),!1)})}),[...l].reduce((g,d)=>({...g,[d]:1}),{})},me=";",bs=(e,t)=>`${e}${me}${t}`,JR=({key:e,value:t,editorState:r})=>{let i=r.getSelection().isCollapsed(),n=r;return i&&(n=Ri(n,!0)),n=l1({editorState:n,key:e,value:t}),i&&(n=Ue(n,r.getSelection())),n},l1=({key:e,value:t,editorState:r})=>{if(r.getSelection().isCollapsed())return r;let n=f1(r,e);if(typeof t===void 0)return n;let a=Array.isArray(t)?t.filter(u=>typeof u<"u").length?t.filter(u=>typeof u<"u").join(me):null:t;return typeof a=="string"||typeof a=="number"||Array.isArray(a)?am(n,bs(e,a)):n},f1=(e,t)=>{let{startOffset:r,endOffset:i}=tr(e),n=e.getSelection(),a=er(e),c=e.getCurrentContent().getBlockMap();return c.forEach(l=>{if(!l)return;let g=l.getKey();if(!a.includes(g))return;let y=l.getCharacterList().map((S,_)=>{if(!S||typeof _>"u")return S;let A=S.getStyle().filter(w=>w?w.startsWith(t):!1).toJS(),B=(w,k)=>$.CharacterMetadata.removeStyle(w,k);if(a.length===1){if(_>=r&&_<i)return A.reduce(B,S)}else if(a[0]===g){if(_>=r)return A.reduce(B,S)}else if(a[a.length-1]===g){if(_<i)return A.reduce(B,S)}else return A.reduce(B,S);return S}),v=l.set("characterList",y);c=c.set(g,v)}),Ue($.EditorState.push(e,$.ContentState.createFromBlockArray(c.toArray()),"change-inline-style"),n)},Ye=(e,t)=>
90e.replace(`${t}${me}`,"").split(me),YR=(e,t,r=!0)=>{if(!r){let n=em({editorState:Ri(e,!0),key:t});return t?n.flatMap(a=>Ye(a,t)):n}let i=XT(e)?em({editorState:e,key:t}):e.getCurrentInlineStyle().toJS();if(t){let n=i.filter(a=>a.startsWith(t));if(n.length)return n.map(u=>Ye(u,t)).flat().filter(Boolean)}else return i;return[]},p1=e=>{let t=[],r=[],i=[];return e.forEach(n=>{let a=t.findIndex(v=>v.offset===n.offset&&v.length===n.length),[u,...c]=n.style.split(me),l=c.join(me),g=r.indexOf(u);g===-1&&(r.push(u),g=r.length-1);let d=i.indexOf(l);d===-1&&(i.push(l),d=i.length-1);let y=`${g}${me}${d}`;a>-1?t[a].styles.includes(n.style)||t[a].styles.push(y):t.push({offset:n.offset,length:n.length,styles:[y]})}),{styles:g1(t),keys:r,values:i}};g1=e=>{let t=null,r=[];return e.forEach((i,n)=>{if(t===null)t=n,r.push(i);else if(r[r.length-1]){let{offset:a,length:u,styles:c}=r[r.length-1];a+u===i.offset&&_o(c,i.styles)?r[r.length-1]={...r[r.length-1],length:u+i.length}:(t=n,r.push(i))}}),r},h1=e=>{let{keys:t,values:r,styles:i}=e,n=[];return i.forEach(a=>{a.styles.forEach(u=>{let[c,l]=u.split(me);n.push({offset:a.offset,length:a.length,style:`${t[Number(c)]}${me}${r[Number(l)]}`})})}),n},em=({editorState:e,key:t,defaultValue:r})=>{let i=cm(e),n=e.getCurrentContent(),a=er(e).map(c=>n.getBlockForKey(c)),u=[];if(!i.isCollapsed()){let c=l=>{let d=fr(l?.getStyle().toJS()).filter(y=>t?y.startsWith(t):!0);d.length?u.push(...d):r&&t&&u.push(bs(t,r))};a.length===1?a[0].getCharacterList().slice(i.getStartOffset(),i.getEndOffset()).forEach(c):a.length>1&&a.forEach((l,g)=>{let d=l.getCharacterList();g===0?d.slice(i.getStartOffset()).forEach(c):g===a.length-1&&d.slice(0,i.getEndOffset()).forEach(c),d.forEach(c)})}return fr(u)},tm={},v1=Math.pow(2,24),Ny=()=>{let e;for(;e===void 0||tm.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*v1).toString(32);return tm[e]=!0,e},ZR=e=>{let t=e.filter(a=>zn(a)&&a.version===3),r=Et(),i=t.reduce((a,u)=>{let c=(u.blocksMeta||[]).filter(l=>!!l.data).map(l=>l.data[_t]);return Pn.viewport_listall.map(l=>{let g=u[l];g&&c.push(...(g.blocksMeta||[]).filter(d=>!!d.data).map(d=>d.data[_t]))}),c.length?[...a,...c]:a},[]).filter(a=>a),n=fr(i);return[...r.global,...r.project].filter(a=>n.includes(a.name))},QR=e=>{let t=e.filter(a=>zn(a)&&a.version===3),r=_s(),i=t.reduce((a,u)=>{let c=Object.values(u.entityMap||{}).filter(l=>l.type===Qt&&!!l.data).map(l=>l.data.linkStyle);return Pn.viewport_listall.map(l=>{let g=u[l];g&&c.push(...Object.values(g.entityMap||{}).filter(d=>d.type===Qt&&!!d.data).map(d=>d.data.linkStyle))}),c.length?[...a,...c]:a},[]).filter(Boolean),n=fr(i);return[...r.global,...r.project].filter(a=>n.includes(a.name))},eN=e=>{let t=e.filter(a=>zn(a)&&a.version===3),r=Ti(),i=t.reduce((a,u)=>{let c=(u.blocksMeta||[]).filter(l=>!!l.data).map(l=>l.data[ko]);return Pn.viewport_listall.map(l=>{let g=u[l];g&&c.push(...(g.blocksMeta||[]).filter(d=>!!d.data).map(d=>d.data[ko]))}),c.length?[...a,...c]:a},[]).filter(a=>a),n=fr(i);return[...r.global,...r.project].filter(a=>n.includes(a.name))},tN=e=>typeof window<"u"&&window.RM&&window.RM.constructorRouter.isOwner?(window.RM.constructorRouter.me&&window.RM.constructorRouter.me.get("permissions")||{}).can_use_custom_fonts:e.get("permissions").can_use_custom_fonts,rN=e=>$.RichUtils.insertSoftNewline(e),nN=({editorState:e,dropSelection:t})=>{let r=$.Modifier.moveText(e.getCurrentContent(),e.getSelection(),t);return $.EditorState.push(e,r,"insert-fragment")},iN=({block:e,width:t})=>{if(!e)return{};let r=e.getType(),i=wn({block:e}),n;if(r||i){let q=Et()||{project:[],global:[]};n=[...q.project,...q.global].find(K=>K.name?K.name.toLowerCase()===r.toLowerCase()||K.name.toLowerCase()===i.toLowerCase():!1)}let a=n&&n.cssProperties||{},u=0,c=0,l=[],g=e.getCharacterList(),d=e.getText(),y=d.length,v={width:0,styles:[]};for(;u<y;){let N=g.get(u);if(N){let q=N.getStyle()?.toJS()||[],K=d[u],V=q.find(z=>z.startsWith("FONT_FAMILY")),U=q.find(z=>z.startsWith("FONT_STYLE")),j=q.find(z=>z.startsWith("FONT_WEIGHT")),J=q.find(z=>z.startsWith("FONT_SIZE")),Q={fontFamily:V&&Ye(V,"FONT_FAMILY")[0]||a.fontFamily,fontStyle:U&&Ye(U,"FONT_STYLE")[0]||a.fontStyle,fontSize:J&&Ye(J,"FONT_SIZE")[0]||a.fontSize||"",fontWeight:j?parseInt(Ye(j,"FONT_WEIGHT")[0]):a.fontWeight},I=m1({text:K,style:Q});if(I&&(v.width+=I.width,v.styles.push({fontFamily:Q.fontFamily,fontSize:Q.fontSize,fontWeight:Q.fontWeight}
90)),K.charCodeAt(0)===32){if(c+=v.width,c>=t)break;l.push(...v.styles),v={width:0,styles:[]}}}if(u+=1,c>=t)break}l.length||l.push(...v.styles);let S={},_={},A={};l.map(N=>{N.fontFamily&&(S[N.fontFamily]=(S[N.fontFamily]||0)+1),N.fontSize&&(A[N.fontSize]=(A[N.fontSize]||0)+1),N.fontWeight&&(_[N.fontWeight]=(_[N.fontWeight]||0)+1)});let B=N=>{let q=Object.keys(N);if(q.length)return q.reduce((V,U)=>N[V]>N[U]?V:U)},w=B(S)||a.fontFamily,k=B(A)||(a.fontSize?`${a.fontSize}`:void 0),b=B(_)||(a.fontWeight?parseInt(String(a.fontWeight)):void 0);return{fontFamily:w,fontWeight:b,fontSize:k?k.includes("px")?k:`${k}px`:void 0}},oN=e=>{let t=e.getCharacterList();if(t){let r=t.first();if(r){let i=r.getStyle().find(n=>n?n.startsWith("COLOR"):!1);if(i){let[,n]=i.split(me);return n}}}return Do(pr.textWidget.initialColor)},y1=e=>`${e.fontStyle?`${e.fontStyle} `:""}${e.fontWeight?`${e.fontWeight} `:""}${e.fontSize?`${e.fontSize}px `:""}${e.fontFamily||""}`,m1=Ku(({text:e,style:t})=>{let r=Ge.createElement("div");r.innerHTML=e,r.style.position="absolute",r.style.left="-9999px",r.style.font=y1(t),r.style.whiteSpace="pre",t.letterSpacing&&(r.style.letterSpacing=String(t.letterSpacing)+(/\d$/.test(String(t.letterSpacing))?"px":"")),Ge.body.appendChild(r);let i=r.clientWidth,n=r.clientHeight;return Ge.body.removeChild(r),{width:i,height:n}},om.default),S1=(e,t={})=>{let r=!!t[_t],i=r?{}:qt,n=r?null:Do(pr.textWidget.initialColor),a={FONT_SIZE:t.FONT_SIZE||i.fontSize,FONT_FAMILY:t.FONT_FAMILY||i.fontFamily,FONT_WEIGHT:t.FONT_WEIGHT||i.fontWeight,FONT_STYLE:t.FONT_STYLE||i.fontStyle};typeof t.LETTER_SPACING<"u"&&(a.LETTER_SPACING=t.LETTER_SPACING),t.FONT_FEATURE&&(a.FONT_FEATURE=t.FONT_FEATURE);let u=t.COLOR||n;u&&(a.COLOR=u);let c=Ue(e,lm({content:e.getCurrentContent(),selection:e.getSelection()}));for(let l in a){let g=l,d=a[g];d&&(c=am(c,bs(g,d)))}return c=Li({editorState:c,lineHeight:+(t[Fr]||i.lineHeight)}),c=nm({editorState:c,align:t[hr]||i.textAlign}),c=Dy({editorState:c,linkedStatus:!!t[Mi]||!0}),t[_t]&&(c=Fs({editorState:c,styleName:`${t[_t]}`})),c},aN=(e,t)=>{let r=t.getCurrentContent().getBlockMap(),i=e.getCurrentContent().getBlockMap(),n="\u200D",a=i.filter(c=>{if(c){let l=r.get(c.getKey());if(!l||!l.getText().length)return!1;let g=c.getText().length;return!wn({block:c})&&!g}return!1}),u=i.filter(c=>{let l=c?.getText();return!!(l&&l.length>1&&l.includes(n))});if(u.size){let c=u.reduce((l,g)=>{if(l&&g){let d=g.getKey(),y=g.getText(),v=y.indexOf(n),S=g.getCharacterList().delete(v),_=g.set("characterList",S).set("text",y.replace(n,""));return l.set(d,_)}return l},i);return $.EditorState.set(e,{currentContent:$.ContentState.createFromBlockArray(c.toArray())})}if(a.size){let c=a.reduce((l,g)=>{if(l&&g){let d=g.getKey(),y=r.get(d),v=r.last(),S=y?y.getCharacterList().slice(0,1):v.getCharacterList().slice(-1),_=g.set("text",n).set("characterList",S);return l.set(d,_)}return l},i);return $.EditorState.set(e,{currentContent:$.ContentState.createFromBlockArray(c.toArray())})}return e},sN=(e,t,r)=>{let i=e.getSelection(),n=$.Modifier.applyEntity(e.getCurrentContent(),t,r);return $.EditorState.set(e,{currentContent:n,selection:i})},uN=({originStyles:e,blockMap:t,forceOverride:r=!1})=>t.map(n=>{if(n){let a=n.getCharacterList().map(c=>{let l=c;if(l){let g=e;if(r)l=l.set("style",l.get("style").clear());else{let y=l.getStyle().toArray().map(v=>{let[S]=v.split(me);return S});g=e.filter(v=>{if(v){let[S]=v.split(me);return!y.includes(S)}return!0})}return g.toArray().reduce((y,v)=>y&&$.CharacterMetadata.applyStyle(y,v),l)}return l});return n.set("characterList",a)}});lN=({letterSpacing:e,fontSize:t,newFontSize:r})=>{let i=e/t,n=r-t,a=e+i*n;return parseFloat((Math.round(a*100)/100).toFixed(2))},fN=e=>{if(!(e&&e.get("blocks")))return $.EditorState.createEmpty(Ni);let r=um(e.attributes);return r?$.EditorState.createWithContent(r,Ni):$.EditorState.createEmpty(Ni)},pN=({editorState:e,lastStyle:t})=>{let r=e.getCurrentInlineStyle(),i=xs(e),n=rm({editorState:e}),a=wn({editorState:e});return r.toArray().reduce((u,c)=>{if(c){let[l,g]=c.split(me);return u[l]=g,u}return u},{...r.size?t||{}:{},[hr]:n,[Fr]:i,[_t]:a})},dN=()=>{let e=Array.from(Ge.querySelectorAll("link.fonts, style.fonts")),t=i=>Modernizr.safari?`${i}&edit_mode=true`:i;return e.map(i=>{let n=i.tagName.toLowerCase();return n==="style"?{tag:n,style:i.innerHTML}:{tag:n,href:t(i.getAttribute("href")),type:i.getAttribute("type")}})},Ts=(e,t)=>`${e}_used_${t}_stylesCache`,E1=(e,t)=>{let r=localStorage.getItem(Ts(e,t));if(r){let i=JSON.parse(r);if(i?.valid&&i?.value)return new Set(i.value)}return null},gN=(e,t)=>{E1(e,t)&&localStorage.setItem(Ts(e,t),JSON.stringify({value:null,valid:!1}))},hN=(e,t,r)=>{localStorage.setItem(Ts(e,t),JSON.stringify({value:[...r],valid:!0,datetime:new Date}))};yN=({style:e,currentStyle:t,editorState:r})=>{let i=er(r),n=r.getCurrentContent();return i.reduce((u,c)=>{let l=n.getBlockForKey(c),g=ZT({editorState:u,block:l});return e===null?(g=Fs({editorState:g,block:l,styleName:void 0}),g=S1(g)):e.name!==t&&(g=Fs({editorState:g,block:l,styleName:e.name})),g},r)},wn=({editorState:e,block:t})=>{let r=ft({editorState:e,block:t,key:_t});return typeof r=="string"&&!["undefined","null"].includes(r)?r:""},Fs=({block:e,editorState:t,styleName:r})=>Ct({editorState:t,block:e,key:_t,value:r}),mN=e=>{if(e&&e.cssProperties){let{paddingTop:t,paddingLeft:r,paddingRight:i,paddingBottom:n}=e.cssProperties,a={left:typeof r<"u"?Xt(r):0,top:typeof t<"u"?Xt(t):0,right:typeof i<"u"?Xt(i):0,bottom:typeof n<"u"?Xt(n):0};
90if(a.left||a.top||a.right||a.bottom)return a}}});var rm,nm,im=pe(()=>{"use strict";Wn();lt();rm=({editorState:e,block:t})=>{let r=ft({editorState:e,block:t,key:"align"});return typeof r=="string"?r:""},nm=({block:e,editorState:t,align:r})=>Ct({editorState:t,block:e,key:hr,value:r})});export{re as a,Gr as b,da as c,Ov as d,Yv as e,Ai as f,hr as g,D1 as h,Wn as i,qt as j,HK as k,jK as l,Fi as m,XK as n,ZK as o,QK as p,eM as q,dy as r,tM as s,rM as t,gy as u,hy as v,yy as w,Es as x,pM as y,my as z,hM as A,vM as B,yM as C,mM as D,SM as E,Ey as F,xM as G,wM as H,Et as I,DM as J,BM as K,_s as L,kM as M,AM as N,Ti as O,FM as P,bM as Q,Oi as R,_t as S,MM as T,IM as U,RM as V,Xt as W,Cs as X,ko as Y,Vu as Z,_1 as _,C1 as $,x1 as aa,Hu as ba,Fr as ca,LT as da,Li as ea,zM as fa,Cy as ga,rm as ha,nm as ia,im as ja,Ki as ka,VM as la,HM as ma,jM as na,xy as oa,Qt as pa,wy as qa,ws as ra,Mi as sa,QM as ta,Dy as ua,By as va,ky as wa,Ay as xa,Fy as ya,uI as za,cI as Aa,by as Ba,lI as Ca,fI as Da,Ty as Ea,Oy as Fa,IT as Ga,Bs as Ha,AI as Ia,RT as Ja,NT as Ka,FI as La,bI as Ma,TI as Na,Iy as Oa,qy as Pa,PI as Qa,Wy as Ra,HT as Sa,jy as Ta,Ni as Ua,Gy as Va,Ue as Wa,sm as Xa,kR as Ya,AR as Za,um as _a,FR as $a,cm as ab,lm as bb,bR as cb,ZT as db,QT as eb,ft as fb,Ct as gb,er as hb,TR as ib,OR as jb,LR as kb,e1 as lb,KR as mb,MR as nb,IR as ob,RR as pb,NR as qb,tr as rb,qR as sb,t1 as tb,PR as ub,UR as vb,zR as wb,Ry as xb,WR as yb,VR as zb,HR as Ab,i1 as Bb,Xy as Cb,o1 as Db,jR as Eb,$R as Fb,GR as Gb,me as Hb,bs as Ib,JR as Jb,l1 as Kb,f1 as Lb,Ye as Mb,YR as Nb,p1 as Ob,XR as Pb,h1 as Qb,em as Rb,Ny as Sb,ZR as Tb,QR as Ub,eN as Vb,tN as Wb,rN as Xb,nN as Yb,iN as Zb,oN as _b,m1 as $b,S1 as ac,aN as bc,sN as cc,uN as dc,cN as ec,lN as fc,fN as gc,pN as hc,dN as ic,E1 as jc,gN as kc,hN as lc,Ri as mc,vN as nc,yN as oc,wn as pc,Fs as qc,mN as rc,lt as sc};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.