=n)return a;if(l=e.charCodeAt(t),34!==l&&39!==l&&40!==l)return a;for(t++,40===l&&(l=41);t'+s(e[t].content)+''},i.code_block=function(e,t,n,o,r){var i=e[t];return''+s(e[t].content)+'
\n'},i.fence=function(e,t,n,o,r){var l=e[t],d=l.info?a(l.info).trim():'',c='',p,u,i,m;return d&&(c=d.split(/\s+/g)[0]),p=n.highlight?n.highlight(l.content,c)||s(l.content):s(l.content),0===p.indexOf('u?i.push(['class',n.langPrefix+c]):i[u][1]+=' '+n.langPrefix+c,m={attrs:i},''+p+'
\n'):''+p+'
\n'},i.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex('alt')][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)},i.hardbreak=function(e,t,n){return n.xhtmlOut?'
\n':'
\n'},i.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?'
\n':'
\n':'\n'},i.text=function(e,t){return s(e[t].content)},i.html_block=function(e,t){return e[t].content},i.html_inline=function(e,t){return e[t].content},o.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return'';for(o='',t=0,n=e.attrs.length;t\n':'>',o)},o.prototype.renderInline=function(e,t,n){for(var o='',r=this.rules,a=0,i=e.length,s;a\s]/i.test(e)}function r(e){return /^<\/a\s*>/i.test(e)}var a=n(1).arrayReplaceAt;e.exports=function(e){var t=e.tokens,n,i,s,l,d,c,p,u,m,g,h,f,b,_,k,w,v;if(e.md.options.linkify)for(i=0,s=t.length;ih&&(d=new e.Token('text','',0),d.content=m.slice(h,g),d.level=f,p.push(d)),d=new e.Token('link_open','a',1),d.attrs=[['href',k]],d.level=f++,d.markup='linkify',d.info='auto',p.push(d),d=new e.Token('text','',0),d.content=w,d.level=f,p.push(d),d=new e.Token('link_close','a',-1),d.level=--f,d.markup='linkify',d.info='auto',p.push(d),h=v[u].lastIndex);h=k&&(T=A=!1),A&&T&&(A=!1,T=y),!A&&!T){P&&(u.content=r(u.content,g.index,p));continue}if(T)for(E=S.length-1;0<=E&&(_=S[E],!(S[E].level=n))&&!(e.sCount[a]=l){e.line=n;break}for(c=0;ca)return!1;if(u=n+1,e.sCount[u]=e.eMarks[u])return!1;if(l=e.src.charCodeAt(c++),124!==l&&45!==l&&58!==l)return!1;for(;cf.length)return!1;if(s)return!0;for(h=e.push('table_open','table',1),h.map=_=[n,0],h=e.push('thead_open','thead',1),h.map=[n,n+1],h=e.push('tr_open','tr',1),h.map=[n,n+1],p=0;pe.sCount[t]-e.blkIndent)return!1;for(r=o=t+1;os)return!1;if(l=e.src.charCodeAt(a),126!==l&&96!==l)return!1;if(u=a,a=e.skipChars(a,l),d=a-u,3>d)return!1;if(g=e.src.slice(u,a),c=e.src.slice(a,s),0<=c.indexOf(n(l)))return!1;if(r)return!0;for(p=t;;){if(p++,p>=o)break;if(a=u=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],a=d,v=[e.sCount[t]],e.sCount[t]=f-i,y=[e.tShift[t]],e.tShift[t]=s-e.bMarks[t],A=e.md.block.ruler.getRules('blockquote'),w=e.parentType,e.parentType='blockquote',E=!1,h=t+1;h=d));h++){if(62===e.src.charCodeAt(s++)&&!E){for(i=f=e.sCount[h]+s-(e.bMarks[h]+e.tShift[h]),32===e.src.charCodeAt(s)?(s++,i++,f++,c=!1,x=!0):9===e.src.charCodeAt(s)?(x=!0,3==(e.bsCount[h]+f)%4?(s++,i++,f++,c=!1):c=!0):x=!1,b.push(e.bMarks[h]),e.bMarks[h]=s;s=d,_.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(x?1:0),v.push(e.sCount[h]),e.sCount[h]=f-i,y.push(e.tShift[h]),e.tShift[h]=s-e.bMarks[h];continue}if(l)break;for(C=!1,u=0,m=A.length;u',T.map=g=[t,0],e.md.block.tokenize(e,t,h),T=e.push('blockquote_close','blockquote',-1),T.markup='>',e.lineMax=a,e.parentType=w,g[1]=e.line,u=0;ud)&&(!!i||(e.line=t+1,p=e.push('hr','hr',0),p.map=[t,e.line],p.markup=Array(d+1).join(n(l)),!0))}},function(t,o,r){'use strict';function a(e,t){var n,o,r,a;return o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],n=e.src.charCodeAt(o++),42!==n&&45!==n&&43!==n?-1:o=r)return-1;if(a=e.src.charCodeAt(o++),48>a||57=r)return-1;if(a=e.src.charCodeAt(o++),48<=a&&57>=a){if(10<=o-n)return-1;continue}if(41===a||46===a)break;return-1}return o=t.blkIndent&&(p=!0),0<=(V=s(t,o))){if(_=!0,D=t.bMarks[o]+t.tShift[o],x=+t.src.substr(D,V-D-1),p&&1!==x)return!1;}else if(0<=(V=a(t,o)))_=!1;else return!1;if(p&&t.skipSpaces(V)>=t.eMarks[o])return!1;if(y=t.src.charCodeAt(V-1),c)return!0;for(v=t.tokens.length,_?(M=t.push('ordered_list_open','ol',1),1!==x&&(M.attrs=[['start',x]])):M=t.push('bullet_list_open','ul',1),M.map=l=[o,0],M.markup=n(y),A=o,N=!1,F=t.md.block.ruler.getRules('list'),S=t.parentType,t.parentType='list';A=C?1:T-b,4=C&&t.isEmpty(o+1)?t.line=e(t.line+2,r):t.md.block.tokenize(t,o,r,!0),(!t.tight||N)&&(u=!1),N=1=r)break;if(t.sCount[A]V)break;}else if(V=a(t,A),0>V)break;if(y!==t.src.charCodeAt(V-1))break}return M=_?t.push('ordered_list_close','ol',-1):t.push('bullet_list_close','ul',-1),M.markup=n(y),l[1]=A,t.line=A,t.parentType=S,u&&d(t,v),!0}},function(e,t,n){'use strict';var o=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,t,n,a){var s=0,d=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],p=t+1,u,m,g,h,f,b,i,l,_,k,w,v,y,x,C,A;if(4<=e.sCount[t]-e.blkIndent)return!1;if(91!==e.src.charCodeAt(d))return!1;for(;++de.sCount[p])){for(x=!1,b=0,i=C.length;b_||58!==y.charCodeAt(_+1))return!1;for(d=_+2;d=a)return!1;for(l=1,s=e.src.charCodeAt(++i);35===s&&i=l;)l++,s=e.src.charCodeAt(++i);return!(6i&&o(e.src.charCodeAt(d-1))&&(a=d),e.line=t+1,c=e.push('heading_open','h'+(l+''),1),c.markup='########'.slice(0,l),c.map=[t,e.line],c=e.push('inline','',0),c.content=e.src.slice(i,a).trim(),c.map=[t,e.line],c.children=[],c=e.push('heading_close','h'+(l+''),-1),c.markup='########'.slice(0,l),!0))}},function(e){'use strict';e.exports=function(e,t,o){var r=t+1,a=e.md.block.ruler.getRules('paragraph'),s,d,c,i,l,p,u,m,g,h;if(4<=e.sCount[t]-e.blkIndent)return!1;for(h=e.parentType,e.parentType='paragraph';r=e.blkIndent&&(p=e.bMarks[r]+e.tShift[r],u=e.eMarks[r],p=u)))){m=61===g?1:2;break}if(!(0>e.sCount[r])){for(d=!1,c=0,i=a.length;c|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp('^?('+o.join('|')+')(?=(\\s|/?>|$))','i'),/^$/,!0],[new RegExp(r.source+'\\s*$'),/^$/,!1]];e.exports=function(e,t,n,o){var r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],l,i,d,c;if(4<=e.sCount[t]-e.blkIndent)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(r))return!1;for(c=e.src.slice(r,s),l=0;le.sCount[n])){for(s=!1,d=0,i=o.length;dn&&this.level--,o.level=this.level,0=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,o){var r=e,a,s,l,d,c,p,u;if(e>=t)return'';for(p=Array(t-e),a=0;rn?Array(s-n+1).join(' ')+this.src.slice(d,c):this.src.slice(d,c)}return p.join('')},o.prototype.Token=r,e.exports=o},function(e,t,n){'use strict';function o(){var e;for(this.ruler=new r,e=0;e=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,o){var r=new this.State(e,t,n,o),a,i,s;for(this.tokenize(r),i=this.ruler2.getRules(''),s=i.length,a=0;aa;a++)r.push(0);['\\','!','"','#','$','%','&','\'','(',')','*','+',',','.','/',':',';','<','=','>','?','@','[',']','^','_','`','{','|','}','~','-'].forEach(function(e){r[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n=e.pos,i=e.posMax,a;if(92!==e.src.charCodeAt(n))return!1;if(n++,na&&0!==r[a])return t||(e.pending+=e.src[n]),e.pos+=2,!0;if(10===a){for(t||e.push('hardbreak','br',0),n++;nu)return!1;if(g=u+1,g=a)return!1;for(s=g,h=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),h.ok&&(n=e.md.normalizeLink(h.str),e.md.validateLink(n)?g=h.pos:n=''),s=g;g=a||41!==e.src.charCodeAt(g))&&(l=!0),g++}if(l){if('undefined'==typeof e.env.references)return!1;if(gp)return!1;if(m=p+1,m=a)return!1;for(k=m,h=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),h.ok&&(n=e.md.normalizeLink(h.str),e.md.validateLink(n)?m=h.pos:n=''),k=m;m=a||41!==e.src.charCodeAt(m))return e.pos=i,!1;m++}else{if('undefined'==typeof e.env.references)return!1;if(m/,n=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,o){var r=e.pos,i,a,s,l,d,c;return!(60!==e.src.charCodeAt(r))&&(i=e.src.slice(r),!(0>i.indexOf('>'))&&(n.test(i)?(a=i.match(n),l=a[0].slice(1,-1),d=e.md.normalizeLink(l),!!e.md.validateLink(d))&&(o||(c=e.push('link_open','a',1),c.attrs=[['href',d]],c.markup='autolink',c.info='auto',c=e.push('text','',0),c.content=e.md.normalizeLinkText(l),c=e.push('link_close','a',-1),c.markup='autolink',c.info='auto'),e.pos+=a[0].length,!0):!!t.test(i)&&(s=i.match(t),l=s[0].slice(1,-1),d=e.md.normalizeLink('mailto:'+l),!!e.md.validateLink(d))&&(o||(c=e.push('link_open','a',1),c.attrs=[['href',d]],c.markup='autolink',c.info='auto',c=e.push('text','',0),c.content=e.md.normalizeLinkText(l),c=e.push('link_close','a',-1),c.markup='autolink',c.info='auto'),e.pos+=s[0].length,!0)))}},function(e,t,n){'use strict';function o(e){var t=32|e;return 97<=t&&122>=t}var r=n(18).HTML_TAG_RE;e.exports=function(e,t){var n=e.pos,i,a,s,l;return!!e.md.options.html&&(s=e.posMax,!(60!==e.src.charCodeAt(n)||n+2>=s))&&(i=e.src.charCodeAt(n+1),33===i||63===i||47===i||o(i))&&(a=e.src.slice(n).match(r),!!a)&&(t||(l=e.push('html_inline','',0),l.content=e.src.slice(n,n+a[0].length)),e.pos+=a[0].length,!0)}},function(e,t,n){'use strict';var o=n(13),r=n(1).has,i=n(1).isValidEntityCode,a=n(1).fromCodePoint,s=/^((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n=e.pos,d=e.posMax,c,p,u;if(38!==e.src.charCodeAt(n))return!1;if(n+1a.end&&a.level===i.level){var s=(a.close||i.open)&&'undefined'!=typeof a.length&&'undefined'!=typeof i.length&&0==(a.length+i.length)%3;if(!s){i.jump=o-r,i.open=!1,a.end=o,a.jump=0;break}}r-=a.jump+1}}},function(e){'use strict';e.exports=function(e){var t=0,n=e.tokens,o=e.tokens.length,r,i;for(r=i=0;rn&&this.level--,o.level=this.level,0<\uFF5C]|'+r.src_ZPCc+'))('+h+')','i'),e.re.schema_search=RegExp('(^|(?!_)(?:[><\uFF5C]|'+r.src_ZPCc+'))('+h+')','ig'),e.re.pretest=RegExp('('+e.re.schema_test.source+')|('+e.re.host_fuzzy_test.source+')|@','i'),p(e)}function h(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function f(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function b(e,t){return this instanceof b?void(!t&&c(e)&&(t=e,e={}),this.__opts__=o({},_,t),this.__index__=-1,this.__last_index__=-1,this.__schema__='',this.__text_cache__='',this.__schemas__=o({},k,e),this.__compiled__={},this.__tlds__=v,this.__tlds_replaced__=!1,this.re={},g(this)):new b(e,t)}var _={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},k={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp('^\\/\\/'+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,'i')),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":'http:',"ftp:":'http:',"//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp('^'+n.re.src_auth+'(?:localhost|(?:(?:'+n.re.src_domain+')\\.)+'+n.re.src_domain_root+')'+n.re.src_port+n.re.src_host_terminator+n.re.src_path,'i')),n.re.no_http.test(o)?3<=t&&':'===e[t-3]?0:3<=t&&'/'===e[t-3]?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp('^'+n.re.src_email_name+'@'+n.re.src_host_strict,'i')),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},w='a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]',v=['biz','com','edu','gov','net','org','pro','web','xxx','aero','asia','coop','info','museum','name','shop','\u0440\u0444'];b.prototype.add=function(e,t){return this.__schemas__[e]=t,g(this),this},b.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},b.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,l,d;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__['http:']&&(l=e.search(this.re.host_fuzzy_test),0<=l&&(0>this.__index__||lthis.__index__||ithis.__index__||ithis.__last_index__)&&(this.__schema__='mailto:',this.__index__=i,this.__last_index__=a))),0<=this.__index__},b.prototype.pretest=function(e){return this.re.pretest.test(e)},b.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},b.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(f(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},b.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],!t)?(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,g(this),this):(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),g(this),this)},b.prototype.normalize=function(e){e.schema||(e.url='http://'+e.url),'mailto:'!==e.schema||/^mailto:/i.test(e.url)||(e.url='mailto:'+e.url)},b.prototype.onCompile=function(){},e.exports=b},function(e,t,n){'use strict';e.exports=function(e){var t={};t.src_Any=n(15).source,t.src_Cc=n(16).source,t.src_Z=n(17).source,t.src_P=n(6).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join('|'),t.src_ZCc=[t.src_Z,t.src_Cc].join('|');var o='[><\uFF5C]';return t.src_pseudo_letter='(?:(?!'+o+'|'+t.src_ZPCc+')'+t.src_Any+')',t.src_ip4='(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)',t.src_auth='(?:(?:(?!'+t.src_ZCc+'|[@/\\[\\]()]).)+@)?',t.src_port='(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?',t.src_host_terminator='(?=$|'+o+'|'+t.src_ZPCc+')(?!-|_|:\\d|\\.-|\\.(?!$|'+t.src_ZPCc+'))',t.src_path='(?:[/?#](?:(?!'+t.src_ZCc+'|'+o+'|[()[\\]{}.,"\'?!\\-]).|\\[(?:(?!'+t.src_ZCc+'|\\]).)*\\]|\\((?:(?!'+t.src_ZCc+'|[)]).)*\\)|\\{(?:(?!'+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+'|[\']).)+\\\'|\\\'(?='+t.src_pseudo_letter+'|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!'+t.src_ZCc+'|[.]).|'+(e&&e['---']?'\\-(?!--(?:[^-]|$))(?:-*)|':'\\-+|')+'\\,(?!'+t.src_ZCc+').|\\!(?!'+t.src_ZCc+'|[!]).|\\?(?!'+t.src_ZCc+'|[?]).)+|\\/)?',t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn='xn--[a-z0-9\\-]{1,59}',t.src_domain_root='(?:'+t.src_xn+'|'+t.src_pseudo_letter+'{1,63})',t.src_domain='(?:'+t.src_xn+'|(?:'+t.src_pseudo_letter+')|(?:'+t.src_pseudo_letter+'(?:-(?!-)|'+t.src_pseudo_letter+'){0,61}'+t.src_pseudo_letter+'))',t.src_host='(?:(?:(?:(?:'+t.src_domain+')\\.)*'+t.src_domain+'))',t.tpl_host_fuzzy='(?:'+t.src_ip4+'|(?:(?:(?:'+t.src_domain+')\\.)+(?:%TLDS%)))',t.tpl_host_no_ip_fuzzy='(?:(?:(?:'+t.src_domain+')\\.)+(?:%TLDS%))',t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test='localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:'+t.src_ZPCc+'|>|$))',t.tpl_email_fuzzy='(^|'+o+'|\\(|'+t.src_ZCc+')('+t.src_email_name+'@'+t.tpl_host_fuzzy_strict+')',t.tpl_link_fuzzy='(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|'+t.src_ZPCc+'))((?![$+<=>^`|\uFF5C])'+t.tpl_host_port_fuzzy_strict+t.src_path+')',t.tpl_link_no_ip_fuzzy='(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|'+t.src_ZPCc+'))((?![$+<=>^`|\uFF5C])'+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+')',t}},function(e,o,r){(function(e,i){var a;(function(s){function l(e){throw new RangeError(V[e])}function d(e,t){for(var n=e.length,o=[];n--;)o[n]=t(e[n]);return o}function c(e,t){var n=e.split('@'),o='';1=r&&n>>10),e=56320|1023&e),t+=L(e),t}).join('')}function m(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:y}function g(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function h(e,t,n){var o=0;for(e=n?D(e/T):e>>1,e+=D(e/t);e>N*C>>1;o+=y)e=D(e/N);return D(o+(N+1)*e/(e+A))}function f(e){var o=[],r=e.length,a=0,i=P,n=E,s,d,c,p,g,f,b,_,k,t;for(d=e.lastIndexOf(S),0>d&&(d=0),c=0;c=r&&l('invalid-input'),_=m(e.charCodeAt(p++)),(_>=y||_>D((v-a)/f))&&l('overflow'),a+=_*f,k=b<=n?x:b>=n+C?C:b-n,_D(v/t)&&l('overflow'),f*=t}s=o.length+1,n=h(a-g,s,0==g),D(a/s)>v-i&&l('overflow'),i+=D(a/s),a%=s,o.splice(a++,0,i)}return u(o)}function b(e){var o=[],r,n,i,a,s,d,c,u,m,f,t,b,_,k,w;for(e=p(e),b=e.length,r=P,n=0,s=E,d=0;dt&&o.push(L(t));for(i=a=o.length,a&&o.push(S);i=r&&tD((v-n)/_)&&l('overflow'),n+=(c-r)*_,r=c,d=0;dv&&l('overflow'),t==r){for(u=n,m=y;;m+=y){if(f=m<=s?x:m>=s+C?C:m-s,u= 0x80 (not a basic code point)',"invalid-input":'Invalid input'},N=y-x,D=t,L=n,F;F={version:'1.4.1',ucs2:{decode:p,encode:u},decode:f,encode:b,toASCII:function(e){return c(e,function(e){return R.test(e)?'xn--'+b(e):e})},toUnicode:function(e){return c(e,function(e){return O.test(e)?f(e.slice(4).toLowerCase()):e})}};a=function(){return F}.call(o,r,o,e),!(void 0!==a&&(e.exports=a))})(this)}).call(o,r(161)(e),r(5))},function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],!e.children&&(e.children=[]),Object.defineProperty(e,'loaded',{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,'id',{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){'use strict';e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:'language-',linkify:!1,typographer:!1,quotes:'\u201C\u201D\u2018\u2019',highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e){'use strict';e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:'language-',linkify:!1,typographer:!1,quotes:'\u201C\u201D\u2018\u2019',highlight:null,maxNesting:20},components:{core:{rules:['normalize','block','inline']},block:{rules:['paragraph']},inline:{rules:['text'],rules2:['balance_pairs','text_collapse']}}}},function(e){'use strict';e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:'language-',linkify:!1,typographer:!1,quotes:'\u201C\u201D\u2018\u2019',highlight:null,maxNesting:20},components:{core:{rules:['normalize','block','inline']},block:{rules:['blockquote','code','fence','heading','hr','html_block','lheading','list','reference','paragraph']},inline:{rules:['autolink','backticks','emphasis','entity','escape','html_inline','image','link','newline','text'],rules2:['balance_pairs','emphasis','text_collapse']}}}},function(e){e.exports=''},function(e){e.exports='\n\n'},function(e){e.exports='\n'},function(e){e.exports='\n'},function(e){e.exports='\n'},function(e){e.exports='\n'},function(e){e.exports='\n'},function(e){e.exports=''},function(e){e.exports='\n'},function(e){e.exports='\n'},function(e,t,n){var o=n(176);'string'==typeof o&&(o=[[e.i,o,'']]);var r={singleton:!0,hmr:!0},i;r.transform=i,r.insertInto=void 0;n(0)(o,r);o.locals&&(e.exports=o.locals),!1},function(e){e.exports='.ck-content .image{position:relative;overflow:hidden}.ck-content .image.ck-infinite-progress:before{content:"";position:absolute;top:0;right:0}.ck-content .image .ck-progress-bar{position:absolute;top:0;left:0}:root{--ck-image-upload-progress-line-width:30px}.ck-content .image.ck-appear{animation:fadeIn .7s}.ck-content .image.ck-infinite-progress:before{width:var(--ck-image-upload-progress-line-width);height:2px;background:var(--ck-color-upload-infinite-background);animation-name:readingProgressAnimation;animation-duration:1.5s;animation-iteration-count:infinite;transition-timing-function:linear}.ck-content .image.ck-image-upload-placeholder>img{width:100%}.ck-content .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes readingProgressAnimation{0%{width:var(--ck-image-upload-progress-line-width);right:0}50%{width:calc(var(--ck-image-upload-progress-line-width) * 1.5)}to{right:100%}}'},function(e,t,n){var o=n(178);'string'==typeof o&&(o=[[e.i,o,'']]);var r={singleton:!0,hmr:!0},i;r.transform=i,r.insertInto=void 0;n(0)(o,r);o.locals&&(e.exports=o.locals),!1},function(e){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:1.25em;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;height:0;width:0}33%{width:.25em;height:0}to{width:.25em;height:.416em;opacity:1}}'},function(e){e.exports='\n'}])['default']});
+(function(e){e.en=Object.assign(e.en||{},{a:'Cannot upload file:',b:'Block quote',c:'Bold',d:'Italic',e:'Code',f:'Choose heading',g:'Heading',h:'image widget',i:'Enter image caption',j:'Full size image',k:'Side image',l:'Left aligned image',m:'Centered image',n:'Right aligned image',o:'Link',p:'Numbered List',q:'Bulleted List',r:'Insert table',s:'Header column',t:'Insert column before',u:'Insert column after',v:'Delete column',w:'Column',x:'Header row',y:'Insert row below',z:'Insert row above',aa:'Delete row',ab:'Row',ac:'Merge cell up',ad:'Merge cell right',ae:'Merge cell down',af:'Merge cell left',ag:'Split cell vertically',ah:'Split cell horizontally',ai:'Merge cells',aj:'Upload in progress',ak:'Change image text alternative',al:'Unlink',am:'Edit link',an:'Open link in new tab',ao:'This link has no URL',ap:'Rich Text Editor, %0',aq:'Upload failed',ar:'Undo',as:'Redo',at:'Save',au:'Cancel',av:'Text alternative',aw:'Insert image',ax:'Link URL',ay:'Paragraph',az:'Heading 1',ba:'Heading 2',bb:'Heading 3',bc:'Rich Text Editor'})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define([],t):'object'==typeof exports?exports.BalloonEditor=t():e.BalloonEditor=t()}('undefined'==typeof self?this:self,function(){var e=Math.min,t=Math.floor,n=String.fromCharCode;return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(n,'a',n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=21)}([function(e,t,n){function o(e,t){for(var n=0;n=e)&&!(64976<=e&&65007>=e)&&65535!=(65535&e)&&65534!=(65535&e)&&!(0<=e&&8>=e)&&11!==e&&!(14<=e&&31>=e)&&!(127<=e&&159>=e)&&!(1114111>10),o=56320+(1023&e);return n(t,o)}return n(e)}function l(e,t){var n=0;return i(h,t)?h[t]:35===t.charCodeAt(0)&&g.test(t)&&(n='x'===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),a(n))?s(n):e}function d(e){return _[e]}var c=Object.prototype.hasOwnProperty,p=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,m=new RegExp(p.source+'|'+u.source,'gi'),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=o(13),f=/[&<>"]/,b=/[&<>"]/g,_={"&":'&',"<":'<',">":'>','"':'"'},k=/[.?*+^$[\]\\(){}|-]/g,w=o(6);t.lib={},t.lib.mdurl=o(14),t.lib.ucmicro=o(116),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if('object'!=typeof t)throw new TypeError(t+'must be object');Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return'[object String]'===r(e)},t.has=i,t.unescapeMd=function(e){return 0>e.indexOf('\\')?e:e.replace(p,'$1')},t.unescapeAll=function(e){return 0>e.indexOf('\\')&&0>e.indexOf('&')?e:e.replace(m,function(e,t,n){return t?t:l(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=s,t.escapeHtml=function(e){return f.test(e)?e.replace(b,d):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){return!(9!==e&&32!==e)},t.isWhiteSpace=function(e){if(8192<=e&&8202>=e)return!0;return!(9!==e&&10!==e&&11!==e&&12!==e&&13!==e&&32!==e&&160!==e&&5760!==e&&8239!==e&&8287!==e&&12288!==e)},t.isMdAsciiPunct=function(e){return!(33!==e&&34!==e&&35!==e&&36!==e&&37!==e&&38!==e&&39!==e&&40!==e&&41!==e&&42!==e&&43!==e&&44!==e&&45!==e&&46!==e&&47!==e&&58!==e&&59!==e&&60!==e&&61!==e&&62!==e&&63!==e&&64!==e&&91!==e&&92!==e&&93!==e&&94!==e&&95!==e&&96!==e&&123!==e&&124!==e&&125!==e&&126!==e)},t.isPunctChar=function(e){return w.test(e)},t.escapeRE=function(e){return e.replace(k,'\\$&')},t.normalizeReference=function(e){return e.trim().replace(/\s+/g,' ').toUpperCase()}},function(e,t,n){'use strict';(function(e,o){var r=n(22),i={function:!0,object:!0},a=i[typeof exports]&&exports&&!exports.nodeType?exports:void 0,s=i[typeof e]&&e&&!e.nodeType?e:void 0,l=Object(r.a)(a&&s&&'object'==typeof o&&o),d=Object(r.a)(i[typeof self]&&self),c=Object(r.a)(i[typeof window]&&window),p=Object(r.a)(i[typeof this]&&this),u=l||c!==(p&&p.window)&&c||d||p||Function('return this')();t.a=u}).call(t,n(4)(e),n(5))},function(e,t,n){'use strict';(function(e,o){var r=n(105),i={function:!0,object:!0},a=i[typeof exports]&&exports&&!exports.nodeType?exports:void 0,s=i[typeof e]&&e&&!e.nodeType?e:void 0,l=Object(r.a)(a&&s&&'object'==typeof o&&o),d=Object(r.a)(i[typeof self]&&self),c=Object(r.a)(i[typeof window]&&window),p=Object(r.a)(i[typeof this]&&this),u=l||c!==(p&&p.window)&&c||d||p||Function('return this')();t.a=u}).call(t,n(4)(e),n(5))},function(e){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,'loaded',{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,'id',{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,'exports',{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(n){'object'==typeof window&&(t=window)}e.exports=t},function(e){e.exports=/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E49\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e){'use strict';function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;tt.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},t.prototype.at=function(e,t,n){var o=this.__find__(e);if(-1===o)throw new Error('Parser rule not found: '+e);this.__rules__[o].fn=t,this.__rules__[o].alt=(n||{}).alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,o){var r=this.__find__(e);if(-1===r)throw new Error('Parser rule not found: '+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:(o||{}).alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,o){var r=this.__find__(e);if(-1===r)throw new Error('Parser rule not found: '+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:(o||{}).alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var o=this.__find__(e);if(0>o){if(t)return;throw new Error('Rules manager: invalid rule name '+e)}this.__rules__[o].enabled=!0,n.push(e)},this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var o=this.__find__(e);if(0>o){if(t)return;throw new Error('Rules manager: invalid rule name '+e)}this.__rules__[o].enabled=!1,n.push(e)},this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},function(e){'use strict';function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content='',this.markup='',this.info='',this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,o;if(!this.attrs)return-1;for(t=this.attrs,n=0,o=t.length;nn?this.attrPush(o):this.attrs[n]=o},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return 0<=t&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);0>n?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+' '+t},e.exports=t},function(e,t,n){var o=n(50);'string'==typeof o&&(o=[[e.i,o,'']]);var r={singleton:!0,hmr:!0},i;r.transform=i,r.insertInto=void 0;n(0)(o,r);o.locals&&(e.exports=o.locals),!1},function(e,t,n){var o=n(64);'string'==typeof o&&(o=[[e.i,o,'']]);var r={singleton:!0,hmr:!0},i;r.transform=i,r.insertInto=void 0;n(0)(o,r);o.locals&&(e.exports=o.locals),!1},function(e){e.exports=''},function(e){e.exports=''},function(e,t,n){'use strict';e.exports=n(111)},function(e,t,n){'use strict';e.exports.encode=n(112),e.exports.decode=n(113),e.exports.format=n(114),e.exports.parse=n(115)},function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(e){'use strict';var t=/^(?:<[A-Za-z][A-Za-z0-9\-]*(?:\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\s*=\s*(?:[^"'=<>`\x00-\x20]+|'[^']*'|"[^"]*"))?)*\s*\/?>|<\/[A-Za-z][A-Za-z0-9\-]*\s*>|||<[?].*?[?]>|]*>|)/,n=/^(?:<[A-Za-z][A-Za-z0-9\-]*(?:\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\s*=\s*(?:[^"'=<>`\x00-\x20]+|'[^']*'|"[^"]*"))?)*\s*\/?>|<\/[A-Za-z][A-Za-z0-9\-]*\s*>)/;e.exports.HTML_TAG_RE=t,e.exports.HTML_OPEN_CLOSE_TAG_RE=n},function(e){'use strict';e.exports.tokenize=function(e,t){var o=e.pos,r=e.src.charCodeAt(o),a,s,l,d,c;if(t)return!1;if(126!==r)return!1;if(s=e.scanDelims(e.pos,!0),d=s.length,c=n(r),2>d)return!1;for(d%2&&(l=e.push('text','',0),l.content=c,d--),a=0;an;n++)e+=t(65536*(1+Math.random())).toString(16).substring(1);return e}function l(e,t){return e[yc]&&e[yc][t]?e[yc][t].emitter:null}function d(e,t){e[xc]||(e[xc]=t||s())}function c(e){return e[xc]}function p(e){return e._events||Object.defineProperty(e,'_events',{value:{}}),e._events}function u(){return{callbacks:[],childEvents:[]}}function m(e,t){const n=p(e);if(n[t])return;let o=t,r=null;const i=[];for(;''!==o&&!n[o];)n[o]=u(),i.push(n[o]),r&&n[o].childEvents.push(r),r=o,o=o.substr(0,o.lastIndexOf(':'));if(''!==o){for(const e of i)e.callbacks=n[o].callbacks.slice();n[o].childEvents.push(r)}}function g(e,t){const n=p(e)[t];if(!n)return[];let o=[n.callbacks];for(let r=0;r{Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((n)=>{if(!(n in e.prototype)){const o=Object.getOwnPropertyDescriptor(t,n);o.enumerable=!1,Object.defineProperty(e.prototype,n,o)}})})}function k(e){var t=-1,n=e?e.length:0;for(this.clear();++te.add(t))}function B(e){return'string'==typeof e?[new Ku(e)]:(O(e)||(e=[e]),Array.from(e).map((e)=>'string'==typeof e?new Ku(e):e instanceof Ju?new Ku(e.data):e))}function z(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is('element','br'))return this.childCount;for(const t of e)if(!t.is('uiElement'))return null;return this.childCount}function q(e,t,n){if(!Rc(n))return!1;var o=typeof t;return!('number'==o?!(kp(n)&&Vp(t,n.length)):!('string'==o&&t in n))&&Tc(n[t],e)}function j(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function H(e){Rm in e||(Object.defineProperty(e,Rm,{value:new Map}),Object.defineProperty(e,Im,{value:new Map}),Object.defineProperty(e,Vm,{value:new Map}))}function W(...e){const t=K(...e),n=Array.from(this._bindings.keys()),o=n.length;if(!t.callback&&1{if(e.properties.length&&e.properties.length!==o)throw new bc('observable-bind-to-properties-length: The number of properties must match.');e.properties.length||(e.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),Y(this._observable,this._to),Z(this),this._bindProperties.forEach((e)=>{Q(this._observable,e)})}function U(e,t,n){if(1[e,t]);return Array.prototype.concat.apply([],n)}function $(e){return e.every((e)=>'string'==typeof e)}function K(...e){if(!e.length)throw new bc('observable-bind-to-parse-error: Invalid argument syntax in `to()`.');const t={to:[]};let n;return'function'==typeof e[e.length-1]&&(t.callback=e.pop()),e.forEach((e)=>{if('string'==typeof e)n.properties.push(e);else if('object'==typeof e)n={observable:e,properties:[]},t.to.push(n);else throw new bc('observable-bind-to-parse-error: Invalid argument syntax in `to()`.')}),t}function J(e,t,n,o){const r=e[Im],i=r.get(n),a=i||{};a[o]||(a[o]=new Set),a[o].add(t),i||r.set(n,a)}function Z(e){let t;e._bindings.forEach((n,o)=>{e._to.forEach((r)=>{t=r.properties[n.callback?0:e._bindProperties.indexOf(o)],n.to.push([r.observable,t]),J(e._observable,n,r.observable,t)})})}function Q(e,t){const n=e[Vm],o=n.get(t);let r;o.callback?r=o.callback.apply(e,o.to.map((e)=>e[0][e[1]])):(r=o.to[0],r=r[0][r[1]]),e.hasOwnProperty(t)?e[t]=r:e.set(t,r)}function Y(e,t){t.forEach((t)=>{const n=e[Im];let o;n.get(t.observable)||e.listenTo(t.observable,'change',(r,i)=>{o=n.get(t.observable)[i],o&&o.forEach((t)=>{Q(e,t.property)})})})}function X(e){return!!(e.item.is('attributeElement')||e.item.is('uiElement'))}function ee(e){let t=0;for(const n of e)t++;return t}function te(){if(ne(this))return null;let e=this.parent;for(;e&&e.is('attributeElement');){if(1!e.is('uiElement')).length}function oe(){return null}function re(e){let t;if('string'!=typeof e)t=e.keyCode+(e.altKey?tg.alt:0)+(e.ctrlKey?tg.ctrl:0)+(e.shiftKey?tg.shift:0);else if(t=tg[e.toLowerCase()],!t)throw new bc('keyboard-unknown-key: Unknown key name.',{key:e});return t}function ie(e){return'string'==typeof e&&(e=se(e)),e.map((e)=>'string'==typeof e?re(e):e).reduce((e,t)=>t+e,0)}function ae(e){return Ym.isMac?se(e).map((e)=>eg[e.toLowerCase()]||e).reduce((e,t)=>e.slice(-1)in Xm?e+t:e+'+'+t):e}function se(e){return e.split(/\s*\+\s*/)}function le(e){e.document.on('keydown',(t,n)=>ce(t,n,e.domConverter))}function de(){return null}function ce(e,t,n){if(t.keyCode==tg.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),o=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(o||t.shiftKey){const t=e.focusNode,r=e.focusOffset,i=n.domPositionToView(t,r);if(null===i)return;let a=!1;const s=i.getLastMatchingPosition((e)=>(e.item.is('uiElement')&&(a=!0),!!(e.item.is('uiElement')||e.item.is('attributeElement'))));if(a){const t=n.viewPositionToDom(s);o?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}function pe(e){return'string'==typeof e?[new Ku(e)]:(O(e)||(e=[e]),Array.from(e).map((e)=>'string'==typeof e?new Ku(e):e instanceof Ju?new Ku(e.data):e))}function ue(e){return Array.from(e.getChildren()).some((e)=>!e.is('uiElement'))}function me(e){let t=e.parent;for(;!we(t);){if(!t)return;t=t.parent}return t}function ge(e,t){if(e.priorityt.priority)&&e.getIdentity()t instanceof e))throw new bc('view-writer-insert-invalid-node');t.is('text')||ke(t.getChildren())}}function we(e){return e&&(e.is('containerElement')||e.is('documentFragment'))}function ve(e){const t=me(e.start),n=me(e.end);if(!t||!n||t!==n)throw new bc('view-writer-invalid-range-container')}function ye(e,t){return null===e.id&&null===t.id}function xe(e){return e instanceof Text&&e.data.substr(0,lg)===dg}function Ce(e){return e.data.length==lg&&xe(e)}function Ae(e){return xe(e)?e.data.slice(lg):e.data}function Te(e,t){let n=cg.get(t);return n||(n=t(window.document),cg.set(t,n)),e.isEqualNode(n)}function Ee(e){e.document.on('keydown',Pe)}function Pe(e,t){if(t.keyCode==tg.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;xe(t)&&n<=lg&&e.collapse(t,0)}}}function Se(e,t,o){function r(n){const r=(c[n-1]===void 0?-1:c[n-1])+1,p=c[n+1]===void 0?-1:c[n+1],u=r>p?-1:1;d[n+u]&&(d[n]=d[n+u].slice(0)),d[n]||(d[n]=[]),d[n].push(r>p?i:a);let m=rc(r,p),g=m-n;for(;gn;m--)c[m]=r(m);c[n]=r(n),u++}while(c[n]!==l);return d[n].slice(1)}function Oe(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Re(e){const t=e.parentNode;t&&t.removeChild(e)}function Ie(e){return'[object Text]'==Object.prototype.toString.call(e)}function Ve(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function Ne(e,t){if(e===t)return[];const n=De(e,t);return Me(t,n)}function De(e,t){const n=Le(e,t),o=Fe(e,n),r=Fe(t,n),i=Le(o,r),a=e.length-i,s=t.length-i;return{firstIndex:n,lastIndexOld:a,lastIndexNew:s}}function Le(e,t){for(let n=0;ne.hasAttribute('contenteditable'));return!t||'true'==t.getAttribute('contenteditable')}function ze(e,t){return Ve(e)&&Ve(t)&&!Ie(e)&&!Ie(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function qe(e,t,n){if(t===n)return!0;return Ie(t)&&Ie(n)?t.data===n.data:!!(Te(t,e)&&Te(n,e))}function je(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function He(e){const t=[];for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}function We(e,t){const n=He(e),o=He(t);let r=0;for(;n[r]==o[r]&&n[r];)r++;return 0==r?null:n[r-1]}function Ue(e,t,n){let o=He(e);return n&&(o=o.slice(o.indexOf(n)+1)),o.some((e)=>e.tagName&&t.includes(e.tagName.toLowerCase()))}function Ge(e,t){for(;e&&e!=ug.document;)t(e),e=e.parentNode}function $e(e){return'[object Window]'==Object.prototype.toString.apply(e)}function Ke(e){return e['data-ck-expando']||(e['data-ck-expando']=s())}function Je(e){var t=-1,n=e?e.length:0;for(this.__data__=new op;++t=t||0>n||h&&o>=k}function s(){var e=Hg();return a(e)?l(e):void(v=setTimeout(s,i(e)))}function l(e){return(clearTimeout(v),v=void 0,f&&b)?o(e):(b=_=void 0,w)}function d(){void 0!==v&&clearTimeout(v),u=m=0,b=_=v=void 0}function c(){return void 0===v?w:l(Hg())}function p(){var e=Hg(),n=a(e);if(b=arguments,_=this,u=e,n){if(void 0===v)return r(u);if(h)return clearTimeout(v),v=setTimeout(s,t),o(u)}return void 0===v&&(v=setTimeout(s,t)),w}var u=0,m=0,g=!1,h=!1,f=!0,b,_,k,w,v;if('function'!=typeof e)throw new TypeError(Wg);return t=cm(t)||0,Rc(n)&&(g=!!n.leading,h='maxWait'in n,k=h?Ug(cm(n.maxWait)||0,t):k,f='trailing'in n?!!n.trailing:f),p.cancel=d,p.flush=c,p}function Xe(e){return e==tg.arrowright||e==tg.arrowleft||e==tg.arrowup||e==tg.arrowdown}function et(e){return'[object Range]'==Object.prototype.toString.apply(e)}function tt(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function nt(e,t){for(const n of th)e[n]=t[n]}function rt(e){return!!mg(e)&&e===e.ownerDocument.body}function it({target:e,viewportOffset:t=0}){const n=ut(e);for(let o=n,r=null;o;){let i;i=o==n?mt(e):mt(r),st(i,()=>gt(e,o));const a=gt(e,o);if(at(o,a,t),o.parent==o)o=null;else if(r=o.frameElement,o=o.parent,!r)return}}function at(e,t,n){const o=t.clone().moveBy(0,n),r=t.clone().moveBy(0,-n),i=new eh(e).excludeScrollbarsAndBorders();if(![r,o].every((e)=>i.contains(e))){let{scrollX:a,scrollY:s}=e;dt(r,i)?s-=i.top-t.top+n:lt(o,i)&&(s+=t.bottom-i.bottom+n),ct(t,i)?a-=i.left-t.left+n:pt(t,i)&&(a+=t.right-i.right+n),e.scrollTo(a,s)}}function st(e,t){const n=ut(e);for(let o,r;e!=n.document.body;)r=t(),o=new eh(e).excludeScrollbarsAndBorders(),o.contains(r)||(dt(r,o)?e.scrollTop-=o.top-r.top:lt(r,o)&&(e.scrollTop+=r.bottom-o.bottom),ct(r,o)?e.scrollLeft-=o.left-r.left:pt(r,o)&&(e.scrollLeft+=r.right-o.right)),e=e.parentNode}function lt(e,t){return e.bottom>t.bottom}function dt(e,t){return e.topt.right}function ut(e){return et(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function mt(e){if(et(e)){let t=e.commonAncestorContainer;return Ie(t)&&(t=t.parentNode),t}return e.parentNode}function gt(e,t){const n=ut(e),o=new eh(e);if(n===t)return o;for(let r=n;r!=t;){const e=r.frameElement,t=new eh(e).excludeScrollbarsAndBorders();o.moveBy(t.left,t.top),r=r.parent}return o}function ht(e){return gc(e)?S(e):new Map(e)}function ft(e){return'string'==typeof e?[new rh(e)]:(O(e)||(e=[e]),Array.from(e).map((e)=>'string'==typeof e?new rh(e):e instanceof ih?new rh(e.data,e.getAttributes()):e))}function bt(e,t,n,o,r){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:o,length:r}}}function _t(e){const t=e.split(':');return 1{if(o.containsItem(e)){const t=n.toViewElement(e);return!!t.getCustomProperty('addHighlight')}});return!i}function wt(e,t){return!t.has(e)&&(t.add(e),e.document.model.schema.isBlock(e)&&e.parent)}function vt(e,t){const n=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),o=n.find((e)=>wt(e,t));return n.forEach((e)=>t.add(e)),o}function yt(){const e=new Set(['insert','move','remove','reinsert']);this.listenTo(this.root.document.model,'applyOperation',(t,n)=>{const o=n[0];!o.isDocumentOperation||e.has(o.type)&&xt.call(this,o)},{priority:'low'})}function xt(e){const t=e.type,n=e.delta.batch;let o,r;'insert'==t?o=ph.createFromPositionAndShift(e.position,e.nodes.maxOffset):(o=ph.createFromPositionAndShift(e.getMovedRangeStart(),e.howMany),r=e.sourcePosition);const i=o.end.offset-o.start.offset;let a=o.start;('move'==t||'remove'==t||'reinsert'==t)&&(a=a._getTransformedByInsertion(r,i));const s=this._getTransformedByDocumentChange(t,e.delta.type,a,i,r);('move'==t||'remove'==t||'reinsert'==t)&&3==s.length&&(s[2]=o);const l=ph.createFromRanges(s),d=!l.isEqual(this),c=this.containsPosition(a),p=r&&(this.containsPosition(r)||this.start.isEqual(r));if(d){const e=ph.createFromRange(this);this.start=l.start,this.end=l.end,this.fire('change:range',e,{type:t,batch:n,range:o,sourcePosition:r})}else(c||p)&&this.fire('change:content',ph.createFromRange(this),{type:t,batch:n,range:o,sourcePosition:r})}function Ct(e){return e instanceof ih||e instanceof rh?e.getAttributes():null}function At(e,t){const n=e.document.differ;for(const o of n.getChanges()){if('insert'!=o.type)continue;const n=o.position.parent,r=o.length===n.maxOffset;r&&e.enqueueChange(t,(e)=>{const t=Array.from(n.getAttributeKeys()).filter((e)=>e.startsWith(bh));for(const o of t)e.removeAttribute(o,n)})}}function Tt(e){return e=wh(e),e.view=St(e.view,'container'),(t)=>{t.on('insert:'+e.model,Vt(e.view),{priority:e.converterPriority||'normal'})}}function Et(e){e=wh(e);const t=e.model.key?e.model.key:e.model;let n='attribute:'+t;if(e.model.name&&(n+=':'+e.model.name),e.model.values)for(const t of e.model.values)e.view[t]=St(e.view[t],'attribute');else e.view=St(e.view,'attribute');const o=Rt(e);return(t)=>{t.on(n,Ft(o),{priority:e.converterPriority||'normal'})}}function Pt(e){e=wh(e);const t=e.model.key?e.model.key:e.model;let n='attribute:'+t;if(e.model.name&&(n+=':'+e.model.name),e.model.values)for(const t of e.model.values)e.view[t]=It(e.view[t]);else e.view=It(e.view);const o=Rt(e);return(t)=>{t.on(n,Lt(o),{priority:e.converterPriority||'normal'})}}function St(e,t){return'function'==typeof e?e:(n,o)=>Ot(e,o,t)}function Ot(e,t,n){'string'==typeof e&&(e={name:e});let o;const r=Object.assign({},e.attributes);if('container'==n)o=t.createContainerElement(e.name,r);else if('attribute'==n){const n={priority:e.priority||Km.DEFAULT_PRIORITY};o=t.createAttributeElement(e.name,r,n)}else o=t.createUIElement(e.name,r);if(e.styles){const n=Object.keys(e.styles);for(const r of n)t.setStyle(r,e.styles[r],o)}if(e.classes){const n=e.classes;if('string'==typeof n)t.addClass(n,o);else for(const e of n)t.addClass(e,o)}return o}function Rt(e){return e.model.values?(t,n)=>{const o=e.view[t];return o?o(t,n):null}:e.view}function It(e){return'string'==typeof e?(t)=>({key:e,value:t}):'object'==typeof e?e.value?()=>e:(t)=>({key:e.key,value:t}):e}function Vt(e){return(t,n,o)=>{const r=e(n.item,o.writer);if(r&&o.consumable.consume(n.item,'insert')){const e=o.mapper.toViewPosition(n.range.start);o.mapper.bindElements(n.item,r),o.writer.insert(e,r)}}}function Nt(){return(e,t,n)=>{if(n.consumable.consume(t.item,'insert')){const e=n.writer,o=n.mapper.toViewPosition(t.range.start),r=e.createText(t.item.data);e.insert(o,r)}}}function Dt(){return(e,t,n)=>{const o=n.mapper.toViewPosition(t.position),r=t.position.getShiftedBy(t.length),i=n.mapper.toViewPosition(r,{isPhantom:!0}),a=new jm(o,i),s=n.writer.remove(a.getTrimmed());for(const o of jm.createIn(s).getItems())n.mapper.unbindViewElement(o)}}function Lt(e){return e=e||((e,t)=>({value:e,key:t.attributeKey})),(t,n,o)=>{const r=e(n.attributeOldValue,n),i=e(n.attributeNewValue,n);if((r||i)&&o.consumable.consume(n.item,t.name)){const e=o.mapper.toViewElement(n.item),t=o.writer;if(null!==n.attributeOldValue&&r)if('class'==r.key){const n=Array.isArray(r.value)?r.value:[r.value];for(const o of n)t.removeClass(o,e)}else if('style'==r.key){const n=Object.keys(r.value);for(const o of n)t.removeStyle(o,e)}else t.removeAttribute(r.key,e);if(null!==n.attributeNewValue&&i)if('class'==i.key){const n=Array.isArray(i.value)?i.value:[i.value];for(const o of n)t.addClass(o,e)}else if('style'==i.key){const n=Object.keys(i.value);for(const o of n)t.setStyle(o,i.value[o],e)}else t.setAttribute(i.key,i.value,e)}}}function Ft(e){return(t,n,o)=>{const r=e(n.attributeOldValue,o.writer),i=e(n.attributeNewValue,o.writer);if((r||i)&&o.consumable.consume(n.item,t.name)){const e=o.writer,t=e.document.selection;if(n.item instanceof hh||n.item instanceof _h)e.wrap(t.getFirstRange(),i);else{let t=o.mapper.toViewRange(n.range);null!==n.attributeOldValue&&r&&(t=e.unwrap(t,r)),null!==n.attributeNewValue&&i&&e.wrap(t,i)}}}}function Mt(e,t){return(n,o)=>{const r=o.newSelection,i=new hh,a=[];for(const e of r.getRanges())a.push(t.toModelRange(e));i.setTo(a,{backward:r.isBackward}),i.isEqual(e.document.selection)||e.change((e)=>{e.setSelection(i)})}}function Bt(){return(e,t,n)=>{const o=t.selection;if(!o.isCollapsed&&n.consumable.consume(o,'selection')){const e=[];for(const t of o.getRanges()){const o=n.mapper.toViewRange(t);e.push(o)}n.writer.setSelection(e,{backward:o.isBackward})}}}function zt(){return(e,t,n)=>{const o=t.selection;if(o.isCollapsed&&n.consumable.consume(o,'selection')){const e=n.writer,t=o.getFirstPosition(),r=n.mapper.toViewPosition(t),i=e.breakAttributes(r);e.setSelection(i)}}}function qt(){return(e,t,n)=>{const o=n.writer,r=o.document.selection;for(const o of r.getRanges())o.isCollapsed&&o.end.parent.document&&n.writer.mergeAttributes(o.start);o.setSelection(null)}}function jt(e,t){const n=Wt();if(1===n&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]),0===n||!Ht(e,t))return t.replace(/ \[context: [^\]]+\]$/,'');const o=window.CKEDITOR_TRANSLATIONS[e];return o[t].replace(/ \[context: [^\]]+\]$/,'')}function Ht(e,t){return e in window.CKEDITOR_TRANSLATIONS&&t in window.CKEDITOR_TRANSLATIONS[e]}function Wt(){return Object.keys(window.CKEDITOR_TRANSLATIONS).length}function Ut(e,t){const n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return Yt(e,n),Xt(e,n,'allowIn'),Xt(e,n,'allowContentOf'),Xt(e,n,'allowWhere'),Xt(e,n,'allowAttributes'),Xt(e,n,'allowAttributesOf'),Xt(e,n,'inheritTypesFrom'),en(e,n),n}function Gt(e,t){for(const n of e[t].allowContentOf)if(e[n]){const o=tn(e,n);o.forEach((e)=>{e.allowIn.push(t)})}delete e[t].allowContentOf}function $t(e,t){for(const n of e[t].allowWhere){const o=e[n];if(o){const n=o.allowIn;e[t].allowIn.push(...n)}}delete e[t].allowWhere}function Kt(e,t){for(const n of e[t].allowAttributesOf){const o=e[n];if(o){const n=o.allowAttributes;e[t].allowAttributes.push(...n)}}delete e[t].allowAttributesOf}function Jt(e,t){const n=e[t];for(const o of n.inheritTypesFrom){const t=e[o];if(t){const e=Object.keys(t).filter((e)=>e.startsWith('is'));for(const o of e)o in n||(n[o]=t[o])}}delete n.inheritTypesFrom}function Zt(e,t){const n=e[t],o=n.allowIn.filter((t)=>e[t]);n.allowIn=Array.from(new Set(o))}function Qt(e,t){const n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Yt(e,t){for(const n of e){const e=Object.keys(n).filter((e)=>e.startsWith('is'));for(const o of e)t[o]=n[o]}}function Xt(e,t,n){for(const o of e)'string'==typeof o[n]?t[n].push(o[n]):Array.isArray(o[n])&&t[n].push(...o[n])}function en(e,t){for(const n of e){const e=n.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}function tn(e,t){const n=e[t];return nn(e).filter((e)=>e.allowIn.includes(n.name))}function nn(e){return Object.keys(e).map((t)=>e[t])}function on(e){return'string'==typeof e?{name:e,*getAttributeKeys(){},getAttribute(){}}:{name:e.is('element')?e.name:'$text',*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute(t){return e.getAttribute(t)}}}function*rn(e,t){for(let n=!1;!n;){if(n=!0,e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}}}function an(e,t){const n=new Set,o=new Map,r=ph.createIn(e).getItems();for(const o of r)'$marker'==o.name&&n.add(o);for(const r of n){const e=r.getAttribute('data-name'),n=ch.createBefore(r);o.has(e)?o.get(e).end=ch.createFromPosition(n):o.set(e,new ph(ch.createFromPosition(n))),t.remove(r)}return o}function sn(e,t){let n;for(const o of new Ph(e)){const e={};for(const t of o.getAttributeKeys())e[t]=o.getAttribute(t);const r=t.createElement(o.name,e);n&&t.append(r,n),n=ch.createAt(r)}return n}function ln(e){e=wh(e);const t=un(e),n=pn(e),o=n?'element:'+n:'element';return(n)=>{n.on(o,t,{priority:e.converterPriority||'normal'})}}function dn(e){e=wh(e),hn(e);const t=fn(e),n=pn(e),o=n?'element:'+n:'element';return(n)=>{n.on(o,t,{priority:e.converterPriority||'normal'})}}function cn(e){e=wh(e);let t=null;('string'==typeof e.view||e.view.key)&&(t=gn(e)),hn(e,t);const n=fn(e);return(t)=>{t.on('element',n,{priority:e.converterPriority||'low'})}}function pn(e){return'string'==typeof e.view?e.view:'object'==typeof e.view&&'string'==typeof e.view.name?e.view.name:null}function un(e){const t=new Zu(e.view);return(n,o,r)=>{const i=t.match(o.viewItem);if(i){i.match.name=!0;const t=mn(e.model,o.viewItem,r.writer);if(t&&r.consumable.test(o.viewItem,i.match)){const e=r.splitToAllowedParent(t,o.modelCursor);if(e){r.writer.insert(t,e.position);const n=r.convertChildren(o.viewItem,ch.createAt(t));r.consumable.consume(o.viewItem,i.match),o.modelRange=new ph(ch.createBefore(t),ch.createAfter(n.modelCursor.parent)),o.modelCursor=e.cursorParent?ch.createAt(e.cursorParent):o.modelRange.end}}}}}function mn(e,t,n){return e instanceof Function?e(t,n):n.createElement(e)}function gn(e){'string'==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let n;if('class'==t||'style'==t){const o='class'==t?'classes':'styles';n={[o]:e.view.value}}else{const o='undefined'==typeof e.view.value?/[\s\S]*/:e.view.value;n={attributes:{[t]:o}}}return e.view.name&&(n.name=e.view.name),e.view=n,t}function hn(e,t=null){const n='object'==typeof e.model?e.model.key:e.model,o='object'!=typeof e.model||'undefined'==typeof e.model.value?!(null!==t)||((e)=>e.getAttribute(t)):e.model.value;e.model={key:n,value:o}}function fn(e){const t=new Zu(e.view);return(n,o,r)=>{const i=t.match(o.viewItem);if(i){const t=e.model.key,n='function'==typeof e.model.value?e.model.value(o.viewItem):e.model.value;if(null!==n&&(bn(e)?i.match.name=!0:delete i.match.name,!!r.consumable.test(o.viewItem,i.match))){o.modelRange||(o=Object.assign(o,r.convertChildren(o.viewItem,o.modelCursor)));const e=_n(o.modelRange,{key:t,value:n},r);e&&r.consumable.consume(o.viewItem,i.match)}}}}function bn(e){return!!('object'!=typeof e.view||pn(e))&&!e.view.classes&&!e.view.attributes&&!e.view.styles}function _n(e,t,n){let o=!1;for(const r of Array.from(e.getItems()))n.schema.checkAttribute(r,t.key)&&(n.writer.setAttribute(t.key,t.value,r),o=!0);return o}function kn(){return(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:o}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=o}}}function wn(){return(e,t,n)=>{if(n.schema.checkChild(t.modelCursor,'$text')&&n.consumable.consume(t.viewItem)){const e=n.writer.createText(t.viewItem.data);n.writer.insert(e,t.modelCursor),t.modelRange=ph.createFromPositionAndShift(t.modelCursor,e.offsetSize),t.modelCursor=t.modelRange.end}}}function vn(e){const t=[],n=e.root.document;if(!n)return[];const o=ph.createIn(e);for(const r of n.model.markers){const e=o.getIntersection(r.getRange());e&&t.push([r.name,e])}return t}function yn(e,t){for(const n of e)t(n)}function*xn(e){if(e.model.values)for(const t of e.model.values){const n={key:e.model.key,value:t},o=e.view[t],r=e.upcastAlso?e.upcastAlso[t]:void 0;yield*Cn(n,o,r)}else yield*Cn(e.model,e.view,e.upcastAlso)}function*Cn(e,t,n){if(yield{model:e,view:t},n){n=Array.isArray(n)?n:[n];for(const t of n)yield{model:e,view:t}}}function An(e){return'string'==typeof e?[new rh(e)]:(O(e)||(e=[e]),Array.from(e).map((e)=>'string'==typeof e?new rh(e):e instanceof ih?new rh(e.data,e.getAttributes()):e))}function Tn(e,t){t=On(t);const n=t.reduce((e,t)=>e+t.offsetSize,0),o=e.parent;In(e);const r=e.index;return o._insertChild(r,t),Rn(o,r+t.length),Rn(o,r),new ph(e,e.getShiftedBy(n))}function En(e){if(!e.isFlat)throw new bc('operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.');const t=e.start.parent;In(e.start),In(e.end);const n=t._removeChildren(e.start.index,e.end.index-e.start.index);return Rn(t,e.start.index),n}function Pn(e,t){if(!e.isFlat)throw new bc('operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.');const n=En(e);return t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),Tn(t,n)}function Sn(e,t,n){In(e.start),In(e.end);for(const o of e.getItems()){const e=o.is('textProxy')?o.textNode:o;null===n?e._removeAttribute(t):e._setAttribute(t,n),Rn(e.parent,e.index)}Rn(e.end.parent,e.end.index)}function On(e){const t=[];e instanceof Array||(e=[e]);for(let n=0;ne+t.operations.length,0)}function $n(e,t){const n=e[e.length-1];let o=n.operations.length+n.baseVersion;const r=new Kh;for(let n=0;no&&(n.push(...'e'.repeat(i.offset-o).split('')),r+=i.offset-o),'insert'==i.type?(n.push(...'i'.repeat(i.howMany).split('')),o=i.offset+i.howMany):'remove'==i.type?(n.push(...'r'.repeat(i.howMany).split('')),o=i.offset,r+=i.howMany):(n.push(...'a'.repeat(i.howMany).split('')),o=i.offset+i.howMany,r+=i.howMany);return r{const o=n[0];!o.isDocumentOperation||e.has(o.type)&&vo.call(this,o)},{priority:'low'})}function vo(e){let t,n;'insert'==e.type?t=ph.createFromPositionAndShift(e.position,e.nodes.maxOffset):(t=ph.createFromPositionAndShift(e.getMovedRangeStart(),e.howMany),n=e.sourcePosition);const o=t.end.offset-t.start.offset;let r;switch(e.type){case'insert':const i='sticksToNext'==this.stickiness;r=this._getTransformedByInsertion(t.start,o,i);break;case'move':case'remove':case'reinsert':const a=ph.createFromPositionAndShift(n,o),s=a.containsPosition(this)||a.start.isEqual(this)&&'sticksToNext'==this.stickiness||a.end.isEqual(this)&&'sticksToPrevious'==this.stickiness;if(s)r=this._getCombined(n,t.start);else{const e='sticksToNext'==this.stickiness,i=t.start._getTransformedByInsertion(n,o);r=this._getTransformedByMove(n,i,o,e)}}if(!this.isEqual(r)){const e=ch.createFromPosition(this);this.path=r.path,this.root=r.root,this.fire('change',e)}}function yo(e,t,n){e.change((o)=>{n.isCollapsed||e.deleteContent(n);const r=new h_(e,o,n.anchor);let i;i=t.is('documentFragment')?t.getChildren():[t],r.handleNodes(i,{isFirst:!0,isLast:!0});const a=r.getSelectionRange();a?n instanceof _h?o.setSelection(a):n.setTo(a):Zg.warn('insertcontent-no-range: Cannot determine a proper selection range after insertion.')})}function xo(e,t,n={}){if(t.isCollapsed)return;const o=e.schema;e.change((e)=>{if(!n.doNotResetEntireContent&&So(o,t))return void Po(e,t,o);const r=t.getFirstRange(),i=r.start,a=g_.createFromPosition(r.end);r.start.isTouching(r.end)||e.remove(r),n.leaveUnmerged||(Co(e,i,a),o.removeDisallowedAttributes(i.parent.getChildren(),e)),t instanceof _h?e.setSelection(i):t.setTo(i),Ao(o,i)&&Eo(e,i,t),a.detach()})}function Co(e,t,n){const o=t.parent,r=n.parent;if(o!=r&&o.parent&&r.parent&&To(t,n,e.model.schema)){for(t=ch.createAfter(o),n=ch.createBefore(r),n.isEqual(t)||e.insert(r,t),e.merge(t);n.parent.isEmpty;){const t=n.parent;n=ch.createBefore(t),e.remove(t)}Co(e,t,n)}}function Ao(e,t){const n=e.checkChild(t,'$text'),o=e.checkChild(t,'paragraph');return!n&&o}function To(e,t,n){const o=new ph(e,t);for(const r of o.getWalker())if(n.isLimit(r.item))return!1;return!0}function Eo(e,t,n){const o=e.createElement('paragraph');e.insert(o,t),n instanceof _h?e.setSelection(o,0):n.setTo(o,0)}function Po(e,t){const n=e.model.schema.getLimitElement(t);e.remove(ph.createIn(n)),Eo(e,ch.createAt(n),t)}function So(e,t){const n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;const o=t.getFirstRange();return o.start.parent!=o.end.parent&&e.checkChild(n,'paragraph')}function Oo(e,t,n={}){const o=e.schema,r='backward'!=n.direction,i=n.unit?n.unit:'character',a=t.focus,s=new lh({boundaries:No(a,r),singleCharacters:!0,direction:r?'forward':'backward'}),l={walker:s,schema:o,isForward:r,unit:i};for(let o;o=s.next();){if(o.done)return;const n=Ro(l,o.value);if(n)return void(t instanceof _h?e.change((e)=>{e.setSelectionFocus(n)}):t.setFocus(n))}}function Ro(e,t){if('text'==t.type)return'word'===e.unit?Vo(e.walker,e.isForward):Io(e.walker,e.unit,e.isForward);if(t.type==(e.isForward?'elementStart':'elementEnd')){if(e.schema.isObject(t.item))return ch.createAt(t.item,e.isForward?'after':'before');if(e.schema.checkChild(t.nextPosition,'$text'))return t.nextPosition}else{if(e.schema.isLimit(t.item))return void e.walker.skip(()=>!0);if(e.schema.checkChild(t.nextPosition,'$text'))return t.nextPosition}}function Io(e,t){const n=e.position.textNode;if(n){const o=n.data;for(let r=e.position.offset-n.startOffset;bo(o,r)||'character'==t&&_o(o,r);)e.next(),r=e.position.offset-n.startOffset}return e.position}function Vo(e,t){let n=e.position.textNode;if(n)for(let o=e.position.offset-n.startOffset;!Do(n.data,o,t)&&!Lo(n,o,t);){e.next();const r=t?e.position.nodeAfter:e.position.nodeBefore;if(r){const o=r.data.charAt(t?0:r.data.length-1);f_.includes(o)||(e.next(),n=e.position.textNode)}o=e.position.offset-n.startOffset}return e.position}function No(e,t){const n=e.root,o=ch.createAt(n,t?'end':0);return t?new ph(e,o):new ph(o,e)}function Do(e,t,n){const o=t+(n?0:-1);return f_.includes(e.charAt(o))}function Lo(e,t,n){return t===(n?e.endOffset:0)}function Fo(e,t){return e.change((e)=>{const n=e.createDocumentFragment(),o=t.getFirstRange();if(!o||o.isCollapsed)return n;const r=o.start.root,i=o.start.getCommonPath(o.end),a=r.getNodeByPath(i);let s=o.start.parent==o.end.parent?o:ph.createFromParentsAndOffsets(a,o.start.path[i.length],a,o.end.path[i.length]+1);const l=s.end.offset-s.start.offset;for(const t of s.getItems({shallow:!0}))t.is('textProxy')?e.appendText(t.data,t.getAttributes(),n):e.append(t._clone(!0),n);if(s!=o){const t=o._getTransformedByMove(s.start,ch.createAt(n,0),l)[0],r=new ph(ch.createAt(n),t.start),i=new ph(t.end,ch.createAt(n,'end'));Mo(i,e),Mo(r,e)}return n})}function Mo(e,t){const n=[];Array.from(e.getItems({direction:'backward'})).map((e)=>ph.createOn(e)).filter((t)=>{const n=(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end));return n}).forEach((e)=>{n.push(e.start.parent),t.remove(e)}),n.forEach((e)=>{for(let n=e;n.parent&&n.isEmpty;){const e=ph.createOn(n);n=n.parent,t.remove(e)}})}function Bo(e){e.document.registerPostFixer((t)=>zo(t,e))}function zo(e,t){const n=t.document.selection,o=t.schema,r=[];let i=!1;for(const a of n.getRanges()){const e=qo(a,o);e?(r.push(e),i=!0):r.push(a)}if(i){const t=Uo(r);e.setSelection(t,{backward:n.isBackward})}}function qo(e,t){return e.isCollapsed?jo(e,t):Ho(e,t)}function jo(e,t){const n=e.start,o=t.getNearestSelectionRange(n);if(!o)return null;const r=o.start;return n.isEqual(r)?null:r.nodeAfter&&t.isLimit(r.nodeAfter)?new ph(r,ch.createAfter(r.nodeAfter)):new ph(r)}function Ho(e,t){if(e.isFlat)return null;const n=e.start,o=e.end,r=Wo(n,t,'start'),i=Wo(o,t,'end');return n.isEqual(r)&&o.isEqual(i)?null:new ph(r,i)}function Wo(e,t,n){let o=e.parent,r=o;for(;t.isLimit(r)&&r.parent;)o=r,r=r.parent;return o===r?e:'start'===n?ch.createBefore(o):ch.createAfter(o)}function Uo(e){const t=[];let n=e[0];t.push(n);for(const o of e)if(!o.isEqual(n)){if(o.isIntersecting(n)){const e=n.start.isBefore(o.start)?n.start:o.start,r=o.end.isAfter(n.end)?o.end:n.end,i=new ph(e,r);t.splice(t.indexOf(n),1,i),n=i;continue}n=o,t.push(o)}return t}function Go(e){return e.every((e)=>'string'==typeof e)}function $o(e){return!!e&&((e.value&&(e=e.value),Array.isArray(e))?e.some($o):!!(e instanceof E_))}function Ko(e,t){return e.map((e)=>e instanceof E_?e.getValue(t):e)}function Jo(e,t,{node:n}){let o=Ko(e,n);o=1==e.length&&e[0]instanceof S_?o[0]:o.reduce(ar,''),dr(o)?t.remove():t.set(o)}function Zo(e){return{set(t){e.textContent=t},remove(){e.textContent=''}}}function Qo(e,t,n){return{set(o){e.setAttributeNS(n,t,o)},remove(){e.removeAttributeNS(n,t)}}}function Yo(e,t){return{set(n){e.style[t]=n},remove(){e.style[t]=null}}}function Xo(e){const t=A_(e,(e)=>{if(e&&(e instanceof E_||pr(e)||cr(e)||ur(e)))return e});return t}function er(e){if('string'==typeof e?e=or(e):e.text&&rr(e),e.on&&(e.eventListeners=nr(e.on),delete e.on),!e.text){e.attributes&&tr(e.attributes);const t=[];if(e.children)if(ur(e.children))t.push(e.children);else for(const n of e.children)pr(n)||cr(n)||Ve(n)?t.push(n):t.push(new T_(n));e.children=t}return e}function tr(e){for(const t in e)e[t].value&&(e[t].value=[].concat(e[t].value)),ir(e,t)}function nr(e){for(const t in e)ir(e,t);return e}function or(e){return{text:[e]}}function rr(e){Array.isArray(e.text)||(e.text=[e.text])}function ir(e,t){Array.isArray(e[t])||(e[t]=[e[t]])}function ar(e,t){return dr(t)?e:dr(e)?t:`${e} ${t}`}function sr(e,t){for(const n in t)e[n]?e[n].push(...t[n]):e[n]=t[n]}function lr(e,t){if(t.attributes&&(!e.attributes&&(e.attributes={}),sr(e.attributes,t.attributes)),t.eventListeners&&(!e.eventListeners&&(e.eventListeners={}),sr(e.eventListeners,t.eventListeners)),t.text&&e.text.push(...t.text),t.children&&t.children.length){if(e.children.length!=t.children.length)throw new bc('ui-template-extend-children-mismatch: The number of children in extended definition does not match.');let n=0;for(const o of t.children)lr(e.children[n++],o)}}function dr(e){return!e&&0!==e}function cr(e){return e instanceof I_}function pr(e){return e instanceof T_}function ur(e){return e instanceof C_}function mr(){return{children:[],bindings:[],attributes:{}}}function gr(e){return'class'==e||'style'==e}function hr(e){for(;e&&'html'!=e.tagName.toLowerCase();){if('static'!=ug.window.getComputedStyle(e).position)return e;e=e.parentElement}return null}function fr({element:e,target:t,positions:n,limiter:o,fitInViewport:r}){Nc(t)&&(t=t()),Nc(o)&&(o=o());const i=hr(e.parentElement),a=new eh(e),s=new eh(t);let l,d;if(!o&&!r)[d,l]=br(n[0],s,a);else{const e=o&&new eh(o).getVisible(),t=r&&new eh(ug.window);[d,l]=_r(n,s,a,e,t)||br(n[0],s,a)}let{left:c,top:p}=kr(l);if(i){const e=kr(new eh(i)),t=tt(i);c-=e.left,p-=e.top,c+=i.scrollLeft,p+=i.scrollTop,c-=t.left,p-=t.top}return{left:c,top:p,name:d}}function br(e,t,n){const{left:o,top:r,name:i}=e(t,n);return[i,n.clone().moveTo(o,r)]}function _r(e,t,n,o,r){let i=0,a=0,s,l;const d=n.getArea();return e.some((e)=>{function c(){a=g,i=m,s=u,l=p}const[p,u]=br(e,t,n);let m,g;if(o)if(r){const e=o.getIntersection(r);m=e?e.getIntersectionArea(u):0}else m=o.getIntersectionArea(u);return r&&(g=r.getIntersectionArea(u)),r&&!o?g>a&&c():!r&&o?m>i&&c():g>a&&m>=i?c():g>=a&&m>i&&c(),m===d}),s?[l,s]:null}function kr({left:e,top:t}){const{scrollX:n,scrollY:o}=ug.window;return{left:e+n,top:t+o}}function wr(e){return(t)=>t+e}function vr(e){return mg(e)?e:et(e)?e.commonAncestorContainer:'function'==typeof e?vr(e()):null}function yr(e,t){return e.top-t.height-F_.arrowVerticalOffset}function xr(e){return e.bottom+F_.arrowVerticalOffset}function Cr(e){return!!(e.focus&&'none'!=ug.window.getComputedStyle(e.element).display)}function Ar(e){return e.bindTemplate.to((t)=>{t.target===e.element&&t.preventDefault()})}function Tr(e){return Array.isArray(e)?{items:e}:e?Object.assign({items:[]},e):{items:[]}}function Er(e){const t=F_.defaultPositions;return e?[t.northWestArrowSouth,t.northWestArrowSouthWest,t.northWestArrowSouthEast,t.southWestArrowNorth,t.southWestArrowNorthWest,t.southWestArrowNorthEast]:[t.southEastArrowNorth,t.southEastArrowNorthEast,t.southEastArrowNorthWest,t.northEastArrowSouth,t.northEastArrowSouthEast,t.northEastArrowSouthWest]}function Pr(e){return(e+'').toLowerCase()}function Sr({origin:e,originKeystrokeHandler:t,originFocusTracker:n,toolbar:o,beforeFocus:r,afterBlur:i}){n.add(o.element),t.set('Alt+F10',(e,t)=>{n.isFocused&&!o.focusTracker.isFocused&&(r&&r(),o.focus(),t())}),o.keystrokes.set('Esc',(t,n)=>{o.focusTracker.isFocused&&(e.focus(),i&&i(),n())})}function Or(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function Rr(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function Ir(e){if(!Nc(e.updateElement))throw new bc('attachtoform-missing-elementapi-interface: ElementApi interface is required.');const t=e.element;if(t&&'textarea'===t.tagName.toLowerCase()&&t.form){let n;const o=t.form,r=()=>e.updateElement();Nc(o.submit)&&(n=o.submit,o.submit=()=>{r(),n.apply(o)}),o.addEventListener('submit',r),e.on('destroy',()=>{o.removeEventListener('submit',r),n&&(o.submit=n)})}}function Vr(e){const t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((e)=>'file'===e.kind).map((e)=>e.getAsFile())}function Nr(e,t){const n=t.target.ownerDocument,o=t.clientX,r=t.clientY;let i;return n.caretRangeFromPoint&&n.caretRangeFromPoint(o,r)?i=n.caretRangeFromPoint(o,r):t.rangeParent&&(i=n.createRange(),i.setStart(t.rangeParent,t.rangeOffset),i.collapse(!0)),i?e.domConverter.domRangeToView(i):e.document.selection.getFirstRange()}function Dr(e){return e=e.replace(//g,'>').replace(/\n\n/g,'