(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["profile"],{"0010":function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return M})),n.d(t,"j",(function(){return T}));var r=n("0ac0"),i=n("304a"),o=n("5313");function a(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function s(e,t,n){var a=e.selection,s=a.$cursor;if(!s||(n?!n.endOfTextblock("backward",e):s.parentOffset>0))return!1;var l=u(s);if(!l){var d=s.blockRange(),f=d&&Object(r["k"])(d);return null!=f&&(t&&t(e.tr.lift(d,f).scrollIntoView()),!0)}var p=l.nodeBefore;if(!p.type.spec.isolating&&x(e,l,t))return!0;if(0==s.parent.content.size&&(c(p,"end")||o["NodeSelection"].isSelectable(p))){var h=Object(r["l"])(e.doc,s.before(),s.after(),i["Slice"].empty);if(h.slice.size<h.to-h.from){if(t){var m=e.tr.step(h);m.setSelection(c(p,"end")?o["Selection"].findFrom(m.doc.resolve(m.mapping.map(l.pos,-1)),-1):o["NodeSelection"].create(m.doc,l.pos-p.nodeSize)),t(m.scrollIntoView())}return!0}}return!(!p.isAtom||l.depth!=s.depth-1)&&(t&&t(e.tr.delete(l.pos-p.nodeSize,l.pos).scrollIntoView()),!0)}function c(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function l(e,t,n){var r=e.selection,i=r.$head,a=r.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=u(i)}var c=s&&s.nodeBefore;return!(!c||!o["NodeSelection"].isSelectable(c))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,s.pos-c.nodeSize)).scrollIntoView()),!0)}function u(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t,n){var a=e.selection,s=a.$cursor;if(!s||(n?!n.endOfTextblock("forward",e):s.parentOffset<s.parent.content.size))return!1;var l=p(s);if(!l)return!1;var u=l.nodeAfter;if(x(e,l,t))return!0;if(0==s.parent.content.size&&(c(u,"start")||o["NodeSelection"].isSelectable(u))){var d=Object(r["l"])(e.doc,s.before(),s.after(),i["Slice"].empty);if(d.slice.size<d.to-d.from){if(t){var f=e.tr.step(d);f.setSelection(c(u,"start")?o["Selection"].findFrom(f.doc.resolve(f.mapping.map(l.pos)),1):o["NodeSelection"].create(f.doc,f.mapping.map(l.pos))),t(f.scrollIntoView())}return!0}}return!(!u.isAtom||l.depth!=s.depth-1)&&(t&&t(e.tr.delete(l.pos,l.pos+u.nodeSize).scrollIntoView()),!0)}function f(e,t,n){var r=e.selection,i=r.$head,a=r.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;s=p(i)}var c=s&&s.nodeAfter;return!(!c||!o["NodeSelection"].isSelectable(c))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,s.pos)).scrollIntoView()),!0)}function p(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function h(e,t){var n=e.selection,r=n.$head,i=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(i))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function m(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t),r=n.type;if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function v(e,t){var n=e.selection,r=n.$head,i=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(i))return!1;var a=r.node(-1),s=r.indexAfter(-1),c=m(a.contentMatchAt(s));if(!a.canReplaceWith(s,s,c))return!1;if(t){var l=r.after(),u=e.tr.replaceWith(l,l,c.createAndFill());u.setSelection(o["Selection"].near(u.doc.resolve(l),1)),t(u.scrollIntoView())}return!0}function g(e,t){var n=e.selection,r=n.$from,i=n.$to;if(n instanceof o["AllSelection"]||r.parent.inlineContent||i.parent.inlineContent)return!1;var a=m(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){var s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,c=e.tr.insert(s,a.createAndFill());c.setSelection(o["TextSelection"].create(c.doc,s+1)),t(c.scrollIntoView())}return!0}function b(e,t){var n=e.selection,i=n.$cursor;if(!i||i.parent.content.size)return!1;if(i.depth>1&&i.after()!=i.end(-1)){var o=i.before();if(Object(r["g"])(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}var a=i.blockRange(),s=a&&Object(r["k"])(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}function y(e,t){var n=e.selection,i=n.$from,a=n.$to;if(e.selection instanceof o["NodeSelection"]&&e.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(e.doc,i.pos))&&(t&&t(e.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(t){var s=a.parentOffset==a.parent.content.size,c=e.tr;(e.selection instanceof o["TextSelection"]||e.selection instanceof o["AllSelection"])&&c.deleteSelection();var l=0==i.depth?null:m(i.node(-1).contentMatchAt(i.indexAfter(-1))),u=s&&l?[{type:l}]:null,d=Object(r["g"])(c.doc,c.mapping.map(i.pos),1,u);if(u||d||!Object(r["g"])(c.doc,c.mapping.map(i.pos),1,l&&[{type:l}])||(u=[{type:l}],d=!0),d&&(c.split(c.mapping.map(i.pos),1,u),!s&&!i.parentOffset&&i.parent.type!=l)){var f=c.mapping.map(i.before()),p=c.doc.resolve(f);i.node(-1).canReplaceWith(p.index(),p.index()+1,l)&&c.setNodeMarkup(c.mapping.map(i.before()),l)}t(c.scrollIntoView())}return!0}function w(e,t){return t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0}function k(e,t,n){var i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function x(e,t,n){var a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(k(e,t,n))return!0;var d=t.parent.canReplace(t.index(),t.index()+1);if(d&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){for(var f=t.pos+u.nodeSize,p=i["Fragment"].empty,h=a.length-1;h>=0;h--)p=i["Fragment"].from(a[h].create(null,p));p=i["Fragment"].from(l.copy(p));var m=e.tr.step(new r["b"](t.pos-1,f,t.pos,f,new i["Slice"](p,1,0),a.length,!0)),v=f+2*a.length;Object(r["f"])(m.doc,v)&&m.join(v),n(m.scrollIntoView())}return!0}var g=o["Selection"].findFrom(t,1),b=g&&g.$from.blockRange(g.$to),y=b&&Object(r["k"])(b);if(null!=y&&y>=t.depth)return n&&n(e.tr.lift(b,y).scrollIntoView()),!0;if(d&&c(u,"start",!0)&&c(l,"end")){for(var w=l,x=[];;){if(x.push(w),w.isTextblock)break;w=w.lastChild}for(var C=u,O=1;!C.isTextblock;C=C.firstChild)O++;if(w.canReplace(w.childCount,w.childCount,C.content)){if(n){for(var S=i["Fragment"].empty,T=x.length-1;T>=0;T--)S=i["Fragment"].from(x[T].copy(S));var E=e.tr.step(new r["b"](t.pos-x.length,t.pos+u.nodeSize,t.pos+O,t.pos+u.nodeSize-O,new i["Slice"](S,x.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function C(e){return function(t,n){var r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}var O=C(-1),S=C(1);function T(e,t){return function(n,i){var o=n.selection,a=o.$from,s=o.$to,c=a.blockRange(s),l=c&&Object(r["i"])(c,e,t);return!!l&&(i&&i(n.tr.wrap(c,l).scrollIntoView()),!0)}}function E(e,t){return function(n,r){var i=n.selection,o=i.from,a=i.to,s=!1;return n.doc.nodesBetween(o,a,(function(r,i){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var o=n.doc.resolve(i),a=o.index();s=o.parent.canReplaceWith(a,a+1,e)}})),!!s&&(r&&r(n.tr.setBlockType(o,a,e,t).scrollIntoView()),!0)}}function _(e,t,n){for(var r=function(r){var i=t[r],o=i.$from,a=i.$to,s=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,a.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},i=0;i<t.length;i++){var o=r(i);if(o)return o.v}return!1}function M(e,t){return function(n,r){var i=n.selection,o=i.empty,a=i.$cursor,s=i.ranges;if(o&&!a||!_(n.doc,s,e))return!1;if(r)if(a)e.isInSet(n.storedMarks||a.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{for(var c=!1,l=n.tr,u=0;!c&&u<s.length;u++){var d=s[u],f=d.$from,p=d.$to;c=n.doc.rangeHasMark(f.pos,p.pos,e)}for(var h=0;h<s.length;h++){var m=s[h],v=m.$from,g=m.$to;if(c)l.removeMark(v.pos,g.pos,e);else{var b=v.pos,y=g.pos,w=v.nodeAfter,k=g.nodeBefore,x=w&&w.isText?/^\s*/.exec(w.text)[0].length:0,C=k&&k.isText?/\s*$/.exec(k.text)[0].length:0;b+x<y&&(b+=x,y-=C),l.addMark(b,y,e.create(t))}}r(l.scrollIntoView())}return!0}}function I(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return function(t,n,r){for(var i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var j=I(a,s,l),D=I(a,d,f),N={Enter:I(h,g,b,y),"Mod-Enter":v,Backspace:j,"Mod-Backspace":j,"Shift-Backspace":j,Delete:D,"Mod-Delete":D,"Mod-a":w},A={"Ctrl-h":N["Backspace"],"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N["Delete"],"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":O,"Ctrl-e":S};for(var L in N)A[L]=N[L];N.Home=O,N.End=S;var P="undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform(),B=P?A:N},"0084":function(e,t,n){},"0172":function(e,t,n){},"0326":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"selector",(function(){return l}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"animation-horizontal-gradient"})},i=[],o=(n("f899"),n("2877")),a={},s=Object(o["a"])(a,r,i,!1,null,"761983c0",null),c=s.exports,l=function(e){return"horizontal-gradient"===e}},"03f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("99af");var r=function(e){return"custom"===e.linkType?"".concat(e.linkType,"_").concat(e.url):"banner"===e.linkType?"".concat(e.linkType,"_").concat(e.bannerId):"".concat(e.linkType,"_").concat(e.username)}},"046d":function(e,t,n){"use strict";n("4fa5")},"04fb":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("4de4"),n("c975"),n("b0c0");var r=n("78f9"),i=[{name:"about",label:Object(r["a"])("Bio"),type:"textarea",rowHeight:68,fieldMeta:{allowedForMember:!0,description:!0}},{name:"location",label:Object(r["a"])("Location"),fieldMeta:{allowedForMember:!0,caption:!0,icon:"sci-map-marker",location:!0}},{name:"publicPhone",label:Object(r["a"])("Phone number"),fieldMeta:{allowedForMember:!0,contact:!0,icon:"sci-phone-round",getUrl:function(e){return"tel:".concat(e)}}},{name:"publicEmail",label:Object(r["a"])("E-mail"),fieldMeta:{allowedForMember:!0,contact:!0,icon:"sci-email-round",regExp:/([^]+)/,getUrl:function(e){return"mailto:".concat(e)}}},{name:"publicMessagePhone",label:Object(r["a"])("Text SMS"),fieldMeta:{allowedForMember:!0,contact:!0,icon:"sci-text-sms",getUrl:function(e){return"sms:".concat(e)}}},{name:"facebook",label:"Facebook",appendIcon:"sci-color-facebook",fieldMeta:{social:!0,site:"https://facebook.com/",regExp:/(?:(?:https?:\/\/)?.*facebook\.com\/)?([^/?]+)/}},{name:"twitter",label:"x.com",appendIcon:"sci-color-x",fieldMeta:{social:!0,site:"https://twitter.com/",regExp:/(?:(?:https?:\/\/)?.*twitter\.com\/)?([^/?]+)/}},{name:"instagram",label:"Instagram",appendIcon:"sci-color-instagram",fieldMeta:{social:!0,site:"https://instagram.com/",regExp:/(?:(?:https?:\/\/)?.*instagram\.com\/|@?)?([^/?]+)/}},{name:"youtube",label:"YouTube",appendIcon:"sci-color-youtube",fieldMeta:{social:!0,site:"https://youtube.com/",regExp:/(?:(?:https?:\/\/)?.*youtube\.com\/)?([^*]+)/}},{name:"tiktok",label:"TikTok",appendIcon:"sci-color-tiktok",fieldMeta:{social:!0,site:"https://tiktok.com/@",regExp:/(?:(?:https?:\/\/)?.*tiktok\.com\/@)?([^/?]+)/}},{name:"snapchat",label:"Snapchat",appendIcon:"sci-color-snapchat",fieldMeta:{social:!0,site:"https://snapchat.com/add/",regExp:/(?:(?:https?:\/\/)?.*snapchat\.com\/add\/)?([^/?]+)/}},{name:"cashapp",label:"Cash App",appendIcon:"sci-color-cashapp",fieldMeta:{social:!0,site:"https://cash.me/",regExp:/(?:(?:https?:\/\/)?.*cash\.me\/)?([^/?]+)/}}],o=i,a=n("d70b"),s=function(){return o.filter((function(e){return-1===a["a"].questionaryHiddenField.indexOf(e.name)}))}},"0ac0":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return I})),n.d(t,"g",(function(){return M})),n.d(t,"h",(function(){return A})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return D})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return F}));var r=n("304a"),i=65535,o=Math.pow(2,16);function a(e,t){return e+t*o}function s(e){return e&i}function c(e){return(e-(e&i))/o}var l=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},u=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};u.prototype.recover=function(e){var t=0,n=s(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+c(e)},u.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},u.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},u.prototype._map=function(e,t,n){for(var r=0,i=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var c=this.ranges[s]-(this.inverted?r:0);if(c>e)break;var u=this.ranges[s+i],d=this.ranges[s+o],f=c+u;if(e<=f){var p=u?e==c?-1:e==f?1:t:t,h=c+r+(p<0?0:d);if(n)return h;var m=e==(t<0?c:f)?null:a(s/3,e-c);return new l(h,t<0?e!=c:e!=f,m)}r+=d-u}return n?e+r:new l(e+r)},u.prototype.touches=function(e,t){for(var n=0,r=s(t),i=this.inverted?2:1,o=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var c=this.ranges[a]-(this.inverted?n:0);if(c>e)break;var l=this.ranges[a+i],u=c+l;if(e<=u&&a==3*r)return!0;n+=this.ranges[a+o]-l}return!1},u.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,i=0;r<this.ranges.length;r+=3){var o=this.ranges[r],a=o-(this.inverted?i:0),s=o+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(a,a+c,s,s+l),i+=l-c}},u.prototype.invert=function(){return new u(this.ranges,!this.inverted)},u.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},u.offset=function(e){return 0==e?u.empty:new u(e<0?[0,-e,0]:[0,0,e])},u.empty=new u([]);var d=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function f(e){var t=Error.call(this,e);return t.__proto__=f.prototype,t}d.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new d(this.maps,this.mirror,e,t)},d.prototype.copy=function(){return new d(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},d.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},d.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}},d.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},d.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},d.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},d.prototype.invert=function(){var e=new d;return e.appendMappingInverted(this),e},d.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},d.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},d.prototype._map=function(e,t,n){for(var r=!1,i=this.from;i<this.to;i++){var o=this.maps[i],a=o.mapResult(e,t);if(null!=a.recover){var s=this.getMirror(i);if(null!=s&&s>i&&s<this.to){i=s,e=this.maps[s].recover(a.recover);continue}}a.deleted&&(r=!0),e=a.pos}return n?e:new l(e,r)},f.prototype=Object.create(Error.prototype),f.prototype.constructor=f,f.prototype.name="TransformError";var p=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new d},h={before:{configurable:!0},docChanged:{configurable:!0}};function m(){throw new Error("Override me")}h.before.get=function(){return this.docs.length?this.docs[0]:this.doc},p.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new f(t.failed);return this},p.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},h.docChanged.get=function(){return this.steps.length>0},p.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(p.prototype,h);var v=Object.create(null),g=function(){};g.prototype.apply=function(e){return m()},g.prototype.getMap=function(){return u.empty},g.prototype.invert=function(e){return m()},g.prototype.map=function(e){return m()},g.prototype.merge=function(e){return null},g.prototype.toJSON=function(){return m()},g.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=v[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},g.jsonID=function(e,t){if(e in v)throw new RangeError("Duplicate use of step JSON ID "+e);return v[e]=t,t.prototype.jsonID=e,t};var b=function(e,t){this.doc=e,this.failed=t};b.ok=function(e){return new b(e,null)},b.fail=function(e){return new b(null,e)},b.fromReplace=function(e,t,n,i){try{return b.ok(e.replace(t,n,i))}catch(o){if(o instanceof r["ReplaceError"])return b.fail(o.message);throw o}};var y=function(e){function t(t,n,r,i){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&k(e,this.from,this.to)?b.fail("Structure replace would overwrite content"):b.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new u([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?r["Slice"].empty:new r["Slice"](e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var i=this.slice.size+e.slice.size==0?r["Slice"].empty:new r["Slice"](this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),i,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,r["Slice"].fromJSON(e,n.slice),!!n.structure)},t}(g);g.jsonID("replace",y);var w=function(e){function t(t,n,r,i,o,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=a,this.structure=!!s}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(k(e,this.from,this.gapFrom)||k(e,this.gapTo,this.to)))return b.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return b.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?b.fromReplace(e,this.from,this.to,n):b.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new u([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deleted&&r.deleted||i<n.pos||o>r.pos?null:new t(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,r["Slice"].fromJSON(e,n.slice),n.insert,!!n.structure)},t}(g);function k(e,t,n){var r=e.resolve(t),i=n-t,o=r.depth;while(i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount)o--,i--;if(i>0){var a=r.node(o).maybeChild(r.indexAfter(o));while(i>0){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function x(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function C(e){for(var t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex),r=e.depth;;--r){var i=e.$from.node(r),o=e.$from.index(r),a=e.$to.indexAfter(r);if(r<e.depth&&i.canReplace(o,a,n))return r;if(0==r||i.type.spec.isolating||!x(i,o,a))break}}function O(e,t,n,r){void 0===r&&(r=e);var i=T(e,t),o=i&&E(r,t);return o?i.map(S).concat({type:t,attrs:n}).concat(o.map(S)):null}function S(e){return{type:e,attrs:null}}function T(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;var a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}function E(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;for(var s=a.length?a[a.length-1]:t,c=s.contentMatch,l=r;c&&l<i;l++)c=c.matchType(n.child(l).type);return c&&c.validEnd?a:null}function _(e,t,n){var r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function M(e,t,n,r){void 0===n&&(n=1);var i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(var s=i.depth-1,c=n-2;s>o;s--,c--){var l=i.node(s),u=i.index(s);if(l.type.spec.isolating)return!1;var d=l.content.cutByIndex(u,l.childCount),f=r&&r[c]||l;if(f!=l&&(d=d.replaceChild(0,f.type.create(f.attrs))),!l.canReplace(u+1,l.childCount)||!f.type.validContent(d))return!1}var p=i.indexAfter(o),h=r&&r[0];return i.node(o).canReplaceWith(p,p,h?h.type:i.node(o+1).type)}function I(e,t){var n=e.resolve(t),r=n.index();return j(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function j(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function D(e,t,n){void 0===n&&(n=-1);for(var r=e.resolve(t),i=r.depth;;i--){var o=void 0,a=void 0,s=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&j(o,a)&&r.node(i).canReplace(s,s+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function N(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var i=r.depth-1;i>=0;i--){var o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s<r.node(a).childCount)return null}}function A(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var i=n.content,o=0;o<n.openStart;o++)i=i.firstChild.content;for(var a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(var s=r.depth;s>=0;s--){var c=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(c>0?1:0),u=r.node(s),d=!1;if(1==a)d=u.canReplace(l,l,i);else{var f=u.contentMatchAt(l).findWrapping(i.firstChild.type);d=f&&u.canReplaceWith(l,l,f[0])}if(d)return 0==c?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function L(e,t,n){for(var i=[],o=0;o<e.childCount;o++){var a=e.child(o);a.content.size&&(a=a.copy(L(a.content,t,a))),a.isInline&&(a=t(a,n,o)),i.push(a)}return r["Fragment"].fromArray(i)}g.jsonID("replaceAround",w),p.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,o=e.depth,a=n.before(o+1),s=i.after(o+1),c=a,l=s,u=r["Fragment"].empty,d=0,f=o,p=!1;f>t;f--)p||n.index(f)>0?(p=!0,u=r["Fragment"].from(n.node(f).copy(u)),d++):c--;for(var h=r["Fragment"].empty,m=0,v=o,g=!1;v>t;v--)g||i.after(v+1)<i.end(v)?(g=!0,h=r["Fragment"].from(i.node(v).copy(h)),m++):l++;return this.step(new w(c,l,a,s,new r["Slice"](u.append(h),d,m),u.size-d,!0))},p.prototype.wrap=function(e,t){for(var n=r["Fragment"].empty,i=t.length-1;i>=0;i--){if(n.size){var o=t[i].type.contentMatch.matchFragment(n);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=r["Fragment"].from(t[i].type.create(t[i].attrs,n))}var a=e.start,s=e.end;return this.step(new w(a,s,a,s,new r["Slice"](n,0,0),t.length,!0))},p.prototype.setBlockType=function(e,t,n,i){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var a=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,i)&&_(o.doc,o.mapping.slice(a).map(t),n)){o.clearIncompatible(o.mapping.slice(a).map(t,1),n);var s=o.mapping.slice(a),c=s.map(t,1),l=s.map(t+e.nodeSize,1);return o.step(new w(c,l,c+1,l-1,new r["Slice"](r["Fragment"].from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},p.prototype.setNodeMarkup=function(e,t,n,i){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var a=t.create(n,null,i||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,a);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new w(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new r["Slice"](r["Fragment"].from(a),0,0),1,!0))},p.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),o=r["Fragment"].empty,a=r["Fragment"].empty,s=i.depth,c=i.depth-t,l=t-1;s>c;s--,l--){o=r["Fragment"].from(i.node(s).copy(o));var u=n&&n[l];a=r["Fragment"].from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}return this.step(new y(e,e,new r["Slice"](o.append(a),t,t),!0))},p.prototype.join=function(e,t){void 0===t&&(t=1);var n=new y(e-t,e+t,r["Slice"].empty,!0);return this.step(n)};var P=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=e.resolve(this.from),o=i.node(i.sharedDepth(this.to)),a=new r["Slice"](L(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),o),n.openStart,n.openEnd);return b.fromReplace(e,this.from,this.to,a)},t.prototype.invert=function(){return new B(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(g);g.jsonID("addMark",P);var B=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=new r["Slice"](L(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return b.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new P(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(g);function F(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=r["Slice"].empty),t==n&&!i.size)return null;var o=e.resolve(t),a=e.resolve(n);return R(o,a,i)?new y(t,n,i):new q(o,a,i).fit()}function R(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}g.jsonID("removeMark",B),p.prototype.addMark=function(e,t,n){var r=this,i=[],o=[],a=null,s=null;return this.doc.nodesBetween(e,t,(function(r,c,l){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&l.type.allowsMarkType(n.type)){for(var d=Math.max(c,e),f=Math.min(c+r.nodeSize,t),p=n.addToSet(u),h=0;h<u.length;h++)u[h].isInSet(p)||(a&&a.to==d&&a.mark.eq(u[h])?a.to=f:i.push(a=new B(d,f,u[h])));s&&s.to==d?s.to=f:o.push(s=new P(d,f,n))}}})),i.forEach((function(e){return r.step(e)})),o.forEach((function(e){return r.step(e)})),this},p.prototype.removeMark=function(e,t,n){var i=this;void 0===n&&(n=null);var o=[],a=0;return this.doc.nodesBetween(e,t,(function(i,s){if(i.isInline){a++;var c=null;if(n instanceof r["MarkType"]){var l,u=i.marks;while(l=n.isInSet(u))(c||(c=[])).push(l),u=l.removeFromSet(u)}else n?n.isInSet(i.marks)&&(c=[n]):c=i.marks;if(c&&c.length)for(var d=Math.min(s+i.nodeSize,t),f=0;f<c.length;f++){for(var p=c[f],h=void 0,m=0;m<o.length;m++){var v=o[m];v.step==a-1&&p.eq(o[m].style)&&(h=v)}h?(h.to=d,h.step=a):o.push({style:p,from:Math.max(s,e),to:d,step:a})}}})),o.forEach((function(e){return i.step(new B(e.from,e.to,e.style))})),this},p.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),o=[],a=e+1,s=0;s<i.childCount;s++){var c=i.child(s),l=a+c.nodeSize,u=n.matchType(c.type,c.attrs);if(u){n=u;for(var d=0;d<c.marks.length;d++)t.allowsMarkType(c.marks[d].type)||this.step(new B(a,l,c.marks[d]))}else o.push(new y(a,l,r["Slice"].empty));a=l}if(!n.validEnd){var f=n.fillBefore(r["Fragment"].empty,!0);this.replace(a,a,new r["Slice"](f,0,0))}for(var p=o.length-1;p>=0;p--)this.step(o[p]);return this},p.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=r["Slice"].empty);var i=F(this.doc,e,t,n);return i&&this.step(i),this},p.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new r["Slice"](r["Fragment"].from(n),0,0))},p.prototype.delete=function(e,t){return this.replace(e,t,r["Slice"].empty)},p.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var q=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}this.placed=r["Fragment"].empty;for(var a=e.depth;a>0;a--)this.placed=r["Fragment"].from(e.node(a).copy(this.placed))},H={depth:{configurable:!0}};function U(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(U(e.firstChild.content,t-1,n)))}function V(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(V(e.lastChild.content,t-1,n)))}function z(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function $(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,$(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(r["Fragment"].empty,!0)))),e.copy(i)}function W(e,t,n,r,i){var o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;var s=r.fillBefore(o.content,!0,a);return s&&!G(n,o.content,a)?s:null}function G(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function K(e,t,n,i,o){if(t<n){var a=e.firstChild;e=e.replaceChild(0,a.copy(K(a.content,t+1,n,i,a)))}if(t>i){var s=o.contentMatchAt(0),c=s.fillBefore(e).append(e);e=c.append(s.matchFragment(c).fillBefore(r["Fragment"].empty,!0))}return e}function J(e,t){for(var n=[],r=Math.min(e.depth,t.depth),i=r;i>=0;i--){var o=e.start(i);if(o<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}H.depth.get=function(){return this.frontier.length-1},q.prototype.fit=function(){while(this.unplaced.size){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(t<0?this.$to:i.doc.resolve(t));if(!o)return null;var a=this.placed,s=i.depth,c=o.depth;while(s&&c&&1==a.childCount)a=a.firstChild.content,s--,c--;var l=new r["Slice"](a,s,c);return t>-1?new w(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new y(i.pos,o.pos,l):void 0},q.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--){var n=void 0,i=void 0;t?(i=z(this.unplaced.content,t-1).firstChild,n=i.content):n=this.unplaced.content;for(var o=n.firstChild,a=this.depth;a>=0;a--){var s=this.frontier[a],c=s.type,l=s.match,u=void 0,d=void 0;if(1==e&&(o?l.matchType(o.type)||(d=l.fillBefore(r["Fragment"].from(o),!1)):c.compatibleContent(i.type)))return{sliceDepth:t,frontierDepth:a,parent:i,inject:d};if(2==e&&o&&(u=l.findWrapping(o.type)))return{sliceDepth:t,frontierDepth:a,parent:i,wrap:u};if(i&&l.matchType(i.type))break}}},q.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,o=z(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new r["Slice"](t,n+1,Math.max(i,o.size+n>=t.size-i?n+1:0)),!0)},q.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,o=z(t,n);if(o.childCount<=1&&n>0){var a=t.size-n<=n+o.size;this.unplaced=new r["Slice"](U(t,n-1,1),n-1,a?n-1:i)}else this.unplaced=new r["Slice"](U(t,n,1),n,i)},q.prototype.placeNodes=function(e){var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,o=e.inject,a=e.wrap;while(this.depth>n)this.closeFrontierNode();if(a)for(var s=0;s<a.length;s++)this.openFrontierNode(a[s]);var c=this.unplaced,l=i?i.content:c.content,u=c.openStart-t,d=0,f=[],p=this.frontier[n],h=p.match,m=p.type;if(o){for(var v=0;v<o.childCount;v++)f.push(o.child(v));h=h.matchFragment(o)}var g=l.size+t-(c.content.size-c.openEnd);while(d<l.childCount){var b=l.child(d),y=h.matchType(b.type);if(!y)break;d++,(d>1||0==u||b.content.size)&&(h=y,f.push($(b.mark(m.allowedMarks(b.marks)),1==d?u:0,d==l.childCount?g:-1)))}var w=d==l.childCount;w||(g=-1),this.placed=V(this.placed,n,r["Fragment"].from(f)),this.frontier[n].match=h,w&&g<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var k=0,x=l;k<g;k++){var C=x.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),x=C.content}this.unplaced=w?0==t?r["Slice"].empty:new r["Slice"](U(c.content,t-1,1),t-1,g<0?c.openEnd:t-1):new r["Slice"](U(c.content,t,d),c.openStart,c.openEnd)},q.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!W(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;var n=this.$to,r=n.depth,i=this.$to.after(r);while(r>1&&i==this.$to.end(--r))++i;return i},q.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,i=n.type,o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=W(e,t,i,r,o);if(a){for(var s=t-1;s>=0;s--){var c=this.frontier[s],l=c.match,u=c.type,d=W(e,s,u,l,!0);if(!d||d.childCount)continue e}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}},q.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=V(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e},q.prototype.openFrontierNode=function(e,t,n){var i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=V(this.placed,this.depth,r["Fragment"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},q.prototype.closeFrontierNode=function(){var e=this.frontier.pop(),t=e.match.fillBefore(r["Fragment"].empty,!0);t.childCount&&(this.placed=V(this.placed,this.frontier.length,t))},Object.defineProperties(q.prototype,H),p.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var i=this.doc.resolve(e),o=this.doc.resolve(t);if(R(i,o,n))return this.step(new y(e,t,n));var a=J(i,this.doc.resolve(t));0==a[a.length-1]&&a.pop();var s=-(i.depth+1);a.unshift(s);for(var c=i.depth,l=i.pos-1;c>0;c--,l--){var u=i.node(c).type.spec;if(u.defining||u.isolating)break;a.indexOf(c)>-1?s=c:i.before(c)==l&&a.splice(1,0,-c)}for(var d=a.indexOf(s),f=[],p=n.openStart,h=n.content,m=0;;m++){var v=h.firstChild;if(f.push(v),m==n.openStart)break;h=v.content}p>0&&f[p-1].type.spec.defining&&i.node(d).type!=f[p-1].type?p-=1:p>=2&&f[p-1].isTextblock&&f[p-2].type.spec.defining&&i.node(d).type!=f[p-2].type&&(p-=2);for(var g=n.openStart;g>=0;g--){var b=(g+p+1)%(n.openStart+1),w=f[b];if(w)for(var k=0;k<a.length;k++){var x=a[(k+d)%a.length],C=!0;x<0&&(C=!1,x=-x);var O=i.node(x-1),S=i.index(x-1);if(O.canReplaceWith(S,S,w.type,w.marks))return this.replace(i.before(x),C?o.after(x):t,new r["Slice"](K(n.content,0,n.openStart,b),b,n.openEnd))}}for(var T=this.steps.length,E=a.length-1;E>=0;E--){if(this.replace(e,t,n),this.steps.length>T)break;var _=a[E];_<0||(e=i.before(_),t=o.after(_))}return this},p.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=N(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new r["Slice"](r["Fragment"].from(n),0,0))},p.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),i=J(n,r),o=0;o<i.length;o++){var a=i[o],s=o==i.length-1;if(s&&0==a||n.node(a).type.contentMatch.validEnd)return this.delete(n.start(a),r.end(a));if(a>0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var c=1;c<=n.depth&&c<=r.depth;c++)if(e-n.start(c)==n.depth-c&&t>n.end(c)&&r.end(c)-t!=r.depth-c)return this.delete(n.before(c),t);return this.delete(e,t)}},"0b61":function(e,t,n){"use strict";n("9ba4")},"0ccb":function(e,t,n){var r=n("50c4"),i=n("577e"),o=n("1148"),a=n("1d80"),s=Math.ceil,c=function(e){return function(t,n,c){var l,u,d=i(a(t)),f=d.length,p=void 0===c?" ":i(c),h=r(n);return h<=f||""==p?d:(l=h-f,u=o.call(p,s(l/p.length)),u.length>l&&(u=u.slice(0,l)),e?d+u:u+d)}};e.exports={start:c(!1),end:c(!0)}},"0d07":function(e,t,n){"use strict";n("0084")},"0d4a":function(e,t,n){},"0d93":function(e,t,n){"use strict";n("8ab4")},"0de2":function(e,t,n){},"0e03":function(e,t,n){"use strict";n("63ef")},"0e5c":function(e,t,n){},"11c8":function(e,t,n){"use strict";n("b751")},"11e1":function(e,t,n){"use strict";n("b943")},1486:function(e,t,n){"use strict";n("8408")},"18b5":function(e,t,n){"use strict";n("25e0")},"1a02":function(e,t,n){"use strict";n("d9c4")},"1bec":function(e,t,n){"use strict";n("6183")},"1ffc":function(e,t,n){"use strict";n("6966")},"204c":function(e,t,n){},"213d":function(e,t,n){},"216e":function(e,t,n){"use strict";n("2f5c")},2217:function(e,t,n){"use strict";n("a64f")},"25d4":function(e,t,n){"use strict";n("4d70")},"25d7":function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));n("7db0"),n("ac1f"),n("5319");var r=n("5530"),i=(n("96cf"),n("1da1")),o=n("a34a"),a=n.n(o),s=n("a6f4"),c=n("b1ec"),l=n("ff07"),u={date:(new Date).toISOString(),eventTitle:"",generalBackgroundColor:Object(c["b"])("--palette-fg").replace("#",""),generalTextColor:Object(c["b"])("--palette-bg").replace("#",""),eventText:"",eventUrl:"",buttonBackgroundColor:Object(c["b"])("--palette-primary").replace("#",""),buttonTextColor:Object(c["b"])("--palette-bg").replace("#",""),showOnProfilePage:!1},d=function(e){var t;return JSON.parse(null!==(t=e.timer)&&void 0!==t?t:"{}")};t["a"]=function(e){var t=Object(s["o"])(u),n=Object(s["o"])(!1),o=function(){var o=Object(i["a"])(a.a.mark((function i(){var o;return a.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,e.value){i.next=3;break}return i.abrupt("return");case 3:return n.value=!0,i.next=6,l["a"].QuestionaryInfoProvider.find({id:e.value.id});case 6:o=i.sent,t.value=d(o.fields),t.value=Object(r["a"])(Object(r["a"])({},u),t.value);case 9:return i.prev=9,n.value=!1,i.finish(9);case 12:case"end":return i.stop()}}),i,null,[[0,,9,12]])})));return function(){return o.apply(this,arguments)}}(),c=function(){var n=Object(i["a"])(a.a.mark((function n(r){var i;return a.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.value=r,n.next=3,l["a"].QuestionaryInfoProvider.update({data:{fields:{userId:null===(i=e.value)||void 0===i?void 0:i.id,timer:JSON.stringify(t.value)}}});case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return{loading:n,timerSettings:t,getTimerSettings:o,updateTimerSettings:c}}},"25e0":function(e,t,n){},2722:function(e,t,n){"use strict";n("a627")},"27fb":function(e,t,n){"use strict";n("6ce0")},29097:function(e,t,n){},"2b40":function(e,t,n){},"2b87":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return et})),n.d(t,"selector",(function(){return tt}));var r,i,o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Buttons")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):[n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput}}),n("div",{staticClass:"mt-4 caption"},[e._v(e._s(e.$t("Drag and drop to reorder buttons")))]),n("base-draggable",{staticClass:"mt-6",attrs:{list:e.profileButtons,"handle-selector":".handle-selector"},on:{update:e.save}},e._l(e.userLinksFields,(function(t,r){return n("div",{key:t.name,staticClass:"edit-form-buttons__link-item my-3"},[n("base-icon",{staticClass:"mr-3 edit-form-buttons__link-handle-icon handle-selector",attrs:{"font-size":"24"}},[e._v(" sci-two-h-lines ")]),n("div",{staticClass:"edit-form-buttons__link-content",class:{__hidden:t.hidden},on:{click:function(t){return e.handleLinkInputClick(r)}}},["banner"===t.linkType?n("div",[n("base-image",{staticClass:"edit-form-buttons__banner-image",attrs:{src:e.bannerImages[t.bannerId]||""}})],1):[n("div",{staticClass:"truncate-ellipsis subtitle-1"},[e._v(" "+e._s("accordion"===t.linkType?e.$t("Accordion"):t.label)+" ")]),n("div",{staticClass:"edit-form-buttons__body truncate-ellipsis body-2"},[e._v(" "+e._s("accordion"===t.linkType?t.label:t.value)+" ")])]],2),n("router-link",{staticClass:"edit-form-buttons__link-bar-icon ml-4",class:{__hidden:e.isHaveLinkStats(t.linkType)},attrs:{to:{name:"linkAnalytics",params:{linkId:t.linkAnalyticsId}}}},[n("base-icon",{attrs:{"font-size":"24"}},[e._v("sci-bar")])],1),n("base-icon",{staticClass:"edit-form-buttons__link-delete-icon ml-4",attrs:{"font-size":"24"},on:{click:function(t){return e.removeLink(r)}}},[e._v("sci-basket")]),n("base-switch",{staticClass:"ml-4",attrs:{value:!t.hidden},on:{input:function(n){return e.handleHiddenInput(t,r,!n)}}})],1)})),0),n("base-button",{staticClass:"edit-form-buttons__add-link-button mt-4",attrs:{gray:"","full-width":""},on:{click:function(t){e.showAddLinkModal=!0}}},[n("base-icon",[e._v("sci-plus")]),e._v(" "+e._s(e.$t("Add link"))+" ")],1),n("base-button",{staticClass:"edit-form-buttons__add-accordion-button mt-4",attrs:{gray:"","full-width":""},on:{click:function(t){e.showAddAccordionModal=!0}}},[n("base-icon",[e._v("sci-plus")]),e._v(" "+e._s(e.$t("Add accordion"))+" ")],1),n("base-button",{staticClass:"edit-form-buttons__add-playlist-button mt-4",attrs:{gray:"","full-width":""},on:{click:function(t){e.showAddPlaylistModal=!0}}},[n("base-icon",[e._v("sci-plus")]),e._v(" "+e._s(e.$t("Add playlist"))+" ")],1),n("base-button",{staticClass:"edit-form-buttons__add-banner-button mt-4",attrs:{gray:"","full-width":""},on:{click:function(t){e.showAddBannerModal=!0}}},[n("base-icon",[e._v("sci-plus")]),e._v(" "+e._s(e.$t("Add banner"))+" ")],1)]],2),e.showAddLinkModal?n("add-link-modal",{attrs:{initialValues:e.initialButtonValues,lastImageId:e.lastImageId,files:e.files,show:e.showAddLinkModal},on:{close:e.onAddButtonClose,onAddButton:e.onAddButton,onModifyButton:e.onModifyButton,uploadImage:e.uploadImage,deleteImage:e.deleteImage}}):e._e(),e.showAddAccordionModal?n("add-accordion-modal",{attrs:{initialValues:e.initialButtonValues,lastImageId:e.lastImageId,files:e.files,show:e.showAddAccordionModal},on:{close:e.onAddButtonClose,onAddButton:e.onAddButton,onModifyButton:e.onModifyButton,uploadImage:e.uploadImage,deleteImage:e.deleteImage}}):e._e(),e.showAddPlaylistModal?n("add-playlist-modal",{attrs:{show:e.showAddPlaylistModal,initialValues:e.initialButtonValues,lastImageId:e.lastImageId,files:e.files},on:{close:e.onAddButtonClose,onAddButton:e.onAddButton,onModifyButton:e.onModifyButton,uploadImage:function(t){return e.uploadImage(t)},deleteImage:function(t){return e.deleteImage(t)}}}):e._e(),e.showAddBannerModal?n("add-banner-modal",{attrs:{show:e.showAddBannerModal,userId:e.user.id,banner:e.editBanner},on:{onAddBanner:e.onAddBanner,onModifyBanner:e.onModifyBanner,close:e.onAddButtonClose}}):e._e()],1)},a=[],s=(n("a4d3"),n("e01a"),n("7db0"),n("c740"),n("caad"),n("d81d"),n("13d5"),n("a434"),n("d3b7"),n("2532"),n("3ca3"),n("ddb0"),n("96cf"),n("1da1")),c=n("5530"),l=n("a34a"),u=n.n(l),d=n("2b0e"),f=n("a6f4"),p=n("2ef0"),h=n("d822"),m=n("a5de"),v=n("c3b0"),g=n("427f"),b=n("dfc7"),y=n("03f6"),w=n("78f9"),k=n("fe95"),x=n("ff07"),C=(n("4160"),n("159b"),n("b76a")),O=n.n(C),S=d["default"].extend({functional:!0,name:"BaseDraggable",render:function(e,t){var n=void 0===t.props.isDraggable||t.props.isDraggable,r=void 0!==t.props.tag?t.props.tag:"div",i=t.scopedSlots.default&&t.scopedSlots.default({});if(!n)return e(r,t.data,i);var o=Object(c["a"])(Object(c["a"])({},t.data),{},{attrs:{delay:200,delayOnTouchOnly:!0,supportPointer:!1,disabled:!!t.props.dragDisabled,tag:r,ghostClass:"draggableGhost",handle:t.props.handleSelector,list:t.props.list},on:{update:function(e){var n=e.oldIndex,r=e.newIndex,i=t.listeners.update;i&&(Array.isArray(i)?i.forEach((function(e){return e({oldIndex:n,newIndex:r})})):i({oldIndex:n,newIndex:r}))}}});return e(O.a,o,i)}}),T=S,E=(n("fc53"),n("2877")),_=Object(E["a"])(T,r,i,!1,null,null,null),M=_.exports,I=n("ab58"),j=n("9310"),D=n("b736"),N=n("1031"),A=n("0fb2"),L=n("93c4"),P=n("9058"),B=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{staticClass:"add-link-modal",attrs:{value:e.show,modal:""}},[n("div",{staticClass:"add-link-modal__body"},[n("page-title",{on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.$t("Add link to profile"))+" ")]),n("base-form",{attrs:{fields:e.fields},on:{validation:function(t){return e.validCommon=t},setManualValidate:function(t){e.manualValidation=t}},scopedSlots:e._u([{key:"colors",fn:function(){return[n("div",{staticClass:"add-link-modal__color-pickers d-flex"},[n("input-color-picker",{staticClass:"add-link-modal__input-color-picker __background",attrs:{name:"linkBackgroundColor",color:e.values["backgroundColor"],label:e.$t("Button color")},on:{colorChanged:function(t){return e.setValue("backgroundColor",t)},validation:function(t){return e.validBackground=t}}}),n("input-color-picker",{staticClass:"add-link-modal__input-color-picker __text",attrs:{name:"linkTextColor",color:e.values["textColor"],label:e.$t("Text color")},on:{colorChanged:function(t){return e.setValue("textColor",t)},validation:function(t){return e.validText=t}}})],1),n("base-toggle",{staticClass:"add-link-modal__toggle-icon-type mt-6",attrs:{items:e.tabs,"current-item-index":e.currentTabIndex},on:{select:function(t){return e.currentTabIndex=t}}}),"icon"===e.tabs[e.currentTabIndex].name?[n("fa-icon-select",{staticClass:"mb-3 mt-6",on:{input:e.deleteImage},model:{value:e.values["icon"],callback:function(t){e.$set(e.values,"icon",t)},expression:"values['icon']"}})]:e._e(),"png"===e.tabs[e.currentTabIndex].name?[n("input-button-image",{staticClass:"add-link-modal__image",attrs:{"image-src":e.imageSrc,"loading-image":e.loadingImage,"background-color":"#"+e.values["backgroundColor"]},on:{update:e.uploadImage,delete:e.deleteImage}})]:e._e()]},proxy:!0}]),model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),e.values["linkType"]?n("div",{staticClass:"add-link-modal__button-wrapper mt-10 pb-4"},[n("base-button",{staticClass:"add-link-modal__add-link-button",attrs:{"full-width":""},on:{click:e.onSubmitLink}},[e._v(" "+e._s(e.isEditing?e.$t("Save link"):e.$t("Add link"))+" ")])],1):e._e()],1)])},F=[],R=(n("99af"),n("fb6a"),n("a9e3"),n("b64b"),n("ade3")),q=n("2909"),H=n("d3ac"),U=n("c03c"),V=n("bc3d"),z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.items.length>0?n("div",{staticClass:"base-toggle caption pa-1"},e._l(e.items,(function(t,r){return n("div",{key:r,staticClass:"base-toggle__item d-center",class:e.activeItemIndex===r&&"__active",on:{click:function(t){e.activeItemIndex=r}}},[e._v(" "+e._s(t.title)+" ")])})),0):e._e()},$=[],W=Object(f["c"])({name:"BaseToggle",props:{items:{type:Array,required:!0},currentItemIndex:{type:Number,default:0}},setup:function(e,t){var n=t.emit,r=Object(f["o"])(e.currentItemIndex);return Object(f["s"])(r,(function(e,t){e!==t&&n("select",e)})),{activeItemIndex:r}}}),G=W,K=(n("2217"),Object(E["a"])(G,z,$,!1,null,"e847c484",null)),J=K.exports,Y=n("70b0"),X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"selectRef",staticClass:"fa-icon-select"},[n("base-input",{attrs:{label:e.$t("Icon"),value:e.searchString,"prepend-icon":e.value?e.value:"sci-search","prepend-icon-color":"var(--palette-primary)","append-icon":e.searchString.length>0?"sci-cross":void 0},on:{input:e.handleInput,"click:appendIcon":e.handleClearClick},scopedSlots:e._u([{key:"input",fn:function(t){var r=t.classes,i=t.on,o=t.props;return[n("input",e._g(e._b({class:r},"input",o,!1),Object.assign({},i,{focus:e.handleFocus})))]}}])}),e.showDropdown?n("div",{staticClass:"fa-icon-select__dropdown",class:{__loading:e.loading}},[e.loading?n("div",{staticClass:"d-center pa-1"},[n("base-spinner",{attrs:{size:"32px"}})],1):e._l(e.icons,(function(t){return n("base-icon",{key:t,staticClass:"fa-icon-select__dropdown-icon",on:{click:function(n){return e.handleIconClick(t)}}},[e._v(e._s(t))])}))],2):e._e()],1)},Q=[],Z=(n("ac1f"),n("841c"),n("4de4"),n("498a"),[["fas","ad"],["fas","cloud-rain"],["fas","grin-stars"],["fas","network-wired"],["fas","spider"],["fas","address-book"],["fas","cloud-showers-heavy"],["fas","grin-tears"],["fas","neuter"],["fas","spinner"],["fas","address-card"],["fas","cloud-sun-rain"],["fas","grin-tongue-squint"],["fas","newspaper"],["fas","splotch"],["fas","adjust"],["fas","cloud-sun"],["fas","grin-tongue-wink"],["fas","not-equal"],["fas","spray-can"],["fas","air-freshener"],["fas","cloud-upload-alt"],["fas","grin-tongue"],["fas","notes-medical"],["fas","square-full"],["fas","align-center"],["fas","cloud"],["fas","grin-wink"],["fas","object-group"],["fas","square-root-alt"],["fas","align-justify"],["fas","cocktail"],["fas","grin"],["fas","object-ungroup"],["fas","square"],["fas","align-left"],["fas","code-branch"],["fas","grip-horizontal"],["fas","oil-can"],["fas","stamp"],["fas","align-right"],["fas","code"],["fas","grip-lines-vertical"],["fas","om"],["fas","star-and-crescent"],["fas","allergies"],["fas","coffee"],["fas","grip-lines"],["fas","otter"],["fas","star-half-alt"],["fas","ambulance"],["fas","cog"],["fas","grip-vertical"],["fas","outdent"],["fas","star-half"],["fas","american-sign-language-interpreting"],["fas","cogs"],["fas","guitar"],["fas","pager"],["fas","star-of-david"],["fas","anchor"],["fas","coins"],["fas","h-square"],["fas","paint-brush"],["fas","star-of-life"],["fas","angle-double-down"],["fas","columns"],["fas","hamburger"],["fas","paint-roller"],["fas","star"],["fas","angle-double-left"],["fas","comment-alt"],["fas","hammer"],["fas","palette"],["fas","step-backward"],["fas","angle-double-right"],["fas","comment-dollar"],["fas","hamsa"],["fas","pallet"],["fas","step-forward"],["fas","angle-double-up"],["fas","comment-dots"],["fas","hand-holding-heart"],["fas","paper-plane"],["fas","stethoscope"],["fas","angle-down"],["fas","comment-medical"],["fas","hand-holding-medical"],["fas","paperclip"],["fas","sticky-note"],["fas","angle-left"],["fas","comment-slash"],["fas","hand-holding-usd"],["fas","parachute-box"],["fas","stop-circle"],["fas","angle-right"],["fas","comment"],["fas","hand-holding-water"],["fas","paragraph"],["fas","stop"],["fas","angle-up"],["fas","comments-dollar"],["fas","hand-holding"],["fas","parking"],["fas","stopwatch-20"],["fas","angry"],["fas","comments"],["fas","hand-lizard"],["fas","passport"],["fas","stopwatch"],["fas","ankh"],["fas","compact-disc"],["fas","hand-middle-finger"],["fas","pastafarianism"],["fas","store-alt-slash"],["fas","apple-alt"],["fas","compass"],["fas","hand-paper"],["fas","paste"],["fas","store-alt"],["fas","archive"],["fas","compress-alt"],["fas","hand-peace"],["fas","pause-circle"],["fas","store-slash"],["fas","archway"],["fas","compress-arrows-alt"],["fas","hand-point-down"],["fas","pause"],["fas","store"],["fas","arrow-alt-circle-down"],["fas","compress"],["fas","hand-point-left"],["fas","paw"],["fas","stream"],["fas","arrow-alt-circle-left"],["fas","concierge-bell"],["fas","hand-point-right"],["fas","peace"],["fas","street-view"],["fas","arrow-alt-circle-right"],["fas","cookie-bite"],["fas","hand-point-up"],["fas","pen-alt"],["fas","strikethrough"],["fas","arrow-alt-circle-up"],["fas","cookie"],["fas","hand-pointer"],["fas","pen-fancy"],["fas","stroopwafel"],["fas","arrow-circle-down"],["fas","copy"],["fas","hand-rock"],["fas","pen-nib"],["fas","subscript"],["fas","arrow-circle-left"],["fas","copyright"],["fas","hand-scissors"],["fas","pen-square"],["fas","subway"],["fas","arrow-circle-right"],["fas","couch"],["fas","hand-sparkles"],["fas","pen"],["fas","suitcase-rolling"],["fas","arrow-circle-up"],["fas","credit-card"],["fas","hand-spock"],["fas","pencil-alt"],["fas","suitcase"],["fas","arrow-down"],["fas","crop-alt"],["fas","hands-helping"],["fas","pencil-ruler"],["fas","sun"],["fas","arrow-left"],["fas","crop"],["fas","hands-wash"],["fas","people-arrows"],["fas","superscript"],["fas","arrow-right"],["fas","cross"],["fas","hands"],["fas","people-carry"],["fas","surprise"],["fas","arrow-up"],["fas","crosshairs"],["fas","handshake-alt-slash"],["fas","pepper-hot"],["fas","swatchbook"],["fas","arrows-alt-h"],["fas","crow"],["fas","handshake-slash"],["fas","percent"],["fas","swimmer"],["fas","arrows-alt-v"],["fas","crown"],["fas","handshake"],["fas","percentage"],["fas","swimming-pool"],["fas","arrows-alt"],["fas","crutch"],["fas","hanukiah"],["fas","person-booth"],["fas","synagogue"],["fas","assistive-listening-systems"],["fas","cube"],["fas","hard-hat"],["fas","phone-alt"],["fas","sync-alt"],["fas","asterisk"],["fas","cubes"],["fas","hashtag"],["fas","phone-slash"],["fas","sync"],["fas","at"],["fas","cut"],["fas","hat-cowboy-side"],["fas","phone-square-alt"],["fas","syringe"],["fas","atlas"],["fas","database"],["fas","hat-cowboy"],["fas","phone-square"],["fas","table-tennis"],["fas","atom"],["fas","deaf"],["fas","hat-wizard"],["fas","phone-volume"],["fas","table"],["fas","audio-description"],["fas","democrat"],["fas","hdd"],["fas","phone"],["fas","tablet-alt"],["fas","award"],["fas","desktop"],["fas","head-side-cough-slash"],["fas","photo-video"],["fas","tablet"],["fas","baby-carriage"],["fas","dharmachakra"],["fas","head-side-cough"],["fas","piggy-bank"],["fas","tablets"],["fas","baby"],["fas","diagnoses"],["fas","head-side-mask"],["fas","pills"],["fas","tachometer-alt"],["fas","backspace"],["fas","dice-d20"],["fas","head-side-virus"],["fas","pizza-slice"],["fas","tag"],["fas","backward"],["fas","dice-d6"],["fas","heading"],["fas","place-of-worship"],["fas","tags"],["fas","bacon"],["fas","dice-five"],["fas","headphones-alt"],["fas","plane-arrival"],["fas","tape"],["fas","bacteria"],["fas","dice-four"],["fas","headphones"],["fas","plane-departure"],["fas","tasks"],["fas","bacterium"],["fas","dice-one"],["fas","headset"],["fas","plane-slash"],["fas","taxi"],["fas","bahai"],["fas","dice-six"],["fas","heart-broken"],["fas","plane"],["fas","teeth-open"],["fas","balance-scale-left"],["fas","dice-three"],["fas","heart"],["fas","play-circle"],["fas","teeth"],["fas","balance-scale-right"],["fas","dice-two"],["fas","heartbeat"],["fas","play"],["fas","temperature-high"],["fas","balance-scale"],["fas","dice"],["fas","helicopter"],["fas","plug"],["fas","temperature-low"],["fas","ban"],["fas","digital-tachograph"],["fas","highlighter"],["fas","plus-circle"],["fas","tenge"],["fas","band-aid"],["fas","directions"],["fas","hiking"],["fas","plus-square"],["fas","terminal"],["fas","barcode"],["fas","disease"],["fas","hippo"],["fas","plus"],["fas","text-height"],["fas","bars"],["fas","divide"],["fas","history"],["fas","podcast"],["fas","text-width"],["fas","baseball-ball"],["fas","dizzy"],["fas","hockey-puck"],["fas","poll-h"],["fas","th-large"],["fas","basketball-ball"],["fas","dna"],["fas","holly-berry"],["fas","poll"],["fas","th-list"],["fas","bath"],["fas","dog"],["fas","home"],["fas","poo-storm"],["fas","th"],["fas","battery-empty"],["fas","dollar-sign"],["fas","horse-head"],["fas","poo"],["fas","theater-masks"],["fas","battery-full"],["fas","dolly-flatbed"],["fas","horse"],["fas","poop"],["fas","thermometer-empty"],["fas","battery-half"],["fas","dolly"],["fas","hospital-alt"],["fas","portrait"],["fas","thermometer-full"],["fas","battery-quarter"],["fas","donate"],["fas","hospital-symbol"],["fas","pound-sign"],["fas","thermometer-half"],["fas","battery-three-quarters"],["fas","door-closed"],["fas","hospital-user"],["fas","power-off"],["fas","thermometer-quarter"],["fas","bed"],["fas","door-open"],["fas","hospital"],["fas","pray"],["fas","thermometer-three-quarters"],["fas","beer"],["fas","dot-circle"],["fas","hot-tub"],["fas","praying-hands"],["fas","thermometer"],["fas","bell-slash"],["fas","dove"],["fas","hotdog"],["fas","prescription-bottle-alt"],["fas","thumbs-down"],["fas","bell"],["fas","download"],["fas","hotel"],["fas","prescription-bottle"],["fas","thumbs-up"],["fas","bezier-curve"],["fas","drafting-compass"],["fas","hourglass-end"],["fas","prescription"],["fas","thumbtack"],["fas","bible"],["fas","dragon"],["fas","hourglass-half"],["fas","print"],["fas","ticket-alt"],["fas","bicycle"],["fas","draw-polygon"],["fas","hourglass-start"],["fas","procedures"],["fas","times-circle"],["fas","biking"],["fas","drum-steelpan"],["fas","hourglass"],["fas","project-diagram"],["fas","times"],["fas","binoculars"],["fas","drum"],["fas","house-damage"],["fas","pump-medical"],["fas","tint-slash"],["fas","biohazard"],["fas","drumstick-bite"],["fas","house-user"],["fas","pump-soap"],["fas","tint"],["fas","birthday-cake"],["fas","dumbbell"],["fas","hryvnia"],["fas","puzzle-piece"],["fas","tired"],["fas","blender-phone"],["fas","dumpster-fire"],["fas","i-cursor"],["fas","qrcode"],["fas","toggle-off"],["fas","blender"],["fas","dumpster"],["fas","ice-cream"],["fas","question-circle"],["fas","toggle-on"],["fas","blind"],["fas","dungeon"],["fas","icicles"],["fas","question"],["fas","toilet-paper-slash"],["fas","blog"],["fas","edit"],["fas","icons"],["fas","quidditch"],["fas","toilet-paper"],["fas","bold"],["fas","egg"],["fas","id-badge"],["fas","quote-left"],["fas","toilet"],["fas","bolt"],["fas","eject"],["fas","id-card-alt"],["fas","quote-right"],["fas","toolbox"],["fas","bomb"],["fas","ellipsis-h"],["fas","id-card"],["fas","quran"],["fas","tools"],["fas","bone"],["fas","ellipsis-v"],["fas","igloo"],["fas","radiation-alt"],["fas","tooth"],["fas","bong"],["fas","envelope-open-text"],["fas","image"],["fas","radiation"],["fas","torah"],["fas","book-dead"],["fas","envelope-open"],["fas","images"],["fas","rainbow"],["fas","torii-gate"],["fas","book-medical"],["fas","envelope-square"],["fas","inbox"],["fas","random"],["fas","tractor"],["fas","book-open"],["fas","envelope"],["fas","indent"],["fas","receipt"],["fas","trademark"],["fas","book-reader"],["fas","equals"],["fas","industry"],["fas","record-vinyl"],["fas","traffic-light"],["fas","book"],["fas","eraser"],["fas","infinity"],["fas","recycle"],["fas","trailer"],["fas","bookmark"],["fas","ethernet"],["fas","info-circle"],["fas","redo-alt"],["fas","train"],["fas","border-all"],["fas","euro-sign"],["fas","info"],["fas","redo"],["fas","tram"],["fas","border-none"],["fas","exchange-alt"],["fas","italic"],["fas","registered"],["fas","transgender-alt"],["fas","border-style"],["fas","exclamation-circle"],["fas","jedi"],["fas","remove-format"],["fas","transgender"],["fas","bowling-ball"],["fas","exclamation-triangle"],["fas","joint"],["fas","reply-all"],["fas","trash-alt"],["fas","box-open"],["fas","exclamation"],["fas","journal-whills"],["fas","reply"],["fas","trash-restore-alt"],["fas","box-tissue"],["fas","expand-alt"],["fas","kaaba"],["fas","republican"],["fas","trash-restore"],["fas","box"],["fas","expand-arrows-alt"],["fas","key"],["fas","restroom"],["fas","trash"],["fas","boxes"],["fas","expand"],["fas","keyboard"],["fas","retweet"],["fas","tree"],["fas","braille"],["fas","external-link-alt"],["fas","khanda"],["fas","ribbon"],["fas","trophy"],["fas","brain"],["fas","external-link-square-alt"],["fas","kiss-beam"],["fas","ring"],["fas","truck-loading"],["fas","bread-slice"],["fas","eye-dropper"],["fas","kiss-wink-heart"],["fas","road"],["fas","truck-monster"],["fas","briefcase-medical"],["fas","eye-slash"],["fas","kiss"],["fas","robot"],["fas","truck-moving"],["fas","briefcase"],["fas","eye"],["fas","kiwi-bird"],["fas","rocket"],["fas","truck-pickup"],["fas","broadcast-tower"],["fas","fan"],["fas","landmark"],["fas","route"],["fas","truck"],["fas","broom"],["fas","fast-backward"],["fas","language"],["fas","rss-square"],["fas","tshirt"],["fas","brush"],["fas","fast-forward"],["fas","laptop-code"],["fas","rss"],["fas","tty"],["fas","bug"],["fas","faucet"],["fas","laptop-house"],["fas","ruble-sign"],["fas","tv"],["fas","building"],["fas","fax"],["fas","laptop-medical"],["fas","ruler-combined"],["fas","umbrella-beach"],["fas","bullhorn"],["fas","feather-alt"],["fas","laptop"],["fas","ruler-horizontal"],["fas","umbrella"],["fas","bullseye"],["fas","feather"],["fas","laugh-beam"],["fas","ruler-vertical"],["fas","underline"],["fas","burn"],["fas","female"],["fas","laugh-squint"],["fas","ruler"],["fas","undo-alt"],["fas","bus-alt"],["fas","fighter-jet"],["fas","laugh-wink"],["fas","running"],["fas","undo"],["fas","bus"],["fas","file-alt"],["fas","laugh"],["fas","rupee-sign"],["fas","universal-access"],["fas","business-time"],["fas","file-archive"],["fas","layer-group"],["fas","sad-cry"],["fas","university"],["fas","calculator"],["fas","file-audio"],["fas","leaf"],["fas","sad-tear"],["fas","unlink"],["fas","calendar-alt"],["fas","file-code"],["fas","lemon"],["fas","satellite-dish"],["fas","unlock-alt"],["fas","calendar-check"],["fas","file-contract"],["fas","less-than-equal"],["fas","satellite"],["fas","unlock"],["fas","calendar-day"],["fas","file-csv"],["fas","less-than"],["fas","save"],["fas","upload"],["fas","calendar-minus"],["fas","file-download"],["fas","level-down-alt"],["fas","school"],["fas","user-alt-slash"],["fas","calendar-plus"],["fas","file-excel"],["fas","level-up-alt"],["fas","screwdriver"],["fas","user-alt"],["fas","calendar-times"],["fas","file-export"],["fas","life-ring"],["fas","scroll"],["fas","user-astronaut"],["fas","calendar-week"],["fas","file-image"],["fas","lightbulb"],["fas","sd-card"],["fas","user-check"],["fas","calendar"],["fas","file-import"],["fas","link"],["fas","search-dollar"],["fas","user-circle"],["fas","camera-retro"],["fas","file-invoice-dollar"],["fas","lira-sign"],["fas","search-location"],["fas","user-clock"],["fas","camera"],["fas","file-invoice"],["fas","list-alt"],["fas","search-minus"],["fas","user-cog"],["fas","campground"],["fas","file-medical-alt"],["fas","list-ol"],["fas","search-plus"],["fas","user-edit"],["fas","candy-cane"],["fas","file-medical"],["fas","list-ul"],["fas","search"],["fas","user-friends"],["fas","cannabis"],["fas","file-pdf"],["fas","list"],["fas","seedling"],["fas","user-graduate"],["fas","capsules"],["fas","file-powerpoint"],["fas","location-arrow"],["fas","server"],["fas","user-injured"],["fas","car-alt"],["fas","file-prescription"],["fas","lock-open"],["fas","shapes"],["fas","user-lock"],["fas","car-battery"],["fas","file-signature"],["fas","lock"],["fas","share-alt-square"],["fas","user-md"],["fas","car-crash"],["fas","file-upload"],["fas","long-arrow-alt-down"],["fas","share-alt"],["fas","user-minus"],["fas","car-side"],["fas","file-video"],["fas","long-arrow-alt-left"],["fas","share-square"],["fas","user-ninja"],["fas","car"],["fas","file-word"],["fas","long-arrow-alt-right"],["fas","share"],["fas","user-nurse"],["fas","caravan"],["fas","file"],["fas","long-arrow-alt-up"],["fas","shekel-sign"],["fas","user-plus"],["fas","caret-down"],["fas","fill-drip"],["fas","low-vision"],["fas","shield-alt"],["fas","user-secret"],["fas","caret-left"],["fas","fill"],["fas","luggage-cart"],["fas","shield-virus"],["fas","user-shield"],["fas","caret-right"],["fas","film"],["fas","lungs-virus"],["fas","ship"],["fas","user-slash"],["fas","caret-square-down"],["fas","filter"],["fas","lungs"],["fas","shipping-fast"],["fas","user-tag"],["fas","caret-square-left"],["fas","fingerprint"],["fas","magic"],["fas","shoe-prints"],["fas","user-tie"],["fas","caret-square-right"],["fas","fire-alt"],["fas","magnet"],["fas","shopping-bag"],["fas","user-times"],["fas","caret-square-up"],["fas","fire-extinguisher"],["fas","mail-bulk"],["fas","shopping-basket"],["fas","user"],["fas","caret-up"],["fas","fire"],["fas","male"],["fas","shopping-cart"],["fas","users-cog"],["fas","carrot"],["fas","first-aid"],["fas","map-marked-alt"],["fas","shower"],["fas","users-slash"],["fas","cart-arrow-down"],["fas","fish"],["fas","map-marked"],["fas","shuttle-van"],["fas","users"],["fas","cart-plus"],["fas","fist-raised"],["fas","map-marker-alt"],["fas","sign-in-alt"],["fas","utensil-spoon"],["fas","cash-register"],["fas","flag-checkered"],["fas","map-marker"],["fas","sign-language"],["fas","utensils"],["fas","cat"],["fas","flag-usa"],["fas","map-pin"],["fas","sign-out-alt"],["fas","vector-square"],["fas","certificate"],["fas","flag"],["fas","map-signs"],["fas","sign"],["fas","venus-double"],["fas","chair"],["fas","flask"],["fas","map"],["fas","signal"],["fas","venus-mars"],["fas","chalkboard-teacher"],["fas","flushed"],["fas","marker"],["fas","signature"],["fas","venus"],["fas","chalkboard"],["fas","folder-minus"],["fas","mars-double"],["fas","sim-card"],["fas","vest-patches"],["fas","charging-station"],["fas","folder-open"],["fas","mars-stroke-h"],["fas","sink"],["fas","vest"],["fas","chart-area"],["fas","folder-plus"],["fas","mars-stroke-v"],["fas","sitemap"],["fas","vial"],["fas","chart-bar"],["fas","folder"],["fas","mars-stroke"],["fas","skating"],["fas","vials"],["fas","chart-line"],["fas","font-awesome-logo-full"],["fas","mars"],["fas","skiing-nordic"],["fas","video-slash"],["fas","chart-pie"],["fas","font"],["fas","mask"],["fas","skiing"],["fas","video"],["fas","check-circle"],["fas","football-ball"],["fas","medal"],["fas","skull-crossbones"],["fas","vihara"],["fas","check-double"],["fas","forward"],["fas","medkit"],["fas","skull"],["fas","virus-slash"],["fas","check-square"],["fas","frog"],["fas","meh-blank"],["fas","slash"],["fas","virus"],["fas","check"],["fas","frown-open"],["fas","meh-rolling-eyes"],["fas","sleigh"],["fas","viruses"],["fas","cheese"],["fas","frown"],["fas","meh"],["fas","sliders-h"],["fas","voicemail"],["fas","chess-bishop"],["fas","funnel-dollar"],["fas","memory"],["fas","smile-beam"],["fas","volleyball-ball"],["fas","chess-board"],["fas","futbol"],["fas","menorah"],["fas","smile-wink"],["fas","volume-down"],["fas","chess-king"],["fas","gamepad"],["fas","mercury"],["fas","smile"],["fas","volume-mute"],["fas","chess-knight"],["fas","gas-pump"],["fas","meteor"],["fas","smog"],["fas","volume-off"],["fas","chess-pawn"],["fas","gavel"],["fas","microchip"],["fas","smoking-ban"],["fas","volume-up"],["fas","chess-queen"],["fas","gem"],["fas","microphone-alt-slash"],["fas","smoking"],["fas","vote-yea"],["fas","chess-rook"],["fas","genderless"],["fas","microphone-alt"],["fas","sms"],["fas","vr-cardboard"],["fas","chess"],["fas","ghost"],["fas","microphone-slash"],["fas","snowboarding"],["fas","walking"],["fas","chevron-circle-down"],["fas","gift"],["fas","microphone"],["fas","snowflake"],["fas","wallet"],["fas","chevron-circle-left"],["fas","gifts"],["fas","microscope"],["fas","snowman"],["fas","warehouse"],["fas","chevron-circle-right"],["fas","glass-cheers"],["fas","minus-circle"],["fas","snowplow"],["fas","water"],["fas","chevron-circle-up"],["fas","glass-martini-alt"],["fas","minus-square"],["fas","soap"],["fas","wave-square"],["fas","chevron-down"],["fas","glass-martini"],["fas","minus"],["fas","socks"],["fas","weight-hanging"],["fas","chevron-left"],["fas","glass-whiskey"],["fas","mitten"],["fas","solar-panel"],["fas","weight"],["fas","chevron-right"],["fas","glasses"],["fas","mobile-alt"],["fas","sort-alpha-down-alt"],["fas","wheelchair"],["fas","chevron-up"],["fas","globe-africa"],["fas","mobile"],["fas","sort-alpha-down"],["fas","wifi"],["fas","child"],["fas","globe-americas"],["fas","money-bill-alt"],["fas","sort-alpha-up-alt"],["fas","wind"],["fas","church"],["fas","globe-asia"],["fas","money-bill-wave-alt"],["fas","sort-alpha-up"],["fas","window-close"],["fas","circle-notch"],["fas","globe-europe"],["fas","money-bill-wave"],["fas","sort-amount-down-alt"],["fas","window-maximize"],["fas","circle"],["fas","globe"],["fas","money-bill"],["fas","sort-amount-down"],["fas","window-minimize"],["fas","city"],["fas","golf-ball"],["fas","money-check-alt"],["fas","sort-amount-up-alt"],["fas","window-restore"],["fas","clinic-medical"],["fas","gopuram"],["fas","money-check"],["fas","sort-amount-up"],["fas","wine-bottle"],["fas","clipboard-check"],["fas","graduation-cap"],["fas","monument"],["fas","sort-down"],["fas","wine-glass-alt"],["fas","clipboard-list"],["fas","greater-than-equal"],["fas","moon"],["fas","sort-numeric-down-alt"],["fas","wine-glass"],["fas","clipboard"],["fas","greater-than"],["fas","mortar-pestle"],["fas","sort-numeric-down"],["fas","won-sign"],["fas","clock"],["fas","grimace"],["fas","mosque"],["fas","sort-numeric-up-alt"],["fas","wrench"],["fas","clone"],["fas","grin-alt"],["fas","motorcycle"],["fas","sort-numeric-up"],["fas","x-ray"],["fas","closed-captioning"],["fas","grin-beam-sweat"],["fas","mountain"],["fas","sort-up"],["fas","yen-sign"],["fas","cloud-download-alt"],["fas","grin-beam"],["fas","mouse-pointer"],["fas","sort"],["fas","yin-yang"],["fas","cloud-meatball"],["fas","grin-hearts"],["fas","mouse"],["fas","spa"],["fas","cloud-moon-rain"],["fas","grin-squint-tears"],["fas","mug-hot"],["fas","space-shuttle"],["fas","cloud-moon"],["fas","grin-squint"],["fas","music"],["fas","spell-check"]]),ee=[["far","address-book"],["far","clock"],["far","file-video"],["far","hand-lizard"],["far","laugh-wink"],["far","smile-beam"],["far","address-card"],["far","clone"],["far","file-word"],["far","hand-paper"],["far","laugh"],["far","smile-wink"],["far","angry"],["far","closed-captioning"],["far","file"],["far","hand-peace"],["far","lemon"],["far","smile"],["far","arrow-alt-circle-down"],["far","comment-alt"],["far","flag"],["far","hand-point-down"],["far","life-ring"],["far","snowflake"],["far","arrow-alt-circle-left"],["far","comment-dots"],["far","flushed"],["far","hand-point-left"],["far","lightbulb"],["far","square"],["far","arrow-alt-circle-right"],["far","comment"],["far","folder-open"],["far","hand-point-right"],["far","list-alt"],["far","star-half"],["far","arrow-alt-circle-up"],["far","comments"],["far","folder"],["far","hand-point-up"],["far","map"],["far","star"],["far","bell-slash"],["far","compass"],["far","font-awesome-logo-full"],["far","hand-pointer"],["far","meh-blank"],["far","sticky-note"],["far","bell"],["far","copy"],["far","frown-open"],["far","hand-rock"],["far","meh-rolling-eyes"],["far","stop-circle"],["far","bookmark"],["far","copyright"],["far","frown"],["far","hand-scissors"],["far","meh"],["far","sun"],["far","building"],["far","credit-card"],["far","futbol"],["far","hand-spock"],["far","minus-square"],["far","surprise"],["far","calendar-alt"],["far","dizzy"],["far","gem"],["far","handshake"],["far","money-bill-alt"],["far","thumbs-down"],["far","calendar-check"],["far","dot-circle"],["far","grimace"],["far","hdd"],["far","moon"],["far","thumbs-up"],["far","calendar-minus"],["far","edit"],["far","grin-alt"],["far","heart"],["far","newspaper"],["far","times-circle"],["far","calendar-plus"],["far","envelope-open"],["far","grin-beam-sweat"],["far","hospital"],["far","object-group"],["far","tired"],["far","calendar-times"],["far","envelope"],["far","grin-beam"],["far","hourglass"],["far","object-ungroup"],["far","trash-alt"],["far","calendar"],["far","eye-slash"],["far","grin-hearts"],["far","id-badge"],["far","paper-plane"],["far","user-circle"],["far","caret-square-down"],["far","eye"],["far","grin-squint-tears"],["far","id-card"],["far","pause-circle"],["far","user"],["far","caret-square-left"],["far","file-alt"],["far","grin-squint"],["far","image"],["far","play-circle"],["far","window-close"],["far","caret-square-right"],["far","file-archive"],["far","grin-stars"],["far","images"],["far","plus-square"],["far","window-maximize"],["far","caret-square-up"],["far","file-audio"],["far","grin-tears"],["far","keyboard"],["far","question-circle"],["far","window-minimize"],["far","chart-bar"],["far","file-code"],["far","grin-tongue-squint"],["far","kiss-beam"],["far","registered"],["far","window-restore"],["far","check-circle"],["far","file-excel"],["far","grin-tongue-wink"],["far","kiss-wink-heart"],["far","sad-cry"],["far","check-square"],["far","file-image"],["far","grin-tongue"],["far","kiss"],["far","sad-tear"],["far","circle"],["far","file-pdf"],["far","grin-wink"],["far","laugh-beam"],["far","save"],["far","clipboard"],["far","file-powerpoint"],["far","grin"],["far","laugh-squint"],["far","share-square"]],te=[["fab","500px"],["fab","css3"],["fab","google-plus-square"],["fab","odnoklassniki-square"],["fab","steam"],["fab","accessible-icon"],["fab","cuttlefish"],["fab","google-plus"],["fab","odnoklassniki"],["fab","sticker-mule"],["fab","accusoft"],["fab","d-and-d-beyond"],["fab","google-wallet"],["fab","old-republic"],["fab","strava"],["fab","acquisitions-incorporated"],["fab","d-and-d"],["fab","google"],["fab","opencart"],["fab","stripe-s"],["fab","adn"],["fab","dailymotion"],["fab","gratipay"],["fab","openid"],["fab","stripe"],["fab","adversal"],["fab","dashcube"],["fab","grav"],["fab","opera"],["fab","studiovinari"],["fab","affiliatetheme"],["fab","deezer"],["fab","gripfire"],["fab","optin-monster"],["fab","stumbleupon-circle"],["fab","airbnb"],["fab","delicious"],["fab","grunt"],["fab","orcid"],["fab","stumbleupon"],["fab","algolia"],["fab","deploydog"],["fab","guilded"],["fab","osi"],["fab","superpowers"],["fab","alipay"],["fab","deskpro"],["fab","gulp"],["fab","page4"],["fab","supple"],["fab","amazon-pay"],["fab","dev"],["fab","hacker-news-square"],["fab","pagelines"],["fab","suse"],["fab","amazon"],["fab","deviantart"],["fab","hacker-news"],["fab","palfed"],["fab","swift"],["fab","amilia"],["fab","dhl"],["fab","hackerrank"],["fab","patreon"],["fab","symfony"],["fab","android"],["fab","diaspora"],["fab","hips"],["fab","paypal"],["fab","teamspeak"],["fab","angellist"],["fab","digg"],["fab","hire-a-helper"],["fab","penny-arcade"],["fab","telegram-plane"],["fab","angrycreative"],["fab","digital-ocean"],["fab","hive"],["fab","perbyte"],["fab","telegram"],["fab","angular"],["fab","discord"],["fab","hooli"],["fab","periscope"],["fab","tencent-weibo"],["fab","app-store-ios"],["fab","discourse"],["fab","hornbill"],["fab","phabricator"],["fab","the-red-yeti"],["fab","app-store"],["fab","dochub"],["fab","hotjar"],["fab","phoenix-framework"],["fab","themeco"],["fab","apper"],["fab","docker"],["fab","houzz"],["fab","phoenix-squadron"],["fab","themeisle"],["fab","apple-pay"],["fab","draft2digital"],["fab","html5"],["fab","php"],["fab","think-peaks"],["fab","apple"],["fab","dribbble-square"],["fab","hubspot"],["fab","pied-piper-alt"],["fab","tiktok"],["fab","artstation"],["fab","dribbble"],["fab","ideal"],["fab","pied-piper-hat"],["fab","trade-federation"],["fab","asymmetrik"],["fab","dropbox"],["fab","imdb"],["fab","pied-piper-pp"],["fab","trello"],["fab","atlassian"],["fab","drupal"],["fab","innosoft"],["fab","pied-piper-square"],["fab","tripadvisor"],["fab","audible"],["fab","dyalog"],["fab","instagram-square"],["fab","pied-piper"],["fab","tumblr-square"],["fab","autoprefixer"],["fab","earlybirds"],["fab","instagram"],["fab","pinterest-p"],["fab","tumblr"],["fab","avianex"],["fab","ebay"],["fab","instalod"],["fab","pinterest-square"],["fab","twitch"],["fab","aviato"],["fab","edge-legacy"],["fab","intercom"],["fab","pinterest"],["fab","twitter-square"],["fab","aws"],["fab","edge"],["fab","internet-explorer"],["fab","playstation"],["fab","twitter"],["fab","bandcamp"],["fab","elementor"],["fab","invision"],["fab","product-hunt"],["fab","typo3"],["fab","battle-net"],["fab","ello"],["fab","ioxhost"],["fab","pushed"],["fab","uber"],["fab","behance-square"],["fab","ember"],["fab","itch-io"],["fab","python"],["fab","ubuntu"],["fab","behance"],["fab","empire"],["fab","itunes-note"],["fab","qq"],["fab","uikit"],["fab","bimobject"],["fab","envira"],["fab","itunes"],["fab","quinscape"],["fab","umbraco"],["fab","bitbucket"],["fab","erlang"],["fab","java"],["fab","quora"],["fab","uncharted"],["fab","bitcoin"],["fab","ethereum"],["fab","jedi-order"],["fab","r-project"],["fab","uniregistry"],["fab","bity"],["fab","etsy"],["fab","jenkins"],["fab","raspberry-pi"],["fab","unity"],["fab","black-tie"],["fab","evernote"],["fab","jira"],["fab","ravelry"],["fab","unsplash"],["fab","blackberry"],["fab","expeditedssl"],["fab","joget"],["fab","react"],["fab","untappd"],["fab","blogger-b"],["fab","facebook-f"],["fab","joomla"],["fab","reacteurope"],["fab","ups"],["fab","blogger"],["fab","facebook-messenger"],["fab","js-square"],["fab","readme"],["fab","usb"],["fab","bluetooth-b"],["fab","facebook-square"],["fab","js"],["fab","rebel"],["fab","usps"],["fab","bluetooth"],["fab","facebook"],["fab","jsfiddle"],["fab","red-river"],["fab","ussunnah"],["fab","bootstrap"],["fab","fantasy-flight-games"],["fab","kaggle"],["fab","reddit-alien"],["fab","vaadin"],["fab","btc"],["fab","fedex"],["fab","keybase"],["fab","reddit-square"],["fab","viacoin"],["fab","buffer"],["fab","fedora"],["fab","keycdn"],["fab","reddit"],["fab","viadeo-square"],["fab","buromobelexperte"],["fab","figma"],["fab","kickstarter-k"],["fab","redhat"],["fab","viadeo"],["fab","buy-n-large"],["fab","firefox-browser"],["fab","kickstarter"],["fab","renren"],["fab","viber"],["fab","buysellads"],["fab","firefox"],["fab","korvue"],["fab","replyd"],["fab","vimeo-square"],["fab","canadian-maple-leaf"],["fab","first-order-alt"],["fab","laravel"],["fab","researchgate"],["fab","vimeo-v"],["fab","cc-amazon-pay"],["fab","first-order"],["fab","lastfm-square"],["fab","resolving"],["fab","vimeo"],["fab","cc-amex"],["fab","firstdraft"],["fab","lastfm"],["fab","rev"],["fab","vine"],["fab","cc-apple-pay"],["fab","flickr"],["fab","leanpub"],["fab","rocketchat"],["fab","vk"],["fab","cc-diners-club"],["fab","flipboard"],["fab","less"],["fab","rockrms"],["fab","vnv"],["fab","cc-discover"],["fab","fly"],["fab","line"],["fab","rust"],["fab","vuejs"],["fab","cc-jcb"],["fab","font-awesome-alt"],["fab","linkedin-in"],["fab","safari"],["fab","watchman-monitoring"],["fab","cc-mastercard"],["fab","font-awesome-flag"],["fab","linkedin"],["fab","salesforce"],["fab","waze"],["fab","cc-paypal"],["fab","font-awesome-logo-full"],["fab","linode"],["fab","sass"],["fab","weebly"],["fab","cc-stripe"],["fab","font-awesome"],["fab","linux"],["fab","schlix"],["fab","weibo"],["fab","cc-visa"],["fab","fonticons-fi"],["fab","lyft"],["fab","scribd"],["fab","weixin"],["fab","centercode"],["fab","fonticons"],["fab","magento"],["fab","searchengin"],["fab","whatsapp-square"],["fab","centos"],["fab","fort-awesome-alt"],["fab","mailchimp"],["fab","sellcast"],["fab","whatsapp"],["fab","chrome"],["fab","fort-awesome"],["fab","mandalorian"],["fab","sellsy"],["fab","whmcs"],["fab","chromecast"],["fab","forumbee"],["fab","markdown"],["fab","servicestack"],["fab","wikipedia-w"],["fab","cloudflare"],["fab","foursquare"],["fab","mastodon"],["fab","shirtsinbulk"],["fab","windows"],["fab","cloudscale"],["fab","free-code-camp"],["fab","maxcdn"],["fab","shopify"],["fab","wix"],["fab","cloudsmith"],["fab","freebsd"],["fab","mdb"],["fab","shopware"],["fab","wizards-of-the-coast"],["fab","cloudversify"],["fab","fulcrum"],["fab","medapps"],["fab","simplybuilt"],["fab","wodu"],["fab","codepen"],["fab","galactic-republic"],["fab","medium-m"],["fab","sistrix"],["fab","wolf-pack-battalion"],["fab","codiepie"],["fab","galactic-senate"],["fab","medium"],["fab","sith"],["fab","wordpress-simple"],["fab","confluence"],["fab","get-pocket"],["fab","medrt"],["fab","sketch"],["fab","wordpress"],["fab","connectdevelop"],["fab","gg-circle"],["fab","meetup"],["fab","skyatlas"],["fab","wpbeginner"],["fab","contao"],["fab","gg"],["fab","megaport"],["fab","skype"],["fab","wpexplorer"],["fab","cotton-bureau"],["fab","git-alt"],["fab","mendeley"],["fab","slack-hash"],["fab","wpforms"],["fab","cpanel"],["fab","git-square"],["fab","microblog"],["fab","slack"],["fab","wpressr"],["fab","creative-commons-by"],["fab","git"],["fab","microsoft"],["fab","slideshare"],["fab","xbox"],["fab","creative-commons-nc-eu"],["fab","github-alt"],["fab","mix"],["fab","snapchat-ghost"],["fab","xing-square"],["fab","creative-commons-nc-jp"],["fab","github-square"],["fab","mixcloud"],["fab","snapchat-square"],["fab","xing"],["fab","creative-commons-nc"],["fab","github"],["fab","mixer"],["fab","snapchat"],["fab","y-combinator"],["fab","creative-commons-nd"],["fab","gitkraken"],["fab","mizuni"],["fab","soundcloud"],["fab","yahoo"],["fab","creative-commons-pd-alt"],["fab","gitlab"],["fab","modx"],["fab","sourcetree"],["fab","yammer"],["fab","creative-commons-pd"],["fab","gitter"],["fab","monero"],["fab","speakap"],["fab","yandex-international"],["fab","creative-commons-remix"],["fab","glide-g"],["fab","napster"],["fab","speaker-deck"],["fab","yandex"],["fab","creative-commons-sa"],["fab","glide"],["fab","neos"],["fab","spotify"],["fab","yarn"],["fab","creative-commons-sampling-plus"],["fab","gofore"],["fab","nimblr"],["fab","squarespace"],["fab","yelp"],["fab","creative-commons-sampling"],["fab","goodreads-g"],["fab","node-js"],["fab","stack-exchange"],["fab","yoast"],["fab","creative-commons-share"],["fab","goodreads"],["fab","node"],["fab","stack-overflow"],["fab","youtube-square"],["fab","creative-commons-zero"],["fab","google-drive"],["fab","npm"],["fab","stackpath"],["fab","youtube"],["fab","creative-commons"],["fab","google-pay"],["fab","ns8"],["fab","staylinked"],["fab","zhihu"],["fab","critical-role"],["fab","google-play"],["fab","nutritionix"],["fab","steam-square"],["fab","css3-alt"],["fab","google-plus-g"],["fab","octopus-deploy"],["fab","steam-symbol"]],ne=Z.concat(ee,te);function re(){var e=function(e){var t=e.trim();return new Promise((function(e){var n=ne.filter((function(e){for(var n=1;n<e.length;n++)if(e[n].includes(t))return!0;return!1}));e(n.map((function(e){return"".concat(e[0]," fa-").concat(e[1])})))}))};return{search:e}}var ie=n("efd0"),oe=Object(f["c"])({name:"FaIconSelect",components:{BaseIcon:P["a"],BaseInput:ie["a"],BaseSpinner:I["a"]},props:{value:{type:String,default:""}},setup:function(e,t){var n=function(e){return/^fa[a-z] fa-/.test(e)?e.substr(7,e.length-7):e},r=Object(f["o"])(n(e.value)),i=Object(f["o"])(!1),o=Object(f["o"])([]),a=Object(f["o"])(),c=Object(f["a"])((function(){return r.value.length>1&&(o.value.length>0||i.value)})),l=re(),d=l.search,h=Object(p["debounce"])(function(){var e=Object(s["a"])(u.a.mark((function e(t){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d(t.toLowerCase());case 2:o.value=e.sent,i.value=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),500),m=function(e){r.value=e,e.length>1?(i.value=!0,h(e)):(h.cancel(),i.value=!1)},v=function(e){t.emit("input",e),r.value=n(e),o.value=[]},g=function(){m(r.value)},b=function(t){a.value&&!t.composedPath().includes(a.value)&&(o.value=[],r.value=n(e.value))},y=function(){r.value="",t.emit("input",void 0)};return Object(f["j"])((function(){window.addEventListener("click",b)})),Object(f["h"])((function(){window.removeEventListener("click",b)})),{searchString:r,showDropdown:c,icons:o,loading:i,selectRef:a,handleInput:m,handleIconClick:v,handleFocus:g,handleClearClick:y}}}),ae=oe,se=(n("a40d"),Object(E["a"])(ae,X,Q,!1,null,"22fd212e",null)),ce=se.exports,le=n("a186"),ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.imageSrc||e.loadingImage?n("div",{staticClass:"input-button-image__button-preview d-center __column mb-6 mt-4",style:{backgroundColor:e.backgroundColor}},[n("base-image",{staticClass:"input-button-image__img",class:{__empty:e.loadingImage},attrs:{src:e.imageSrc,loading:e.loadingImage,contain:""}}),e.imageSrc?n("div",{staticClass:"input-button-image__img-delete d-center"},[n("base-icon",{attrs:{"font-size":14,color:"var(--palette-bg)"},on:{click:function(t){return e.$emit("delete")}}},[e._v("sci-cross")])],1):e._e()],1):n("base-input-file",{attrs:{accept:"image"},on:{input:function(t){return e.$emit("update",t)}},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.selectFile;return[n("base-button",{staticClass:"input-button-image__upload-picture-btn mt-4 body-2",attrs:{gray:"","full-width":""},on:{click:r}},[n("base-icon",{attrs:{"font-size":"24",color:"var(--palette-gray-lighten-4)"}},[e._v("sci-plus")]),e._v(" "+e._s(e.$t("Add file")))],1)]}}])})},de=[],fe=Object(f["c"])({name:"InputButtonImage",components:{BaseInputFile:V["a"],BaseImage:A["a"],BaseButton:j["a"]},props:{loadingImage:{type:Boolean,required:!0},imageSrc:{type:String,required:!0},backgroundColor:{type:String,required:!0}}}),pe=fe,he=(n("e58a"),Object(E["a"])(pe,ue,de,!1,null,"45f5f9ae",null)),me=he.exports,ve=Object(f["c"])({name:"AddLinkModal",components:{FaIconSelect:ce,BaseInput:U["a"],BaseForm:L["a"],ModalView:H["a"],PageTitle:N["a"],BaseButton:j["a"],BaseToggle:J,BaseInputFile:V["a"],InputColorPicker:le["a"],InputButtonImage:me},props:{show:{type:Boolean,required:!0},lastImageId:{type:Number,required:!0},files:{type:Array,default:function(){return[]}},initialValues:{type:Object}},setup:function(e,t){var n,r,i,o=t.emit,a=Object(f["o"])(Object(c["a"])({linkType:void 0,backgroundColor:"000000",textColor:"ffffff",buttonAnimation:void 0,icon:void 0,imageId:void 0},null!==(n=e.initialValues)&&void 0!==n?n:{})),l=Object(f["o"])(!1),d=Object(f["a"])((function(){return!!e.initialValues})),p=Object(f["a"])((function(){return[{name:"linkType",label:Object(w["a"])("Link type"),type:"select",options:[{text:Object(w["a"])("Choose"),value:void 0,disabled:!0},{text:Object(w["a"])("Custom link"),value:"custom"}].concat(Object(q["a"])(Object.keys(Y["a"]).map((function(e){return{text:Object(w["a"])(e.charAt(0).toUpperCase()+e.slice(1)),value:e}})).sort((function(e,t){return e.text>t.text?1:e.text<t.text?-1:0}))))}].concat(Object(q["a"])("custom"===a.value.linkType?[{name:"title",label:Object(w["a"])("Link title"),type:"text"},{name:"url",label:Object(w["a"])("URL"),type:"text",rules:"required"},{name:"colors"}]:[]),Object(q["a"])(void 0!==a.value.linkType&&"fambase"!==a.value.linkType&&"custom"!==a.value.linkType?[{name:"username",label:Object(w["a"])("Username"),type:"text",rules:"required"}]:[]),Object(q["a"])("fambase"===a.value.linkType?[{name:"url",label:Object(w["a"])("URL"),type:"text",rules:"required"}]:[]),[{name:"buttonAnimation",label:Object(w["a"])("Button animation"),type:"select",options:[{text:Object(w["a"])("None"),value:void 0},{text:Object(w["a"])("Pulse"),value:"pulse"},{text:Object(w["a"])("Glow"),value:"glow"},{text:Object(w["a"])("Shake"),value:"shake"},{text:Object(w["a"])("Tada"),value:"tada"}]}])})),h=[{name:"icon",title:Object(w["a"])("Icon")},{name:"png",title:Object(w["a"])("PNG")}],m=Object(f["o"])("custom"===(null===(r=e.initialValues)||void 0===r?void 0:r.linkType)&&null!==(i=e.initialValues)&&void 0!==i&&i.imageId?1:0),v=Object(f["a"])((function(){var t=e.files.find((function(e){return"profile_link_image"===e.fileId.type&&e.fileId.fileNumber===a.value.imageId}));return t?b["a"].getFileUrl(t.urlPart):""})),g=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,i,s;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:l.value=!0,s="custom"===(null===(r=e.initialValues)||void 0===r?void 0:r.linkType)&&null!==(i=e.initialValues)&&void 0!==i&&i.imageId?e.initialValues.imageId:e.lastImageId+1,o("uploadImage",{files:n,imageId:s,cb:function(){a.value.imageId=s,delete a.value.icon,l.value=!1}});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),y=function(){var e=Object(s["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a.value.imageId){e.next=2;break}return e.abrupt("return");case 2:o("deleteImage",{imageId:a.value.imageId,cb:function(){return a.value.imageId=void 0}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=Object(f["o"])(!1),x=Object(f["o"])(!0),C=Object(f["o"])(!0),O=Object(f["o"])((function(){})),S=function(){var e=Object(s["a"])(u.a.mark((function e(){var t;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(O.value(),k.value&&x.value&&C.value){e.next=3;break}return e.abrupt("return");case 3:t=Object(c["a"])({},a.value),"custom"!==a.value.linkType?(delete t.backgroundColor,delete t.textColor,delete t.icon,delete t.imageId):t.imageId&&delete t.icon,d.value?o("onModifyButton",t):o("onAddButton",t),o("close");case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(e,t){a.value=Object(c["a"])(Object(c["a"])({},a.value),{},Object(R["a"])({},e,t))};return{fields:p,values:a,isEditing:d,manualValidation:O,setValue:T,onSubmitLink:S,validCommon:k,validBackground:x,validText:C,tabs:h,currentTabIndex:m,imageSrc:v,loadingImage:l,uploadImage:g,deleteImage:y}}}),ge=ve,be=(n("68ae"),Object(E["a"])(ge,B,F,!1,null,"ae70c3f8",null)),ye=be.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{staticClass:"add-accordion-modal",attrs:{value:e.show,modal:""}},[n("div",{staticClass:"add-accordion-modal__body"},[n("page-title",{on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.$t("Add accordion button"))+" ")]),n("base-form",{attrs:{fields:e.fields},on:{validation:function(t){return e.validCommon=t},setManualValidate:function(t){e.manualValidation=t}},scopedSlots:e._u([{key:"description",fn:function(t){var r=t.field,i=t.value,o=t.listeners;return[n("div",{staticClass:"add-accordion-modal__text"},[n("wysiwyg-editor",e._g({attrs:{label:r.label,name:r.name,value:i}},o)),n("base-input-file",{attrs:{accept:"image"},on:{input:e.uploadImage},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.selectFile;return[n("base-icon",{staticClass:"add-accordion-modal__add-files",attrs:{"font-size":20},on:{click:r}},[e._v(" sci-paperclip ")])]}}],null,!0)})],1),e.imageSrc||e.loadingImage?n("div",{staticClass:"d-flex mt-6"},[n("base-image",{staticClass:"add-accordion-modal__image",attrs:{src:e.imageSrc,loading:e.loadingImage,"top-right-icon":""},scopedSlots:e._u([{key:"top-right",fn:function(){return[n("base-icon",{staticClass:"add-accordion-modal__image-remove mt-1 mr-1",attrs:{"font-size":24},on:{click:e.removeImage}},[e._v(" sci-cross ")])]},proxy:!0}],null,!0)}),n("base-input",{staticClass:"add-accordion-modal__image-link ml-6",attrs:{name:"imageHref",label:e.$t("Image link"),"rules-messages":{regex:e.$t("Image link must be a valid link")},rules:{regex:/^http(s)?:\/\/(?:www\.)?/}},on:{validation:function(t){e.validLink=t}},model:{value:e.values.imageHref,callback:function(t){e.$set(e.values,"imageHref",t)},expression:"values.imageHref"}})],1):e._e()]}},{key:"colors",fn:function(){return[n("div",{staticClass:"add-accordion-modal__color-pickers d-flex"},[n("input-color-picker",{staticClass:"add-accordion-modal__input-color-picker __background",attrs:{name:"accordionBackgroundColor",color:e.values["backgroundColor"],label:e.$t("Button color")},on:{colorChanged:function(t){return e.setValue("backgroundColor",t)},validation:function(t){return e.validBackground=t}}}),n("input-color-picker",{staticClass:"add-accordion-modal__input-color-picker __text",attrs:{name:"accordionTextColor",color:e.values["textColor"],label:e.$t("Text color")},on:{colorChanged:function(t){return e.setValue("textColor",t)},validation:function(t){return e.validText=t}}})],1),n("base-toggle",{staticClass:"add-accordion-modal__toggle-icon-type mt-6",attrs:{items:e.tabs,"current-item-index":e.currentTabIndex},on:{select:function(t){return e.currentTabIndex=t}}}),"icon"===e.tabs[e.currentTabIndex].name?[n("fa-icon-select",{staticClass:"mb-3 mt-6",on:{input:e.removeIconImage},model:{value:e.values["icon"],callback:function(t){e.$set(e.values,"icon",t)},expression:"values['icon']"}})]:e._e(),"png"===e.tabs[e.currentTabIndex].name?[n("input-button-image",{staticClass:"add-accordion-modal__icon-image",attrs:{"image-src":e.iconImageSrc,"loading-image":e.loadingIconImage,"background-color":"#"+e.values["backgroundColor"]},on:{update:e.uploadIconImage,delete:e.removeIconImage}})]:e._e()]},proxy:!0}]),model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),n("div",{staticClass:"add-accordion-modal__button-wrapper mt-10 pb-4"},[n("base-button",{staticClass:"add-accordion-modal__add-link-button",attrs:{"full-width":""},on:{click:e.onSubmitLink}},[e._v(" "+e._s(e.isEditing?e.$t("Save accordion"):e.$t("Add accordion"))+" ")])],1)],1)])},ke=[],xe=n("64ae"),Ce=n("7f85"),Oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-input-box",{scopedSlots:e._u([{key:"label",fn:function(t){var r=t.classes;return[e.label?n("label",{class:r},[e._v(e._s(e.label))]):e._e()]}}])},[[n("editor",{ref:"toastuiEditor",attrs:{initialValue:e.value,options:e.options,name:e.name,initialEditType:"wysiwyg"},on:{change:e.onChange}})]],2)},Se=[],Te=n("e459"),Ee=n("643e"),_e={minHeight:"200px",language:"en-US",useCommandShortcut:!0,usageStatistics:!1,hideModeSwitch:!0,toolbarItems:[["heading","bold","italic","strike"],["hr","quote"],["ul","ol","task","indent","outdent"],["table","link"],["code","codeblock"],["scrollSync"]]},Me=Object(f["c"])({name:"WysiwygEditor",components:{Editor:Te["a"],BaseInputBox:Ee["a"]},props:{value:{type:String,required:!0},label:{type:String},name:{type:String},options:{type:Object,default:function(){return _e}}},setup:function(e,t){var n=t.emit,r=Object(f["o"])(),i=function(){var e=r.value.invoke("getHTML");n("input",e)};return{toastuiEditor:r,onChange:i}}}),Ie=Me,je=(n("ee61"),n("586f"),Object(E["a"])(Ie,Oe,Se,!1,null,null,null)),De=je.exports,Ne=Object(f["c"])({name:"AddAccordionModal",components:{WysiwygEditor:De,BaseInput:ie["a"],FaIconSelect:ce,BaseForm:L["a"],ModalView:H["a"],PageTitle:N["a"],BaseButton:j["a"],InputColorPicker:le["a"],BaseInputTextarea:Ce["a"],BaseInputFile:V["a"],BaseImage:A["a"],BaseToggle:J,InputButtonImage:me},props:{show:{type:Boolean,required:!0},lastImageId:{type:Number,required:!0},files:{type:Array,default:function(){return[]}},initialValues:{type:Object}},setup:function(e,t){var n,r,i=t.emit,o=Object(f["o"])(Object(c["a"])({linkType:"accordion",backgroundColor:"000000",textColor:"ffffff",description:"",imageId:void 0,iconImageId:void 0,imageHref:"",icon:void 0,buttonAnimation:void 0},null!==(n=e.initialValues)&&void 0!==n?n:{})),a=Object(f["o"])(!1),l=Object(f["o"])(!1),d=Object(f["a"])((function(){return!!e.initialValues})),p=Object(f["a"])((function(){return[{name:"title",label:Object(w["a"])("Title"),type:"text"},{name:"description",label:Object(w["a"])("Text"),type:"textarea"},{name:"videoUrl",label:Object(w["a"])("Video URL"),hint:Object(w["a"])("YouTube or Vimeo"),type:"text"},{name:"colors"},{name:"buttonAnimation",label:Object(w["a"])("Button animation"),type:"select",options:[{text:Object(w["a"])("None"),value:void 0},{text:Object(w["a"])("Pulse"),value:"pulse"},{text:Object(w["a"])("Glow"),value:"glow"},{text:Object(w["a"])("Shake"),value:"shake"},{text:Object(w["a"])("Tada"),value:"tada"}]}]})),h=Object(f["o"])(!1),m=Object(f["o"])(!0),v=Object(f["o"])(!0),g=Object(f["o"])(!0),y=Object(f["o"])((function(){})),k=function(){var e=Object(s["a"])(u.a.mark((function e(){var t;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(y.value(),h.value&&m.value&&v.value&&g.value){e.next=3;break}return e.abrupt("return");case 3:t=Object(c["a"])(Object(c["a"])({},o.value),{},{imageHref:o.value.imageId?o.value.imageHref:""}),d.value?i("onModifyButton",t):i("onAddButton",t),i("close");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(e,t){o.value=Object(c["a"])(Object(c["a"])({},o.value),{},Object(R["a"])({},e,t))},C=Object(f["a"])((function(){var t=e.files.find((function(e){return"profile_link_image"===e.fileId.type&&e.fileId.fileNumber===o.value.imageId}));return t?Object(xe["d"])(t,t.urlPart,"480p"):""})),O=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,s;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a.value=!0,s=null!==(r=e.initialValues)&&void 0!==r&&r.imageId?e.initialValues.imageId:e.lastImageId+1,i("uploadImage",{files:n,imageId:s,cb:function(){o.value.imageId=s,a.value=!1}});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),S=function(){var e=Object(s["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o.value.imageId){e.next=2;break}return e.abrupt("return");case 2:i("deleteImage",{imageId:o.value.imageId,cb:function(){return o.value.imageId=void 0}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=[{name:"icon",title:Object(w["a"])("Icon")},{name:"png",title:Object(w["a"])("PNG")}],E=Object(f["o"])(null!==(r=e.initialValues)&&void 0!==r&&r.iconImageId?1:0),_=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,a;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:l.value=!0,a=null!==(r=e.initialValues)&&void 0!==r&&r.iconImageId?e.initialValues.iconImageId:e.lastImageId+2,i("uploadImage",{files:n,imageId:a,cb:function(){o.value.iconImageId=a,delete o.value.icon,l.value=!1}});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),M=Object(f["a"])((function(){var t=e.files.find((function(e){return"profile_link_image"===e.fileId.type&&e.fileId.fileNumber===o.value.iconImageId}));return t?b["a"].getFileUrl(t.urlPart):""})),I=function(){var e=Object(s["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o.value.iconImageId){e.next=2;break}return e.abrupt("return");case 2:i("deleteImage",{imageId:o.value.iconImageId,cb:function(){return o.value.iconImageId=void 0}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){if(d.value){var t,n=Object(c["a"])(Object(c["a"])({},e.initialValues),{},{imageHref:o.value.imageId?null===(t=e.initialValues)||void 0===t?void 0:t.imageHref:"",imageId:o.value.imageId});i("onModifyButton",n)}i("close")};return{fields:p,values:o,isEditing:d,manualValidation:y,setValue:x,onSubmitLink:k,validCommon:h,validBackground:m,validText:v,validLink:g,uploadImage:O,removeImage:S,loadingImage:a,loadingIconImage:l,closeModal:j,imageSrc:C,tabs:T,currentTabIndex:E,removeIconImage:I,uploadIconImage:_,iconImageSrc:M}}}),Ae=Ne,Le=(n("11c8"),Object(E["a"])(Ae,we,ke,!1,null,"47319ff5",null)),Pe=Le.exports,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{staticClass:"add-playlist-modal",attrs:{value:e.show,modal:""}},[n("div",{staticClass:"add-playlist-modal__body"},[n("page-title",{on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.$t("Add playlist"))+" ")]),n("base-form",{attrs:{fields:e.fields},on:{validation:function(t){return e.validCommon=t},setManualValidate:function(t){e.manualValidation=t}},scopedSlots:e._u([{key:"colors",fn:function(){return[n("div",{staticClass:"add-playlist-modal__color-pickers d-flex"},[n("input-color-picker",{staticClass:"add-playlist-modal__input-color-picker __background",attrs:{name:"linkBackgroundColor",color:e.values["backgroundColor"],label:e.$t("Button color")},on:{colorChanged:function(t){return e.setValue("backgroundColor",t)},validation:function(t){return e.validBackground=t}}}),n("input-color-picker",{staticClass:"add-playlist-modal__input-color-picker __text",attrs:{name:"linkTextColor",color:e.values["textColor"],label:e.$t("Text color")},on:{colorChanged:function(t){return e.setValue("textColor",t)},validation:function(t){return e.validText=t}}})],1),n("base-toggle",{staticClass:"add-playlist-modal__toggle-icon-type mt-6",attrs:{items:e.tabs,"current-item-index":e.currentTabIndex},on:{select:function(t){return e.currentTabIndex=t}}}),"icon"===e.tabs[e.currentTabIndex].name?[n("fa-icon-select",{staticClass:"mb-3 mt-6",on:{input:e.deleteImage},model:{value:e.values["icon"],callback:function(t){e.$set(e.values,"icon",t)},expression:"values['icon']"}})]:e._e(),"png"===e.tabs[e.currentTabIndex].name?[n("input-button-image",{staticClass:"add-playlist-modal__image",attrs:{"image-src":e.imageSrc,"loading-image":e.loadingImage,"background-color":"#"+e.values["backgroundColor"]},on:{update:e.uploadImage,delete:e.deleteImage}})]:e._e()]},proxy:!0},{key:"playlists-title",fn:function(){return[n("div",{staticClass:"subtitle-1 pt-6 my-n3"},[e._v(e._s(e.$t("Playlists")))])]},proxy:!0}]),model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),n("div",{staticClass:"add-playlist-modal__button-wrapper mt-10 pb-4"},[n("base-button",{staticClass:"add-playlist-modal__add-link-button",attrs:{"full-width":""},on:{click:e.onSubmitLink}},[e._v(" "+e._s(e.$t("Save"))+" ")])],1)],1)])},Fe=[],Re=(n("b0c0"),n("321e")),qe=Object(f["c"])({name:"AddPlaylistModal",components:{FaIconSelect:ce,BaseInput:U["a"],BaseForm:L["a"],ModalView:H["a"],PageTitle:N["a"],BaseButton:j["a"],BaseToggle:J,BaseInputFile:V["a"],InputColorPicker:le["a"],InputButtonImage:me},props:{show:{type:Boolean,required:!0},lastImageId:{type:Number,required:!0},files:{type:Array,default:function(){return[]}},initialValues:{type:Object}},setup:function(e,t){var n,r,i,o,a=t.emit,l=Object(f["o"])(Object(c["a"])(Object(c["a"])({linkType:"playlist",backgroundColor:"000000",textColor:"ffffff",buttonAnimation:void 0,icon:void 0,imageId:void 0,services:{}},null!==(n=e.initialValues)&&void 0!==n?n:{}),null!==(r=null===(i=e.initialValues)||void 0===i?void 0:i.services)&&void 0!==r?r:{})),d=Object(f["o"])(!1),p=Object(f["a"])((function(){return!!e.initialValues})),h=Object(f["a"])((function(){return[{name:"title",label:Object(w["a"])("Title"),type:"text"},{name:"colors"},{name:"buttonAnimation",label:Object(w["a"])("Button animation"),type:"select",options:[{text:Object(w["a"])("None"),value:void 0},{text:Object(w["a"])("Pulse"),value:"pulse"},{text:Object(w["a"])("Glow"),value:"glow"},{text:Object(w["a"])("Shake"),value:"shake"},{text:Object(w["a"])("Tada"),value:"tada"}]},{name:"playlists-title"}].concat(Object(q["a"])(Re["a"]))})),m=[{name:"icon",title:Object(w["a"])("Icon")},{name:"png",title:Object(w["a"])("PNG")}],v=Object(f["o"])(null!==(o=e.initialValues)&&void 0!==o&&o.imageId?1:0),g=Object(f["a"])((function(){var t=e.files.find((function(e){return"profile_link_image"===e.fileId.type&&e.fileId.fileNumber===l.value.imageId}));return t?b["a"].getFileUrl(t.urlPart):""})),y=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,i;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:d.value=!0,i=null!==(r=e.initialValues)&&void 0!==r&&r.imageId?e.initialValues.imageId:e.lastImageId+1,a("uploadImage",{files:n,imageId:i,cb:function(){l.value.imageId=i,delete l.value.icon,d.value=!1}});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=function(){var e=Object(s["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l.value.imageId){e.next=2;break}return e.abrupt("return");case 2:a("deleteImage",{imageId:l.value.imageId,cb:function(){return l.value.imageId=void 0}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=Object(f["o"])(!1),C=Object(f["o"])(!0),O=Object(f["o"])(!0),S=Object(f["o"])((function(){})),T=function(){var t=Object(s["a"])(u.a.mark((function t(){var n;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(S.value(),x.value&&C.value&&O.value){t.next=3;break}return t.abrupt("return");case 3:n=Object(c["a"])({},l.value),Re["a"].map((function(t){var r;(n[t.name]||null!==(r=e.initialValues)&&void 0!==r&&r.services[t.name])&&(n.services[t.name]=n[t.name],delete n[t.name])})),n.imageId&&delete n.icon,p.value?a("onModifyButton",n):a("onAddButton",n),a("close");case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),E=function(e,t){l.value=Object(c["a"])(Object(c["a"])({},l.value),{},Object(R["a"])({},e,t))};return{fields:h,values:l,isEditing:p,manualValidation:S,setValue:E,onSubmitLink:T,validCommon:x,validBackground:C,validText:O,tabs:m,currentTabIndex:v,imageSrc:g,loadingImage:d,uploadImage:y,deleteImage:k}}}),He=qe,Ue=(n("ca4a"),Object(E["a"])(He,Be,Fe,!1,null,"aa5a24f0",null)),Ve=Ue.exports,ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{key:e.imageSrc,staticClass:"add-banner-modal",attrs:{value:e.show,modal:""}},[n("div",{staticClass:"add-banner-modal__body"},[n("page-title",{on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.$t("Add banner"))+" ")]),n("div",{staticClass:"caption mb-6"},[e._v(e._s(e.$t("The clickable banner will be displayed on your Profile page")))]),e.imageSrc?n("base-image",{staticClass:"add-banner-modal__img mx-auto mb-6",attrs:{src:e.imageSrc,"top-right-icon":""},scopedSlots:e._u([{key:"top-right",fn:function(){return[n("base-icon",{staticClass:"add-banner-modal__img-delete",attrs:{"font-size":20},on:{click:e.onDeleteFile}},[e._v("sci-cross")])]},proxy:!0}],null,!1,1939384242)}):e._e(),n("base-input-file",{staticClass:"mb-3",attrs:{accept:["image",".gif","image/gif"]},on:{input:e.onAddFile},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.selectFile;return[n("base-button",{staticClass:"add-banner-modal__upload-picture-btn mx-auto",attrs:{gray:""},on:{click:r}},[e._v(" "+e._s(e.imageSrc?e.$t("Replace picture"):e.$t("Upload picture"))+" ")])]}}])}),n("base-form",{attrs:{fields:e.fields},on:{validation:function(t){e.valid=t},setManualValidate:function(t){e.manualValidation=t}},model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),n("div",{staticClass:"add-banner-modal__button-wrapper mt-10 pb-4"},[n("base-button",{staticClass:"add-banner-modal__add-link-button",attrs:{loading:e.processing,"full-width":""},on:{click:e.onSubmitBanner}},[e._v(" "+e._s(e.$t("Save"))+" ")])],1)],1)])},$e=[],We=(n("9911"),n("2b3d"),n("bef0")),Ge=Object(f["c"])({name:"AddBannerModal",components:{BaseInput:ie["a"],BaseForm:L["a"],ModalView:We["a"],PageTitle:N["a"],BaseButton:j["a"],BaseImage:A["a"],BaseIcon:P["a"],BaseInputFile:V["a"]},props:{show:{type:Boolean,required:!0},userId:{type:String,required:!0},banner:{type:Object}},setup:function(e,t){var n=t.emit,r=Object(g["a"])(),i=r.uploadThenUpdate,o=r.deleteFile,a=Object(f["o"])(!1),l=Object(f["o"])((function(){})),d=Object(f["o"])(!1),p=Object(f["o"])(!1),m=Object(f["o"])(Object(c["a"])({},e.banner?{title:e.banner.title,link:e.banner.link}:{})),v=Object(f["o"])(null),y=Object(f["o"])(""),k=Object(f["a"])((function(){return!!e.banner})),C=[{name:"title",label:Object(w["a"])("Title"),type:"text",rules:["required"]},{name:"link",label:Object(w["a"])("URL"),type:"text",rules:["required"]}];Object(f["s"])(v,(function(e){URL.revokeObjectURL(y.value),y.value=e?URL.createObjectURL(e):""}));var O=Object(f["a"])((function(){var t,n;return v.value?y.value:null!==(t=e.banner)&&void 0!==t&&t.image&&!p.value?b["a"].getFileUrl(null===(n=e.banner)||void 0===n?void 0:n.image.urlPart):""})),S=function(){var e=Object(s["a"])(u.a.mark((function e(t){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t&&0!==t.length){e.next=2;break}return e.abrupt("return");case 2:v.value=t[0];case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=Object(s["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:v.value=null,p.value=!0;case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,a;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(v.value){t.next=7;break}if(!p.value||null===(r=e.banner)||void 0===r||!r.image){t.next=5;break}return a={subjectId:e.banner.image.fileId.subjectId,type:e.banner.image.fileId.type},t.next=5,o({fileId:a});case 5:t.next=10;break;case 7:return t.next=9,i({fileId:{subjectId:n,type:"banner"},file:v.value});case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=Object(s["a"])(u.a.mark((function t(){var r,i,o,s,f,p,v;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l.value(),a.value&&!d.value){t.next=3;break}return t.abrupt("return");case 3:if(t.prev=3,d.value=!0,r=m.value,i=r.link,o=r.title,s={link:i,title:o,subject:{subjectId:e.userId,subjectType:h["BannerSubjectTypeEnum"].PROFILE_BUTTON}},!k.value||!e.banner){t.next=13;break}return t.next=10,x["a"].BannersProvider.update({data:Object(c["a"])({id:e.banner.id},s)});case 10:f=t.sent,t.next=16;break;case 13:return t.next=15,x["a"].BannersProvider.create({data:s});case 15:f=t.sent;case 16:return t.next=18,E(f.id);case 18:p=t.sent,v={linkType:"banner",title:f.title,url:f.link,bannerId:f.id},k.value?n("onModifyBanner",v,Object(c["a"])(Object(c["a"])({},f),{},{image:p})):n("onAddBanner",v,Object(c["a"])(Object(c["a"])({},f),{},{image:p})),n("close");case 22:return t.prev=22,d.value=!1,t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[3,,22,25]])})));return function(){return t.apply(this,arguments)}}();return{fields:C,values:m,isEditing:k,processing:d,imageSrc:O,onDeleteFile:T,onAddFile:S,onSubmitBanner:_,valid:a,manualValidation:l}}}),Ke=Ge,Je=(n("e6da"),Object(E["a"])(Ke,ze,$e,!1,null,"4af1960c",null)),Ye=Je.exports,Xe=Object(f["c"])({name:"EditFormButtons",components:{BaseSwitch:D["a"],PageTitle:N["a"],BaseSpinner:I["a"],BaseForm:L["a"],BaseButton:j["a"],BaseDraggable:M,BaseIcon:P["a"],BaseImage:A["a"],AddLinkModal:ye,AddAccordionModal:Pe,AddPlaylistModal:Ve,AddBannerModal:Ye},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(v["b"])(Object(f["p"])(e,"user")),n=t.loading,r=t.infoValues,i=t.values,o=t.updateProfileSettings,a=Object(g["a"])(),l=a.findFiles,C=a.deleteFile,O=a.uploadThenUpdate,S=Object(f["o"])(!1),T=Object(f["o"])(!1),E=Object(f["o"])(!1),_=Object(f["o"])(!1),M=Object(f["o"])([]),I=Object(f["o"])([]),j=Object(f["o"])(null),D=Object(f["o"])([]),N=Object(f["o"])(null),A=Object(f["o"])(null),L=Object(f["o"])(0),P=function(e){return["accordion","playlist"].includes(e)},B=Object(f["a"])((function(){return D.value.map((function(e,t){return"accordion"===e.linkType?{linkType:e.linkType,name:"link-"+t,label:e.title,value:e.description,hidden:!!e.hidden}:"playlist"===e.linkType?{linkType:e.linkType,name:"link-"+t,label:Object(w["a"])("Playlist"),value:e.title,hidden:!!e.hidden}:"banner"===e.linkType?{linkType:e.linkType,name:"link-"+t,label:Object(w["a"])("Banner"),value:"link.title",hidden:!!e.hidden,bannerId:e.bannerId,linkAnalyticsId:Object(y["a"])(e)}:{linkType:e.linkType,name:"link-"+t,label:"custom"===e.linkType?e.title:e.linkType,value:"custom"===e.linkType?e.url:e.username,linkAnalyticsId:Object(y["a"])(e),hidden:!!e.hidden}}))})),F=Object(f["a"])((function(){return M.value.reduce((function(e,t){return t.image&&(e[t.id]=b["a"].getFileUrl(t.image.urlPart)),e}),{})})),R=[{name:"expandLinkButtons",type:"switch",label:Object(w["a"])("Show items by default")}];Object(f["s"])(r,(function(e){try{var t=JSON.parse(null===e||void 0===e?void 0:e.links);D.value=t.buttons.map((function(e){return"twitter"!==e.linkType?e:Object(c["a"])(Object(c["a"])({},e),{},{linkType:"x"})})),L.value=t.lastImageId}catch(n){D.value=[]}}));var q=function(){var e=Object(s["a"])(u.a.mark((function e(t){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(s["a"])(u.a.mark((function e(n){var r,i;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,x["a"].BannersProvider.delete({id:t});case 2:r=e.sent,r&&(i=M.value.findIndex((function(e){return e.id===t})),-1!==i&&M.value.splice(i,1)),n();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=Object(s["a"])(u.a.mark((function e(){var t,n;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=D.value.reduce((function(e,t){return"banner"===t.linkType&&e.push(t.bannerId),e}),[]),n=M.value.reduce((function(e,n){return t.includes(n.id)||e.push(q(n.id)),e}),[]),e.next=4,Promise.all(n);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=Object(p["debounce"])((function(){k["a"].emit(m["b"].NOTIFICATION_SHOW,{text:Object(w["a"])("Changes saved"),timeout:1500})}),1e3),V=function(){var t=Object(s["a"])(u.a.mark((function t(){var r,a;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n.value){t.next=2;break}return t.abrupt("return");case 2:return r={expandLinkButtons:i.value.expandLinkButtons},a=JSON.stringify({buttons:D.value,lastImageId:L.value}),t.next=6,o(r);case 6:return t.next=8,x["a"].QuestionaryInfoProvider.update({data:{fields:{userId:e.user.id,links:a}}});case 8:return t.next=10,H();case 10:U();case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),z=function(e){("accordion"===e.linkType||"custom"===e.linkType||"playlist"===e.linkType)&&e.imageId&&e.imageId>L.value&&(L.value=e.imageId),"accordion"===e.linkType&&e.iconImageId&&e.iconImageId>L.value&&(L.value=e.iconImageId)},$=function(){j.value=null,N.value=null,A.value=null},W=function(e){switch(j.value=D.value[e],N.value=e,j.value.linkType){case"accordion":T.value=!0;break;case"playlist":E.value=!0;break;case"banner":if(_.value=!0,"banner"===j.value.linkType){var t,n=j.value.bannerId;A.value=null!==(t=M.value.find((function(e){return e.id===n})))&&void 0!==t?t:null}break;default:S.value=!0;break}},G=function(e,t,n){d["default"].set(D.value[t],"hidden",n),V()},K=function(){S.value=!1,T.value=!1,E.value=!1,_.value=!1,$()},J=function(e){D.value.push(e),z(e),$(),V()},Y=function(e,t){D.value.push(e),M.value.push(t),$(),V()},X=function(e){null!==N.value&&D.value.splice(N.value,1,e),z(e),$(),V()},Q=function(e,t){if(null!==N.value){D.value.splice(N.value,1,e);var n=M.value.findIndex((function(e){return e.id===t.id}));-1!==n&&M.value.splice(n,1,t)}$(),V()},Z=function(e){D.value.splice(e,1),V()},ee=function(){var t=Object(s["a"])(u.a.mark((function t(){return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l({fileIds:[{subjectId:e.user.id,type:"profile_link_image"}]});case 2:I.value=t.sent;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),te=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,i,o,a;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=n.files,i=n.imageId,o=n.cb,a={subjectId:e.user.id,type:"profile_link_image",fileNumber:i},t.next=4,O({fileId:a,file:r[0]});case 4:return t.next=6,ee();case 6:o();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ne=function(){var t=Object(s["a"])(u.a.mark((function t(n){var r,i,o;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=n.imageId,i=n.cb,o={subjectId:e.user.id,type:"profile_link_image",fileNumber:r},t.next=4,C({fileId:o});case 4:i();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),re=function(e){i.value=e,V()},ie=function(){var t=Object(s["a"])(u.a.mark((function t(){return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ee();case 2:return t.next=4,x["a"].BannersProvider.findAll({data:{subject:{subjectId:e.user.id,subjectType:h["BannerSubjectTypeEnum"].PROFILE_BUTTON}}});case 4:return M.value=t.sent,t.next=7,H();case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return ie(),{loading:n,fields:R,values:i,save:V,profileButtons:D,userLinksFields:B,handleLinkInputClick:W,handleHiddenInput:G,isHaveLinkStats:P,removeLink:Z,showAddLinkModal:S,showAddAccordionModal:T,showAddPlaylistModal:E,showAddBannerModal:_,initialButtonValues:j,editBanner:A,bannerImages:F,lastImageId:L,files:I,onAddButtonClose:K,onAddButton:J,onModifyButton:X,onAddBanner:Y,onModifyBanner:Q,uploadImage:te,deleteImage:ne,onFormInput:re}}}),Qe=Xe,Ze=(n("6a9f"),Object(E["a"])(Qe,o,a,!1,null,"5b17131c",null)),et=Ze.exports,tt=function(e){return"buttons"===e}},"2bd9":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u})),n.d(t,"selector",(function(){return d}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"containerRef",attrs:{id:"starshine"}},[n("div",{staticClass:"template shine"})])},i=[],o=n("a6f4"),a=Object(o["c"])({name:"AnimationSparkle",setup:function(){var e=Object(o["o"])(),t=function(t){var n,r=document.querySelectorAll(".template.shine")[0],i=20,o=r.cloneNode(!0);o.style.top=100*Math.random()+"%",o.style.left=100*Math.random()+"%",o.style.animationDelay=Math.random()*i+"s",o.classList.add(t),null===(n=e.value)||void 0===n||n.appendChild(o)};return Object(o["j"])((function(){if(e.value)for(var n=400,r="small",i=0;i<n;i++)r=i%2===0?"small":i%3===0?"medium":"large",t(r)})),{containerRef:e}}}),s=a,c=(n("49f5"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,"5ff08046",null),u=l.exports,d=function(e){return"sparkle"===e}},"2d55":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return M})),n.d(t,"selector",(function(){return I}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Timer Countdown")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):n("base-form",{attrs:{fields:e.fields},on:{validation:function(t){e.isValid=t}},scopedSlots:e._u([{key:"generalColors",fn:function(t){var r=t.field;return[n("div",{staticClass:"edit-form-page-timer__picker-wrapper"},e._l(r.colorFields,(function(t){return n("input-color-picker",{key:t.name,staticClass:" mb-4",attrs:{name:t.name,width:"200px",color:e.formValues[t.name],label:t.label},on:{colorChanged:function(n){e.formValues[t.name]=n}}})})),1)]}},{key:"buttonColors",fn:function(t){var r=t.field;return[n("div",{staticClass:"edit-form-page-timer__picker-wrapper"},e._l(r.colorFields,(function(t){return n("input-color-picker",{key:t.name,staticClass:" mb-4",attrs:{name:t.name,width:"200px",color:e.formValues[t.name],label:t.label},on:{colorChanged:function(n){e.formValues[t.name]=n}}})})),1)]}}]),model:{value:e.formValues,callback:function(t){e.formValues=t},expression:"formValues"}}),n("div",{staticClass:"edit-form-page-timer__save-wrapper"},[n("base-button",{attrs:{"full-width":"",loading:e.loading},on:{click:e.save}},[e._v(e._s(e.$t("Set timer")))])],1)],1)],1)},i=[],o=(n("99af"),n("96cf"),n("1da1")),a=n("5530"),s=n("a34a"),c=n.n(s),l=n("a6f4"),u=n("1212"),d=n("2ef0"),f=n("25d7"),p=n("78f9"),h=n("fe95"),m=n("76da"),v=n("53ca"),g=n("337e");n("f628"),n("90a5"),n("a622"),n("f7f1"),n("7677");function b(e){var t=Object(v["a"])(e);return Object(g["a"])(new Date("string"!==t?e:e+"T00:00:00"))}function y(e){return Object(m["format"])(b(e),"yyyy-MM-dd")}var w=n("a5de"),k=n("93c4"),x=n("1031"),C=n("9310"),O=n("a186"),S=Object(l["c"])({name:"EditFormTimer",components:{BaseButton:C["a"],InputColorPicker:O["a"],BaseForm:k["a"],PageTitle:x["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(f["a"])(Object(l["p"])(e,"user")),n=t.loading,r=t.timerSettings,i=t.getTimerSettings,s=t.updateTimerSettings,v=Object(l["o"])(!1),g=Object(l["o"])(Object(a["a"])(Object(a["a"])({},r.value),{},{eventDate:Object(m["format"])(new Date(r.value.date),"yyyy-MM-dd"),eventTime:Object(m["format"])(new Date(r.value.date),"HH:mm")})),b=Object(l["a"])((function(){return[{name:"showOnProfilePage",type:"switch",label:Object(p["a"])("Show timer on Profile page")},{name:"general",type:"subtitle",label:Object(p["a"])("General")},{name:"eventDate",type:"date",fieldClass:"inline-field caption mr-4",minDate:y(new Date((new Date).setDate((new Date).getDate()))),label:Object(p["a"])("Event date"),rules:["required"]},{name:"eventTime",type:"time",fieldClass:"inline-field caption px-0",label:Object(p["a"])("Event time"),rules:["required"]},{name:"eventTitle",type:"text",label:Object(p["a"])("Title"),maxlength:"50",hint:Object(p["a"])("50 character limit")},{name:"generalColors",fieldClass:"mb-5",colorFields:[{name:"generalBackgroundColor",label:Object(p["a"])("Background color")},{name:"generalTextColor",label:Object(p["a"])("Text color")}]},{name:"buttonStyles",type:"subtitle",label:"Button styles"},{name:"eventText",type:"text",label:"Text",maxlength:"20",hint:Object(p["a"])("20 character limit")},{name:"eventUrl",type:"url",label:"URL"},{name:"buttonColors",fieldClass:"mb-5",colorFields:[{name:"buttonBackgroundColor",label:Object(p["a"])("Background color")},{name:"buttonTextColor",label:Object(p["a"])("Text color")}]}]})),k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;return h["a"].emit(w["b"].NOTIFICATION_SHOW,{text:e?Object(p["a"])(e):Object(p["a"])("Changes saved"),timeout:t})},x=Object(d["debounce"])(Object(o["a"])(c.a.mark((function e(){var t,r;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=Object(m["parse"])("".concat(g.value.eventDate," ").concat(g.value.eventTime),"yyyy-MM-dd HH:mm",new Date),Object(u["a"])(new Date,t)?(k("Event time and date must be set in the future",3e3),v.value=!1):v.value=!0,!n.value&&v.value){e.next=4;break}return e.abrupt("return");case 4:return r={date:t.toISOString(),eventTitle:g.value.eventTitle,generalBackgroundColor:g.value.generalBackgroundColor,generalTextColor:g.value.generalTextColor,eventText:g.value.eventText,eventUrl:g.value.eventUrl,buttonBackgroundColor:g.value.buttonBackgroundColor,buttonTextColor:g.value.buttonTextColor,showOnProfilePage:g.value.showOnProfilePage},e.next=7,s(r);case 7:k();case 8:case"end":return e.stop()}}),e)}))),500),C=function(){var e=Object(o["a"])(c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:g.value=Object(a["a"])(Object(a["a"])({},r.value),{},{eventDate:Object(m["format"])(new Date(r.value.date),"yyyy-MM-dd"),eventTime:Object(m["format"])(new Date(r.value.date),"HH:mm")});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return C(),{fields:b,isValid:v,loading:n,formValues:g,save:x}}}),T=S,E=(n("0e03"),n("2877")),_=Object(E["a"])(T,r,i,!1,null,"6811feff",null),M=_.exports,I=function(e){return"timerEvent"===e}},"2e15":function(e,t,n){"use strict";n("a925")},"2f53":function(e,t,n){"use strict";n("61ff")},"2f5c":function(e,t,n){},"304a":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return H})),n.d(t,"DOMParser",(function(){return pe})),n.d(t,"DOMSerializer",(function(){return Ie})),n.d(t,"Fragment",(function(){return c})),n.d(t,"Mark",(function(){return p})),n.d(t,"MarkType",(function(){return ue})),n.d(t,"Node",(function(){return B})),n.d(t,"NodeRange",(function(){return A})),n.d(t,"NodeType",(function(){return ae})),n.d(t,"ReplaceError",(function(){return h})),n.d(t,"ResolvedPos",(function(){return M})),n.d(t,"Schema",(function(){return de})),n.d(t,"Slice",(function(){return m})),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),a=i.content.slice();return-1==o?a.push(n||e,t):(a[o+1]=t,n&&(a[o]=n)),new r(a)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),a=i.find(e);return o.splice(-1==a?o.length:a,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=r.from(e),e.size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=r.from(e),e.size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r,o=i;function a(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var i=e.child(r),o=t.child(r);if(i!=o){if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(var s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){var c=a(i.content,o.content,n+1);if(null!=c)return c}n+=i.nodeSize}else n+=i.nodeSize}}function s(e,t,n,r){for(var i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};var a=e.child(--i),c=t.child(--o),l=a.nodeSize;if(a!=c){if(!a.sameMarkup(c))return{a:n,b:r};if(a.isText&&a.text!=c.text){var u=0,d=Math.min(a.text.length,c.text.length);while(u<d&&a.text[a.text.length-u-1]==c.text[c.text.length-u-1])u++,n--,r--;return{a:n,b:r}}if(a.content.size||c.content.size){var f=s(a.content,c.content,n-1,r-1);if(f)return f}n-=l,r-=l}else n-=l,r-=l}}var c=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},l={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};c.prototype.nodesBetween=function(e,t,n,r,i){void 0===r&&(r=0);for(var o=0,a=0;a<t;o++){var s=this.content[o],c=a+s.nodeSize;if(c>e&&!1!==n(s,r+a,i,o)&&s.content.size){var l=a+1;s.nodesBetween(Math.max(0,e-l),Math.min(s.content.size,t-l),n,r+l)}a=c}},c.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},c.prototype.textBetween=function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,(function(a,s){a.isText?(i+=a.text.slice(Math.max(e,s)-s,t-s),o=!n):a.isLeaf&&r?(i+="function"===typeof r?r(a):r,o=!n):!o&&a.isBlock&&(i+=n,o=!0)}),0),i},c.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new c(r,this.size+e.size)},c.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var i=0,o=0;o<t;i++){var a=this.content[i],s=o+a.nodeSize;s>e&&((o<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=s}return new c(n,r)},c.prototype.cutByIndex=function(e,t){return e==t?c.empty:0==e&&t==this.content.length?this:new c(this.content.slice(e,t))},c.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new c(r,i)},c.prototype.addToStart=function(e){return new c([e].concat(this.content),this.size+e.nodeSize)},c.prototype.addToEnd=function(e){return new c(this.content.concat(e),this.size+e.nodeSize)},c.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},l.firstChild.get=function(){return this.content.length?this.content[0]:null},l.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},l.childCount.get=function(){return this.content.length},c.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},c.prototype.maybeChild=function(e){return this.content[e]},c.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},c.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),a(this,e,t)},c.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),s(this,e,t,n)},c.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return d(0,e);if(e==this.size)return d(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e||t>0?d(n+1,o):d(n,r);r=o}},c.prototype.toString=function(){return"<"+this.toStringInner()+">"},c.prototype.toStringInner=function(){return this.content.join(", ")},c.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},c.fromJSON=function(e,t){if(!t)return c.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new c(t.map(e.nodeFromJSON))},c.fromArray=function(e){if(!e.length)return c.empty;for(var t,n=0,r=0;r<e.length;r++){var i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new c(t||e,n)},c.from=function(e){if(!e)return c.empty;if(e instanceof c)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new c([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(c.prototype,l);var u={index:0,offset:0};function d(e,t){return u.index=e,u.offset=t,u}function f(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!f(e[r],t[r]))return!1}else{for(var i in e)if(!(i in t)||!f(e[i],t[i]))return!1;for(var o in t)if(!(o in e))return!1}return!0}c.empty=new c([],0);var p=function(e,t){this.type=e,this.attrs=t};function h(e){var t=Error.call(this,e);return t.__proto__=h.prototype,t}p.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t},p.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},p.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},p.prototype.eq=function(e){return this==e||this.type==e.type&&f(this.attrs,e.attrs)},p.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},p.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},p.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},p.setFrom=function(e){if(!e||0==e.length)return p.none;if(e instanceof p)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},p.none=[],h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.name="ReplaceError";var m=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},v={size:{configurable:!0}};function g(e,t,n){var r=e.findIndex(t),i=r.index,o=r.offset,a=e.maybeChild(i),s=e.findIndex(n),c=s.index,l=s.offset;if(o==t||a.isText){if(l!=n&&!e.child(c).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=c)throw new RangeError("Removing non-flat range");return e.replaceChild(i,a.copy(g(a.content,t-o-1,n-o-1)))}function b(e,t,n,r){var i=e.findIndex(t),o=i.index,a=i.offset,s=e.maybeChild(o);if(a==t||s.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));var c=b(s.content,t-a-1,n);return c&&e.replaceChild(o,s.copy(c))}function y(e,t,n){if(n.openStart>e.depth)throw new h("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new h("Inconsistent open depths");return w(e,t,n,0)}function w(e,t,n,r){var i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){var a=w(e,t,n,r+1);return o.copy(o.content.replaceChild(i,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var s=_(n,e),c=s.start,l=s.end;return S(o,T(e,c,l,t,r))}var u=e.parent,d=u.content;return S(u,d.cut(0,e.parentOffset).append(n.content).append(d.cut(t.parentOffset)))}return S(o,E(e,t,r))}function k(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function x(e,t,n){var r=e.node(n);return k(r,t.node(n)),r}function C(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function O(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(C(e.nodeAfter,r),o++));for(var s=o;s<a;s++)C(i.child(s),r);t&&t.depth==n&&t.textOffset&&C(t.nodeBefore,r)}function S(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function T(e,t,n,r,i){var o=e.depth>i&&x(e,t,i+1),a=r.depth>i&&x(n,r,i+1),s=[];return O(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(k(o,a),C(S(o,T(e,t,n,r,i+1)),s)):(o&&C(S(o,E(e,t,i+1)),s),O(t,n,i,s),a&&C(S(a,E(n,r,i+1)),s)),O(r,null,i,s),new c(s)}function E(e,t,n){var r=[];if(O(null,e,n,r),e.depth>n){var i=x(e,t,n+1);C(S(i,E(e,t,n+1)),r)}return O(t,null,n,r),new c(r)}function _(e,t){for(var n=t.depth-e.openStart,r=t.node(n),i=r.copy(e.content),o=n-1;o>=0;o--)i=t.node(o).copy(c.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}v.size.get=function(){return this.content.size-this.openStart-this.openEnd},m.prototype.insertAt=function(e,t){var n=b(this.content,e+this.openStart,t,null);return n&&new m(n,this.openStart,this.openEnd)},m.prototype.removeBetween=function(e,t){return new m(g(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},m.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},m.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},m.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},m.fromJSON=function(e,t){if(!t)return m.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new m(c.fromJSON(e,t.content),n,r)},m.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new m(e,n,r)},Object.defineProperties(m.prototype,v),m.empty=new m(c.empty,0,0);var M=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},I={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};M.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},I.parent.get=function(){return this.node(this.depth)},I.doc.get=function(){return this.node(0)},M.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},M.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},M.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},M.prototype.start=function(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1},M.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},M.prototype.before=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},M.prototype.after=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},I.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},I.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},I.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},M.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,i=0;i<e;i++)r+=n.child(i).nodeSize;return r},M.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return p.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var i=n;n=r,r=i}for(var o=n.marks,a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o},M.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n},M.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},M.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new A(this,e,n)},M.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},M.prototype.max=function(e){return e.pos>this.pos?e:this},M.prototype.min=function(e){return e.pos<this.pos?e:this},M.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},M.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,i=t,o=e;;){var a=o.content.findIndex(i),s=a.index,c=a.offset,l=i-c;if(n.push(o,s,r+c),!l)break;if(o=o.child(s),o.isText)break;i=l-1,r+=c+1}return new M(t,n,i)},M.resolveCached=function(e,t){for(var n=0;n<j.length;n++){var r=j[n];if(r.pos==t&&r.doc==e)return r}var i=j[D]=M.resolve(e,t);return D=(D+1)%N,i},Object.defineProperties(M.prototype,I);var j=[],D=0,N=12,A=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},L={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};L.start.get=function(){return this.$from.before(this.depth+1)},L.end.get=function(){return this.$to.after(this.depth+1)},L.parent.get=function(){return this.$from.node(this.depth)},L.startIndex.get=function(){return this.$from.index(this.depth)},L.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(A.prototype,L);var P=Object.create(null),B=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||c.empty,this.marks=r||p.none},F={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};F.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},F.childCount.get=function(){return this.content.childCount},B.prototype.child=function(e){return this.content.child(e)},B.prototype.maybeChild=function(e){return this.content.maybeChild(e)},B.prototype.forEach=function(e){this.content.forEach(e)},B.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},B.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},F.textContent.get=function(){return this.textBetween(0,this.content.size,"")},B.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},F.firstChild.get=function(){return this.content.firstChild},F.lastChild.get=function(){return this.content.lastChild},B.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},B.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},B.prototype.hasMarkup=function(e,t,n){return this.type==e&&f(this.attrs,t||e.defaultAttrs||P)&&p.sameSet(this.marks,n||p.none)},B.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},B.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},B.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},B.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return m.empty;var r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),s=r.node(o),c=s.content.cut(r.pos-a,i.pos-a);return new m(c,r.depth-o,i.depth-o)},B.prototype.replace=function(e,t,n){return y(this.resolve(e),this.resolve(t),n)},B.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,i=n.offset;if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}},B.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},B.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}},B.prototype.resolve=function(e){return M.resolveCached(this,e)},B.prototype.resolveNoCache=function(e){return M.resolve(this,e)},B.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},F.isBlock.get=function(){return this.type.isBlock},F.isTextblock.get=function(){return this.type.isTextblock},F.inlineContent.get=function(){return this.type.inlineContent},F.isInline.get=function(){return this.type.isInline},F.isText.get=function(){return this.type.isText},F.isLeaf.get=function(){return this.type.isLeaf},F.isAtom.get=function(){return this.type.isAtom},B.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),q(this.marks,e)},B.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},B.prototype.canReplace=function(e,t,n,r,i){void 0===n&&(n=c.empty),void 0===r&&(r=0),void 0===i&&(i=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s<i;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0},B.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd},B.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},B.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=p.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!p.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},B.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},B.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=c.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(B.prototype,F);var R=function(e){function t(t,n,r,i){if(e.call(this,t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):q(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(B);function q(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var H=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},U={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};H.parse=function(e,t){var n=new V(e,t);if(null==n.next)return H.empty;var r=$(n);n.next&&n.err("Unexpected trailing text");var i=te(Q(r));return ne(i,n),i},H.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},H.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r},U.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},U.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},H.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},H.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];function i(o,a){var s=o.matchFragment(e,n);if(s&&(!t||s.validEnd))return c.from(a.map((function(e){return e.createAndFill()})));for(var l=0;l<o.next.length;l+=2){var u=o.next[l],d=o.next[l+1];if(!u.isText&&!u.hasRequiredAttrs()&&-1==r.indexOf(d)){r.push(d);var f=i(d,a.concat(u));if(f)return f}}}return i(this,[])},H.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},H.prototype.computeWrapping=function(e){var t=Object.create(null),n=[{match:this,type:null,via:null}];while(n.length){var r=n.shift(),i=r.match;if(i.matchType(e)){for(var o=[],a=r;a.type;a=a.via)o.push(a.type);return o.reverse()}for(var s=0;s<i.next.length;s+=2){var c=i.next[s];c.isLeaf||c.hasRequiredAttrs()||c.name in t||r.type&&!i.next[s+1].validEnd||(n.push({match:c.contentMatch,type:c,via:r}),t[c.name]=!0)}}},U.edgeCount.get=function(){return this.next.length>>1},H.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},H.prototype.toString=function(){var e=[];function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}return t(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",i=0;i<t.next.length;i+=2)r+=(i?", ":"")+t.next[i].name+"->"+e.indexOf(t.next[i+1]);return r})).join("\n")},Object.defineProperties(H.prototype,U),H.empty=new H(!0);var V=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},z={next:{configurable:!0}};function $(e){var t=[];do{t.push(W(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function W(e){var t=[];do{t.push(G(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function G(e){for(var t=X(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=J(e,t)}return t}function K(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function J(e,t){var n=K(e),r=n;return e.eat(",")&&(r="}"!=e.next?K(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function Y(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function X(e){if(e.eat("(")){var t=$(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=Y(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}function Q(e){var t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach((function(e){return e.to=t}))}function o(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(o(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var s=o(e.exprs[a],t);if(a==e.exprs.length-1)return s;i(s,t=n())}else{if("star"==e.type){var c=n();return r(t,c),i(o(e.expr,c),c),[r(c)]}if("plus"==e.type){var l=n();return i(o(e.expr,t),l),i(o(e.expr,l),l),[r(l)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){for(var u=t,d=0;d<e.min;d++){var f=n();i(o(e.expr,u),f),u=f}if(-1==e.max)i(o(e.expr,u),u);else for(var p=e.min;p<e.max;p++){var h=n();r(u,h),i(o(e.expr,u),h),u=h}return[r(u)]}if("name"==e.type)return[r(t,null,e.value)]}}}function Z(e,t){return t-e}function ee(e,t){var n=[];return r(t),n.sort(Z);function r(t){var i=e[t];if(1==i.length&&!i[0].term)return r(i[0].to);n.push(t);for(var o=0;o<i.length;o++){var a=i[o],s=a.term,c=a.to;s||-1!=n.indexOf(c)||r(c)}}}function te(e){var t=Object.create(null);return n(ee(e,0));function n(r){var i=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var o=i.indexOf(n),a=o>-1&&i[o+1];ee(e,r).forEach((function(e){a||i.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var o=t[r.join(",")]=new H(r.indexOf(e.length-1)>-1),a=0;a<i.length;a+=2){var s=i[a+1].sort(Z);o.next.push(i[a],t[s.join(",")]||n(s))}return o}}function ne(e,t){for(var n=0,r=[e];n<r.length;n++){for(var i=r[n],o=!i.validEnd,a=[],s=0;s<i.next.length;s+=2){var c=i.next[s],l=i.next[s+1];a.push(c.name),!o||c.isText||c.hasRequiredAttrs()||(o=!1),-1==r.indexOf(l)&&r.push(l)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function re(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ie(e,t){var n=Object.create(null);for(var r in e){var i=t&&t[r];if(void 0===i){var o=e[r];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+r);i=o.default}n[r]=i}return n}function oe(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new ce(e[n]);return t}z.next.get=function(){return this.tokens[this.pos]},V.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},V.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(V.prototype,z);var ae=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=oe(n.attrs),this.defaultAttrs=re(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},se={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};se.isInline.get=function(){return!this.isBlock},se.isTextblock.get=function(){return this.isBlock&&this.inlineContent},se.isLeaf.get=function(){return this.contentMatch==H.empty},se.isAtom.get=function(){return this.isLeaf||this.spec.atom},se.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},ae.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},ae.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},ae.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:ie(this.attrs,e)},ae.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new B(this,this.computeAttrs(e),c.from(t),p.setFrom(n))},ae.prototype.createChecked=function(e,t,n){if(t=c.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new B(this,this.computeAttrs(e),t,p.setFrom(n))},ae.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),t=c.from(t),t.size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var i=this.contentMatch.matchFragment(t).fillBefore(c.empty,!0);return i?new B(this,e,t.append(i),p.setFrom(n)):null},ae.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},ae.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},ae.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},ae.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:p.empty:e},ae.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new ae(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(ae.prototype,se);var ce=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},le={isRequired:{configurable:!0}};le.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(ce.prototype,le);var ue=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=oe(r.attrs),this.rank=t,this.excluded=null;var i=re(this.attrs);this.instance=i&&new p(this,i)};ue.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,ie(this.attrs,e))},ue.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,i){return n[e]=new ue(e,r++,t,i)})),n},ue.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},ue.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},ue.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var de=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=o.from(e.nodes),this.spec.marks=o.from(e.marks),this.nodes=ae.compile(this.spec.nodes,this),this.marks=ue.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var i=this.nodes[r],a=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[a]||(n[a]=H.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?fe(this,s.split(" ")):""!=s&&i.inlineContent?null:[]}for(var c in this.marks){var l=this.marks[c],u=l.spec.excludes;l.excluded=null==u?[l]:""==u?[]:fe(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function fe(e,t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=e.marks[i],a=o;if(o)n.push(o);else for(var s in e.marks){var c=e.marks[s];("_"==i||c.spec.group&&c.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}de.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ae))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},de.prototype.text=function(e,t){var n=this.nodes.text;return new R(n,n.defaultAttrs,e,p.setFrom(t))},de.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},de.prototype.nodeFromJSON=function(e){return B.fromJSON(this,e)},de.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},de.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var pe=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};pe.prototype.parse=function(e,t){void 0===t&&(t={});var n=new xe(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},pe.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new xe(this,t,!0);return n.addAll(e,null,t.from,t.to),m.maxOpen(n.finish())},pe.prototype.matchTag=function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var i=this.tags[r];if(Se(e,i.tag)&&(void 0===i.namespace||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){var o=i.getAttrs(e);if(!1===o)continue;i.attrs=o}return i}}},pe.prototype.matchStyle=function(e,t,n,r){for(var i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){var o=this.styles[i];if(!(0!=o.style.indexOf(e)||o.context&&!n.matchesContext(o.context)||o.style.length>e.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var a=o.getAttrs(t);if(!1===a)continue;o.attrs=a}return o}}},pe.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var i=t[r],o=null==i.priority?50:i.priority;if(o<n)break}t.splice(r,0,e)}var r=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=Ee(e)),e.mark=t}))};for(var i in e.marks)r(i);var o=function(t){var r=e.nodes[a].spec.parseDOM;r&&r.forEach((function(e){n(e=Ee(e)),e.node=a}))};for(var a in e.nodes)o();return t},pe.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new pe(e,pe.schemaRules(e)))};var he={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},me={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ve={ol:!0,ul:!0},ge=1,be=2,ye=4;function we(e,t,n){return null!=t?(t?ge:0)|("full"===t?be:0):e&&"pre"==e.whitespace?ge|be:n&~ye}var ke=function(e,t,n,r,i,o,a){this.type=e,this.attrs=t,this.solid=i,this.match=o||(a&ye?null:e.contentMatch),this.options=a,this.content=[],this.marks=n,this.activeMarks=p.none,this.pendingMarks=r,this.stashMarks=[]};ke.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(c.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},ke.prototype.finish=function(e){if(!(this.options&ge)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=c.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(c.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},ke.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},ke.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):_e(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}},ke.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!he.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var xe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,i=t.topNode,o=we(null,t.preserveWhitespace,0)|(n?ye:0);r=i?new ke(i.type,i.attrs,p.none,p.none,!0,t.topMatch||i.type.contentMatch,o):new ke(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,o),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},Ce={top:{configurable:!0},currentPos:{configurable:!0}};function Oe(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&ve.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}function Se(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Te(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];while(t=n.exec(e))r.push(t[1],t[2].trim());return r}function Ee(e){var t={};for(var n in e)t[n]=e[n];return t}function _e(e,t){var n=t.schema.nodes,r=function(r){var i=n[r];if(i.allowsMarkType(e)){var o=[],a=function(e){o.push(e);for(var n=0;n<e.edgeCount;n++){var r=e.edge(n),i=r.type,s=r.next;if(i==t)return!0;if(o.indexOf(s)<0&&a(s))return!0}};return a(i.contentMatch)?{v:!0}:void 0}};for(var i in n){var o=r(i);if(o)return o.v}}function Me(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}Ce.top.get=function(){return this.nodes[this.open]},xe.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(Te(t)):null,r=this.top;if(null!=n)for(var i=0;i<n.length;i++)this.addPendingMark(n[i]);if(this.addElement(e),null!=n)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],r)}},xe.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(n.options&be||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(n.options&ge)t=n.options&be?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&"BR"==i.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},xe.prototype.addElement=function(e,t){var n,r=e.nodeName.toLowerCase();ve.hasOwnProperty(r)&&this.parser.normalizeLists&&Oe(e);var i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(i?i.ignore:me.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);var o,a=this.top,s=this.needsBlock;if(he.hasOwnProperty(r))o=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),o&&this.sync(a),this.needsBlock=s}else this.addElementByRule(e,i,!1===i.consuming?n:null)},xe.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},xe.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},xe.prototype.readStyles=function(e){var t=p.none;e:for(var n=0;n<e.length;n+=2)for(var r=null;;){var i=this.parser.matchStyle(e[n],e[n+1],this,r);if(!i)continue e;if(i.ignore)return null;if(t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;r=i}return t},xe.prototype.addElementByRule=function(e,t,n){var r,i,o,a,s=this;t.node?(i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):r=this.enter(i,t.attrs,t.preserveWhitespace)):(o=this.parser.schema.marks[t.mark],a=o.create(t.attrs),this.addPendingMark(a));var c=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return s.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,r)}r&&(this.sync(c),this.open--),a&&this.removePendingMark(a,c)},xe.prototype.addAll=function(e,t,n,r){for(var i=n||0,o=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o),t&&he.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,i)},xe.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(var a=0;a<t.length;a++)this.enterInner(t[a],null,!1);return!0},xe.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,i=0;i<e.marks.length;i++)n.type&&!n.type.allowsMarkType(e.marks[i].type)||(r=e.marks[i].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},xe.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},xe.prototype.enterInner=function(e,t,n,r){this.closeExtra();var i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e,t);var o=we(e,r,i.options);i.options&ye&&0==i.content.length&&(o|=ye),this.nodes.push(new ke(e,t,i.activeMarks,i.pendingMarks,n,null,o)),this.open++},xe.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},xe.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},xe.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},Ce.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},xe.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},xe.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},xe.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){var i=t.compareDocumentPosition(this.find[r].node);i&(n?2:4)&&(this.find[r].pos=this.currentPos)}},xe.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},xe.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=function(e,s){for(;e>=0;e--){var c=n[e];if(""==c){if(e==n.length-1||0==e)continue;for(;s>=o;s--)if(a(e-1,s))return!0;return!1}var l=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!l||l.name!=c&&-1==l.groups.indexOf(c))return!1;s--}return!0};return a(n.length-1,this.open)},xe.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}},xe.prototype.addPendingMark=function(e){var t=Me(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},xe.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n],i=r.pendingMarks.lastIndexOf(e);if(i>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var o=r.popFromStashMark(e);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}},Object.defineProperties(xe.prototype,Ce);var Ie=function(e,t){this.nodes=e||{},this.marks=t||{}};function je(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function De(e){return e.document||window.document}Ie.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=De(t).createDocumentFragment());var i=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);var n=0,a=0;while(n<o.length&&a<e.marks.length){var s=e.marks[a];if(r.marks[s.type.name]){if(!s.eq(o[n])||!1===s.type.spec.spanning)break;n+=2,a++}else a++}while(n<o.length)i=o.pop(),o.pop();while(a<e.marks.length){var c=e.marks[a++],l=r.serializeMark(c,e.isInline,t);l&&(o.push(c,i),i.appendChild(l.dom),i=l.contentDOM||l.dom)}}i.appendChild(r.serializeNodeInner(e,t))})),n},Ie.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=Ie.renderSpec(De(t),this.nodes[e.type.name](e)),r=n.dom,i=n.contentDOM;if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,i,t):this.serializeFragment(e.content,t,i)}return r},Ie.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n},Ie.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&Ie.renderSpec(De(n),r(e,t))},Ie.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r=t[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));var o=null,a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],c=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var l in c=2,s)if(null!=s[l]){var u=l.indexOf(" ");u>0?a.setAttributeNS(l.slice(0,u),l.slice(u+1),s[l]):a.setAttribute(l,s[l])}for(var d=c;d<t.length;d++){var f=t[d];if(0===f){if(d<t.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var p=Ie.renderSpec(e,f,n),h=p.dom,m=p.contentDOM;if(a.appendChild(h),m){if(o)throw new RangeError("Multiple content holes");o=m}}return{dom:a,contentDOM:o}},Ie.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ie(this.nodesFromSchema(e),this.marksFromSchema(e)))},Ie.nodesFromSchema=function(e){var t=je(e.nodes);return t.text||(t.text=function(e){return e.text}),t},Ie.marksFromSchema=function(e){return je(e.marks)}},"30cf":function(e,t,n){},3135:function(e,t,n){"use strict";n("3448")},3148:function(e,t,n){"use strict";n("2b40")},"321e":function(e,t,n){"use strict";var r=[{name:"spotify",label:"Spotify",appendIcon:"sci-color-spotify",autocomplete:"off"},{name:"apple_music",label:"Apple Music",appendIcon:"sci-color-apple_music",autocomplete:"off"},{name:"itunes",label:"iTunes",appendIcon:"sci-color-itunes",autocomplete:"off"},{name:"deezer",label:"Deezer",appendIcon:"sci-color-deezer",autocomplete:"off"},{name:"soundcloud",label:"SoundCloud",appendIcon:"sci-color-soundcloud",autocomplete:"off"},{name:"youTube",label:"YouTube",appendIcon:"sci-color-youtube",autocomplete:"off"},{name:"google_play",label:"GooglePlay",appendIcon:"sci-color-google_play",autocomplete:"off"},{name:"napster",label:"Napster",appendIcon:"sci-color-napster",autocomplete:"off"},{name:"amazon_music",label:"Amazon Music",appendIcon:"sci-color-amazon_music",autocomplete:"off"},{name:"groove",label:"Groove",appendIcon:"sci-color-groove",autocomplete:"off"},{name:"reverbnation",label:"ReverbNation",appendIcon:"sci-color-reverbnation",autocomplete:"off"},{name:"seven_digital",label:"7digital",appendIcon:"sci-color-7digital",autocomplete:"off"}];t["a"]=r},3422:function(e,t,n){},3448:function(e,t,n){},"35e8":function(e,t,n){"use strict";n("b528")},3622:function(e,t,n){},"37dc":function(e,t,n){"use strict";n("f2b0")},"37dcc":function(e,t,n){"use strict";n.r(t),n.d(t,"selector",(function(){return f})),n.d(t,"default",(function(){return d}));n("a9e3");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stream-message"},[n("base-avatar",{staticClass:"stream-message__avatar mr-4",attrs:{"hide-online-status":"","hide-broadcasting":"",size:40,user:e.message.senderUser}}),n("div",{staticClass:"stream-message__content"},[n("div",{staticClass:"stream-message__name truncate-ellipsis bold"},[e._v(e._s(e.message.senderUser.screenName))]),n("div",{staticClass:"stream-message__text"},[e._v(e._s(e.message.text))])])],1)},i=[],o=n("a6f4"),a=n("7fc7"),s=Object(o["c"])({name:"StreamMessage",components:{BaseAvatar:a["a"]},props:{message:{type:Object,required:!0}}}),c=s,l=(n("2e15"),n("2877")),u=Object(l["a"])(c,r,i,!1,null,"0ea44905",null),d=u.exports;function f(e){return Number(e.senderId)>0}},3881:function(e,t,n){var r={"./MessageItem/index.ts":"37dcc","./MessageTip/index.ts":"880e"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="3881"},"38c5":function(e,t,n){},3966:function(e,t,n){},"39e6":function(e,t,n){},"3ad6":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u})),n.d(t,"selector",(function(){return d}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"hearts"},[n("svg",{ref:"containerRef",staticClass:"hearts__container",attrs:{id:"hearts",viewBox:"-600 -400 1200 800",preserveAspectRatio:"xMidYMid slice"}},[n("defs",[n("symbol",{attrs:{id:"heart",viewBox:"-69 -16 138 138"}},[n("path",{attrs:{d:"M0,12C 50,-30 110,50 0,120 C-110,50 -50,-30 0,12z"}})])])])])},i=[],o=n("a6f4"),a=Object(o["c"])({name:"AnimationHearts",setup:function(){var e=Object(o["o"])([]),t=["#e03776","#8f3e98","#4687bf","#3bab6f","#f9c25e","#f47274"],n="http://www.w3.org/2000/svg",r="http://www.w3.org/1999/xlink",i=Object(o["o"])(),a=function(o){var a,s=document.createElementNS(n,"use");s.n=o,s.setAttributeNS(r,"xlink:href","#heart"),s.setAttributeNS(null,"transform","scale(".concat(s.n,")")),s.setAttributeNS(null,"fill",t[o%t.length]),s.setAttributeNS(null,"x","-69"),s.setAttributeNS(null,"y","-69"),s.setAttributeNS(null,"width","138"),s.setAttributeNS(null,"height","138"),e.value.push(s),null===(a=i.value)||void 0===a||a.appendChild(s)};function s(){window.requestAnimationFrame(s);for(var t=0;t<e.value.length;t++){var n;e.value[t].n<18?e.value[t].n+=.01:(e.value[t].n=0,null===(n=i.value)||void 0===n||n.appendChild(e.value[t])),e.value[t].setAttributeNS(null,"transform","scale(".concat(e.value[t].n,")"))}}return Object(o["j"])((function(){if(i.value){for(var e=18;e>=0;e--)a(e);s()}})),{containerRef:i}}}),s=a,c=(n("bfb5"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,"1a8d613a",null),u=l.exports,d=function(e){return"hearts"===e}},"3b4f":function(e,t,n){"use strict";n("ed54")},"3b50":function(e,t,n){},4052:function(e,t,n){"use strict";n("3422")},"411c":function(e,t,n){"use strict";n("750c")},"455e":function(e,t,n){"use strict";n("c114")},4580:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",e._g({staticClass:"base-icon-button",on:{click:function(e){return e.currentTarget.blur()}}},e.$listeners),[n("base-icon",{attrs:{"font-size":e.fontSize,color:e.color}},[e._t("default",(function(){return[e._v("sci-dots-vertical")]}))],2)],1)},i=[],o=(n("a9e3"),n("a6f4")),a=n("9058"),s=Object(o["c"])({name:"BaseIconButton",components:{BaseIcon:a["a"]},props:{fontSize:{type:[String,Number]},color:{type:String}}}),c=s,l=(n("ccf0"),n("2877")),u=Object(l["a"])(c,r,i,!1,null,null,null),d=u.exports},4606:function(e,t,n){"use strict";n("947a")},"46ae":function(e,t,n){"use strict";n("563b")},4797:function(e,t,n){"use strict";n("7cf0")},"49f5":function(e,t,n){"use strict";n("bb6c")},"4bfb":function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.show,expression:"!show"}]},[e._t("default",null,{openerIcon:e.openerIcon,show:e.show,enable:e.activateTip,activator:e.toggleShow})],2),e.activateTip&&e.show?n("div",{staticClass:"tip-controller",class:{__transparent:e.transparent}},[n("base-input",{staticClass:" tip-controller__input message-input",class:{__send:e.allowSend,__transparent:e.transparent},attrs:{fieldClass:"tip-controller__input-field",autofocus:"",placeholder:"15",name:"amount",value:e.tipValue,disabled:e.processing,autocomplete:"off",type:"tel",maxlength:"8","append-icon":"sci-send","mask-opts":{showMaskOnFocus:!1,showMaskOnHover:!1,regex:"\\d*"}},on:{input:e.tipValueInput,submit:e.submit,"click:appendIcon":e.submit},scopedSlots:e._u([{key:"prependIcon",fn:function(){return[n("div",{staticClass:"tip-controller__symbol caption"},[e._v(e._s(e.currencySymbol))])]},proxy:!0},{key:"appendIcon",fn:function(){return[e.processing?n("base-spinner",{staticClass:"message-input__progress-bar",attrs:{size:"24px"}}):e._e()]},proxy:!0}],null,!1,32039615)}),n("base-icon-button",{staticClass:"tip-controller__closer ml-2",attrs:{"font-size":"24px"},on:{click:e.toggleShow}},[e._v("sci-keyboard")])],1):e._e(),n("paid-action-error",{model:{value:e.showPaidError,callback:function(t){e.showPaidError=t},expression:"showPaidError"}})],1)},i=[],o=(n("d3b7"),n("25f0"),n("96cf"),n("1da1")),a=n("a34a"),s=n.n(a),c=n("a6f4"),l=n("9b43"),u=n("4afc"),d=n("ff07"),f=n("a32c"),p=n("556c"),h=n("d70b"),m=n("9310"),v=n("75d7"),g=n("efd0"),b=n("9058"),y=n("4580"),w=n("6073"),k="{com.scrile.money.validation.SpendingBalanceValidator.message}",x=Object(c["c"])({name:"TipController",components:{BaseSendMessage:v["a"],BaseInput:g["a"],BaseButton:m["a"],BaseIcon:b["a"],BaseIconButton:y["a"],PaidActionError:w["a"]},props:{threadId:{type:String},transparent:{type:Boolean,default:!1}},setup:function(e){var t=Object(c["f"])("messageData",{user:null}),n=Object(c["a"])((function(){var e,n;return null!==(e=null===(n=t.user)||void 0===n?void 0:n.id)&&void 0!==e?e:""})),r=Object(c["o"])(""),i=Object(c["o"])(!1),a=Object(f["c"])(Object(f["d"])()),m=Object(c["a"])((function(){return 0!==r.value.length&&+r.value>0})),v=Object(c["o"])(!1),g=function(){return v.value=!v.value};Object(c["s"])(v,(function(){r.value=""}));var b=Object(c["o"])(!1),y=function(e){var t=+e;isNaN(t)||0===t?r.value="":r.value=t.toString()},w=function(){var t=Object(o["a"])(s.a.mark((function t(){var o;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.value&&m.value){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,i.value=!0,o=r.value,d["a"].TipProvider.setReceiveErrors(!1),t.next=8,d["a"].TipProvider.create({data:{recipientId:n.value,amount:+o,threadId:e.threadId}});case 8:r.value="",v.value=!1,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](2),Object(p["a"])(t.t0,(function(e){var t;return(null===(t=e.details)||void 0===t?void 0:t.messageTemplate)===k}),(function(){return b.value=!0}));case 15:return t.prev=15,i.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})));return function(){return t.apply(this,arguments)}}(),x=Object(u["a"])(),C=x.authUser,O=Object(c["a"])((function(){var e,n;return Object(l["checkRole"])((null===(e=C.value)||void 0===e?void 0:e.role)||"",h["a"].userRegistrationRole)&&h["a"].featureTipping&&Object(l["checkRole"])((null===(n=t.user)||void 0===n?void 0:n.role)||"","creator")})),S=Object(c["a"])((function(){return v.value?"sci-close":"sci-tip"}));return{currencySymbol:a,tipValue:r,tipValueInput:y,allowSend:m,processing:i,submit:w,activateTip:O,openerIcon:S,show:v,toggleShow:g,showPaidError:b}}}),C=x,O=(n("5b13"),n("2877")),S=Object(O["a"])(C,r,i,!1,null,"4f04fcd7",null),T=S.exports},"4c32":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u})),n.d(t,"selector",(function(){return d}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"containerRef",staticClass:"bubbles"},[n("div",{staticClass:"bubbles__bubble"})])},i=[],o=n("a6f4"),a=Object(o["c"])({name:"AnimationBubble",setup:function(){var e=Object(o["o"])(),t=function(){var e=document.createElement("div");return e.innerHTML='<div class="bubbles__bubble"/>',e.firstChild};return Object(o["j"])((function(){if(e.value){e.value.style.background="rgb(0,0,0)";for(var n=0;n<=10;n++){var r=t();r.style.top=100*Math.random()+"%",r.style.left=100*Math.random()+"%",r.style.animationDelay=Math.random()+"s",e.value.appendChild(r)}}})),{containerRef:e}}}),s=a,c=(n("debc"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,null,null),u=l.exports,d=function(e){return"bubble"===e}},"4c88":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("b0c0"),n("a9e3"),n("ac1f"),n("841c");var r=n("5530"),i=n("2909"),o=(n("96cf"),n("1da1")),a=n("a34a"),s=n.n(a),c=n("ff07"),l=n("d70b");function u(e,t,n){return d.apply(this,arguments)}function d(){return d=Object(o["a"])(s.a.mark((function e(t,n,o){var a,u,d,f,p,h,m;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=Number(t.params.userId),!isNaN(a)&&0!==a){e.next=12;break}return d=t.params.username,f=d?{usernames:[d]}:{id:Object(i["a"])(null!==l["a"].soloCreatorId?[l["a"].soloCreatorId]:[])},e.next=6,c["a"].UserPublicDataProvider.search({data:f});case 6:return p=e.sent,h=null!==(u=p.result[0])&&void 0!==u?u:null,o(h?Object(r["a"])(Object(r["a"])({},t),{},{name:null!==(m=t.name)&&void 0!==m?m:void 0,params:Object(r["a"])(Object(r["a"])({},t.params),{},{userId:h.id})}):{name:"home"}),e.abrupt("return");case 12:o();case 13:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}},"4d70":function(e,t,n){},"4d90":function(e,t,n){"use strict";var r=n("23e7"),i=n("0ccb").start,o=n("9a0c");r({target:"String",proto:!0,forced:o},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4fa5":function(e,t,n){},"4fe8":function(e,t,n){},"529b":function(e,t,n){},"52ae":function(e,t,n){},5313:function(e,t,n){"use strict";n.r(t),n.d(t,"AllSelection",(function(){return p})),n.d(t,"EditorState",(function(){return S})),n.d(t,"NodeSelection",(function(){return d})),n.d(t,"Plugin",(function(){return M})),n.d(t,"PluginKey",(function(){return D})),n.d(t,"Selection",(function(){return a})),n.d(t,"SelectionRange",(function(){return c})),n.d(t,"TextSelection",(function(){return l})),n.d(t,"Transaction",(function(){return w}));var r=n("304a"),i=n("0ac0"),o=Object.create(null),a=function(e,t,n){this.ranges=n||[new c(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},s={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};s.anchor.get=function(){return this.$anchor.pos},s.head.get=function(){return this.$head.pos},s.from.get=function(){return this.$from.pos},s.to.get=function(){return this.$to.pos},s.$from.get=function(){return this.ranges[0].$from},s.$to.get=function(){return this.ranges[0].$to},s.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},a.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},a.prototype.replace=function(e,t){void 0===t&&(t=r["Slice"].empty);for(var n=t.content.lastChild,i=null,o=0;o<t.openEnd;o++)i=n,n=n.lastChild;for(var a=e.steps.length,s=this.ranges,c=0;c<s.length;c++){var l=s[c],u=l.$from,d=l.$to,f=e.mapping.slice(a);e.replaceRange(f.map(u.pos),f.map(d.pos),c?r["Slice"].empty:t),0==c&&v(e,a,(n?n.isInline:i&&i.isTextblock)?-1:1)}},a.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,i=0;i<r.length;i++){var o=r[i],a=o.$from,s=o.$to,c=e.mapping.slice(n),l=c.map(a.pos),u=c.map(s.pos);i?e.deleteRange(l,u):(e.replaceRangeWith(l,u,t),v(e,n,t.isInline?-1:1))}},a.findFrom=function(e,t,n){var r=e.parent.inlineContent?new l(e):m(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var i=e.depth-1;i>=0;i--){var o=t<0?m(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):m(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(o)return o}},a.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))},a.atStart=function(e){return m(e,e,0,0,1)||new p(e)},a.atEnd=function(e){return m(e,e,e.content.size,e.childCount,-1)||new p(e)},a.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=o[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},a.jsonID=function(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t},a.prototype.getBookmark=function(){return l.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(a.prototype,s),a.prototype.visible=!0;var c=function(e,t){this.$from=e,this.$to=t},l=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,r){var i=n.resolve(r.map(this.head));if(!i.parent.inlineContent)return e.near(i);var o=n.resolve(r.map(this.anchor));return new t(o.parent.inlineContent?o:i,i)},t.prototype.replace=function(t,n){if(void 0===n&&(n=r["Slice"].empty),e.prototype.replace.call(this,t,n),n==r["Slice"].empty){var i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new u(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},t.between=function(n,r,i){var o=n.pos-r.pos;if(i&&!o||(i=o>=0?1:-1),!r.parent.inlineContent){var a=e.findFrom(r,i,!0)||e.findFrom(r,-i,!0);if(!a)return e.near(r,i);r=a.$head}return n.parent.inlineContent||(0==o?n=r:(n=(e.findFrom(n,-i,!0)||e.findFrom(n,i,!0)).$anchor,n.pos<r.pos!=o<0&&(n=r))),new t(n,r)},Object.defineProperties(t.prototype,n),t}(a);a.jsonID("text",l);var u=function(e,t){this.anchor=e,this.head=t};u.prototype.map=function(e){return new u(e.map(this.anchor),e.map(this.head))},u.prototype.resolve=function(e){return l.between(e.resolve(this.anchor),e.resolve(this.head))};var d=function(e){function t(t){var n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,r),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var i=r.mapResult(this.anchor),o=i.deleted,a=i.pos,s=n.resolve(a);return o?e.near(s):new t(s)},t.prototype.content=function(){return new r["Slice"](r["Fragment"].from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new f(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(a);d.prototype.visible=!1,a.jsonID("node",d);var f=function(e){this.anchor=e};f.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new u(r,r):new f(r)},f.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&d.isSelectable(n)?new d(t):a.near(t)};var p=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=r["Slice"].empty),n==r["Slice"].empty){t.delete(0,t.doc.content.size);var i=e.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return h},t}(a);a.jsonID("all",p);var h={map:function(){return this},resolve:function(e){return new p(e)}};function m(e,t,n,r,i,o){if(t.inlineContent)return l.create(e,n);for(var a=r-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){var s=t.child(a);if(s.isAtom){if(!o&&d.isSelectable(s))return d.create(e,n-(i<0?s.nodeSize:0))}else{var c=m(e,s,n+i,i<0?s.childCount:0,i,o);if(c)return c}n+=s.nodeSize*i}}function v(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o=e.steps[r];if(o instanceof i["c"]||o instanceof i["b"]){var s,c=e.mapping.maps[r];c.forEach((function(e,t,n,r){null==s&&(s=r)})),e.setSelection(a.near(e.doc.resolve(s),n))}}}var g=1,b=2,y=4,w=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|g)&~b,this.storedMarks=null,this},n.selectionSet.get=function(){return(this.updated&g)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=b,this},t.prototype.ensureMarks=function(e){return r["Mark"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(this.updated&b)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=this.updated&~b,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["Mark"].none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var i=this.storedMarks;if(!i){var o=this.doc.resolve(t);i=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=y,this},n.scrolledIntoView.get=function(){return(this.updated&y)>0},Object.defineProperties(t.prototype,n),t}(i["e"]);function k(e,t){return t&&e?e.bind(t):e}var x=function(e,t,n){this.name=e,this.init=k(t.init,n),this.apply=k(t.apply,n)},C=[new x("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new x("selection",{init:function(e,t){return e.selection||a.atStart(t.doc)},apply:function(e){return e.selection}}),new x("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new x("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],O=function(e,t){var n=this;this.schema=e,this.fields=C.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new x(e.key,e.spec.state,e))}))},S=function(e){this.config=e},T={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};T.schema.get=function(){return this.config.schema},T.plugins.get=function(){return this.config.plugins},S.prototype.apply=function(e){return this.applyTransaction(e).state},S.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0},S.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var i=!1,o=0;o<this.config.plugins.length;o++){var a=this.config.plugins[o];if(a.spec.appendTransaction){var s=r?r[o].n:0,c=r?r[o].state:this,l=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,o)){if(l.setMeta("appendedTransaction",e),!r){r=[];for(var u=0;u<this.config.plugins.length;u++)r.push(u<o?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}},S.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new S(this.config),n=this.config.fields,r=0;r<n.length;r++){var i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}for(var o=0;o<E.length;o++)E[o](this,e,t);return t},T.tr.get=function(){return new w(this)},S.create=function(e){for(var t=new O(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new S(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},S.prototype.reconfigure=function(e){for(var t=new O(this.schema,e.plugins),n=t.fields,r=new S(t),i=0;i<n.length;i++){var o=n[i].name;r[o]=this.hasOwnProperty(o)?this[o]:n[i].init(e,r)}return r},S.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t},S.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var i=new O(e.schema,e.plugins),o=new S(i);return i.fields.forEach((function(i){if("doc"==i.name)o.doc=r["Node"].fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var s in n){var c=n[s],l=c.spec.state;if(c.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,s))return void(o[i.name]=l.fromJSON.call(c,e,t[s],o))}o[i.name]=i.init(e,o)}})),o},S.addApplyListener=function(e){E.push(e)},S.removeApplyListener=function(e){var t=E.indexOf(e);t>-1&&E.splice(t,1)},Object.defineProperties(S.prototype,T);var E=[];function _(e,t,n){for(var r in e){var i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=_(i,t,{})),n[r]=i}return n}var M=function(e){this.props={},e.props&&_(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:j("plugin")};M.prototype.getState=function(e){return e[this.key]};var I=Object.create(null);function j(e){return e in I?e+"$"+ ++I[e]:(I[e]=0,e+"$")}var D=function(e){void 0===e&&(e="key"),this.key=j(e)};D.prototype.get=function(e){return e.config.pluginsByKey[this.key]},D.prototype.getState=function(e){return e[this.key]}},5354:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"selector",(function(){return l}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{position:"fixed",width:"100%",height:"100%",top:"0"}},[n("div",{staticClass:"stars"}),n("div",{staticClass:"twinkling"}),n("div",{staticClass:"clouds"})])}],o=(n("6df8"),n("2877")),a={},s=Object(o["a"])(a,r,i,!1,null,"42840f5a",null),c=s.exports,l=function(e){return"night"===e}},"53e0":function(e,t,n){},"541a":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return k})),n.d(t,"selector",(function(){return x}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Privacy")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput,validation:function(t){e.isValid=t}}})],1)],1)},i=[],o=(n("d3b7"),n("ddb0"),n("96cf"),n("1da1")),a=n("a34a"),s=n.n(a),c=n("a6f4"),l=n("2ef0"),u=n("c3b0"),d=n("78f9"),f=n("fe95"),p=n("a5de"),h=n("ab58"),m=n("1031"),v=n("93c4"),g=Object(c["c"])({name:"EditFormPrivacy",components:{PageTitle:m["a"],BaseSpinner:h["a"],BaseForm:v["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(u["b"])(Object(c["p"])(e,"user")),n=t.loading,r=t.values,i=t.updateProfileSettings,a=[{name:"main-subtitle",type:"subtitle",label:Object(d["a"])("Main"),fieldClass:"mt-2 mb-1"},{name:"showPostsForNonFollowers",type:"switch",label:Object(d["a"])("Show posts for non followers")},{name:"showButtonsByDefault",type:"switch",label:Object(d["a"])("Show buttons by default"),hint:Object(d["a"])("Posts, Followers, Following, Share, Message")},{name:"messages-subtitle",type:"subtitle",label:Object(d["a"])("Messages"),fieldClass:"mt-5 mb-1"},{name:"messageButtonVisibility",type:"select",label:Object(d["a"])("Message button visibility"),options:[{text:Object(d["a"])("Show everyone"),value:"everyone"},{text:Object(d["a"])("Hide from non followers"),value:"followers"},{text:Object(d["a"])("Hide from everyone"),value:"nobody"}]}],h=Object(l["debounce"])(Object(o["a"])(s.a.mark((function e(){var t;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n.value){e.next=2;break}return e.abrupt("return");case 2:return t={showPostsForNonFollowers:r.value.showPostsForNonFollowers,showButtonsByDefault:r.value.showButtonsByDefault,messageButtonVisibility:r.value.messageButtonVisibility},e.next=5,i(t);case 5:f["a"].emit(p["b"].NOTIFICATION_SHOW,{text:Object(d["a"])("Changes saved"),timeout:1500});case 6:case"end":return e.stop()}}),e)}))),500),m=function(e){r.value=e,h()};return{loading:n,fields:a,values:r,onFormInput:m,save:h}}}),b=g,y=n("2877"),w=Object(y["a"])(b,r,i,!1,null,null,null),k=w.exports,x=function(e){return"privacy"===e}},"556c":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("4de4");var r=n("fe95"),i=n("8613");function o(e,t,n){if(!Array.isArray(e))throw e;var o=e.filter((function(e){return t(e)?(n&&n(e),!1):(r["a"].emit(i["EVENT_NAMES"].REQUEST_STATUS,e),!0)}));if(o.length>0)throw e}},"557f":function(e,t,n){},"563b":function(e,t,n){},"576a":function(e,t,n){"use strict";n.r(t),n.d(t,"Decoration",(function(){return Sn})),n.d(t,"DecorationSet",(function(){return Mn})),n.d(t,"EditorView",(function(){return Un})),n.d(t,"__endComposition",(function(){return fn})),n.d(t,"__parseFromClipboard",(function(){return bt})),n.d(t,"__serializeForClipboard",(function(){return gt}));var r=n("5313"),i=n("304a"),o=n("0ac0"),a={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var s=/Edge\/(\d+)/.exec(navigator.userAgent),c=/MSIE \d/.test(navigator.userAgent),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=a.ie=!!(c||l||s);a.ie_version=c?document.documentMode||6:l?+l[1]:s?+s[1]:null,a.gecko=!u&&/gecko\/(\d+)/i.test(navigator.userAgent),a.gecko_version=a.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var d=!u&&/Chrome\/(\d+)/.exec(navigator.userAgent);a.chrome=!!d,a.chrome_version=d&&+d[1],a.safari=!u&&/Apple Computer/.test(navigator.vendor),a.ios=a.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),a.mac=a.ios||/Mac/.test(navigator.platform),a.android=/Android \d/.test(navigator.userAgent),a.webkit="webkitFontSmoothing"in document.documentElement.style,a.webkit_version=a.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var f=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},p=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},h=null,m=function(e,t,n){var r=h||(h=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},v=function(e,t,n,r){return n&&(b(e,t,n,r,-1)||b(e,t,n,r,1))},g=/^(img|br|input|textarea|hr)$/i;function b(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:y(e))){var o=e.parentNode;if(!o||1!=o.nodeType||k(e)||g.test(e.nodeName)||"false"==e.contentEditable)return!1;t=f(e)+(i<0?0:1),e=o}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(i<0?-1:0)],"false"==e.contentEditable)return!1;t=i<0?y(e):0}}}function y(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function w(e,t,n){for(var r=0==t,i=t==y(e);r||i;){if(e==n)return!0;var o=f(e);if(e=e.parentNode,!e)return!1;r=r&&0==o,i=i&&o==y(e)}}function k(e){for(var t,n=e;n;n=n.parentNode)if(t=n.pmViewDesc)break;return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var x=function(e){var t=e.isCollapsed;return t&&a.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function C(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function O(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function S(e,t){return"number"==typeof e?e:e[t]}function T(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function E(e,t,n){for(var r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument,a=n||e.dom;;a=p(a)){if(!a)break;if(1==a.nodeType){var s=a==o.body||1!=a.nodeType,c=s?O(o):T(a),l=0,u=0;if(t.top<c.top+S(r,"top")?u=-(c.top-t.top+S(i,"top")):t.bottom>c.bottom-S(r,"bottom")&&(u=t.bottom-c.bottom+S(i,"bottom")),t.left<c.left+S(r,"left")?l=-(c.left-t.left+S(i,"left")):t.right>c.right-S(r,"right")&&(l=t.right-c.right+S(i,"right")),l||u)if(s)o.defaultView.scrollBy(l,u);else{var d=a.scrollLeft,f=a.scrollTop;u&&(a.scrollTop+=u),l&&(a.scrollLeft+=l);var h=a.scrollLeft-d,m=a.scrollTop-f;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}if(s)break}}}function _(e){for(var t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top),o=(r.left+r.right)/2,a=i+1;a<Math.min(innerHeight,r.bottom);a+=5){var s=e.root.elementFromPoint(o,a);if(s!=e.dom&&e.dom.contains(s)){var c=s.getBoundingClientRect();if(c.top>=i-20){t=s,n=c.top;break}}}return{refDOM:t,refTop:n,stack:M(e.dom)}}function M(e){for(var t=[],n=e.ownerDocument;e;e=p(e))if(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e==n)break;return t}function I(e){var t=e.refDOM,n=e.refTop,r=e.stack,i=t?t.getBoundingClientRect().top:0;j(r,0==i?0:i-n)}function j(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.dom,o=r.top,a=r.left;i.scrollTop!=o+t&&(i.scrollTop=o+t),i.scrollLeft!=a&&(i.scrollLeft=a)}}var D=null;function N(e){if(e.setActive)return e.setActive();if(D)return e.focus(D);var t=M(e);e.focus(null==D?{get preventScroll(){return D={preventScroll:!0},!0}}:void 0),D||(D=!1,j(t,0))}function A(e,t){for(var n,r,i=2e8,o=0,a=t.top,s=t.top,c=e.firstChild,l=0;c;c=c.nextSibling,l++){var u=void 0;if(1==c.nodeType)u=c.getClientRects();else{if(3!=c.nodeType)continue;u=m(c).getClientRects()}for(var d=0;d<u.length;d++){var f=u[d];if(f.top<=a&&f.bottom>=s){a=Math.max(f.bottom,a),s=Math.min(f.top,s);var p=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(p<i){n=c,i=p,r=p&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==c.nodeType&&p&&(o=l+(t.left>=(f.left+f.right)/2?1:0));continue}}!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(o=l+1)}}return n&&3==n.nodeType?L(n,r):!n||i&&1==n.nodeType?{node:e,offset:o}:A(n,r)}function L(e,t){for(var n=e.nodeValue.length,r=document.createRange(),i=0;i<n;i++){r.setEnd(e,i+1),r.setStart(e,i);var o=U(r,1);if(o.top!=o.bottom&&P(t,o))return{node:e,offset:i+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function P(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function B(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function F(e,t,n){var r=A(t,n),i=r.node,o=r.offset,a=-1;if(1==i.nodeType&&!i.firstChild){var s=i.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(i,o,a)}function R(e,t,n,r){for(var i=-1,o=t;;){if(o==e.dom)break;var a=e.docView.nearestDesc(o,!0);if(!a)return null;if(a.node.isBlock&&a.parent){var s=a.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)i=a.posBefore;else{if(!(s.right<r.left||s.bottom<r.top))break;i=a.posAfter}}o=a.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n)}function q(e,t,n){var r=e.childNodes.length;if(r&&n.top<n.bottom)for(var i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){var a=e.childNodes[o];if(1==a.nodeType)for(var s=a.getClientRects(),c=0;c<s.length;c++){var l=s[c];if(P(t,l))return q(a,t,l)}if((o=(o+1)%r)==i)break}return e}function H(e,t){var n,r,i,o,s=e.dom.ownerDocument;if(s.caretPositionFromPoint)try{var c=s.caretPositionFromPoint(t.left,t.top);c&&(n=c,i=n.offsetNode,o=n.offset)}catch(b){}if(!i&&s.caretRangeFromPoint){var l=s.caretRangeFromPoint(t.left,t.top);l&&(r=l,i=r.startContainer,o=r.startOffset)}var u,d=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var f=e.dom.getBoundingClientRect();if(!P(t,f))return null;if(d=q(e.dom,t,f),!d)return null}if(a.safari)for(var h=d;i&&h;h=p(h))h.draggable&&(i=o=null);if(d=B(d,t),i){if(a.gecko&&1==i.nodeType&&(o=Math.min(o,i.childNodes.length),o<i.childNodes.length)){var m,v=i.childNodes[o];"IMG"==v.nodeName&&(m=v.getBoundingClientRect()).right<=t.left&&m.bottom>t.top&&o++}i==e.dom&&o==i.childNodes.length-1&&1==i.lastChild.nodeType&&t.top>i.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=o&&1==i.nodeType&&"BR"==i.childNodes[o-1].nodeName||(u=R(e,i,o,t))}null==u&&(u=F(e,d,t));var g=e.docView.nearestDesc(d,!0);return{pos:u,inside:g?g.posAtStart-g.border:-1}}function U(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var V=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function z(e,t,n){var r=e.docView.domFromPos(t,n<0?-1:1),i=r.node,o=r.offset,s=a.webkit||a.gecko;if(3==i.nodeType){if(!s||!V.test(i.nodeValue)&&(n<0?o:o!=i.nodeValue.length)){var c=o,l=o,u=n<0?1:-1;return n<0&&!o?(l++,u=-1):n>=0&&o==i.nodeValue.length?(c--,u=1):n<0?c--:l++,$(U(m(i,c,l),u),u<0)}var d=U(m(i,o,o),n);if(a.gecko&&o&&/\s/.test(i.nodeValue[o-1])&&o<i.nodeValue.length){var f=U(m(i,o-1,o-1),-1);if(f.top==d.top){var p=U(m(i,o,o+1),-1);if(p.top!=d.top)return $(p,p.left<f.left)}}return d}if(!e.state.doc.resolve(t).parent.inlineContent){if(o&&(n<0||o==y(i))){var h=i.childNodes[o-1];if(1==h.nodeType)return W(h.getBoundingClientRect(),!1)}if(o<y(i)){var v=i.childNodes[o];if(1==v.nodeType)return W(v.getBoundingClientRect(),!0)}return W(i.getBoundingClientRect(),n>=0)}if(o&&(n<0||o==y(i))){var g=i.childNodes[o-1],b=3==g.nodeType?m(g,y(g)-(s?0:1)):1!=g.nodeType||"BR"==g.nodeName&&g.nextSibling?null:g;if(b)return $(U(b,1),!1)}if(o<y(i)){var w=i.childNodes[o];while(w.pmViewDesc&&w.pmViewDesc.ignoreForCoords)w=w.nextSibling;var k=w?3==w.nodeType?m(w,0,s?0:1):1==w.nodeType?w:null:null;if(k)return $(U(k,-1),!0)}return $(U(3==i.nodeType?m(i):i,-n),n>=0)}function $(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function W(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function G(e,t,n){var r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function K(e,t,n){var r=t.selection,i="up"==n?r.$from:r.$to;return G(e,t,(function(){for(var t=e.docView.domFromPos(i.pos,"up"==n?-1:1),r=t.node;;){var o=e.docView.nearestDesc(r,!0);if(!o)break;if(o.node.isBlock){r=o.dom;break}r=o.dom.parentNode}for(var a=z(e,i.pos,1),s=r.firstChild;s;s=s.nextSibling){var c=void 0;if(1==s.nodeType)c=s.getClientRects();else{if(3!=s.nodeType)continue;c=m(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<c.length;l++){var u=c[l];if(u.bottom>u.top+1&&("up"==n?a.top-u.top>2*(u.bottom-a.top):u.bottom-a.bottom>2*(a.bottom-u.top)))return!1}}return!0}))}var J=/[\u0590-\u08ac]/;function Y(e,t,n){var r=t.selection,i=r.$head;if(!i.parent.isTextblock)return!1;var o=i.parentOffset,a=!o,s=o==i.parent.content.size,c=e.root.getSelection();return J.test(i.parent.textContent)&&c.modify?G(e,t,(function(){var t=c.getRangeAt(0),r=c.focusNode,o=c.focusOffset,a=c.caretBidiLevel;c.modify("move",n,"character");var s=i.depth?e.docView.domAfterPos(i.before()):e.dom,l=!s.contains(1==c.focusNode.nodeType?c.focusNode:c.focusNode.parentNode)||r==c.focusNode&&o==c.focusOffset;return c.removeAllRanges(),c.addRange(t),null!=a&&(c.caretBidiLevel=a),l})):"left"==n||"backward"==n?a:s}var X=null,Q=null,Z=!1;function ee(e,t,n){return X==t&&Q==n?Z:(X=t,Q=n,Z="up"==n||"down"==n?K(e,t,n):Y(e,t,n))}var te=0,ne=1,re=2,ie=3,oe=function(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=te},ae={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};oe.prototype.matchesWidget=function(){return!1},oe.prototype.matchesMark=function(){return!1},oe.prototype.matchesNode=function(){return!1},oe.prototype.matchesHack=function(e){return!1},oe.prototype.parseRule=function(){return null},oe.prototype.stopEvent=function(){return!1},ae.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},ae.border.get=function(){return 0},oe.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},oe.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var r=this.children[t];if(r==e)return n;n+=r.size}},ae.posBefore.get=function(){return this.parent.posBeforeChild(this)},ae.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},ae.posAfter.get=function(){return this.posBefore+this.size},ae.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},oe.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,i;if(e==this.contentDOM)r=e.childNodes[t-1];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;r=e.previousSibling}while(r&&(!(i=r.pmViewDesc)||i.parent!=this))r=r.previousSibling;return r?this.posBeforeChild(i)+i.size:this.posAtStart}var o,a;if(e==this.contentDOM)o=e.childNodes[t];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;o=e.nextSibling}while(o&&(!(a=o.pmViewDesc)||a.parent!=this))o=o.nextSibling;return o?this.posBeforeChild(a):this.posAtEnd}var s;if(e==this.dom&&this.contentDOM)s=t>f(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!1;break}if(c.parentNode.firstChild!=c)break}if(null==s&&t==e.childNodes.length)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!0;break}if(l.parentNode.lastChild!=l)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart},oe.prototype.nearestDesc=function(e,t){for(var n=!0,r=e;r;r=r.parentNode){var i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!i.nodeDOM||(1==i.nodeDOM.nodeType?i.nodeDOM.contains(1==e.nodeType?e:e.parentNode):i.nodeDOM==e))return i;n=!1}}},oe.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},oe.prototype.posFromDOM=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1},oe.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],i=n+r.size;if(n==e&&i!=n){while(!r.border&&r.children.length)r=r.children[0];return r}if(e<i)return r.descAt(e-n-r.border);n=i}},oe.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,r=0,i=0;n<this.children.length;n++){var o=this.children[n],a=i+o.size;if(a>e||o instanceof he){r=e-i;break}i=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(var s=void 0;n&&!(s=this.children[n-1]).size&&s instanceof ce&&s.widget.type.side>=0;n--);if(t<=0){for(var c,l=!0;;n--,l=!1)if(c=n?this.children[n-1]:null,!c||c.dom.parentNode==this.contentDOM)break;return c&&t&&l&&!c.border&&!c.domAtom?c.domFromPos(c.size,t):{node:this.contentDOM,offset:c?f(c.dom)+1:0}}for(var u,d=!0;;n++,d=!1)if(u=n<this.children.length?this.children[n]:null,!u||u.dom.parentNode==this.contentDOM)break;return u&&d&&!u.border&&!u.domAtom?u.domFromPos(0,t):{node:this.contentDOM,offset:u?f(u.dom):this.contentDOM.childNodes.length}},oe.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,i=-1,o=n,a=0;;a++){var s=this.children[a],c=o+s.size;if(-1==r&&e<=c){var l=o+s.border;if(e>=l&&t<=c-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,l);e=o;for(var u=a;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=f(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(c>t||a==this.children.length-1)){t=c;for(var p=a+1;p<this.children.length;p++){var h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){i=f(h.dom);break}t+=h.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=c}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}},oe.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},oe.prototype.domAfterPos=function(e){var t=this.domFromPos(e,0),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]},oe.prototype.setSelection=function(e,t,n,r){for(var i=Math.min(e,t),o=Math.max(e,t),s=0,c=0;s<this.children.length;s++){var l=this.children[s],u=c+l.size;if(i>c&&o<u)return l.setSelection(e-c-l.border,t-c-l.border,n,r);c=u}var d=this.domFromPos(e,e?-1:1),p=t==e?d:this.domFromPos(t,t?-1:1),h=n.getSelection(),m=!1;if((a.gecko||a.safari)&&e==t){var g=d.node,b=d.offset;if(3==g.nodeType){if(m=b&&"\n"==g.nodeValue[b-1],m&&b==g.nodeValue.length)for(var y=g,w=void 0;y;y=y.parentNode){if(w=y.nextSibling){"BR"==w.nodeName&&(d=p={node:w.parentNode,offset:f(w)+1});break}var k=y.pmViewDesc;if(k&&k.node&&k.node.isBlock)break}}else{var x=g.childNodes[b-1];m=x&&("BR"==x.nodeName||"false"==x.contentEditable)}}if(a.gecko&&h.focusNode&&h.focusNode!=p.node&&1==h.focusNode.nodeType){var C=h.focusNode.childNodes[h.focusOffset];C&&"false"==C.contentEditable&&(r=!0)}if(r||m&&a.safari||!v(d.node,d.offset,h.anchorNode,h.anchorOffset)||!v(p.node,p.offset,h.focusNode,h.focusOffset)){var O=!1;if((h.extend||e==t)&&!m){h.collapse(d.node,d.offset);try{e!=t&&h.extend(p.node,p.offset),O=!0}catch(E){if(!(E instanceof DOMException))throw E}}if(!O){if(e>t){var S=d;d=p,p=S}var T=document.createRange();T.setEnd(p.node,p.offset),T.setStart(d.node,d.offset),h.removeAllRanges(),h.addRange(T)}}},oe.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},ae.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},oe.prototype.markDirty=function(e,t){for(var n=0,r=0;r<this.children.length;r++){var i=this.children[r],o=n+i.size;if(n==o?e<=o&&t>=n:e<o&&t>n){var a=n+i.border,s=o-i.border;if(e>=a&&t<=s)return this.dirty=e==n||t==o?re:ne,void(e!=a||t!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-a,t-a):i.dirty=ie);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?ie:re}n=o}this.dirty=re},oe.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?re:ne;t.dirty<n&&(t.dirty=n)}},ae.domAtom.get=function(){return!1},ae.ignoreForCoords.get=function(){return!1},Object.defineProperties(oe.prototype,ae);var se=[],ce=function(e){function t(t,n,r,i){var o,a=n.type.toDOM;if("function"==typeof a&&(a=a(r,(function(){return o?o.parent?o.parent.posBeforeChild(o):void 0:i}))),!n.type.spec.raw){if(1!=a.nodeType){var s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable=!1,a.classList.add("ProseMirror-widget")}e.call(this,t,se,a,null),this.widget=n,o=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.matchesWidget=function(e){return this.dirty==te&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},t.prototype.destroy=function(){this.widget.type.destroy(this.dom),e.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(oe),le=function(e){function t(t,n,r,i){e.call(this,t,se,n,null),this.textDOM=r,this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(oe),ue=function(e){function t(t,n,r,i){e.call(this,t,[],r,i),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,r,o){var a=o.nodeViews[n.type.name],s=a&&a(n,o,r);return s&&s.dom||(s=i["DOMSerializer"].renderSpec(document,n.type.spec.toDOM(n,r))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return this.dirty&ie||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return this.dirty!=ie&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),this.dirty!=te){var r=this.parent;while(!r.node)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=te}},t.prototype.slice=function(e,n,r){var i=t.create(this.parent,this.mark,!0,r),o=this.children,a=this.size;n<a&&(o=De(o,n,a,r)),e>0&&(o=De(o,0,e,r));for(var s=0;s<o.length;s++)o[s].parent=i;return i.children=o,i},t}(oe),de=function(e){function t(t,n,r,i,o,a,s,c,l){e.call(this,t,n.isLeaf?se:[],o,a),this.nodeDOM=s,this.node=n,this.outerDeco=r,this.innerDeco=i,a&&this.updateChildren(c,l)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return t.create=function(e,n,r,o,a,s){var c,l,u=a.nodeViews[n.type.name],d=u&&u(n,a,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),r,o),f=d&&d.dom,p=d&&d.contentDOM;if(n.isText)if(f){if(3!=f.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else f=document.createTextNode(n.text);else f||(c=i["DOMSerializer"].renderSpec(document,n.type.spec.toDOM(n)),f=c.dom,p=c.contentDOM);p||n.isText||"BR"==f.nodeName||(f.hasAttribute("contenteditable")||(f.contentEditable=!1),n.type.spec.draggable&&(f.draggable=!0));var h=f;return f=xe(f,r,n),d?l=new me(e,n,r,o,f,p,h,d,a,s+1):n.isText?new pe(e,n,r,o,f,h,a):new t(e,n,r,o,f,p,h,a,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return"pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?i["Fragment"].empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return this.dirty==te&&e.eq(this.node)&&Ce(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,r=this.node.inlineContent,o=t,s=e.composing&&this.localCompositionInfo(e,t),c=s&&s.pos>-1?s:null,l=s&&s.pos<0,u=new Se(this,c&&c.node);_e(this.node,this.innerDeco,(function(t,a,s){t.spec.marks?u.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!s&&u.syncToMarks(a==n.node.childCount?i["Mark"].none:n.node.child(a).marks,r,e),u.placeWidget(t,e,o)}),(function(t,n,i,a){var c;u.syncToMarks(t.marks,r,e),u.findNodeMatch(t,n,i,a)||l&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(c=u.findIndexWithChild(s.node))>-1&&u.updateNodeAt(t,n,i,c,e)||u.updateNextNode(t,n,i,e,a)||u.addNode(t,n,i,e,o),o+=t.nodeSize})),u.syncToMarks(se,r,e),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==re)&&(c&&this.protectLocalComposition(e,c),ve(this.contentDOM,this.children,e),a.ios&&Me(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,i=n.from,o=n.to;if(!(!(e.state.selection instanceof r["TextSelection"])||i<t||o>t+this.node.content.size)){var a=e.root.getSelection(),s=Ie(a.focusNode,a.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var c=s.nodeValue,l=je(this.node.content,c,i-t,o-t);return l<0?null:{node:s,pos:l,text:c}}return{node:s,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,r=t.pos,i=t.text;if(!this.getDesc(n)){for(var o=n;;o=o.parentNode){if(o.parentNode==this.contentDOM)break;while(o.previousSibling)o.parentNode.removeChild(o.previousSibling);while(o.nextSibling)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=null)}var a=new le(this,o,n,i);e.compositionNodes.push(a),this.children=De(this.children,r,r+i.length,e,a)}},t.prototype.update=function(e,t,n,r){return!(this.dirty==ie||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)},t.prototype.updateInner=function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=te},t.prototype.updateOuterDeco=function(e){if(!Ce(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=we(this.dom,this.nodeDOM,ye(this.outerDeco,this.node,t),ye(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(t.prototype,n),t}(oe);function fe(e,t,n,r,i){return xe(r,t,e),new de(null,e,t,n,r,r,r,i,0)}var pe=function(e){function t(t,n,r,i,o,a,s){e.call(this,t,n,r,i,o,null,a,s)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.parseRule=function(){var e=this.nodeDOM.parentNode;while(e&&e!=this.dom&&!e.pmIsDeco)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,r){return!(this.dirty==ie||this.dirty!=te&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==te&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=te,!0)},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,r){var i=this.node.cut(e,n),o=document.createTextNode(i.text);return new t(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)},t.prototype.markDirty=function(t,n){e.prototype.markDirty.call(this,t,n),this.dom==this.nodeDOM||0!=t&&n!=this.nodeDOM.nodeValue.length||(this.dirty=ie)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(de),he=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(e){return this.dirty==te&&this.dom.nodeName==e},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(t.prototype,n),t}(oe),me=function(e){function t(t,n,r,i,o,a,s,c,l,u){e.call(this,t,n,r,i,o,a,s,l,u),this.spec=c}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,r,i){if(this.dirty==ie)return!1;if(this.spec.update){var o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,i)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,i)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(de);function ve(e,t,n){for(var r=e.firstChild,i=!1,o=0;o<t.length;o++){var a=t[o],s=a.dom;if(s.parentNode==e){while(s!=r)r=Oe(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(a instanceof ue){var c=r?r.previousSibling:e.lastChild;ve(a.contentDOM,a.children,n),r=c?c.nextSibling:e.firstChild}}while(r)r=Oe(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}function ge(e){e&&(this.nodeName=e)}ge.prototype=Object.create(null);var be=[new ge];function ye(e,t,n){if(0==e.length)return be;for(var r=n?be[0]:new ge,i=[r],o=0;o<e.length;o++){var a=e[o].type.attrs;if(a)for(var s in a.nodeName&&i.push(r=new ge(a.nodeName)),a){var c=a[s];null!=c&&(n&&1==i.length&&i.push(r=new ge(t.isInline?"span":"div")),"class"==s?r.class=(r.class?r.class+" ":"")+c:"style"==s?r.style=(r.style?r.style+";":"")+c:"nodeName"!=s&&(r[s]=c))}}return i}function we(e,t,n,r){if(n==be&&r==be)return t;for(var i=t,o=0;o<r.length;o++){var a=r[o],s=n[o];if(o){var c=void 0;s&&s.nodeName==a.nodeName&&i!=e&&(c=i.parentNode)&&c.tagName.toLowerCase()==a.nodeName?i=c:(c=document.createElement(a.nodeName),c.pmIsDeco=!0,c.appendChild(i),s=be[0],i=c)}ke(i,s||be[0],a)}return i}function ke(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var i in n)"class"!=i&&"style"!=i&&"nodeName"!=i&&n[i]!=t[i]&&e.setAttribute(i,n[i]);if(t.class!=n.class){for(var o=t.class?t.class.split(" ").filter(Boolean):se,a=n.class?n.class.split(" ").filter(Boolean):se,s=0;s<o.length;s++)-1==a.indexOf(o[s])&&e.classList.remove(o[s]);for(var c=0;c<a.length;c++)-1==o.indexOf(a[c])&&e.classList.add(a[c]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){var l,u=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;while(l=u.exec(t.style))e.style.removeProperty(l[1])}n.style&&(e.style.cssText+=n.style)}}function xe(e,t,n){return we(e,e,be,ye(t,n,1!=e.nodeType))}function Ce(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Oe(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var Se=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=Te(e.node.content,e)};function Te(e,t){var n=t,r=n.children.length,i=e.childCount,o=new Map,a=[];e:while(i>0){for(var s=void 0;;)if(r){var c=n.children[r-1];if(!(c instanceof ue)){s=c,r--;break}n=c,r=c.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}var l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function Ee(e,t){return e.type.side-t.type.side}function _e(e,t,n,r){var i=t.locals(e),o=0;if(0!=i.length)for(var a=0,s=[],c=null,l=0;;){if(a<i.length&&i[a].to==o){var u=i[a++],d=void 0;while(a<i.length&&i[a].to==o)(d||(d=[u])).push(i[a++]);if(d){d.sort(Ee);for(var f=0;f<d.length;f++)n(d[f],l,!!c)}else n(u,l,!!c)}var p=void 0,h=void 0;if(c)h=-1,p=c,c=null;else{if(!(l<e.childCount))break;h=l,p=e.child(l++)}for(var m=0;m<s.length;m++)s[m].to<=o&&s.splice(m--,1);while(a<i.length&&i[a].from<=o&&i[a].to>o)s.push(i[a++]);var v=o+p.nodeSize;if(p.isText){var g=v;a<i.length&&i[a].from<g&&(g=i[a].from);for(var b=0;b<s.length;b++)s[b].to<g&&(g=s[b].to);g<v&&(c=p.cut(g-o),p=p.cut(0,g-o),v=g,h=-1)}var y=s.length?p.isInline&&!p.isLeaf?s.filter((function(e){return!e.inline})):s.slice():se;r(p,y,t.forChild(o,p),h),o=v}else for(var w=0;w<e.childCount;w++){var k=e.child(w);r(k,i,t.forChild(o,k),w),o+=k.nodeSize}}function Me(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Ie(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=y(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}function je(e,t,n,r){for(var i=0,o=0;i<e.childCount&&o<=r;){var a=e.child(i++),s=o;if(o+=a.nodeSize,a.isText){var c=a.text;while(i<e.childCount){var l=e.child(i++);if(o+=l.nodeSize,!l.isText)break;c+=l.text}if(o>=n){var u=s<r?c.lastIndexOf(t,r-s-1):-1;if(u>=0&&u+t.length+s>=n)return s+u;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}}return-1}function De(e,t,n,r,i){for(var o=[],a=0,s=0;a<e.length;a++){var c=e[a],l=s,u=s+=c.size;l>=n||u<=t?o.push(c):(l<t&&o.push(c.slice(0,t-l,r)),i&&(o.push(i),i=null),u>n&&o.push(c.slice(n-l,c.size,r)))}return o}function Ne(e,t){var n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;var o=e.docView.nearestDesc(n.focusNode),a=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var c,l,u=i.resolve(s);if(x(n)){c=u;while(o&&!o.node)o=o.parent;if(o&&o.node.isAtom&&r["NodeSelection"].isSelectable(o.node)&&o.parent&&(!o.node.isInline||!w(n.focusNode,n.focusOffset,o.dom))){var d=o.posBefore;l=new r["NodeSelection"](s==d?u:i.resolve(d))}}else{var f=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(f<0)return null;c=i.resolve(f)}if(!l){var p="pointer"==t||e.state.selection.head<u.pos&&!a?1:-1;l=ze(e,c,u,p)}return l}function Ae(e){return e.editable?e.hasFocus():We(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Le(e,t){var n=e.state.selection;if(Ue(e,n),Ae(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&a.chrome){var i=e.root.getSelection(),o=e.domObserver.currentSelection;if(i.anchorNode&&v(i.anchorNode,i.anchorOffset,o.anchorNode,o.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)He(e);else{var s,c,l=n.anchor,u=n.head;!Pe||n instanceof r["TextSelection"]||(n.$from.parent.inlineContent||(s=Be(e,n.from)),n.empty||n.$from.parent.inlineContent||(c=Be(e,n.to))),e.docView.setSelection(l,u,e.root,t),Pe&&(s&&Re(s),c&&Re(c)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&qe(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}Se.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},Se.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},Se.prototype.syncToMarks=function(e,t,n){var r=0,i=this.stack.length>>1,o=Math.min(i,e.length);while(r<o&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning)r++;while(r<i)this.destroyRest(),this.top.dirty=te,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;while(i<e.length){this.stack.push(this.top,this.index+1);for(var a=-1,s=this.index;s<Math.min(this.index+3,this.top.children.length);s++)if(this.top.children[s].matchesMark(e[i])){a=s;break}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{var c=ue.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}},Se.prototype.findNodeMatch=function(e,t,n,r){var i,o=-1;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,n))o=this.top.children.indexOf(i,this.index);else for(var a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){var c=this.top.children[a];if(c.matchesNode(e,t,n)&&!this.preMatch.matched.has(c)){o=a;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)},Se.prototype.updateNodeAt=function(e,t,n,r,i){var o=this.top.children[r];return!!o.update(e,t,n,i)&&(this.destroyBetween(this.index,r),this.index=r+1,!0)},Se.prototype.findIndexWithChild=function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r;return-1}e=t}},Se.prototype.updateNextNode=function(e,t,n,r,i){for(var o=this.index;o<this.top.children.length;o++){var a=this.top.children[o];if(a instanceof de){var s=this.preMatch.matched.get(a);if(null!=s&&s!=i)return!1;var c=a.dom,l=this.lock&&(c==this.lock||1==c.nodeType&&c.contains(this.lock.parentNode))&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=ie&&Ce(t,a.outerDeco));if(!l&&a.update(e,t,n,r))return this.destroyBetween(this.index,o),a.dom!=c&&(this.changed=!0),this.index++,!0;break}}return!1},Se.prototype.addNode=function(e,t,n,r,i){this.top.children.splice(this.index++,0,de.create(this.top,e,t,n,r,i)),this.changed=!0},Se.prototype.placeWidget=function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var i=new ce(this.top,e,t,n);this.top.children.splice(this.index++,0,i),this.changed=!0}else this.index++},Se.prototype.addTextblockHacks=function(){var e=this.top.children[this.index-1];while(e instanceof ue)e=e.children[e.children.length-1];e&&e instanceof pe&&!/\n$/.test(e.node.text)||((a.safari||a.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},Se.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator",t.alt=""),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new he(this.top,se,t,null)),this.changed=!0}};var Pe=a.safari||a.chrome&&a.chrome_version<63;function Be(e,t){var n=e.docView.domFromPos(t,0),r=n.node,i=n.offset,o=i<r.childNodes.length?r.childNodes[i]:null,s=i?r.childNodes[i-1]:null;if(a.safari&&o&&"false"==o.contentEditable)return Fe(o);if((!o||"false"==o.contentEditable)&&(!s||"false"==s.contentEditable)){if(o)return Fe(o);if(s)return Fe(s)}}function Fe(e){return e.contentEditable="true",a.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Re(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function qe(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){Ae(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}function He(e){var t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i="IMG"==r.nodeName;i?n.setEnd(r.parentNode,f(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&a.ie&&a.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}function Ue(e,t){if(t instanceof r["NodeSelection"]){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ve(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ve(e)}function Ve(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function ze(e,t,n,i){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||r["TextSelection"].between(t,n,i)}function $e(e){return(!e.editable||e.root.activeElement==e.dom)&&We(e)}function We(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function Ge(e){var t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.root.getSelection();return v(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Ke(e,t){var n=e.selection,i=n.$anchor,o=n.$head,a=t>0?i.max(o):i.min(o),s=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return s&&r["Selection"].findFrom(s,t)}function Je(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ye(e,t,n){var i=e.state.selection;if(!(i instanceof r["TextSelection"])){if(i instanceof r["NodeSelection"]&&i.node.isInline)return Je(e,new r["TextSelection"](t>0?i.$to:i.$from));var o=Ke(e.state,t);return!!o&&Je(e,o)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var s=Ke(e.state,t);return!!(s&&s instanceof r["NodeSelection"])&&Je(e,s)}if(!(a.mac&&n.indexOf("m")>-1)){var c,l=i.$head,u=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter;if(!u||u.isText)return!1;var d=t<0?l.pos-u.nodeSize:l.pos;return!!(u.isAtom||(c=e.docView.descAt(d))&&!c.contentDOM)&&(r["NodeSelection"].isSelectable(u)?Je(e,new r["NodeSelection"](t<0?e.state.doc.resolve(l.pos-u.nodeSize):l)):!!a.webkit&&Je(e,new r["TextSelection"](e.state.doc.resolve(t<0?d:d+u.nodeSize))))}}function Xe(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Qe(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Ze(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var i,o,s=!1;for(a.gecko&&1==n.nodeType&&r<Xe(n)&&Qe(n.childNodes[r])&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;var c=n.childNodes[r-1];if(Qe(c))i=n,o=--r;else{if(3!=c.nodeType)break;n=c,r=n.nodeValue.length}}else{if(tt(n))break;var l=n.previousSibling;while(l&&Qe(l))i=n.parentNode,o=f(l),l=l.previousSibling;if(l)n=l,r=Xe(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}s?nt(e,t,n,r):i&&nt(e,t,i,o)}}function et(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var i,o,a=Xe(n);;)if(r<a){if(1!=n.nodeType)break;var s=n.childNodes[r];if(!Qe(s))break;i=n,o=++r}else{if(tt(n))break;var c=n.nextSibling;while(c&&Qe(c))i=c.parentNode,o=f(c)+1,c=c.nextSibling;if(c)n=c,r=0,a=Xe(n);else{if(n=n.parentNode,n==e.dom)break;r=a=0}}i&&nt(e,t,i,o)}}function tt(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function nt(e,t,n,r){if(x(t)){var i=document.createRange();i.setEnd(n,r),i.setStart(n,r),t.removeAllRanges(),t.addRange(i)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();var o=e.state;setTimeout((function(){e.state==o&&Le(e)}),50)}function rt(e,t,n){var i=e.state.selection;if(i instanceof r["TextSelection"]&&!i.empty||n.indexOf("s")>-1)return!1;if(a.mac&&n.indexOf("m")>-1)return!1;var o=i.$from,s=i.$to;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var c=Ke(e.state,t);if(c&&c instanceof r["NodeSelection"])return Je(e,c)}if(!o.parent.inlineContent){var l=t<0?o:s,u=i instanceof r["AllSelection"]?r["Selection"].near(l,t):r["Selection"].findFrom(l,t);return!!u&&Je(e,u)}return!1}function it(e,t){if(!(e.state.selection instanceof r["TextSelection"]))return!0;var n=e.state.selection,i=n.$head,o=n.$anchor,a=n.empty;if(!i.sameParent(o))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!i.textOffset&&(t<0?i.nodeBefore:i.nodeAfter);if(s&&!s.isText){var c=e.state.tr;return t<0?c.delete(i.pos-s.nodeSize,i.pos):c.delete(i.pos,i.pos+s.nodeSize),e.dispatch(c),!0}return!1}function ot(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function at(e){if(a.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var i=n.firstChild;ot(e,i,!0),setTimeout((function(){return ot(e,i,!1)}),20)}}}function st(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function ct(e,t){var n=t.keyCode,r=st(t);return 8==n||a.mac&&72==n&&"c"==r?it(e,-1)||Ze(e):46==n||a.mac&&68==n&&"c"==r?it(e,1)||et(e):13==n||27==n||(37==n?Ye(e,-1,r)||Ze(e):39==n?Ye(e,1,r)||et(e):38==n?rt(e,-1,r)||Ze(e):40==n?at(e)||rt(e,1,r)||et(e):r==(a.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function lt(e,t,n){var r=e.docView.parseRange(t,n),o=r.node,s=r.fromOffset,c=r.toOffset,l=r.from,u=r.to,d=e.root.getSelection(),f=null,p=d.anchorNode;if(p&&e.dom.contains(1==p.nodeType?p:p.parentNode)&&(f=[{node:p,offset:d.anchorOffset}],x(d)||f.push({node:d.focusNode,offset:d.focusOffset})),a.chrome&&8===e.lastKeyCode)for(var h=c;h>s;h--){var m=o.childNodes[h-1],v=m.pmViewDesc;if("BR"==m.nodeName&&!v){c=h;break}if(!v||v.size)break}var g=e.state.doc,b=e.someProp("domParser")||i["DOMParser"].fromSchema(e.state.schema),y=g.resolve(l),w=null,k=b.parse(o,{topNode:y.parent,topMatch:y.parent.contentMatchAt(y.index()),topOpen:!0,from:s,to:c,preserveWhitespace:"pre"!=y.parent.type.whitespace||"full",editableContent:!0,findPositions:f,ruleFromNode:ut,context:y});if(f&&null!=f[0].pos){var C=f[0].pos,O=f[1]&&f[1].pos;null==O&&(O=C),w={anchor:C+l,head:O+l}}return{doc:k,sel:w,from:l,to:u}}function ut(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(a.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||a.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function dt(e,t,n,i,o){if(t<0){var s=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,c=Ne(e,s);if(c&&!e.state.selection.eq(c)){var l=e.state.tr.setSelection(c);"pointer"==s?l.setMeta("pointer",!0):"key"==s&&l.scrollIntoView(),e.dispatch(l)}}else{var u=e.state.doc.resolve(t),d=u.sharedDepth(n);t=u.before(d+1),n=e.state.doc.resolve(n).after(d+1);var f=e.state.selection,p=lt(e,t,n);if(a.chrome&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from){var h=e.cursorWrapper.deco.type.toDOM.nextSibling,m=h&&h.nodeValue?h.nodeValue.length:1;p.sel={anchor:p.sel.anchor+m,head:p.sel.anchor+m}}var v,g,b=e.state.doc,y=b.slice(p.from,p.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(v=e.state.selection.to,g="end"):(v=e.state.selection.from,g="start"),e.lastKeyCode=null;var w=vt(y.content,p.doc.content,p.from,v,g);if(!w){if(!(i&&f instanceof r["TextSelection"]&&!f.empty&&f.$head.sameParent(f.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((a.ios&&e.lastIOSEnter>Date.now()-225||a.android)&&o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,C(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=ft(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}w={start:f.from,endA:f.to,endB:f.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&w.start==w.endB&&e.state.selection instanceof r["TextSelection"]&&(w.start>e.state.selection.from&&w.start<=e.state.selection.from+2&&e.state.selection.from>=p.from?w.start=e.state.selection.from:w.endA<e.state.selection.to&&w.endA>=e.state.selection.to-2&&e.state.selection.to<=p.to&&(w.endB+=e.state.selection.to-w.endA,w.endA=e.state.selection.to)),a.ie&&a.ie_version<=11&&w.endB==w.start+1&&w.endA==w.start&&w.start>p.from&&"  "==p.doc.textBetween(w.start-p.from-1,w.start-p.from+1)&&(w.start--,w.endA--,w.endB--);var x,O=p.doc.resolveNoCache(w.start-p.from),S=p.doc.resolveNoCache(w.endB-p.from),T=O.sameParent(S)&&O.parent.inlineContent;if((a.ios&&e.lastIOSEnter>Date.now()-225&&(!T||o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!T&&O.pos<p.doc.content.size&&(x=r["Selection"].findFrom(p.doc.resolve(O.pos+1),1,!0))&&x.head==S.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,C(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>w.start&&ht(b,w.start,w.endA,O,S)&&e.someProp("handleKeyDown",(function(t){return t(e,C(8,"Backspace"))})))a.android&&a.chrome&&e.domObserver.suppressSelectionUpdates();else{a.chrome&&a.android&&w.toB==w.from&&(e.lastAndroidDelete=Date.now()),a.android&&!T&&O.start()!=S.start()&&0==S.parentOffset&&O.depth==S.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==w.endA&&(w.endB-=2,S=p.doc.resolveNoCache(w.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,C(13,"Enter"))}))}),20));var E,_,M,I,j=w.start,D=w.endA;if(T)if(O.pos==S.pos)a.ie&&a.ie_version<=11&&0==O.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Le(e)}),20)),E=e.state.tr.delete(j,D),_=b.resolve(w.start).marksAcross(b.resolve(w.endA));else if(w.endA==w.endB&&(I=b.resolve(w.start))&&(M=pt(O.parent.content.cut(O.parentOffset,S.parentOffset),I.parent.content.cut(I.parentOffset,w.endA-I.start()))))E=e.state.tr,"add"==M.type?E.addMark(j,D,M.mark):E.removeMark(j,D,M.mark);else if(O.parent.child(O.index()).isText&&O.index()==S.index()-(S.textOffset?0:1)){var N=O.parent.textBetween(O.parentOffset,S.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,j,D,N)})))return;E=e.state.tr.insertText(N,j,D)}if(E||(E=e.state.tr.replace(j,D,p.doc.slice(w.start-p.from,w.endB-p.from))),p.sel){var A=ft(e,E.doc,p.sel);A&&!(a.chrome&&a.android&&e.composing&&A.empty&&(w.start!=w.endB||e.lastAndroidDelete<Date.now()-100)&&(A.head==j||A.head==E.mapping.map(D)-1)||a.ie&&A.empty&&A.head==j)&&E.setSelection(A)}_&&E.ensureMarks(_),e.dispatch(E.scrollIntoView())}}}function ft(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:ze(e,t.resolve(n.anchor),t.resolve(n.head))}function pt(e,t){for(var n,r,o,a=e.firstChild.marks,s=t.firstChild.marks,c=a,l=s,u=0;u<s.length;u++)c=s[u].removeFromSet(c);for(var d=0;d<a.length;d++)l=a[d].removeFromSet(l);if(1==c.length&&0==l.length)r=c[0],n="add",o=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=c.length||1!=l.length)return null;r=l[0],n="remove",o=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var f=[],p=0;p<t.childCount;p++)f.push(o(t.child(p)));if(i["Fragment"].from(f).eq(e))return{mark:r,type:n}}function ht(e,t,n,r,i){if(!r.parent.isTextblock||n-t<=i.pos-r.pos||mt(r,!0,!1)<i.pos)return!1;var o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;var a=e.resolve(mt(o,!0,!0));return!(!a.parent.isTextblock||a.pos>n||mt(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function mt(e,t,n){var r=e.depth,i=t?e.end():e.pos;while(r>0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,i++,t=!1;if(n){var o=e.node(r).maybeChild(e.indexAfter(r));while(o&&!o.isLeaf)o=o.firstChild,i++}return i}function vt(e,t,n,r,i){var o=e.findDiffStart(t,n);if(null==o)return null;var a=e.findDiffEnd(t,n+e.size,n+t.size),s=a.a,c=a.b;if("end"==i){var l=Math.max(0,o-Math.min(s,c));r-=s+l-o}if(s<o&&e.size<t.size){var u=r<=o&&r>=s?o-r:0;o-=u,c=o+(c-s),s=o}else if(c<o){var d=r<=o&&r>=c?o-r:0;o-=d,s=o+(s-c),c=o}return{start:o,endA:s,endB:c}}function gt(e,t){var n=[],r=t.content,o=t.openStart,a=t.openEnd;while(o>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount){o--,a--;var s=r.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),r=s.content}var c=e.someProp("clipboardSerializer")||i["DOMSerializer"].fromSchema(e.state.schema),l=_t(),u=l.createElement("div");u.appendChild(c.serializeFragment(r,{document:l}));var d,f=u.firstChild;while(f&&1==f.nodeType&&(d=Tt[f.nodeName.toLowerCase()])){for(var p=d.length-1;p>=0;p--){var h=l.createElement(d[p]);while(u.firstChild)h.appendChild(u.firstChild);u.appendChild(h),"tbody"!=d[p]&&(o++,a++)}f=u.firstChild}f&&1==f.nodeType&&f.setAttribute("data-pm-slice",o+" "+a+" "+JSON.stringify(n));var m=e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:u,text:m}}function bt(e,t,n,r,o){var s,c,l=o.parent.type.spec.code;if(!n&&!t)return null;var u=t&&(r||l||!n);if(u){if(e.someProp("transformPastedText",(function(e){t=e(t,l||r)})),l)return t?new i["Slice"](i["Fragment"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):i["Slice"].empty;var d=e.someProp("clipboardTextParser",(function(e){return e(t,o,r)}));if(d)c=d;else{var f=o.marks(),p=e.state,h=p.schema,m=i["DOMSerializer"].fromSchema(h);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=s.appendChild(document.createElement("p"));e&&t.appendChild(m.serializeNode(h.text(e,f)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),s=Mt(n),a.webkit&&It(s);var v=s&&s.querySelector("[data-pm-slice]"),g=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!c){var b=e.someProp("clipboardParser")||e.someProp("domParser")||i["DOMParser"].fromSchema(e.state.schema);c=b.parseSlice(s,{preserveWhitespace:!(!u&&!g),context:o,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!yt.test(e.parentNode.nodeName))return{ignore:!0}}})}if(g)c=jt(St(c,+g[1],+g[2]),g[3]);else if(c=i["Slice"].maxOpen(wt(c.content,o),!0),c.openStart||c.openEnd){for(var y=0,w=0,k=c.content.firstChild;y<c.openStart&&!k.type.spec.isolating;y++,k=k.firstChild);for(var x=c.content.lastChild;w<c.openEnd&&!x.type.spec.isolating;w++,x=x.lastChild);c=St(c,y,w)}return e.someProp("transformPasted",(function(e){c=e(c)})),c}var yt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function wt(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n),o=r.contentMatchAt(t.index(n)),a=void 0,s=[];if(e.forEach((function(e){if(s){var t,n=o.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&a.length&&xt(n,a,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=Ct(s[s.length-1],a.length));var r=kt(e,n);s.push(r),o=o.matchType(r.type,r.attrs),a=n}}})),s)return{v:i["Fragment"].from(s)}},r=t.depth;r>=0;r--){var o=n(r);if(o)return o.v}return e}function kt(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,i["Fragment"].from(e));return e}function xt(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){var a=xt(e,t,n,r.lastChild,o+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));var s=r.contentMatchAt(r.childCount);if(s.matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(i["Fragment"].from(kt(n,e,o+1))))}}function Ct(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,Ct(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(i["Fragment"].empty,!0);return e.copy(n.append(r))}function Ot(e,t,n,r,o,a){var s=t<0?e.firstChild:e.lastChild,c=s.content;return o<r-1&&(c=Ot(c,t,n,r,o+1,a)),o>=n&&(c=t<0?s.contentMatchAt(0).fillBefore(c,e.childCount>1||a<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(i["Fragment"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(c))}function St(e,t,n){return t<e.openStart&&(e=new i["Slice"](Ot(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new i["Slice"](Ot(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Tt={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Et=null;function _t(){return Et||(Et=document.implementation.createHTMLDocument("title"))}function Mt(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=_t().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);if((n=i&&Tt[i[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join("")),r.innerHTML=e,n)for(var o=0;o<n.length;o++)r=r.querySelector(n[o])||r;return r}function It(e){for(var t=e.querySelectorAll(a.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function jt(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(u){return e}for(var o=e.content,a=e.openStart,s=e.openEnd,c=n.length-2;c>=0;c-=2){var l=r.nodes[n[c]];if(!l||l.hasRequiredAttrs())break;o=i["Fragment"].from(l.create(n[c+1],o)),a++,s++}return new i["Slice"](o,a,s)}var Dt={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Nt=a.ie&&a.ie_version<=11,At=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};At.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},At.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Lt=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);a.ie&&a.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new At,Nt&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};Lt.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Lt.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Lt.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,Dt),Nt&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Lt.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}Nt&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Lt.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Lt.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Lt.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Lt.prototype.onSelectionChange=function(){if($e(this.view)){if(this.suppressingSelectionUpdates)return Le(this.view);if(a.ie&&a.ie_version<=11&&!this.view.state.selection.empty){var e=this.view.root.getSelection();if(e.focusNode&&v(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}},Lt.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Lt.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},Lt.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&We(this.view)&&!this.ignoreSelectionChange(t),r=-1,i=-1,o=!1,s=[];if(this.view.editable)for(var c=0;c<e.length;c++){var l=this.registerMutation(e[c],s);l&&(r=r<0?l.from:Math.min(l.from,r),i=i<0?l.to:Math.max(l.to,i),l.typeOver&&(o=!0))}if(a.gecko&&s.length>1){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=u[0],f=u[1];d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,i),Bt(this.view)),this.handleDOMChange(r,i,o,s),this.view.docView&&this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Le(this.view),this.currentSelection.set(t))}},Lt.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var r=0;r<e.addedNodes.length;r++)t.push(e.addedNodes[r]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var i=e.previousSibling,o=e.nextSibling;if(a.ie&&a.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var c=e.addedNodes[s],l=c.previousSibling,u=c.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(i=l),(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(o=u)}var d=i&&i.parentNode==e.target?f(i)+1:0,p=n.localPosFromDOM(e.target,d,-1),h=o&&o.parentNode==e.target?f(o):e.target.childNodes.length,m=n.localPosFromDOM(e.target,h,1);return{from:p,to:m}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var Pt=!1;function Bt(e){Pt||(Pt=!0,"normal"==getComputedStyle(e.dom).whiteSpace&&console["warn"]("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))}var Ft={},Rt={};function qt(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new Lt(e,(function(t,n,r,i){return dt(e,t,n,r,i)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=Ft[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!$t(e,t)||zt(e,t)||!e.editable&&t.type in Rt||n(e,t)})};for(var n in Ft)t(n);a.safari&&e.dom.addEventListener("input",(function(){return null})),Vt(e)}function Ht(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function Ut(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}function Vt(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return zt(e,t)})}))}function zt(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function $t(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Wt(e,t){zt(e,t)||!Ft[t.type]||!e.editable&&t.type in Rt||Ft[t.type](e,t)}function Gt(e){return{left:e.clientX,top:e.clientY}}function Kt(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Jt(e,t,n,r,i){if(-1==r)return!1;for(var o=e.state.doc.resolve(r),a=function(r){if(e.someProp(t,(function(t){return r>o.depth?t(e,n,o.nodeAfter,o.before(r),i,!0):t(e,n,o.node(r),o.before(r),i,!1)})))return{v:!0}},s=o.depth+1;s>0;s--){var c=a(s);if(c)return c.v}return!1}function Yt(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Xt(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r["NodeSelection"].isSelectable(i))&&(Yt(e,new r["NodeSelection"](n),"pointer"),!0)}function Qt(e,t){if(-1==t)return!1;var n,i,o=e.state.selection;o instanceof r["NodeSelection"]&&(n=o.node);for(var a=e.state.doc.resolve(t),s=a.depth+1;s>0;s--){var c=s>a.depth?a.nodeAfter:a.node(s);if(r["NodeSelection"].isSelectable(c)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&a.before(o.$from.depth+1)==o.$from.pos?a.before(o.$from.depth):a.before(s);break}}return null!=i&&(Yt(e,r["NodeSelection"].create(e.state.doc,i),"pointer"),!0)}function Zt(e,t,n,r,i){return Jt(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(function(n){return n(e,t,r)}))||(i?Qt(e,n):Xt(e,n))}function en(e,t,n,r){return Jt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function tn(e,t,n,r){return Jt(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(function(n){return n(e,t,r)}))||nn(e,n,r)}function nn(e,t,n){if(0!=n.button)return!1;var i=e.state.doc;if(-1==t)return!!i.inlineContent&&(Yt(e,r["TextSelection"].create(i,0,i.content.size),"pointer"),!0);for(var o=i.resolve(t),a=o.depth+1;a>0;a--){var s=a>o.depth?o.nodeAfter:o.node(a),c=o.before(a);if(s.inlineContent)Yt(e,r["TextSelection"].create(i,c+1,c+1+s.content.size),"pointer");else{if(!r["NodeSelection"].isSelectable(s))continue;Yt(e,r["NodeSelection"].create(i,c),"pointer")}return!0}}function rn(e){return fn(e)}Rt.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!sn(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!a.android||!a.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!a.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||ct(e,t)?t.preventDefault():Ht(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,C(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},Rt.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},Rt.keypress=function(e,t){if(!(sn(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||a.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof r["TextSelection"])||!n.$from.sameParent(n.$to)){var i=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,i)}))||e.dispatch(e.state.tr.insertText(i).scrollIntoView()),t.preventDefault()}}};var on=a.mac?"metaKey":"ctrlKey";Ft.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=rn(e),r=Date.now(),i="singleClick";r-e.lastClick.time<500&&Kt(t,e.lastClick)&&!t[on]&&("singleClick"==e.lastClick.type?i="doubleClick":"doubleClick"==e.lastClick.type&&(i="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:i};var o=e.posAtCoords(Gt(t));o&&("singleClick"==i?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new an(e,o,t,n)):("doubleClick"==i?en:tn)(e,o.pos,o.inside,t)?t.preventDefault():Ht(e,"pointer"))};var an=function(e,t,n,i){var o,s,c=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[on],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)o=e.state.doc.nodeAt(t.inside),s=t.inside;else{var l=e.state.doc.resolve(t.pos);o=l.parent,s=l.depth?l.before():0}this.mightDrag=null;var u=i?null:n.target,d=u?e.docView.nearestDesc(u,!0):null;this.target=d?d.dom:null;var f=e.state,p=f.selection;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||p instanceof r["NodeSelection"]&&p.from<=s&&p.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&a.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){c.view.mouseDown==c&&c.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ht(e,"pointer")};function sn(e,t){return!!e.composing||!!(a.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}an.prototype.done=function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return Le(e.view)})),this.view.mouseDown=null},an.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Gt(e))),this.allowDefault||!t?Ht(this.view,"pointer"):Zt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||a.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||a.chrome&&!(this.view.state.selection instanceof r["TextSelection"])&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Yt(this.view,r["Selection"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Ht(this.view,"pointer")}},an.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),Ht(this.view,"pointer"),0==e.buttons&&this.done()},Ft.touchdown=function(e){rn(e),Ht(e,"pointer")},Ft.contextmenu=function(e){return rn(e)};var cn=a.android?5e3:-1;function ln(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return fn(e)}),t))}function un(e){e.composing&&(e.composing=!1,e.compositionEndedAt=dn());while(e.compositionNodes.length>0)e.compositionNodes.pop().markParentsDirty()}function dn(){var e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function fn(e,t){if(!(a.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),un(e),t||e.docView&&e.docView.dirty){var n=Ne(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function pn(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}Rt.compositionstart=Rt.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),fn(e,!0),e.markCursor=null;else if(fn(e),a.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),i=r.focusNode,o=r.focusOffset;i&&1==i.nodeType&&0!=o;){var s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(3==s.nodeType){r.collapse(s,s.nodeValue.length);break}i=s,o=-1}e.composing=!0}ln(e,cn)},Rt.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,ln(e,20))};var hn=a.ie&&a.ie_version<15||a.ios&&a.webkit_version<604;function mn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function vn(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?gn(e,r.value,null,t):gn(e,r.textContent,r.innerHTML,t)}),50)}}function gn(e,t,n,r){var o=bt(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,r,o||i["Slice"].empty)})))return!0;if(!o)return!1;var a=mn(o),s=a?e.state.tr.replaceSelectionWith(a,e.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Ft.copy=Rt.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var i=hn?null:t.clipboardData,o=n.content(),a=gt(e,o),s=a.dom,c=a.text;i?(t.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):pn(e,s),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},Rt.paste=function(e,t){if(!e.composing||a.android){var n=hn?null:t.clipboardData;n&&gn(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():vn(e,t)}};var bn=function(e,t){this.slice=e,this.move=t},yn=a.mac?"altKey":"ctrlKey";for(var wn in Ft.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var i=e.state.selection,o=i.empty?null:e.posAtCoords(Gt(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof r["NodeSelection"]?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var a=e.docView.nearestDesc(t.target,!0);a&&a.node.type.spec.draggable&&a!=e.docView&&e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,a.posBefore)))}var s=e.state.selection.content(),c=gt(e,s),l=c.dom,u=c.text;t.dataTransfer.clearData(),t.dataTransfer.setData(hn?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",hn||t.dataTransfer.setData("text/plain",u),e.dragging=new bn(s,!t[yn])}},Ft.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},Rt.dragover=Rt.dragenter=function(e,t){return t.preventDefault()},Rt.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var a=e.posAtCoords(Gt(t));if(a){var s=e.state.doc.resolve(a.pos);if(s){var c=n&&n.slice;c?e.someProp("transformPasted",(function(e){c=e(c)})):c=bt(e,t.dataTransfer.getData(hn?"Text":"text/plain"),hn?null:t.dataTransfer.getData("text/html"),!1,s);var l=n&&!t[yn];if(e.someProp("handleDrop",(function(n){return n(e,t,c||i["Slice"].empty,l)})))t.preventDefault();else if(c){t.preventDefault();var u=c?Object(o["h"])(e.state.doc,s.pos,c):s.pos;null==u&&(u=s.pos);var d=e.state.tr;l&&d.deleteSelection();var f=d.mapping.map(u),p=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,h=d.doc;if(p?d.replaceRangeWith(f,f,c.content.firstChild):d.replaceRange(f,f,c),!d.doc.eq(h)){var m=d.doc.resolve(f);if(p&&r["NodeSelection"].isSelectable(c.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(c.content.firstChild))d.setSelection(new r["NodeSelection"](m));else{var v=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((function(e,t,n,r){return v=r})),d.setSelection(ze(e,m,d.doc.resolve(v)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}}}}}},Ft.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&Le(e)}),20))},Ft.blur=function(e,t){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},Ft.beforeinput=function(e,t){if(a.chrome&&a.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,C(8,"Backspace"))})))){var t=e.state.selection,r=t.$cursor;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())}}),50)}},Rt)Ft[wn]=Rt[wn];function kn(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var xn=function(e,t){this.spec=t||_n,this.side=this.spec.side||0,this.toDOM=e};xn.prototype.map=function(e,t,n,r){var i=e.mapResult(t.from+r,this.side<0?-1:1),o=i.pos,a=i.deleted;return a?null:new Sn(o-n,o-n,this)},xn.prototype.valid=function(){return!0},xn.prototype.eq=function(e){return this==e||e instanceof xn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&kn(this.spec,e.spec))},xn.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var Cn=function(e,t){this.spec=t||_n,this.attrs=e};Cn.prototype.map=function(e,t,n,r){var i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new Sn(i,o,this)},Cn.prototype.valid=function(e,t){return t.from<t.to},Cn.prototype.eq=function(e){return this==e||e instanceof Cn&&kn(this.attrs,e.attrs)&&kn(this.spec,e.spec)},Cn.is=function(e){return e.type instanceof Cn};var On=function(e,t){this.spec=t||_n,this.attrs=e};On.prototype.map=function(e,t,n,r){var i=e.mapResult(t.from+r,1);if(i.deleted)return null;var o=e.mapResult(t.to+r,-1);return o.deleted||o.pos<=i.pos?null:new Sn(i.pos-n,o.pos-n,this)},On.prototype.valid=function(e,t){var n,r=e.content.findIndex(t.from),i=r.index,o=r.offset;return o==t.from&&!(n=e.child(i)).isText&&o+n.nodeSize==t.to},On.prototype.eq=function(e){return this==e||e instanceof On&&kn(this.attrs,e.attrs)&&kn(this.spec,e.spec)};var Sn=function(e,t,n){this.from=e,this.to=t,this.type=n},Tn={spec:{configurable:!0},inline:{configurable:!0}};Sn.prototype.copy=function(e,t){return new Sn(e,t,this.type)},Sn.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},Sn.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Sn.widget=function(e,t,n){return new Sn(e,e,new xn(t,n))},Sn.inline=function(e,t,n,r){return new Sn(e,t,new Cn(n,r))},Sn.node=function(e,t,n,r){return new Sn(e,t,new On(n,r))},Tn.spec.get=function(){return this.type.spec},Tn.inline.get=function(){return this.type instanceof Cn},Object.defineProperties(Sn.prototype,Tn);var En=[],_n={},Mn=function(e,t){this.local=e&&e.length?e:En,this.children=t&&t.length?t:En};Mn.create=function(e,t){return t.length?Bn(t,e,0,_n):In},Mn.prototype.find=function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r},Mn.prototype.findInner=function(e,t,n,r,i){for(var o=0;o<this.local.length;o++){var a=this.local[o];a.from<=t&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var c=this.children[s]+1;this.children[s+2].findInner(e-c,t-c,n,r+c,i)}},Mn.prototype.map=function(e,t,n){return this==In||0==e.maps.length?this:this.mapInner(e,t,0,0,n||_n)},Mn.prototype.mapInner=function(e,t,n,r,i){for(var o,a=0;a<this.local.length;a++){var s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(o||(o=[])).push(s):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?Dn(this.children,o,e,t,n,r,i):o?new Mn(o.sort(Fn)):In},Mn.prototype.add=function(e,t){return t.length?this==In?Mn.create(e,t):this.addInner(e,t,0):this},Mn.prototype.addInner=function(e,t,n){var r,i=this,o=0;e.forEach((function(e,a){var s,c=a+n;if(s=Ln(t,e,c)){r||(r=i.children.slice());while(o<r.length&&r[o]<a)o+=3;r[o]==a?r[o+2]=r[o+2].addInner(e,s,c+1):r.splice(o,0,a,a+e.nodeSize,Bn(s,e,c+1,_n)),o+=3}}));for(var a=Nn(o?Pn(t):t,-n),s=0;s<a.length;s++)a[s].type.valid(e,a[s])||a.splice(s--,1);return new Mn(a.length?this.local.concat(a).sort(Fn):this.local,r||this.children)},Mn.prototype.remove=function(e){return 0==e.length||this==In?this:this.removeInner(e,0)},Mn.prototype.removeInner=function(e,t){for(var n=this.children,r=this.local,i=0;i<n.length;i+=3){for(var o=void 0,a=n[i]+t,s=n[i+1]+t,c=0,l=void 0;c<e.length;c++)(l=e[c])&&l.from>a&&l.to<s&&(e[c]=null,(o||(o=[])).push(l));if(o){n==this.children&&(n=this.children.slice());var u=n[i+2].removeInner(o,a+1);u!=In?n[i+2]=u:(n.splice(i,3),i-=3)}}if(r.length)for(var d=0,f=void 0;d<e.length;d++)if(f=e[d])for(var p=0;p<r.length;p++)r[p].eq(f,t)&&(r==this.local&&(r=this.local.slice()),r.splice(p--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Mn(r,n):In},Mn.prototype.forChild=function(e,t){if(this==In)return this;if(t.isLeaf)return Mn.empty;for(var n,r,i=0;i<this.children.length;i+=3)if(this.children[i]>=e){this.children[i]==e&&(n=this.children[i+2]);break}for(var o=e+1,a=o+t.content.size,s=0;s<this.local.length;s++){var c=this.local[s];if(c.from<a&&c.to>o&&c.type instanceof Cn){var l=Math.max(o,c.from)-o,u=Math.min(a,c.to)-o;l<u&&(r||(r=[])).push(c.copy(l,u))}}if(r){var d=new Mn(r.sort(Fn));return n?new jn([d,n]):d}return n||In},Mn.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Mn)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},Mn.prototype.locals=function(e){return Rn(this.localsInner(e))},Mn.prototype.localsInner=function(e){if(this==In)return En;if(e.inlineContent||!this.local.some(Cn.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Cn||t.push(this.local[n]);return t};var In=new Mn;Mn.empty=In,Mn.removeOverlap=Rn;var jn=function(e){this.members=e};function Dn(e,t,n,r,i,o,a){for(var s=e.slice(),c=function(e,t,n,r){for(var a=0;a<s.length;a+=3){var c=s[a+1],l=void 0;-1==c||e>c+o||(t>=s[a]+o?s[a+1]=-1:n>=i&&(l=r-n-(t-e))&&(s[a]+=l,s[a+1]+=l))}},l=0;l<n.maps.length;l++)n.maps[l].forEach(c);for(var u=!1,d=0;d<s.length;d+=3)if(-1==s[d+1]){var f=n.map(e[d]+o),p=f-i;if(p<0||p>=r.content.size){u=!0;continue}var h=n.map(e[d+1]+o,-1),m=h-i,v=r.content.findIndex(p),g=v.index,b=v.offset,y=r.maybeChild(g);if(y&&b==p&&b+y.nodeSize==m){var w=s[d+2].mapInner(n,y,f+1,e[d]+o+1,a);w!=In?(s[d]=p,s[d+1]=m,s[d+2]=w):(s[d+1]=-2,u=!0)}else u=!0}if(u){var k=An(s,e,t||[],n,i,o,a),x=Bn(k,r,0,a);t=x.local;for(var C=0;C<s.length;C+=3)s[C+1]<0&&(s.splice(C,3),C-=3);for(var O=0,S=0;O<x.children.length;O+=3){var T=x.children[O];while(S<s.length&&s[S]<T)S+=3;s.splice(S,0,x.children[O],x.children[O+1],x.children[O+2])}}return new Mn(t&&t.sort(Fn),s)}function Nn(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(new Sn(i.from+t,i.to+t,i.type))}return n}function An(e,t,n,r,i,o,a){function s(e,t){for(var o=0;o<e.local.length;o++){var c=e.local[o].map(r,i,t);c?n.push(c):a.onRemove&&a.onRemove(e.local[o].spec)}for(var l=0;l<e.children.length;l+=3)s(e.children[l+2],e.children[l]+t+1)}for(var c=0;c<e.length;c+=3)-1==e[c+1]&&s(e[c+2],t[c]+o+1);return n}function Ln(e,t,n){if(t.isLeaf)return null;for(var r=n+t.nodeSize,i=null,o=0,a=void 0;o<e.length;o++)(a=e[o])&&a.from>n&&a.to<r&&((i||(i=[])).push(a),e[o]=null);return i}function Pn(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Bn(e,t,n,r){var i=[],o=!1;t.forEach((function(t,a){var s=Ln(e,t,a+n);if(s){o=!0;var c=Bn(s,t,n+a+1,r);c!=In&&i.push(a,a+t.nodeSize,c)}}));for(var a=Nn(o?Pn(e):e,-n).sort(Fn),s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new Mn(a,i):In}function Fn(e,t){return e.from-t.from||e.to-t.to}function Rn(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var i=n+1;i<t.length;i++){var o=t[i];if(o.from!=r.from){o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),qn(t,i,r.copy(o.from,r.to)));break}o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),qn(t,i+1,o.copy(r.to,o.to)))}}return t}function qn(e,t,n){while(t<e.length&&Fn(n,e[t])>0)t++;e.splice(t,0,n)}function Hn(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=In&&t.push(r)})),e.cursorWrapper&&t.push(Mn.create(e.state.doc,[e.cursorWrapper.deco])),jn.from(t)}jn.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,_n)}));return jn.from(n)},jn.prototype.forChild=function(e,t){if(t.isLeaf)return Mn.empty;for(var n=[],r=0;r<this.members.length;r++){var i=this.members[r].forChild(e,t);i!=In&&(i instanceof jn?n=n.concat(i.members):n.push(i))}return jn.from(n)},jn.prototype.eq=function(e){if(!(e instanceof jn)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},jn.prototype.locals=function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var i=this.members[r].localsInner(e);if(i.length)if(t){n&&(t=t.slice(),n=!1);for(var o=0;o<i.length;o++)t.push(i[o])}else t=i}return t?Rn(n?t:t.sort(Fn)):En},jn.from=function(e){switch(e.length){case 0:return In;case 1:return e[0];default:return new jn(e)}};var Un=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Yn),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Wn(this),this.markCursor=null,this.cursorWrapper=null,$n(this),this.nodeViews=Kn(this),this.docView=fe(this.state.doc,zn(this),Hn(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,qt(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},Vn={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function zn(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r&&(t.class+=" "+n[r]),"style"==r?t.style=(t.style?t.style+";":"")+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))})),[Sn.node(0,e.state.doc.content.size,t)]}function $n(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Sn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Wn(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function Gn(e,t){var n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Kn(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}function Jn(e,t){var n=0,r=0;for(var i in e){if(e[i]!=t[i])return!0;n++}for(var o in t)r++;return n!=r}function Yn(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}Vn.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},Un.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Vt(this),this._props=e,e.plugins&&(e.plugins.forEach(Yn),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},Un.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)},Un.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Un.prototype.updateStateInner=function(e,t){var n=this,i=this.state,o=!1,s=!1;if(e.storedMarks&&this.composing&&(un(this),s=!0),this.state=e,t){var c=Kn(this);Jn(c,this.nodeViews)&&(this.nodeViews=c,o=!0),Vt(this)}this.editable=Wn(this),$n(this);var l=Hn(this),u=zn(this),d=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=o||!this.docView.matchesNode(e.doc,u,l);!f&&e.selection.eq(i.selection)||(s=!0);var p="preserve"==d&&s&&null==this.dom.style.overflowAnchor&&_(this);if(s){this.domObserver.stop();var h=f&&(a.ie||a.chrome)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&Gn(i.selection,e.selection);if(f){var m=a.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!o&&this.docView.update(e.doc,u,l,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=fe(e.doc,u,l,this.dom,this)),m&&!this.trackWrites&&(h=!0)}h||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&Ge(this))?Le(this,h):(Ue(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==d)this.dom.scrollTop=0;else if("to selection"==d){var v=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof r["NodeSelection"]?E(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),v):E(this,this.coordsAtPos(e.selection.head,1),v))}else p&&I(p)},Un.prototype.destroyPluginViews=function(){var e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()},Un.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var r=0;r<this.directPlugins.length;r++){var i=this.directPlugins[r];i.spec.view&&this.pluginViews.push(i.spec.view(this))}for(var o=0;o<this.state.plugins.length;o++){var a=this.state.plugins[o];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}},Un.prototype.someProp=function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(var i=0;i<this.directPlugins.length;i++){var o=this.directPlugins[i].props[e];if(null!=o&&(n=t?t(o):o))return n}var a=this.state.plugins;if(a)for(var s=0;s<a.length;s++){var c=a[s].props[e];if(null!=c&&(n=t?t(c):c))return n}},Un.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Un.prototype.focus=function(){this.domObserver.stop(),this.editable&&N(this.dom),Le(this),this.domObserver.start()},Vn.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},Un.prototype.posAtCoords=function(e){return H(this,e)},Un.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),z(this,e,t)},Un.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},Un.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Un.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},Un.prototype.endOfTextblock=function(e,t){return ee(this,t||this.state,e)},Un.prototype.destroy=function(){this.docView&&(Ut(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Hn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Vn.isDestroyed.get=function(){return null==this.docView},Un.prototype.dispatchEvent=function(e){return Wt(this,e)},Un.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Un.prototype,Vn)},5865:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l6}));var r=n("304a"),i=n("576a"),o=n("0ac0"),a=n("5313"),s=n("7f06"),c=n("0010"),l=n("f95e"),u=n("8726"),d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)};function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)};function h(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function m(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function v(e,t,n){var r;for(r in n=n||null,e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))break}var g=v;function b(e,t){var n,r,i,o,a=Object.prototype.hasOwnProperty;for(i=1,o=arguments.length;i<o;i+=1)for(r in n=arguments[i],n)a.call(n,r)&&(e[r]=n[r]);return e}var y=b;function w(e){return"string"===typeof e||e instanceof String}var k=w;function x(e){return e instanceof Array}var C=x;function O(e,t,n){var r=0,i=e.length;for(n=n||null;r<i;r+=1)if(!1===t.call(n,e[r],r,e))break}var S=O,T=C,E=S,_=g;function M(e,t,n){T(e)?E(e,t,n):_(e,t,n)}var I=M,j=k,D=I;function N(e,t,n){var r=e.style;j(t)?r[t]=n:D(t,(function(e,t){r[t]=e}))}var A=N,L=C;function P(e,t,n){var r,i;if(n=n||0,!L(t))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e,n);for(i=t.length,r=n;n>=0&&r<i;r+=1)if(t[r]===e)return r;return-1}var B=P;function F(e){return void 0===e}var R=F,q=R;function H(e){return e&&e.className?q(e.className.baseVal)?e.className:e.className.baseVal:""}var U=H,V=C,z=R;function $(e,t){t=V(t)?t.join(" "):t,t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),z(e.className.baseVal)?e.className=t:e.className.baseVal=t}var W=$,G=I,K=B,J=U,Y=W;function X(e){var t,n=Array.prototype.slice.call(arguments,1),r=e.classList,i=[];r?G(n,(function(t){e.classList.add(t)})):(t=J(e),t&&(n=[].concat(t.split(/\s+/),n)),G(n,(function(e){K(e,i)<0&&i.push(e)})),Y(e,i))}var Q=X,Z=S,ee=B,te=U,ne=W;function re(e){var t,n,r=Array.prototype.slice.call(arguments,1),i=e.classList;i?Z(r,(function(e){i.remove(e)})):(t=te(e).split(/\s+/),n=[],Z(t,(function(e){ee(e,r)<0&&n.push(e)})),ne(e,n))}var ie=re;function oe(e){return"number"===typeof e||e instanceof Number}var ae=oe;function se(e){return null===e}var ce=se,le=g;function ue(e,t){var n=document.createElement("img"),r="";return le(t,(function(e,t){r+="&"+t+"="+e})),r=r.substring(1),n.src=e+"?"+r,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}var de=ue,fe=R,pe=de,he=6048e5;function me(e){var t=(new Date).getTime();return t-e>he}function ve(e,t){var n="https://www.google-analytics.com/collect",r=location.hostname,i="event",o="use",a="TOAST UI "+e+" for "+r+": Statistics",s=window.localStorage.getItem(a);(fe(window.tui)||!1!==window.tui.usageStatistics)&&(s&&!me(s)||(window.localStorage.setItem(a,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||pe(n,{v:1,t:i,tid:t,cid:r,dp:r,dh:e,el:e,ec:o})}),1e3)))}var ge=ve;/Mac/.test(navigator.platform);var be=/[\u0020]+/g,ye=/[>(){}[\]+-.!#|]/g,we=/<([a-zA-Z_][a-zA-Z0-9\-._]*)(\s|[^\\/>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-._]*)\s*\/?>|<!--[^-]+-->|<([a-zA-Z_][a-zA-Z0-9\-.:/]*)>/g,ke=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/g,xe=/[*_~`]/g,Ce=/!\[.*\]\(.*\)/g,Oe=/[[\]]/g,Se='[&<>"]',Te=new RegExp(Se,"g");function Ee(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return e}}function _e(e){return Te.test(e)?e.replace(Te,Ee):e}function Me(){ge("editor","UA-129966929-1")}function Ie(e,t){return-1!==e.indexOf(t)}var je=["rel","target","hreflang","type"],De={codeblock:/(^ {4}[^\n]+\n*)+/,thematicBreak:/^ *((\* *){3,}|(- *){3,} *|(_ *){3,}) */,atxHeading:/^(#{1,6}) +[\s\S]+/,seTextheading:/^([^\n]+)\n *(=|-){2,} */,blockquote:/^( *>[^\n]+.*)+/,list:/^ *(\*+|-+|\d+\.) [\s\S]+/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? */,link:/!?\[.*\]\(.*\)/,reflink:/!?\[.*\]\s*\[([^\]]*)\]/,verticalBar:/\u007C/,fencedCodeblock:/^((`|~){3,})/};function Ne(e){if(!e)return null;var t={};return je.forEach((function(n){R(e[n])||(t[n]=e[n])})),t}function Ae(e,t){for(var n="",r=0;r<t;r+=1)n+=e;return n}function Le(e){var t=!1;return g(De,(function(n){return n.test(e)&&(t=!0),!t})),t}function Pe(e){var t=[],n=Ce.exec(e);while(n)t.push([n.index,n.index+n[0].length]),n=Ce.exec(e);return e.replace(Oe,(function(e,n){var r=t.some((function(e){return n>e[0]&&n<e[1]}));return r?e:"\\"+e}))}function Be(e){var t=function(e){return"\\"+e},n=e.replace(be," ");return ke.test(n)&&(n=n.replace(ke,t)),n=n.replace(xe,t),we.test(n)&&(n=n.replace(we,t)),Le(n)&&(n=n.replace(ye,t)),n}function Fe(e){var t;return t=-1===e.indexOf('"')?'""':-1===e.indexOf("'")?"''":"()",t[0]+e+t[1]}function Re(e){return ce(e)||R(e)}function qe(e,t){if(null===e&&e===t)return!0;if("object"!==typeof e||"object"!==typeof t||Re(e)||Re(t))return e===t;for(var n in e)if(e[n]!==t[n])return!1;for(var n in t)if(!(n in e))return!1;return!0}function He(e){return e[e.length-1]}function Ue(e,t,n){return e>=t&&e<=n}function Ve(e){return"object"===typeof e&&null!==e}function ze(e,t){var n=p({},e);return e&&t&&Object.keys(t).forEach((function(e){Ve(n[e])?Array.isArray(t[e])?n[e]=$e(t[e]):n.hasOwnProperty(e)?n[e]=ze(n[e],t[e]):n[e]=We(t[e]):n[e]=t[e]})),n}function $e(e){return e.map((function(e){return Ve(e)?Array.isArray(e)?$e(e):We(e):e}))}function We(e){var t=Object.keys(e);return t.length?t.reduce((function(t,n){return Ve(e[n])?t[n]=Array.isArray(e[n])?$e(e[n]):We(e[n]):t[n]=e[n],t}),{}):e}function Ge(e,t){return void 0===t&&(t={}),Object.keys(t).forEach((function(n){e.hasOwnProperty(n)&&"object"===typeof e[n]?Array.isArray(t[n])?e[n]=t[n]:Ge(e[n],t[n]):e[n]=t[n]})),e}function Ke(e,t){return e>t?[t,e]:[e,t]}var Je=S;function Ye(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){t=[],Je(e,(function(e){t.push(e)}))}return t}var Xe=Ye;function Qe(e,t){var n=e.nodes.paragraph;return t?n.create(null,k(t)?e.text(t):t):n.createAndFill()}function Ze(e,t,n){return e.text(t,n)}function et(e,t,n){void 0===n&&(n=t);var r=e.doc.content.size,i=r>0?r-1:1;return a["TextSelection"].create(e.doc,Math.min(t,i),Math.min(n,i))}function tt(e,t,n){var r=t.pos;return e.replaceWith(r,r,Qe(n)),e.setSelection(et(e,r+1))}function nt(e){for(var t=e.state,n=e.from,i=e.startIndex,o=e.endIndex,a=e.createText,s=t.tr,c=t.doc,l=t.schema,u=i;u<=o;u+=1){var d=c.child(u),f=d.nodeSize,p=d.textContent,h=d.content,m=a(p),v=m?Ze(l,m):r["Fragment"].empty,g=s.mapping.map(n),b=g+h.size;s.replaceWith(g,b,v),n+=f}return s}function rt(e,t,n,r){var i=n.length;e.split(t).delete(t-i,t).insert(e.mapping.map(t),r).setSelection(et(e,e.mapping.map(t)-i))}function it(e){return e.sourcepos[0][0]}function ot(e){return e.sourcepos[1][0]}function at(e){return e.sourcepos[0][1]}function st(e){return e.sourcepos[1][1]}function ct(e){var t=e.type;return"htmlBlock"===t||"htmlInline"===t}function lt(e){var t=e.type;return"strike"===t||"strong"===t||"emph"===t||"code"===t||"link"===t||"image"===t}function ut(e){return e&&"codeBlock"===e.type}function dt(e){return e&&("item"===e.type||"list"===e.type)}function ft(e){return dt(e)&&"ordered"===e.listData.type}function pt(e){return dt(e)&&"ordered"!==e.listData.type}function ht(e){return e&&("tableCell"===e.type||"tableDelimCell"===e.type)}function mt(e){switch(e.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":case"customInline":return!0;default:return!1}}function vt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type){if(t(e))return e;e=e.parent}return null}function gt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type)t(e),e=e.parent}function bt(e,t){return[e[0],e[1]+t]}function yt(e,t){return[e[0],t]}function wt(e){var t=e.firstChild.literal;switch(e.type){case"emph":return"*"+t+"*";case"strong":return"**"+t+"**";case"strike":return"~~"+t+"~~";case"code":return"`"+t+"`";case"link":case"image":var n=e,r=n.destination,i=n.title,o="link"===e.type?"":"!";return o+"["+t+"]("+r+(i?' "'+i+'"':"")+")";default:return null}}function kt(e){switch(e.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}function xt(e){var t=[],n=e.walker(),r=null;while(r=n.next()){var i=r.node;"text"===i.type&&t.push(i.literal)}return t.join("")}var Ct=[],Ot={},St=/\$\$widget\d+\s/;function Tt(e){var t=e.search(St);if(-1!==t){var n=e.substring(t),r=n.replace(St,"").replace("$$","");e=e.substring(0,t),e+=Tt(r)}return e}function Et(e,t){return"$$"+e+" "+t+"$$"}function _t(e,t){var n=Ot[e],r=n.rule,i=n.toDOM;return t=Tt(t).match(r)[0],i(t)}function Mt(){return Ct}function It(e){Ct=e,Ct.forEach((function(e,t){Ot["widget"+t]=e}))}function jt(e,t,n,r){return e.concat(Dt(t,n,r))}function Dt(e,t,n){void 0===n&&(n=0);var r=[],i=(Ct[n]||{}).rule,o=n+1;if(e=Tt(e),i&&i.test(e)){var a=void 0;while(-1!==(a=e.search(i))){var s=e.substring(0,a);s&&(r=jt(r,s,t,o)),e=e.substring(a);var c=e.match(i)[0],l="widget"+n;r.push(t.nodes.widget.create({info:l},t.text(Et(l,c)))),e=e.substring(c.length)}e&&(r=jt(r,e,t,o))}else e&&(r=n<Ct.length-1?jt(r,e,t,o):[t.text(e)]);return r}function Nt(e){var t,n="",r=e.walker();while(t=r.next()){var i=t.node,o=t.entering;o&&(i!==e&&"text"!==i.type?(n+=wt(i),r.resumeAt(e,!1),r.next()):"text"===i.type&&(n+=i.literal))}return n}function At(){return{deleteSelection:function(){return c["c"]},selectAll:function(){return c["g"]},undo:function(){return u["c"]},redo:function(){return u["b"]}}}function Lt(e){return new a["Plugin"]({props:{decorations:function(t){var n=t.doc;if(e.text&&1===n.childCount&&n.firstChild.isTextblock&&0===n.firstChild.content.size){var r=document.createElement("span");return Q(r,"placeholder"),e.className&&Q(r,e.className),r.textContent=e.text,i["DecorationSet"].create(n,[i["Decoration"].widget(1,r)])}return null}}})}var Pt=B,Bt=U;function Ft(e,t){var n;return e.classList?e.classList.contains(t):(n=Bt(e).split(/\s+/),Pt(t,n)>-1)}var Rt=Ft,qt=B,Ht=Xe,Ut=Element.prototype,Vt=Ut.matches||Ut.webkitMatchesSelector||Ut.mozMatchesSelector||Ut.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return qt(this,Ht(t.querySelectorAll(e)))>-1};function zt(e,t){return Vt.call(e,t)}var $t=zt,Wt="[A-Za-z][A-Za-z0-9-]*",Gt="[a-zA-Z_:][a-zA-Z0-9:._-]*",Kt="[^\"'=<>`\\x00-\\x20]+",Jt="'[^']*'",Yt='"[^"]*"',Xt="(?:"+Kt+"|"+Jt+"|"+Yt+")",Qt="(?:\\s*=\\s*"+Xt+")",Zt="(?:\\s+"+Gt+Qt+"?)",en="<("+Wt+")("+Zt+")*\\s*/?>",tn="</("+Wt+")\\s*[>]",nn="(?:"+en+"|"+tn+")",rn=new RegExp("^"+nn,"i"),on=/<br\s*\/*>/i,an=/<! ---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,sn="</p><p>";function cn(e,t,n){var r=parseInt(e.left,10),i=parseInt(e.top,10),o=parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),a=parseInt(e.height,10)+parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10);return t>=r&&t<=r+o&&n>=i&&n<=i+a}var ln="toastui-editor-";function un(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],a=void 0;a=Array.isArray(o)?o[0]?o[1]:null:o,a&&n.push(""+ln+a)}return n.join(" ")}function dn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.map((function(e){return ln+"md-"+e})).join(" ")}function fn(e){return(null===e||void 0===e?void 0:e.nodeType)===Node.TEXT_NODE}function pn(e){return e&&e.nodeType===Node.ELEMENT_NODE}function hn(e,t){var n=Xe(e.querySelectorAll(t));return n.length?n:[]}function mn(e,t){t=C(t)?Xe(t):[t],t.forEach((function(t){e.appendChild(t)}))}function vn(e,t){t.parentNode&&t.parentNode.insertBefore(e,t)}function gn(e){e.parentNode&&e.parentNode.removeChild(e)}function bn(e){var t=[];while(e.firstChild)t.push(e.firstChild),e.parentNode&&e.parentNode.insertBefore(e.firstChild,e);return gn(e),t}function yn(e,t,n){R(n)&&(n=!Rt(e,t));var r=n?Q:ie;r(e,t)}function wn(e,t){var n=document.createElement("div");k(e)?n.innerHTML=e:n.appendChild(e);var r=n.firstChild;return t&&t.appendChild(r),r}function kn(e){var t=window.getComputedStyle(e);return["margin-left","margin-right"].reduce((function(e,n){return e+parseInt(t.getPropertyValue(n),10)}),0)+e.offsetWidth}function xn(e,t){var n;n=k(t)?function(e){return $t(e,t)}:function(e){return e===t};while(e&&e!==document){if(pn(e)&&n(e))return e;e=e.parentNode}return null}function Cn(e,t){var n=0,r=0;while(e&&e!==t){var i=e.offsetTop,o=e.offsetLeft,a=e.offsetParent;if(n+=i,r+=o,a===t.offsetParent)break;e=e.offsetParent}return{offsetTop:n,offsetLeft:r}}function On(e,t){Object.keys(e).forEach((function(n){Re(e[n])?t.removeAttribute(n):t.setAttribute(n,e[n])}))}function Sn(e){var t=e.replace(/<p><br\s*\/*><\/p>/gi,"<p></p>"),n=new RegExp(nn,"ig"),r=t.match(n);return null===r||void 0===r||r.forEach((function(e,n){if(on.test(e)){var i=sn;if(n){var o=r[n-1],a=o.match(en);if(a&&!/br/i.test(a[1])){var s=a[1];i="</"+s+"><"+s+">"}}t=t.replace(on,i)}})),t}var Tn=new a["PluginKey"]("widget"),En=5,_n=function(){function e(e,t){var n=this;this.popup=null,this.removeWidget=function(){n.popup&&(n.rootEl.removeChild(n.popup),n.popup=null)},this.rootEl=e.dom.parentElement,this.eventEmitter=t,this.eventEmitter.listen("blur",this.removeWidget),this.eventEmitter.listen("loadUI",(function(){n.rootEl=xn(e.dom.parentElement,"."+un("defaultUI"))})),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return e.prototype.update=function(e){var t=Tn.getState(e.state);if(this.removeWidget(),t){var n=t.node,r=t.style,i=e.coordsAtPos(t.pos),o=i.top,a=i.left,s=i.bottom,c=s-o,l=this.rootEl.getBoundingClientRect(),u=o-l.top;A(n,{opacity:"0"}),this.rootEl.appendChild(n),A(n,{position:"absolute",left:a-l.left+En+"px",top:("bottom"===r?u+c-En:u-c)+"px",opacity:"1"}),this.popup=n,e.focus()}},e.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},e}();function Mn(e){return new a["Plugin"]({key:Tn,state:{init:function(){return null},apply:function(e){return e.getMeta("widget")}},view:function(t){return new _n(t,e)}})}function In(e){e.listen("addImageBlobHook",(function(e,t){var n=new FileReader;n.onload=function(e){var n=e.target;return t(n.result)},n.readAsDataURL(e)}))}function jn(e,t,n){var r=function(n,r){e.emit("command","addImage",{imageUrl:n,altText:r||t.name||"image"})};e.emit("addImageBlobHook",t,r,n)}function Dn(e){var t=Xe(e).filter((function(e){var t=e.type;return-1!==t.indexOf("image")}));if(1===t.length){var n=t[0];if(n)return n.getAsFile()}return null}function Nn(e){var t=e.eventEmitter;return new a["Plugin"]({props:{handleDOMEvents:{drop:function(e,n){var r,i=null===(r=n.dataTransfer)||void 0===r?void 0:r.files;return i&&S(i,(function(e){return-1===e.type.indexOf("image")||(n.preventDefault(),n.stopPropagation(),jn(t,e,n.type),!1)})),!0}}}})}var An=function(){function e(){}return Object.defineProperty(e.prototype,"type",{get:function(){return"node"},enumerable:!1,configurable:!0}),e.prototype.setContext=function(e){this.context=e},e}();function Ln(e){var t=document.createElement("span"),n=_t(e.attrs.info,e.textContent);return t.className="tui-widget",t.appendChild(n),{dom:t}}function Pn(e){return"widget"===e.type.name}var Bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"widget"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{info:{default:null}},group:"inline",inline:!0,content:"text*",selectable:!1,atom:!0,toDOM:function(){return["span",{class:"tui-widget"},0]},parseDOM:[{tag:"span.tui-widget",getAttrs:function(e){var t=e.textContent,n=t.match(/\$\$(widget\d+)/),r=n[1];return{info:r}}}]}},enumerable:!1,configurable:!0}),t}(An),Fn=function(){function e(e){this.timer=null,this.el=document.createElement("div"),this.el.className="toastui-editor",this.eventEmitter=e,this.placeholder={text:""}}return e.prototype.createState=function(){return a["EditorState"].create({schema:this.schema,plugins:this.createPlugins()})},e.prototype.initEvent=function(){var e=this,t=e.eventEmitter,n=e.view,r=e.editorType;n.dom.addEventListener("focus",(function(){return t.emit("focus",r)})),n.dom.addEventListener("blur",(function(){return t.emit("blur",r)}))},e.prototype.emitChangeEvent=function(e){this.eventEmitter.emit("caretChange",this.editorType),e.docChanged&&this.eventEmitter.emit("change",this.editorType)},Object.defineProperty(e.prototype,"defaultPlugins",{get:function(){var e=this.createInputRules(),t=h(h([],this.keymaps),[Object(s["a"])(p({"Shift-Enter":c["a"].Enter},c["a"])),Object(u["a"])(),Lt(this.placeholder),Mn(this.eventEmitter),Nn(this.context)]);return e?t.concat(e):t},enumerable:!1,configurable:!0}),e.prototype.createInputRules=function(){var e=Mt(),t=e.map((function(e){var t=e.rule;return new l["a"](t,(function(e,n,r,i){var o=e.schema,a=e.tr,s=e.doc,c=n.input.match(new RegExp(t,"g")),l=s.resolve(r),u=l.parent,d=0;if(Pn(u)&&(u=l.node(l.depth-1)),u.forEach((function(e){return Pn(e)&&(d+=1)})),c.length>d){var f=He(c),p=Dt(f,o);return a.replaceWith(i-f.length+1,i,p)}return null}))}));return t.length?Object(l["b"])({rules:t}):null},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.createSchema=function(){return new r["Schema"]({nodes:this.specs.nodes,marks:this.specs.marks})},e.prototype.createKeymaps=function(e){var t=At(),n=t.undo,r=t.redo,i=this.specs.keymaps(e),o={"Mod-z":n(),"Shift-Mod-z":r()};return e?i.concat(Object(s["a"])(o)):i},e.prototype.createCommands=function(){return this.specs.commands(this.view)},e.prototype.createPluginProps=function(){var e=this;return this.extraPlugins.map((function(t){return t(e.eventEmitter)}))},e.prototype.focus=function(){var e=this;this.clearTimer(),this.timer=setTimeout((function(){e.view.focus(),e.view.dispatch(e.view.state.tr.scrollIntoView())}))},e.prototype.blur=function(){this.view.dom.blur()},e.prototype.destroy=function(){var e=this;this.clearTimer(),this.view.destroy(),Object.keys(this).forEach((function(t){delete e[t]}))},e.prototype.moveCursorToStart=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(et(t,1)).scrollIntoView()),e&&this.focus()},e.prototype.moveCursorToEnd=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(et(t,t.doc.content.size-1)).scrollIntoView()),e&&this.focus()},e.prototype.setScrollTop=function(e){this.view.dom.scrollTop=e},e.prototype.getScrollTop=function(){return this.view.dom.scrollTop},e.prototype.setPlaceholder=function(e){this.placeholder.text=e,this.view.dispatch(this.view.state.tr.scrollIntoView())},e.prototype.setHeight=function(e){A(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){A(this.el,{minHeight:e+"px"})},e.prototype.getElement=function(){return this.el},e}();function Rn(e){return e instanceof Function}var qn=Rn,Hn=["Enter","Shift-Enter","Mod-Enter","Tab","Shift-Tab","Delete","Backspace","Mod-Delete","Mod-Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Mod-d","Mod-D","Alt-ArrowUp","Alt-ArrowDown"];function Un(e,t,n){return e.focus(),t(n)(e.state,e.dispatch,e)}var Vn=function(){function e(e){this.specs=e}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this.specs.filter((function(e){return"node"===e.type})).reduce((function(e,t){var n,r=t.name,i=t.schema;return p(p({},e),(n={},n[r]=i,n))}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"marks",{get:function(){return this.specs.filter((function(e){return"mark"===e.type})).reduce((function(e,t){var n,r=t.name,i=t.schema;return p(p({},e),(n={},n[r]=i,n))}),{})},enumerable:!1,configurable:!0}),e.prototype.commands=function(e,t){var n=this.specs.filter((function(e){var t=e.commands;return t})).reduce((function(t,n){var r={},i=n.commands();return qn(i)?r[n.name]=function(t){return Un(e,i,t)}:Object.keys(i).forEach((function(t){r[t]=function(n){return Un(e,i[t],n)}})),p(p({},t),r)}),{}),r=At();return Object.keys(r).forEach((function(t){n[t]=function(n){return Un(e,r[t],n)}})),t&&Object.keys(t).forEach((function(r){n[r]=function(n){return Un(e,t[r],n)}})),n},e.prototype.keymaps=function(e){var t=this.specs.filter((function(e){return e.keymaps})).map((function(e){return e.keymaps()}));return t.map((function(t){return e||Object.keys(t).forEach((function(e){Ie(Hn,e)||delete t[e]})),Object(s["a"])(t)}))},e.prototype.setContext=function(e){this.specs.forEach((function(t){t.setContext(e)}))},e}();function zn(e){var t=e.from,n=e.to;return e instanceof a["AllSelection"]?[t+1,n-1]:[t,n]}function $n(e){return e.index(0)+1}function Wn(e,t,n){void 0===n&&(n=1);var r=0;return e.forEach((function(e,i){Pn(e)&&i+2<t&&(r+=2*n)})),r}function Gn(e,t,n){void 0===n&&(n=t);var r=t===n,i=e.resolve(t),o=$n(i),a=o,s=i.start(1),c=s;if(!r){var l=e.resolve(n===e.content.size?n-1:n);c=l.start(1),a=$n(l),l.pos===e.content.size&&(n=e.content.size-2)}var u=Math.max(t-s+1,1),d=Math.max(n-c+1,1);return[[o,u+Wn(e.child(o-1),u,-1)],[a,d+Wn(e.child(a-1),d,-1)]]}function Kn(e,t){for(var n=[],r=0,i=0;r<t;r+=1){var o=e.child(r);n[r]=i,i+=o.nodeSize}return n}function Jn(e,t,n){var r=Kn(e,n[0]),i=t[0]-1,o=n[0]-1,a=e.child(i),s=e.child(o),c=r[i],l=r[o];return c+=t[1]+Wn(a,t[1]-1),l+=n[1]+Wn(s,n[1]-1),[c,Math.min(l,e.content.size)]}function Yn(e){var t=e.$from,n=e.$to,r=e.from,i=e.to,o=t.doc;return e instanceof a["AllSelection"]&&(t=o.resolve(r+1),n=o.resolve(i-1)),0===t.depth&&(t=o.resolve(r-1),n=t),{startFromOffset:t.start(1),endFromOffset:n.start(1),startToOffset:t.end(1),endToOffset:n.end(1),startIndex:t.index(0),endIndex:n.index(0),from:t.pos,to:n.pos}}function Xn(e,t){for(var n=1,r=1,i=0,o=0;i<e.childCount;i+=1){var a=e.child(i).nodeSize;if(n=o+1,r=o+a-1,i===t)break;o+=a}return{startOffset:n,endOffset:r}}var Qn="heading",Zn="blockQuote",er="listItem",tr="table",nr="tableCell",rr="codeBlock",ir="thematicBreak",or="link",ar="code",sr="meta",cr="delimiter",lr="taskDelimiter",ur="markedText",dr="html",fr="customBlock",pr={strong:2,emph:1,strike:2};function hr(e,t,n,r){return{start:e,end:t,spec:{type:n,attrs:r}}}function mr(e,t,n){var r=e.level,i=e.headingType,o=[hr(t,n,Qn,{level:r})];return"atx"===i?o.push(hr(t,bt(t,r),cr)):o.push(hr(yt(n,0),n,Qn,{seText:!0})),o}function vr(e,t,n){var r=e.type,i=bt(t,pr[r]),o=bt(n,-pr[r]);return[hr(i,o,r),hr(t,i,cr),hr(o,n,cr)]}function gr(e,t,n,r){return[hr(e,t,or),hr(yt(e,n[1]+1),yt(t,r),or,{desc:!0}),hr(yt(t,r+2),bt(t,-1),or,{url:!0})]}function br(e,t,n){var r=e.lastChild,i=r?st(r)+1:3,o=bt(t,1);return h([hr(t,o,sr)],gr(t,n,o,i))}function yr(e,t,n){var r=e.lastChild,i=e.extendedAutolink,o=r?st(r)+1:2;return i?[hr(t,n,or,{desc:!0})]:gr(t,n,t,o)}function wr(e,t,n){var r=e.tickCount,i=bt(t,r),o=bt(n,-r);return[hr(t,n,ar),hr(t,i,ar,{start:!0}),hr(i,o,ar,{marked:!0}),hr(o,n,ar,{end:!0})]}function kr(e,t,n,r){var i={start:t,end:n,spec:{attrs:{className:r+"-line-background",codeStart:t[0],codeEnd:n[0]}},lineBackground:!0};return"item"!==e.type&&"blockQuote"!==e.type?[p(p({},i),{end:t,spec:{attrs:{className:r+"-line-background start"}}}),p(p({},i),{start:[Math.min(t[0]+1,n[0]),t[1]]})]:null}function xr(e,t,n,r){var i=e.fenceOffset,o=e.fenceLength,a=e.fenceChar,s=e.info,c=e.infoPadding,l=e.parent,u=i+o,d=[hr(yt(t,1),n,rr)];a&&d.push(hr(t,bt(t,u),cr)),s&&d.push(hr(bt(t,o),bt(t,o+c+s.length),sr));var f="^(\\s{0,4})("+a+"{"+o+",})",p=new RegExp(f);p.test(r)&&d.push(hr(yt(n,1),n,cr));var h=kr(l,t,n,"code-block");return h?d.concat(h):d}function Cr(e,t,n){var r=e,i=r.offset,o=r.syntaxLength,a=r.info,s=r.parent,c=i+o,l=[hr(yt(t,1),n,fr)];l.push(hr(t,bt(t,c),cr)),a&&l.push(hr(bt(t,c),bt(t,o+a.length),sr)),l.push(hr(yt(n,1),n,cr));var u=kr(s,t,n,"custom-block");return u?l.concat(u):l}function Or(e,t){var n=[];while(e){var r=e.type;"paragraph"!==r&&"codeBlock"!==r||n.push(hr([it(e),at(e)-1],[ot(e),st(e)+1],t)),e=e.next}return n}function Sr(e){var t=[];while(e)t.push(hr([it(e),at(e)],[ot(e),st(e)+1],ur)),e=e.next;return t}function Tr(e,t,n){var r=e.parent&&"blockQuote"!==e.parent.type?[hr(t,n,Zn)]:[];if(e.firstChild){var i=[];"paragraph"===e.firstChild.type?i=Sr(e.firstChild.firstChild):"list"===e.firstChild.type&&(i=Or(e.firstChild,ur)),r=h(h([],r),i)}return r}function Er(e){var t=0;while(e.parent.parent&&"item"===e.parent.parent.type)e=e.parent.parent,t+=1;var n=[{odd:!0},{even:!0}][t%2];return[er,p(p({},n),{listStyle:!0})]}function _r(e,t){var n=e.listData,r=n.padding,i=n.task,o=Er(e),a=[hr.apply(void 0,h([t,bt(t,r)],o))];return i&&(a.push(hr(bt(t,r),bt(t,r+3),lr)),a.push(hr(bt(t,r+1),bt(t,r+2),sr))),a.concat(Or(e.firstChild,ur))}var Mr={heading:mr,strong:vr,emph:vr,strike:vr,link:yr,image:br,code:wr,codeBlock:xr,blockQuote:Tr,item:_r,customBlock:Cr},Ir={thematicBreak:ir,table:tr,tableCell:nr,htmlInline:dr};function jr(e,t,n,r){var i=e.type;return qn(Mr[i])?Mr[i](e,t,n,r):Ir[i]?[hr(t,n,Ir[i])]:null}var Dr={};function Nr(e){var t=e.schema,n=e.toastMark;return new a["Plugin"]({appendTransaction:function(e,r,i){var o=e[0],a=i.tr;if(o.docChanged){var s=[],c=o.getMeta("editResult");c.forEach((function(e){var t=e.nodes,r=e.removedNodeRange;if(t.length){s=s.concat(Rr(a,t));for(var i=0,o=t;i<o.length;i++){var c=o[i],l=c.walker(),u=l.next();while(u){var d=u.node,f=u.entering;f&&(s=s.concat(qr(d,n))),u=l.next()}}}else if(r)for(var p=a.doc.childCount-1,h=r.line,m=h[0],v=h[1],g=Math.min(m,p),b=Math.min(v,p),y=g;y<=b;y+=1)Dr[y]=!0})),Pr(a,t,s)}return a.setMeta("widget",o.getMeta("widget"))}})}function Ar(e,t,n){return Object.keys(n).some((function(r){return n[r]!==e.child(t).attrs[r]}))}function Lr(e,t,n,r,i){void 0===i&&(i={});for(var o=r.startIndex,a=r.endIndex,s=r.from,c=r.to,l=!1,u=o;u<=a;u+=1)delete Dr[u],l=Ar(t,u,i);l&&e.setBlockType(s,c,n,i)}function Pr(e,t,n){var r=e.doc,i=t.nodes.paragraph,o=Kn(r,r.childCount);n.forEach((function(n){var a=n.start,s=n.end,c=n.spec,l=n.lineBackground,u=Math.min(a[0],r.childCount)-1,d=Math.min(s[0],r.childCount)-1,f=r.child(u),p=r.child(d),h=o[u],m=o[d];if(h+=a[1]+Wn(f,a[1]-1),m+=s[1]+Wn(p,s[1]-1),c)if(l){var v={from:h,to:m,startIndex:u,endIndex:d};Lr(e,r,i,v,c.attrs)}else e.addMark(h,m,t.mark(c.type,c.attrs));else e.removeMark(h,m)})),Br(e,o,i)}function Br(e,t,n){Object.keys(Dr).forEach((function(r){var i=Number(r),o=Math.min(Number(r)+1,e.doc.childCount-1),a=t[i],s=t[o]-1;i===o&&(s+=2),e.setBlockType(a,s,n)}))}function Fr(e,t,n){var r=[];Dr={};for(var i=t[0]-1;i<n[0];i+=1){var o=e.child(i),a=o.attrs.codeEnd,s=o.attrs.codeStart;if(s&&a&&!Ie(r,s)){r.push(s),a=Math.min(a,e.childCount);for(var c=s-1,l=n[0],u=c;u<l;u+=1)Dr[u]=!0}}}function Rr(e,t){var n=e.doc,r=t[0].sourcepos[0],i=He(t).sourcepos,o=i[1],a=[r[0],r[1]],s=[o[0],o[1]+1],c=[];return Fr(n,r,o),c.push({start:a,end:s}),c}function qr(e,t){var n=t.getLineTexts(),r=[it(e),at(e)],i=[ot(e),st(e)+1],o=jr(e,r,i,n[i[0]-1]);return null!==o&&void 0!==o?o:[]}var Hr=["taskList","orderedList","bulletList","table","strong","emph","strike","heading","thematicBreak","blockQuote","code","codeBlock","indent","outdent"];function Ur(e){var t=e.type;return dt(e)?e.listData.task?"taskList":"ordered"===e.listData.type?"orderedList":"bulletList":-1!==t.indexOf("table")?"table":Ie(Hr,t)?t:null}function Vr(e){var t={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}},n=!0;return gt(e,(function(e){var r=Ur(e);r&&("bulletList"===r||"orderedList"===r?n&&(t[r]={active:!0},t.indent.disabled=!1,t.outdent.disabled=!1,n=!1):t[r]={active:!0})})),t}function zr(e){var t=e.toastMark,n=e.eventEmitter;return new a["Plugin"]({view:function(){return{update:function(e,r){var i=e.state,o=i.doc,a=i.selection;if(!(r&&r.doc.eq(o)&&r.selection.eq(a))){var s=a.from,c=i.doc.resolve(s).start(),l=i.doc.content.findIndex(s).index+1,u=s-c;s===c&&(u+=1);var d=[l,u],f=t.findNodeAtPosition(d),p=Vr(f);n.emit("changeToolbarState",{cursorPos:d,mdNode:f,toolbarState:p}),n.emit("setFocusedNode",f)}}}}})}var $r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"doc"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"block+"}},enumerable:!1,configurable:!0}),t}(An),Wr=function(){function e(){}return Object.defineProperty(e.prototype,"type",{get:function(){return"mark"},enumerable:!1,configurable:!0}),e.prototype.setContext=function(e){this.context=e},e}();function Gr(e,t){return Kr(e,t-1)}function Kr(e,t){return e.child(t).textContent}var Jr=/^\s*> ?/,Yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("block-quote")},0]}}},enumerable:!1,configurable:!0}),t.prototype.createBlockQuoteText=function(e,t){return t?e.replace(Jr,"").trim():"> "+e.trim()},t.prototype.extendBlockQuote=function(){var e=this;return function(t,n){var r=t.selection,i=t.doc,o=t.tr,a=t.schema,s=Yn(r),c=s.endFromOffset,l=s.endToOffset,u=s.endIndex,d=s.to,f=Kr(i,u),p=Jr.test(f);if(p&&d>c&&r.empty){var h=!f.replace(Jr,"").trim();if(h)o.deleteRange(c,l).split(o.mapping.map(l));else{var m=f.slice(d-c).trim(),v=Ze(a,e.createBlockQuoteText(m));rt(o,l,m,v)}return n(o),!0}return!1}},t.prototype.commands=function(){var e=this;return function(){return function(t,n){var r=t.selection,i=t.doc,o=Yn(r),a=o.startFromOffset,s=o.endToOffset,c=o.startIndex,l=o.endIndex,u=Jr.test(Kr(i,c)),d=nt({state:t,startIndex:c,endIndex:l,from:a,createText:function(t){return e.createBlockQuoteText(t,u)}});return n(d.setSelection(et(d,d.mapping.map(s)))),!0}}},t.prototype.keymaps=function(){var e=this.commands()();return{"alt-q":e,"alt-Q":e,Enter:this.extendBlockQuote()}},t}(Wr),Xr=/(^\s*)([-*+] |[\d]+\. )/,Qr=/(^\s*)([\d])+\.( \[[ xX]])? /,Zr=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,ei=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,ti=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,ni=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,ri=/(^\s*)([-*+])( \[[ xX]]) /;function ii(e){return Qr.test(e)?"ordered":"bullet"}function oi(e){var t=0;while(e&&"document"!==e.type)"list"===e.type&&(t+=1),e=e.parent;return t}function ai(e,t,n,r){var i=e.getLineTexts(),o=i.length,a=[],s=t;while(r?s<o:s>1){s=r?s+1:s-1;var c=e.findFirstNodeAtLine(s),l=oi(c);if(l===n)a.push({line:s,depth:n,mdNode:c});else if(l<n)break}return a}function si(e){var t=e.toastMark,n=e.mdNode,r=e.line,i=oi(n),o=ai(t,r,i,!1).reverse(),a=ai(t,r,i,!0);return o.concat([{line:r,depth:i,mdNode:n}]).concat(a)}function ci(e){if(!Xr.test(e))return"* "+e;var t=ii(e);return"bullet"===t&&ei.test(e)?e=e.replace(ri,"$1$2 "):"ordered"===t&&(e=e.replace(Qr,"$1* ")),e}function li(e,t){if(!Xr.test(e))return t+". "+e;var n=ii(e);if("bullet"===n||"ordered"===n&&ei.test(e))e=e.replace(ei,"$1"+t+". ");else if("ordered"===n){var r=Zr.exec(e)[3];Number(r)!==t&&(e=e.replace(Qr,"$1"+t+". "))}return e}function ui(e,t,n,r){void 0===r&&(r=0);var i=Number.MAX_VALUE,o=0,a=t.map((function(t,a){var s=t.line;i=Math.min(s-1,i),o=Math.max(s-1,o);var c=Gr(e,s);return c="bullet"===n?ci(c):li(c,a+1+r),{text:c,line:s}}));return{changedResults:a,firstIndex:i,lastIndex:o}}function di(e,t){var n=si(t);return ui(t.doc,n,e)}var fi={bullet:function(e){return di("bullet",e)},ordered:function(e){return di("ordered",e)},task:function(e){var t=e.mdNode,n=e.doc,r=e.line,i=Gr(n,r);return t.listData.task?i=i.replace(ni,"$1$2"):dt(t)&&(i=i.replace(Xr,"$1$2[ ] ")),{changedResults:[{text:i,line:r}]}}},pi={bullet:function(e){var t=e.doc,n=e.line,r=Gr(t,n),i=[{text:"* "+r,line:n}];return{changedResults:i}},ordered:function(e){for(var t=e.toastMark,n=e.doc,r=e.line,i=e.startLine,o=Gr(n,r),a=1,s=i,c=0,l=i-1;l>0;l-=1){var u=t.findFirstNodeAtLine(l),d=Gr(n,l),f=d&&!!vt(u,(function(e){return dt(e)})),p=Zr.exec(Gr(n,l));if(!p&&!f)break;if(p||!f){var h=p,m=h[1],v=h[3];if(!m){a=Number(v),s=l;break}}else c+=1}var g=a+r-s-c,b=[{text:g+". "+o,line:r}];return{changedResults:b}},task:function(e){var t=e.doc,n=e.line,r=Gr(t,n),i=[{text:"* [ ] "+r,line:n}];return{changedResults:i}}},hi={bullet:function(e){var t=e.line,n=e.doc,r=Gr(n,t),i=ti.exec(r),o=i[1],a=i[2];return{listSyntax:""+o+a}},ordered:function(e){var t=e.toastMark,n=e.line,r=e.mdNode,i=e.doc,o=oi(r),a=Gr(i,n),s=Zr.exec(a),c=s[1],l=s[3],u=s[4],d=Number(l)+1,f=""+c+d+u,h=ai(t,n,o,!0),m=h.filter((function(e){var t=Zr.exec(Gr(i,e.line));return t&&t[1].length===c.length&&!!vt(e.mdNode,(function(e){return ft(e)}))}));return p({listSyntax:f},ui(i,m,"ordered",d))}};function mi(e,t,n,r,i){var o=[],a=Gr(e,n),s=Zr.exec(a);while(s){var c=s[1],l=s[4],u=s[5],d=c.length;if(d===i)o.push(Ze(t,""+c+r+l+u)),r+=1,n+=1;else if(d>i){var f=mi(e,t,n,1,d);n=f.line,o=o.concat(f.nodes)}if(d<i||n>e.childCount)break;a=Gr(e,n),s=Zr.exec(a)}return{nodes:o,line:n}}var vi=/(^\s{1,4})(.*)/;function gi(e,t,n){return e<t||Xr.test(n)||Jr.test(n)}function bi(e,t,n){var r=n.$from;0===r.depth&&(r=e.resolve(r.pos-1));var i=r.node(1),o=r.start(1),a=i.content.size;return i.rangeHasMark(0,a,t.marks.table)&&r.pos-o!==a&&r.pos!==o}function yi(e,t){var n=t.from,r=t.to;if("indent"===t.type){var i=4;n+=i,r+=(t.lineLen+1)*i}else{var o=t.spaceLenList;n-=o[0];for(var a=0;a<o.length;a+=1)r-=o[a]}return et(e,n,r)}var wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"paragraph"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"inline*",attrs:{className:{default:null},codeStart:{default:null},codeEnd:{default:null}},selectable:!1,group:"block",parseDOM:[{tag:"div"}],toDOM:function(e){var t=e.attrs;return t.className?["div",{class:dn(t.className)},0]:["div",0]}}},enumerable:!1,configurable:!0}),t.prototype.reorderList=function(e,t){var n=this.context,r=n.view,i=n.toastMark,o=n.schema,a=r.state,s=a.tr,c=a.selection,l=a.doc,u=i.findFirstNodeAtLine(e),d=u;while(u&&!pt(u)&&"document"!==u.parent.type)if(u=u.parent,ft(u)){d=u;break}d&&(e=d.sourcepos[0][0]);var f=Zr.exec(Gr(l,e)),p=f[1],h=f[3],m=p.length,v=mi(l,o,e,Number(h),m),g=v.line,b=v.nodes;t=Math.max(t,g-1);for(var y=Xn(l,e-1).startOffset,w=e-1;w<=t-1;w+=1){var k=l.child(w),x=k.nodeSize,C=k.content,O=s.mapping.map(y),S=O+C.size;s.replaceWith(O,S,b[w-e+1]),y+=x}var T=et(s,c.from,c.to);r.dispatch(s.setSelection(T))},t.prototype.indent=function(e){var t=this;return void 0===e&&(e=!1),function(){return function(n,r){var i=n.schema,o=n.selection,a=n.doc,s=Yn(o),c=s.from,l=s.to,u=s.startFromOffset,d=s.startIndex,f=s.endIndex;if(e&&bi(a,i,o))return!1;var p=Kr(a,d);if(e&&gi(c,l,p)||!e&&Xr.test(p)){var h=nt({state:n,from:u,startIndex:d,endIndex:f,createText:function(e){return"    "+e}}),m={type:"indent",from:c,to:l,lineLen:f-d};r(h.setSelection(yi(h,m))),Zr.test(p)&&t.reorderList(d+1,f+1)}else e&&r(n.tr.insert(l,Ze(i,"    ")));return!0}}},t.prototype.outdent=function(e){var t=this;return void 0===e&&(e=!1),function(){return function(n,r){var i=n.selection,o=n.doc,a=n.schema,s=Yn(i),c=s.from,l=s.to,u=s.startFromOffset,d=s.startIndex,f=s.endIndex;if(e&&bi(o,a,i))return!1;var p=Kr(o,d);if(e&&gi(c,l,p)||!e&&Xr.test(p)){var h=[],m=nt({state:n,from:u,startIndex:d,endIndex:f,createText:function(e){var t=vi.exec(e);return h.push(t?t[1].length:0),e.replace(vi,"$2")}}),v={type:"outdent",from:c,to:l,spaceLenList:h};r(m.setSelection(yi(m,v))),Zr.test(p)&&t.reorderList(d+1,f+1)}else if(e){var g=p.slice(0,l-u),b=g.replace(/\s{1,4}$/,""),y=l-(g.length-b.length);r(n.tr.delete(y,l))}return!0}}},t.prototype.deleteLines=function(){var e=this;return function(t,n){var r=e.context.view,i=Yn(t.selection),o=i.startFromOffset,a=i.endToOffset,s=function(){return n(t.tr.deleteRange(o,a)),!0};return Object(c["b"])(s,c["e"])(t,n,r)}},t.prototype.moveDown=function(){return function(e,t){var n=e.doc,r=e.tr,i=e.selection,o=e.schema,a=Yn(i),s=a.startFromOffset,c=a.endToOffset,l=a.endIndex;if(l<n.content.childCount-1){var u=n.child(l+1),d=u.nodeSize,f=u.textContent;return r.delete(c,c+d).split(s).insert(r.mapping.map(s)-2,Ze(o,f)),t(r),!0}return!1}},t.prototype.moveUp=function(){return function(e,t){var n=e.tr,r=e.doc,i=e.selection,o=e.schema,a=Yn(i),s=a.startFromOffset,c=a.endToOffset,l=a.startIndex;if(l>0){var u=r.child(l-1),d=u.nodeSize,f=u.textContent;return n.delete(s-d,s).split(n.mapping.map(c)).insert(n.mapping.map(c),Ze(o,f)),t(n),!0}return!1}},t.prototype.commands=function(){return{indent:this.indent(),outdent:this.outdent()}},t.prototype.keymaps=function(){return{Tab:this.indent(!0)(),"Shift-Tab":this.outdent(!0)(),"Mod-d":this.deleteLines(),"Mod-D":this.deleteLines(),"Alt-ArrowUp":this.moveUp(),"Alt-ArrowDown":this.moveDown()}},t}(An),ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),t}(An),xi=/^#{1,6}\s/,Ci=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{level:{default:1},seText:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.level,r=t.seText,i="heading|heading"+n;return r&&(i+="|delimiter|setext"),["span",{class:dn.apply(void 0,i.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.createHeadingText=function(e,t,n){var r=t.replace(n,"").trim(),i="";while(e>0)i+="#",e-=1;return i+" "+r},t.prototype.commands=function(){var e=this;return function(t){return function(n,r){var i=t.level,o=Yn(n.selection),a=o.startFromOffset,s=o.endToOffset,c=o.startIndex,l=o.endIndex,u=nt({state:n,from:a,startIndex:c,endIndex:l,createText:function(t){var n=t.match(xi),r=n?n[0]:"";return e.createHeadingText(i,t,r)}});return r(u.setSelection(et(u,u.mapping.map(s)))),!0}}},t}(Wr),Oi="```",Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("code-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){var n=e.selection,r=e.schema,i=e.tr,o=Yn(n),a=o.startFromOffset,s=o.endToOffset,c=Ze(r,Oi);return i.insert(a,c).split(a+Oi.length),i.split(i.mapping.map(s)).insert(i.mapping.map(s),c),t(i.setSelection(et(i,i.mapping.map(s)-(Oi.length+2)))),!0}}},t.prototype.keepIndentation=function(){var e=this;return function(t,n){var r=t.selection,i=t.tr,o=t.doc,a=t.schema,s=e.context.toastMark,c=Yn(r),l=c.startFromOffset,u=c.endToOffset,d=c.endIndex,f=c.from,p=c.to,h=Kr(o,d);if(f===p&&h.trim()){var m=h.match(/^\s+/),v=s.findFirstNodeAtLine(d+1);if(ut(v)&&m){var g=m[0],b=h.slice(p-l),y=Ze(a,g+b);return rt(i,u,b,y),n(i),!0}}return!1}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-p":e,"Shift-Mod-P":e,Enter:this.keepIndentation()}},t}(Wr),Ti=/\||\s/g;function Ei(e){return[Mi(e),Mi(e,!0)]}function _i(e,t){for(var n=[],r=0;r<t;r+=1)n.push(Mi(e));return n}function Mi(e,t){for(var n="|",r=0;r<e;r+=1)n+=t?" --- |":"  |";return n}function Ii(e){return e?{type:"next",parentType:"tableHead",childType:"firstChild"}:{type:"prev",parentType:"tableBody",childType:"lastChild"}}var ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"table"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("table")},0]}}},enumerable:!1,configurable:!0}),t.prototype.extendTable=function(){var e=this;return function(t,n){var r=t.selection,i=t.doc,o=t.tr,a=t.schema;if(!r.empty)return!1;var s=Yn(r),c=s.endFromOffset,l=s.endToOffset,u=s.endIndex,d=s.to,f=Kr(i,u),p=[u+1,d-c+1],h=e.context.toastMark.findNodeAtPosition(p),m=vt(h,(function(e){return ht(e)&&("tableDelimRow"===e.parent.type||"tableBody"===e.parent.parent.type)}));if(m){var v=!f.replace(Ti,"").trim(),g=m.parent,b=g.parent.parent.columns.length,y=Mi(b);return v?o.deleteRange(c,l).split(o.mapping.map(l)):o.split(l).insert(o.mapping.map(l),Ze(a,y)).setSelection(et(o,o.mapping.map(l)-2)),n(o),!0}return!1}},t.prototype.moveTableCell=function(e){var t=this;return function(n,r){var i=n.selection,o=n.tr,a=Yn(i),s=a.endFromOffset,c=a.endIndex,l=a.to,u=[c+1,l-s],d=t.context.toastMark.findNodeAtPosition(u),f=vt(d,(function(e){return ht(e)}));if(f){var p=f.parent,h=Ii(e),m=h.type,v=h.parentType,g=h.childType,b=st(f);if(f[m])b=st(f[m])-1;else{var y=p[m]||p.parent.type!==v?p[m]:p.parent[m][g];if("next"===m){var w=y?st(y[g]):0;b+=w+2}else"prev"===m&&(b=y?-4:0)}return r(o.setSelection(et(o,s+b))),!0}return!1}},t.prototype.addTable=function(){return function(e){return function(t,n){var r=t.selection,i=t.tr,o=t.schema,a=e,s=a.columnCount,c=a.rowCount,l=Yn(r).endToOffset,u=Ei(s),d=_i(s,c-1),f=h(h([],u),d);return f.forEach((function(e){i.split(i.mapping.map(l)).insert(i.mapping.map(l),Ze(o,e))})),n(i.setSelection(et(i,l+4))),!0}}},t.prototype.commands=function(){return{addTable:this.addTable()}},t.prototype.keymaps=function(){return{Enter:this.extendTable(),Tab:this.moveTableCell(!0),"Shift-Tab":this.moveTableCell(!1)}},t}(Wr),Di="***",Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"thematicBreak"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("thematic-break")},0]}}},enumerable:!1,configurable:!0}),t.prototype.hr=function(){return function(){return function(e,t){var n=e.selection,r=e.schema,i=e.tr,o=Yn(n),a=o.from,s=o.to,c=o.endToOffset,l=Ze(r,Di);return i.split(a).replaceWith(i.mapping.map(a),i.mapping.map(s),l).split(i.mapping.map(s)).setSelection(et(i,i.mapping.map(c))),t(i),!0}}},t.prototype.commands=function(){return{hr:this.hr()}},t.prototype.keymaps=function(){var e=this.hr()();return{"Mod-l":e,"Mod-L":e}},t}(Wr);function Ai(e,t){var n=e.type,r=e.sourcepos,i=r[0][0];return t<=i&&("codeBlock"===n||"heading"===n||n.match("table"))}var Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"listItem"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{odd:{default:!1},even:{default:!1},listStyle:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.odd,r=t.even,i=t.listStyle,o="list-item";return i&&(o+="|list-item-style"),n&&(o+="|list-item-odd"),r&&(o+="|list-item-even"),["span",{class:dn.apply(void 0,o.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.extendList=function(){var e=this;return function(t,n){var r=t.selection,i=t.doc,o=t.schema,a=t.tr,s=e.context.toastMark,c=Yn(r),l=c.to,u=c.startFromOffset,d=c.endFromOffset,f=c.endIndex,p=c.endToOffset,h=Kr(i,f),m=Xr.test(h);if(!m||r.from===u||!r.empty)return!1;var v=!h.replace(ei,"").trim();if(v)a.deleteRange(d,p).split(a.mapping.map(p));else{var g=ii(h),b=s.findFirstNodeAtLine(f+1),y=h.slice(l-d),w={toastMark:s,mdNode:b,doc:i,line:f+1},k=hi[g](w),x=k.listSyntax,C=k.changedResults;if(null===C||void 0===C?void 0:C.length){a.split(l),C.unshift({text:x+y,line:f+1}),e.changeToListPerLine(a,C,{from:l,startLine:C[0].line,endLine:He(C).line});var O=a.mapping.map(p)-y.length;a.setSelection(et(a,O))}else{var S=Ze(o,x+y);rt(a,p,y,S)}}return n(a),!0}},t.prototype.toList=function(e){var t=this;return function(){return function(n,r){for(var i=n.doc,o=n.tr,a=n.selection,s=t.context.toastMark,c=Yn(a),l=c.startIndex+1,u=c.endIndex+1,d=c.endToOffset,f=[],p=l;p<=u;p+=1){var h=s.findFirstNodeAtLine(p);if(h&&Ai(h,p))break;if(-1===f.indexOf(p)){var m={toastMark:s,mdNode:h,doc:i,line:p,startLine:l},v=(dt(h)?fi[e](m):pi[e](m)).changedResults,g=t.changeToListPerLine(o,v,{from:Xn(i,v[0].line-1).startOffset,startLine:v[0].line,endLine:He(v).line,indexDiff:1});d=Math.max(g,d),v&&(f=f.concat(v.map((function(e){return e.line}))))}}return r(o.setSelection(et(o,o.mapping.map(d)))),!0}}},t.prototype.changeToListPerLine=function(e,t,n){for(var r=n.from,i=n.startLine,o=n.endLine,a=n.indexDiff,s=void 0===a?0:a,c=0,l=function(n){var i=e.doc.child(n),o=i.nodeSize,a=i.content,l=e.mapping.map(r),d=l+a.size,f=t.filter((function(e){return e.line-s===n}))[0];f&&(e.replaceWith(l,d,Ze(u.context.schema,f.text)),c=Math.max(c,r+a.size)),r+=o},u=this,d=i-s;d<=o-s;d+=1)l(d);return c},t.prototype.toggleTask=function(){var e=this;return function(t,n){for(var r=t.selection,i=t.tr,o=t.doc,a=t.schema,s=e.context.toastMark,c=Yn(r),l=c.startIndex,u=c.endIndex,d=null,f=l;f<=u;f+=1){var p=s.findFirstNodeAtLine(f+1);if(dt(p)&&p.listData.task){var h=p.listData,m=h.checked,v=h.padding,g=m?" ":"x",b=p.sourcepos[0],y=Xn(o,b[0]-1).startOffset;y+=b[1]+v,d=i.replaceWith(y,y+1,a.text(g))}}return!!d&&(n(d),!0)}},t.prototype.commands=function(){return{bulletList:this.toList("bullet"),orderedList:this.toList("ordered"),taskList:this.toList("task")}},t.prototype.keymaps=function(){var e=this.toList("bullet")(),t=this.toList("ordered")(),n=this.toList("task")(),r=this.toggleTask();return{"Mod-u":e,"Mod-U":e,"Mod-o":t,"Mod-O":t,"alt-t":n,"alt-T":n,"Shift-Ctrl-x":r,"Shift-Ctrl-X":r,Enter:this.extendList()}},t}(Wr);function Pi(e,t){return function(){return function(n,r){var i=n.tr,o=n.selection,a=qn(e)?e:function(t){return e.test(t)},s=t.length,c=i.doc,l=zn(o),u=l[0],d=l[1],f=Math.max(u-s,1),p=Math.min(d+s,c.content.size-1),h=o.content(),m=h.content.textBetween(0,h.content.size,"\n"),v=c.textBetween(f,u,"\n"),g=c.textBetween(d,p,"\n");if(m=""+v+m+g,v&&g&&a(m))i.delete(p-s,p).delete(f,f+s);else{i.insertText(t,d).insertText(t,u);var b=o.empty?et(i,u+s):et(i,u+s,d+s);i.setSelection(b)}return r(i),!0}}}var Bi=/^(\*{2}|_{2}).*([\s\S]*)\1$/m,Fi="**",Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"strong"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("strong")},0]}}},enumerable:!1,configurable:!0}),t.prototype.bold=function(){return Pi(Bi,Fi)},t.prototype.commands=function(){return{bold:this.bold()}},t.prototype.keymaps=function(){var e=this.bold()();return{"Mod-b":e,"Mod-B":e}},t}(Wr),qi=/^(~{2}).*([\s\S]*)\1$/m,Hi="~~",Ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"strike"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("strike")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return Pi(qi,Hi)},t.prototype.keymaps=function(){var e=this.commands()();return{"Mod-s":e,"Mod-S":e}},t}(Wr),Vi=/^(\*|_).*([\s\S]*)\1$/m,zi="*",$i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"emph"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("emph")},0]}}},enumerable:!1,configurable:!0}),t.prototype.italic=function(){return Pi(Vi,zi)},t.prototype.commands=function(){return{italic:this.italic()}},t.prototype.keymaps=function(){var e=this.italic()();return{"Mod-i":e,"Mod-I":e}},t}(Wr),Wi=/^(`).*([\s\S]*)\1$/m,Gi="`",Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"code"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{start:{default:!1},end:{default:!1},marked:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.start,r=t.end,i=t.marked,o="code";return n&&(o+="|delimiter|start"),r&&(o+="|delimiter|end"),i&&(o+="|marked-text"),["span",{class:dn.apply(void 0,o.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return Pi(Wi,Gi)},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-c":e,"Shift-Mod-C":e}},t}(Wr),Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"link"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{url:{default:!1},desc:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.url,r=t.desc,i="link";return n&&(i+="|link-url|marked-text"),r&&(i+="|link-desc|marked-text"),["span",{class:dn.apply(void 0,i.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.addLinkOrImage=function(e){return function(t){return function(n,r){var i=n.selection,o=n.tr,a=n.schema,s=zn(i),c=s[0],l=s[1],u=t,d=u.linkText,f=u.altText,p=u.linkUrl,h=u.imageUrl,m=d,v=p,g="";return"image"===e&&(m=f,v=h,g="!"),m=Pe(m),g+="["+m+"]("+v+")",r(o.replaceWith(c,l,Ze(a,g))),!0}}},t.prototype.commands=function(){return{addImage:this.addLinkOrImage("image"),addLink:this.addLinkOrImage("link")}},t}(Wr),Yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"taskDelimiter"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("delimiter","list-item")},0]}}},enumerable:!1,configurable:!0}),t}(Wr),Xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"delimiter"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("delimiter")},0]}}},enumerable:!1,configurable:!0}),t}(Wr),Qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"meta"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("meta")},0]}}},enumerable:!1,configurable:!0}),t}(Wr),Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"markedText"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("marked-text")},0]}}},enumerable:!1,configurable:!0}),t}(Wr),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tableCell"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("table-cell")},0]}}},enumerable:!1,configurable:!0}),t}(Wr),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"html"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("html")},0]}}},enumerable:!1,configurable:!0}),t}(Wr),no="$$",ro=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"customBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:dn("custom-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(e){return function(t,n){var r=t.selection,i=t.schema,o=t.tr,a=Yn(r),s=a.startFromOffset,c=a.endToOffset;if(!(null===e||void 0===e?void 0:e.info))return!1;var l=""+no+e.info,u=Ze(i,l),d=Ze(i,no);return o.insert(s,u).split(s+l.length),o.split(o.mapping.map(c)).insert(o.mapping.map(c),d),n(o.setSelection(et(o,o.mapping.map(c)-(no.length+2)))),!0}}},t}(Wr),io=/x|backspace/i,oo=/^\[(\s*)(x?)(\s*)\](?:\s+)/i;function ao(e){var t=e.schema,n=e.toastMark;return new a["Plugin"]({props:{handleDOMEvents:{keyup:function(e,r){var i,o=e.state,a=o.doc,s=o.tr,c=o.selection;if(c.empty&&io.test(r.key)){var l=Yn(c),u=l.startIndex,d=l.startFromOffset,f=l.from,p=[u+1,f-d+1],h=n.findNodeAtPosition(p),m=vt(h,(function(e){var t;return"paragraph"===e.type&&"item"===(null===(t=e.parent)||void 0===t?void 0:t.type)}));if(null===(i=null===m||void 0===m?void 0:m.firstChild)||void 0===i?void 0:i.literal){var v=m.firstChild,g=v.literal.match(oo);if(g){var b=v.sourcepos[0],y=g[1],w=g[2],k=g[3],x=y.length+k.length,C=Xn(a,b[0]-1).startOffset,O=b[1]+C;if(w){var S=x?x+1:0;s.replaceWith(O,S+O,t.text(w)),e.dispatch(s)}else x||(s.insertText(" ",O),e.dispatch(s))}}}return!1}}}})}var so="cut",co=/\r\n|\n|\r/,lo=function(e){function t(t,n){var r=e.call(this,t)||this,i=n.toastMark,o=n.useCommandShortcut,a=void 0===o||o,s=n.mdPlugins,c=void 0===s?[]:s;return r.editorType="markdown",r.el.classList.add("md-mode"),r.toastMark=i,r.extraPlugins=c,r.specs=r.createSpecs(),r.schema=r.createSchema(),r.context=r.createContext(),r.keymaps=r.createKeymaps(a),r.view=r.createView(),r.commands=r.createCommands(),r.specs.setContext(p(p({},r.context),{view:r.view})),r.createClipboard(),r.eventEmitter.listen("changePreviewTabWrite",(function(e){return r.toggleActive(!0,e)})),r.eventEmitter.listen("changePreviewTabPreview",(function(){return r.toggleActive(!1)})),r.initEvent(),r}return f(t,e),t.prototype.toggleActive=function(e,t){yn(this.el,"active",e),e?t||this.focus():this.blur()},t.prototype.createClipboard=function(){var e=this;this.clipboard=document.createElement("textarea"),this.clipboard.className=un("pseudo-clipboard"),this.clipboard.addEventListener("paste",(function(t){var n=t.clipboardData||window.clipboardData,r=n&&n.items;if(r){var i=Xe(r).some((function(e){return"string"===e.kind&&"text/rtf"===e.type}));if(!i){var o=Dn(r);o&&(t.preventDefault(),jn(e.eventEmitter,o,t.type))}}})),this.clipboard.addEventListener("input",(function(t){var n=t.target.value;e.replaceSelection(n),t.preventDefault(),t.target.value=""})),this.el.insertBefore(this.clipboard,this.view.dom)},t.prototype.createContext=function(){return{toastMark:this.toastMark,schema:this.schema,eventEmitter:this.eventEmitter}},t.prototype.createSpecs=function(){return new Vn([new $r,new wi,new Bn,new ki,new Ci,new Yr,new Si,new ro,new ji,new eo,new Ni,new Li,new Ri,new Ui,new $i,new Ki,new Ji,new Xi,new Yi,new Zi,new Qi,new to])},t.prototype.createPlugins=function(){return this.defaultPlugins.concat(h([Nr(this.context),zr(this.context),ao(this.context)],this.createPluginProps()))},t.prototype.createView=function(){var e=this;return new i["EditorView"](this.el,{state:this.createState(),dispatchTransaction:function(t){e.updateMarkdown(t);var n=e.view.state.applyTransaction(t).state;e.view.updateState(n),e.emitChangeEvent(t)},handleKeyDown:function(t,n){return(n.metaKey||n.ctrlKey)&&"V"===n.key.toUpperCase()&&e.clipboard.focus(),e.eventEmitter.emit("keydown",e.editorType,n),!1},handleDOMEvents:{copy:function(t,n){return e.captureCopy(n)},cut:function(t,n){return e.captureCopy(n,so)},scroll:function(){return e.eventEmitter.emit("scroll","editor"),!0},keyup:function(t,n){return e.eventEmitter.emit("keyup",e.editorType,n),!1}},nodeViews:{widget:Ln}})},t.prototype.createCommands=function(){return this.specs.commands(this.view)},t.prototype.captureCopy=function(e,t){e.preventDefault();var n=this.view.state,r=n.selection,i=n.tr;if(r.empty)return!0;var o=this.getChanged(r.content());return e.clipboardData?e.clipboardData.setData("text/plain",o):window.clipboardData.setData("Text",o),t===so&&this.view.dispatch(i.deleteSelection().scrollIntoView().setMeta("uiEvent",so)),!0},t.prototype.updateMarkdown=function(e){var t=this;e.docChanged&&e.steps.forEach((function(n,r){if(n.slice&&!(n instanceof o["b"])){var i=e.docs[r],a=[n.from,n.to],s=a[0],c=a[1],l=Gn(i,s,c),u=l[0],d=l[1],f=t.getChanged(n.slice);u[0]===d[0]&&u[1]===d[1]&&""===f&&(f="\n");var p=t.toastMark.editMarkdown(u,d,f);t.eventEmitter.emit("updatePreview",p),e.setMeta("editResult",p).scrollIntoView()}}))},t.prototype.getChanged=function(e){var t="",n=0,r=e.content.size;return e.content.nodesBetween(n,r,(function(e,i){e.isText?t+=e.text.slice(Math.max(n,i)-i,r-i):e.isBlock&&i>0&&(t+="\n")})),t},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,r=Jn(n.doc,e,t),i=r[0],o=r[1];this.view.dispatch(n.setSelection(et(n,i,o)).scrollIntoView())},t.prototype.replaceSelection=function(e,t,n){var i,o=this.view.state,a=o.tr,s=o.schema,c=o.doc,l=e.split(co),u=l.map((function(e){return Qe(s,Dt(e,s))})),d=new r["Slice"](r["Fragment"].from(u),1,1);if(this.focus(),t&&n){var f=Jn(c,t,n),p=f[0],h=f[1];i=a.replaceRange(p,h,d)}else i=a.replaceSelection(d);this.view.dispatch(i.scrollIntoView())},t.prototype.deleteSelection=function(e,t){var n,r=this.view.state,i=r.tr,o=r.doc;if(e&&t){var a=Jn(o,e,t),s=a[0],c=a[1];n=i.deleteRange(s,c)}else n=i.deleteSelection();this.view.dispatch(n.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,r=n.doc,i=n.selection,o=i.from,a=i.to;if(e&&t){var s=Jn(r,e,t);o=s[0],a=s[1]}return r.textBetween(o,a,"\n")},t.prototype.getSelection=function(){var e=this.view.state.selection,t=e.from,n=e.to;return Gn(this.view.state.tr.doc,t,n)},t.prototype.setMarkdown=function(e,t){void 0===t&&(t=!0);var n=e.split(co),r=this.view.state,i=r.tr,o=r.doc,a=r.schema,s=n.map((function(e){return Qe(a,Dt(e,a))}));this.view.dispatch(i.replaceWith(0,o.content.size,s)),t&&this.moveCursorToEnd(!0)},t.prototype.addWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.doc,a=r.selection,s=n?Jn(o,n,n)[0]:a.to;this.view.dispatch(i.setMeta("widget",{pos:s,node:e,style:t}))},t.prototype.replaceWithWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.schema,a=r.doc,s=Jn(a,e,t),c=Dt(n,o);this.view.dispatch(i.replaceWith(s[0],s[1],c))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,r=t.selection,i=e||Gn(n,r.from)[0],o=this.toastMark.findNodeAtPosition(i);return"text"===o.type&&"paragraph"!==o.parent.type&&(o=o.parent),o.sourcepos[1][1]+=1,{range:o.sourcepos,type:o.type}},t.prototype.getMarkdown=function(){return this.toastMark.getLineTexts().map((function(e){return Tt(e)})).join("\n")},t.prototype.getToastMark=function(){return this.toastMark},t}(Fn),uo="_feEventKey";function fo(e,t){var n,r=e[uo];return r||(r=e[uo]={}),n=r[t],n||(n=r[t]=[]),n}var po=fo,ho=k,mo=I,vo=po;function go(e,t,n){ho(t)?mo(t.split(/\s+/g),(function(t){bo(e,t,n)})):mo(t,(function(t,n){bo(e,n,t)}))}function bo(e,t,n){var r,i=vo(e,t);n?(mo(i,(function(i,o){return n!==i.handler||(yo(e,t,i.wrappedHandler),r=o,!1)})),i.splice(r,1)):(mo(i,(function(n){yo(e,t,n.wrappedHandler)})),i.splice(0,i.length))}function yo(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}var wo=go,ko=k,xo=I,Co=po;function Oo(e,t,n,r){ko(t)?xo(t.split(/\s+/g),(function(t){So(e,t,n,r)})):xo(t,(function(t,r){So(e,r,t,n)}))}function So(e,t,n,r){function i(t){n.call(r||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,i):"attachEvent"in e&&e.attachEvent("on"+t,i),To(e,t,n,i)}function To(e,t,n,r){var i=Co(e,t),o=!1;xo(i,(function(e){return e.handler!==n||(o=!0,!1)})),o||i.push({handler:n,wrappedHandler:r})}var Eo=Oo,_o=function(e,t){return _o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_o(e,t)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Mo(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Io=function(){return Io=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Io.apply(this,arguments)};function jo(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var Do="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},No={};function Ao(e){var t,n,r=No[e];if(r)return r;for(r=No[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function Lo(e,t,n){var r,i,o,a,s,c="";for("string"!==typeof t&&(n=t,t=Lo.defaultChars),"undefined"===typeof n&&(n=!0),s=Ao(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))c+=e.slice(r,r+3),r+=2;else if(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){c+=encodeURIComponent(e[r]+e[r+1]),r++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[r]);return c}Lo.defaultChars=";/?:@&=+$,-_.!~*'()#",Lo.componentChars="-_.!~*'()";var Po=Lo,Bo={},Fo={},Ro="Á",qo="á",Ho="Ă",Uo="ă",Vo="∾",zo="∿",$o="∾̳",Wo="Â",Go="â",Ko="´",Jo="А",Yo="а",Xo="Æ",Qo="æ",Zo="⁡",ea="𝔄",ta="𝔞",na="À",ra="à",ia="ℵ",oa="ℵ",aa="Α",sa="α",ca="Ā",la="ā",ua="⨿",da="&",fa="&",pa="⩕",ha="⩓",ma="∧",va="⩜",ga="⩘",ba="⩚",ya="∠",wa="⦤",ka="∠",xa="⦨",Ca="⦩",Oa="⦪",Sa="⦫",Ta="⦬",Ea="⦭",_a="⦮",Ma="⦯",Ia="∡",ja="∟",Da="⊾",Na="⦝",Aa="∢",La="Å",Pa="⍼",Ba="Ą",Fa="ą",Ra="𝔸",qa="𝕒",Ha="⩯",Ua="≈",Va="⩰",za="≊",$a="≋",Wa="'",Ga="⁡",Ka="≈",Ja="≊",Ya="Å",Xa="å",Qa="𝒜",Za="𝒶",es="≔",ts="*",ns="≈",rs="≍",is="Ã",os="ã",as="Ä",ss="ä",cs="∳",ls="⨑",us="≌",ds="϶",fs="‵",ps="∽",hs="⋍",ms="∖",vs="⫧",gs="⊽",bs="⌅",ys="⌆",ws="⌅",ks="⎵",xs="⎶",Cs="≌",Os="Б",Ss="б",Ts="„",Es="∵",_s="∵",Ms="∵",Is="⦰",js="϶",Ds="ℬ",Ns="ℬ",As="Β",Ls="β",Ps="ℶ",Bs="≬",Fs="𝔅",Rs="𝔟",qs="⋂",Hs="◯",Us="⋃",Vs="⨀",zs="⨁",$s="⨂",Ws="⨆",Gs="★",Ks="▽",Js="△",Ys="⨄",Xs="⋁",Qs="⋀",Zs="⤍",ec="⧫",tc="▪",nc="▴",rc="▾",ic="◂",oc="▸",ac="␣",sc="▒",cc="░",lc="▓",uc="█",dc="=⃥",fc="≡⃥",pc="⫭",hc="⌐",mc="𝔹",vc="𝕓",gc="⊥",bc="⊥",yc="⋈",wc="⧉",kc="┐",xc="╕",Cc="╖",Oc="╗",Sc="┌",Tc="╒",Ec="╓",_c="╔",Mc="─",Ic="═",jc="┬",Dc="╤",Nc="╥",Ac="╦",Lc="┴",Pc="╧",Bc="╨",Fc="╩",Rc="⊟",qc="⊞",Hc="⊠",Uc="┘",Vc="╛",zc="╜",$c="╝",Wc="└",Gc="╘",Kc="╙",Jc="╚",Yc="│",Xc="║",Qc="┼",Zc="╪",el="╫",tl="╬",nl="┤",rl="╡",il="╢",ol="╣",al="├",sl="╞",cl="╟",ll="╠",ul="‵",dl="˘",fl="˘",pl="¦",hl="𝒷",ml="ℬ",vl="⁏",gl="∽",bl="⋍",yl="⧅",wl="\\",kl="⟈",xl="•",Cl="•",Ol="≎",Sl="⪮",Tl="≏",El="≎",_l="≏",Ml="Ć",Il="ć",jl="⩄",Dl="⩉",Nl="⩋",Al="∩",Ll="⋒",Pl="⩇",Bl="⩀",Fl="ⅅ",Rl="∩︀",ql="⁁",Hl="ˇ",Ul="ℭ",Vl="⩍",zl="Č",$l="č",Wl="Ç",Gl="ç",Kl="Ĉ",Jl="ĉ",Yl="∰",Xl="⩌",Ql="⩐",Zl="Ċ",eu="ċ",tu="¸",nu="¸",ru="⦲",iu="¢",ou="·",au="·",su="𝔠",cu="ℭ",lu="Ч",uu="ч",du="✓",fu="✓",pu="Χ",hu="χ",mu="ˆ",vu="≗",gu="↺",bu="↻",yu="⊛",wu="⊚",ku="⊝",xu="⊙",Cu="®",Ou="Ⓢ",Su="⊖",Tu="⊕",Eu="⊗",_u="○",Mu="⧃",Iu="≗",ju="⨐",Du="⫯",Nu="⧂",Au="∲",Lu="”",Pu="’",Bu="♣",Fu="♣",Ru=":",qu="∷",Hu="⩴",Uu="≔",Vu="≔",zu=",",$u="@",Wu="∁",Gu="∘",Ku="∁",Ju="ℂ",Yu="≅",Xu="⩭",Qu="≡",Zu="∮",ed="∯",td="∮",nd="𝕔",rd="ℂ",id="∐",od="∐",ad="©",sd="©",cd="℗",ld="∳",ud="↵",dd="✗",fd="⨯",pd="𝒞",hd="𝒸",md="⫏",vd="⫑",gd="⫐",bd="⫒",yd="⋯",wd="⤸",kd="⤵",xd="⋞",Cd="⋟",Od="↶",Sd="⤽",Td="⩈",Ed="⩆",_d="≍",Md="∪",Id="⋓",jd="⩊",Dd="⊍",Nd="⩅",Ad="∪︀",Ld="↷",Pd="⤼",Bd="⋞",Fd="⋟",Rd="⋎",qd="⋏",Hd="¤",Ud="↶",Vd="↷",zd="⋎",$d="⋏",Wd="∲",Gd="∱",Kd="⌭",Jd="†",Yd="‡",Xd="ℸ",Qd="↓",Zd="↡",ef="⇓",tf="‐",nf="⫤",rf="⊣",of="⤏",af="˝",sf="Ď",cf="ď",lf="Д",uf="д",df="‡",ff="⇊",pf="ⅅ",hf="ⅆ",mf="⤑",vf="⩷",gf="°",bf="∇",yf="Δ",wf="δ",kf="⦱",xf="⥿",Cf="𝔇",Of="𝔡",Sf="⥥",Tf="⇃",Ef="⇂",_f="´",Mf="˙",If="˝",jf="`",Df="˜",Nf="⋄",Af="⋄",Lf="⋄",Pf="♦",Bf="♦",Ff="¨",Rf="ⅆ",qf="ϝ",Hf="⋲",Uf="÷",Vf="÷",zf="⋇",$f="⋇",Wf="Ђ",Gf="ђ",Kf="⌞",Jf="⌍",Yf="$",Xf="𝔻",Qf="𝕕",Zf="¨",ep="˙",tp="⃜",np="≐",rp="≑",ip="≐",op="∸",ap="∔",sp="⊡",cp="⌆",lp="∯",up="¨",dp="⇓",fp="⇐",pp="⇔",hp="⫤",mp="⟸",vp="⟺",gp="⟹",bp="⇒",yp="⊨",wp="⇑",kp="⇕",xp="∥",Cp="⤓",Op="↓",Sp="↓",Tp="⇓",Ep="⇵",_p="̑",Mp="⇊",Ip="⇃",jp="⇂",Dp="⥐",Np="⥞",Ap="⥖",Lp="↽",Pp="⥟",Bp="⥗",Fp="⇁",Rp="↧",qp="⊤",Hp="⤐",Up="⌟",Vp="⌌",zp="𝒟",$p="𝒹",Wp="Ѕ",Gp="ѕ",Kp="⧶",Jp="Đ",Yp="đ",Xp="⋱",Qp="▿",Zp="▾",eh="⇵",th="⥯",nh="⦦",rh="Џ",ih="џ",oh="⟿",ah="É",sh="é",ch="⩮",lh="Ě",uh="ě",dh="Ê",fh="ê",ph="≖",hh="≕",mh="Э",vh="э",gh="⩷",bh="Ė",yh="ė",wh="≑",kh="ⅇ",xh="≒",Ch="𝔈",Oh="𝔢",Sh="⪚",Th="È",Eh="è",_h="⪖",Mh="⪘",Ih="⪙",jh="∈",Dh="⏧",Nh="ℓ",Ah="⪕",Lh="⪗",Ph="Ē",Bh="ē",Fh="∅",Rh="∅",qh="◻",Hh="∅",Uh="▫",Vh=" ",zh=" ",$h=" ",Wh="Ŋ",Gh="ŋ",Kh=" ",Jh="Ę",Yh="ę",Xh="𝔼",Qh="𝕖",Zh="⋕",em="⧣",tm="⩱",nm="ε",rm="Ε",im="ε",om="ϵ",am="≖",sm="≕",cm="≂",lm="⪖",um="⪕",dm="⩵",fm="=",pm="≂",hm="≟",mm="⇌",vm="≡",gm="⩸",bm="⧥",ym="⥱",wm="≓",km="ℯ",xm="ℰ",Cm="≐",Om="⩳",Sm="≂",Tm="Η",Em="η",_m="Ð",Mm="ð",Im="Ë",jm="ë",Dm="€",Nm="!",Am="∃",Lm="∃",Pm="ℰ",Bm="ⅇ",Fm="ⅇ",Rm="≒",qm="Ф",Hm="ф",Um="♀",Vm="ffi",zm="ff",$m="ffl",Wm="𝔉",Gm="𝔣",Km="fi",Jm="◼",Ym="▪",Xm="fj",Qm="♭",Zm="fl",ev="▱",tv="ƒ",nv="𝔽",rv="𝕗",iv="∀",ov="∀",av="⋔",sv="⫙",cv="ℱ",lv="⨍",uv="½",dv="⅓",fv="¼",pv="⅕",hv="⅙",mv="⅛",vv="⅔",gv="⅖",bv="¾",yv="⅗",wv="⅜",kv="⅘",xv="⅚",Cv="⅝",Ov="⅞",Sv="⁄",Tv="⌢",Ev="𝒻",_v="ℱ",Mv="ǵ",Iv="Γ",jv="γ",Dv="Ϝ",Nv="ϝ",Av="⪆",Lv="Ğ",Pv="ğ",Bv="Ģ",Fv="Ĝ",Rv="ĝ",qv="Г",Hv="г",Uv="Ġ",Vv="ġ",zv="≥",$v="≧",Wv="⪌",Gv="⋛",Kv="≥",Jv="≧",Yv="⩾",Xv="⪩",Qv="⩾",Zv="⪀",eg="⪂",tg="⪄",ng="⋛︀",rg="⪔",ig="𝔊",og="𝔤",ag="≫",sg="⋙",cg="⋙",lg="ℷ",ug="Ѓ",dg="ѓ",fg="⪥",pg="≷",hg="⪒",mg="⪤",vg="⪊",gg="⪊",bg="⪈",yg="≩",wg="⪈",kg="≩",xg="⋧",Cg="𝔾",Og="𝕘",Sg="`",Tg="≥",Eg="⋛",_g="≧",Mg="⪢",Ig="≷",jg="⩾",Dg="≳",Ng="𝒢",Ag="ℊ",Lg="≳",Pg="⪎",Bg="⪐",Fg="⪧",Rg="⩺",qg=">",Hg=">",Ug="≫",Vg="⋗",zg="⦕",$g="⩼",Wg="⪆",Gg="⥸",Kg="⋗",Jg="⋛",Yg="⪌",Xg="≷",Qg="≳",Zg="≩︀",eb="≩︀",tb="ˇ",nb=" ",rb="½",ib="ℋ",ob="Ъ",ab="ъ",sb="⥈",cb="↔",lb="⇔",ub="↭",db="^",fb="ℏ",pb="Ĥ",hb="ĥ",mb="♥",vb="♥",gb="…",bb="⊹",yb="𝔥",wb="ℌ",kb="ℋ",xb="⤥",Cb="⤦",Ob="⇿",Sb="∻",Tb="↩",Eb="↪",_b="𝕙",Mb="ℍ",Ib="―",jb="─",Db="𝒽",Nb="ℋ",Ab="ℏ",Lb="Ħ",Pb="ħ",Bb="≎",Fb="≏",Rb="⁃",qb="‐",Hb="Í",Ub="í",Vb="⁣",zb="Î",$b="î",Wb="И",Gb="и",Kb="İ",Jb="Е",Yb="е",Xb="¡",Qb="⇔",Zb="𝔦",ey="ℑ",ty="Ì",ny="ì",ry="ⅈ",iy="⨌",oy="∭",ay="⧜",sy="℩",cy="IJ",ly="ij",uy="Ī",dy="ī",fy="ℑ",py="ⅈ",hy="ℐ",my="ℑ",vy="ı",gy="ℑ",by="⊷",yy="Ƶ",wy="⇒",ky="℅",xy="∞",Cy="⧝",Oy="ı",Sy="⊺",Ty="∫",Ey="∬",_y="ℤ",My="∫",Iy="⊺",jy="⋂",Dy="⨗",Ny="⨼",Ay="⁣",Ly="⁢",Py="Ё",By="ё",Fy="Į",Ry="į",qy="𝕀",Hy="𝕚",Uy="Ι",Vy="ι",zy="⨼",$y="¿",Wy="𝒾",Gy="ℐ",Ky="∈",Jy="⋵",Yy="⋹",Xy="⋴",Qy="⋳",Zy="∈",ew="⁢",tw="Ĩ",nw="ĩ",rw="І",iw="і",ow="Ï",aw="ï",sw="Ĵ",cw="ĵ",lw="Й",uw="й",dw="𝔍",fw="𝔧",pw="ȷ",hw="𝕁",mw="𝕛",vw="𝒥",gw="𝒿",bw="Ј",yw="ј",ww="Є",kw="є",xw="Κ",Cw="κ",Ow="ϰ",Sw="Ķ",Tw="ķ",Ew="К",_w="к",Mw="𝔎",Iw="𝔨",jw="ĸ",Dw="Х",Nw="х",Aw="Ќ",Lw="ќ",Pw="𝕂",Bw="𝕜",Fw="𝒦",Rw="𝓀",qw="⇚",Hw="Ĺ",Uw="ĺ",Vw="⦴",zw="ℒ",$w="Λ",Ww="λ",Gw="⟨",Kw="⟪",Jw="⦑",Yw="⟨",Xw="⪅",Qw="ℒ",Zw="«",ek="⇤",tk="⤟",nk="←",rk="↞",ik="⇐",ok="⤝",ak="↩",sk="↫",ck="⤹",lk="⥳",uk="↢",dk="⤙",fk="⤛",pk="⪫",hk="⪭",mk="⪭︀",vk="⤌",gk="⤎",bk="❲",yk="{",wk="[",kk="⦋",xk="⦏",Ck="⦍",Ok="Ľ",Sk="ľ",Tk="Ļ",Ek="ļ",_k="⌈",Mk="{",Ik="Л",jk="л",Dk="⤶",Nk="“",Ak="„",Lk="⥧",Pk="⥋",Bk="↲",Fk="≤",Rk="≦",qk="⟨",Hk="⇤",Uk="←",Vk="←",zk="⇐",$k="⇆",Wk="↢",Gk="⌈",Kk="⟦",Jk="⥡",Yk="⥙",Xk="⇃",Qk="⌊",Zk="↽",ex="↼",tx="⇇",nx="↔",rx="↔",ix="⇔",ox="⇆",ax="⇋",sx="↭",cx="⥎",lx="↤",ux="⊣",dx="⥚",fx="⋋",px="⧏",hx="⊲",mx="⊴",vx="⥑",gx="⥠",bx="⥘",yx="↿",wx="⥒",kx="↼",xx="⪋",Cx="⋚",Ox="≤",Sx="≦",Tx="⩽",Ex="⪨",_x="⩽",Mx="⩿",Ix="⪁",jx="⪃",Dx="⋚︀",Nx="⪓",Ax="⪅",Lx="⋖",Px="⋚",Bx="⪋",Fx="⋚",Rx="≦",qx="≶",Hx="≶",Ux="⪡",Vx="≲",zx="⩽",$x="≲",Wx="⥼",Gx="⌊",Kx="𝔏",Jx="𝔩",Yx="≶",Xx="⪑",Qx="⥢",Zx="↽",eC="↼",tC="⥪",nC="▄",rC="Љ",iC="љ",oC="⇇",aC="≪",sC="⋘",cC="⌞",lC="⇚",uC="⥫",dC="◺",fC="Ŀ",pC="ŀ",hC="⎰",mC="⎰",vC="⪉",gC="⪉",bC="⪇",yC="≨",wC="⪇",kC="≨",xC="⋦",CC="⟬",OC="⇽",SC="⟦",TC="⟵",EC="⟵",_C="⟸",MC="⟷",IC="⟷",jC="⟺",DC="⟼",NC="⟶",AC="⟶",LC="⟹",PC="↫",BC="↬",FC="⦅",RC="𝕃",qC="𝕝",HC="⨭",UC="⨴",VC="∗",zC="_",$C="↙",WC="↘",GC="◊",KC="◊",JC="⧫",YC="(",XC="⦓",QC="⇆",ZC="⌟",eO="⇋",tO="⥭",nO="‎",rO="⊿",iO="‹",oO="𝓁",aO="ℒ",sO="↰",cO="↰",lO="≲",uO="⪍",dO="⪏",fO="[",pO="‘",hO="‚",mO="Ł",vO="ł",gO="⪦",bO="⩹",yO="<",wO="<",kO="≪",xO="⋖",CO="⋋",OO="⋉",SO="⥶",TO="⩻",EO="◃",_O="⊴",MO="◂",IO="⦖",jO="⥊",DO="⥦",NO="≨︀",AO="≨︀",LO="¯",PO="♂",BO="✠",FO="✠",RO="↦",qO="↦",HO="↧",UO="↤",VO="↥",zO="▮",$O="⨩",WO="М",GO="м",KO="—",JO="∺",YO="∡",XO=" ",QO="ℳ",ZO="𝔐",eS="𝔪",tS="℧",nS="µ",rS="*",iS="⫰",oS="∣",aS="·",sS="⊟",cS="−",lS="∸",uS="⨪",dS="∓",fS="⫛",pS="…",hS="∓",mS="⊧",vS="𝕄",gS="𝕞",bS="∓",yS="𝓂",wS="ℳ",kS="∾",xS="Μ",CS="μ",OS="⊸",SS="⊸",TS="∇",ES="Ń",_S="ń",MS="∠⃒",IS="≉",jS="⩰̸",DS="≋̸",NS="ʼn",AS="≉",LS="♮",PS="ℕ",BS="♮",FS=" ",RS="≎̸",qS="≏̸",HS="⩃",US="Ň",VS="ň",zS="Ņ",$S="ņ",WS="≇",GS="⩭̸",KS="⩂",JS="Н",YS="н",XS="–",QS="⤤",ZS="↗",eT="⇗",tT="↗",nT="≠",rT="≐̸",iT="​",oT="​",aT="​",sT="​",cT="≢",lT="⤨",uT="≂̸",dT="≫",fT="≪",pT="\n",hT="∄",mT="∄",vT="𝔑",gT="𝔫",bT="≧̸",yT="≱",wT="≱",kT="≧̸",xT="⩾̸",CT="⩾̸",OT="⋙̸",ST="≵",TT="≫⃒",ET="≯",_T="≯",MT="≫̸",IT="↮",jT="⇎",DT="⫲",NT="∋",AT="⋼",LT="⋺",PT="∋",BT="Њ",FT="њ",RT="↚",qT="⇍",HT="‥",UT="≦̸",VT="≰",zT="↚",$T="⇍",WT="↮",GT="⇎",KT="≰",JT="≦̸",YT="⩽̸",XT="⩽̸",QT="≮",ZT="⋘̸",eE="≴",tE="≪⃒",nE="≮",rE="⋪",iE="⋬",oE="≪̸",aE="∤",sE="⁠",cE=" ",lE="𝕟",uE="ℕ",dE="⫬",fE="¬",pE="≢",hE="≭",mE="∦",vE="∉",gE="≠",bE="≂̸",yE="∄",wE="≯",kE="≱",xE="≧̸",CE="≫̸",OE="≹",SE="⩾̸",TE="≵",EE="≎̸",_E="≏̸",ME="∉",IE="⋵̸",jE="⋹̸",DE="∉",NE="⋷",AE="⋶",LE="⧏̸",PE="⋪",BE="⋬",FE="≮",RE="≰",qE="≸",HE="≪̸",UE="⩽̸",VE="≴",zE="⪢̸",$E="⪡̸",WE="∌",GE="∌",KE="⋾",JE="⋽",YE="⊀",XE="⪯̸",QE="⋠",ZE="∌",e_="⧐̸",t_="⋫",n_="⋭",r_="⊏̸",i_="⋢",o_="⊐̸",a_="⋣",s_="⊂⃒",c_="⊈",l_="⊁",u_="⪰̸",d_="⋡",f_="≿̸",p_="⊃⃒",h_="⊉",m_="≁",v_="≄",g_="≇",b_="≉",y_="∤",w_="∦",k_="∦",x_="⫽⃥",C_="∂̸",O_="⨔",S_="⊀",T_="⋠",E_="⊀",__="⪯̸",M_="⪯̸",I_="⤳̸",j_="↛",D_="⇏",N_="↝̸",A_="↛",L_="⇏",P_="⋫",B_="⋭",F_="⊁",R_="⋡",q_="⪰̸",H_="𝒩",U_="𝓃",V_="∤",z_="∦",$_="≁",W_="≄",G_="≄",K_="∤",J_="∦",Y_="⋢",X_="⋣",Q_="⊄",Z_="⫅̸",eM="⊈",tM="⊂⃒",nM="⊈",rM="⫅̸",iM="⊁",oM="⪰̸",aM="⊅",sM="⫆̸",cM="⊉",lM="⊃⃒",uM="⊉",dM="⫆̸",fM="≹",pM="Ñ",hM="ñ",mM="≸",vM="⋪",gM="⋬",bM="⋫",yM="⋭",wM="Ν",kM="ν",xM="#",CM="№",OM=" ",SM="≍⃒",TM="⊬",EM="⊭",_M="⊮",MM="⊯",IM="≥⃒",jM=">⃒",DM="⤄",NM="⧞",AM="⤂",LM="≤⃒",PM="<⃒",BM="⊴⃒",FM="⤃",RM="⊵⃒",qM="∼⃒",HM="⤣",UM="↖",VM="⇖",zM="↖",$M="⤧",WM="Ó",GM="ó",KM="⊛",JM="Ô",YM="ô",XM="⊚",QM="О",ZM="о",eI="⊝",tI="Ő",nI="ő",rI="⨸",iI="⊙",oI="⦼",aI="Œ",sI="œ",cI="⦿",lI="𝔒",uI="𝔬",dI="˛",fI="Ò",pI="ò",hI="⧁",mI="⦵",vI="Ω",gI="∮",bI="↺",yI="⦾",wI="⦻",kI="‾",xI="⧀",CI="Ō",OI="ō",SI="Ω",TI="ω",EI="Ο",_I="ο",MI="⦶",II="⊖",jI="𝕆",DI="𝕠",NI="⦷",AI="“",LI="‘",PI="⦹",BI="⊕",FI="↻",RI="⩔",qI="∨",HI="⩝",UI="ℴ",VI="ℴ",zI="ª",$I="º",WI="⊶",GI="⩖",KI="⩗",JI="⩛",YI="Ⓢ",XI="𝒪",QI="ℴ",ZI="Ø",ej="ø",tj="⊘",nj="Õ",rj="õ",ij="⨶",oj="⨷",aj="⊗",sj="Ö",cj="ö",lj="⌽",uj="‾",dj="⏞",fj="⎴",pj="⏜",hj="¶",mj="∥",vj="∥",gj="⫳",bj="⫽",yj="∂",wj="∂",kj="П",xj="п",Cj="%",Oj=".",Sj="‰",Tj="⊥",Ej="‱",_j="𝔓",Mj="𝔭",Ij="Φ",jj="φ",Dj="ϕ",Nj="ℳ",Aj="☎",Lj="Π",Pj="π",Bj="⋔",Fj="ϖ",Rj="ℏ",qj="ℎ",Hj="ℏ",Uj="⨣",Vj="⊞",zj="⨢",$j="+",Wj="∔",Gj="⨥",Kj="⩲",Jj="±",Yj="±",Xj="⨦",Qj="⨧",Zj="±",eD="ℌ",tD="⨕",nD="𝕡",rD="ℙ",iD="£",oD="⪷",aD="⪻",sD="≺",cD="≼",lD="⪷",uD="≺",dD="≼",fD="≺",pD="⪯",hD="≼",mD="≾",vD="⪯",gD="⪹",bD="⪵",yD="⋨",wD="⪯",kD="⪳",xD="≾",CD="′",OD="″",SD="ℙ",TD="⪹",ED="⪵",_D="⋨",MD="∏",ID="∏",jD="⌮",DD="⌒",ND="⌓",AD="∝",LD="∝",PD="∷",BD="∝",FD="≾",RD="⊰",qD="𝒫",HD="𝓅",UD="Ψ",VD="ψ",zD=" ",$D="𝔔",WD="𝔮",GD="⨌",KD="𝕢",JD="ℚ",YD="⁗",XD="𝒬",QD="𝓆",ZD="ℍ",eN="⨖",tN="?",nN="≟",rN='"',iN='"',oN="⇛",aN="∽̱",sN="Ŕ",cN="ŕ",lN="√",uN="⦳",dN="⟩",fN="⟫",pN="⦒",hN="⦥",mN="⟩",vN="»",gN="⥵",bN="⇥",yN="⤠",wN="⤳",kN="→",xN="↠",CN="⇒",ON="⤞",SN="↪",TN="↬",EN="⥅",_N="⥴",MN="⤖",IN="↣",jN="↝",DN="⤚",NN="⤜",AN="∶",LN="ℚ",PN="⤍",BN="⤏",FN="⤐",RN="❳",qN="}",HN="]",UN="⦌",VN="⦎",zN="⦐",$N="Ř",WN="ř",GN="Ŗ",KN="ŗ",JN="⌉",YN="}",XN="Р",QN="р",ZN="⤷",eA="⥩",tA="”",nA="”",rA="↳",iA="ℜ",oA="ℛ",aA="ℜ",sA="ℝ",cA="ℜ",lA="▭",uA="®",dA="®",fA="∋",pA="⇋",hA="⥯",mA="⥽",vA="⌋",gA="𝔯",bA="ℜ",yA="⥤",wA="⇁",kA="⇀",xA="⥬",CA="Ρ",OA="ρ",SA="ϱ",TA="⟩",EA="⇥",_A="→",MA="→",IA="⇒",jA="⇄",DA="↣",NA="⌉",AA="⟧",LA="⥝",PA="⥕",BA="⇂",FA="⌋",RA="⇁",qA="⇀",HA="⇄",UA="⇌",VA="⇉",zA="↝",$A="↦",WA="⊢",GA="⥛",KA="⋌",JA="⧐",YA="⊳",XA="⊵",QA="⥏",ZA="⥜",eL="⥔",tL="↾",nL="⥓",rL="⇀",iL="˚",oL="≓",aL="⇄",sL="⇌",cL="‏",lL="⎱",uL="⎱",dL="⫮",fL="⟭",pL="⇾",hL="⟧",mL="⦆",vL="𝕣",gL="ℝ",bL="⨮",yL="⨵",wL="⥰",kL=")",xL="⦔",CL="⨒",OL="⇉",SL="⇛",TL="›",EL="𝓇",_L="ℛ",ML="↱",IL="↱",jL="]",DL="’",NL="’",AL="⋌",LL="⋊",PL="▹",BL="⊵",FL="▸",RL="⧎",qL="⧴",HL="⥨",UL="℞",VL="Ś",zL="ś",$L="‚",WL="⪸",GL="Š",KL="š",JL="⪼",YL="≻",XL="≽",QL="⪰",ZL="⪴",eP="Ş",tP="ş",nP="Ŝ",rP="ŝ",iP="⪺",oP="⪶",aP="⋩",sP="⨓",cP="≿",lP="С",uP="с",dP="⊡",fP="⋅",pP="⩦",hP="⤥",mP="↘",vP="⇘",gP="↘",bP="§",yP=";",wP="⤩",kP="∖",xP="∖",CP="✶",OP="𝔖",SP="𝔰",TP="⌢",EP="♯",_P="Щ",MP="щ",IP="Ш",jP="ш",DP="↓",NP="←",AP="∣",LP="∥",PP="→",BP="↑",FP="­",RP="Σ",qP="σ",HP="ς",UP="ς",VP="∼",zP="⩪",$P="≃",WP="≃",GP="⪞",KP="⪠",JP="⪝",YP="⪟",XP="≆",QP="⨤",ZP="⥲",eB="←",tB="∘",nB="∖",rB="⨳",iB="⧤",oB="∣",aB="⌣",sB="⪪",cB="⪬",lB="⪬︀",uB="Ь",dB="ь",fB="⌿",pB="⧄",hB="/",mB="𝕊",vB="𝕤",gB="♠",bB="♠",yB="∥",wB="⊓",kB="⊓︀",xB="⊔",CB="⊔︀",OB="√",SB="⊏",TB="⊑",EB="⊏",_B="⊑",MB="⊐",IB="⊒",jB="⊐",DB="⊒",NB="□",AB="□",LB="⊓",PB="⊏",BB="⊑",FB="⊐",RB="⊒",qB="⊔",HB="▪",UB="□",VB="▪",zB="→",$B="𝒮",WB="𝓈",GB="∖",KB="⌣",JB="⋆",YB="⋆",XB="☆",QB="★",ZB="ϵ",eF="ϕ",tF="¯",nF="⊂",rF="⋐",iF="⪽",oF="⫅",aF="⊆",sF="⫃",cF="⫁",lF="⫋",uF="⊊",dF="⪿",fF="⥹",pF="⊂",hF="⋐",mF="⊆",vF="⫅",gF="⊆",bF="⊊",yF="⫋",wF="⫇",kF="⫕",xF="⫓",CF="⪸",OF="≻",SF="≽",TF="≻",EF="⪰",_F="≽",MF="≿",IF="⪰",jF="⪺",DF="⪶",NF="⋩",AF="≿",LF="∋",PF="∑",BF="∑",FF="♪",RF="¹",qF="²",HF="³",UF="⊃",VF="⋑",zF="⪾",$F="⫘",WF="⫆",GF="⊇",KF="⫄",JF="⊃",YF="⊇",XF="⟉",QF="⫗",ZF="⥻",eR="⫂",tR="⫌",nR="⊋",rR="⫀",iR="⊃",oR="⋑",aR="⊇",sR="⫆",cR="⊋",lR="⫌",uR="⫈",dR="⫔",fR="⫖",pR="⤦",hR="↙",mR="⇙",vR="↙",gR="⤪",bR="ß",yR="\t",wR="⌖",kR="Τ",xR="τ",CR="⎴",OR="Ť",SR="ť",TR="Ţ",ER="ţ",_R="Т",MR="т",IR="⃛",jR="⌕",DR="𝔗",NR="𝔱",AR="∴",LR="∴",PR="∴",BR="Θ",FR="θ",RR="ϑ",qR="ϑ",HR="≈",UR="∼",VR="  ",zR=" ",$R=" ",WR="≈",GR="∼",KR="Þ",JR="þ",YR="˜",XR="∼",QR="≃",ZR="≅",eq="≈",tq="⨱",nq="⊠",rq="×",iq="⨰",oq="∭",aq="⤨",sq="⌶",cq="⫱",lq="⊤",uq="𝕋",dq="𝕥",fq="⫚",pq="⤩",hq="‴",mq="™",vq="™",gq="▵",bq="▿",yq="◃",wq="⊴",kq="≜",xq="▹",Cq="⊵",Oq="◬",Sq="≜",Tq="⨺",Eq="⃛",_q="⨹",Mq="⧍",Iq="⨻",jq="⏢",Dq="𝒯",Nq="𝓉",Aq="Ц",Lq="ц",Pq="Ћ",Bq="ћ",Fq="Ŧ",Rq="ŧ",qq="≬",Hq="↞",Uq="↠",Vq="Ú",zq="ú",$q="↑",Wq="↟",Gq="⇑",Kq="⥉",Jq="Ў",Yq="ў",Xq="Ŭ",Qq="ŭ",Zq="Û",eH="û",tH="У",nH="у",rH="⇅",iH="Ű",oH="ű",aH="⥮",sH="⥾",cH="𝔘",lH="𝔲",uH="Ù",dH="ù",fH="⥣",pH="↿",hH="↾",mH="▀",vH="⌜",gH="⌜",bH="⌏",yH="◸",wH="Ū",kH="ū",xH="¨",CH="_",OH="⏟",SH="⎵",TH="⏝",EH="⋃",_H="⊎",MH="Ų",IH="ų",jH="𝕌",DH="𝕦",NH="⤒",AH="↑",LH="↑",PH="⇑",BH="⇅",FH="↕",RH="↕",qH="⇕",HH="⥮",UH="↿",VH="↾",zH="⊎",$H="↖",WH="↗",GH="υ",KH="ϒ",JH="ϒ",YH="Υ",XH="υ",QH="↥",ZH="⊥",eU="⇈",tU="⌝",nU="⌝",rU="⌎",iU="Ů",oU="ů",aU="◹",sU="𝒰",cU="𝓊",lU="⋰",uU="Ũ",dU="ũ",fU="▵",pU="▴",hU="⇈",mU="Ü",vU="ü",gU="⦧",bU="⦜",yU="ϵ",wU="ϰ",kU="∅",xU="ϕ",CU="ϖ",OU="∝",SU="↕",TU="⇕",EU="ϱ",_U="ς",MU="⊊︀",IU="⫋︀",jU="⊋︀",DU="⫌︀",NU="ϑ",AU="⊲",LU="⊳",PU="⫨",BU="⫫",FU="⫩",RU="В",qU="в",HU="⊢",UU="⊨",VU="⊩",zU="⊫",$U="⫦",WU="⊻",GU="∨",KU="⋁",JU="≚",YU="⋮",XU="|",QU="‖",ZU="|",eV="‖",tV="∣",nV="|",rV="❘",iV="≀",oV=" ",aV="𝔙",sV="𝔳",cV="⊲",lV="⊂⃒",uV="⊃⃒",dV="𝕍",fV="𝕧",pV="∝",hV="⊳",mV="𝒱",vV="𝓋",gV="⫋︀",bV="⊊︀",yV="⫌︀",wV="⊋︀",kV="⊪",xV="⦚",CV="Ŵ",OV="ŵ",SV="⩟",TV="∧",EV="⋀",_V="≙",MV="℘",IV="𝔚",jV="𝔴",DV="𝕎",NV="𝕨",AV="℘",LV="≀",PV="≀",BV="𝒲",FV="𝓌",RV="⋂",qV="◯",HV="⋃",UV="▽",VV="𝔛",zV="𝔵",$V="⟷",WV="⟺",GV="Ξ",KV="ξ",JV="⟵",YV="⟸",XV="⟼",QV="⋻",ZV="⨀",ez="𝕏",tz="𝕩",nz="⨁",rz="⨂",iz="⟶",oz="⟹",az="𝒳",sz="𝓍",cz="⨆",lz="⨄",uz="△",dz="⋁",fz="⋀",pz="Ý",hz="ý",mz="Я",vz="я",gz="Ŷ",bz="ŷ",yz="Ы",wz="ы",kz="¥",xz="𝔜",Cz="𝔶",Oz="Ї",Sz="ї",Tz="𝕐",Ez="𝕪",_z="𝒴",Mz="𝓎",Iz="Ю",jz="ю",Dz="ÿ",Nz="Ÿ",Az="Ź",Lz="ź",Pz="Ž",Bz="ž",Fz="З",Rz="з",qz="Ż",Hz="ż",Uz="ℨ",Vz="​",zz="Ζ",$z="ζ",Wz="𝔷",Gz="ℨ",Kz="Ж",Jz="ж",Yz="⇝",Xz="𝕫",Qz="ℤ",Zz="𝒵",e$="𝓏",t$="‍",n$="‌",r$={Aacute:Ro,aacute:qo,Abreve:Ho,abreve:Uo,ac:Vo,acd:zo,acE:$o,Acirc:Wo,acirc:Go,acute:Ko,Acy:Jo,acy:Yo,AElig:Xo,aelig:Qo,af:Zo,Afr:ea,afr:ta,Agrave:na,agrave:ra,alefsym:ia,aleph:oa,Alpha:aa,alpha:sa,Amacr:ca,amacr:la,amalg:ua,amp:da,AMP:fa,andand:pa,And:ha,and:ma,andd:va,andslope:ga,andv:ba,ang:ya,ange:wa,angle:ka,angmsdaa:xa,angmsdab:Ca,angmsdac:Oa,angmsdad:Sa,angmsdae:Ta,angmsdaf:Ea,angmsdag:_a,angmsdah:Ma,angmsd:Ia,angrt:ja,angrtvb:Da,angrtvbd:Na,angsph:Aa,angst:La,angzarr:Pa,Aogon:Ba,aogon:Fa,Aopf:Ra,aopf:qa,apacir:Ha,ap:Ua,apE:Va,ape:za,apid:$a,apos:Wa,ApplyFunction:Ga,approx:Ka,approxeq:Ja,Aring:Ya,aring:Xa,Ascr:Qa,ascr:Za,Assign:es,ast:ts,asymp:ns,asympeq:rs,Atilde:is,atilde:os,Auml:as,auml:ss,awconint:cs,awint:ls,backcong:us,backepsilon:ds,backprime:fs,backsim:ps,backsimeq:hs,Backslash:ms,Barv:vs,barvee:gs,barwed:bs,Barwed:ys,barwedge:ws,bbrk:ks,bbrktbrk:xs,bcong:Cs,Bcy:Os,bcy:Ss,bdquo:Ts,becaus:Es,because:_s,Because:Ms,bemptyv:Is,bepsi:js,bernou:Ds,Bernoullis:Ns,Beta:As,beta:Ls,beth:Ps,between:Bs,Bfr:Fs,bfr:Rs,bigcap:qs,bigcirc:Hs,bigcup:Us,bigodot:Vs,bigoplus:zs,bigotimes:$s,bigsqcup:Ws,bigstar:Gs,bigtriangledown:Ks,bigtriangleup:Js,biguplus:Ys,bigvee:Xs,bigwedge:Qs,bkarow:Zs,blacklozenge:ec,blacksquare:tc,blacktriangle:nc,blacktriangledown:rc,blacktriangleleft:ic,blacktriangleright:oc,blank:ac,blk12:sc,blk14:cc,blk34:lc,block:uc,bne:dc,bnequiv:fc,bNot:pc,bnot:hc,Bopf:mc,bopf:vc,bot:gc,bottom:bc,bowtie:yc,boxbox:wc,boxdl:kc,boxdL:xc,boxDl:Cc,boxDL:Oc,boxdr:Sc,boxdR:Tc,boxDr:Ec,boxDR:_c,boxh:Mc,boxH:Ic,boxhd:jc,boxHd:Dc,boxhD:Nc,boxHD:Ac,boxhu:Lc,boxHu:Pc,boxhU:Bc,boxHU:Fc,boxminus:Rc,boxplus:qc,boxtimes:Hc,boxul:Uc,boxuL:Vc,boxUl:zc,boxUL:$c,boxur:Wc,boxuR:Gc,boxUr:Kc,boxUR:Jc,boxv:Yc,boxV:Xc,boxvh:Qc,boxvH:Zc,boxVh:el,boxVH:tl,boxvl:nl,boxvL:rl,boxVl:il,boxVL:ol,boxvr:al,boxvR:sl,boxVr:cl,boxVR:ll,bprime:ul,breve:dl,Breve:fl,brvbar:pl,bscr:hl,Bscr:ml,bsemi:vl,bsim:gl,bsime:bl,bsolb:yl,bsol:wl,bsolhsub:kl,bull:xl,bullet:Cl,bump:Ol,bumpE:Sl,bumpe:Tl,Bumpeq:El,bumpeq:_l,Cacute:Ml,cacute:Il,capand:jl,capbrcup:Dl,capcap:Nl,cap:Al,Cap:Ll,capcup:Pl,capdot:Bl,CapitalDifferentialD:Fl,caps:Rl,caret:ql,caron:Hl,Cayleys:Ul,ccaps:Vl,Ccaron:zl,ccaron:$l,Ccedil:Wl,ccedil:Gl,Ccirc:Kl,ccirc:Jl,Cconint:Yl,ccups:Xl,ccupssm:Ql,Cdot:Zl,cdot:eu,cedil:tu,Cedilla:nu,cemptyv:ru,cent:iu,centerdot:ou,CenterDot:au,cfr:su,Cfr:cu,CHcy:lu,chcy:uu,check:du,checkmark:fu,Chi:pu,chi:hu,circ:mu,circeq:vu,circlearrowleft:gu,circlearrowright:bu,circledast:yu,circledcirc:wu,circleddash:ku,CircleDot:xu,circledR:Cu,circledS:Ou,CircleMinus:Su,CirclePlus:Tu,CircleTimes:Eu,cir:_u,cirE:Mu,cire:Iu,cirfnint:ju,cirmid:Du,cirscir:Nu,ClockwiseContourIntegral:Au,CloseCurlyDoubleQuote:Lu,CloseCurlyQuote:Pu,clubs:Bu,clubsuit:Fu,colon:Ru,Colon:qu,Colone:Hu,colone:Uu,coloneq:Vu,comma:zu,commat:$u,comp:Wu,compfn:Gu,complement:Ku,complexes:Ju,cong:Yu,congdot:Xu,Congruent:Qu,conint:Zu,Conint:ed,ContourIntegral:td,copf:nd,Copf:rd,coprod:id,Coproduct:od,copy:ad,COPY:sd,copysr:cd,CounterClockwiseContourIntegral:ld,crarr:ud,cross:dd,Cross:fd,Cscr:pd,cscr:hd,csub:md,csube:vd,csup:gd,csupe:bd,ctdot:yd,cudarrl:wd,cudarrr:kd,cuepr:xd,cuesc:Cd,cularr:Od,cularrp:Sd,cupbrcap:Td,cupcap:Ed,CupCap:_d,cup:Md,Cup:Id,cupcup:jd,cupdot:Dd,cupor:Nd,cups:Ad,curarr:Ld,curarrm:Pd,curlyeqprec:Bd,curlyeqsucc:Fd,curlyvee:Rd,curlywedge:qd,curren:Hd,curvearrowleft:Ud,curvearrowright:Vd,cuvee:zd,cuwed:$d,cwconint:Wd,cwint:Gd,cylcty:Kd,dagger:Jd,Dagger:Yd,daleth:Xd,darr:Qd,Darr:Zd,dArr:ef,dash:tf,Dashv:nf,dashv:rf,dbkarow:of,dblac:af,Dcaron:sf,dcaron:cf,Dcy:lf,dcy:uf,ddagger:df,ddarr:ff,DD:pf,dd:hf,DDotrahd:mf,ddotseq:vf,deg:gf,Del:bf,Delta:yf,delta:wf,demptyv:kf,dfisht:xf,Dfr:Cf,dfr:Of,dHar:Sf,dharl:Tf,dharr:Ef,DiacriticalAcute:_f,DiacriticalDot:Mf,DiacriticalDoubleAcute:If,DiacriticalGrave:jf,DiacriticalTilde:Df,diam:Nf,diamond:Af,Diamond:Lf,diamondsuit:Pf,diams:Bf,die:Ff,DifferentialD:Rf,digamma:qf,disin:Hf,div:Uf,divide:Vf,divideontimes:zf,divonx:$f,DJcy:Wf,djcy:Gf,dlcorn:Kf,dlcrop:Jf,dollar:Yf,Dopf:Xf,dopf:Qf,Dot:Zf,dot:ep,DotDot:tp,doteq:np,doteqdot:rp,DotEqual:ip,dotminus:op,dotplus:ap,dotsquare:sp,doublebarwedge:cp,DoubleContourIntegral:lp,DoubleDot:up,DoubleDownArrow:dp,DoubleLeftArrow:fp,DoubleLeftRightArrow:pp,DoubleLeftTee:hp,DoubleLongLeftArrow:mp,DoubleLongLeftRightArrow:vp,DoubleLongRightArrow:gp,DoubleRightArrow:bp,DoubleRightTee:yp,DoubleUpArrow:wp,DoubleUpDownArrow:kp,DoubleVerticalBar:xp,DownArrowBar:Cp,downarrow:Op,DownArrow:Sp,Downarrow:Tp,DownArrowUpArrow:Ep,DownBreve:_p,downdownarrows:Mp,downharpoonleft:Ip,downharpoonright:jp,DownLeftRightVector:Dp,DownLeftTeeVector:Np,DownLeftVectorBar:Ap,DownLeftVector:Lp,DownRightTeeVector:Pp,DownRightVectorBar:Bp,DownRightVector:Fp,DownTeeArrow:Rp,DownTee:qp,drbkarow:Hp,drcorn:Up,drcrop:Vp,Dscr:zp,dscr:$p,DScy:Wp,dscy:Gp,dsol:Kp,Dstrok:Jp,dstrok:Yp,dtdot:Xp,dtri:Qp,dtrif:Zp,duarr:eh,duhar:th,dwangle:nh,DZcy:rh,dzcy:ih,dzigrarr:oh,Eacute:ah,eacute:sh,easter:ch,Ecaron:lh,ecaron:uh,Ecirc:dh,ecirc:fh,ecir:ph,ecolon:hh,Ecy:mh,ecy:vh,eDDot:gh,Edot:bh,edot:yh,eDot:wh,ee:kh,efDot:xh,Efr:Ch,efr:Oh,eg:Sh,Egrave:Th,egrave:Eh,egs:_h,egsdot:Mh,el:Ih,Element:jh,elinters:Dh,ell:Nh,els:Ah,elsdot:Lh,Emacr:Ph,emacr:Bh,empty:Fh,emptyset:Rh,EmptySmallSquare:qh,emptyv:Hh,EmptyVerySmallSquare:Uh,emsp13:Vh,emsp14:zh,emsp:$h,ENG:Wh,eng:Gh,ensp:Kh,Eogon:Jh,eogon:Yh,Eopf:Xh,eopf:Qh,epar:Zh,eparsl:em,eplus:tm,epsi:nm,Epsilon:rm,epsilon:im,epsiv:om,eqcirc:am,eqcolon:sm,eqsim:cm,eqslantgtr:lm,eqslantless:um,Equal:dm,equals:fm,EqualTilde:pm,equest:hm,Equilibrium:mm,equiv:vm,equivDD:gm,eqvparsl:bm,erarr:ym,erDot:wm,escr:km,Escr:xm,esdot:Cm,Esim:Om,esim:Sm,Eta:Tm,eta:Em,ETH:_m,eth:Mm,Euml:Im,euml:jm,euro:Dm,excl:Nm,exist:Am,Exists:Lm,expectation:Pm,exponentiale:Bm,ExponentialE:Fm,fallingdotseq:Rm,Fcy:qm,fcy:Hm,female:Um,ffilig:Vm,fflig:zm,ffllig:$m,Ffr:Wm,ffr:Gm,filig:Km,FilledSmallSquare:Jm,FilledVerySmallSquare:Ym,fjlig:Xm,flat:Qm,fllig:Zm,fltns:ev,fnof:tv,Fopf:nv,fopf:rv,forall:iv,ForAll:ov,fork:av,forkv:sv,Fouriertrf:cv,fpartint:lv,frac12:uv,frac13:dv,frac14:fv,frac15:pv,frac16:hv,frac18:mv,frac23:vv,frac25:gv,frac34:bv,frac35:yv,frac38:wv,frac45:kv,frac56:xv,frac58:Cv,frac78:Ov,frasl:Sv,frown:Tv,fscr:Ev,Fscr:_v,gacute:Mv,Gamma:Iv,gamma:jv,Gammad:Dv,gammad:Nv,gap:Av,Gbreve:Lv,gbreve:Pv,Gcedil:Bv,Gcirc:Fv,gcirc:Rv,Gcy:qv,gcy:Hv,Gdot:Uv,gdot:Vv,ge:zv,gE:$v,gEl:Wv,gel:Gv,geq:Kv,geqq:Jv,geqslant:Yv,gescc:Xv,ges:Qv,gesdot:Zv,gesdoto:eg,gesdotol:tg,gesl:ng,gesles:rg,Gfr:ig,gfr:og,gg:ag,Gg:sg,ggg:cg,gimel:lg,GJcy:ug,gjcy:dg,gla:fg,gl:pg,glE:hg,glj:mg,gnap:vg,gnapprox:gg,gne:bg,gnE:yg,gneq:wg,gneqq:kg,gnsim:xg,Gopf:Cg,gopf:Og,grave:Sg,GreaterEqual:Tg,GreaterEqualLess:Eg,GreaterFullEqual:_g,GreaterGreater:Mg,GreaterLess:Ig,GreaterSlantEqual:jg,GreaterTilde:Dg,Gscr:Ng,gscr:Ag,gsim:Lg,gsime:Pg,gsiml:Bg,gtcc:Fg,gtcir:Rg,gt:qg,GT:Hg,Gt:Ug,gtdot:Vg,gtlPar:zg,gtquest:$g,gtrapprox:Wg,gtrarr:Gg,gtrdot:Kg,gtreqless:Jg,gtreqqless:Yg,gtrless:Xg,gtrsim:Qg,gvertneqq:Zg,gvnE:eb,Hacek:tb,hairsp:nb,half:rb,hamilt:ib,HARDcy:ob,hardcy:ab,harrcir:sb,harr:cb,hArr:lb,harrw:ub,Hat:db,hbar:fb,Hcirc:pb,hcirc:hb,hearts:mb,heartsuit:vb,hellip:gb,hercon:bb,hfr:yb,Hfr:wb,HilbertSpace:kb,hksearow:xb,hkswarow:Cb,hoarr:Ob,homtht:Sb,hookleftarrow:Tb,hookrightarrow:Eb,hopf:_b,Hopf:Mb,horbar:Ib,HorizontalLine:jb,hscr:Db,Hscr:Nb,hslash:Ab,Hstrok:Lb,hstrok:Pb,HumpDownHump:Bb,HumpEqual:Fb,hybull:Rb,hyphen:qb,Iacute:Hb,iacute:Ub,ic:Vb,Icirc:zb,icirc:$b,Icy:Wb,icy:Gb,Idot:Kb,IEcy:Jb,iecy:Yb,iexcl:Xb,iff:Qb,ifr:Zb,Ifr:ey,Igrave:ty,igrave:ny,ii:ry,iiiint:iy,iiint:oy,iinfin:ay,iiota:sy,IJlig:cy,ijlig:ly,Imacr:uy,imacr:dy,image:fy,ImaginaryI:py,imagline:hy,imagpart:my,imath:vy,Im:gy,imof:by,imped:yy,Implies:wy,incare:ky,in:"∈",infin:xy,infintie:Cy,inodot:Oy,intcal:Sy,int:Ty,Int:Ey,integers:_y,Integral:My,intercal:Iy,Intersection:jy,intlarhk:Dy,intprod:Ny,InvisibleComma:Ay,InvisibleTimes:Ly,IOcy:Py,iocy:By,Iogon:Fy,iogon:Ry,Iopf:qy,iopf:Hy,Iota:Uy,iota:Vy,iprod:zy,iquest:$y,iscr:Wy,Iscr:Gy,isin:Ky,isindot:Jy,isinE:Yy,isins:Xy,isinsv:Qy,isinv:Zy,it:ew,Itilde:tw,itilde:nw,Iukcy:rw,iukcy:iw,Iuml:ow,iuml:aw,Jcirc:sw,jcirc:cw,Jcy:lw,jcy:uw,Jfr:dw,jfr:fw,jmath:pw,Jopf:hw,jopf:mw,Jscr:vw,jscr:gw,Jsercy:bw,jsercy:yw,Jukcy:ww,jukcy:kw,Kappa:xw,kappa:Cw,kappav:Ow,Kcedil:Sw,kcedil:Tw,Kcy:Ew,kcy:_w,Kfr:Mw,kfr:Iw,kgreen:jw,KHcy:Dw,khcy:Nw,KJcy:Aw,kjcy:Lw,Kopf:Pw,kopf:Bw,Kscr:Fw,kscr:Rw,lAarr:qw,Lacute:Hw,lacute:Uw,laemptyv:Vw,lagran:zw,Lambda:$w,lambda:Ww,lang:Gw,Lang:Kw,langd:Jw,langle:Yw,lap:Xw,Laplacetrf:Qw,laquo:Zw,larrb:ek,larrbfs:tk,larr:nk,Larr:rk,lArr:ik,larrfs:ok,larrhk:ak,larrlp:sk,larrpl:ck,larrsim:lk,larrtl:uk,latail:dk,lAtail:fk,lat:pk,late:hk,lates:mk,lbarr:vk,lBarr:gk,lbbrk:bk,lbrace:yk,lbrack:wk,lbrke:kk,lbrksld:xk,lbrkslu:Ck,Lcaron:Ok,lcaron:Sk,Lcedil:Tk,lcedil:Ek,lceil:_k,lcub:Mk,Lcy:Ik,lcy:jk,ldca:Dk,ldquo:Nk,ldquor:Ak,ldrdhar:Lk,ldrushar:Pk,ldsh:Bk,le:Fk,lE:Rk,LeftAngleBracket:qk,LeftArrowBar:Hk,leftarrow:Uk,LeftArrow:Vk,Leftarrow:zk,LeftArrowRightArrow:$k,leftarrowtail:Wk,LeftCeiling:Gk,LeftDoubleBracket:Kk,LeftDownTeeVector:Jk,LeftDownVectorBar:Yk,LeftDownVector:Xk,LeftFloor:Qk,leftharpoondown:Zk,leftharpoonup:ex,leftleftarrows:tx,leftrightarrow:nx,LeftRightArrow:rx,Leftrightarrow:ix,leftrightarrows:ox,leftrightharpoons:ax,leftrightsquigarrow:sx,LeftRightVector:cx,LeftTeeArrow:lx,LeftTee:ux,LeftTeeVector:dx,leftthreetimes:fx,LeftTriangleBar:px,LeftTriangle:hx,LeftTriangleEqual:mx,LeftUpDownVector:vx,LeftUpTeeVector:gx,LeftUpVectorBar:bx,LeftUpVector:yx,LeftVectorBar:wx,LeftVector:kx,lEg:xx,leg:Cx,leq:Ox,leqq:Sx,leqslant:Tx,lescc:Ex,les:_x,lesdot:Mx,lesdoto:Ix,lesdotor:jx,lesg:Dx,lesges:Nx,lessapprox:Ax,lessdot:Lx,lesseqgtr:Px,lesseqqgtr:Bx,LessEqualGreater:Fx,LessFullEqual:Rx,LessGreater:qx,lessgtr:Hx,LessLess:Ux,lesssim:Vx,LessSlantEqual:zx,LessTilde:$x,lfisht:Wx,lfloor:Gx,Lfr:Kx,lfr:Jx,lg:Yx,lgE:Xx,lHar:Qx,lhard:Zx,lharu:eC,lharul:tC,lhblk:nC,LJcy:rC,ljcy:iC,llarr:oC,ll:aC,Ll:sC,llcorner:cC,Lleftarrow:lC,llhard:uC,lltri:dC,Lmidot:fC,lmidot:pC,lmoustache:hC,lmoust:mC,lnap:vC,lnapprox:gC,lne:bC,lnE:yC,lneq:wC,lneqq:kC,lnsim:xC,loang:CC,loarr:OC,lobrk:SC,longleftarrow:TC,LongLeftArrow:EC,Longleftarrow:_C,longleftrightarrow:MC,LongLeftRightArrow:IC,Longleftrightarrow:jC,longmapsto:DC,longrightarrow:NC,LongRightArrow:AC,Longrightarrow:LC,looparrowleft:PC,looparrowright:BC,lopar:FC,Lopf:RC,lopf:qC,loplus:HC,lotimes:UC,lowast:VC,lowbar:zC,LowerLeftArrow:$C,LowerRightArrow:WC,loz:GC,lozenge:KC,lozf:JC,lpar:YC,lparlt:XC,lrarr:QC,lrcorner:ZC,lrhar:eO,lrhard:tO,lrm:nO,lrtri:rO,lsaquo:iO,lscr:oO,Lscr:aO,lsh:sO,Lsh:cO,lsim:lO,lsime:uO,lsimg:dO,lsqb:fO,lsquo:pO,lsquor:hO,Lstrok:mO,lstrok:vO,ltcc:gO,ltcir:bO,lt:yO,LT:wO,Lt:kO,ltdot:xO,lthree:CO,ltimes:OO,ltlarr:SO,ltquest:TO,ltri:EO,ltrie:_O,ltrif:MO,ltrPar:IO,lurdshar:jO,luruhar:DO,lvertneqq:NO,lvnE:AO,macr:LO,male:PO,malt:BO,maltese:FO,Map:"⤅",map:RO,mapsto:qO,mapstodown:HO,mapstoleft:UO,mapstoup:VO,marker:zO,mcomma:$O,Mcy:WO,mcy:GO,mdash:KO,mDDot:JO,measuredangle:YO,MediumSpace:XO,Mellintrf:QO,Mfr:ZO,mfr:eS,mho:tS,micro:nS,midast:rS,midcir:iS,mid:oS,middot:aS,minusb:sS,minus:cS,minusd:lS,minusdu:uS,MinusPlus:dS,mlcp:fS,mldr:pS,mnplus:hS,models:mS,Mopf:vS,mopf:gS,mp:bS,mscr:yS,Mscr:wS,mstpos:kS,Mu:xS,mu:CS,multimap:OS,mumap:SS,nabla:TS,Nacute:ES,nacute:_S,nang:MS,nap:IS,napE:jS,napid:DS,napos:NS,napprox:AS,natural:LS,naturals:PS,natur:BS,nbsp:FS,nbump:RS,nbumpe:qS,ncap:HS,Ncaron:US,ncaron:VS,Ncedil:zS,ncedil:$S,ncong:WS,ncongdot:GS,ncup:KS,Ncy:JS,ncy:YS,ndash:XS,nearhk:QS,nearr:ZS,neArr:eT,nearrow:tT,ne:nT,nedot:rT,NegativeMediumSpace:iT,NegativeThickSpace:oT,NegativeThinSpace:aT,NegativeVeryThinSpace:sT,nequiv:cT,nesear:lT,nesim:uT,NestedGreaterGreater:dT,NestedLessLess:fT,NewLine:pT,nexist:hT,nexists:mT,Nfr:vT,nfr:gT,ngE:bT,nge:yT,ngeq:wT,ngeqq:kT,ngeqslant:xT,nges:CT,nGg:OT,ngsim:ST,nGt:TT,ngt:ET,ngtr:_T,nGtv:MT,nharr:IT,nhArr:jT,nhpar:DT,ni:NT,nis:AT,nisd:LT,niv:PT,NJcy:BT,njcy:FT,nlarr:RT,nlArr:qT,nldr:HT,nlE:UT,nle:VT,nleftarrow:zT,nLeftarrow:$T,nleftrightarrow:WT,nLeftrightarrow:GT,nleq:KT,nleqq:JT,nleqslant:YT,nles:XT,nless:QT,nLl:ZT,nlsim:eE,nLt:tE,nlt:nE,nltri:rE,nltrie:iE,nLtv:oE,nmid:aE,NoBreak:sE,NonBreakingSpace:cE,nopf:lE,Nopf:uE,Not:dE,not:fE,NotCongruent:pE,NotCupCap:hE,NotDoubleVerticalBar:mE,NotElement:vE,NotEqual:gE,NotEqualTilde:bE,NotExists:yE,NotGreater:wE,NotGreaterEqual:kE,NotGreaterFullEqual:xE,NotGreaterGreater:CE,NotGreaterLess:OE,NotGreaterSlantEqual:SE,NotGreaterTilde:TE,NotHumpDownHump:EE,NotHumpEqual:_E,notin:ME,notindot:IE,notinE:jE,notinva:DE,notinvb:NE,notinvc:AE,NotLeftTriangleBar:LE,NotLeftTriangle:PE,NotLeftTriangleEqual:BE,NotLess:FE,NotLessEqual:RE,NotLessGreater:qE,NotLessLess:HE,NotLessSlantEqual:UE,NotLessTilde:VE,NotNestedGreaterGreater:zE,NotNestedLessLess:$E,notni:WE,notniva:GE,notnivb:KE,notnivc:JE,NotPrecedes:YE,NotPrecedesEqual:XE,NotPrecedesSlantEqual:QE,NotReverseElement:ZE,NotRightTriangleBar:e_,NotRightTriangle:t_,NotRightTriangleEqual:n_,NotSquareSubset:r_,NotSquareSubsetEqual:i_,NotSquareSuperset:o_,NotSquareSupersetEqual:a_,NotSubset:s_,NotSubsetEqual:c_,NotSucceeds:l_,NotSucceedsEqual:u_,NotSucceedsSlantEqual:d_,NotSucceedsTilde:f_,NotSuperset:p_,NotSupersetEqual:h_,NotTilde:m_,NotTildeEqual:v_,NotTildeFullEqual:g_,NotTildeTilde:b_,NotVerticalBar:y_,nparallel:w_,npar:k_,nparsl:x_,npart:C_,npolint:O_,npr:S_,nprcue:T_,nprec:E_,npreceq:__,npre:M_,nrarrc:I_,nrarr:j_,nrArr:D_,nrarrw:N_,nrightarrow:A_,nRightarrow:L_,nrtri:P_,nrtrie:B_,nsc:F_,nsccue:R_,nsce:q_,Nscr:H_,nscr:U_,nshortmid:V_,nshortparallel:z_,nsim:$_,nsime:W_,nsimeq:G_,nsmid:K_,nspar:J_,nsqsube:Y_,nsqsupe:X_,nsub:Q_,nsubE:Z_,nsube:eM,nsubset:tM,nsubseteq:nM,nsubseteqq:rM,nsucc:iM,nsucceq:oM,nsup:aM,nsupE:sM,nsupe:cM,nsupset:lM,nsupseteq:uM,nsupseteqq:dM,ntgl:fM,Ntilde:pM,ntilde:hM,ntlg:mM,ntriangleleft:vM,ntrianglelefteq:gM,ntriangleright:bM,ntrianglerighteq:yM,Nu:wM,nu:kM,num:xM,numero:CM,numsp:OM,nvap:SM,nvdash:TM,nvDash:EM,nVdash:_M,nVDash:MM,nvge:IM,nvgt:jM,nvHarr:DM,nvinfin:NM,nvlArr:AM,nvle:LM,nvlt:PM,nvltrie:BM,nvrArr:FM,nvrtrie:RM,nvsim:qM,nwarhk:HM,nwarr:UM,nwArr:VM,nwarrow:zM,nwnear:$M,Oacute:WM,oacute:GM,oast:KM,Ocirc:JM,ocirc:YM,ocir:XM,Ocy:QM,ocy:ZM,odash:eI,Odblac:tI,odblac:nI,odiv:rI,odot:iI,odsold:oI,OElig:aI,oelig:sI,ofcir:cI,Ofr:lI,ofr:uI,ogon:dI,Ograve:fI,ograve:pI,ogt:hI,ohbar:mI,ohm:vI,oint:gI,olarr:bI,olcir:yI,olcross:wI,oline:kI,olt:xI,Omacr:CI,omacr:OI,Omega:SI,omega:TI,Omicron:EI,omicron:_I,omid:MI,ominus:II,Oopf:jI,oopf:DI,opar:NI,OpenCurlyDoubleQuote:AI,OpenCurlyQuote:LI,operp:PI,oplus:BI,orarr:FI,Or:RI,or:qI,ord:HI,order:UI,orderof:VI,ordf:zI,ordm:$I,origof:WI,oror:GI,orslope:KI,orv:JI,oS:YI,Oscr:XI,oscr:QI,Oslash:ZI,oslash:ej,osol:tj,Otilde:nj,otilde:rj,otimesas:ij,Otimes:oj,otimes:aj,Ouml:sj,ouml:cj,ovbar:lj,OverBar:uj,OverBrace:dj,OverBracket:fj,OverParenthesis:pj,para:hj,parallel:mj,par:vj,parsim:gj,parsl:bj,part:yj,PartialD:wj,Pcy:kj,pcy:xj,percnt:Cj,period:Oj,permil:Sj,perp:Tj,pertenk:Ej,Pfr:_j,pfr:Mj,Phi:Ij,phi:jj,phiv:Dj,phmmat:Nj,phone:Aj,Pi:Lj,pi:Pj,pitchfork:Bj,piv:Fj,planck:Rj,planckh:qj,plankv:Hj,plusacir:Uj,plusb:Vj,pluscir:zj,plus:$j,plusdo:Wj,plusdu:Gj,pluse:Kj,PlusMinus:Jj,plusmn:Yj,plussim:Xj,plustwo:Qj,pm:Zj,Poincareplane:eD,pointint:tD,popf:nD,Popf:rD,pound:iD,prap:oD,Pr:aD,pr:sD,prcue:cD,precapprox:lD,prec:uD,preccurlyeq:dD,Precedes:fD,PrecedesEqual:pD,PrecedesSlantEqual:hD,PrecedesTilde:mD,preceq:vD,precnapprox:gD,precneqq:bD,precnsim:yD,pre:wD,prE:kD,precsim:xD,prime:CD,Prime:OD,primes:SD,prnap:TD,prnE:ED,prnsim:_D,prod:MD,Product:ID,profalar:jD,profline:DD,profsurf:ND,prop:AD,Proportional:LD,Proportion:PD,propto:BD,prsim:FD,prurel:RD,Pscr:qD,pscr:HD,Psi:UD,psi:VD,puncsp:zD,Qfr:$D,qfr:WD,qint:GD,qopf:KD,Qopf:JD,qprime:YD,Qscr:XD,qscr:QD,quaternions:ZD,quatint:eN,quest:tN,questeq:nN,quot:rN,QUOT:iN,rAarr:oN,race:aN,Racute:sN,racute:cN,radic:lN,raemptyv:uN,rang:dN,Rang:fN,rangd:pN,range:hN,rangle:mN,raquo:vN,rarrap:gN,rarrb:bN,rarrbfs:yN,rarrc:wN,rarr:kN,Rarr:xN,rArr:CN,rarrfs:ON,rarrhk:SN,rarrlp:TN,rarrpl:EN,rarrsim:_N,Rarrtl:MN,rarrtl:IN,rarrw:jN,ratail:DN,rAtail:NN,ratio:AN,rationals:LN,rbarr:PN,rBarr:BN,RBarr:FN,rbbrk:RN,rbrace:qN,rbrack:HN,rbrke:UN,rbrksld:VN,rbrkslu:zN,Rcaron:$N,rcaron:WN,Rcedil:GN,rcedil:KN,rceil:JN,rcub:YN,Rcy:XN,rcy:QN,rdca:ZN,rdldhar:eA,rdquo:tA,rdquor:nA,rdsh:rA,real:iA,realine:oA,realpart:aA,reals:sA,Re:cA,rect:lA,reg:uA,REG:dA,ReverseElement:fA,ReverseEquilibrium:pA,ReverseUpEquilibrium:hA,rfisht:mA,rfloor:vA,rfr:gA,Rfr:bA,rHar:yA,rhard:wA,rharu:kA,rharul:xA,Rho:CA,rho:OA,rhov:SA,RightAngleBracket:TA,RightArrowBar:EA,rightarrow:_A,RightArrow:MA,Rightarrow:IA,RightArrowLeftArrow:jA,rightarrowtail:DA,RightCeiling:NA,RightDoubleBracket:AA,RightDownTeeVector:LA,RightDownVectorBar:PA,RightDownVector:BA,RightFloor:FA,rightharpoondown:RA,rightharpoonup:qA,rightleftarrows:HA,rightleftharpoons:UA,rightrightarrows:VA,rightsquigarrow:zA,RightTeeArrow:$A,RightTee:WA,RightTeeVector:GA,rightthreetimes:KA,RightTriangleBar:JA,RightTriangle:YA,RightTriangleEqual:XA,RightUpDownVector:QA,RightUpTeeVector:ZA,RightUpVectorBar:eL,RightUpVector:tL,RightVectorBar:nL,RightVector:rL,ring:iL,risingdotseq:oL,rlarr:aL,rlhar:sL,rlm:cL,rmoustache:lL,rmoust:uL,rnmid:dL,roang:fL,roarr:pL,robrk:hL,ropar:mL,ropf:vL,Ropf:gL,roplus:bL,rotimes:yL,RoundImplies:wL,rpar:kL,rpargt:xL,rppolint:CL,rrarr:OL,Rrightarrow:SL,rsaquo:TL,rscr:EL,Rscr:_L,rsh:ML,Rsh:IL,rsqb:jL,rsquo:DL,rsquor:NL,rthree:AL,rtimes:LL,rtri:PL,rtrie:BL,rtrif:FL,rtriltri:RL,RuleDelayed:qL,ruluhar:HL,rx:UL,Sacute:VL,sacute:zL,sbquo:$L,scap:WL,Scaron:GL,scaron:KL,Sc:JL,sc:YL,sccue:XL,sce:QL,scE:ZL,Scedil:eP,scedil:tP,Scirc:nP,scirc:rP,scnap:iP,scnE:oP,scnsim:aP,scpolint:sP,scsim:cP,Scy:lP,scy:uP,sdotb:dP,sdot:fP,sdote:pP,searhk:hP,searr:mP,seArr:vP,searrow:gP,sect:bP,semi:yP,seswar:wP,setminus:kP,setmn:xP,sext:CP,Sfr:OP,sfr:SP,sfrown:TP,sharp:EP,SHCHcy:_P,shchcy:MP,SHcy:IP,shcy:jP,ShortDownArrow:DP,ShortLeftArrow:NP,shortmid:AP,shortparallel:LP,ShortRightArrow:PP,ShortUpArrow:BP,shy:FP,Sigma:RP,sigma:qP,sigmaf:HP,sigmav:UP,sim:VP,simdot:zP,sime:$P,simeq:WP,simg:GP,simgE:KP,siml:JP,simlE:YP,simne:XP,simplus:QP,simrarr:ZP,slarr:eB,SmallCircle:tB,smallsetminus:nB,smashp:rB,smeparsl:iB,smid:oB,smile:aB,smt:sB,smte:cB,smtes:lB,SOFTcy:uB,softcy:dB,solbar:fB,solb:pB,sol:hB,Sopf:mB,sopf:vB,spades:gB,spadesuit:bB,spar:yB,sqcap:wB,sqcaps:kB,sqcup:xB,sqcups:CB,Sqrt:OB,sqsub:SB,sqsube:TB,sqsubset:EB,sqsubseteq:_B,sqsup:MB,sqsupe:IB,sqsupset:jB,sqsupseteq:DB,square:NB,Square:AB,SquareIntersection:LB,SquareSubset:PB,SquareSubsetEqual:BB,SquareSuperset:FB,SquareSupersetEqual:RB,SquareUnion:qB,squarf:HB,squ:UB,squf:VB,srarr:zB,Sscr:$B,sscr:WB,ssetmn:GB,ssmile:KB,sstarf:JB,Star:YB,star:XB,starf:QB,straightepsilon:ZB,straightphi:eF,strns:tF,sub:nF,Sub:rF,subdot:iF,subE:oF,sube:aF,subedot:sF,submult:cF,subnE:lF,subne:uF,subplus:dF,subrarr:fF,subset:pF,Subset:hF,subseteq:mF,subseteqq:vF,SubsetEqual:gF,subsetneq:bF,subsetneqq:yF,subsim:wF,subsub:kF,subsup:xF,succapprox:CF,succ:OF,succcurlyeq:SF,Succeeds:TF,SucceedsEqual:EF,SucceedsSlantEqual:_F,SucceedsTilde:MF,succeq:IF,succnapprox:jF,succneqq:DF,succnsim:NF,succsim:AF,SuchThat:LF,sum:PF,Sum:BF,sung:FF,sup1:RF,sup2:qF,sup3:HF,sup:UF,Sup:VF,supdot:zF,supdsub:$F,supE:WF,supe:GF,supedot:KF,Superset:JF,SupersetEqual:YF,suphsol:XF,suphsub:QF,suplarr:ZF,supmult:eR,supnE:tR,supne:nR,supplus:rR,supset:iR,Supset:oR,supseteq:aR,supseteqq:sR,supsetneq:cR,supsetneqq:lR,supsim:uR,supsub:dR,supsup:fR,swarhk:pR,swarr:hR,swArr:mR,swarrow:vR,swnwar:gR,szlig:bR,Tab:yR,target:wR,Tau:kR,tau:xR,tbrk:CR,Tcaron:OR,tcaron:SR,Tcedil:TR,tcedil:ER,Tcy:_R,tcy:MR,tdot:IR,telrec:jR,Tfr:DR,tfr:NR,there4:AR,therefore:LR,Therefore:PR,Theta:BR,theta:FR,thetasym:RR,thetav:qR,thickapprox:HR,thicksim:UR,ThickSpace:VR,ThinSpace:zR,thinsp:$R,thkap:WR,thksim:GR,THORN:KR,thorn:JR,tilde:YR,Tilde:XR,TildeEqual:QR,TildeFullEqual:ZR,TildeTilde:eq,timesbar:tq,timesb:nq,times:rq,timesd:iq,tint:oq,toea:aq,topbot:sq,topcir:cq,top:lq,Topf:uq,topf:dq,topfork:fq,tosa:pq,tprime:hq,trade:mq,TRADE:vq,triangle:gq,triangledown:bq,triangleleft:yq,trianglelefteq:wq,triangleq:kq,triangleright:xq,trianglerighteq:Cq,tridot:Oq,trie:Sq,triminus:Tq,TripleDot:Eq,triplus:_q,trisb:Mq,tritime:Iq,trpezium:jq,Tscr:Dq,tscr:Nq,TScy:Aq,tscy:Lq,TSHcy:Pq,tshcy:Bq,Tstrok:Fq,tstrok:Rq,twixt:qq,twoheadleftarrow:Hq,twoheadrightarrow:Uq,Uacute:Vq,uacute:zq,uarr:$q,Uarr:Wq,uArr:Gq,Uarrocir:Kq,Ubrcy:Jq,ubrcy:Yq,Ubreve:Xq,ubreve:Qq,Ucirc:Zq,ucirc:eH,Ucy:tH,ucy:nH,udarr:rH,Udblac:iH,udblac:oH,udhar:aH,ufisht:sH,Ufr:cH,ufr:lH,Ugrave:uH,ugrave:dH,uHar:fH,uharl:pH,uharr:hH,uhblk:mH,ulcorn:vH,ulcorner:gH,ulcrop:bH,ultri:yH,Umacr:wH,umacr:kH,uml:xH,UnderBar:CH,UnderBrace:OH,UnderBracket:SH,UnderParenthesis:TH,Union:EH,UnionPlus:_H,Uogon:MH,uogon:IH,Uopf:jH,uopf:DH,UpArrowBar:NH,uparrow:AH,UpArrow:LH,Uparrow:PH,UpArrowDownArrow:BH,updownarrow:FH,UpDownArrow:RH,Updownarrow:qH,UpEquilibrium:HH,upharpoonleft:UH,upharpoonright:VH,uplus:zH,UpperLeftArrow:$H,UpperRightArrow:WH,upsi:GH,Upsi:KH,upsih:JH,Upsilon:YH,upsilon:XH,UpTeeArrow:QH,UpTee:ZH,upuparrows:eU,urcorn:tU,urcorner:nU,urcrop:rU,Uring:iU,uring:oU,urtri:aU,Uscr:sU,uscr:cU,utdot:lU,Utilde:uU,utilde:dU,utri:fU,utrif:pU,uuarr:hU,Uuml:mU,uuml:vU,uwangle:gU,vangrt:bU,varepsilon:yU,varkappa:wU,varnothing:kU,varphi:xU,varpi:CU,varpropto:OU,varr:SU,vArr:TU,varrho:EU,varsigma:_U,varsubsetneq:MU,varsubsetneqq:IU,varsupsetneq:jU,varsupsetneqq:DU,vartheta:NU,vartriangleleft:AU,vartriangleright:LU,vBar:PU,Vbar:BU,vBarv:FU,Vcy:RU,vcy:qU,vdash:HU,vDash:UU,Vdash:VU,VDash:zU,Vdashl:$U,veebar:WU,vee:GU,Vee:KU,veeeq:JU,vellip:YU,verbar:XU,Verbar:QU,vert:ZU,Vert:eV,VerticalBar:tV,VerticalLine:nV,VerticalSeparator:rV,VerticalTilde:iV,VeryThinSpace:oV,Vfr:aV,vfr:sV,vltri:cV,vnsub:lV,vnsup:uV,Vopf:dV,vopf:fV,vprop:pV,vrtri:hV,Vscr:mV,vscr:vV,vsubnE:gV,vsubne:bV,vsupnE:yV,vsupne:wV,Vvdash:kV,vzigzag:xV,Wcirc:CV,wcirc:OV,wedbar:SV,wedge:TV,Wedge:EV,wedgeq:_V,weierp:MV,Wfr:IV,wfr:jV,Wopf:DV,wopf:NV,wp:AV,wr:LV,wreath:PV,Wscr:BV,wscr:FV,xcap:RV,xcirc:qV,xcup:HV,xdtri:UV,Xfr:VV,xfr:zV,xharr:$V,xhArr:WV,Xi:GV,xi:KV,xlarr:JV,xlArr:YV,xmap:XV,xnis:QV,xodot:ZV,Xopf:ez,xopf:tz,xoplus:nz,xotime:rz,xrarr:iz,xrArr:oz,Xscr:az,xscr:sz,xsqcup:cz,xuplus:lz,xutri:uz,xvee:dz,xwedge:fz,Yacute:pz,yacute:hz,YAcy:mz,yacy:vz,Ycirc:gz,ycirc:bz,Ycy:yz,ycy:wz,yen:kz,Yfr:xz,yfr:Cz,YIcy:Oz,yicy:Sz,Yopf:Tz,yopf:Ez,Yscr:_z,yscr:Mz,YUcy:Iz,yucy:jz,yuml:Dz,Yuml:Nz,Zacute:Az,zacute:Lz,Zcaron:Pz,zcaron:Bz,Zcy:Fz,zcy:Rz,Zdot:qz,zdot:Hz,zeetrf:Uz,ZeroWidthSpace:Vz,Zeta:zz,zeta:$z,zfr:Wz,Zfr:Gz,ZHcy:Kz,zhcy:Jz,zigrarr:Yz,zopf:Xz,Zopf:Qz,Zscr:Zz,zscr:e$,zwj:t$,zwnj:n$},i$="Á",o$="á",a$="Â",s$="â",c$="´",l$="Æ",u$="æ",d$="À",f$="à",p$="&",h$="&",m$="Å",v$="å",g$="Ã",b$="ã",y$="Ä",w$="ä",k$="¦",x$="Ç",C$="ç",O$="¸",S$="¢",T$="©",E$="©",_$="¤",M$="°",I$="÷",j$="É",D$="é",N$="Ê",A$="ê",L$="È",P$="è",B$="Ð",F$="ð",R$="Ë",q$="ë",H$="½",U$="¼",V$="¾",z$=">",$$=">",W$="Í",G$="í",K$="Î",J$="î",Y$="¡",X$="Ì",Q$="ì",Z$="¿",eW="Ï",tW="ï",nW="«",rW="<",iW="<",oW="¯",aW="µ",sW="·",cW=" ",lW="¬",uW="Ñ",dW="ñ",fW="Ó",pW="ó",hW="Ô",mW="ô",vW="Ò",gW="ò",bW="ª",yW="º",wW="Ø",kW="ø",xW="Õ",CW="õ",OW="Ö",SW="ö",TW="¶",EW="±",_W="£",MW='"',IW='"',jW="»",DW="®",NW="®",AW="§",LW="­",PW="¹",BW="²",FW="³",RW="ß",qW="Þ",HW="þ",UW="×",VW="Ú",zW="ú",$W="Û",WW="û",GW="Ù",KW="ù",JW="¨",YW="Ü",XW="ü",QW="Ý",ZW="ý",eG="¥",tG="ÿ",nG={Aacute:i$,aacute:o$,Acirc:a$,acirc:s$,acute:c$,AElig:l$,aelig:u$,Agrave:d$,agrave:f$,amp:p$,AMP:h$,Aring:m$,aring:v$,Atilde:g$,atilde:b$,Auml:y$,auml:w$,brvbar:k$,Ccedil:x$,ccedil:C$,cedil:O$,cent:S$,copy:T$,COPY:E$,curren:_$,deg:M$,divide:I$,Eacute:j$,eacute:D$,Ecirc:N$,ecirc:A$,Egrave:L$,egrave:P$,ETH:B$,eth:F$,Euml:R$,euml:q$,frac12:H$,frac14:U$,frac34:V$,gt:z$,GT:$$,Iacute:W$,iacute:G$,Icirc:K$,icirc:J$,iexcl:Y$,Igrave:X$,igrave:Q$,iquest:Z$,Iuml:eW,iuml:tW,laquo:nW,lt:rW,LT:iW,macr:oW,micro:aW,middot:sW,nbsp:cW,not:lW,Ntilde:uW,ntilde:dW,Oacute:fW,oacute:pW,Ocirc:hW,ocirc:mW,Ograve:vW,ograve:gW,ordf:bW,ordm:yW,Oslash:wW,oslash:kW,Otilde:xW,otilde:CW,Ouml:OW,ouml:SW,para:TW,plusmn:EW,pound:_W,quot:MW,QUOT:IW,raquo:jW,reg:DW,REG:NW,sect:AW,shy:LW,sup1:PW,sup2:BW,sup3:FW,szlig:RW,THORN:qW,thorn:HW,times:UW,Uacute:VW,uacute:zW,Ucirc:$W,ucirc:WW,Ugrave:GW,ugrave:KW,uml:JW,Uuml:YW,uuml:XW,Yacute:QW,yacute:ZW,yen:eG,yuml:tG},rG="&",iG="'",oG=">",aG="<",sG='"',cG={amp:rG,apos:iG,gt:oG,lt:aG,quot:sG},lG={},uG={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},dG=Do&&Do.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lG,"__esModule",{value:!0});var fG=dG(uG),pG=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function hG(e){return e>=55296&&e<=57343||e>1114111?"�":(e in fG.default&&(e=fG.default[e]),pG(e))}lG.default=hG;var mG=Do&&Do.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.decodeHTML=Fo.decodeHTMLStrict=Fo.decodeXML=void 0;var vG=mG(r$),gG=mG(nG),bG=mG(cG),yG=mG(lG),wG=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function kG(e){var t=CG(e);return function(e){return String(e).replace(wG,t)}}Fo.decodeXML=kG(bG.default),Fo.decodeHTMLStrict=kG(vG.default);var xG=function(e,t){return e<t?1:-1};function CG(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?yG.default(parseInt(t.substr(3),16)):yG.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}Fo.decodeHTML=function(){for(var e=Object.keys(gG.default).sort(xG),t=Object.keys(vG.default).sort(xG),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),o=CG(vG.default);function a(e){return";"!==e.substr(-1)&&(e+=";"),o(e)}return function(e){return String(e).replace(i,a)}}();var OG={},SG=Do&&Do.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OG,"__esModule",{value:!0}),OG.escapeUTF8=OG.escape=OG.encodeNonAsciiHTML=OG.encodeHTML=OG.encodeXML=void 0;var TG=SG(cG),EG=DG(TG.default),_G=NG(EG);OG.encodeXML=HG(EG);var MG=SG(r$),IG=DG(MG.default),jG=NG(IG);function DG(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function NG(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];1===o.length?t.push("\\"+o):n.push(o)}t.sort();for(var a=0;a<t.length-1;a++){var s=a;while(s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1))s+=1;var c=1+s-a;c<3||t.splice(a,c,t[a]+"-"+t[s])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}OG.encodeHTML=BG(IG,jG),OG.encodeNonAsciiHTML=HG(IG);var AG=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,LG=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function PG(e){return"&#x"+(e.length>1?LG(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function BG(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(AG,PG)}}var FG=new RegExp(_G.source+"|"+AG.source,"g");function RG(e){return e.replace(FG,PG)}function qG(e){return e.replace(_G,PG)}function HG(e){return function(t){return t.replace(FG,(function(t){return e[t]||PG(t)}))}}OG.escape=RG,OG.escapeUTF8=qG,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Fo,n=OG;function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}function o(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.decode=r,e.decodeStrict=i,e.encode=o;var a=OG;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=Fo;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}(Bo);var UG="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",VG=92,zG=/[\\&]/,$G="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",WG=new RegExp("\\\\"+$G+"|"+UG,"gi"),GG='[&<>"]',KG=new RegExp(GG,"g"),JG=function(e){return e.charCodeAt(0)===VG?e.charAt(1):Bo.decodeHTML(e)};function YG(e){return zG.test(e)?e.replace(WG,JG):e}function XG(e){try{return Po(e)}catch(t){return e}}function QG(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return e}}function ZG(e){return KG.test(e)?e.replace(KG,QG):e}function eK(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n.join("")}function tK(e){return!e||!/[^ \t]+/.test(e)}var nK=function(){function e(e){this.current=e,this.root=e,this.entering=!0}return e.prototype.next=function(){var e=this.current,t=this.entering;if(null===e)return null;var n=rK(e);return t&&n?e.firstChild?(this.current=e.firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e.next?(this.current=e.parent,this.entering=!1):(this.current=e.next,this.entering=!0),{entering:t,node:e}},e.prototype.resumeAt=function(e,t){this.current=e,this.entering=!0===t},e}();function rK(e){switch(e.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}var iK=1,oK={};function aK(e){return oK[e]}function sK(e){delete oK[e]}function cK(){oK={}}var lK=function(){function e(e,t){this.parent=null,this.prev=null,this.next=null,this.firstChild=null,this.lastChild=null,this.literal=null,this.id="document"===e?-1:iK++,this.type=e,this.sourcepos=t,oK[this.id]=this}return e.prototype.isContainer=function(){return rK(this)},e.prototype.unlink=function(){this.prev?this.prev.next=this.next:this.parent&&(this.parent.firstChild=this.next),this.next?this.next.prev=this.prev:this.parent&&(this.parent.lastChild=this.prev),this.parent=null,this.next=null,this.prev=null},e.prototype.replaceWith=function(e){this.insertBefore(e),this.unlink()},e.prototype.insertAfter=function(e){e.unlink(),e.next=this.next,e.next&&(e.next.prev=e),e.prev=this,this.next=e,this.parent&&(e.parent=this.parent,e.next||(e.parent.lastChild=e))},e.prototype.insertBefore=function(e){e.unlink(),e.prev=this.prev,e.prev&&(e.prev.next=e),e.next=this,this.prev=e,e.parent=this.parent,e.prev||(e.parent.firstChild=e)},e.prototype.appendChild=function(e){e.unlink(),e.parent=this,this.lastChild?(this.lastChild.next=e,e.prev=this.lastChild,this.lastChild=e):(this.firstChild=e,this.lastChild=e)},e.prototype.prependChild=function(e){e.unlink(),e.parent=this,this.firstChild?(this.firstChild.prev=e,e.next=this.firstChild,this.firstChild=e):(this.firstChild=e,this.lastChild=e)},e.prototype.walker=function(){return new nK(this)},e}(),uK=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.open=!0,r.lineOffsets=null,r.stringContent=null,r.lastLineBlank=!1,r.lastLineChecked=!1,r.type=t,r}return Mo(t,e),t}(lK),dK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.listData=null,t}return Mo(t,e),t}(uK),fK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.level=0,t.headingType="atx",t}return Mo(t,e),t}(uK),pK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isFenced=!1,t.fenceChar=null,t.fenceLength=0,t.fenceOffset=-1,t.info=null,t.infoPadding=0,t}return Mo(t,e),t}(uK),hK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.columns=[],t}return Mo(t,e),t}(uK),mK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startIdx=0,t.endIdx=0,t.paddingLeft=0,t.paddingRight=0,t.ignored=!1,t}return Mo(t,e),t}(uK),vK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="",t.dest="",t.label="",t}return Mo(t,e),t}(uK),gK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.syntaxLength=0,t.offset=-1,t.info="",t}return Mo(t,e),t}(uK),bK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.htmlBlockType=-1,t}return Mo(t,e),t}(uK),yK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destination=null,t.title=null,t.extendedAutolink=!1,t}return Mo(t,e),t}(lK),wK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tickCount=0,t}return Mo(t,e),t}(lK),kK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.info="",t}return Mo(t,e),t}(lK);function xK(e,t){switch(e){case"heading":return new fK(e,t);case"list":case"item":return new dK(e,t);case"link":case"image":return new yK(e,t);case"codeBlock":return new pK(e,t);case"htmlBlock":return new bK(e,t);case"table":return new hK(e,t);case"tableCell":return new mK(e,t);case"document":case"paragraph":case"blockQuote":case"thematicBreak":case"tableRow":case"tableBody":case"tableHead":case"frontMatter":return new uK(e,t);case"code":return new wK(e,t);case"refDef":return new vK(e,t);case"customBlock":return new gK(e,t);case"customInline":return new kK(e,t);default:return new lK(e,t)}}function CK(e){return"codeBlock"===e.type}function OK(e){return"htmlBlock"===e.type}function SK(e){return"heading"===e.type}function TK(e){return"list"===e.type}function EK(e){return"table"===e.type}function _K(e){return"refDef"===e.type}function MK(e){return"customBlock"===e.type}function IK(e){return"customInline"===e.type}function jK(e,t){var n=xK("text",t);return n.literal=e,n}var DK,NK="[A-Za-z][A-Za-z0-9-]*",AK="[a-zA-Z_:][a-zA-Z0-9:._-]*",LK="[^\"'=<>`\\x00-\\x20]+",PK="'[^']*'",BK='"[^"]*"',FK="(?:"+LK+"|"+PK+"|"+BK+")",RK="(?:\\s*=\\s*"+FK+")",qK="(?:\\s+"+AK+RK+"?)",HK="<"+NK+qK+"*\\s*/?>",UK="</"+NK+"\\s*[>]",VK="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",zK="[<][?].*?[?][>]",$K="<![A-Z]+\\s+[^>]*>",WK="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",GK="(?:"+HK+"|"+UK+"|"+VK+"|"+zK+"|"+$K+"|"+WK+")",KK=new RegExp("^"+GK,"i");if(String.fromCodePoint)DK=function(e){try{return String.fromCodePoint(e)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t}};else{var JK=String.fromCharCode,YK=Math.floor;DK=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,i=16384,o=[],a=-1,s=e.length;if(!s)return"";var c="";while(++a<s){var l=Number(e[a]);if(!isFinite(l)||l<0||l>1114111||YK(l)!==l)return String.fromCharCode(65533);l<=65535?o.push(l):(l-=65536,n=55296+(l>>10),r=l%1024+56320,o.push(n,r)),(a+1===s||o.length>i)&&(c+=JK.apply(void 0,o),o.length=0)}return c}}var XK=DK,QK="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",ZK="[^<\\s]*[^<?!.,:*_?~\\s]",eJ="[\\w.+-]+@(?:[\\w-]+\\.)+[\\w-]+";function tJ(e){var t=/\)+$/.exec(e);if(t){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];"("===o?n<0?n=1:n+=1:")"===o&&(n-=1)}if(n<0){var a=Math.min(-n,t[0].length);return e.substring(0,e.length-a)}}return e}function nJ(e){return e.replace(/&[A-Za-z0-9]+;$/,"")}function rJ(e){var t,n=new RegExp(eJ,"g"),r=[];while(t=n.exec(e)){var i=t[0];/[_-]+$/.test(i)||r.push({text:i,range:[t.index,t.index+i.length-1],url:"mailto:"+i})}return r}function iJ(e){var t,n=new RegExp("(www|https?://)."+QK+ZK,"g"),r=[];while(t=n.exec(e)){var i=nJ(tJ(t[0])),o="www"===t[1]?"http://":"";r.push({text:i,range:[t.index,t.index+i.length-1],url:""+o+i})}return r}function oJ(e){return jo(jo([],iJ(e)),rJ(e)).sort((function(e,t){return e.range[0]-t.range[0]}))}function aJ(e,t){var n;"boolean"===typeof t&&(t=oJ);var r=function(){var e=n.entering,r=n.node;if(e&&"text"===r.type&&"link"!==r.parent.type){var i=r.literal,o=t(i);if(!o||!o.length)return"continue";for(var a=0,s=r.sourcepos[0],c=s[0],l=s[1],u=function(e,t){return[[c,l+e],[c,l+t]]},d=[],f=0,p=o;f<p.length;f++){var h=p[f],m=h.range,v=h.url,g=h.text;m[0]>a&&d.push(jK(i.substring(a,m[0]),u(a,m[0]-1)));var b=xK("link",u.apply(void 0,m));b.appendChild(jK(g,u.apply(void 0,m))),b.destination=v,b.extendedAutolink=!0,d.push(b),a=m[1]+1}a<i.length&&d.push(jK(i.substring(a),u(a,i.length-1)));for(var y=0,w=d;y<w.length;y++){var k=w[y];r.insertBefore(k)}r.unlink()}};while(n=e.next())r()}function sJ(e){return e[e.length-1]}function cJ(e){return e.slice(1,e.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()}function lJ(e,t){Object.keys(e).forEach((function(n){t(n,e[n])}))}function uJ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Io({},e);return t.forEach((function(e){delete r[e]})),r}function dJ(e){return!Object.keys(e).length}function fJ(e){Object.keys(e).forEach((function(t){delete e[t]}))}var pJ=10,hJ=42,mJ=95,vJ=96,gJ=91,bJ=93,yJ=126,wJ=60,kJ=33,xJ=92,CJ=38,OJ=40,SJ=41,TJ=58,EJ=39,_J=34,MJ=36,IJ="\\\\"+$G,jJ=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\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\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-\u2E42\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[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),DJ=new RegExp('^(?:"('+IJ+'|[^"\\x00])*"|\'('+IJ+"|[^'\\x00])*'|\\(("+IJ+"|[^()\\x00])*\\))"),NJ=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,AJ=new RegExp("^"+$G),LJ=new RegExp("^"+UG,"i"),PJ=/`+/,BJ=/^`+/,FJ=/\.\.\./g,RJ=/--+/g,qJ=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,HJ=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,UJ=/^ *(?:\n *)?/,VJ=/^[ \t\n\x0b\x0c\x0d]/,zJ=/^\s/,$J=/ *$/,WJ=/^ */,GJ=/^ *(?:\n|$)/,KJ=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,JJ=/^[^\n`\[\]\\!<&*_'"~$]+/m,YJ=function(){function e(e){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=e}return e.prototype.sourcepos=function(e,t){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],r=this.lineStartNum+this.lineIdx,i=[r,e+n];return"number"===typeof t?[i,[r,t+n]]:i},e.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},e.prototype.match=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},e.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},e.prototype.spnl=function(){return this.match(UJ),!0},e.prototype.parseBackticks=function(e){var t=this.pos+1,n=this.match(BJ);if(null===n)return!1;var r,i=this.pos;while(null!==(r=this.match(PJ)))if(r===n){var o=this.subject.slice(i,this.pos-n.length),a=this.sourcepos(t,this.pos),s=o.split("\n");if(s.length>1){var c=sJ(s);this.lineIdx+=s.length-1,this.linePosOffset=-(this.pos-c.length-n.length),a[1]=this.sourcepos(this.pos),o=s.join(" ")}var l=xK("code",a);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?l.literal=o.slice(1,o.length-1):l.literal=o,l.tickCount=n.length,e.appendChild(l),!0}return this.pos=i,e.appendChild(jK(n,this.sourcepos(t,this.pos-1))),!0},e.prototype.parseBackslash=function(e){var t,n=this.subject;this.pos+=1;var r=this.pos;return this.peek()===pJ?(this.pos+=1,t=xK("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(t),this.nextLine()):AJ.test(n.charAt(this.pos))?(e.appendChild(jK(n.charAt(this.pos),this.sourcepos(r,this.pos))),this.pos+=1):e.appendChild(jK("\\",this.sourcepos(r,r))),!0},e.prototype.parseAutolink=function(e){var t,n,r,i=this.pos+1;return(t=this.match(qJ))?(n=t.slice(1,t.length-1),r=xK("link",this.sourcepos(i,this.pos)),r.destination=XG("mailto:"+n),r.title="",r.appendChild(jK(n,this.sourcepos(i+1,this.pos-1))),e.appendChild(r),!0):!!(t=this.match(HJ))&&(n=t.slice(1,t.length-1),r=xK("link",this.sourcepos(i,this.pos)),r.destination=XG(n),r.title="",r.appendChild(jK(n,this.sourcepos(i+1,this.pos-1))),e.appendChild(r),!0)},e.prototype.parseHtmlTag=function(e){var t=this.pos+1,n=this.match(KK);if(null===n)return!1;var r=xK("htmlInline",this.sourcepos(t,this.pos));return r.literal=n,e.appendChild(r),!0},e.prototype.scanDelims=function(e){var t=0,n=this.pos;if(e===EJ||e===_J)t++,this.pos++;else while(this.peek()===e)t++,this.pos++;if(0===t||t<2&&(e===yJ||e===MJ))return this.pos=n,null;var r,i=0===n?"\n":this.subject.charAt(n-1),o=this.peek();r=-1===o?"\n":XK(o);var a,s,c=zJ.test(r),l=jJ.test(r),u=zJ.test(i),d=jJ.test(i),f=!c&&(!l||u||d),p=!u&&(!d||c||l);return e===mJ?(a=f&&(!p||d),s=p&&(!f||l)):e===EJ||e===_J?(a=f&&!p,s=p):e===MJ?(a=!c,s=!u):(a=f,s=p),this.pos=n,{numdelims:t,canOpen:a,canClose:s}},e.prototype.handleDelim=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var r,i=n.numdelims,o=this.pos+1;this.pos+=i,r=e===EJ?"’":e===_J?"“":this.subject.slice(o-1,this.pos);var a=jK(r,this.sourcepos(o,this.pos));return t.appendChild(a),(n.canOpen||n.canClose)&&(this.options.smart||e!==EJ&&e!==_J)&&(this.delimiters={cc:e,numdelims:i,origdelims:i,node:a,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},e.prototype.removeDelimiter=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},e.prototype.removeDelimitersBetween=function(e,t){e.next!==t&&(e.next=t,t.previous=e)},e.prototype.processEmphasis=function(e){var t,n,r,i,o,a,s,c=!1,l=(t={},t[mJ]=[e,e,e],t[hJ]=[e,e,e],t[EJ]=[e],t[_J]=[e],t[yJ]=[e],t[MJ]=[e],t);r=this.delimiters;while(null!==r&&r.previous!==e)r=r.previous;while(null!==r){var u=r.cc,d=u===mJ||u===hJ;if(r.canClose){n=r.previous,s=!1;while(null!==n&&n!==e&&n!==l[u][d?r.origdelims%3:0]){if(c=d&&(r.canOpen||n.canClose)&&r.origdelims%3!==0&&(n.origdelims+r.origdelims)%3===0,n.cc===r.cc&&n.canOpen&&!c){s=!0;break}n=n.previous}if(i=r,d||u===yJ||u===MJ)if(s){if(n){var f=r.numdelims>=2&&n.numdelims>=2?2:1,p=d?0:1;o=n.node,a=r.node;var h=d?1===f?"emph":"strong":"strike";u===MJ&&(h="customInline");var m=xK(h),v=o.sourcepos[1],g=a.sourcepos[0];m.sourcepos=[[v[0],v[1]-f+1],[g[0],g[1]+f-1]],o.sourcepos[1][1]-=f,a.sourcepos[0][1]+=f,o.literal=o.literal.slice(f),a.literal=a.literal.slice(f),n.numdelims-=f,r.numdelims-=f;var b=o.next,y=void 0;while(b&&b!==a)y=b.next,b.unlink(),m.appendChild(b),b=y;if(u===MJ){var w=m.firstChild,k=w.literal||"",x=k.split(/\s/)[0];m.info=x,k.length<=x.length?w.unlink():(w.sourcepos[0][1]+=x.length,w.literal=k.replace(x+" ",""))}if(o.insertAfter(m),this.removeDelimitersBetween(n,r),n.numdelims<=p&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),r.numdelims<=p){0===r.numdelims&&a.unlink();var C=r.next;this.removeDelimiter(r),r=C}}}else r=r.next;else u===EJ?(r.node.literal="’",s&&(n.node.literal="‘"),r=r.next):u===_J&&(r.node.literal="”",s&&(n.node.literal="“"),r=r.next);s||(l[u][d?i.origdelims%3:0]=i.previous,i.canOpen||this.removeDelimiter(i))}else r=r.next}while(null!==this.delimiters&&this.delimiters!==e)this.removeDelimiter(this.delimiters)},e.prototype.parseLinkTitle=function(){var e=this.match(DJ);return null===e?null:YG(e.substr(1,e.length-2))},e.prototype.parseLinkDestination=function(){var e=this.match(NJ);if(null===e){if(this.peek()===wJ)return null;var t=this.pos,n=0,r=void 0;while(-1!==(r=this.peek()))if(r===xJ&&AJ.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(r===OJ)this.pos+=1,n+=1;else if(r===SJ){if(n<1)break;this.pos+=1,n-=1}else{if(null!==VJ.exec(XK(r)))break;this.pos+=1}return this.pos===t&&r!==SJ?null:0!==n?null:(e=this.subject.substr(t,this.pos-t),XG(YG(e)))}return XG(YG(e.substr(1,e.length-2)))},e.prototype.parseLinkLabel=function(){var e=this.match(KJ);return null===e||e.length>1001?0:e.length},e.prototype.parseOpenBracket=function(e){var t=this.pos;this.pos+=1;var n=jK("[",this.sourcepos(this.pos,this.pos));return e.appendChild(n),this.addBracket(n,t,!1),!0},e.prototype.parseBang=function(e){var t=this.pos;if(this.pos+=1,this.peek()===gJ){this.pos+=1;var n=jK("![",this.sourcepos(this.pos-1,this.pos));e.appendChild(n),this.addBracket(n,t+1,!0)}else{n=jK("!",this.sourcepos(this.pos,this.pos));e.appendChild(n)}return!0},e.prototype.parseCloseBracket=function(e){var t=null,n=null,r=!1;this.pos+=1;var i=this.pos,o=this.brackets;if(null===o)return e.appendChild(jK("]",this.sourcepos(i,i))),!0;if(!o.active)return e.appendChild(jK("]",this.sourcepos(i,i))),this.removeBracket(),!0;var a=o.image,s=this.pos;this.peek()===OJ&&(this.pos++,this.spnl()&&null!==(t=this.parseLinkDestination())&&this.spnl()&&(VJ.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&this.peek()===SJ?(this.pos+=1,r=!0):this.pos=s);var c="";if(!r){var l=this.pos,u=this.parseLinkLabel();if(u>2?c=this.subject.slice(l,l+u):o.bracketAfter||(c=this.subject.slice(o.index,i)),0===u&&(this.pos=s),c){c=cJ(c);var d=this.refMap[c];d&&(t=d.destination,n=d.title,r=!0)}}if(r){var f=xK(a?"image":"link");f.destination=t,f.title=n||"",f.sourcepos=[o.startpos,this.sourcepos(this.pos)];var p=o.node.next,h=void 0;while(p)h=p.next,p.unlink(),f.appendChild(p),p=h;if(e.appendChild(f),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!a){o=this.brackets;while(null!==o)o.image||(o.active=!1),o=o.previous}return this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0}return this.removeBracket(),this.pos=i,e.appendChild(jK("]",this.sourcepos(i,i))),this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0},e.prototype.addBracket=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,startpos:this.sourcepos(t+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},e.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},e.prototype.parseEntity=function(e){var t,n=this.pos+1;return!!(t=this.match(LJ))&&(e.appendChild(jK(Bo.decodeHTML(t),this.sourcepos(n,this.pos))),!0)},e.prototype.parseString=function(e){var t,n=this.pos+1;if(t=this.match(JJ)){if(this.options.smart){var r=t.replace(FJ,"…").replace(RJ,(function(e){var t=0,n=0;return e.length%3===0?n=e.length/3:e.length%2===0?t=e.length/2:e.length%3===2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),eK("—",n)+eK("–",t)}));e.appendChild(jK(r,this.sourcepos(n,this.pos)))}else{var i=jK(t,this.sourcepos(n,this.pos));e.appendChild(i)}return!0}return!1},e.prototype.parseNewline=function(e){this.pos+=1;var t=e.lastChild;if(t&&"text"===t.type&&" "===t.literal[t.literal.length-1]){var n=" "===t.literal[t.literal.length-2],r=t.literal.length;t.literal=t.literal.replace($J,"");var i=r-t.literal.length;t.sourcepos[1][1]-=i,e.appendChild(xK(n?"linebreak":"softbreak",this.sourcepos(this.pos-i,this.pos)))}else e.appendChild(xK("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(WJ),!0},e.prototype.parseReference=function(e,t){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,r=this.pos,i=this.parseLinkLabel();if(0===i)return 0;var o=this.subject.substr(0,i);if(this.peek()!==TJ)return this.pos=r,0;this.pos++,this.spnl();var a=this.parseLinkDestination();if(null===a)return this.pos=r,0;var s=this.pos;this.spnl(),this.pos!==s&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=s);var c=!0;if(null===this.match(GJ)&&(""===n?c=!1:(n="",this.pos=s,c=null!==this.match(GJ))),!c)return this.pos=r,0;var l=cJ(o);if(""===l)return this.pos=r,0;var u=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=u[1][0]+1;var d=xK("refDef",u);return d.title=n,d.dest=a,d.label=l,e.insertBefore(d),t[l]?this.refDefCandidateMap[d.id]=d:t[l]=AX(d),this.pos-r},e.prototype.mergeTextNodes=function(e){var t,n=[];while(t=e.next()){var r=t.entering,i=t.node;if(r&&"text"===i.type)n.push(i);else if(1===n.length)n=[];else if(n.length>1){var o=n[0],a=n[n.length-1];o.sourcepos&&a.sourcepos&&(o.sourcepos[1]=a.sourcepos[1]),o.next=a.next,o.next&&(o.next.prev=o);for(var s=1;s<n.length;s+=1)o.literal+=n[s].literal,n[s].unlink();n=[]}}},e.prototype.getReferenceDefSourcepos=function(e){for(var t=e.stringContent.split(/\n|\r\n/),n=!1,r=0,i={line:0,ch:0},o=0;o<t.length;o+=1){var a=t[o];if(VJ.test(a))break;if(/\:/.test(a)&&0===r){if(n)break;var s=a.indexOf(":")===a.length-1?o+1:o;i={line:s,ch:t[s].length},n=!0}var c=a.match(/'|"/g);if(c&&(r+=c.length),2===r){i={line:o,ch:a.length};break}}return[[e.sourcepos[0][0],e.sourcepos[0][1]],[e.sourcepos[0][0]+i.line,i.ch]]},e.prototype.parseInline=function(e){var t,n=!1,r=this.peek();if(-1===r)return!1;switch(r){case pJ:n=this.parseNewline(e);break;case xJ:n=this.parseBackslash(e);break;case vJ:n=this.parseBackticks(e);break;case hJ:case mJ:case yJ:case MJ:n=this.handleDelim(r,e);break;case EJ:case _J:n=!!(null===(t=this.options)||void 0===t?void 0:t.smart)&&this.handleDelim(r,e);break;case gJ:n=this.parseOpenBracket(e);break;case kJ:n=this.parseBang(e);break;case bJ:n=this.parseCloseBracket(e);break;case wJ:n=this.parseAutolink(e)||this.parseHtmlTag(e);break;case CJ:n=this.parseEntity(e);break;default:n=this.parseString(e);break}return n||(this.pos+=1,e.appendChild(jK(XK(r),this.sourcepos(this.pos,this.pos+1)))),!0},e.prototype.parse=function(e){this.subject=e.stringContent.trim(),this.pos=0,this.delimiters=null,this.brackets=null,this.lineOffsets=e.lineOffsets||[0],this.lineIdx=0,this.linePosOffset=0,this.lineStartNum=e.sourcepos[0][0],SK(e)&&(this.lineOffsets[0]+=e.level+1);while(this.parseInline(e));e.stringContent=null,this.processEmphasis(null),this.mergeTextNodes(e.walker());var t=this.options,n=t.extendedAutolinks,r=t.customParser;if(n&&aJ(e.walker(),n),r&&e.firstChild){var i,o=e.firstChild.walker();while(i=o.next()){var a=i.node,s=i.entering;r[a.type]&&r[a.type](a,{entering:s,options:this.options})}}},e}(),XJ=/^\[([ \txX])\][ \t]+/;function QJ(e,t){if(t.firstChild&&"paragraph"===t.firstChild.type){var n=t.firstChild,r=n.stringContent.match(XJ);if(r){var i=r[0].length;n.stringContent=n.stringContent.substring(i-1),n.sourcepos[0][1]+=i,n.lineOffsets[0]+=i,t.listData.task=!0,t.listData.checked=/[xX]/.test(r[1])}}}var ZJ={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableHead"===e||"tableBody"===e},acceptsLines:!1},eY={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableRow"===e},acceptsLines:!1},tY={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableRow"===e||"tableDelimRow"===e},acceptsLines:!1},nY={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableDelimCell"===e},acceptsLines:!1},rY={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},iY={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableCell"===e},acceptsLines:!1},oY={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},aY=4,sY=9,cY=62,lY=60,uY=32,dY=91,fY=/[^ \t\f\v\r\n]/,pY=/^(?:`{3,}|~{3,})(?= *$)/;function hY(e){var t=e;while(t){if(t.lastLineBlank)return!0;var n=t.type;if(t.lastLineChecked||"list"!==n&&"item"!==n){t.lastLineChecked=!0;break}t.lastLineChecked=!0,t=t.lastChild}return!1}function mY(e,t){return t<e.length?e.charCodeAt(t):-1}function vY(e){return!fY.test(e)}function gY(e){return e===uY||e===sY}var bY=/^\$\$$/,yY={continue:function(e,t){var n=e.currentLine,r=n.match(bY);if(r)return e.lastLineLength=r[0].length,e.finalize(t,e.lineNumber),2;var i=t.offset;while(i>0&&gY(mY(n,e.offset)))e.advanceOffset(1,!0),i--;return 0},finalize:function(e,t){if(null!==t.stringContent){var n=t.stringContent,r=n.indexOf("\n"),i=n.slice(0,r),o=n.slice(r+1),a=i.match(/^(\s*)(.*)/);t.info=YG(a[2].trim()),t.literal=o,t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},wY={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},kY={continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},xY={continue:function(){return 0},finalize:function(e,t){var n=t.firstChild;while(n){if(hY(n)&&n.next){t.listData.tight=!1;break}var r=n.firstChild;while(r){if(hY(r)&&(n.next||r.next)){t.listData.tight=!1;break}r=r.next}n=n.next}},canContain:function(e){return"item"===e},acceptsLines:!1},CY={continue:function(e){var t=e.currentLine;return e.indented||mY(t,e.nextNonspace)!==cY?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),gY(mY(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},OY={continue:function(e,t){if(e.blank){if(null===t.firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t.listData.markerOffset+t.listData.padding))return 1;e.advanceOffset(t.listData.markerOffset+t.listData.padding,!0)}return 0},finalize:QJ,canContain:function(e){return"item"!==e},acceptsLines:!1},SY={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},TY={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},EY={continue:function(e,t){var n=e.currentLine,r=e.indent;if(t.isFenced){var i=r<=3&&n.charAt(e.nextNonspace)===t.fenceChar&&n.slice(e.nextNonspace).match(pY);if(i&&i[0].length>=t.fenceLength)return e.lastLineLength=e.offset+r+i[0].length,e.finalize(t,e.lineNumber),2;var o=t.fenceOffset;while(o>0&&gY(mY(n,e.offset)))e.advanceOffset(1,!0),o--}else if(r>=aY)e.advanceOffset(aY,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){var n;if(null!==t.stringContent){if(t.isFenced){var r=t.stringContent,i=r.indexOf("\n"),o=r.slice(0,i),a=r.slice(i+1),s=o.match(/^(\s*)(.*)/);t.infoPadding=s[1].length,t.info=YG(s[2].trim()),t.literal=a}else t.literal=null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,"\n");t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},_Y={continue:function(e,t){return!e.blank||6!==t.htmlBlockType&&7!==t.htmlBlockType?0:1},finalize:function(e,t){var n;t.literal=(null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,""))||null,t.stringContent=null},canContain:function(){return!1},acceptsLines:!0},MY={continue:function(e){return e.blank?1:0},finalize:function(e,t){if(null!==t.stringContent){var n,r=!1;while(mY(t.stringContent,0)===dY&&(n=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(n),r=!0;r&&vY(t.stringContent)&&t.unlink()}},canContain:function(){return!1},acceptsLines:!0},IY=wY,jY=wY,DY={document:kY,list:xY,blockQuote:CY,item:OY,heading:SY,thematicBreak:TY,codeBlock:EY,htmlBlock:_Y,paragraph:MY,table:ZJ,tableBody:eY,tableHead:tY,tableRow:iY,tableCell:oY,tableDelimRow:nY,tableDelimCell:rY,refDef:IY,customBlock:yY,frontMatter:jY};function NY(e){for(var t=0,n=0,r=[],i=0;i<e.length;i+=1)if("|"===e[i]&&"\\"!==e[i-1]){var o=e.substring(t,i);0===t&&tK(o)?n=i+1:r.push(o),t=i+1}if(t<e.length){o=e.substring(t,e.length);tK(o)||r.push(o)}return[n,r]}function AY(e,t,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var s=a[o],c=s.match(/^[ \t]+/),l=c?c[0].length:0,u=void 0,d=void 0;if(l===s.length)l=0,u=0,d="";else{var f=s.match(/[ \t]+$/);u=f?f[0].length:0,d=s.slice(l,s.length-u)}var p=r+l,h=xK(e,[[n,r],[n,r+s.length-1]]);h.stringContent=d.replace(/\\\|/g,"|"),h.startIdx=i.length,h.endIdx=i.length,h.lineOffsets=[p-1],h.paddingLeft=l,h.paddingRight=u,i.push(h),r+=s.length+1}return i}function LY(e){var t=null,n=e.stringContent,r=n[0],i=n[n.length-1];return":"===i?t=":"===r?"center":"right":":"===r&&(t="left"),{align:t}}var PY=function(e,t){var n=t.stringContent;if("paragraph"===t.type&&!e.indented&&!e.blank){var r=n.length-1,i=n.lastIndexOf("\n",r-1)+1,o=n.slice(i,r),a=e.currentLine.slice(e.nextNonspace),s=NY(o),c=s[0],l=s[1],u=NY(a),d=u[0],f=u[1],p=/^[ \t]*:?-+:?[ \t]*$/;if(!l.length||!f.length||f.some((function(e){return!p.test(e)}))||1===f.length&&0!==a.indexOf("|"))return 0;var h=t.lineOffsets,m=e.lineNumber-1,v=sJ(h)+1,g=xK("table",[[m,v],[e.lineNumber,e.offset]]);if(g.columns=f.map((function(){return{align:null}})),t.insertAfter(g),1===h.length)t.unlink();else{t.stringContent=n.slice(0,i);var b=n.lastIndexOf("\n",i-2)+1,y=i-b-1;e.lastLineLength=h[h.length-2]+y,e.finalize(t,m-1)}e.advanceOffset(e.currentLine.length-e.offset,!1);var w=xK("tableHead",[[m,v],[e.lineNumber,e.offset]]);g.appendChild(w);var k=xK("tableRow",[[m,v],[m,v+o.length-1]]),x=xK("tableDelimRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.offset]]);w.appendChild(k),w.appendChild(x),AY("tableCell",l,m,v+c).forEach((function(e){k.appendChild(e)}));var C=AY("tableDelimCell",f,e.lineNumber,e.nextNonspace+1+d);return C.forEach((function(e){x.appendChild(e)})),g.columns=C.map(LY),e.tip=g,2}return 0},BY=function(e,t){if("table"!==t.type&&"tableBody"!==t.type||!e.blank&&-1===e.currentLine.indexOf("|"))return 0;if(e.advanceOffset(e.currentLine.length-e.offset,!1),e.blank){var n=t;return"tableBody"===t.type&&(n=t.parent,e.finalize(t,e.lineNumber-1)),e.finalize(n,e.lineNumber-1),0}var r=t;"table"===t.type&&(r=e.addChild("tableBody",e.nextNonspace),r.stringContent=null);var i=xK("tableRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.currentLine.length]]);r.appendChild(i);var o=r.parent,a=e.currentLine.slice(e.nextNonspace),s=NY(a),c=s[0],l=s[1];return AY("tableCell",l,e.lineNumber,e.nextNonspace+1+c).forEach((function(e,t){t>=o.columns.length&&(e.ignored=!0),i.appendChild(e)})),2},FY=/^(\$\$)(\s*[a-zA-Z])+/,RY=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,qY=function(e){var t;if(!e.indented&&!RY.test(e.currentLine)&&(t=e.currentLine.match(FY))){var n=t[1].length;e.closeUnmatchedBlocks();var r=e.addChild("customBlock",e.nextNonspace);return r.syntaxLength=n,r.offset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},HY=/^`{3,}(?!.*`)|^~{3,}/,UY=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+HK+"|"+UK+")\\s*$","i")],VY=/^(?:=+|-+)[ \t]*$/,zY=/^#{1,6}(?:[ \t]+|$)/,$Y=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,WY=/^[*+-]/,GY=/^(\d{1,9})([.)])/;function KY(e,t){var n,r,i=e.currentLine.slice(e.nextNonspace),o={type:"bullet",tight:!0,bulletChar:"",start:0,delimiter:"",padding:0,markerOffset:e.indent,task:!1,checked:!1};if(e.indent>=4)return null;if(n=i.match(WY))o.type="bullet",o.bulletChar=n[0][0];else{if(!(n=i.match(GY))||"paragraph"===t.type&&"1"!==n[1])return null;o.type="ordered",o.start=parseInt(n[1],10),o.delimiter=n[2]}if(r=mY(e.currentLine,e.nextNonspace+n[0].length),-1!==r&&r!==sY&&r!==uY)return null;if("paragraph"===t.type&&!e.currentLine.slice(e.nextNonspace+n[0].length).match(fY))return null;e.advanceNextNonspace(),e.advanceOffset(n[0].length,!0);var a=e.column,s=e.offset;do{e.advanceOffset(1,!0),r=mY(e.currentLine,e.offset)}while(e.column-a<5&&gY(r));var c=-1===mY(e.currentLine,e.offset),l=e.column-a;return l>=5||l<1||c?(o.padding=n[0].length+1,e.column=a,e.offset=s,gY(mY(e.currentLine,e.offset))&&e.advanceOffset(1,!0)):o.padding=n[0].length+l,o}function JY(e,t){return e.type===t.type&&e.delimiter===t.delimiter&&e.bulletChar===t.bulletChar}function YY(e,t){return e.options.disallowDeepHeading&&("blockQuote"===t.type||"item"===t.type)}var XY=function(e){return e.indented||mY(e.currentLine,e.nextNonspace)!==cY?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),gY(mY(e.currentLine,e.offset))&&e.advanceOffset(1,!0),e.closeUnmatchedBlocks(),e.addChild("blockQuote",e.nextNonspace),1)},QY=function(e,t){var n;if(!e.indented&&!YY(e,t)&&(n=e.currentLine.slice(e.nextNonspace).match(zY))){e.advanceNextNonspace(),e.advanceOffset(n[0].length,!1),e.closeUnmatchedBlocks();var r=e.addChild("heading",e.nextNonspace);return r.level=n[0].trim().length,r.headingType="atx",r.stringContent=e.currentLine.slice(e.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},ZY=function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(HY))){var n=t[0].length;e.closeUnmatchedBlocks();var r=e.addChild("codeBlock",e.nextNonspace);return r.isFenced=!0,r.fenceLength=n,r.fenceChar=t[0][0],r.fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},eX=function(e,t){if(!e.indented&&mY(e.currentLine,e.nextNonspace)===lY){var n=e.currentLine.slice(e.nextNonspace),r=e.options.disallowedHtmlBlockTags,i=void 0;for(i=1;i<=7;i++){var o=n.match(UY[i]);if(o){if(7===i){if("paragraph"===t.type)return 0;if(r.length>0){var a=new RegExp("</?(?:"+r.join("|")+")","i");if(a.test(o[0]))return 0}}e.closeUnmatchedBlocks();var s=e.addChild("htmlBlock",e.offset);return s.htmlBlockType=i,2}}}return 0},tX=function(e,t){var n;if(null!==t.stringContent&&!e.indented&&"paragraph"===t.type&&!YY(e,t.parent)&&(n=e.currentLine.slice(e.nextNonspace).match(VY))){e.closeUnmatchedBlocks();var r=void 0;while(mY(t.stringContent,0)===dY&&(r=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(r);if(t.stringContent.length>0){var i=xK("heading",t.sourcepos);return i.level="="===n[0][0]?1:2,i.headingType="setext",i.stringContent=t.stringContent,t.insertAfter(i),t.unlink(),e.tip=i,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0}return 0},nX=function(e){return!e.indented&&$Y.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("thematicBreak",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},rX=function(e,t){var n,r=t;return e.indented&&"list"!==t.type||!(n=KY(e,r))?0:(e.closeUnmatchedBlocks(),"list"===e.tip.type&&JY(r.listData,n)||(r=e.addChild("list",e.nextNonspace),r.listData=n),r=e.addChild("item",e.nextNonspace),r.listData=n,1)},iX=function(e){return e.indented&&"paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(aY,!0),e.closeUnmatchedBlocks(),e.addChild("codeBlock",e.offset),2):0},oX=[XY,QY,ZY,eX,tX,nX,rX,iX,PY,BY,qY],aX=/^(-{3}|\+{3}|;{3})$/,sX=function(e,t){var n=e.currentLine,r=e.lineNumber,i=e.indented;if(1===r&&!i&&"document"===t.type&&aX.test(n)){e.closeUnmatchedBlocks();var o=e.addChild("frontMatter",e.nextNonspace);return o.stringContent=n,e.advanceNextNonspace(),e.advanceOffset(n.length,!1),2}return 0},cX={continue:function(e,t){var n=e.currentLine,r=n.match(aX);return"frontMatter"===t.type&&r?(t.stringContent+=n,e.lastLineLength=r[0].length,e.finalize(t,e.lineNumber),2):0},finalize:function(e,t){null!==t.stringContent&&(t.literal=t.stringContent,t.stringContent=null)},canContain:function(){return!1},acceptsLines:!0},lX=[/./,/<\/(?:script|pre|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],uX=/^[#`~*+_=<>0-9-;$]/,dX=/\r\n|\n|\r/;function fX(){return xK("document",[[1,1],[0,0]])}var pX={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},hX=function(){function e(e){this.options=Io(Io({},pX),e),this.doc=fX(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.lines=[],this.options.frontMatter&&(DY.frontMatter=cX,oX.unshift(sX)),this.inlineParser=new YJ(this.options)}return e.prototype.advanceOffset=function(e,t){void 0===t&&(t=!1);var n,r,i,o=this.currentLine;while(e>0&&(i=o[this.offset]))"\t"===i?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,r=n>e?e:n,this.column+=r,this.offset+=this.partiallyConsumedTab?0:1,e-=r):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},e.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},e.prototype.findNextNonspace=function(){var e,t=this.currentLine,n=this.offset,r=this.column;while(""!==(e=t.charAt(n)))if(" "===e)n++,r++;else{if("\t"!==e)break;n++,r+=4-r%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=r,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=aY},e.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=eK(" ",e)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+"\n"},e.prototype.addChild=function(e,t){while(!DY[this.tip.type].canContain(e))this.finalize(this.tip,this.lineNumber-1);var n=t+1,r=xK(e,[[this.lineNumber,n],[0,0]]);return r.stringContent="",this.tip.appendChild(r),this.tip=r,r},e.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){while(this.oldtip!==this.lastMatchedContainer){var e=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},e.prototype.finalize=function(e,t){var n=e.parent;e.open=!1,e.sourcepos[1]=[t,this.lastLineLength],DY[e.type].finalize(this,e),this.tip=n},e.prototype.processInlines=function(e){var t,n=this.options.customParser,r=e.walker();this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;while(t=r.next()){var i=t.node,o=t.entering,a=i.type;n&&n[a]&&n[a](i,{entering:o,options:this.options}),o||"paragraph"!==a&&"heading"!==a&&("tableCell"!==a||i.ignored)||this.inlineParser.parse(i)}},e.prototype.incorporateLine=function(e){var t=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"�")),this.currentLine=e;var n,r=!0;while((n=t.lastChild)&&n.open){switch(t=n,this.findNextNonspace(),DY[t.type]["continue"](this,t)){case 0:break;case 1:r=!1;break;case 2:return void(this.lastLineLength=e.length);default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!r){t=t.parent;break}}this.allClosed=t===this.oldtip,this.lastMatchedContainer=t;var i="paragraph"!==t.type&&DY[t.type].acceptsLines,o=oX.length;while(!i){if(this.findNextNonspace(),"table"!==t.type&&"tableBody"!==t.type&&"paragraph"!==t.type&&!this.indented&&!uX.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}var a=0;while(a<o){var s=oX[a](this,t);if(1===s){t=this.tip;break}if(2===s){t=this.tip,i=!0;break}a++}if(a===o){this.advanceNextNonspace();break}}if(this.allClosed||this.blank||"paragraph"!==this.tip.type){this.closeUnmatchedBlocks(),this.blank&&t.lastChild&&(t.lastChild.lastLineBlank=!0);var c=t.type,l=this.blank&&!("blockQuote"===c||CK(t)&&t.isFenced||"item"===c&&!t.firstChild&&t.sourcepos[0][0]===this.lineNumber),u=t;while(u)u.lastLineBlank=l,u=u.parent;DY[c].acceptsLines?(this.addLine(),OK(t)&&t.htmlBlockType>=1&&t.htmlBlockType<=5&&lX[t.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(t,this.lineNumber))):this.offset<e.length&&!this.blank&&(t=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())}else this.addLine();this.lastLineLength=e.length},e.prototype.parse=function(e,t){this.doc=fX(),this.tip=this.doc,this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";var n=e.split(dX),r=n.length;this.lines=t||n,this.options.referenceDefinition&&this.clearRefMaps(),e.charCodeAt(e.length-1)===pJ&&(r-=1);for(var i=0;i<r;i++)this.incorporateLine(n[i]);while(this.tip)this.finalize(this.tip,r);return this.processInlines(this.doc),this.doc},e.prototype.partialParseStart=function(e,t){this.doc=fX(),this.tip=this.doc,this.lineNumber=e-1,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";for(var n=t.length,r=0;r<n;r++)this.incorporateLine(t[r]);return this.doc},e.prototype.partialParseExtends=function(e){for(var t=0;t<e.length;t++)this.incorporateLine(e[t])},e.prototype.partialParseFinish=function(){while(this.tip)this.finalize(this.tip,this.lineNumber);this.processInlines(this.doc)},e.prototype.setRefMaps=function(e,t,n){this.refMap=e,this.refLinkCandidateMap=t,this.refDefCandidateMap=n},e.prototype.clearRefMaps=function(){[this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){fJ(e)}))},e}();function mX(e,t){return e[0]<t[0]?1:e[0]>t[0]?-1:e[1]<t[1]?1:e[1]>t[1]?-1:0}function vX(e,t){var n=e[0],r=e[1];return 1===mX(r,t)?1:-1===mX(n,t)?-1:0}function gX(e,t){if(e.parent===t.parent&&e!==t){var n=e.next;while(n&&n!==t){for(var r=n.next,i=0,o=["parent","prev","next"];i<o.length;i++){var a=o[i];n[a]&&(sK(n[a].id),n[a]=null)}n=r}e.next=t.next,t.next?t.next.prev=e:e.parent.lastChild=e}}function bX(e){var t=[],n=e.firstChild;while(n)t.push(n),n=n.next;return t}function yX(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];e.insertBefore(i)}}function wX(e,t){for(var n=t.length-1;n>=0;n-=1)e.prependChild(t[n])}function kX(e,t){if(e&&e.parent&&0!==t){var n,r=e.parent.walker();r.resumeAt(e,!0);while(n=r.next()){var i=n.node,o=n.entering;o&&(i.sourcepos[0][0]+=t,i.sourcepos[1][0]+=t)}}}function xX(e,t){var n=e[0],r=e[1];return r[0]<t?1:n[0]>t?-1:0}function CX(e,t){var n=e.firstChild;while(n){var r=xX(n.sourcepos,t);if(0===r)return n;if(-1===r)return n.prev||n;n=n.next}return e.lastChild}function OX(e){while(e.lastChild)e=e.lastChild;return e}function SX(e){while(e.parent&&"document"!==e.parent.type&&e.parent.sourcepos[0][0]===e.sourcepos[0][0])e=e.parent;return e}function TX(e,t){var n=e.firstChild,r=null;while(n){var i=xX(n.sourcepos,t);if(0===i){if(n.sourcepos[0][0]===t||!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)break;r=n,n=n.next}}return r?SX(OX(r)):null}function EX(e,t){var n=e,r=null;while(n){var i=vX(n.sourcepos,t);if(0===i){if(!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)return r;if(!n.next)return r;n=n.next}}return n}function _X(e){return aK(e)||null}function MX(e,t,n){if(void 0===n&&(n=null),t){var r=t.walker();while(t&&t!==n){e(t);var i=r.next();if(!i)break;t=i.node}}}function IX(e){var t=_X(e);if(!t)return!0;while(t&&"document"!==t.type){if(!t.parent&&!t.prev&&!t.next)return!0;t=t.parent}return!1}var jX=/\r\n|\n|\r/;function DX(e){var t=e.match(/^[ \t]+/);if(t&&(t[0].length>=2||/\t/.test(t[0])))return!0;var n=t?e.slice(t.length):e;return WY.test(n)||GY.test(n)}function NX(e){return!vY(e)&&-1!==e.indexOf("|")}function AX(e){var t=e.id,n=e.title,r=e.sourcepos,i=e.dest;return{id:t,title:n,sourcepos:r,unlinked:!1,destination:i}}var LX=function(){function e(e,t){this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(null===t||void 0===t?void 0:t.referenceDefinition),this.parser=new hX(t),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(jX),this.root=this.parser.parse(e,this.lineTexts)}return e.prototype.updateLineTexts=function(e,t,n){var r,i=e[0],o=e[1],a=t[0],s=t[1],c=n.split(jX),l=c.length,u=this.lineTexts[i-1],d=this.lineTexts[a-1];c[0]=u.slice(0,o-1)+c[0],c[l-1]=c[l-1]+d.slice(s-1);var f=a-i+1;return(r=this.lineTexts).splice.apply(r,jo([i-1,f],c)),l-f},e.prototype.updateRootNodeState=function(){if(1===this.lineTexts.length&&""===this.lineTexts[0])return this.root.lastLineBlank=!0,void(this.root.sourcepos=[[1,1],[1,0]]);this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);var e=this.lineTexts,t=e.length-1;while(""===e[t])t-=1;e.length-2>t&&(t+=1),this.root.sourcepos[1]=[t+1,e[t].length]},e.prototype.replaceRangeNodes=function(e,t,n){e?(yX(e,n),gX(e,t),[e.id,t.id].forEach((function(e){return sK(e)})),e.unlink()):t?(yX(t,n),sK(t.id),t.unlink()):wX(this.root,n)},e.prototype.getNodeRange=function(e,t){var n=CX(this.root,e[0]),r=CX(this.root,t[0]);return r&&r.next&&t[0]+1===r.next.sourcepos[0][0]&&(r=r.next),[n,r]},e.prototype.trigger=function(e,t){this.eventHandlerMap[e].forEach((function(e){e(t)}))},e.prototype.extendEndLine=function(e){while(""===this.lineTexts[e])e+=1;return e},e.prototype.parseRange=function(e,t,n,r){e&&e.prev&&(TK(e.prev)&&DX(this.lineTexts[n-1])||EK(e.prev)&&NX(this.lineTexts[n-1]))&&(e=e.prev,n=e.sourcepos[0][0]);var i=this.lineTexts.slice(n-1,r),o=this.parser.partialParseStart(n,i),a=t?t.next:this.root.firstChild,s=o.lastChild,c=s&&CK(s)&&s.open,l=s&&MK(s)&&s.open,u=s&&TK(s);while((c||l)&&a||u&&a&&("list"===a.type||a.sourcepos[0][1]>=2)){var d=this.extendEndLine(a.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(r,d)),e||(e=t),t=a,r=d,a=a.next}this.parser.partialParseFinish();var f=bX(o);return{newNodes:f,extStartNode:e,extEndNode:t}},e.prototype.getRemovedNodeRange=function(e,t){return!e||e&&_K(e)||t&&_K(t)?null:{id:[e.id,t.id],line:[e.sourcepos[0][0]-1,t.sourcepos[1][0]-1]}},e.prototype.markDeletedRefMap=function(e,t){var n=this;if(!dJ(this.refMap)){var r=function(e){if(_K(e)){var t=n.refMap[e.label];t&&e.id===t.id&&(t.unlinked=!0)}};e&&MX(r,e.parent,t),t&&MX(r,t)}},e.prototype.replaceWithNewRefDefState=function(e){var t=this;if(!dJ(this.refMap)){var n=function(e){if(_K(e)){var n=e.label,r=t.refMap[n];r&&!r.unlinked||(t.refMap[n]=AX(e))}};e.forEach((function(e){MX(n,e)}))}},e.prototype.replaceWithRefDefCandidate=function(){var e=this;dJ(this.refDefCandidateMap)||lJ(this.refDefCandidateMap,(function(t,n){var r=n.label,i=n.sourcepos,o=e.refMap[r];(!o||o.unlinked||o.sourcepos[0][0]>i[0][0])&&(e.refMap[r]=AX(n))}))},e.prototype.getRangeWithRefDef=function(e,t,n,r,i){if(this.referenceDefinition&&!dJ(this.refMap)){var o=CX(this.root,e-1),a=CX(this.root,t+1);o&&_K(o)&&o!==n&&o!==r&&(n=o,e=n.sourcepos[0][0]),a&&_K(a)&&a!==n&&a!==r&&(r=a,t=this.extendEndLine(r.sourcepos[1][0]+i))}return[n,r,e,t]},e.prototype.parse=function(e,t,n){void 0===n&&(n=0);var r=this.getNodeRange(e,t),i=r[0],o=r[1],a=i?Math.min(i.sourcepos[0][0],e[0]):e[0],s=this.extendEndLine((o?Math.max(o.sourcepos[1][0],t[0]):t[0])+n),c=this.parseRange.apply(this,this.getRangeWithRefDef(a,s,i,o,n)),l=c.newNodes,u=c.extStartNode,d=c.extEndNode,f=this.getRemovedNodeRange(u,d),p=d?d.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(u,d),this.replaceRangeNodes(u,d,l),this.replaceWithNewRefDefState(l)):this.replaceRangeNodes(u,d,l),{nodes:l,removedNodeRange:f,nextNode:p}},e.prototype.parseRefLink=function(){var e=this,t=[];return dJ(this.refMap)||lJ(this.refMap,(function(n,r){r.unlinked&&delete e.refMap[n],lJ(e.refLinkCandidateMap,(function(r,i){var o=i.node,a=i.refLabel;a===n&&t.push(e.parse(o.sourcepos[0],o.sourcepos[1]))}))})),t},e.prototype.removeUnlinkedCandidate=function(){dJ(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){lJ(e,(function(t){IX(t)&&delete e[t]}))}))},e.prototype.editMarkdown=function(e,t,n){var r=this.updateLineTexts(e,t,n),i=this.parse(e,t,r),o=uJ(i,"nextNode");kX(i.nextNode,r),this.updateRootNodeState();var a=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),a=a.concat(this.parseRefLink())),this.trigger("change",a),a},e.prototype.getLineTexts=function(){return this.lineTexts},e.prototype.getRootNode=function(){return this.root},e.prototype.findNodeAtPosition=function(e){var t=EX(this.root,e);return t&&t!==this.root?t:null},e.prototype.findFirstNodeAtLine=function(e){return TX(this.root,e)},e.prototype.on=function(e,t){this.eventHandlerMap[e].push(t)},e.prototype.off=function(e,t){var n=this.eventHandlerMap[e],r=n.indexOf(t);n.splice(r,1)},e.prototype.findNodeById=function(e){return _X(e)},e.prototype.removeAllNode=function(){cK()},e}(),PX=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],BX=new RegExp("<(/?(?:"+PX.join("|")+")[^>]*>)","ig");function FX(e){return BX.test(e)?e.replace(BX,(function(e,t){return"&lt;"+t})):e}var RX={heading:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"h"+e.level,outerNewLine:!0}},text:function(e){return{type:"text",content:e.literal}},softbreak:function(e,t){var n=t.options;return{type:"html",content:n.softbreak}},linebreak:function(){return{type:"html",content:"<br />\n"}},emph:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"em"}},strong:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"strong"}},paragraph:function(e,t){var n,r=t.entering,i=null===(n=e.parent)||void 0===n?void 0:n.parent;return i&&"list"===i.type&&i.listData.tight?null:{type:r?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(e,t){var n=t.entering,r=e.listData,i=r.type,o=r.start,a="bullet"===i?"ul":"ol",s={};return"ol"===a&&null!==o&&1!==o&&(s.start=o.toString()),{type:n?"openTag":"closeTag",tagName:a,attributes:s,outerNewLine:!0}},item:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(e,t){var n=t.options,r=n.tagFilter?FX(e.literal):e.literal;return{type:"html",content:r}},htmlBlock:function(e,t){var n=t.options,r=n.tagFilter?FX(e.literal):e.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:r},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:r,outerNewLine:!0}},code:function(e){return[{type:"openTag",tagName:"code"},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e.info,n=t?t.split(/\s+/):[],r=[];return n.length>0&&n[0].length>0&&r.push("language-"+ZG(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(e,t){var n=t.entering;if(n){var r=e,i=r.title,o=r.destination;return{type:"openTag",tagName:"a",attributes:Io({href:ZG(o)},i&&{title:ZG(i)})}}return{type:"closeTag",tagName:"a"}},image:function(e,t){var n=t.getChildrenText,r=t.skipChildren,i=e,o=i.title,a=i.destination;return r(),{type:"openTag",tagName:"img",selfClose:!0,attributes:Io({src:ZG(a),alt:n(e)},o&&{title:ZG(o)})}},customBlock:function(e,t,n){var r=e.info.trim().toLowerCase(),i=n[r];if(i)try{return i(e,t)}catch(o){console.warn("[@toast-ui/editor] - The error occurred when "+r+" block node was parsed in markdown renderer: "+o)}return[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},frontMatter:function(e){return[{type:"openTag",tagName:"div",outerNewLine:!0,attributes:{style:"white-space: pre; display: none;"}},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},customInline:function(e,t,n){var r=e,i=r.info,o=r.firstChild,a=i.trim().toLowerCase(),s=n[a],c=t.entering;if(s)try{return s(e,t)}catch(l){console.warn("[@toast-ui/editor] - The error occurred when "+a+" inline node was parsed in markdown renderer: "+l)}return c?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+i+(o?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},qX={strike:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"del"}},item:function(e,t){var n=t.entering,r=e.listData,i=r.checked,o=r.task;if(n){var a={type:"openTag",tagName:"li",outerNewLine:!0};return o?[a,{type:"openTag",tagName:"input",selfClose:!0,attributes:Io(Io({},i&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:a}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(e,t){var n=t.entering;if(n)return{type:"openTag",tagName:"tr",outerNewLine:!0};var r=[];if(e.lastChild)for(var i=e.parent.parent.columns.length,o=e.lastChild.endIdx,a=o+1;a<i;a+=1)r.push({type:"openTag",tagName:"td",outerNewLine:!0},{type:"closeTag",tagName:"td",outerNewLine:!0});return r.push({type:"closeTag",tagName:"tr",outerNewLine:!0}),r},tableCell:function(e,t){var n=t.entering;if(e.ignored)return{type:"text",content:""};var r=e.parent.parent,i="tableHead"===r.type?"th":"td",o=r.parent,a=o.columns[e.startIdx],s=(null===a||void 0===a?void 0:a.align)?{align:a.align}:null;return n?Io({type:"openTag",tagName:i,outerNewLine:!0},s&&{attributes:s}):{type:"closeTag",tagName:i,outerNewLine:!0}}},HX={softbreak:"\n",gfm:!1,tagFilter:!1,nodeId:!1};function UX(e){var t=[],n=e.walker(),r=null;while(r=n.next()){var i=r.node;"text"===i.type&&t.push(i.literal)}return t.join("")}var VX=function(){function e(e){this.buffer=[],this.options=Io(Io({},HX),e),this.convertors=this.createConvertors(),delete this.options.convertors}return e.prototype.createConvertors=function(){var e=Io({},RX);if(this.options.gfm&&(e=Io(Io({},e),qX)),this.options.convertors){var t=this.options.convertors,n=Object.keys(t),r=Io(Io({},RX),qX);n.forEach((function(n){var i=e[n],o=t[n],a=-1===Object.keys(r).indexOf(n)?n.toLowerCase():n;e[a]=i?function(e,t,n){return t.origin=function(){return i(e,t,n)},o(e,t)}:o}))}return e},e.prototype.getConvertors=function(){return this.convertors},e.prototype.getOptions=function(){return this.options},e.prototype.render=function(e){var t=this;this.buffer=[];var n=e.walker(),r=null,i=function(){var e=r.node,i=r.entering,a=o.convertors[e.type];if(!a)return"continue";var s=!1,c={entering:i,leaf:!rK(e),options:o.options,getChildrenText:UX,skipChildren:function(){s=!0}},l=MK(e)||IK(e)?a(e,c,o.convertors):a(e,c);if(l){var u=Array.isArray(l)?l:[l];u.forEach((function(n,r){"openTag"===n.type&&t.options.nodeId&&0===r&&(n.attributes||(n.attributes={}),n.attributes["data-nodeid"]=String(e.id)),t.renderHTMLNode(n)})),s&&(n.resumeAt(e,!1),n.next())}},o=this;while(r=n.next())i();return this.addNewLine(),this.buffer.join("")},e.prototype.renderHTMLNode=function(e){switch(e.type){case"openTag":case"closeTag":this.renderElementNode(e);break;case"text":this.renderTextNode(e);break;case"html":this.renderRawHtmlNode(e);break}},e.prototype.generateOpenTagString=function(e){var t=this,n=e.tagName,r=e.classNames,i=e.attributes;this.buffer.push("<"+n),r&&r.length>0&&this.buffer.push(' class="'+r.join(" ")+'"'),i&&Object.keys(i).forEach((function(e){var n=i[e];t.buffer.push(" "+e+'="'+n+'"')})),e.selfClose&&this.buffer.push(" /"),this.buffer.push(">")},e.prototype.generateCloseTagString=function(e){var t=e.tagName;this.buffer.push("</"+t+">")},e.prototype.addNewLine=function(){this.buffer.length&&"\n"!==sJ(sJ(this.buffer))&&this.buffer.push("\n")},e.prototype.addOuterNewLine=function(e){e.outerNewLine&&this.addNewLine()},e.prototype.addInnerNewLine=function(e){e.innerNewLine&&this.addNewLine()},e.prototype.renderTextNode=function(e){this.buffer.push(ZG(e.content))},e.prototype.renderRawHtmlNode=function(e){this.addOuterNewLine(e),this.buffer.push(e.content),this.addOuterNewLine(e)},e.prototype.renderElementNode=function(e){"openTag"===e.type?(this.addOuterNewLine(e),this.generateOpenTagString(e),e.selfClose?this.addOuterNewLine(e):this.addInnerNewLine(e)):(this.addInnerNewLine(e),this.generateCloseTagString(e),this.addOuterNewLine(e))},e}();
/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */function zX(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var $X=Object.hasOwnProperty,WX=Object.setPrototypeOf,GX=Object.isFrozen,KX=Object.getPrototypeOf,JX=Object.getOwnPropertyDescriptor,YX=Object.freeze,XX=Object.seal,QX=Object.create,ZX="undefined"!==typeof Reflect&&Reflect,eQ=ZX.apply,tQ=ZX.construct;eQ||(eQ=function(e,t,n){return e.apply(t,n)}),YX||(YX=function(e){return e}),XX||(XX=function(e){return e}),tQ||(tQ=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(zX(t))))});var nQ=fQ(Array.prototype.forEach),rQ=fQ(Array.prototype.pop),iQ=fQ(Array.prototype.push),oQ=fQ(String.prototype.toLowerCase),aQ=fQ(String.prototype.match),sQ=fQ(String.prototype.replace),cQ=fQ(String.prototype.indexOf),lQ=fQ(String.prototype.trim),uQ=fQ(RegExp.prototype.test),dQ=pQ(TypeError);function fQ(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return eQ(e,t,r)}}function pQ(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return tQ(e,n)}}function hQ(e,t){WX&&WX(e,null);var n=t.length;while(n--){var r=t[n];if("string"===typeof r){var i=oQ(r);i!==r&&(GX(t)||(t[n]=i),r=i)}e[r]=!0}return e}function mQ(e){var t=QX(null),n=void 0;for(n in e)eQ($X,e,[n])&&(t[n]=e[n]);return t}function vQ(e,t){while(null!==e){var n=JX(e,t);if(n){if(n.get)return fQ(n.get);if("function"===typeof n.value)return fQ(n.value)}e=KX(e)}function r(e){return console.warn("fallback value for",e),null}return r}var gQ=YX(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bQ=YX(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),yQ=YX(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wQ=YX(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kQ=YX(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),xQ=YX(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),CQ=YX(["#text"]),OQ=YX(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),SQ=YX(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),TQ=YX(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),EQ=YX(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_Q=XX(/\{\{[\s\S]*|[\s\S]*\}\}/gm),MQ=XX(/<%[\s\S]*|[\s\S]*%>/gm),IQ=XX(/^data-[\-\w.\u00B7-\uFFFF]/),jQ=XX(/^aria-[\-\w]+$/),DQ=XX(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NQ=XX(/^(?:\w+script|data):/i),AQ=XX(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),LQ="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function PQ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var BQ=function(){return"undefined"===typeof window?null:window},FQ=function(e,t){if("object"!==("undefined"===typeof e?"undefined":LQ(e))||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function RQ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:BQ(),t=function(e){return RQ(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap,u=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,d=e.Text,f=e.Comment,p=e.DOMParser,h=e.trustedTypes,m=s.prototype,v=vQ(m,"cloneNode"),g=vQ(m,"nextSibling"),b=vQ(m,"childNodes"),y=vQ(m,"parentNode");if("function"===typeof o){var w=r.createElement("template");w.content&&w.content.ownerDocument&&(r=w.content.ownerDocument)}var k=FQ(h,n),x=k&&ee?k.createHTML(""):"",C=r,O=C.implementation,S=C.createNodeIterator,T=C.createDocumentFragment,E=C.getElementsByTagName,_=n.importNode,M={};try{M=mQ(r).documentMode?r.documentMode:{}}catch(Re){}var I={};t.isSupported="function"===typeof y&&O&&"undefined"!==typeof O.createHTMLDocument&&9!==M;var j=_Q,D=MQ,N=IQ,A=jQ,L=NQ,P=AQ,B=DQ,F=null,R=hQ({},[].concat(PQ(gQ),PQ(bQ),PQ(yQ),PQ(kQ),PQ(CQ))),q=null,H=hQ({},[].concat(PQ(OQ),PQ(SQ),PQ(TQ),PQ(EQ))),U=null,V=null,z=!0,$=!0,W=!1,G=!1,K=!1,J=!1,Y=!1,X=!1,Q=!1,Z=!0,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,ae=hQ({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),se=null,ce=hQ({},["audio","video","img","source","image","track"]),le=null,ue=hQ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",he=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],be="text/html",ye=void 0,we=null,ke=r.createElement("form"),xe=function(e){we&&we===e||(e&&"object"===("undefined"===typeof e?"undefined":LQ(e))||(e={}),e=mQ(e),F="ALLOWED_TAGS"in e?hQ({},e.ALLOWED_TAGS):R,q="ALLOWED_ATTR"in e?hQ({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?hQ(mQ(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?hQ(mQ(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?hQ({},e.FORBID_CONTENTS):ae,U="FORBID_TAGS"in e?hQ({},e.FORBID_TAGS):{},V="FORBID_ATTR"in e?hQ({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,z=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,X=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,Z=!1!==e.RETURN_DOM_IMPORT,ee=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,he=e.NAMESPACE||pe,ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?be:e.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ve?function(e){return e}:oQ,G&&($=!1),Q&&(X=!0),ie&&(F=hQ({},[].concat(PQ(CQ))),q=[],!0===ie.html&&(hQ(F,gQ),hQ(q,OQ)),!0===ie.svg&&(hQ(F,bQ),hQ(q,SQ),hQ(q,EQ)),!0===ie.svgFilters&&(hQ(F,yQ),hQ(q,SQ),hQ(q,EQ)),!0===ie.mathMl&&(hQ(F,kQ),hQ(q,TQ),hQ(q,EQ))),e.ADD_TAGS&&(F===R&&(F=mQ(F)),hQ(F,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=mQ(q)),hQ(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&hQ(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=mQ(oe)),hQ(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),K&&hQ(F,["html","head","body"]),F.table&&(hQ(F,["tbody"]),delete U.tbody),YX&&YX(e),we=e)},Ce=hQ({},["mi","mo","mn","ms","mtext"]),Oe=hQ({},["foreignobject","desc","title","annotation-xml"]),Se=hQ({},bQ);hQ(Se,yQ),hQ(Se,wQ);var Te=hQ({},kQ);hQ(Te,xQ);var Ee=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=oQ(e.tagName),r=oQ(t.tagName);if(e.namespaceURI===fe)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Ce[r]):Boolean(Se[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===fe?"math"===n&&Oe[r]:Boolean(Te[n]);if(e.namespaceURI===pe){if(t.namespaceURI===fe&&!Oe[r])return!1;if(t.namespaceURI===de&&!Ce[r])return!1;var i=hQ({},["title","style","font","a","script"]);return!Te[n]&&(i[n]||!Se[n])}return!1},_e=function(e){iQ(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Re){try{e.outerHTML=x}catch(Re){e.remove()}}},Me=function(e,n){try{iQ(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(Re){iQ(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!q[e])if(X||Q)try{_e(n)}catch(Re){}else try{n.setAttribute(e,"")}catch(Re){}},Ie=function(e){var t=void 0,n=void 0;if(Y)e="<remove></remove>"+e;else{var i=aQ(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=k?k.createHTML(e):e;if(he===pe)try{t=(new p).parseFromString(o,ve)}catch(Re){}if(!t||!t.documentElement){t=O.createDocument(he,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(Re){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),he===pe?E.call(t,K?"html":"body")[0]:K?t.documentElement:a},je=function(e){return S.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},De=function(e){return!(e instanceof d||e instanceof f)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof u&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},Ne=function(e){return"object"===("undefined"===typeof a?"undefined":LQ(a))?e instanceof a:e&&"object"===("undefined"===typeof e?"undefined":LQ(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Ae=function(e,n,r){I[e]&&nQ(I[e],(function(e){e.call(t,n,r,we)}))},Le=function(e){var n=void 0;if(Ae("beforeSanitizeElements",e,null),De(e))return _e(e),!0;if(aQ(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var r=ye(e.nodeName);if(Ae("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!Ne(e.firstElementChild)&&(!Ne(e.content)||!Ne(e.content.firstElementChild))&&uQ(/<[/\w]/g,e.innerHTML)&&uQ(/<[/\w]/g,e.textContent))return _e(e),!0;if("select"===r&&uQ(/<template/i,e.innerHTML))return _e(e),!0;if(!F[r]||U[r]){if(ne&&!oe[r]){var i=y(e)||e.parentNode,o=b(e)||e.childNodes;if(o&&i)for(var a=o.length,c=a-1;c>=0;--c)i.insertBefore(v(o[c],!0),g(e))}return _e(e),!0}return e instanceof s&&!Ee(e)?(_e(e),!0):"noscript"!==r&&"noembed"!==r||!uQ(/<\/no(script|embed)/i,e.innerHTML)?(G&&3===e.nodeType&&(n=e.textContent,n=sQ(n,j," "),n=sQ(n,D," "),e.textContent!==n&&(iQ(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ae("afterSanitizeElements",e,null),!1):(_e(e),!0)},Pe=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in ke))return!1;if($&&!V[t]&&uQ(N,t));else if(z&&uQ(A,t));else{if(!q[t]||V[t])return!1;if(le[t]);else if(uQ(B,sQ(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==cQ(n,"data:")||!se[e]){if(W&&!uQ(L,sQ(n,P,"")));else if(n)return!1}else;}return!0},Be=function(e){var n=void 0,r=void 0,i=void 0,o=void 0;Ae("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};o=a.length;while(o--){n=a[o];var c=n,l=c.name,u=c.namespaceURI;if(r=lQ(n.value),i=ye(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Ae("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Me(l,e),s.keepAttr))if(uQ(/\/>/i,r))Me(l,e);else{G&&(r=sQ(r,j," "),r=sQ(r,D," "));var d=ye(e.nodeName);if(Pe(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),rQ(t.removed)}catch(Re){}}}Ae("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n=void 0,r=je(t);Ae("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Ae("uponSanitizeShadowNode",n,null),Le(n)||(n.content instanceof i&&e(n.content),Be(n));Ae("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if(me=!r,me&&(r="\x3c!--\x3e"),"string"!==typeof r&&!Ne(r)){if("function"!==typeof r.toString)throw dQ("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw dQ("dirty is not a string, aborting")}if(!t.isSupported){if("object"===LQ(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(Ne(r))return e.toStaticHTML(r.outerHTML)}return r}if(J||xe(o),t.removed=[],"string"===typeof r&&(re=!1),re);else if(r instanceof a)s=Ie("\x3c!----\x3e"),c=s.ownerDocument.importNode(r,!0),1===c.nodeType&&"BODY"===c.nodeName?s=c:"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!X&&!G&&!K&&-1===r.indexOf("<"))return k&&ee?k.createHTML(r):r;if(s=Ie(r),!s)return X?null:x}s&&Y&&_e(s.firstChild);var f=je(re?r:s);while(l=f.nextNode())3===l.nodeType&&l===u||Le(l)||(l.content instanceof i&&Fe(l.content),Be(l),u=l);if(u=null,re)return r;if(X){if(Q){d=T.call(s.ownerDocument);while(s.firstChild)d.appendChild(s.firstChild)}else d=s;return Z&&(d=_.call(n,d,!0)),d}var p=K?s.outerHTML:s.innerHTML;return G&&(p=sQ(p,j," "),p=sQ(p,D," ")),k&&ee?k.createHTML(p):p},t.setConfig=function(e){xe(e),J=!0},t.clearConfig=function(){we=null,J=!1},t.isValidAttribute=function(e,t,n){we||xe({});var r=ye(e),i=ye(t);return Pe(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&(I[e]=I[e]||[],iQ(I[e],t))},t.removeHook=function(e){I[e]&&rQ(I[e])},t.removeHooks=function(e){I[e]&&(I[e]=[])},t.removeAllHooks=function(){I={}},t}var qQ=RQ(),HQ=["iframe","embed"],UQ=[];function VQ(e){Ie(HQ,e)&&UQ.push(e.toLowerCase())}function zQ(e,t){return qQ.sanitize(e,p({ADD_TAGS:UQ,ADD_ATTR:["rel","target","hreflang","type"],FORBID_TAGS:["input","script","textarea","form","button","select","meta","style","link","title","object","base"]},t))}function $Q(e,t){return e.literal.replace(new RegExp("(<\\s*"+t+"[^>]*>)|(</"+t+"\\s*[>])","ig"),"").trim()}function WQ(e){e=e.match(rn)[0];var t=e.match(new RegExp(Zt,"g"));return t?t.reduce((function(e,t){var n=t.trim().split("="),r=n[0],i=n.slice(1);return i.length&&(e[r]=i.join("=").replace(/'|"/g,"").trim()),e}),{}):{}}function GQ(e){return Xe(e.attributes).reduce((function(e,t){return e[t.nodeName]=t.nodeValue,e}),{})}function KQ(e,t,n,r){var i=r.getToDOMNode(t)(e),o=n(i.outerHTML),a=document.createElement("div");a.innerHTML=o,i=a.firstChild;var s=GQ(i);return{dom:i,htmlAttrs:s}}var JQ={htmlBlock:function(e,t,n){return{atom:!0,content:"block+",group:"block",attrs:{htmlAttrs:{default:{}},childrenHTML:{default:""},htmlBlock:{default:!0}},parseDOM:[{tag:e,getAttrs:function(e){return{htmlAttrs:GQ(e),childrenHTML:e.innerHTML}}}],toDOM:function(r){var i=KQ(r,e,t,n),o=i.dom,a=i.htmlAttrs;return a.class=a.class?a.class+" html-block":"html-block",h([e,a],Xe(o.childNodes))}}},htmlInline:function(e,t,n){return{attrs:{htmlAttrs:{default:{}},htmlInline:{default:!0}},parseDOM:[{tag:e,getAttrs:function(e){return{htmlAttrs:GQ(e)}}}],toDOM:function(r){var i=KQ(r,e,t,n).htmlAttrs;return[e,i,0]}}}};function YQ(e,t,n){var r={nodes:{},marks:{}};return["htmlBlock","htmlInline"].forEach((function(i){e[i]&&Object.keys(e[i]).forEach((function(e){var o="htmlBlock"===i?"nodes":"marks";VQ(e),r[o][e]=JQ[i](e,t,n)}))})),r}var XQ=/^\s*<\s*\//,QQ={paragraph:function(e,t){var n=t.entering,r=t.origin,i=t.options;return i.nodeId?{type:n?"openTag":"closeTag",outerNewLine:!0,tagName:"p"}:r()},softbreak:function(e){var t=e.prev&&"htmlInline"===e.prev.type,n=t&&/<br ?\/?>/.test(e.prev.literal),r=n?"\n":"<br>\n";return{type:"html",content:r}},item:function(e,t){var n=t.entering;if(n){var r={},i=[];return e.listData.task&&(r["data-task"]="",i.push("task-list-item"),e.listData.checked&&(i.push("checked"),r["data-task-checked"]="")),{type:"openTag",tagName:"li",classNames:i,attributes:r,outerNewLine:!0}}return{type:"closeTag",tagName:"li",outerNewLine:!0}},code:function(e){var t={"data-backticks":String(e.tickCount)};return[{type:"openTag",tagName:"code",attributes:t},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e,n=t.fenceLength,r=t.info,i=r?r.split(/\s+/):[],o=[],a={};if(n>3&&(a["data-backticks"]=n),i.length>0&&i[0].length>0){var s=i[0];o.push("lang-"+s),a["data-language"]=s}return[{type:"openTag",tagName:"pre",classNames:o},{type:"openTag",tagName:"code",attributes:a},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre"}]},customInline:function(e,t){var n=t.origin,r=t.entering,i=t.skipChildren,o=e.info;if(-1!==o.indexOf("widget")&&r){i();var a=Nt(e),s=_t(o,a).outerHTML;return[{type:"openTag",tagName:"span",classNames:["tui-widget"]},{type:"html",content:s},{type:"closeTag",tagName:"span"}]}return n()}};function ZQ(e,t){var n=p({},QQ);return e&&(n.link=function(t,n){var r=n.entering,i=n.origin,o=i();return r&&(o.attributes=p(p({},o.attributes),e)),o}),t&&Object.keys(t).forEach((function(e){var r=n[e],i=t[e];r&&qn(i)?n[e]=function(e,t){var n=p({},t);return n.origin=function(){return r(e,t)},i(e,n)}:Ie(["htmlBlock","htmlInline"],e)&&!qn(i)?n[e]=function(e,t){var n=e.literal.match(rn);if(n){var r=n[0],o=n[1],a=n[3],s=(o||a).toLowerCase(),c=i[s],l=$Q(e,s);if(c){var u=p({},e);return u.attrs=WQ(r),u.childrenHTML=l,u.type=s,t.entering=!XQ.test(e.literal),c(u,t)}}return t.origin()}:n[e]=i})),n}var eZ=["list","item","blockQuote"],tZ=["UL","OL","BLOCKQUOTE"];function nZ(e,t){var n,r=e.child(t);return!r.childCount||1===r.childCount&&!(null===(n=r.firstChild.text)||void 0===n?void 0:n.trim())}function rZ(e,t,n){var r=it(t)-1,i=ot(t)-1,o=n[r].getBoundingClientRect(),a=n[i].offsetTop-n[r].offsetTop+n[i].clientHeight;return{height:a<=0?n[r].clientHeight:a+iZ(e,n,Math.min(i+1,e.childCount-1)),rect:o}}function iZ(e,t,n){var r=e.childCount-1,i=0;while(n<=r&&nZ(e,n))i+=t[n].clientHeight,n+=1;return i}function oZ(e,t){while(!e.getAttribute("data-nodeid")&&e.parentElement!==t)e=e.parentElement;return e}function aZ(e,t){var n=0;while(e&&e!==t){if(Ie(tZ,e.tagName)||(n+=e.offsetTop),e.offsetParent===t.offsetParent)break;e=e.parentElement}return n}function sZ(e,t){var n=t,r=null;while(n){var i=n.firstElementChild;if(!i)break;var o=cZ(i,e,aZ(n,t));r=n,n=o}var a=n||r;return a===t?null:a}function cZ(e,t,n){return e&&t>n+e.offsetTop?cZ(e.nextElementSibling,t,n)||e:null}function lZ(e,t,n,r){var i=Math.min((e-t)/n,1);return i*r}function uZ(e,t){var n=e.querySelector('[data-nodeid="'+t.id+'"]');while(!n||lt(t))t=t.parent,n=e.querySelector('[data-nodeid="'+t.id+'"]');return dZ({mdNode:t,el:n})}function dZ(e){var t=e.mdNode,n=e.el;while((Ie(eZ,t.type)||"table"===t.type)&&t.firstChild)t=t.firstChild,n=n.firstElementChild;return{mdNode:t,el:n}}var fZ={};function pZ(e,t){fZ[e]=fZ[e]||{},fZ[e].height=t}function hZ(e,t){fZ[e]=fZ[e]||{},fZ[e].offsetTop=t}function mZ(e){return fZ[e]&&fZ[e].height}function vZ(e){return fZ[e]&&fZ[e].offsetTop}function gZ(e){e&&(delete fZ[Number(e.getAttribute("data-nodeid"))],Xe(e.children).forEach((function(e){gZ(e)})))}function bZ(e,t,n){var r=mZ(n),i=vZ(n),o=r||e.clientHeight,a=i||aZ(e,t)||e.offsetTop;return r||pZ(n,o),i||hZ(n,a),{nodeHeight:o,offsetTop:a}}var yZ=un("md-preview-highlight");function wZ(e,t){var n=e.firstChild;while(n&&n.next){if(at(n.next)>t+1)break;n=n.next}return n}var kZ=function(){function e(e,t){var n=document.createElement("div");this.el=n,this.eventEmitter=e,this.isViewer=!!t.isViewer,this.el.className=un("md-preview");var r=t.linkAttributes,i=t.customHTMLRenderer,o=t.sanitizer,a=t.highlight,s=void 0!==a&&a;this.renderer=new VX({gfm:!0,nodeId:!0,convertors:ZQ(r,i)}),this.cursorNodeId=null,this.sanitizer=o,this.initEvent(s),this.initContentSection(),this.isViewer&&(this.previewContent.style.overflowWrap="break-word")}return e.prototype.initContentSection=function(){this.previewContent=wn('<div class="'+un("contents")+'"></div>'),this.isViewer||this.el.appendChild(this.previewContent)},e.prototype.toggleActive=function(e){yn(this.el,"active",e)},e.prototype.initEvent=function(e){var t=this;this.eventEmitter.listen("updatePreview",this.update.bind(this)),this.isViewer||(e&&(this.eventEmitter.listen("changeToolbarState",(function(e){var n=e.mdNode,r=e.cursorPos;t.updateCursorNode(n,r)})),this.eventEmitter.listen("blur",(function(){t.removeHighlight()}))),Eo(this.el,"scroll",(function(e){t.eventEmitter.emit("scroll","preview",sZ(e.target.scrollTop,t.previewContent))})),this.eventEmitter.listen("changePreviewTabPreview",(function(){return t.toggleActive(!0)})),this.eventEmitter.listen("changePreviewTabWrite",(function(){return t.toggleActive(!1)})))},e.prototype.removeHighlight=function(){if(this.cursorNodeId){var e=this.getElementByNodeId(this.cursorNodeId);e&&ie(e,yZ)}},e.prototype.updateCursorNode=function(e,t){e&&(e=vt(e,(function(e){return!mt(e)})),"tableRow"===e.type?e=wZ(e,t[1]):"tableBody"===e.type&&(e=null));var n=e?e.id:null;if(this.cursorNodeId!==n){var r=this.getElementByNodeId(this.cursorNodeId),i=this.getElementByNodeId(n);r&&ie(r,yZ),i&&Q(i,yZ),this.cursorNodeId=n}},e.prototype.getElementByNodeId=function(e){return e?this.previewContent.querySelector('[data-nodeid="'+e+'"]'):null},e.prototype.update=function(e){var t=this;e.forEach((function(e){return t.replaceRangeNodes(e)})),this.eventEmitter.emit("afterPreviewRender",this)},e.prototype.replaceRangeNodes=function(e){var t=this,n=e.nodes,r=e.removedNodeRange,i=this.previewContent,o=this.eventEmitter.emitReduce("beforePreviewRender",this.sanitizer(n.map((function(e){return t.renderer.render(e)})).join("")));if(r){var a=r.id,s=a[0],c=a[1],l=this.getElementByNodeId(s),u=this.getElementByNodeId(c);if(l){l.insertAdjacentHTML("beforebegin",o);var d=l;while(d&&d!==u){var f=d.nextElementSibling;gn(d),gZ(d),d=f}(null===d||void 0===d?void 0:d.parentNode)&&(gn(d),gZ(d))}}else i.insertAdjacentHTML("afterbegin",o)},e.prototype.getRenderer=function(){return this.renderer},e.prototype.destroy=function(){wo(this.el,"scroll"),this.el=null},e.prototype.getElement=function(){return this.el},e.prototype.getHTML=function(){return this.previewContent.innerHTML},e.prototype.setHTML=function(e){this.previewContent.innerHTML=e},e.prototype.setHeight=function(e){A(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){A(this.el,{minHeight:e+"px"})},e}();function xZ(e,t){var n=e.depth;while(n){var r=e.node(n);if(t(r,n))return{node:r,depth:n,offset:n>0?e.before(n):0};n-=1}return null}function CZ(e){return!!xZ(e,(function(e){var t=e.type;return"listItem"===t.name||"bulletList"===t.name||"orderedList"===t.name}))}function OZ(e){return!!xZ(e,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}))}function SZ(e){return xZ(e,(function(e){var t=e.type;return"listItem"===t.name}))}function TZ(e){return{tag:e,getAttrs:function(e){var t=e.getAttribute("data-raw-html");return p({},t&&{rawHTML:t})}}}function EZ(e){return Object.keys(e).reduce((function(t,n){return"rawHTML"!==n&&e[n]&&(n="className"===n?"class":n,t[n]=e[n]),t}),{})}function _Z(e){return{tag:e,getAttrs:function(e){return["rawHTML","colspan","rowspan","extended"].reduce((function(t,n){var r="rawHTML"===n?"data-raw-html":n,i=e.getAttribute(r);return i&&(t[n]=Ie(["rawHTML","extended"],n)?i:Number(i)),t}),{})}}}function MZ(){return{htmlAttrs:{default:null},classNames:{default:null}}}function IZ(e){var t=e.htmlAttrs,n=e.classNames;return p(p({},t),{class:n?n.join(" "):null})}function jZ(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.contentMatchAt(r).findWrapping(t);if(o){var a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}return null}function DZ(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(a){for(var s=a.length?a[a.length-1]:t,c=s.contentMatch,l=r;c&&l<i;l+=1)c=c.matchType(n.child(l).type);if(c&&c.validEnd)return a}return null}function NZ(e,t,n,r){var i=jZ(e,n),o=DZ(t,n);if(i&&o){var a=i.map((function(e){return{type:e}})),s=o.map((function(e){return{type:e,attrs:r}}));return a.concat({type:n}).concat(s)}return null}function AZ(e,t,n,i,a){for(var s=t.start,c=t.end,l=t.startIndex,u=t.endIndex,d=t.parent,f=r["Fragment"].empty,p=n.length-1;p>=0;p-=1)f=r["Fragment"].from(n[p].type.create(n[p].attrs,f));e.step(new o["b"](s-(i?2:0),c,s,c,new r["Slice"](f,0,0),n.length,!0));var h=0;for(p=0;p<n.length;p+=1)if(n[p].type===a){h=p+1;break}for(var m=n.length-h,v=s+n.length-(i?2:0),g=(p=l,u);p<g;p+=1){var b=p===l;!b&&Object(o["g"])(e.doc,v,m)&&(e.split(v,m),v+=2*m),v+=d.child(p).nodeSize}return e}function LZ(e,t,n,i){var o=t.$from,a=t.$to,s=t.depth,c=t,l=!1;if(s>=2&&o.node(s-1).type.compatibleContent(n)&&0===t.startIndex&&o.index(s-1)){var u=e.doc.resolve(t.start-2);c=new r["NodeRange"](u,u,s),t.endIndex<t.parent.childCount&&(t=new r["NodeRange"](o,e.doc.resolve(a.end(s)),s)),l=!0}var d=NZ(c,t,n,i);return d?AZ(e,t,d,l,n):e}function PZ(e,t){var n=e.resolve(t);while("paragraph"!==n.node().type.name)t-=2,n=e.resolve(t);return SZ(n)}function BZ(e,t){var n=t.$from,r=t.$to,i=SZ(n),o=SZ(r);if(i&&o)while(o){var a=o.offset,s=o.node,c={task:!s.attrs.task,checked:!1};if(e.setNodeMarkup(a,null,c),a===i.offset)break;o=PZ(e.doc,a)}return e}function FZ(e,t,n){var r=t.$from,i=t.$to,o=SZ(r),a=SZ(i);if(o&&a)while(a){var s=a.offset,c=a.node,l=a.depth;c.attrs.task&&e.setNodeMarkup(s,null,{task:!1,checked:!1});var u=e.doc.resolve(s);if(u.parent.type!==n){var d=u.before(l-1);e.setNodeMarkup(d,n)}if(s===o.offset)break;a=PZ(e.doc,s)}return e}function RZ(e){return function(t,n){var r=t.selection,i=t.tr,o=r.$from,a=r.$to,s=o.blockRange(a);if(s){var c=CZ(o)?FZ(i,s,e):LZ(i,s,e);return n(c),!0}return!1}}function qZ(){return function(e,t){var n=e.selection,r=e.tr,i=e.schema,o=n.$from,a=n.$to,s=o.blockRange(a);if(s){var c=CZ(o)?BZ(r,s):LZ(r,s,i.nodes.bulletList,{task:!0});return t(c),!0}return!1}}function HZ(e){return function(t,n){var i=t.tr,a=t.selection,s=a.$from,c=a.$to,l=s.blockRange(c,(function(t){var n=t.childCount,r=t.firstChild;return!!n&&r.type===e}));if(l&&l.startIndex>0){var u=l.parent,d=u.child(l.startIndex-1);if(d.type!==e)return!1;var f=d.lastChild&&d.lastChild.type===u.type,p=f?r["Fragment"].from(e.create()):null,h=new r["Slice"](r["Fragment"].from(e.create(null,r["Fragment"].from(u.type.create(null,p)))),f?3:1,0),m=l.start,v=l.end;return i.step(new o["b"](m-(f?3:1),v,m,v,h,1,!0)),n(i),!0}return!1}}function UZ(e,t,n){var i=t.$from,a=t.$to,s=t.end,c=t.depth,l=t.parent,u=a.end(c);return s<u&&(e.step(new o["b"](s-1,u,s,u,new r["Slice"](r["Fragment"].from(n.create(null,l.copy())),1,0),1,!0)),t=new r["NodeRange"](e.doc.resolve(i.pos),e.doc.resolve(u),c)),e.lift(t,Object(o["k"])(t)),e}function VZ(e,t){for(var n=t.parent,i=t.end,a=t.endIndex-1,s=t.startIndex;a>s;a-=1)i-=n.child(a).nodeSize,e.delete(i-1,i+1);var c=e.doc.resolve(t.start),l=c.nodeAfter,u=0===t.startIndex,d=t.endIndex===n.childCount,f=c.node(-1),p=c.index(-1),h=f.canReplace(p+(u?0:1),p+1,null===l||void 0===l?void 0:l.content.append(d?r["Fragment"].empty:r["Fragment"].from(n)));if(l&&h){var m=c.pos,v=m+l.nodeSize;e.step(new o["b"](m-(u?1:0),v+(d?1:0),m+1,v-1,new r["Slice"]((u?r["Fragment"].empty:r["Fragment"].from(n.copy(r["Fragment"].empty))).append(d?r["Fragment"].empty:r["Fragment"].from(n.copy(r["Fragment"].empty))),u?0:1,d?0:1),u?0:1))}return e}function zZ(e){return function(t,n){var r=t.tr,i=t.selection,o=i.$from,a=i.$to,s=o.blockRange(a,(function(t){var n=t.childCount,r=t.firstChild;return!!n&&r.type===e}));if(s){var c=o.node(s.depth-1).type===e,l=c?UZ(r,s,e):VZ(r,s);return n(l),!0}return!1}}function $Z(e){return function(t,n){var i=t.tr,s=t.selection,c=s.$from,l=s.$to;if(c.depth<2||!c.sameParent(l))return!1;var u=c.node(-1);if(u.type!==e)return!1;if(0===c.parent.content.size&&c.node(-1).childCount===c.indexAfter(-1)){if(2===c.depth||c.node(-3).type!==e||c.index(-2)!==c.node(-2).childCount-1)return!1;for(var d=c.index(-1)>0,f=r["Fragment"].empty,p=c.depth-(d?1:2);p>=c.depth-3;p-=1)f=r["Fragment"].from(c.node(p).copy(f));return f=f.append(r["Fragment"].from(e.createAndFill())),i.replace(d?c.before():c.before(-1),c.after(-3),new r["Slice"](f,d?3:2,2)),i.setSelection(a["Selection"].near(i.doc.resolve(c.pos+(d?3:2)))),n(i),!0}var h=l.pos===c.end()?u.contentMatchAt(0).defaultType:null,m=h&&[null,{type:h}];return i.delete(c.pos,l.pos),!!Object(o["g"])(i.doc,c.pos,2,m)&&(i.split(c.pos,2,m),n(i),!0)}}function WZ(){return function(){return function(e,t){var n=e.selection,r=e.schema,i=n.$from,o=n.$to,a=i.blockRange(o);return!(!a||!CZ(i))&&HZ(r.nodes.listItem)(e,t)}}}function GZ(){return function(){return function(e,t){var n=e.selection,r=e.schema,i=n.$from,o=n.$to,a=i.blockRange(o);return!(!a||!CZ(i))&&zZ(r.nodes.listItem)(e,t)}}}function KZ(){return{indent:WZ(),outdent:GZ()}}var JZ=new Map,YZ=function(){function e(e,t,n,r){this.table=e,this.tableRows=t,this.tableStartPos=n,this.rowInfo=r}return e.create=function(t){var n=xZ(t,(function(e){var t=e.type;return"table"===t.name}));if(n){var r=n.node,i=n.depth,o=n.offset,a=JZ.get(r);if((null===a||void 0===a?void 0:a.tableStartPos)===o+1)return a;var s=[],c=t.start(i),l=r.child(0),u=r.child(1),d=XZ(l,c),f=XZ(u,c+l.nodeSize);l.forEach((function(e){return s.push(e)})),u.forEach((function(e){return s.push(e)}));var p=new e(r,s,c,d.concat(f));return JZ.set(r,p),p}return null},Object.defineProperty(e.prototype,"totalRowCount",{get:function(){return this.rowInfo.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalColumnCount",{get:function(){return this.rowInfo[0].length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableStartOffset",{get:function(){return this.tableStartPos},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableEndOffset",{get:function(){return this.tableStartPos+this.table.nodeSize-1},enumerable:!1,configurable:!0}),e.prototype.getCellInfo=function(e,t){return this.rowInfo[e][t]},e.prototype.posAt=function(e,t){for(var n=0,r=this.tableStartPos;;n+=1){var i=r+this.tableRows[n].nodeSize;if(n===e){var o=t;while(o<this.totalColumnCount&&this.rowInfo[n][o].offset<r)o+=1;return o===this.totalColumnCount?i:this.rowInfo[n][o].offset}r=i}},e.prototype.getNodeAndPos=function(e,t){var n=this.rowInfo[e][t];return{node:this.table.nodeAt(n.offset-this.tableStartOffset),pos:n.offset}},e.prototype.extendedRowspan=function(e,t){return!1},e.prototype.extendedColspan=function(e,t){return!1},e.prototype.getRowspanCount=function(e,t){return 0},e.prototype.getColspanCount=function(e,t){return 0},e.prototype.decreaseColspanCount=function(e,t){return 0},e.prototype.decreaseRowspanCount=function(e,t){return 0},e.prototype.getColspanStartInfo=function(e,t){return null},e.prototype.getRowspanStartInfo=function(e,t){return null},e.prototype.getCellStartOffset=function(e,t){var n=this.rowInfo[e][t].offset;return this.extendedRowspan(e,t)?this.posAt(e,t):n},e.prototype.getCellEndOffset=function(e,t){var n=this.rowInfo[e][t],r=n.offset,i=n.nodeSize;return this.extendedRowspan(e,t)?this.posAt(e,t):r+i},e.prototype.getCellIndex=function(e){for(var t=0;t<this.totalRowCount;t+=1)for(var n=this.rowInfo[t],r=0;r<this.totalColumnCount;r+=1)if(n[r].offset+1>e.pos)return[t,r];return[0,0]},e.prototype.getRectOffsets=function(e,t){var n,r,i;void 0===t&&(t=e),e.pos>t.pos&&(n=[t,e],e=n[0],t=n[1]);var o=this.getCellIndex(e),a=o[0],s=o[1],c=this.getCellIndex(t),l=c[0],u=c[1];return r=Ke(a,l),a=r[0],l=r[1],i=Ke(s,u),s=i[0],u=i[1],this.getSpannedOffsets({startRowIdx:a,startColIdx:s,endRowIdx:l,endColIdx:u})},e.prototype.getSpannedOffsets=function(e){return e},e}(),XZ=function(e,t){var n=[];return e.forEach((function(e,r){var i={rowspanMap:{},colspanMap:{},length:0};e.forEach((function(e,n){var o=e.nodeSize,a=0;while(i[a])a+=1;i[a]={offset:t+r+n+2,nodeSize:o},i.length+=1})),n.push(i)})),n};function QZ(e,t){return Ge(YZ.prototype,e),XZ=t,YZ}function ZZ(e,t,n){for(var r=n.startRowIdx,i=n.startColIdx,o=n.endRowIdx,s=n.endColIdx,c=[],l=r;l<=o;l+=1)for(var u=i;u<=s;u+=1){var d=t.getCellInfo(l,u),f=d.offset,p=d.nodeSize;c.push(new a["SelectionRange"](e.resolve(f+1),e.resolve(f+p-1)))}return c}function e0(e,t){var n=[];return e.childCount&&n.push(e),t.childCount&&n.push(t),r["Fragment"].from(n)}var t0=function(e){function t(t,n){void 0===n&&(n=t);var r=this,i=t.node(0),o=YZ.create(t),a=o.getRectOffsets(t,n),s=ZZ(i,o,a);return r=e.call(this,s[0].$from,s[0].$to,s)||this,r.startCell=t,r.endCell=n,r.offsetMap=o,r.isCellSelection=!0,r.visible=!1,r}return f(t,e),t.prototype.map=function(e,n){var r=this.startCell.pos,i=this.endCell.pos,o=e.resolve(n.map(r)),s=e.resolve(n.map(i)),c=YZ.create(o);if(this.offsetMap.totalColumnCount>c.totalColumnCount||this.offsetMap.totalRowCount>c.totalRowCount){var l={tableBody:1,tableRow:2,tableCell:3,paragraph:4},u=l[s.parent.type.name],d=s.end(s.depth-u),f=Math.min(d-4,s.pos);return a["TextSelection"].create(e,f)}return new t(o,s)},t.prototype.eq=function(e){return e instanceof t&&e.startCell.pos===this.startCell.pos&&e.endCell.pos===this.endCell.pos},t.prototype.content=function(){for(var e=this.startCell.node(-2),t=this.startCell.start(-2),n=e.child(1).firstChild,i=e.child(0).type.create(),o=e.child(1).type.create(),a=YZ.create(this.startCell),s=a.getRectOffsets(this.startCell,this.endCell),c=s.startRowIdx,l=s.startColIdx,u=s.endRowIdx,d=s.endColIdx,f=!1,p=c;p<=u;p+=1){for(var h=[],m=l;m<=d;m+=1){var v=a.getCellInfo(p,m).offset,g=e.nodeAt(v-t);g&&(f="tableHeadCell"===g.type.name,a.extendedRowspan(p,m)||a.extendedColspan(p,m)?h.push(g.type.create({extended:!0})):h.push(g.copy(g.content)))}var b=n.copy(r["Fragment"].from(h)),y=f?i:o;y.content=y.content.append(r["Fragment"].from(b))}return new r["Slice"](e0(i,o),1,1)},t}(a["Selection"]);function n0(e,t,n){for(var r=t.nodes,i=r.tableRow,o=r.tableHeadCell,a=r.paragraph,s=[],c=0;c<e;c+=1){var l=n&&n[c],u=a.create(null,l?t.text(l):[]);s.push(o.create(null,u))}return[i.create(null,s)]}function r0(e,t,n,r){for(var i=n.nodes,o=i.tableRow,a=i.tableBodyCell,s=i.paragraph,c=[],l=0;l<e;l+=1){for(var u=[],d=0;d<t;d+=1){var f=r&&r[l*t+d],p=s.create(null,f?n.text(f):[]);u.push(a.create(null,p))}c.push(o.create(null,u))}return c}function i0(e,t,n,r){void 0===r&&(r=null);for(var i=n.nodes,o=i.tableHeadCell,a=i.tableBodyCell,s=i.paragraph,c=0===t?o:a,l=[],u=0;u<e;u+=1)l.push(c.create(r,s.create()));return l}function o0(e,t){while(e&&e!==t){if("TD"===e.nodeName||"TH"===e.nodeName)return e;e=e.parentNode}return null}function a0(e){return xZ(e,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}))}function s0(e){if(e instanceof a["TextSelection"]){var t=e.$anchor,n=a0(t);if(n){var r=t.node(0).resolve(t.before(n.depth));return{anchor:r,head:r}}}var i=e,o=i.startCell,s=i.endCell;return{anchor:o,head:s}}function c0(e){var t;if(e.size){var n=e.content,r=e.openStart,i=e.openEnd;if(1!==n.childCount)return null;while(1===n.childCount&&(r>0&&i>0||"table"===(null===(t=n.firstChild)||void 0===t?void 0:t.type.name)))r-=1,i-=1,n=n.firstChild.content;if("tableHead"===n.firstChild.type.name||"tableBody"===n.firstChild.type.name)return n}return null}function l0(e){var t=e.startRowIdx,n=e.startColIdx,r=e.endRowIdx,i=e.endColIdx,o=r-t+1,a=i-n+1;return{rowCount:o,columnCount:a}}function u0(e,t){return p(p({},e.attrs),t)}var d0=new a["PluginKey"]("cellSelection"),f0=2,p0=function(){function e(e){this.view=e,this.handlers={mousedown:this.handleMousedown.bind(this),mousemove:this.handleMousemove.bind(this),mouseup:this.handleMouseup.bind(this)},this.startCellPos=null,this.init()}return e.prototype.init=function(){this.view.dom.addEventListener("mousedown",this.handlers.mousedown)},e.prototype.handleMousedown=function(e){var t=o0(e.target,this.view.dom);if(e.button!==f0){if(t){var n=this.getCellPos(e);n&&(this.startCellPos=n),this.bindEvent()}}else e.preventDefault()},e.prototype.handleMousemove=function(e){var t,n=d0.getState(this.view.state),r=this.getCellPos(e),i=this.startCellPos;n?t=this.view.state.doc.resolve(n):i!==r&&(t=i),t&&i&&r&&this.setCellSelection(i,r)},e.prototype.handleMouseup=function(){this.startCellPos=null,this.unbindEvent(),null!==d0.getState(this.view.state)&&this.view.dispatch(this.view.state.tr.setMeta(d0,-1))},e.prototype.bindEvent=function(){var e=this.view.dom;e.addEventListener("mousemove",this.handlers.mousemove),e.addEventListener("mouseup",this.handlers.mouseup)},e.prototype.unbindEvent=function(){var e=this.view.dom;e.removeEventListener("mousemove",this.handlers.mousemove),e.removeEventListener("mouseup",this.handlers.mouseup)},e.prototype.getCellPos=function(e){var t=e.clientX,n=e.clientY,r=this.view.posAtCoords({left:t,top:n});if(r){var i=this.view.state.doc,o=i.resolve(r.pos),a=a0(o);if(a){var s=o.before(a.depth);return i.resolve(s)}}return null},e.prototype.setCellSelection=function(e,t){var n=this.view.state,r=n.selection,i=n.tr,o=null===d0.getState(this.view.state),a=new t0(e,t);if(o||!r.eq(a)){var s=i.setSelection(a);o&&s.setMeta(d0,t.pos),this.view.dispatch(s)}},e.prototype.destroy=function(){this.view.dom.removeEventListener("mousedown",this.handlers.mousedown)},e}(),h0=un("cell-selected");function m0(e){var t=e.selection,n=e.doc;if(t instanceof t0){var r=[],o=t.ranges;return o.forEach((function(e){var t=e.$from,n=e.$to;r.push(i["Decoration"].node(t.pos-1,n.pos+1,{class:h0}))})),i["DecorationSet"].create(n,r)}return null}function v0(){return new a["Plugin"]({key:d0,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(d0);if(n)return-1===n?null:n;if(ce(t)||!e.docChanged)return t;var r=e.mapping.mapResult(t),i=r.deleted,o=r.pos;return i?null:o}},props:{decorations:m0,createSelectionBetween:function(e){var t=e.state;return ce(d0.getState(t))?null:t.selection}},view:function(e){return new p0(e)}})}var g0=function(){function e(){this.keys=[],this.values=[]}return e.prototype.getKeyIndex=function(e){return B(e,this.keys)},e.prototype.get=function(e){return this.values[this.getKeyIndex(e)]},e.prototype.set=function(e,t){var n=this.getKeyIndex(e);return n>-1?this.values[n]=t:(this.keys.push(e),this.values.push(t)),this},e.prototype.has=function(e){return this.getKeyIndex(e)>-1},e.prototype.delete=function(e){var t=this.getKeyIndex(e);return t>-1&&(this.keys.splice(t,1),this.values.splice(t,1),!0)},e.prototype.forEach=function(e,t){var n=this;void 0===t&&(t=this),this.values.forEach((function(r,i){r&&n.keys[i]&&e.call(t,r,n.keys[i],n)}))},e.prototype.clear=function(){this.keys=[],this.values=[]},e}(),b0="en-US",y0=function(){function e(){this.code=b0,this.langs=new g0}return e.prototype.setCode=function(e){this.code=e||b0},e.prototype.setLanguage=function(e,t){var n=this;e=[].concat(e),e.forEach((function(e){if(n.langs.has(e)){var r=n.langs.get(e);n.langs.set(e,y(r,t))}else n.langs.set(e,t)}))},e.prototype.get=function(e,t){t||(t=this.code);var n=this.langs.get(t);n||(n=this.langs.get(b0));var r=n[e];if(!r)throw new Error('There is no text key "'+e+'" in '+t);return r},e}(),w0=new y0,k0=[[{action:"Add row to up",command:"addRowToUp",disableInThead:!0,className:"add-row-up"},{action:"Add row to down",command:"addRowToDown",disableInThead:!0,className:"add-row-down"},{action:"Remove row",command:"removeRow",disableInThead:!0,className:"remove-row"}],[{action:"Add column to left",command:"addColumnToLeft",className:"add-column-left"},{action:"Add column to right",command:"addColumnToRight",className:"add-column-right"},{action:"Remove column",command:"removeColumn",className:"remove-column"}],[{action:"Align column to left",command:"alignColumn",payload:{align:"left"},className:"align-column-left"},{action:"Align column to center",command:"alignColumn",payload:{align:"center"},className:"align-column-center"},{action:"Align column to right",command:"alignColumn",payload:{align:"right"},className:"align-column-right"}],[{action:"Remove table",command:"removeTable",className:"remove-table"}]];function x0(e,t){return k0.map((function(n){return n.map((function(n){var r=n.action,i=n.command,o=n.payload,a=n.disableInThead,s=n.className;return{label:w0.get(r),onClick:function(){e.emit("command",i,o)},disabled:t&&!!a,className:s}}))})).concat()}function C0(e){return new a["Plugin"]({props:{handleDOMEvents:{contextmenu:function(t,n){var r=o0(n.target,t.dom);if(r){n.preventDefault();var i=n,o=i.clientX,a=i.clientY,s=t.dom.parentNode.getBoundingClientRect(),c=s.left,l=s.top,u="TH"===r.nodeName;return e.emit("contextmenu",{pos:{left:o-c+10+"px",top:a-l+30+"px"},menuGroups:x0(e,u),tableCell:r}),!0}return!1}}}})}function O0(){return new a["Plugin"]({props:{handleDOMEvents:{mousedown:function(e,t){var n=t,r=n.clientX,i=n.clientY,o=e.posAtCoords({left:r,top:i});if(o){var a=e.state,s=a.doc,c=a.tr,l=s.resolve(o.pos),u=SZ(l),d=t.target,f=getComputedStyle(d,":before"),h=t,m=h.offsetX,v=h.offsetY;if(!u||!cn(f,m,v))return!1;t.preventDefault();var g=l.before(u.depth),b=u.node.attrs;return c.setNodeMarkup(g,null,p(p({},b),{checked:!b.checked})),e.dispatch(c),!0}return!1}}}})}var S0=["image","link","customBlock","frontMatter"],T0=["strong","strike","emph","code"],E0=["bulletList","orderedList","taskList"];function _0(e,t){var n=e.type.name;return"listItem"===n?e.attrs.task?"taskList":t.type.name:-1!==n.indexOf("table")?"table":n}function M0(e,t){t[e]={active:!0},E0.filter((function(t){return t!==e})).forEach((function(e){t[e]&&delete t[e]}))}function I0(e,t,n,r){T0.forEach((function(i){var o=n.marks[i],a=e.marksAcross(t)||[],s=!!o.isInSet(a);s&&(r[i]={active:!0})}))}function j0(e,t,n){var r=e.$from,i=e.$to,o=e.from,a=e.to,s={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}};return t.nodesBetween(o,a,(function(e,t,o){var a=_0(e,o);Ie(S0,a)||(Ie(E0,a)?(M0(a,s),s.indent.disabled=!1,s.outdent.disabled=!1):"paragraph"===a||"text"===a?I0(r,i,n,s):s[a]={active:!0})})),s}function D0(e){return new a["Plugin"]({view:function(){return{update:function(t){var n=t.state,r=n.selection,i=n.doc,o=n.schema;e.emit("changeToolbarState",{toolbarState:j0(r,i,o)})}}}})}var N0=function(){function e(e,t,n,r){var o=this;this.openEditor=function(){if(o.innerEditorView)throw new Error("The editor is already opened.");o.dom.draggable=!1,o.wrapper.style.display="none",o.innerViewContainer.style.display="block",o.innerEditorView=new i["EditorView"](o.innerViewContainer,{state:a["EditorState"].create({doc:o.node,plugins:[Object(s["a"])({"Mod-z":function(){return Object(u["c"])(o.innerEditorView.state,o.innerEditorView.dispatch)},"Shift-Mod-z":function(){return Object(u["b"])(o.innerEditorView.state,o.innerEditorView.dispatch)},Tab:function(e,t){return t(e.tr.insertText("\t")),!0},Enter:c["f"],Escape:function(){return o.cancelEditing(),!0},"Ctrl-Enter":function(){return o.saveAndFinishEditing(),!0}}),Object(u["a"])()]}),dispatchTransaction:function(e){return o.dispatchInner(e)},handleDOMEvents:{mousedown:function(){return o.editorView.hasFocus()&&o.innerEditorView.focus(),!0},blur:function(){return o.saveAndFinishEditing(),!0}}}),o.innerEditorView.focus()},this.node=e,this.editorView=t,this.getPos=n,this.toDOMAdaptor=r,this.innerEditorView=null,this.canceled=!1,this.dom=document.createElement("div"),this.dom.className=un("custom-block"),this.wrapper=document.createElement("div"),this.wrapper.className=un("custom-block-view"),this.createInnerViewContainer(),this.renderCustomBlock(),this.dom.appendChild(this.innerViewContainer),this.dom.appendChild(this.wrapper)}return e.prototype.renderToolArea=function(){var e=this,t=document.createElement("div"),n=document.createElement("span"),r=document.createElement("button");t.className="tool",n.textContent=this.node.attrs.info,n.className="info",r.type="button",r.addEventListener("click",(function(){return e.openEditor()})),t.appendChild(n),t.appendChild(r),this.wrapper.appendChild(t)},e.prototype.renderCustomBlock=function(){var e=this.toDOMAdaptor.getToDOMNode(this.node.attrs.info);if(e){var t=e(this.node);while(this.wrapper.hasChildNodes())this.wrapper.removeChild(this.wrapper.lastChild);t&&this.wrapper.appendChild(t),this.renderToolArea()}},e.prototype.createInnerViewContainer=function(){this.innerViewContainer=document.createElement("div"),this.innerViewContainer.className=un("custom-block-editor"),this.innerViewContainer.style.display="none"},e.prototype.closeEditor=function(){this.innerEditorView&&(this.innerEditorView.destroy(),this.innerEditorView=null,this.innerViewContainer.style.display="none"),this.wrapper.style.display="block"},e.prototype.saveAndFinishEditing=function(){var e=this.editorView.state.selection.to,t=this.editorView.state;this.editorView.dispatch(t.tr.setSelection(et(t.tr,e))),this.editorView.focus(),this.renderCustomBlock(),this.closeEditor()},e.prototype.cancelEditing=function(){var e=Object(u["d"])(this.innerEditorView.state);this.canceled=!0;while(e--)Object(u["c"])(this.innerEditorView.state,this.innerEditorView.dispatch),Object(u["c"])(this.editorView.state,this.editorView.dispatch);this.canceled=!1;var t=this.editorView.state.selection.to,n=this.editorView.state;this.editorView.dispatch(n.tr.setSelection(a["TextSelection"].create(n.doc,t))),this.editorView.focus(),this.closeEditor()},e.prototype.dispatchInner=function(e){var t=this.innerEditorView.state.applyTransaction(e),n=t.state,r=t.transactions;if(this.innerEditorView.updateState(n),!this.canceled&&qn(this.getPos)){for(var i=this.editorView.state.tr,a=o["d"].offset(this.getPos()+1),s=0;s<r.length;s+=1)for(var c=r[s].steps,l=0;l<c.length;l+=1)i.step(c[l].map(a));i.docChanged&&this.editorView.dispatch(i)}},e.prototype.update=function(e){return!!e.sameMarkup(this.node)&&(this.node=e,this.innerEditorView||this.renderCustomBlock(),!0)},e.prototype.stopEvent=function(e){return!!this.innerEditorView&&!!e.target&&this.innerEditorView.dom.contains(e.target)},e.prototype.ignoreMutation=function(){return!0},e.prototype.destroy=function(){this.dom.removeEventListener("dblclick",this.openEditor),this.closeEditor()},e}(),A0="image-link",L0=function(){function e(e,t,n,r){var i,o=this;this.handleMousedown=function(e){e.preventDefault();var t=e.target,n=e.offsetX,r=e.offsetY;if(o.imageLink&&qn(o.getPos)&&Rt(t,A0)){var i=getComputedStyle(t,":before");if(e.stopPropagation(),cn(i,n,r)){var a=o.view.state.tr,s=o.getPos();a.setSelection(et(a,s,s+1)),o.view.dispatch(a),o.eventEmitter.emit("openPopup","link",o.imageLink.attrs)}}},this.node=e,this.view=t,this.getPos=n,this.eventEmitter=r,this.imageLink=null!==(i=e.marks.filter((function(e){var t=e.type;return"link"===t.name}))[0])&&void 0!==i?i:null,this.dom=this.createElement(),this.bindEvent()}return e.prototype.createElement=function(){var e=this.createImageElement(this.node);if(this.imageLink){var t=document.createElement("span");return t.className=A0,t.appendChild(e),t}return e},e.prototype.createImageElement=function(e){var t=document.createElement("img"),n=e.attrs,r=n.imageUrl,i=n.altText,o=IZ(e.attrs);return t.src=r,i&&(t.alt=i),On(o,t),t},e.prototype.bindEvent=function(){this.imageLink&&this.dom.addEventListener("mousedown",this.handleMousedown)},e.prototype.stopEvent=function(){return!0},e.prototype.destroy=function(){this.imageLink&&this.dom.removeEventListener("mousedown",this.handleMousedown)},e}(),P0="toastui-editor-ww-code-block",B0="toastui-editor-ww-code-block-language",F0=function(){function e(e,t,n,r){var i=this;this.dom=null,this.contentDOM=null,this.input=null,this.timer=null,this.handleMousedown=function(e){var t=e.target,n=getComputedStyle(t,":after");if("none"!==n.backgroundImage&&qn(i.getPos)){var r=i.view.coordsAtPos(i.getPos()),o=r.top,a=r.right;i.createLanguageEditor({top:o,right:a})}},this.handleKeydown=function(e){"Enter"===e.key&&i.input&&(e.preventDefault(),i.changeLanguage())},this.node=e,this.view=t,this.getPos=n,this.eventEmitter=r,this.createElement(),this.bindDOMEvent(),this.bindEvent()}return e.prototype.createElement=function(){var e=this.node.attrs.language,t=document.createElement("div");t.setAttribute("data-language",e||"text"),t.className=P0;var n=this.createCodeBlockElement(),r=n.firstChild;t.appendChild(n),this.dom=t,this.contentDOM=r},e.prototype.createCodeBlockElement=function(){var e=document.createElement("pre"),t=document.createElement("code"),n=this.node.attrs.language,r=IZ(this.node.attrs);return n&&t.setAttribute("data-language",n),On(r,e),e.appendChild(t),e},e.prototype.createLanguageEditor=function(e){var t=this,n=e.top,r=e.right,i=document.createElement("span");i.className=B0;var o=document.createElement("input");o.type="text",o.value=this.node.attrs.language,i.appendChild(o),this.view.dom.parentElement.appendChild(i);var a=i.clientWidth;A(i,{top:n+10+"px",left:r-a-10+"px",width:a+"px"}),this.input=o,this.input.addEventListener("blur",(function(){return t.changeLanguage()})),this.input.addEventListener("keydown",this.handleKeydown),this.clearTimer(),this.timer=setTimeout((function(){t.input.focus()}))},e.prototype.bindDOMEvent=function(){this.dom&&this.dom.addEventListener("click",this.handleMousedown)},e.prototype.bindEvent=function(){var e=this;this.eventEmitter.listen("scroll",(function(){e.input&&e.reset()}))},e.prototype.changeLanguage=function(){if(this.input&&qn(this.getPos)){var e=this.input.value;this.reset();var t=this.getPos(),n=this.view.state.tr;n.setNodeMarkup(t,null,{language:e}),this.view.dispatch(n)}},e.prototype.reset=function(){var e;if(null===(e=this.input)||void 0===e?void 0:e.parentElement){var t=this.input.parentElement;this.input=null,gn(t)}},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.stopEvent=function(){return!0},e.prototype.update=function(e){return!!e.sameMarkup(this.node)&&(this.node=e,!0)},e.prototype.destroy=function(){this.reset(),this.clearTimer(),this.dom&&this.dom.removeEventListener("click",this.handleMousedown)},e}(),R0=/MsoListParagraph/,q0=/style=(.|\n)*mso-/,H0=/mso-list:(.*)/,U0=/O:P/,V0=/^(n|u|l)/,z0="p.MsoListParagraph";function $0(e){return q0.test(e)}function W0(e){var t=[],n=document.createTreeWalker(e,1,null,!1);while(n.nextNode()){var r=n.currentNode;if(pn(r)){var i=r,o=i.outerHTML,a=i.textContent,s=q0.test(o),c=H0.test(o);s&&!c&&a?t.push([r,!0]):(U0.test(r.nodeName)||s&&!a||c)&&t.push([r,!1])}}return t.forEach((function(e){var t=e[0],n=e[1];n?bn(t):gn(t)})),e.innerHTML.trim()}function G0(e,t){var n=e.getAttribute("style");if(n){var r=n.match(H0),i=r[1],o=i.trim().split(" "),a=o[1],s=parseInt(a.replace("level",""),10),c=V0.test(e.textContent||"");return{id:t,level:s,prev:null,parent:null,children:[],unordered:c,contents:W0(e)}}return null}function K0(e,t){if(t.level<e.level)t.children.push(e),e.parent=t;else{while(t){if(t.level===e.level)break;t=t.parent}t&&(e.prev=t,e.parent=t.parent,e.parent&&e.parent.children.push(e))}}function J0(e){var t=[];return e.forEach((function(e,n){var r=t[n-1],i=G0(e,n);i&&(r&&K0(i,r),t.push(i))})),t}function Y0(e){var t=e[0].unordered?"ul":"ol",n=document.createElement(t);return e.forEach((function(e){var t=e.children,r=e.contents,i=document.createElement("li");i.innerHTML=r,n.appendChild(i),t.length&&n.appendChild(Y0(t))})),n}function X0(e){var t=J0(e),n=t.filter((function(e){var t=e.parent;return!t}));return Y0(n)}function Q0(e){while(e){if(pn(e))break;e=e.nextSibling}return!e||!R0.test(e.className)}function Z0(e){var t=document.createElement("div");t.innerHTML=e;var n=[],r=hn(t,z0);r.forEach((function(e){var r=Q0(e.nextSibling);if(n.push(e),r){var i=X0(n),o=e.nextSibling;o?vn(i,o):mn(t,i),n=[]}gn(e)}));var i=r.length?"<p></p>":"";return""+i+t.innerHTML}var e1="\x3c!--StartFragment--\x3e",t1="\x3c!--EndFragment--\x3e";function n1(e){var t=e.indexOf(e1),n=e.lastIndexOf(t1);return t>-1&&n>-1&&(e=e.slice(t+e1.length,n)),e.replace(/<br[^>]*>/g,sn)}function r1(e){return/<\/td>((?!<\/tr>)[\s\S])*$/i.test(e)&&(e="<tr>"+e+"</tr>"),/<\/tr>((?!<\/table>)[\s\S])*$/i.test(e)&&(e="<table>"+e+"</table>"),e}function i1(e){return e=n1(e),e=r1(e),$0(e)&&(e=Z0(e)),e}function o1(e){var t=e.reduce((function(e,t){return e.childCount>t.childCount?e:t}));return t.childCount}function a1(e,t,n){for(var r=[],i=e.childCount,o=0;o<i;o+=1)if(!e.child(o).attrs.extended){var a=o<i?n.create(e.child(o).attrs,e.child(o).content):n.createAndFill();r.push(a)}return r}function s1(e,t,n){var r=n.nodes,i=r.tableRow,o=r.tableHeadCell,a=a1(e,t,o);return i.create(null,a)}function c1(e,t,n){var r=n.nodes,i=r.tableRow,o=r.tableBodyCell,a=a1(e,t,o);return i.create(null,a)}function l1(e,t){for(var n=t.nodes,r=n.tableRow,i=n.tableBodyCell,o=[],a=0;a<e;a+=1){var s=i.createAndFill();o.push(s)}return r.create({dummyRowForPasting:!0},o)}function u1(e){var t=[],n=[];if("tableHead"===e.firstChild.type.name){var r=e.firstChild;r.forEach((function(e){return t.push(e)}))}if("tableBody"===e.lastChild.type.name){var i=e.lastChild;i.forEach((function(e){return n.push(e)}))}return h(h([],t),n)}function d1(e,t,n){var r=s1(e,t,n);return n.nodes.tableHead.create(null,r)}function f1(e,t,n){var r=e.map((function(e){return c1(e,t,n)}));if(!e.length){var i=l1(t,n);r.push(i)}return n.nodes.tableBody.create(null,r)}function p1(e,t,n,r){var i=o1(e);if(n&&r)return t.nodes.table.create(null,[f1(e,i,t)]);var o=e[0],a=e.slice(1),s=[d1(o,i,t)];return a.length&&s.push(f1(a,i,t)),t.nodes.table.create(null,s)}function h1(e,t,n){var i=[],o=e.content,a=e.openStart,s=e.openEnd;return o.forEach((function(e){if("table"===e.type.name){var o=c0(new r["Slice"](r["Fragment"].from(e),0,0));if(o){var a=u1(o),s="tableBody"===o.firstChild.type.name,c=p1(a,t,s,n);i.push(c)}}else i.push(e)})),new r["Slice"](r["Fragment"].from(i),a,s)}var m1=4,v1=2;function g1(e){return e*m1}function b1(e,t,n){var r=[],i=u1(e),o=i[0].childCount,a=i.length,s=0===t.startRowIdx,c=i.slice(0,a);if(s){var l=c.shift();if(l){var u=s1(l,o,n).content;r.push(u)}}return c.forEach((function(e){if(!e.attrs.dummyRowForPasting){var t=c1(e,o,n).content;r.push(t)}})),r}function y1(e,t,n){for(var r=t.startRowIdx,i=t.startColIdx,o=n.length,a=0,s=function(e){var t=n[e].childCount;n[e].forEach((function(e){var n=e.attrs,r=n.colspan;r>1&&(t+=r-1)})),a=Math.max(a,t)},c=0;c<o;c+=1)s(c);var l=r+o-1,u=i+a-1,d=Math.max(l+1-e.totalRowCount,0),f=Math.max(u+1-e.totalColumnCount,0);return{startRowIdx:r,startColIdx:i,endRowIdx:l,endColIdx:u,addedRowCount:d,addedColumnCount:f}}function w1(e,t){for(var n=e.startRowIdx,r=e.startColIdx,i=e.endRowIdx,o=e.endColIdx,a=e.addedRowCount,s=e.addedColumnCount,c=n;c<=i-a;c+=1)t.push({rowIdx:c,startColIdx:r,endColIdx:o-s})}function k1(e,t,n,r,i){for(var o=r.startRowIdx,a=r.startColIdx,s=r.endRowIdx,c=r.endColIdx,l=r.addedRowCount,u=r.addedColumnCount,d=n.totalRowCount,f=0,p=0;p<d;p+=1){var h=n.getCellInfo(p,c-u),m=h.offset,v=h.nodeSize,g=e.mapping.map(m+v),b=i0(u,p,t);if(e.insert(g,b),p>=o&&p<=s-l){var y=n.getCellInfo(p,c-u),w=e.mapping.map(y.offset),k=g+g1(u);i[f]={rowIdx:p,startColIdx:a,endColIdx:c,dummyOffsets:[w,k]},f+=1}}}function x1(e,t,n,r,i){var o=r.addedRowCount,a=r.addedColumnCount,s=r.startColIdx,c=r.endColIdx,l=e.mapping.maps.length,u=n.tableEndOffset-2,d=r0(o,n.totalColumnCount+a,t),f=u;e.insert(e.mapping.slice(l).map(f),d);for(var p=0;p<o;p+=1){var h=f+g1(s)+1,m=f+g1(c+1)+1,v=f+g1(n.totalColumnCount+a)+v1;i.push({rowIdx:p+n.totalRowCount,startColIdx:s,endColIdx:c,dummyOffsets:[h,m]}),f=v}}function C1(e,t,n,i){var o=e.mapping.maps.length;n.forEach((function(n,a){var s=n.rowIdx,c=n.startColIdx,l=n.endColIdx,u=n.dummyOffsets,d=e.mapping.slice(o),f=new r["Slice"](t[a],0,0),p=u?u[0]:i.getCellStartOffset(s,c),h=u?u[1]:i.getCellEndOffset(s,l);e.replace(d.map(p),d.map(h),f)}))}function O1(e,t){var n=e.state,r=n.selection,i=n.schema,o=n.tr,a=s0(r),s=a.anchor,c=a.head;if(s&&c){var l=c0(t);if(!l)return!1;var u=YZ.create(s),d=u.getRectOffsets(s,c),f=b1(l,d,i),p=y1(u,d,f),h=[];return T1(u,p)&&(w1(p,h),p.addedColumnCount&&k1(o,i,u,p,h),p.addedRowCount&&x1(o,i,u,p,h),C1(o,f,h,u),e.dispatch(o),S1(e,h,u.getCellInfo(0,0).offset)),!0}return!1}function S1(e,t,n){var r=e.state,i=r.tr,o=r.doc,a=YZ.create(o.resolve(n)),s=t[0],c=s.rowIdx,l=s.startColIdx,u=He(t),d=u.rowIdx,f=u.endColIdx,p=a.getCellInfo(c,l).offset,h=a.getCellInfo(d,f).offset;e.dispatch(i.setSelection(new t0(o.resolve(p),o.resolve(h))))}function T1(e,t){var n=e.getSpannedOffsets(t),r=l0(n),i=r.rowCount,o=r.columnCount,a=l0(t),s=a.rowCount,c=a.columnCount;return i===s&&o===c}var E1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"doc"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"block+"}},enumerable:!1,configurable:!0}),t}(An),_1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"paragraph"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"inline*",group:"block",attrs:p({},MZ()),parseDOM:[{tag:"p"}],toDOM:function(e){var t=e.attrs;return["p",IZ(t),0]}}},enumerable:!1,configurable:!0}),t}(An),M1=/\s{1,4}$/,I1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),t.prototype.addSpaces=function(){return function(e,t){var n=e.selection,r=e.tr,i=n.$from,o=n.$to,a=i.blockRange(o);return!(!a||CZ(i)||OZ(i))&&(t(r.insertText("    ",i.pos,o.pos)),!0)}},t.prototype.removeSpaces=function(){return function(e,t){var n=e.selection,r=e.tr,i=n.$from,o=n.$to,a=n.from,s=i.blockRange(o);if(s&&!CZ(i)&&!OZ(i)){var c=i.nodeBefore;if(c&&c.isText){var l=c.text,u=l.replace(M1,""),d=l.length-u.length;return t(r.delete(a-d,a)),!0}}return!1}},t.prototype.keymaps=function(){return{Tab:this.addSpaces(),"Shift-Tab":this.removeSpaces()}},t}(An),j1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"levels",{get:function(){return[1,2,3,4,5,6]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){var e=this.levels.map((function(e){return{tag:"h"+e,getAttrs:function(t){var n=t.getAttribute("data-raw-html");return p({level:e},n&&{rawHTML:n})}}}));return{attrs:p({level:{default:1},headingType:{default:"atx"},rawHTML:{default:null}},MZ()),content:"inline*",group:"block",defining:!0,parseDOM:e,toDOM:function(e){var t=e.attrs;return["h"+t.level,IZ(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(e){return function(t,n){var r=t.schema.nodes[e.level?"heading":"paragraph"];return Object(c["h"])(r,e)(t,n)}}},t}(An),D1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"text*",group:"block",attrs:p({language:{default:null},rawHTML:{default:null}},MZ()),code:!0,defining:!0,marks:"",parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:function(e){var t=e.getAttribute("data-raw-html"),n=e.firstElementChild;return p({language:(null===n||void 0===n?void 0:n.getAttribute("data-language"))||null},t&&{rawHTML:t})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"pre",["code",p({"data-language":t.language},IZ(t)),0]]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return Object(c["h"])(e.schema.nodes.codeBlock)(e,t)}}},t.prototype.moveCursor=function(e){var t=this;return function(n,r){var i=n.tr,o=n.doc,a=n.schema,s=n.selection.$from,c=t.context.view;if(c.endOfTextblock(e)&&"codeBlock"===s.node().type.name){var l=s.parent.textContent.split("\n"),u="up"===e?s.start():s.end(),d="up"===e?[u,l[0].length+u]:[u-He(l).length,u],f=o.resolve("up"===e?s.before():s.after()),p="up"===e?f.nodeBefore:f.nodeAfter;if(Ue(s.pos,d[0],d[1])&&!p){var h=tt(i,f,a);if(h)return r(h),!0}}return!1}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-p":e,"Shift-Mod-P":e,ArrowUp:this.moveCursor("up"),ArrowDown:this.moveCursor("down")}},t}(An),N1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"bulletList"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"listItem+",group:"block",attrs:p({rawHTML:{default:null}},MZ()),parseDOM:[TZ("ul")],toDOM:function(e){var t=e.attrs;return["ul",IZ(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.changeList=function(){return function(e,t){return RZ(e.schema.nodes.bulletList)(e,t)}},t.prototype.commands=function(){return{bulletList:this.changeList,taskList:qZ}},t.prototype.keymaps=function(){var e=this.changeList(),t=KZ(),n=t.indent,r=t.outdent;return{"Mod-u":e,"Mod-U":e,Tab:n(),"Shift-Tab":r()}},t}(An),A1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"orderedList"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"listItem+",group:"block",attrs:p({order:{default:1},rawHTML:{default:null}},MZ()),parseDOM:[{tag:"ol",getAttrs:function(e){var t=e.getAttribute("start"),n=e.getAttribute("data-raw-html");return p({order:e.hasAttribute("start")?Number(t):1},n&&{rawHTML:n})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"ol",p({start:1===t.order?null:t.order},IZ(t)),0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return RZ(e.schema.nodes.orderedList)(e,t)}}},t.prototype.keymaps=function(){var e=this.commands()(),t=KZ(),n=t.indent,r=t.outdent;return{"Mod-o":e,"Mod-O":e,Tab:n(),"Shift-Tab":r()}},t}(An),L1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"listItem"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"paragraph block*",selectable:!1,attrs:{task:{default:!1},checked:{default:!1},rawHTML:{default:null}},defining:!0,parseDOM:[{tag:"li",getAttrs:function(e){var t=e.getAttribute("data-raw-html");return p({task:e.hasAttribute("data-task"),checked:e.hasAttribute("data-task-checked")},t&&{rawHTML:t})}}],toDOM:function(e){var t=e.attrs,n=t.task,r=t.checked;if(!n)return[t.rawHTML||"li",0];var i=["task-list-item"];return r&&i.push("checked"),[t.rawHTML||"li",p({class:i.join(" "),"data-task":n},r&&{"data-task-checked":r}),0]}}},enumerable:!1,configurable:!0}),t.prototype.liftToPrevListItem=function(){return function(e,t){var n=e.selection,r=e.tr,i=e.schema,o=n.$from,a=n.empty,s=i.nodes.listItem,c=o.parent,l=o.node(-1);if(a&&!c.childCount&&l.type===s){if(o.index(-2)>=1)return r.delete(o.start(-1)-1,o.end(-1)),t(r),!0;var u=o.node(-3);if(u.type===s)return r.delete(o.start(-2)-1,o.end(-1)),t(r),!0}return!1}},t.prototype.keymaps=function(){var e=function(e,t){return $Z(e.schema.nodes.listItem)(e,t)};return{Backspace:this.liftToPrevListItem(),Enter:e}},t}(An),P1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:p({rawHTML:{default:null}},MZ()),content:"block+",group:"block",parseDOM:[TZ("blockquote")],toDOM:function(e){var t=e.attrs;return["blockquote",IZ(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return Object(c["j"])(e.schema.nodes.blockQuote)(e,t)}}},t.prototype.keymaps=function(){var e=this.commands()();return{"Alt-q":e,"Alt-Q":e}},t}(An),B1={left:G1,right:W1,up:K1,down:J1};function F1(e,t,n){var r=n[0],i=n[1],o=t.resolve(e.before(r-1));return i===r&&!o.nodeBefore}function R1(e){var t,n,r=e.depth;while(r){if(n=e.node(r),"tableBodyCell"===n.type.name)break;if("listItem"===n.type.name){var i=e.node(r-1),o=i.lastChild===n,a="paragraph"!==(null===(t=n.lastChild)||void 0===t?void 0:t.type.name);return!!o&&!a}r-=1}return!1}function q1(e,t,n,r,i){var o=t[0],a=t[1],s=t[2];if("left"===e||"up"===e){if(i&&!F1(n,r,[o,a]))return!1;var c=n.before(s),l=r.resolve(c).nodeBefore;if(l)return!1}return!0}function H1(e,t,n,r,i){if("right"===e||"down"===e){if(i&&!R1(n))return!1;var o=n.after(t),a=r.resolve(o).nodeAfter;if(a)return!1}return!0}function U1(e,t,n,r){var i=t[0],o=t[1],a=i+3,s=o>=a,c=s?i+1:o,l=q1(e,[o,a,c],n,r,s),u=H1(e,c,n,r,s);return l&&u}function V1(e,t,n){var r=n[0],i=n[1],o=t.getRowspanStartInfo(r,i),a="up"===e&&0===r,s="down"===e&&((null===o||void 0===o?void 0:o.count)>1?r+o.count-1:r)===t.totalRowCount-1;return a||s}function z1(e,t,n){var r=e.doc.resolve(t.tableStartOffset-1);return r.nodeBefore?e.setSelection(a["Selection"].near(r,-1)):tt(e,r,n)}function $1(e,t,n,r){void 0===r&&(r=!1);var i=e.doc.resolve(t.tableEndOffset);return r||!i.nodeAfter?tt(e,i,n):e.setSelection(a["Selection"].near(i,1))}function W1(e,t){var n=e[0],r=e[1],i=t.totalRowCount,o=t.totalColumnCount,a=r===o-1,s=n===i-1&&a;if(!s){var c=r+1,l=t.getColspanStartInfo(n,r);(null===l||void 0===l?void 0:l.count)>1&&(c+=l.count-1),(a||c===o)&&(n+=1,c=0);var u=t.getCellInfo(n,c).offset;return u+2}return null}function G1(e,t){var n=e[0],r=e[1],i=t.totalColumnCount,o=0===r,a=0===n&&o;if(!a){r-=1,o&&(n-=1,r=i-1);var s=t.getCellInfo(n,r),c=s.offset,l=s.nodeSize;return c+l-2}return null}function K1(e,t){var n=e[0],r=e[1];if(n>0){var i=t.getCellInfo(n-1,r),o=i.offset,a=i.nodeSize;return o+a-2}return null}function J1(e,t){var n=e[0],r=e[1],i=t.totalRowCount;if(n<i-1){var o=n+1,a=t.getRowspanStartInfo(n,r);(null===a||void 0===a?void 0:a.count)>1&&(o+=a.count-1);var s=t.getCellInfo(o,r).offset;return s+2}return null}function Y1(e,t,n,r){var i=B1[e],o=i(n,r);if(o){var s="right"===e||"down"===e?1:-1;return t.setSelection(a["Selection"].near(t.doc.resolve(o),s))}return null}function X1(e,t,n){var r=n[0],i=n[1];if("up"===e||"down"===e)return!1;var o=t.tableStartOffset,a=t.tableEndOffset,s=t.getCellInfo(r,i),c=s.offset,l=s.nodeSize,u="left"===e?o:a,d="left"===e?c-2:c+l+3;return u===d}function Q1(e,t,n){var r=e.doc.resolve(t.before(n-3));return e.setSelection(new a["NodeSelection"](r))}function Z1(e,t,n){var r,i,o;return"up"===e?(r=n.startRowIdx,i=0,o=-1):(r=n.endRowIdx,i=t.totalColumnCount-1,o=t.getCellInfo(r,i).nodeSize+1),{targetRowIdx:r,insertColIdx:i,nodeSize:o}}function e2(e,t,n){var r=e.getCellInfo(t,0).offset,i=e.getCellInfo(t,n-1),o=i.offset,a=i.nodeSize;return{from:r,to:o+a}}var t2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"table"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"tableHead{1} tableBody{1}",group:"block",attrs:p({rawHTML:{default:null}},MZ()),parseDOM:[TZ("table")],toDOM:function(e){var t=e.attrs;return["table",IZ(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.addTable=function(){return function(e){return void 0===e&&(e={rowCount:2,columnCount:1,data:[]}),function(t,n){var r=e.rowCount,i=e.columnCount,o=e.data,a=t.schema,s=t.selection,c=t.tr,l=s.from,u=s.to,d=s.$from,f=l===u;if(f&&!OZ(d)){var p=a.nodes,h=p.tableHead,m=p.tableBody,v=null===o||void 0===o?void 0:o.slice(0,i),g=null===o||void 0===o?void 0:o.slice(i,o.length),b=n0(i,a,v),y=r0(r-1,i,a,g),w=a.nodes.table.create(null,[h.create(null,b),m.create(null,y)]);return n(c.replaceSelectionWith(w)),!0}return!1}}},t.prototype.removeTable=function(){return function(){return function(e,t){var n=e.selection,r=e.tr,i=YZ.create(n.$anchor);if(i){var o=i.tableStartOffset,a=i.tableEndOffset,s=o-1,c=et(r.delete(s,a),s);return t(r.setSelection(c)),!0}return!1}}},t.prototype.addColumn=function(e){return function(){return function(t,n){var r=t.selection,i=t.tr,o=t.schema,a=s0(r),s=a.anchor,c=a.head;if(s&&c){for(var l=YZ.create(s),u=l.getRectOffsets(s,c),d="left"===e?u.startColIdx:u.endColIdx+1,f=l0(u).columnCount,p=l.totalRowCount,h=0;h<p;h+=1){var m=i0(f,h,o);i.insert(i.mapping.map(l.posAt(h,d)),m)}return n(i),!0}return!1}}},t.prototype.removeColumn=function(){return function(){return function(e,t){var n=e.selection,r=e.tr,i=s0(n),o=i.anchor,a=i.head;if(o&&a){var s=YZ.create(o),c=s.getRectOffsets(o,a),l=s.totalColumnCount,u=s.totalRowCount,d=l0(c).columnCount,f=d===l;if(f)return!1;for(var p=c.startColIdx,h=c.endColIdx,m=r.mapping.maps.length,v=0;v<u;v+=1)for(var g=h;g>=p;g-=1){var b=s.getCellInfo(v,g),y=b.offset,w=b.nodeSize,k=r.mapping.slice(m).map(y),x=k+w;r.delete(k,x)}return t(r),!0}return!1}}},t.prototype.addRow=function(e){return function(){return function(t,n){var r=t.selection,i=t.schema,o=t.tr,a=s0(r),s=a.anchor,c=a.head;if(s&&c){var l=YZ.create(s),u=l.totalColumnCount,d=l.getRectOffsets(s,c),f=l0(d).rowCount,p=Z1(e,l,d),h=p.targetRowIdx,m=p.insertColIdx,v=p.nodeSize,g=0===h;if(!g){for(var b=[],y=o.mapping.map(l.posAt(h,m))+v,w=[],k=0;k<u;k+=1)w=w.concat(i0(1,h,i));for(var x=0;x<f;x+=1)b.push(i.nodes.tableRow.create(null,w));return n(o.insert(y,b)),!0}}return!1}}},t.prototype.removeRow=function(){return function(){return function(e,t){var n=e.selection,r=e.tr,i=s0(n),o=i.anchor,a=i.head;if(o&&a){var s=YZ.create(o),c=s.totalRowCount,l=s.totalColumnCount,u=s.getRectOffsets(o,a),d=l0(u).rowCount,f=u.startRowIdx,p=u.endRowIdx,h=0===f,m=d===c-1;if(m||h)return!1;for(var v=p;v>=f;v-=1){var g=e2(s,v,l),b=g.from,y=g.to;r.delete(b-1,y+1)}return t(r),!0}return!1}}},t.prototype.alignColumn=function(){return function(e){return void 0===e&&(e={align:"center"}),function(t,n){var r=e.align,i=t.selection,o=t.tr,a=s0(i),s=a.anchor,c=a.head;if(s&&c){for(var l=YZ.create(s),u=l.totalRowCount,d=l.getRectOffsets(s,c),f=d.startColIdx,p=d.endColIdx,h=0;h<u;h+=1)for(var m=f;m<=p;m+=1)if(!l.extendedRowspan(h,m)&&!l.extendedColspan(h,m)){var v=l.getNodeAndPos(h,m),g=v.node,b=v.pos,y=u0(g,{align:r});o.setNodeMarkup(b,null,y)}return n(o),!0}return!1}}},t.prototype.moveToCell=function(e){return function(t,n){var r=t.selection,i=t.tr,o=t.schema,a=s0(r),s=a.anchor,c=a.head;if(s&&c){var l=YZ.create(s),u=l.getCellIndex(s),d=void 0;if(d=V1(e,l,u)?$1(i,l,o):Y1(e,i,u,l),d)return n(d),!0}return!1}},t.prototype.moveInCell=function(e){var t=this;return function(n,r){var i=n.selection,o=n.tr,a=n.doc,s=n.schema,c=i.$from,l=t.context.view;if(!l.endOfTextblock(e))return!1;var u=xZ(c,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}));if(u){var d=xZ(c,(function(e){var t=e.type;return"paragraph"===t.name})),f=u.depth;if(d&&U1(e,[f,d.depth],c,a)){var p=s0(i).anchor,h=YZ.create(p),m=h.getCellIndex(p),v=void 0;if(X1(e,h,m)?v=Q1(o,c,f):V1(e,h,m)?"up"===e?v=z1(o,h,s):"down"===e&&(v=$1(o,h,s)):v=Y1(e,o,m,h),v)return r(v),!0}}return!1}},t.prototype.deleteCells=function(){return function(e,t){var n=e.schema,r=e.selection,i=e.tr,o=s0(r),s=o.anchor,c=o.head,l=r instanceof a["TextSelection"];if(s&&c&&!l){for(var u=YZ.create(s),d=u.getRectOffsets(s,c),f=d.startRowIdx,p=d.startColIdx,h=d.endRowIdx,m=d.endColIdx,v=f;v<=h;v+=1)for(var g=p;g<=m;g+=1)if(!u.extendedRowspan(v,g)&&!u.extendedColspan(v,g)){var b=u.getNodeAndPos(v,g),y=b.node,w=b.pos,k=i0(1,v,n,y.attrs);i.replaceWith(i.mapping.map(w),i.mapping.map(w+y.nodeSize),k)}return t(i),!0}return!1}},t.prototype.exitTable=function(){return function(e,t){var n=e.selection,r=e.tr,i=e.schema,o=n.$from,a=xZ(o,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}));if(a){var s=xZ(o,(function(e){var t=e.type;return"paragraph"===t.name}));if(s){var c=s0(n).anchor,l=YZ.create(c);return t($1(r,l,i,!0)),!0}}return!1}},t.prototype.commands=function(){return{addTable:this.addTable(),removeTable:this.removeTable(),addColumnToLeft:this.addColumn("left"),addColumnToRight:this.addColumn("right"),removeColumn:this.removeColumn(),addRowToUp:this.addRow("up"),addRowToDown:this.addRow("down"),removeRow:this.removeRow(),alignColumn:this.alignColumn()}},t.prototype.keymaps=function(){var e=this.deleteCells();return{Tab:this.moveToCell("right"),"Shift-Tab":this.moveToCell("left"),ArrowUp:this.moveInCell("up"),ArrowDown:this.moveInCell("down"),ArrowLeft:this.moveInCell("left"),ArrowRight:this.moveInCell("right"),Backspace:e,"Mod-Backspace":e,Delete:e,"Mod-Delete":e,"Mod-Enter":this.exitTable()}},t}(An),n2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tableHead"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"tableRow{1}",attrs:p({rawHTML:{default:null}},MZ()),parseDOM:[TZ("thead")],toDOM:function(e){var t=e.attrs;return["thead",IZ(t),0]}}},enumerable:!1,configurable:!0}),t}(An),r2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tableBody"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"tableRow+",attrs:p({rawHTML:{default:null}},MZ()),parseDOM:[{tag:"tbody",getAttrs:function(e){var t=e.querySelectorAll("tr"),n=t[0].children.length,r=e.getAttribute("data-raw-html");return!!n&&p({},r&&{rawHTML:r})}}],toDOM:function(e){var t=e.attrs;return["tbody",IZ(t),0]}}},enumerable:!1,configurable:!0}),t}(An),i2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tableRow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"(tableHeadCell | tableBodyCell)*",attrs:p({rawHTML:{default:null}},MZ()),parseDOM:[{tag:"tr",getAttrs:function(e){var t=e.children.length,n=e.getAttribute("data-raw-html");return!!t&&p({},n&&{rawHTML:n})}}],toDOM:function(e){var t=e.attrs;return["tr",IZ(t),0]}}},enumerable:!1,configurable:!0}),t}(An),o2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tableHeadCell"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"paragraph+",attrs:p({align:{default:null},className:{default:null},rawHTML:{default:null},colspan:{default:null},extended:{default:null}},MZ()),isolating:!0,parseDOM:[_Z("th")],toDOM:function(e){var t=e.attrs,n=EZ(t);return["th",p(p({},n),IZ(t)),0]}}},enumerable:!1,configurable:!0}),t}(An),a2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tableBodyCell"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"(paragraph | bulletList | orderedList)+",attrs:{align:{default:null},className:{default:null},rawHTML:{default:null},colspan:{default:null},rowspan:{default:null},extended:{default:null}},isolating:!0,parseDOM:[_Z("td")],toDOM:function(e){var t=e.attrs,n=EZ(t);return["td",n,0]}}},enumerable:!1,configurable:!0}),t}(An),s2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"image"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{inline:!0,attrs:p({imageUrl:{default:""},altText:{default:null},rawHTML:{default:null}},MZ()),group:"inline",selectable:!1,parseDOM:[{tag:"img[src]",getAttrs:function(e){var t=zQ(e,{RETURN_DOM_FRAGMENT:!0}).firstChild,n=t.getAttribute("src")||"",r=t.getAttribute("data-raw-html"),i=t.getAttribute("alt");return p({imageUrl:n,altText:i},r&&{rawHTML:r})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"img",p(p({src:_e(t.imageUrl)},t.altText&&{alt:t.altText}),IZ(t))]}}},enumerable:!1,configurable:!0}),t.prototype.addImage=function(){return function(e){return function(t,n){var r=t.schema,i=t.tr,o=e,a=o.imageUrl,s=o.altText;if(!a)return!1;var c=r.nodes.image.createAndFill(p({imageUrl:a},s&&{altText:s}));return n(i.replaceSelectionWith(c).scrollIntoView()),!0}}},t.prototype.commands=function(){return{addImage:this.addImage()}},t}(An),c2=1,l2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"thematicBreak"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:p({rawHTML:{default:null}},MZ()),group:"block",parseDOM:[{tag:"hr"}],selectable:!1,toDOM:function(e){var t=e.attrs;return["div",IZ(t),[t.rawHTML||"hr"]]}}},enumerable:!1,configurable:!0}),t.prototype.hr=function(){var e=this;return function(){return function(t,n){var r,i=t.selection,o=i.$from,a=i.$to;if(o===a){var s=t.doc,c=t.schema.nodes,l=c.thematicBreak,u=c.paragraph,d=[l.create()],f=o.node(c2),p=s.child(s.childCount-1)===f,h=s.resolve(o.after(c2)),m=(null===(r=o.nodeAfter)||void 0===r?void 0:r.type.name)===e.name;return(p||m)&&d.push(u.create()),n(t.tr.insert(h.pos,d).scrollIntoView()),!0}return!1}}},t.prototype.commands=function(){return{hr:this.hr()}},t.prototype.keymaps=function(){var e=this.hr()();return{"Mod-l":e,"Mod-L":e}},t}(An),u2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"strong"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){var e=["b","strong"].map((function(e){return{tag:e,getAttrs:function(e){var t=e.getAttribute("data-raw-html");return p({},t&&{rawHTML:t})}}}));return{attrs:p({rawHTML:{default:null}},MZ()),parseDOM:e,toDOM:function(e){var t=e.attrs;return[t.rawHTML||"strong",IZ(t)]}}},enumerable:!1,configurable:!0}),t.prototype.bold=function(){return function(){return function(e,t){return Object(c["i"])(e.schema.marks.strong)(e,t)}}},t.prototype.commands=function(){return{bold:this.bold()}},t.prototype.keymaps=function(){var e=this.bold()();return{"Mod-b":e,"Mod-B":e}},t}(Wr),d2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"emph"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){var e=["i","em"].map((function(e){return{tag:e,getAttrs:function(e){var t=e.getAttribute("data-raw-html");return p({},t&&{rawHTML:t})}}}));return{attrs:p({rawHTML:{default:null}},MZ()),parseDOM:e,toDOM:function(e){var t=e.attrs;return[t.rawHTML||"em",IZ(t)]}}},enumerable:!1,configurable:!0}),t.prototype.italic=function(){return function(){return function(e,t){return Object(c["i"])(e.schema.marks.emph)(e,t)}}},t.prototype.commands=function(){return{italic:this.italic()}},t.prototype.keymaps=function(){var e=this.italic()();return{"Mod-i":e,"Mod-I":e}},t}(Wr),f2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"strike"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){var e=["s","del"].map((function(e){return{tag:e,getAttrs:function(e){var t=e.getAttribute("data-raw-html");return p({},t&&{rawHTML:t})}}}));return{attrs:p({rawHTML:{default:null}},MZ()),parseDOM:e,toDOM:function(e){var t=e.attrs;return[t.rawHTML||"del",IZ(t)]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return Object(c["i"])(e.schema.marks.strike)(e,t)}}},t.prototype.keymaps=function(){var e=this.commands()();return{"Mod-s":e,"Mod-S":e}},t}(Wr),p2=function(e){function t(t){var n=e.call(this)||this;return n.linkAttributes=t,n}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"link"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){var e=this;return{attrs:p({linkUrl:{default:""},title:{default:null},rawHTML:{default:null}},MZ()),inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(e){var t=zQ(e,{RETURN_DOM_FRAGMENT:!0}).firstChild,n=t.getAttribute("href")||"",r=t.getAttribute("title")||"",i=t.getAttribute("data-raw-html");return p({linkUrl:n,title:r},i&&{rawHTML:i})}}],toDOM:function(t){var n=t.attrs;return[n.rawHTML||"a",p(p({href:_e(n.linkUrl)},e.linkAttributes),IZ(n))]}}},enumerable:!1,configurable:!0}),t.prototype.addLink=function(){return function(e){return function(t,n){var r=e,i=r.linkUrl,o=r.linkText,a=void 0===o?"":o,s=t.schema,c=t.tr,l=t.selection,u=l.empty,d=l.from,f=l.to;if(d&&f&&i){var p={linkUrl:i},h=s.mark("link",p);if(u&&a){var m=Ze(s,a,h);c.replaceRangeWith(d,f,m)}else c.addMark(d,f,h);return n(c.scrollIntoView()),!0}return!1}}},t.prototype.toggleLink=function(){return function(e){return function(t,n){return Object(c["i"])(t.schema.marks.link,e)(t,n)}}},t.prototype.commands=function(){return{addLink:this.addLink(),toggleLink:this.toggleLink()}},t}(Wr),h2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"code"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:p({rawHTML:{default:null}},MZ()),parseDOM:[{tag:"code",getAttrs:function(e){var t=e.getAttribute("data-raw-html");return p({},t&&{rawHTML:t})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"code",IZ(t)]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return Object(c["i"])(e.schema.marks.code)(e,t)}}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-c":e,"Shift-Mod-C":e}},t}(Wr),m2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"customBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"text*",group:"block",attrs:{info:{default:null}},atom:!0,code:!0,defining:!0,parseDOM:[{tag:"div[data-custom-info]",getAttrs:function(e){var t=e.getAttribute("data-custom-info");return{info:t}}}],toDOM:function(e){var t=e.attrs;return["div",{"data-custom-info":t.info||null},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(e){return function(t,n){return!(null===e||void 0===e||!e.info)&&Object(c["h"])(t.schema.nodes.customBlock,e)(t,n)}}},t}(An),v2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"frontMatter"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"text*",group:"block",code:!0,defining:!0,parseDOM:[{preserveWhitespace:"full",tag:"div[data-front-matter]"}],toDOM:function(){return["div",{"data-front-matter":"true"},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t,n){var r=e.selection.$from;return!(!n.endOfTextblock("down")||"frontMatter"!==r.node().type.name)&&Object(c["d"])(e,t)}}},t.prototype.keymaps=function(){return{Enter:this.commands()()}},t}(An),g2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"htmlComment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"text*",group:"block",code:!0,defining:!0,parseDOM:[{preserveWhitespace:"full",tag:"div[data-html-comment]"}],toDOM:function(){return["div",{"data-html-comment":"true"},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t,n){var r=e.selection.$from;return!(!n.endOfTextblock("down")||"htmlComment"!==r.node().type.name)&&Object(c["d"])(e,t)}}},t.prototype.keymaps=function(){return{Enter:this.commands()()}},t}(An);function b2(e){return new Vn([new E1,new _1,new I1,new j1,new D1,new N1,new A1,new L1,new P1,new t2,new n2,new r2,new i2,new o2,new a2,new s2,new l2,new u2,new d2,new f2,new p2(e),new h2,new m2,new v2,new Bn,new g2])}var y2=un("contents"),w2=function(e){function t(t,n){var r=e.call(this,t)||this,i=n.toDOMAdaptor,o=n.htmlSchemaMap,a=void 0===o?{}:o,s=n.linkAttributes,c=void 0===s?{}:s,l=n.useCommandShortcut,u=void 0===l||l,d=n.wwPlugins,f=void 0===d?[]:d,h=n.wwNodeViews,m=void 0===h?{}:h;return r.editorType="wysiwyg",r.el.classList.add("ww-mode"),r.toDOMAdaptor=i,r.linkAttributes=c,r.extraPlugins=f,r.pluginNodeViews=m,r.specs=r.createSpecs(),r.schema=r.createSchema(a),r.context=r.createContext(),r.keymaps=r.createKeymaps(u),r.view=r.createView(),r.commands=r.createCommands(),r.specs.setContext(p(p({},r.context),{view:r.view})),r.initEvent(),r}return f(t,e),t.prototype.createSpecs=function(){return b2(this.linkAttributes)},t.prototype.createContext=function(){return{schema:this.schema,eventEmitter:this.eventEmitter}},t.prototype.createSchema=function(e){return new r["Schema"]({nodes:p(p({},this.specs.nodes),e.nodes),marks:p(p({},this.specs.marks),e.marks)})},t.prototype.createPlugins=function(){return this.defaultPlugins.concat(h([v0(),C0(this.eventEmitter),O0(),D0(this.eventEmitter)],this.createPluginProps()))},t.prototype.createPluginNodeViews=function(){var e=this,t=e.eventEmitter,n=e.pluginNodeViews,r={};return n&&Object.keys(n).forEach((function(e){r[e]=function(r,i,o){return n[e](r,i,o,t)}})),r},t.prototype.createView=function(){var e=this,t=this,n=t.toDOMAdaptor,r=t.eventEmitter;return new i["EditorView"](this.el,{state:this.createState(),attributes:{class:y2},nodeViews:p({customBlock:function(e,t,r){return new N0(e,t,r,n)},image:function(e,t,n){return new L0(e,t,n,r)},codeBlock:function(e,t,n){return new F0(e,t,n,r)},widget:Ln},this.createPluginNodeViews()),dispatchTransaction:function(t){var n=e.view.state.applyTransaction(t).state;e.view.updateState(n),e.emitChangeEvent(t.scrollIntoView()),e.eventEmitter.emit("setFocusedNode",n.selection.$from.node(1))},transformPastedHTML:i1,transformPasted:function(t){return h1(t,e.schema,OZ(e.view.state.selection.$from))},handlePaste:function(e,t,n){return O1(e,n)},handleKeyDown:function(t,n){return e.eventEmitter.emit("keydown",e.editorType,n),!1},handleDOMEvents:{paste:function(t,n){var r=n.clipboardData||window.clipboardData,i=null===r||void 0===r?void 0:r.items;if(i){var o=Xe(i).some((function(e){return"string"===e.kind&&"text/rtf"===e.type}));if(!o){var a=Dn(i);a&&(n.preventDefault(),jn(e.eventEmitter,a,n.type))}}return!1},keyup:function(t,n){return e.eventEmitter.emit("keyup",e.editorType,n),!1},scroll:function(){return e.eventEmitter.emit("scroll","editor"),!0}}})},t.prototype.createCommands=function(){return this.specs.commands(this.view,KZ())},t.prototype.getHTML=function(){return this.view.dom.innerHTML},t.prototype.getModel=function(){return this.view.state.doc},t.prototype.getSelection=function(){var e=this.view.state.selection,t=e.from,n=e.to;return[t,n]},t.prototype.getSchema=function(){return this.view.state.schema},t.prototype.replaceSelection=function(e,t,n){var i=this.view.state,o=i.schema,a=i.tr,s=e.split("\n"),c=s.map((function(e){return Qe(o,Dt(e,o))})),l=new r["Slice"](r["Fragment"].from(c),1,1),u=ae(t)&&ae(n)?a.replaceRange(t,n,l):a.replaceSelection(l);this.view.dispatch(u),this.focus()},t.prototype.deleteSelection=function(e,t){var n=this.view.state.tr,r=ae(e)&&ae(t)?n.deleteRange(e,t):n.deleteSelection();this.view.dispatch(r.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,r=n.doc,i=n.selection,o=i.from,a=i.to;return ae(e)&&ae(t)&&(o=e,a=t),r.textBetween(o,a,"\n")},t.prototype.setModel=function(e,t){void 0===t&&(t=!1);var n=this.view.state,r=n.tr,i=n.doc;this.view.dispatch(r.replaceWith(0,i.content.size,e)),t&&this.moveCursorToEnd(!0)},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,r=et(n,e,t);this.view.dispatch(n.setSelection(r).scrollIntoView())},t.prototype.addWidget=function(e,t,n){var r=this.view,i=r.dispatch,o=r.state;i(o.tr.setMeta("widget",{pos:null!==n&&void 0!==n?n:o.selection.to,node:e,style:t}))},t.prototype.replaceWithWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.schema,a=Dt(n,o);this.view.dispatch(i.replaceWith(e,t,a))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,r=t.selection,i=e?n.resolve(e):r.$from,o=i.marks(),a=i.node(),s=i.start(),c=i.end(),l=a.type.name;if(o.length||"paragraph"===l){var u=o[o.length-1],d=function(e){return!e.length||Ie(e,u)};l=u?u.type.name:"text",a.forEach((function(e,t){var n=e.isText,r=e.nodeSize,o=e.marks,a=i.pos-s;n&&t<=a&&t+r>=a&&d(o)&&(s+=t,c=s+r)}))}return{range:[s,c],type:l}},t}(Fn),k2=R,x2=ce;function C2(e){return!k2(e)&&!x2(e)}var O2=C2,S2=O2;function T2(e){return S2(e)&&!1!==e}var E2=T2,_2=E2;function M2(e){return!_2(e)}var I2=M2,j2=["afterPreviewRender","updatePreview","changeMode","needChangeMode","command","changePreviewStyle","changePreviewTabPreview","changePreviewTabWrite","scroll","contextmenu","show","hide","changeLanguage","changeToolbarState","toggleScrollSync","mixinTableOffsetMapPrototype","setFocusedNode","removePopupWidget","query","openPopup","closePopup","addImageBlobHook","beforePreviewRender","beforeConvertWysiwygToMarkdown","load","loadUI","change","caretChange","destroy","focus","blur","keydown","keyup"],D2=function(){function e(){var e=this;this.events=new g0,this.eventTypes=j2.reduce((function(e,t){return p(p({},e),{type:t})}),{}),this.hold=!1,j2.forEach((function(t){e.addEventType(t)}))}return e.prototype.listen=function(e,t){var n=this.getTypeInfo(e),r=this.events.get(n.type)||[];if(!this.hasEventType(n.type))throw new Error("There is no event type "+n.type);n.namespace&&(t.namespace=n.namespace),r.push(t),this.events.set(n.type,r)},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getTypeInfo(e),i=this.events.get(r.type),o=[];return!this.hold&&i&&i.forEach((function(e){var n=e.apply(void 0,t);R(n)||o.push(n)})),o},e.prototype.emitReduce=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=this.events.get(e);return!this.hold&&i&&i.forEach((function(e){var r=e.apply(void 0,h([t],n));I2(r)||(t=r)})),t},e.prototype.getTypeInfo=function(e){var t=e.split(".");return{type:t[0],namespace:t[1]}},e.prototype.hasEventType=function(e){return!R(this.eventTypes[this.getTypeInfo(e).type])},e.prototype.addEventType=function(e){if(this.hasEventType(e))throw new Error("There is already have event type "+e);this.eventTypes[e]=e},e.prototype.removeEventHandler=function(e,t){var n=this,r=this.getTypeInfo(e),i=r.type,o=r.namespace;i&&t?this.removeEventHandlerWithHandler(i,t):i&&!o?this.events.delete(i):!i&&o?this.events.forEach((function(e,t){n.removeEventHandlerWithTypeInfo(t,o)})):i&&o&&this.removeEventHandlerWithTypeInfo(i,o)},e.prototype.removeEventHandlerWithHandler=function(e,t){var n=this.events.get(e);if(n){var r=n.indexOf(t);n.indexOf(t)>=0&&n.splice(r,1)}},e.prototype.removeEventHandlerWithTypeInfo=function(e,t){var n=[],r=this.events.get(e);r&&(r.map((function(e){return e.namespace!==t&&n.push(e),null})),this.events.set(e,n))},e.prototype.getEvents=function(){return this.events},e.prototype.holdEventInvoke=function(e){this.hold=!0,e(),this.hold=!1},e}(),N2=function(){function e(e,t,n,r){this.eventEmitter=e,this.mdCommands=t,this.wwCommands=n,this.getEditorType=r,this.initEvent()}return e.prototype.initEvent=function(){var e=this;this.eventEmitter.listen("command",(function(t,n){e.exec(t,n)}))},e.prototype.addCommand=function(e,t,n){"markdown"===e?this.mdCommands[t]=n:this.wwCommands[t]=n},e.prototype.deleteCommand=function(e,t){"markdown"===e?delete this.mdCommands[t]:delete this.wwCommands[t]},e.prototype.exec=function(e,t){var n=this.getEditorType();"markdown"===n?this.mdCommands[e](t):this.wwCommands[e](t)},e}();function A2(e){return"\n"===e[e.length-1]?e.slice(0,e.length-1):e}function L2(e,t){var n=e.schema,r=t.literal,i=r.match(rn);if(i){var o=i[1],a=i[3],s=(o||a).toLowerCase();return"htmlInline"===t.type&&!(!n.marks[s]&&!n.nodes[s])}return!1}function P2(e){var t=e.type;return Ie(["text","strong","emph","strike","image","link","code"],t)}function B2(e){return"softbreak"===(null===e||void 0===e?void 0:e.type)}function F2(e){var t=e.type,n=e.literal,r="htmlInline"===t&&n.match(rn);if(r){var i=r[1],o=r[3],a=i||o;if(a)return Ie(["ul","ol","li"],a.toLowerCase())}return!1}function R2(e){var t=e.literal,n=/data-task/.test(t),r=/data-task-checked/.test(t);return{task:n,checked:r}}function q2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=document.createElement("div");r.innerHTML=zQ(e);var i=r.firstChild;return t.map((function(e){return i.getAttribute(e)||""}))}function H2(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split(", ");r.forEach((function(r){var i=r.toLowerCase();t[i]=e[n]}))})),t}var U2={"b, strong":function(e,t,n){var r=e.schema.marks.strong;n?e.openMark(r.create({rawHTML:n})):e.closeMark(r)},"i, em":function(e,t,n){var r=e.schema.marks.emph;n?e.openMark(r.create({rawHTML:n})):e.closeMark(r)},"s, del":function(e,t,n){var r=e.schema.marks.strike;n?e.openMark(r.create({rawHTML:n})):e.closeMark(r)},code:function(e,t,n){var r=e.schema.marks.code;n?e.openMark(r.create({rawHTML:n})):e.closeMark(r)},a:function(e,t,n){var r=t.literal,i=e.schema.marks.link;if(n){var o=q2(r,"href")[0];e.openMark(i.create({linkUrl:o,rawHTML:n}))}else e.closeMark(i)},img:function(e,t,n){var r=t.literal;if(n){var i=q2(r,"src","alt"),o=i[0],a=i[1],s=e.schema.nodes.image;e.addNode(s,p({rawHTML:n,imageUrl:o},a&&{altText:a}))}},hr:function(e,t,n){e.addNode(e.schema.nodes.thematicBreak,{rawHTML:n})},br:function(e,t){var n=e.schema.nodes.paragraph,r=t.parent,i=t.prev,o=t.next;"paragraph"===(null===r||void 0===r?void 0:r.type)?(B2(i)&&e.openNode(n),B2(o)?e.closeNode():o&&(e.closeNode(),e.openNode(n))):"tableCell"===(null===r||void 0===r?void 0:r.type)&&(i&&(P2(i)||L2(e,i))&&e.closeNode(),o&&(P2(o)||L2(e,o))&&e.openNode(n))},pre:function(e,t,n){var r,i,o=document.createElement("div");o.innerHTML=t.literal;var a=null===(i=null===(r=o.firstChild)||void 0===r?void 0:r.firstChild)||void 0===i?void 0:i.textContent;e.openNode(e.schema.nodes.codeBlock,{rawHTML:n}),e.addText(A2(a)),e.closeNode()},"ul, ol":function(e,t,n){if("tableCell"===t.parent.type){var r=e.schema.nodes,i=r.bulletList,o=r.orderedList,a=r.paragraph,s="ul"===n?i:o;n?(t.prev&&!F2(t.prev)&&e.closeNode(),e.openNode(s,{rawHTML:n})):(e.closeNode(),t.next&&!F2(t.next)&&e.openNode(a))}},li:function(e,t,n){var r;if("tableCell"===(null===(r=t.parent)||void 0===r?void 0:r.type)){var i=e.schema.nodes,o=i.listItem,a=i.paragraph;if(n){var s=R2(t);t.prev&&!F2(t.prev)&&e.closeNode(),e.openNode(o,p({rawHTML:n},s)),t.next&&!F2(t.next)&&e.openNode(a)}else t.prev&&!F2(t.prev)&&e.closeNode(),e.closeNode()}}},V2=H2(U2);function z2(e){return"htmlInline"===e.type&&on.test(e.literal)}function $2(e){Xe(e.childNodes).forEach((function(e){if(pn(e)){var t=e.nodeName.toLowerCase();e.setAttribute("data-raw-html",t),e.childNodes&&$2(e)}}))}var W2={text:function(e,t){e.addText(t.literal||"")},paragraph:function(e,t,n,r){var i,o=n.entering;if(o){var a=e.schema.nodes.paragraph;"paragraph"===(null===(i=t.prev)||void 0===i?void 0:i.type)&&(e.openNode(a,r),e.closeNode()),e.openNode(a,r)}else e.closeNode()},heading:function(e,t,n,r){var i=n.entering;if(i){var o=t,a=o.level,s=o.headingType;e.openNode(e.schema.nodes.heading,p({level:a,headingType:s},r))}else e.closeNode()},codeBlock:function(e,t,n){var r=e.schema.nodes.codeBlock,i=t,o=i.info,a=i.literal;e.openNode(r,p({language:o},n)),e.addText(A2(a||"")),e.closeNode()},list:function(e,t,n,r){var i=n.entering;if(i){var o=e.schema.nodes,a=o.bulletList,s=o.orderedList,c=t.listData,l=c.type,u=c.start;"bullet"===l?e.openNode(a,r):e.openNode(s,p({order:u},r))}else e.closeNode()},item:function(e,t,n,r){var i=n.entering,o=e.schema.nodes.listItem,a=t.listData,s=a.task,c=a.checked;if(i){var l=p(p(p({},s&&{task:s}),c&&{checked:c}),r);e.openNode(o,l)}else e.closeNode()},blockQuote:function(e,t,n,r){var i=n.entering;i?e.openNode(e.schema.nodes.blockQuote,r):e.closeNode()},image:function(e,t,n,r){var i=n.entering,o=n.skipChildren,a=e.schema.nodes.image,s=t,c=s.destination,l=s.firstChild;i&&o&&o(),e.addNode(a,p(p({imageUrl:c},l&&{altText:l.literal}),r))},thematicBreak:function(e,t,n,r){e.addNode(e.schema.nodes.thematicBreak,r)},strong:function(e,t,n,r){var i=n.entering,o=e.schema.marks.strong;i?e.openMark(o.create(r)):e.closeMark(o)},emph:function(e,t,n,r){var i=n.entering,o=e.schema.marks.emph;i?e.openMark(o.create(r)):e.closeMark(o)},link:function(e,t,n,r){var i=n.entering,o=e.schema.marks.link,a=t,s=a.destination,c=a.title;if(i){var l=p({linkUrl:s,title:c},r);e.openMark(o.create(l))}else e.closeMark(o)},softbreak:function(e,t){if("paragraph"===t.parent.type){var n=t.prev,r=t.next;n&&!z2(n)&&e.closeNode(),r&&!z2(r)&&e.openNode(e.schema.nodes.paragraph)}},table:function(e,t,n,r){var i=n.entering;i?e.openNode(e.schema.nodes.table,r):e.closeNode()},tableHead:function(e,t,n,r){var i=n.entering;i?e.openNode(e.schema.nodes.tableHead,r):e.closeNode()},tableBody:function(e,t,n,r){var i=n.entering;i?e.openNode(e.schema.nodes.tableBody,r):e.closeNode()},tableRow:function(e,t,n,r){var i=n.entering;i?e.openNode(e.schema.nodes.tableRow,r):e.closeNode()},tableCell:function(e,t,n){var r=n.entering;if(!t.ignored){var i=function(t){return t&&(P2(t)||L2(e,t))};if(r){var o=e.schema.nodes,a=o.tableHeadCell,s=o.tableBodyCell,c=o.paragraph,l=t.parent.parent,u="tableHead"===l.type?a:s,d=l.parent,f=(d.columns[t.startIdx]||{}).align,h=p({},t.attrs);f&&(h.align=f),e.openNode(u,h),i(t.firstChild)&&e.openNode(c)}else i(t.lastChild)&&e.closeNode(),e.closeNode()}},strike:function(e,t,n,r){var i=n.entering,o=e.schema.marks.strike;i?e.openMark(o.create(r)):e.closeMark(o)},code:function(e,t,n,r){var i=e.schema.marks.code;e.openMark(i.create(r)),e.addText(A2(t.literal||"")),e.closeMark(i)},customBlock:function(e,t){var n=e.schema.nodes,r=n.customBlock,i=n.paragraph,o=t,a=o.info,s=o.literal;e.openNode(r,{info:a}),e.addText(A2(s||"")),e.closeNode(),t.next||(e.openNode(i),e.closeNode())},frontMatter:function(e,t){e.openNode(e.schema.nodes.frontMatter),e.addText(t.literal),e.closeNode()},htmlInline:function(e,t){var n=t.literal,r=n.match(rn),i=r[1],o=r[3],a=(i||o).toLowerCase(),s=e.schema.marks[a],c=zQ(n);if(null===s||void 0===s?void 0:s.spec.attrs.htmlInline)if(i){var l=WQ(c);e.openMark(s.create({htmlAttrs:l}))}else e.closeMark(s);else{var u=V2[a];u&&u(e,t,i)}},htmlBlock:function(e,t){var n=t.literal,r=document.createElement("div"),i=an.test(n);if(i)e.openNode(e.schema.nodes.htmlComment),e.addText(t.literal),e.closeNode();else{var o=n.match(rn),a=o[1],s=o[3],c=(a||s).toLowerCase(),l=e.schema.nodes[c],u=zQ(n);if(null===l||void 0===l?void 0:l.spec.attrs.htmlBlock){var d=WQ(u),f=$Q(t,c);e.addNode(l,{htmlAttrs:d,childrenHTML:f})}else r.innerHTML=u,$2(r),e.convertByDOMParser(r)}},customInline:function(e,t,n){var r=n.entering,i=n.skipChildren,o=t,a=o.info,s=o.firstChild,c=e.schema;if(-1!==a.indexOf("widget")&&r){var l=Nt(t);i(),e.addNode(c.nodes.widget,{info:a},[c.text(Et(a,l))])}else{var u="$$";r&&(u+=s?a+" ":a),e.addText(u)}}};function G2(e){var t=Object.keys(e),n=p({},W2),r=new VX({gfm:!0,nodeId:!0,convertors:e}),i=r.getConvertors();return t.forEach((function(t){var r=W2[t];r&&!Ie(["htmlBlock","htmlInline"],t)&&(n[t]=function(n,o,a){a.origin=function(){return i[t](o,a,i)};var s,c=e[t](o,a);if(c){var l=Array.isArray(c)?c[0]:c,u=l.attributes,d=l.classNames;s={htmlAttrs:u,classNames:d}}r(n,o,a,s)})})),n}function K2(e,t){return!!(e.isText&&t.isText&&r["Mark"].sameSet(e.marks,t.marks))&&e.withText(e.text+t.text)}var J2=function(){function e(e,t){this.schema=e,this.convertors=t,this.stack=[{type:this.schema.topNodeType,attrs:null,content:[]}],this.marks=r["Mark"].none}return e.prototype.top=function(){return He(this.stack)},e.prototype.push=function(e){this.stack.length&&this.top().content.push(e)},e.prototype.addText=function(e){if(e){var t=this.top().content,n=He(t),r=this.schema.text(e,this.marks),i=n&&K2(n,r);i?t[t.length-1]=i:t.push(r)}},e.prototype.openMark=function(e){this.marks=e.addToSet(this.marks)},e.prototype.closeMark=function(e){this.marks=e.removeFromSet(this.marks)},e.prototype.addNode=function(e,t,n){var r=e.createAndFill(t,n,this.marks);return r?(this.push(r),r):null},e.prototype.openNode=function(e,t){this.stack.push({type:e,attrs:t,content:[]})},e.prototype.closeNode=function(){this.marks.length&&(this.marks=r["Mark"].none);var e=this.stack.pop(),t=e.type,n=e.attrs,i=e.content;return this.addNode(t,n,i)},e.prototype.convertByDOMParser=function(e){var t=this,n=r["DOMParser"].fromSchema(this.schema).parse(e);n.content.forEach((function(e){return t.push(e)}))},e.prototype.closeUnmatchedHTMLInline=function(e,t){var n;if(!t&&"htmlInline"!==e.type)for(var r=this.stack.length-1,i=r;i>=0;i-=1){var o=this.stack[i];if(null===(n=o.attrs)||void 0===n||!n.rawHTML)break;o.content.length?this.closeNode():this.stack.pop()}},e.prototype.convert=function(e,t){var n=e.walker(),r=n.next(),i=function(){var e=r.node,i=r.entering,a=o.convertors[e.type],s=!1;if(a){var c={entering:i,leaf:!kt(e),getChildrenText:xt,options:{gfm:!0,nodeId:!1,tagFilter:!1,softbreak:"\n"},skipChildren:function(){s=!0}};if(o.closeUnmatchedHTMLInline(e,i),a(o,e,c),(null===t||void 0===t?void 0:t.node)===e){var l=o.stack.reduce((function(e,t){return e+t.content.reduce((function(e,t){return e+t.nodeSize}),0)}),0)+1;t.setMappedPos(l)}}s&&(n.resumeAt(e,!1),n.next()),r=n.next()},o=this;while(r)i()},e.prototype.convertNode=function(e,t){return this.convert(e,t),this.stack.length?this.closeNode():null},e}();function Y2(e,t,n){var r=n[0],i=n[1];e.write(r),e.convertInline(t),e.write(i)}function X2(e,t,n){var r=t.node,i=t.parent,o=n[0],a=n[1];e.stopNewline=!0,e.write(o),e.convertNode(r),e.write(a),"doc"===(null===i||void 0===i?void 0:i.type.name)&&(e.closeBlock(r),e.stopNewline=!1)}function Q2(e,t){var n=e.length,r="",i="";return"left"===t?(r=":",n-=1):"right"===t?(i=":",n-=1):"center"===t&&(r=":",i=":",n-=2),""+r+Ae("-",Math.max(n,3))+i}var Z2={text:function(e,t){var n,r=t.node,i=null!==(n=r.text)&&void 0!==n?n:"";(r.marks||[]).some((function(e){return"link"===e.type.name}))?e.text(Pe(i),!1):e.text(i)},paragraph:function(e,t){var n=t.node,r=t.parent,i=t.index,o=void 0===i?0:i;if(e.stopNewline)e.convertInline(n);else{var a=0===o,s=!a&&r.child(o-1),c=s&&0===s.childCount,l=o<r.childCount-1&&r.child(o+1),u=l&&"paragraph"===l.type.name,d=0===n.childCount;d&&c?e.write("<br>\n"):!d||c||a?(e.convertInline(n),u?e.write("\n"):e.closeBlock(n)):e.write("\n")}},heading:function(e,t,n){var r=t.node,i=n.delim,o=r.attrs.headingType;"atx"===o?(e.write(i+" "),e.convertInline(r),e.closeBlock(r)):(e.convertInline(r),e.ensureNewLine(),e.write(i),e.closeBlock(r))},codeBlock:function(e,t,n){var r=t.node,i=n.delim,o=n.text,a=i,s=a[0],c=a[1];e.write(s),e.ensureNewLine(),e.text(o,!1),e.ensureNewLine(),e.write(c),e.closeBlock(r)},blockQuote:function(e,t,n){var r=t.node,i=t.parent,o=n.delim;(null===i||void 0===i?void 0:i.type.name)===r.type.name&&e.flushClose(1),e.wrapBlock(o,null,r,(function(){return e.convertNode(r)}))},bulletList:function(e,t,n){var r=t.node,i=n.delim;e.convertList(r,Ae(" ",4),(function(){return i+" "}))},orderedList:function(e,t){var n=t.node,r=n.attrs.order||1;e.convertList(n,Ae(" ",4),(function(e){var t=String(r+e);return t+". "}))},listItem:function(e,t){var n=t.node,r=n.attrs,i=r.task,o=r.checked;i&&e.write("["+(o?"x":" ")+"] "),e.convertNode(n)},image:function(e,t,n){var r=n.attrs;e.write("!["+(null===r||void 0===r?void 0:r.altText)+"]("+(null===r||void 0===r?void 0:r.imageUrl)+")")},thematicBreak:function(e,t,n){var r=t.node,i=n.delim;e.write(i),e.closeBlock(r)},table:function(e,t){var n=t.node;e.convertNode(n),e.closeBlock(n)},tableHead:function(e,t,n){var r=t.node,i=n.delim,o=r.firstChild;e.convertNode(r);var a=null!==i&&void 0!==i?i:"";!i&&o&&o.forEach((function(e){var t=e.textContent,n=e.attrs,r=Q2(t,n.align);a+="| "+r+" "})),e.write(a+"|"),e.ensureNewLine()},tableBody:function(e,t){var n=t.node;e.convertNode(n)},tableRow:function(e,t){var n=t.node;e.convertNode(n),e.write("|"),e.ensureNewLine()},tableHeadCell:function(e,t,n){var r=t.node,i=n.delim,o=void 0===i?"| ":i;e.write(o),e.convertTableCell(r),e.write(" ")},tableBodyCell:function(e,t,n){var r=t.node,i=n.delim,o=void 0===i?"| ":i;e.write(o),e.convertTableCell(r),e.write(" ")},customBlock:function(e,t,n){var r=t.node,i=n.delim,o=n.text,a=i,s=a[0],c=a[1];e.write(s),e.ensureNewLine(),e.text(o,!1),e.ensureNewLine(),e.write(c),e.closeBlock(r)},frontMatter:function(e,t,n){var r=t.node,i=n.text;e.text(i,!1),e.closeBlock(r)},widget:function(e,t,n){var r=n.text;e.write(r)},html:function(e,t,n){var r=t.node,i=n.text;e.write(i),r.attrs.htmlBlock&&e.closeBlock(r)},htmlComment:function(e,t,n){var r=t.node,i=n.text;e.write(i),e.closeBlock(r)}};function e3(e,t){var n=t.state,r=t.nodeInfo,i=t.params,o=i.rawHTML;o?B(e,["heading","codeBlock"])>-1?Y2(n,r.node,o):B(e,["image","thematicBreak"])>-1?n.write(o):X2(n,r,o):Z2[e](n,r,i)}function t3(e,t){var n=e.text,r=/`+/g,i=0;if(e.isText&&n){var o=r.exec(n);while(o)i=Math.max(i,o[0].length),o=r.exec(n)}for(var a=i>0&&t>0?" `":"`",s=0;s<i;s+=1)a+="`";return i>0&&t<0&&(a+=" "),a}function n3(e){return e?["<"+e+">","</"+e+">"]:null}function r3(e){return e?"<"+e+">":null}function i3(e){return e?"</"+e+">":null}var o3={heading:function(e){var t=e.node,n=t.attrs,r=n.level,i=Ae("#",r);return"setext"===n.headingType&&(i=1===r?"===":"---"),{delim:i,rawHTML:n3(n.rawHTML)}},codeBlock:function(e){var t=e.node,n=t,r=n.attrs,i=n.textContent;return{delim:["```"+(r.language||""),"```"],rawHTML:n3(r.rawHTML),text:i}},blockQuote:function(e){var t=e.node;return{delim:"> ",rawHTML:n3(t.attrs.rawHTML)}},bulletList:function(e,t){var n=e.node,r=t.inTable,i=n.attrs.rawHTML;return r&&(i=i||"ul"),{delim:"*",rawHTML:n3(i)}},orderedList:function(e,t){var n=e.node,r=t.inTable,i=n.attrs.rawHTML;return r&&(i=i||"ol"),{rawHTML:n3(i)}},listItem:function(e,t){var n=e.node,r=t.inTable,i=n.attrs,o=i.task,a=i.checked,s=n.attrs.rawHTML;r&&(s=s||"li");var c=o?' class="task-list-item'+(a?" checked":"")+'"':"",l=o?" data-task"+(a?" data-task-checked":""):"";return{rawHTML:s?["<"+s+c+l+">","</"+s+">"]:null}},table:function(e){var t=e.node;return{rawHTML:n3(t.attrs.rawHTML)}},tableHead:function(e){var t=e.node;return{rawHTML:n3(t.attrs.rawHTML)}},tableBody:function(e){var t=e.node;return{rawHTML:n3(t.attrs.rawHTML)}},tableRow:function(e){var t=e.node;return{rawHTML:n3(t.attrs.rawHTML)}},tableHeadCell:function(e){var t=e.node;return{rawHTML:n3(t.attrs.rawHTML)}},tableBodyCell:function(e){var t=e.node;return{rawHTML:n3(t.attrs.rawHTML)}},image:function(e){var t=e.node,n=t.attrs,r=n.rawHTML,i=n.altText,o=n.imageUrl.replace(/&amp;/g,"&"),a=i?' alt="'+_e(i)+'"':"";return{rawHTML:r?"<"+r+' src="'+_e(o)+'"'+a+">":null,attrs:{altText:Pe(i||""),imageUrl:o}}},thematicBreak:function(e){var t=e.node;return{delim:"***",rawHTML:r3(t.attrs.rawHTML)}},customBlock:function(e){var t=e.node,n=t,r=n.attrs,i=n.textContent;return{delim:["$$"+r.info,"$$"],text:i}},frontMatter:function(e){var t=e.node;return{text:t.textContent}},widget:function(e){var t=e.node;return{text:t.textContent}},strong:function(e,t){var n=e.node,r=t.entering,i=n.attrs.rawHTML;return{delim:"**",rawHTML:r?r3(i):i3(i)}},emph:function(e,t){var n=e.node,r=t.entering,i=n.attrs.rawHTML;return{delim:"*",rawHTML:r?r3(i):i3(i)}},strike:function(e,t){var n=e.node,r=t.entering,i=n.attrs.rawHTML;return{delim:"~~",rawHTML:r?r3(i):i3(i)}},link:function(e,t){var n=e.node,r=t.entering,i=n.attrs,o=i.title,a=i.rawHTML,s=i.linkUrl.replace(/&amp;/g,"&"),c=o?' title="'+_e(o)+'"':"";return r?{delim:"[",rawHTML:a?"<"+a+' href="'+_e(s)+'"'+c+">":null}:{delim:"]("+s+(o?" "+Fe(Pe(o)):"")+")",rawHTML:i3(a)}},code:function(e,t){var n=e.node,r=e.parent,i=e.index,o=void 0===i?0:i,a=t.entering,s=a?t3(r.child(o),-1):t3(r.child(o-1),1),c=a?r3(n.attrs.rawHTML):i3(n.attrs.rawHTML);return{delim:s,rawHTML:c}},htmlComment:function(e){var t=e.node;return{text:t.textContent}},html:function(e,t){var n=e.node,r=t.entering,i=n.type.name,o=n.attrs.htmlAttrs,a="<"+i,s="</"+i+">";return Object.keys(o).forEach((function(e){a+=" "+e+'="'+o[e].replace(/"/g,"'")+'"'})),a+=">",n.attrs.htmlInline?{rawHTML:r?a:s}:{text:""+a+n.attrs.childrenHTML+s}}},a3={strong:{mixable:!0,removedEnclosingWhitespace:!0},emph:{mixable:!0,removedEnclosingWhitespace:!0},strike:{mixable:!0,removedEnclosingWhitespace:!0},code:{escape:!1},link:null,html:null};function s3(e){var t={},n=Object.keys(Z2);return n.forEach((function(n){t[n]=function(t,r){var i=Z2[n];if(i){var o=e[n],a=o?o(r,{inTable:t.inTable}):{};e3(n,{state:t,nodeInfo:r,params:a})}}})),t}function c3(e){var t={},n=Object.keys(a3);return n.forEach((function(n){t[n]=function(t,r){var i=a3[n],o=e[n],a=o&&t&&!R(r),s=a?o(t,{entering:r}):{};return p(p({},s),i)}})),t}function l3(e){var t=Object.keys(e);t.forEach((function(t){var n=o3[t],r=e[t];o3[t]=n?function(e,t){return t.origin=function(){return n(e,t)},r(e,t)}:r,delete e[t]}));var n=s3(o3),r=c3(o3);return{nodeTypeConvertors:n,markTypeConvertors:r}}var u3=function(){function e(e){var t=e.nodeTypeConvertors,n=e.markTypeConvertors;this.nodeTypeConvertors=t,this.markTypeConvertors=n,this.delim="",this.result="",this.closed=!1,this.tightList=!1,this.stopNewline=!1,this.inTable=!1}return e.prototype.getMarkConvertor=function(e){var t=e.attrs.htmlInline?"html":e.type.name;return this.markTypeConvertors[t]},e.prototype.isInBlank=function(){return/(^|\n)$/.test(this.result)},e.prototype.markText=function(e,t,n,r){var i=this.getMarkConvertor(e);if(i){var o=i({node:e,parent:n,index:r},t),a=o.delim,s=o.rawHTML;return s||a}return""},e.prototype.flushClose=function(e){if(!this.stopNewline&&this.closed){if(this.isInBlank()||(this.result+="\n"),e||(e=2),e>1){var t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(var r=1;r<e;r+=1)this.result+=t+"\n"}this.closed=!1}},e.prototype.wrapBlock=function(e,t,n,r){var i=this.delim;this.write(t||e),this.delim+=e,r(),this.delim=i,this.closeBlock(n)},e.prototype.ensureNewLine=function(){this.isInBlank()||(this.result+="\n")},e.prototype.write=function(e){void 0===e&&(e=""),this.flushClose(),this.delim&&this.isInBlank()&&(this.result+=this.delim),e&&(this.result+=e)},e.prototype.closeBlock=function(e){this.closed=e},e.prototype.text=function(e,t){void 0===t&&(t=!0);for(var n=e.split("\n"),r=0;r<n.length;r+=1)this.write(),this.result+=t?Be(n[r]):n[r],r!==n.length-1&&(this.result+="\n")},e.prototype.convertBlock=function(e,t,n){var r=e.type.name,i=this.nodeTypeConvertors[r],o={node:e,parent:t,index:n};e.attrs.htmlBlock?this.nodeTypeConvertors.html(this,o):i&&i(this,o)},e.prototype.convertInline=function(e){var t=this,n=[],r="",i=function(i,o,a){var s=i?i.marks:[],c=r;r="";var l=i&&i.isText&&s.some((function(e){var n=t.getMarkConvertor(e),r=n&&n();return r&&r.removedEnclosingWhitespace}));if(l&&i&&i.text){var u=/^(\s*)(.*?)(\s*)$/m.exec(i.text),d=u[1],f=u[2],p=u[3];c+=d,r=p,(d||p)&&(i=f?i.withText(f):null,i||(s=n))}for(var h=s.length&&He(s),m=h&&t.getMarkConvertor(h),v=m&&m(),g=v&&!1===v.escape,b=s.length-(g?1:0),y=0;y<b;y+=1){f=s[y];if(v&&!v.mixable)break;for(var w=0;w<n.length;w+=1){var k=n[w];if(v&&!v.mixable)break;if(f.eq(k)){y>w?s=s.slice(0,w).concat(f).concat(s.slice(w,y)).concat(s.slice(y+1,b)):w>y&&(s=s.slice(0,y).concat(s.slice(y+1,w)).concat(f).concat(s.slice(w,b)));break}}}var x=0;while(x<Math.min(n.length,b)&&s[x].eq(n[x]))x+=1;while(x<n.length){var C=n.pop();C&&t.text(t.markText(C,!1,e,a),!1)}if(c&&t.text(c),i){while(n.length<b){f=s[n.length];n.push(f),t.text(t.markText(f,!0,e,a),!1)}g&&i.isText?t.text(t.markText(h,!0,e,a)+i.text+t.markText(h,!1,e,a+1),!1):t.convertBlock(i,e,a)}};e.forEach(i),i(null,null,e.childCount)},e.prototype.convertList=function(e,t,n){var r,i=this;this.closed&&this.closed.type===e.type?this.flushClose(3):this.tightList&&this.flushClose(1);var o=null===(r=e.attrs.tight)||void 0===r||r,a=this.tightList;this.tightList=o,e.forEach((function(r,a,s){s&&o&&i.flushClose(1),i.wrapBlock(t,n(s),e,(function(){return i.convertBlock(r,e,s)}))})),this.tightList=a},e.prototype.convertTableCell=function(e){var t=this;this.stopNewline=!0,this.inTable=!0,e.forEach((function(n,r,i){if(Ie(["bulletList","orderedList"],n.type.name))t.convertBlock(n,e,i),t.closed=!1;else if(t.convertInline(n),i<e.childCount-1){var o=e.child(i+1);"paragraph"===o.type.name&&t.write("<br>")}})),this.stopNewline=!1,this.inTable=!1},e.prototype.convertNode=function(e,t){var n=this;return e.forEach((function(r,i,o){if(n.convertBlock(r,e,o),(null===t||void 0===t?void 0:t.node)===r){var a=n.result.split("\n");t.setMappedPos([a.length,He(a).length+1])}})),this.result},e}(),d3=function(){function e(e,t,n,r){var i=this;this.setMappedPos=function(e){i.mappedPosWhenConverting=e},this.schema=e,this.eventEmitter=r,this.focusedNode=null,this.mappedPosWhenConverting=null,this.toWwConvertors=G2(n),this.toMdConvertors=l3(t||{}),this.eventEmitter.listen("setFocusedNode",(function(e){return i.focusedNode=e}))}return e.prototype.getMappedPos=function(){return this.mappedPosWhenConverting},e.prototype.getInfoForPosSync=function(){return{node:this.focusedNode,setMappedPos:this.setMappedPos}},e.prototype.toWysiwygModel=function(e){var t=new J2(this.schema,this.toWwConvertors);return t.convertNode(e,this.getInfoForPosSync())},e.prototype.toMarkdownText=function(e){var t=new u3(this.toMdConvertors),n=t.convertNode(e,this.getInfoForPosSync());return n=this.eventEmitter.emitReduce("beforeConvertWysiwygToMarkdown",n),n},e}();function f3(e,t,n){var o={Plugin:a["Plugin"],Selection:a["Selection"],TextSelection:a["TextSelection"]},s={Decoration:i["Decoration"],DecorationSet:i["DecorationSet"]},c={Fragment:r["Fragment"]},l={eventEmitter:t,usageStatistics:n,pmState:o,pmView:s,pmModel:c,i18n:w0};if(C(e)){var u=e[0],d=e[1],f=void 0===d?{}:d;return u(l,f)}return e(l)}function p3(e,t,n){return t.listen("mixinTableOffsetMapPrototype",QZ),(null!==e&&void 0!==e?e:[]).reduce((function(e,r){var i=f3(r,t,n);if(!i)throw new Error("The return value of the executed plugin is empty.");var o=i.markdownParsers,a=i.toHTMLRenderers,s=i.toMarkdownRenderers,c=i.markdownPlugins,l=i.wysiwygPlugins,u=i.wysiwygNodeViews,d=i.markdownCommands,f=i.wysiwygCommands,h=i.toolbarItems;return a&&(e.toHTMLRenderers=ze(e.toHTMLRenderers,a)),s&&(e.toMarkdownRenderers=ze(e.toMarkdownRenderers,s)),c&&(e.mdPlugins=e.mdPlugins.concat(c)),l&&(e.wwPlugins=e.wwPlugins.concat(l)),u&&(e.wwNodeViews=p(p({},e.wwNodeViews),u)),d&&(e.mdCommands=p(p({},e.mdCommands),d)),f&&(e.wwCommands=p(p({},e.wwCommands),f)),h&&(e.toolbarItems=e.toolbarItems.concat(h)),o&&(e.markdownParsers=p(p({},e.markdownParsers),o)),e}),{toHTMLRenderers:{},toMarkdownRenderers:{},mdPlugins:[],wwPlugins:[],wwNodeViews:{},mdCommands:{},wwCommands:{},toolbarItems:[],markdownParsers:{}})}var h3="data-task",m3="data-task-disabled",v3="checked";function g3(e){["htmlBlock","htmlInline"].forEach((function(t){e[t]&&Object.keys(e[t]).forEach((function(e){return VQ(e)}))}))}var b3=function(){function e(e){var t=this;this.options=y({linkAttributes:null,extendedAutolinks:!1,customHTMLRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null,frontMatter:!1,usageStatistics:!0,theme:"light"},e),this.eventEmitter=new D2;var n=Ne(this.options.linkAttributes),r=p3(this.options.plugins,this.eventEmitter,this.options.usageStatistics)||{},i=r.toHTMLRenderers,o=r.markdownParsers,a=this.options,s=a.customHTMLRenderer,c=a.extendedAutolinks,l=a.referenceDefinition,u=a.frontMatter,d=a.customHTMLSanitizer,f={linkAttributes:n,customHTMLRenderer:p(p({},i),s),extendedAutolinks:c,referenceDefinition:l,frontMatter:u,sanitizer:d||zQ};g3(f.customHTMLRenderer),this.options.events&&g(this.options.events,(function(e,n){t.on(n,e)}));var h=this.options,m=h.el,v=h.initialValue,b=h.theme,w=m.innerHTML;"light"!==b&&m.classList.add(un(b)),m.innerHTML="",this.toastMark=new LX("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:c,referenceDefinition:l,disallowDeepHeading:!0,frontMatter:u,customParser:o}),this.preview=new kZ(this.eventEmitter,p(p({},f),{isViewer:!0})),Eo(this.preview.previewContent,"mousedown",this.toggleTask.bind(this)),v?this.setMarkdown(v):w&&this.preview.setHTML(w),m.appendChild(this.preview.previewContent),this.eventEmitter.emit("load",this)}return e.prototype.toggleTask=function(e){var t=e.target,n=getComputedStyle(t,":before");!t.hasAttribute(m3)&&t.hasAttribute(h3)&&cn(n,e.offsetX,e.offsetY)&&yn(t,v3)},e.prototype.setMarkdown=function(e){var t=this.toastMark.getLineTexts(),n=t.length,r=He(t),i=[n,r.length+1],o=this.toastMark.editMarkdown([1,1],i,e||"");this.eventEmitter.emit("updatePreview",o)},e.prototype.on=function(e,t){this.eventEmitter.listen(e,t)},e.prototype.off=function(e){this.eventEmitter.removeEventHandler(e)},e.prototype.addHook=function(e,t){this.eventEmitter.removeEventHandler(e),this.eventEmitter.listen(e,t)},e.prototype.destroy=function(){wo(this.preview.el,"mousedown",this.toggleTask.bind(this)),this.preview.destroy(),this.eventEmitter.emit("destroy")},e.prototype.isViewer=function(){return!0},e.prototype.isMarkdownMode=function(){return!1},e.prototype.isWysiwygMode=function(){return!1},e}();function y3(e){return e instanceof r["Node"]}function w3(e){var t=["document","blockQuote","bulletList","orderedList","listItem","paragraph","heading","emph","strong","strike","link","image","table","tableHead","tableBody","tableRow","tableHeadCell","tableBodyCell"];return Ie(t,e)}function k3(e){var t=e.attrs,n=e.type,r=n.name,i={type:r,wysiwygNode:!0,literal:!w3(r)&&y3(e)?e.textContent:null},o={heading:{level:t.level},link:{destination:t.linkUrl,title:t.title},image:{destination:t.imageUrl},codeBlock:{info:t.language},bulletList:{type:"list",listData:{type:"bullet"}},orderedList:{type:"list",listData:{type:"ordered",start:t.order}},listItem:{type:"item",listData:{task:t.task,checked:t.checked}},tableHeadCell:{type:"tableCell",cellType:"head",align:t.align},tableBodyCell:{type:"tableCell",cellType:"body",align:t.align},customBlock:{info:t.info}},a=o[r],s=p(p({},i),a),c=e.attrs,l=c.htmlAttrs,u=c.childrenHTML;return l?p(p({},s),{attrs:l,childrenHTML:u}):s}var x3={openTag:function(e,t){var n=e,r=n.tagName,i=n.classNames,o=n.attributes,a=document.createElement(r),s={};i&&(a.className=i.join(" ")),o&&(s=p(p({},s),o)),On(s,a),t.push(a)},closeTag:function(e,t){if(t.length>1){var n=t.pop();He(t).appendChild(n)}},html:function(e,t){He(t).insertAdjacentHTML("beforeend",e.content)},text:function(e,t){var n=document.createTextNode(e.content);He(t).appendChild(n)}},C3=function(){function e(e,t){var n=ZQ(e,t),r=p(p({},t.htmlBlock),t.htmlInline);this.customConvertorKeys=Object.keys(t).concat(Object.keys(r)),this.renderer=new VX({gfm:!0,convertors:p(p({},n),r)}),this.convertors=this.renderer.getConvertors()}return e.prototype.generateTokens=function(e){var t=k3(e),n={entering:!0,leaf:!!y3(e)&&e.isLeaf,options:this.renderer.getOptions(),getChildrenText:function(){return y3(e)?e.textContent:""},skipChildren:function(){return!1}},r=this.convertors[e.type.name],i=r(t,n,this.convertors),o=C(i)?i:[i];return(w3(e.type.name)||e.attrs.htmlInline)&&(n.entering=!1,o.push({type:"text",content:y3(e)?e.textContent:""}),o=o.concat(r(t,n,this.convertors))),o},e.prototype.toDOMNode=function(e){var t=this.generateTokens(e),n=[];return t.forEach((function(e){return x3[e.type](e,n)})),n[0]},e.prototype.getToDOMNode=function(e){return Ie(this.customConvertorKeys,e)?this.toDOMNode.bind(this):null},e}(),O3=100,S3=15,T3=null,E3=null;function _3(e,t){var n=t.syncScrollTop,r=t.releaseEventBlock;E3&&clearTimeout(E3),n(e),E3=setTimeout((function(){r()}),S3)}function M3(e,t,n){var r=t-e,i=Date.now(),o=function(){var a,s=Date.now(),c=(s-i)/O3;T3&&clearTimeout(T3),c<1?(a=e+r*Math.cos((1-c)*Math.PI/2),_3(Math.ceil(a),n),T3=setTimeout(o,1)):(_3(t,n),T3=null)};o()}var I3=18,j3=function(){function e(e,t,n){this.latestEditorScrollTop=null,this.latestPreviewScrollTop=null,this.blockedScroll=null,this.active=!0,this.timer=null;var r=t.previewContent,i=t.el;this.previewRoot=r,this.previewEl=i,this.mdEditor=e,this.editorView=e.view,this.toastMark=e.getToastMark(),this.eventEmitter=n,this.addScrollSyncEvent()}return e.prototype.addScrollSyncEvent=function(){var e=this;this.eventEmitter.listen("afterPreviewRender",(function(){e.clearTimer(),e.timer=setTimeout((function(){e.syncPreviewScrollTop(!0)}),200)})),this.eventEmitter.listen("scroll",(function(t,n){e.active&&("editor"===t&&"editor"!==e.blockedScroll?e.syncPreviewScrollTop():"preview"===t&&"preview"!==e.blockedScroll&&e.syncEditorScrollTop(n))})),this.eventEmitter.listen("toggleScrollSync",(function(t){e.active=t}))},e.prototype.getMdNodeAtPos=function(e,t){var n=e.content.findIndex(t.pos),r=n.index;return this.toastMark.findFirstNodeAtLine(r+1)},e.prototype.getScrollTopByCaretPos=function(){var e=this.mdEditor.getSelection(),t=this.toastMark.findFirstNodeAtLine(e[0][0]),n=this.previewEl.clientHeight,r=uZ(this.previewRoot,t).el,i=aZ(r,this.previewRoot)||r.offsetTop,o=r.clientHeight,a=i+o-.5*n;this.latestEditorScrollTop=null;var s=r.getBoundingClientRect().top-this.previewEl.getBoundingClientRect().top;return s<n?null:a},e.prototype.syncPreviewScrollTop=function(e){void 0===e&&(e=!1);var t=this,n=t.editorView,r=t.previewEl,i=t.previewRoot,o=n.dom.getBoundingClientRect(),a=o.left,s=o.top,c=n.posAtCoords({left:a,top:s}),l=n.state.doc,u=this.getMdNodeAtPos(l,c);if(u&&!ct(u)){var d=r.scrollTop,f=n.dom,p=f.scrollTop,h=f.scrollHeight,m=f.clientHeight,v=f.children,g=h-p<=m+I3,b=g?r.scrollHeight:0;if(p&&!g){if(e){var y=this.getScrollTopByCaretPos();if(!y)return;b=y}else{var w=uZ(this.previewRoot,u),k=w.el,x=w.mdNode,C=rZ(l,x,v),O=C.height,S=C.rect,T=aZ(k,i)||k.offsetTop,E=k.clientHeight,_=s>S.top?Math.min((s-S.top)/O,1):0;b=T+E*_}b=this.getResolvedScrollTop("editor",p,b,d),this.latestEditorScrollTop=p}b!==d&&this.run("editor",b,d)}},e.prototype.syncEditorScrollTop=function(e){var t=this,n=t.toastMark,r=t.editorView,i=t.previewRoot,o=t.previewEl,a=r.dom,s=r.state,c=o.scrollTop,l=o.clientHeight,u=o.scrollHeight,d=u-c<=l,f=a.scrollTop,p=d?a.scrollHeight:0;if(c&&e&&!d){if(e=oZ(e,i),!e.getAttribute("data-nodeid"))return;var h=a.children,m=Number(e.getAttribute("data-nodeid")),v=uZ(this.previewRoot,n.findNodeById(m)),g=v.mdNode,b=v.el,y=it(g);p=h[y-1].offsetTop;var w=rZ(s.doc,g,h).height,k=bZ(b,i,m),x=k.nodeHeight,C=k.offsetTop;p+=lZ(c,C,x,w),p=this.getResolvedScrollTop("preview",c,p,f),this.latestPreviewScrollTop=c}p!==f&&this.run("preview",p,f)},e.prototype.getResolvedScrollTop=function(e,t,n,r){var i="editor"===e?this.latestEditorScrollTop:this.latestPreviewScrollTop;return null===i?n:i<t?Math.max(n,r):Math.min(n,r)},e.prototype.run=function(e,t,n){var r,i=this;"editor"===e?(r=this.previewEl,this.blockedScroll="preview"):(r=this.editorView.dom,this.blockedScroll="editor");var o={syncScrollTop:function(e){return r.scrollTop=e},releaseEventBlock:function(){return i.blockedScroll=null}};M3(n,t,o)},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.destroy=function(){this.clearTimer(),this.eventEmitter.removeEventHandler("scroll"),this.eventEmitter.removeEventHandler("afterPreviewRender")},e}(),D3={getPopupInitialValues:function(e,t){var n=t.popupName;return"link"===n?{linkText:e.getSelectedText()}:{}}};function N3(e){e.eventEmitter.listen("query",(function(t,n){return D3[t](e,n)}))}var A3=function(){function e(e){var t=this;this.initialHTML=e.el.innerHTML,e.el.innerHTML="",this.options=y({previewStyle:"tab",previewHighlight:!0,initialEditType:"markdown",height:"300px",minHeight:"200px",language:"en-US",useCommandShortcut:!0,usageStatistics:!0,toolbarItems:[["heading","bold","italic","strike"],["hr","quote"],["ul","ol","task","indent","outdent"],["table","image","link"],["code","codeblock"],["scrollSync"]],hideModeSwitch:!1,linkAttributes:null,extendedAutolinks:!1,customHTMLRenderer:null,customMarkdownRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null,frontMatter:!1,widgetRules:[],theme:"light",autofocus:!0},e);var n=this.options,r=n.customHTMLRenderer,i=n.extendedAutolinks,o=n.referenceDefinition,a=n.frontMatter,s=n.customMarkdownRenderer,c=n.useCommandShortcut,l=n.initialEditType,u=n.widgetRules,d=n.customHTMLSanitizer;this.mode=l||"markdown",this.mdPreviewStyle=this.options.previewStyle,this.i18n=w0,this.i18n.setCode(this.options.language),this.eventEmitter=new D2,It(u);var f=Ne(this.options.linkAttributes);this.pluginInfo=p3(this.options.plugins,this.eventEmitter,this.options.usageStatistics);var h=this.pluginInfo,m=h.toHTMLRenderers,v=h.toMarkdownRenderers,b=h.mdPlugins,w=h.wwPlugins,k=h.wwNodeViews,x=h.mdCommands,C=h.wwCommands,O=h.markdownParsers,S={linkAttributes:f,customHTMLRenderer:ze(m,r),extendedAutolinks:i,referenceDefinition:o,frontMatter:a,sanitizer:d||zQ},T=new C3(f,S.customHTMLRenderer),E=YQ(S.customHTMLRenderer,S.sanitizer,T);this.toastMark=new LX("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:i,referenceDefinition:o,disallowDeepHeading:!0,frontMatter:a,customParser:O}),this.mdEditor=new lo(this.eventEmitter,{toastMark:this.toastMark,useCommandShortcut:c,mdPlugins:b}),this.preview=new kZ(this.eventEmitter,p(p({},S),{isViewer:!1,highlight:this.options.previewHighlight})),this.wwEditor=new w2(this.eventEmitter,{toDOMAdaptor:T,useCommandShortcut:c,htmlSchemaMap:E,linkAttributes:f,wwPlugins:w,wwNodeViews:k}),this.convertor=new d3(this.wwEditor.getSchema(),p(p({},v),s),ZQ(f,S.customHTMLRenderer),this.eventEmitter),this.setMinHeight(this.options.minHeight),this.setHeight(this.options.height),this.setMarkdown(this.options.initialValue,!1),this.options.placeholder&&this.setPlaceholder(this.options.placeholder),this.options.initialValue||this.setHTML(this.initialHTML,!1),this.commandManager=new N2(this.eventEmitter,this.mdEditor.commands,this.wwEditor.commands,(function(){return t.mode})),this.options.usageStatistics&&Me(),this.scrollSync=new j3(this.mdEditor,this.preview,this.eventEmitter),this.addInitEvent(),this.addInitCommand(x,C),N3(this),this.options.hooks&&g(this.options.hooks,(function(e,n){return t.addHook(n,e)})),this.options.events&&g(this.options.events,(function(e,n){return t.on(n,e)})),this.eventEmitter.emit("load",this),this.moveCursorToStart(this.options.autofocus)}return e.prototype.addInitEvent=function(){var e=this;this.on("needChangeMode",this.changeMode.bind(this)),this.on("loadUI",(function(){if("auto"!==e.height){var t=Math.min(parseInt(e.minHeight,10),parseInt(e.height,10)-75)+"px";e.setMinHeight(t)}})),In(this.eventEmitter)},e.prototype.addInitCommand=function(e,t){var n=this,r=function(e,t){Object.keys(t).forEach((function(r){n.addCommand(e,r,t[r])}))};this.addCommand("markdown","toggleScrollSync",(function(e){return n.eventEmitter.emit("toggleScrollSync",e.active),!0})),r("markdown",e),r("wysiwyg",t)},e.prototype.getCurrentModeEditor=function(){return this.isMarkdownMode()?this.mdEditor:this.wwEditor},e.factory=function(t){return t.viewer?new b3(t):new e(t)},e.setLanguage=function(e,t){w0.setLanguage(e,t)},e.prototype.changePreviewStyle=function(e){this.mdPreviewStyle!==e&&(this.mdPreviewStyle=e,this.eventEmitter.emit("changePreviewStyle",e))},e.prototype.exec=function(e,t){this.commandManager.exec(e,t)},e.prototype.addCommand=function(e,t,n){var r=this,i=function(t){void 0===t&&(t={});var i=("markdown"===e?r.mdEditor:r.wwEditor).view;n(t,i.state,i.dispatch,i)};this.commandManager.addCommand(e,t,i)},e.prototype.on=function(e,t){this.eventEmitter.listen(e,t)},e.prototype.off=function(e){this.eventEmitter.removeEventHandler(e)},e.prototype.addHook=function(e,t){this.eventEmitter.removeEventHandler(e),this.eventEmitter.listen(e,t)},e.prototype.removeHook=function(e){this.eventEmitter.removeEventHandler(e)},e.prototype.focus=function(){this.getCurrentModeEditor().focus()},e.prototype.blur=function(){this.getCurrentModeEditor().blur()},e.prototype.moveCursorToEnd=function(e){void 0===e&&(e=!0),this.getCurrentModeEditor().moveCursorToEnd(e)},e.prototype.moveCursorToStart=function(e){void 0===e&&(e=!0),this.getCurrentModeEditor().moveCursorToStart(e)},e.prototype.setMarkdown=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t=!0),this.mdEditor.setMarkdown(e,t),this.isWysiwygMode()){var n=this.toastMark.getRootNode(),r=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(r,t)}},e.prototype.setHTML=function(e,t){void 0===e&&(e=""),void 0===t&&(t=!0);var n=document.createElement("div");n.innerHTML=Sn(e);var i=r["DOMParser"].fromSchema(this.wwEditor.schema).parse(n);this.isMarkdownMode()?this.mdEditor.setMarkdown(this.convertor.toMarkdownText(i),t):this.wwEditor.setModel(i,t)},e.prototype.getMarkdown=function(){return this.isMarkdownMode()?this.mdEditor.getMarkdown():this.convertor.toMarkdownText(this.wwEditor.getModel())},e.prototype.getHTML=function(){var e=this;return this.eventEmitter.holdEventInvoke((function(){if(e.isMarkdownMode()){var t=e.toastMark.getRootNode(),n=e.convertor.toWysiwygModel(t);e.wwEditor.setModel(n)}})),this.wwEditor.view.dom.innerHTML},e.prototype.insertText=function(e){this.getCurrentModeEditor().replaceSelection(e)},e.prototype.setSelection=function(e,t){this.getCurrentModeEditor().setSelection(e,t)},e.prototype.replaceSelection=function(e,t,n){this.getCurrentModeEditor().replaceSelection(e,t,n)},e.prototype.deleteSelection=function(e,t){this.getCurrentModeEditor().deleteSelection(e,t)},e.prototype.getSelectedText=function(e,t){return this.getCurrentModeEditor().getSelectedText(e,t)},e.prototype.getRangeInfoOfNode=function(e){return this.getCurrentModeEditor().getRangeInfoOfNode(e)},e.prototype.addWidget=function(e,t,n){this.getCurrentModeEditor().addWidget(e,t,n)},e.prototype.replaceWithWidget=function(e,t,n){this.getCurrentModeEditor().replaceWithWidget(e,t,n)},e.prototype.setHeight=function(e){var t=this.options.el;k(e)&&("auto"===e?Q(t,"auto-height"):ie(t,"auto-height"),this.setMinHeight(this.getMinHeight())),A(t,{height:e}),this.height=e},e.prototype.getHeight=function(){return this.height},e.prototype.setMinHeight=function(e){if(e!==this.minHeight){var t=this.height||this.options.height;"auto"!==t&&this.options.el.querySelector("."+un("main"))&&(e=Math.min(parseInt(e,10),parseInt(t,10)-75)+"px");var n=parseInt(e,10);this.minHeight=e,this.wwEditor.setMinHeight(n),this.mdEditor.setMinHeight(n),this.preview.setMinHeight(n)}},e.prototype.getMinHeight=function(){return this.minHeight},e.prototype.isMarkdownMode=function(){return"markdown"===this.mode},e.prototype.isWysiwygMode=function(){return"wysiwyg"===this.mode},e.prototype.isViewer=function(){return!1},e.prototype.getCurrentPreviewStyle=function(){return this.mdPreviewStyle},e.prototype.changeMode=function(e,t){if(this.mode!==e){if(this.mode=e,this.isWysiwygMode()){var n=this.toastMark.getRootNode(),r=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(r)}else{r=this.wwEditor.getModel();this.mdEditor.setMarkdown(this.convertor.toMarkdownText(r),!t)}if(this.eventEmitter.emit("removePopupWidget"),this.eventEmitter.emit("changeMode",e),!t){var i=this.convertor.getMappedPos();this.focus(),this.isWysiwygMode()&&ae(i)?this.wwEditor.setSelection(i):Array.isArray(i)&&this.mdEditor.setSelection(i)}}},e.prototype.destroy=function(){var e=this;this.wwEditor.destroy(),this.mdEditor.destroy(),this.preview.destroy(),this.scrollSync.destroy(),this.eventEmitter.emit("destroy"),this.eventEmitter.getEvents().forEach((function(t,n){return e.off(n)}))},e.prototype.hide=function(){this.eventEmitter.emit("hide")},e.prototype.show=function(){this.eventEmitter.emit("show")},e.prototype.setScrollTop=function(e){this.getCurrentModeEditor().setScrollTop(e)},e.prototype.getScrollTop=function(){return this.getCurrentModeEditor().getScrollTop()},e.prototype.reset=function(){this.wwEditor.setModel([]),this.mdEditor.setMarkdown("")},e.prototype.getSelection=function(){return this.getCurrentModeEditor().getSelection()},e.prototype.setPlaceholder=function(e){this.mdEditor.setPlaceholder(e),this.wwEditor.setPlaceholder(e)},e.prototype.getEditorElements=function(){return{mdEditor:this.mdEditor.getElement(),mdPreview:this.preview.getElement(),wwEditor:this.wwEditor.getElement()}},e}();function L3(e){for(var t,n,r=arguments,i=1,o="",a="",s=[0],c=function(e){1===i&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(e?r[e]:o):3===i&&(e||o)?(s[1]=e?r[e]:o,i=2):2===i&&"..."===o&&e?s[2]=Ge(s[2]||{},r[e]):2===i&&o&&!e?(s[2]=s[2]||{})[o]=!0:i>=5&&(5===i?((s[2]=s[2]||{})[n]=e?o?o+r[e]:r[e]:o,i=6):(e||o)&&(s[2][n]+=e?o+r[e]:o)),o=""},l=0;l<e.length;l++){l&&(1===i&&c(),c(l));for(let r=0;r<e[l].length;r++)t=e[l][r],1===i?"<"===t?(c(),s=[s,"",null],i=3):o+=t:4===i?"--"===o&&">"===t?(i=1,o=""):o=t+o[0]:a?t===a?a="":o+=t:'"'===t||"'"===t?a=t:">"===t?(c(),i=1):i&&("="===t?(i=5,n=o,o=""):"/"===t&&(i<5||">"===e[l][r+1])?(c(),3===i&&(s=s[0]),i=s,(s=s[0]).push(this.apply(null,i.slice(1))),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(c(),i=2):o+=t),3===i&&"!--"===o&&(i=4,s=s[0])}return c(),s.length>2?s.slice(1):s[1]}function P3(e){return"boolean"===typeof e||e instanceof Boolean}var B3=P3,F3=function(){function e(e){this.current=e,this.root=e,this.entering=!0}return e.prototype.walk=function(){var e=this,t=e.entering,n=e.current;return n?(t?n.firstChild?(this.current=n.firstChild,this.entering=!0):this.entering=!1:n===this.root?this.current=null:n.next?(this.current=n.next,this.entering=!0):(this.current=n.parent,this.entering=!1),{vnode:n,entering:t}):null},e}(),R3=function(){function e(e,t,n){this.parent=null,this.old=null,this.firstChild=null,this.next=null,this.skip=!1,this.type=e,this.props=t,this.children=n,this.props.children=n,t.ref&&(this.ref=t.ref,delete t.ref),t.key&&(this.key=t.key,delete t.key)}return e.prototype.walker=function(){return new F3(this)},e.removalNodes=[],e}();function q3(e){return new R3("TEXT_NODE",{nodeValue:e},[])}function H3(e,t){var n=e;B3(e)||null==e?n=null:(k(e)||ae(e))&&(n=q3(String(e))),n&&t.push(n)}function U3(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=[];return n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){H3(e,i)})):H3(e,i)})),new R3(e,t||{},i)}var V3=L3.bind(U3);function z3(e){return e===Object(e)}var $3=z3;function W3(e){var t;return"TEXT_NODE"===e.type?t=document.createTextNode(e.props.nodeValue):(t=document.createElement(e.type),Y3(t,{},e.props)),t}function G3(e,t){e.node?t.removeChild(e.node):G3(e.firstChild,t)}function K3(e,t,n){Object.keys(t).forEach((function(r){if(/^on/.test(r)){if(!n[r]||t[r]!==n[r]){var i=r.slice(2).toLowerCase();e.removeEventListener(i,t[r])}}else"children"===r||n[r]||fn(e)||e.removeAttribute(r)})),Y3(e,t,n,(function(e){return!qe(t[e],n[e])}))}var J3=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function Y3(e,t,n,r){Object.keys(n).forEach((function(i){if(!r||r(i))if(/^on/.test(i)){var o=i.slice(2).toLowerCase();e.addEventListener(o,n[i])}else"nodeValue"===i?e[i]=n[i]:"style"===i&&$3(n[i])?X3(e,t[i],n[i]):"children"!==i&&(!1===n[i]?e.removeAttribute(i):e.setAttribute(i,n[i]))}))}function X3(e,t,n){t&&Object.keys(t).forEach((function(t){e.style[t]=""})),Object.keys(n).forEach((function(t){var r=n[t];e.style[t]=ae(r)&&!J3.test(t)?r+"px":r}))}function Q3(e){if(R3.removalNodes.forEach((function(e){return e4(e)})),e){var t=void 0,n=e.walker();while(t=n.walk())if(e=t.vnode,t.entering)e4(e);else if(qn(e.type)){var r=e.component;if(!e.old&&r.mounted&&r.mounted(),e.old&&r.updated){var i=r.prevProps||{};r.updated(i)}}}}function Z3(e){var t=e.parent;while(!t.node)t=t.parent;return t.node}function e4(e){if(e&&e.parent){if(e.node){var t=Z3(e);"A"===e.effect?t.appendChild(e.node):"U"===e.effect&&K3(e.node,e.old.props,e.props)}if("D"===e.effect){var n=void 0,r=e.walker();while(n=r.walk())if(e=n.vnode,!n.entering)if(qn(e.type)){var i=e.component;i.beforeDestroy&&i.beforeDestroy()}else{t=Z3(e);G3(e,t)}}e.ref&&(e.component?e.ref(e.component):e.node&&e.ref(e.node))}}function t4(e,t){var n=t.props,r=t.component;return r?(r.prevProps=r.props,r.props=t.props,r):new e(n)}function n4(e){var t=e;while(e&&!e.skip){if(qn(e.type)){var n=t4(e.type,e);n.vnode=e,e.component=n,e.props.children=e.children=[n.render()],i4(e)}else e.node||(e.node=W3(e)),i4(e);if(e.firstChild)e=e.firstChild;else{while(e&&e.parent&&!e.next)if(e=e.parent,e===t)break;e=e.next}}}function r4(e,t){return e&&t&&t.type===e.type&&(!t.key||t.key===e.key)}function i4(e){var t=e.children,n=e.old?e.old.firstChild:null,r=null;t.forEach((function(t,i){var o=r4(n,t);o&&(t.old=n,t.parent=e,t.node=n.node,t.component=n.component,t.effect="U"),t&&!o&&(t.old=null,t.parent=e,t.node=null,t.effect="A"),n&&!o&&(R3.removalNodes.push(n),n.effect="D"),n&&(n=n.next),0===i?e.firstChild=t:t&&(r.next=t),r=t}));var i=He(t);if(!t.length)while(n)R3.removalNodes.push(n),n.effect="D",n=n.next;while(n&&i)n&&i.old!==n&&(R3.removalNodes.push(n),n.effect="D",n=n.next)}function o4(e){e.effect="D",R3.removalNodes=[e],Q3(),R3.removalNodes=[]}function a4(e){var t=e.vnode;t.effect="U",t.old=t,t.next&&(t.next.skip=!0),R3.removalNodes=[],n4(t),Q3(t),t.next&&(t.next.skip=!1)}function s4(e,t){var n=new R3(e.tagName.toLowerCase(),{},[t]);return n.node=e,R3.removalNodes=[],n4(n),Q3(n),function(){return o4(n.firstChild)}}var c4,l4=function(){function e(e){this.props=e,this.state={},this.refs={}}return e.prototype.setState=function(e){var t=p(p({},this.state),e);qe(this.state,t)||(this.state=t,a4(this))},e}(),u4=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hide:!1},n}return f(t,e),t.prototype.show=function(){this.setState({hide:!1})},t.prototype.hide=function(){this.setState({hide:!0})},t.prototype.render=function(){var e=this.props,t=e.editorType,n=e.eventEmitter;return V3(c4||(c4=m(['\n      <div class="','" style="display: ','">\n        <div\n          class="tab-item','"\n          onClick=',"\n        >\n          ",'\n        </div>\n        <div\n          class="tab-item','"\n          onClick=',"\n        >\n          ","\n        </div>\n      </div>\n    "],['\n      <div class="','" style="display: ','">\n        <div\n          class="tab-item','"\n          onClick=',"\n        >\n          ",'\n        </div>\n        <div\n          class="tab-item','"\n          onClick=',"\n        >\n          ","\n        </div>\n      </div>\n    "])),un("mode-switch"),this.state.hide?"none":"block","markdown"===t?" active":"",(function(){n.emit("needChangeMode","markdown")}),w0.get("Markdown"),"wysiwyg"===t?" active":"",(function(){n.emit("needChangeMode","wysiwyg")}),w0.get("WYSIWYG"))},t}(l4);function d4(e,t){var n,r;function i(){r=Array.prototype.slice.call(arguments),window.clearTimeout(n),n=window.setTimeout((function(){e.apply(null,r)}),t)}return t=t||0,i}var f4=d4,p4=f4;function h4(e,t){var n,r,i,o,a=!0,s=function(t){e.apply(null,t),n=null};function c(){if(o=Array.prototype.slice.call(arguments),a)return s(o),void(a=!1);i=Number(new Date),n=n||i,r(o),i-n>=t&&s(o)}function l(){a=!0,n=null}return t=t||0,r=p4(s,t),c.reset=l,c}var m4=h4,v4=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}())}(),g4="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,b4=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),y4=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(b4):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),w4=2;function k4(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){y4(o)}function s(){var e=Date.now();if(n){if(e-i<w4)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}var x4=20,C4=["top","right","bottom","left","width","height","size","weight"],O4="undefined"!==typeof MutationObserver,S4=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=k4(this.refresh.bind(this),x4)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){g4&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O4?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){g4&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=C4.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),T4=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},E4=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||b4},_4=F4(0,0,0,0);function M4(e){return parseFloat(e)||0}function I4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+M4(r)}),0)}function j4(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=M4(a)}return n}function D4(e){var t=e.getBBox();return F4(0,0,t.width,t.height)}function N4(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _4;var r=E4(e).getComputedStyle(e),i=j4(r),o=i.left+i.right,a=i.top+i.bottom,s=M4(r.width),c=M4(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=I4(r,"left","right")+o),Math.round(c+a)!==n&&(c-=I4(r,"top","bottom")+a)),!L4(e)){var l=Math.round(s+o)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return F4(i.left,i.top,s,c)}var A4=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof E4(e).SVGGraphicsElement}:function(e){return e instanceof E4(e).SVGElement&&"function"===typeof e.getBBox}}();function L4(e){return e===E4(e).document.documentElement}function P4(e){return g4?A4(e)?D4(e):N4(e):_4}function B4(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return T4(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function F4(e,t,n,r){return{x:e,y:t,width:n,height:r}}var R4=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=F4(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=P4(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),q4=function(){function e(e,t){var n=B4(t);T4(this,{target:e,contentRect:n})}return e}(),H4=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new v4,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof E4(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new R4(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof E4(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new q4(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),U4="undefined"!==typeof WeakMap?new WeakMap:new v4,V4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=S4.getInstance(),r=new H4(t,n,this);U4.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){V4.prototype[e]=function(){var t;return(t=U4.get(this))[e].apply(t,arguments)}}));var z4,$4,W4,G4,K4,J4,Y4,X4,Q4,Z4,e5,t5,n5,r5,i5,o5,a5=function(){return"undefined"!==typeof b4.ResizeObserver?b4.ResizeObserver:V4}(),s5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.execCommand=function(e){var t=xn(e.target,"li");this.props.execCommand("heading",{level:Number(t.getAttribute("data-level"))})},t.prototype.render=function(){var e=this;return V3($4||($4=m(["\n      <ul\n        onClick=",'\n        aria-role="menu"\n        aria-label="','"\n      >\n        ','\n        <li data-type="Paragraph" aria-role="menuitem">\n          <div>',"</div>\n        </li>\n      </ul>\n    "],["\n      <ul\n        onClick=",'\n        aria-role="menu"\n        aria-label="','"\n      >\n        ','\n        <li data-type="Paragraph" aria-role="menuitem">\n          <div>',"</div>\n        </li>\n      </ul>\n    "])),(function(t){return e.execCommand(t)}),w0.get("Headings"),[1,2,3,4,5,6].map((function(e){return V3(z4||(z4=m(['\n              <li data-level="','" data-type="Heading" aria-role="menuitem">\n                <',">"," ","</$>\n              </li>\n            "],['\n              <li data-level="','" data-type="Heading" aria-role="menuitem">\n                <',">"," ","</$>\n              </li>\n            "])),e,"h"+e,w0.get("Heading"),e)})),w0.get("Paragraph"))},t}(l4),c5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.toggleTab=function(e,t){this.props.onClick(e,t)},t.prototype.render=function(){var e=this;return V3(G4||(G4=m(['\n      <div class="','" aria-role="tabpanel">\n        ',"\n      </div>\n    "],['\n      <div class="','" aria-role="tabpanel">\n        ',"\n      </div>\n    "])),un("tabs"),this.props.tabs.map((function(t){var n=t.name,r=t.text,i=e.props.activeTab===n;return V3(W4||(W4=m(['\n            <div\n              class="tab-item','"\n              onClick=','\n              aria-role="tab"\n              aria-label="','"\n              aria-selected="','"\n              tabindex="','"\n            >\n              ',"\n            </div>\n          "],['\n            <div\n              class="tab-item','"\n              onClick=','\n              aria-role="tab"\n              aria-label="','"\n              aria-selected="','"\n              tabindex="','"\n            >\n              ',"\n            </div>\n          "])),i?" active":"",(function(t){return e.toggleTab(t,n)}),w0.get(r),i?"true":"false",i?"0":"-1",w0.get(r))})))},t}(l4),l5="ui",u5=function(e){function t(t){var n=e.call(this,t)||this;return n.initialize=function(e){void 0===e&&(e="file");var t=n.refs.url;t.value="",n.refs.altText.value="",n.refs.file.value="",ie(t,"wrong"),n.setState({activeTab:e,file:null,fileNameElClassName:""})},n.execCommand=function(){"file"===n.state.activeTab?n.emitAddImageBlob():n.emitAddImage()},n.toggleTab=function(e,t){t!==n.state.activeTab&&n.initialize(t)},n.showFileSelectBox=function(){n.refs.file.click()},n.changeFile=function(e){var t=e.target.files;(null===t||void 0===t?void 0:t.length)&&n.setState({file:t[0]})},n.state={activeTab:"file",file:null,fileNameElClassName:""},n.tabs=[{name:"file",text:"File"},{name:"url",text:"URL"}],n}return f(t,e),t.prototype.emitAddImageBlob=function(){var e=this,t=this.refs.file.files,n=this.refs.altText,r=" wrong";if(null===t||void 0===t?void 0:t.length){r="";var i=t.item(0),o=function(t,r){return e.props.execCommand("addImage",{imageUrl:t,altText:r||n.value})};this.props.eventEmitter.emit("addImageBlobHook",i,o,l5)}this.setState({fileNameElClassName:r})},t.prototype.emitAddImage=function(){var e=this.refs.url,t=this.refs.altText,n=e.value,r=t.value||"image";ie(e,"wrong"),n.length?n&&this.props.execCommand("addImage",{imageUrl:n,altText:r}):Q(e,"wrong")},t.prototype.preventSelectStart=function(e){e.preventDefault()},t.prototype.updated=function(){this.props.show||this.initialize()},t.prototype.render=function(){var e=this,t=this.state,n=t.activeTab,r=t.file,i=t.fileNameElClassName;return V3(K4||(K4=m(['\n      <div aria-label="','">\n        <'," tabs="," activeTab="," onClick=",' />\n        <div style="display:','">\n          <label for="toastuiImageUrlInput">','</label>\n          <input\n            id="toastuiImageUrlInput"\n            type="text"\n            ref=','\n          />\n        </div>\n        <div style="display:',';position: relative;">\n          <label for="toastuiImageFileInput">','</label>\n          <span\n            class="',"",'"\n            onClick=',"\n            onSelectstart=","\n          >\n            ",'\n          </span>\n          <button\n            type="button"\n            class="','"\n            onClick=',"\n          >\n            ",'\n          </button>\n          <input\n            id="toastuiImageFileInput"\n            type="file"\n            accept="image/*"\n            onChange=',"\n            ref=",'\n          />\n        </div>\n        <label for="toastuiAltTextInput">','</label>\n        <input\n          id="toastuiAltTextInput"\n          type="text"\n          ref=','\n        />\n        <div class="','">\n          <button type="button" class="','" onClick=',">\n            ",'\n          </button>\n          <button type="button" class="','" onClick=',">\n            ","\n          </button>\n        </div>\n      </div>\n    "],['\n      <div aria-label="','">\n        <'," tabs="," activeTab="," onClick=",' />\n        <div style="display:','">\n          <label for="toastuiImageUrlInput">','</label>\n          <input\n            id="toastuiImageUrlInput"\n            type="text"\n            ref=','\n          />\n        </div>\n        <div style="display:',';position: relative;">\n          <label for="toastuiImageFileInput">','</label>\n          <span\n            class="',"",'"\n            onClick=',"\n            onSelectstart=","\n          >\n            ",'\n          </span>\n          <button\n            type="button"\n            class="','"\n            onClick=',"\n          >\n            ",'\n          </button>\n          <input\n            id="toastuiImageFileInput"\n            type="file"\n            accept="image/*"\n            onChange=',"\n            ref=",'\n          />\n        </div>\n        <label for="toastuiAltTextInput">','</label>\n        <input\n          id="toastuiAltTextInput"\n          type="text"\n          ref=','\n        />\n        <div class="','">\n          <button type="button" class="','" onClick=',">\n            ",'\n          </button>\n          <button type="button" class="','" onClick=',">\n            ","\n          </button>\n        </div>\n      </div>\n    "])),w0.get("Insert image"),c5,this.tabs,n,this.toggleTab,"url"===n?"block":"none",w0.get("Image URL"),(function(t){return e.refs.url=t}),"file"===n?"block":"none",w0.get("Select image file"),un("file-name"),r?" has-file":i,this.showFileSelectBox,this.preventSelectStart,r?r.name:w0.get("No file"),un("file-select-button"),this.showFileSelectBox,w0.get("Choose a file"),this.changeFile,(function(t){return e.refs.file=t}),w0.get("Description"),(function(t){return e.refs.altText=t}),un("button-container"),un("close-button"),this.props.hidePopup,w0.get("Cancel"),un("ok-button"),this.execCommand,w0.get("OK"))},t}(l4),d5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.execCommand=function(){var e=t.refs.url,n=t.refs.text;if(ie(e,"wrong"),ie(n,"wrong"),e.value.length<1)Q(e,"wrong");else{var r=R(t.props.initialValues.linkUrl);r&&n.value.length<1?Q(n,"wrong"):t.props.execCommand("addLink",{linkUrl:e.value,linkText:n.value})}},t}return f(t,e),t.prototype.initialize=function(){var e=this.props.initialValues,t=e.linkUrl,n=e.linkText,r=this.refs.url,i=this.refs.text;ie(r,"wrong"),ie(i,"wrong","disabled"),i.removeAttribute("disabled"),t&&(Q(i,"disabled"),i.setAttribute("disabled","disabled")),r.value=t||"",i.value=n||""},t.prototype.mounted=function(){this.initialize()},t.prototype.updated=function(e){!e.show&&this.props.show&&this.initialize()},t.prototype.render=function(){var e=this;return V3(J4||(J4=m(['\n      <div aria-label="','">\n        <label for="toastuiLinkUrlInput">','</label>\n        <input\n          id="toastuiLinkUrlInput"\n          type="text"\n          ref=','\n        />\n        <label for="toastuiLinkTextInput">','</label>\n        <input\n          id="toastuiLinkTextInput"\n          type="text"\n          ref=','\n        />\n        <div class="','">\n          <button type="button" class="','" onClick=',">\n            ",'\n          </button>\n          <button type="button" class="','" onClick=',">\n            ","\n          </button>\n        </div>\n      </div>\n    "],['\n      <div aria-label="','">\n        <label for="toastuiLinkUrlInput">','</label>\n        <input\n          id="toastuiLinkUrlInput"\n          type="text"\n          ref=','\n        />\n        <label for="toastuiLinkTextInput">','</label>\n        <input\n          id="toastuiLinkTextInput"\n          type="text"\n          ref=','\n        />\n        <div class="','">\n          <button type="button" class="','" onClick=',">\n            ",'\n          </button>\n          <button type="button" class="','" onClick=',">\n            ","\n          </button>\n        </div>\n      </div>\n    "])),w0.get("Insert link"),w0.get("URL"),(function(t){return e.refs.url=t}),w0.get("Link text"),(function(t){return e.refs.text=t}),un("button-container"),un("close-button"),this.props.hidePopup,w0.get("Cancel"),un("ok-button"),this.execCommand,w0.get("OK"))},t}(l4),f5=20,p5=20,h5=5,m5=14,v5=5,g5=9,b5=1,y5=1,w5=1,k5=function(e){function t(t){var n=e.call(this,t)||this;return n.extendSelectionRange=function(e){var t=e.pageX,r=e.pageY,i=t-n.offsetRect.left,o=r-n.offsetRect.top,a=n.getSelectionRangeByOffset(i,o);n.setState(p({},a))},n.execCommand=function(){n.props.execCommand("addTable",{rowCount:n.state.rowIdx+1,columnCount:n.state.colIdx+1})},n.state={rowIdx:-1,colIdx:-1},n}return f(t,e),t.prototype.getDescription=function(){return-1===this.state.colIdx?"":this.state.colIdx+1+" x "+(this.state.rowIdx+1)},t.prototype.getBoundByRange=function(e,t){return{width:(e+1)*f5,height:(t+1)*p5}},t.prototype.getRangeByOffset=function(e,t){return{colIdx:Math.floor(e/f5),rowIdx:Math.floor(t/p5)}},t.prototype.getTableRange=function(){var e=this.state,t=e.colIdx,n=e.rowIdx,r=Math.max(t,v5),i=Math.max(n,h5);return t>=v5&&r<g5&&(r+=1),n>=h5&&i<m5&&(i+=1),{colIdx:r+1,rowIdx:i+1}},t.prototype.getSelectionAreaBound=function(){var e=this.getBoundByRange(this.state.colIdx,this.state.rowIdx),t=e.width,n=e.height;return t||n?{width:t-w5,height:n-w5,display:"block"}:{display:"none"}},t.prototype.getSelectionRangeByOffset=function(e,t){var n=this.getRangeByOffset(e,t);return n.rowIdx=Math.min(Math.max(n.rowIdx,b5),m5),n.colIdx=Math.min(Math.max(n.colIdx,y5),g5),n},t.prototype.updated=function(){if(this.props.show){if(-1===this.state.colIdx&&-1===this.state.rowIdx){var e=this.refs.tableEl.getBoundingClientRect(),t=e.left,n=e.top;this.offsetRect={left:window.pageXOffset+t,top:window.pageYOffset+n}}}else this.setState({colIdx:-1,rowIdx:-1})},t.prototype.createTableArea=function(e){for(var t=e.colIdx,n=e.rowIdx,r=[],i=0;i<n;i+=1){for(var o=[],a=0;a<t;a+=1){var s=un("table-cell")+(i>0?"":" header");o.push(V3(Y4||(Y4=m(['<div class="','"></div>'],['<div class="','"></div>'])),s))}r.push(V3(X4||(X4=m(['<div class="','">',"</div>"],['<div class="','">',"</div>"])),un("table-row"),o))}return V3(Q4||(Q4=m(['<div class="','">',"</div>"],['<div class="','">',"</div>"])),un("table"),r)},t.prototype.render=function(){var e=this,t=this.getTableRange(),n=this.getSelectionAreaBound();return V3(Z4||(Z4=m(['\n      <div aria-label="','">\n        <div\n          class="','"\n          ref=',"\n          onMousemove=","\n          onClick=","\n        >\n          ",'\n          <div class="','" style=','></div>\n        </div>\n        <p class="','">',"</p>\n      </div>\n    "],['\n      <div aria-label="','">\n        <div\n          class="','"\n          ref=',"\n          onMousemove=","\n          onClick=","\n        >\n          ",'\n          <div class="','" style=','></div>\n        </div>\n        <p class="','">',"</p>\n      </div>\n    "])),w0.get("Insert table"),un("table-selection"),(function(t){return e.refs.tableEl=t}),this.extendSelectionRange,this.execCommand,this.createTableArea(t),un("table-selection-layer"),n,un("table-description"),this.getDescription())},t}(l4),x5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.mounted=function(){this.refs.el.appendChild(this.props.body)},t.prototype.updated=function(e){this.refs.el.replaceChild(this.props.body,e.body)},t.prototype.render=function(){var e=this;return V3(e5||(e5=m(["<div ref=","></div>"],["<div ref=","></div>"])),(function(t){return e.refs.el=t}))},t}(l4);function C5(e){return k(e)?S5(e):e}function O5(){var e=document.createElement("label"),t=document.createElement("input"),n=document.createElement("span");e.className="scroll-sync active",t.type="checkbox",t.checked=!0,n.className="switch";var r=function(n){return t.addEventListener("change",(function(t){var r=t.target.checked;r?Q(e,"active"):ie(e,"active"),n("toggleScrollSync",{active:r})}))};return e.appendChild(t),e.appendChild(n),{name:"scrollSync",el:e,onMounted:r}}function S5(e){var t;switch(e){case"heading":t={name:"heading",className:"heading",tooltip:w0.get("Headings"),state:"heading"};break;case"bold":t={name:"bold",className:"bold",command:"bold",tooltip:w0.get("Bold"),state:"strong"};break;case"italic":t={name:"italic",className:"italic",command:"italic",tooltip:w0.get("Italic"),state:"emph"};break;case"strike":t={name:"strike",className:"strike",command:"strike",tooltip:w0.get("Strike"),state:"strike"};break;case"hr":t={name:"hr",className:"hrline",command:"hr",tooltip:w0.get("Line"),state:"thematicBreak"};break;case"quote":t={name:"quote",className:"quote",command:"blockQuote",tooltip:w0.get("Blockquote"),state:"blockQuote"};break;case"ul":t={name:"ul",className:"bullet-list",command:"bulletList",tooltip:w0.get("Unordered list"),state:"bulletList"};break;case"ol":t={name:"ol",className:"ordered-list",command:"orderedList",tooltip:w0.get("Ordered list"),state:"orderedList"};break;case"task":t={name:"task",className:"task-list",command:"taskList",tooltip:w0.get("Task"),state:"taskList"};break;case"table":t={name:"table",className:"table",tooltip:w0.get("Insert table"),state:"table"};break;case"image":t={name:"image",className:"image",tooltip:w0.get("Insert image")};break;case"link":t={name:"link",className:"link",tooltip:w0.get("Insert link")};break;case"code":t={name:"code",className:"code",command:"code",tooltip:w0.get("Code"),state:"code"};break;case"codeblock":t={name:"codeblock",className:"codeblock",command:"codeBlock",tooltip:w0.get("Insert CodeBlock"),state:"codeBlock"};break;case"indent":t={name:"indent",className:"indent",command:"indent",tooltip:w0.get("Indent"),state:"indent"};break;case"outdent":t={name:"outdent",className:"outdent",command:"outdent",tooltip:w0.get("Outdent"),state:"outdent"};break;case"scrollSync":t=O5();break;case"more":t={name:"more",className:"more",tooltip:w0.get("More")};break}return"scrollSync"!==t.name&&(t.className+=" "+un("toolbar-icons")),t}function T5(e,t){var n=t.el,r=t.pos,i=t.popup,o=t.initialValues;switch(e){case"heading":return{render:function(e){return V3(t5||(t5=m(["<"," ..."," />"],["<"," ..."," />"])),s5,e)},className:un("popup-add-heading"),fromEl:n,pos:r};case"link":return{render:function(e){return V3(n5||(n5=m(["<"," ..."," />"],["<"," ..."," />"])),d5,e)},className:un("popup-add-link"),fromEl:n,pos:r,initialValues:o};case"image":return{render:function(e){return V3(r5||(r5=m(["<"," ..."," />"],["<"," ..."," />"])),u5,e)},className:un("popup-add-image"),fromEl:n,pos:r};case"table":return{render:function(e){return V3(i5||(i5=m(["<"," ..."," />"],["<"," ..."," />"])),k5,e)},className:un("popup-add-table"),fromEl:n,pos:r};case"customPopupBody":return i?p({render:function(e){return V3(o5||(o5=m(["<"," ..."," body="," />"],["<"," ..."," body="," />"])),x5,e,i.body)},fromEl:n,pos:r},i):null;default:return null}}function E5(e){e.hidden=e.length===e.filter((function(e){return e.hidden})).length}function _5(e,t){var n=function(e){return e.hidden="scrollSync"===e.name&&t,e};return e.reduce((function(e,t){e.push(t.map((function(e){return n(C5(e))})));var r=e[(e.length||1)-1];return r&&E5(r),e}),[])}function M5(e,t){e.forEach((function(e){e.forEach((function(e){return e.hidden="scrollSync"===e.name&&t})),E5(e)}))}var I5,j5,D5=20,N5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleMousedown=function(e){xn(e.target,"."+un("popup"))||xn(e.target,t.props.info.fromEl)||t.props.hidePopup()},t}return f(t,e),t.prototype.mounted=function(){document.addEventListener("mousedown",this.handleMousedown),this.props.eventEmitter.listen("closePopup",this.props.hidePopup)},t.prototype.beforeDestroy=function(){document.removeEventListener("mousedown",this.handleMousedown)},t.prototype.updated=function(e){var t=this.props,n=t.show,r=t.info;if(n&&r.pos&&e.show!==n){var i=p({},r.pos),o=this.refs.el.offsetWidth,a=xn(this.refs.el,"."+un("toolbar")),s=a.offsetWidth;i.left+o>=s&&(i.left=s-o-D5),qe(this.state.popupPos,i)||this.setState({popupPos:i})}},t.prototype.render=function(){var e=this,t=this.props,n=t.info,r=t.show,i=t.hidePopup,o=t.eventEmitter,a=t.execCommand,s=n||{},c=s.className,l=void 0===c?"":c,u=s.style,d=s.render,f=s.initialValues,h=void 0===f?{}:f,v=p(p({display:r?"block":"none"},u),this.state.popupPos);return V3(I5||(I5=m(['\n      <div\n        class="'," ",'"\n        style=',"\n        ref=",'\n        aria-role="dialog"\n      >\n        <div class="','">\n          ',"\n        </div>\n      </div>\n    "],['\n      <div\n        class="'," ",'"\n        style=',"\n        ref=",'\n        aria-role="dialog"\n      >\n        <div class="','">\n          ',"\n        </div>\n      </div>\n    "])),un("popup"),l,v,(function(t){return e.refs.el=t}),un("popup-body"),d&&d({eventEmitter:o,show:r,hidePopup:i,execCommand:a,initialValues:h}))},t}(l4),A5=6;function L5(e){return function(t){function n(e){var n=t.call(this,e)||this;return n.showTooltip=function(e){var t=n.props.item.tooltip;if(!n.props.disabled&&t){var r=n.getBound(e),i=r.left+A5+"px",o=r.top+A5+"px";A(n.props.tooltipRef.current,{display:"block",left:i,top:o}),n.props.tooltipRef.current.querySelector(".text").textContent=t}},n.hideTooltip=function(){A(n.props.tooltipRef.current,"display","none")},n.state={active:!1,disabled:e.disabled},n.addEvent(),n}return f(n,t),n.prototype.addEvent=function(){var e=this,t=this.props,n=t.item,r=t.eventEmitter;n.state&&r.listen("changeToolbarState",(function(t){var r,i=t.toolbarState,o=null!==(r=i[n.state])&&void 0!==r?r:{},a=o.active,s=o.disabled;e.setState({active:!!a,disabled:null!==s&&void 0!==s?s:e.props.disabled})}))},n.prototype.getBound=function(e){var t=Cn(e,xn(e,"."+un("toolbar"))),n=t.offsetLeft,r=t.offsetTop;return{left:n,top:e.offsetHeight+r}},n.prototype.render=function(){return V3(j5||(j5=m(["\n        <","\n          ...","\n          active=","\n          showTooltip=","\n          hideTooltip=","\n          getBound=","\n          disabled=","\n        />\n      "],["\n        <","\n          ...","\n          active=","\n          showTooltip=","\n          hideTooltip=","\n          getBound=","\n          disabled=","\n        />\n      "])),e,this.props,this.state.active,this.showTooltip,this.hideTooltip,this.getBound,this.state.disabled||this.props.disabled)},n}(l4)}var P5,B5,F5,R5,q5,H5,U5,V5,z5,$5,W5,G5,K5,J5,Y5=80,X5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.showTooltip=function(){t.props.showTooltip(t.refs.el)},t.execCommand=function(){var e=t.props,n=e.item,r=e.execCommand,i=e.setPopupInfo,o=e.getBound,a=e.eventEmitter,s=n.command,c=n.name,l=n.popup;if(s)r(s);else{var u=l?"customPopupBody":c,d=a.emit("query","getPopupInitialValues",{popupName:u})[0],f=T5(u,{el:t.refs.el,pos:o(t.refs.el),popup:l,initialValues:d});f&&i(f)}},t}return f(t,e),t.prototype.mounted=function(){this.setItemWidth()},t.prototype.updated=function(e){e.item.name!==this.props.item.name&&this.setItemWidth()},t.prototype.setItemWidth=function(){var e=this.props,t=e.setItemWidth,n=e.item;t&&t(n.name,kn(this.refs.el)+(n.hidden?Y5:0))},t.prototype.render=function(){var e=this,t=this.props,n=t.hideTooltip,r=t.disabled,i=t.item,o=t.active,a=p({display:i.hidden?"none":null},i.style),s=(i.className||"")+(o?" active":"");return V3(P5||(P5=m(["\n      <button\n        ref=",'\n        type="button"\n        style=',"\n        class=","\n        onClick=","\n        onMouseover=","\n        onMouseout=","\n        disabled=","\n        aria-label=","\n      >\n        ","\n      </button>\n    "],["\n      <button\n        ref=",'\n        type="button"\n        style=',"\n        class=","\n        onClick=","\n        onMouseover=","\n        onMouseout=","\n        disabled=","\n        aria-label=","\n      >\n        ","\n      </button>\n    "])),(function(t){return e.refs.el=t}),a,s,this.execCommand,this.showTooltip,n,!!r,i.text||i.tooltip||"",i.text||"")},t}(l4),Q5=L5(X5),Z5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.showTooltip=function(){t.props.showTooltip(t.refs.el)},t.showPopup=function(){var e=T5("customPopupBody",{el:t.refs.el,pos:t.props.getBound(t.refs.el),popup:t.props.item.popup});e&&t.props.setPopupInfo(e)},t}return f(t,e),t.prototype.mounted=function(){var e=this.props,t=e.setItemWidth,n=e.item;this.refs.el.appendChild(n.el),t&&t(n.name,kn(this.refs.el)),n.onMounted&&n.onMounted(this.props.execCommand)},t.prototype.updated=function(e){var t,n=this.props,r=n.item,i=n.active,o=n.disabled;e.active===i&&e.disabled===o||null===(t=r.onUpdated)||void 0===t||t.call(r,{active:i,disabled:o})},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.item,i={display:r.hidden?"none":"inline-block"},o=function(e){return n?null:e};return V3(B5||(B5=m(["\n      <div\n        ref=","\n        style=","\n        class=","\n        onClick=","\n        onMouseover=","\n        onMouseout=","\n      ></div>\n    "],["\n      <div\n        ref=","\n        style=","\n        class=","\n        onClick=","\n        onMouseover=","\n        onMouseout=","\n      ></div>\n    "])),(function(t){return e.refs.el=t}),i,un("toolbar-item-wrapper"),o(this.showPopup),o(this.showTooltip),o(this.props.hideTooltip))},t}(l4),e6=L5(Z5),t6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.group,r=t.hiddenDivider,i=n.hidden?{display:"none"}:null,o=r?{display:"none"}:null;return V3(R5||(R5=m(['\n      <div class="','" style=',">\n        ",'\n        <div class="','" style=',"></div>\n      </div>\n    "],['\n      <div class="','" style=',">\n        ",'\n        <div class="','" style=',"></div>\n      </div>\n    "])),un("toolbar-group"),i,n.map((function(t){var n=t.el?e6:Q5;return V3(F5||(F5=m(["<"," key="," ..."," item="," />"],["<"," key="," ..."," item="," />"])),n,t.name,e.props,t)})),un("toolbar-divider"),o)},t}(l4),n6=4,r6=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClickDocument=function(e){var t=e.target;xn(t,"."+un("dropdown-toolbar"))||xn(t,".more")||n.setState({showDropdown:!1,dropdownPos:null})},n.showTooltip=function(){n.props.showTooltip(n.refs.el)},n.state={showDropdown:!1,dropdownPos:null},n}return f(t,e),t.prototype.getBound=function(){var e=this.props.getBound(this.refs.el);return e.top+=n6,p(p({},e),{left:null,right:10})},t.prototype.mounted=function(){document.addEventListener("click",this.handleClickDocument)},t.prototype.updated=function(){this.state.showDropdown&&!this.state.dropdownPos&&this.setState({dropdownPos:this.getBound()})},t.prototype.beforeDestroy=function(){document.removeEventListener("click",this.handleClickDocument)},t.prototype.render=function(){var e=this,t=this.state,n=t.showDropdown,r=t.dropdownPos,i=this.props,o=i.disabled,a=i.item,s=i.items,c=i.hideTooltip,l=s.filter((function(e){return!e.hidden})),u=l.length?null:{display:"none"},d=n?null:{display:"none"};return V3(H5||(H5=m(['\n      <div class="','" style=',">\n        <button\n          ref=",'\n          type="button"\n          class=',"\n          onClick=","\n          onMouseover=","\n          onMouseout=","\n          disabled=",'\n        ></button>\n        <div\n          class="','"\n          style=',"\n          ref=","\n        >\n          ","\n        </div>\n      </div>\n    "],['\n      <div class="','" style=',">\n        <button\n          ref=",'\n          type="button"\n          class=',"\n          onClick=","\n          onMouseover=","\n          onMouseout=","\n          disabled=",'\n        ></button>\n        <div\n          class="','"\n          style=',"\n          ref=","\n        >\n          ","\n        </div>\n      </div>\n    "])),un("toolbar-group"),u,(function(t){return e.refs.el=t}),a.className,(function(){return e.setState({showDropdown:!0})}),this.showTooltip,c,o,un("dropdown-toolbar"),p(p({},d),r),(function(t){return e.refs.dropdownEl=t}),l.length?l.map((function(t,n){var r;return V3(q5||(q5=m(["\n                  <","\n                    group=","\n                    hiddenDivider=","\n                    ...","\n                  />\n                "],["\n                  <","\n                    group=","\n                    hiddenDivider=","\n                    ...","\n                  />\n                "])),t6,t,n===l.length-1||(null===(r=l[n+1])||void 0===r?void 0:r.hidden),e.props)})):null)},t}(l4),i6=L5(r6),o6=50,a6=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleTab=function(e,t){var r=n.props.eventEmitter;if(n.state.activeTab!==t){var i="write"===t?"changePreviewTabWrite":"changePreviewTabPreview";r.emit(i),n.setState({activeTab:t})}},n.setItemWidth=function(e,t){n.itemWidthMap[e]=t},n.setPopupInfo=function(e){n.setState({showPopup:!0,popupInfo:e})},n.openPopup=function(e,t){void 0===t&&(t={});var r=n.refs.el.querySelector("."+un("toolbar-group")+" ."+e);if(r){var i=Cn(r,xn(r,"."+un("toolbar"))),o=i.offsetLeft,a=i.offsetTop,s=T5(e,{el:r,pos:{left:o,top:r.offsetHeight+a},initialValues:t});s&&n.setPopupInfo(s)}},n.hidePopup=function(){n.state.showPopup&&n.setState({showPopup:!1})},n.execCommand=function(e,t){var r=n.props.eventEmitter;r.emit("command",e,t),n.hidePopup()},n.tabs=[{name:"write",text:"Write"},{name:"preview",text:"Preview"}],n.itemWidthMap={},n.initialItems=_5(t.toolbarItems||[],n.hiddenScrollSync()),n.state={items:n.initialItems,dropdownItems:[],showPopup:!1,popupInfo:{},activeTab:"write"},n.tooltipRef={current:null},n.resizeObserver=new a5((function(){return n.handleResize()})),n.addEvent(),n}return f(t,e),t.prototype.insertToolbarItem=function(e,t){var n=e.groupIndex,r=e.itemIndex,i=this.initialItems[n];t=C5(t),i?i.splice(r,0,t):this.initialItems.push([t]),this.setState(this.classifyToolbarItems())},t.prototype.removeToolbarItem=function(e){var t=this;S(this.initialItems,(function(n){var r=!1;return S(n,(function(i,o){return i.name!==e||(r=!0,n.splice(o,1),t.setState(t.classifyToolbarItems()),!1)})),!r}))},t.prototype.addEvent=function(){var e=this,t=this.props.eventEmitter;this.handleResize=m4((function(){e.setState({items:e.initialItems,dropdownItems:[]}),e.setState(e.classifyToolbarItems())}),200),t.listen("openPopup",this.openPopup)},t.prototype.appendTooltipToRoot=function(){var e='<div class="'+un("tooltip")+'" style="display:none">\n        <div class="arrow"></div>\n        <span class="text"></span>\n      </div>';this.tooltipRef.current=wn(e,this.refs.el)},t.prototype.hiddenScrollSync=function(){return"wysiwyg"===this.props.editorType||"tab"===this.props.previewStyle},t.prototype.movePrevItemToDropdownToolbar=function(e,t,n,r){var i=function(e){var t=e.pop();t&&r.push(t)};if(e>1)i(n);else{var o=He(t);o&&i(o)}},t.prototype.classifyToolbarItems=function(){var e=this,t=0,n=this.refs.el.clientWidth,r=this.refs.el.querySelector("."+un("toolbar-divider")),i=r?kn(r):0,o=[],a=[],s=!1;return this.initialItems.forEach((function(r,c){var l=[],u=[];r.forEach((function(r,i){r.hidden||(t+=e.itemWidthMap[r.name],t>n-o6?(s||(e.movePrevItemToDropdownToolbar(i,o,l,u),s=!0),u.push(r)):l.push(r))})),l.length&&(E5(l),o.push(l)),u.length&&(E5(u),a.push(u)),c<e.state.items.length-1&&(t+=i)})),{items:o,dropdownItems:a}},t.prototype.mounted=function(){"tab"===this.props.previewStyle&&this.props.eventEmitter.emit("changePreviewTabWrite",!0),this.setState(this.classifyToolbarItems()),this.appendTooltipToRoot(),this.resizeObserver.observe(this.refs.el)},t.prototype.updated=function(e){var t=this.props,n=t.editorType,r=t.previewStyle,i=t.eventEmitter,o=r!==e.previewStyle,a=n!==e.editorType;if(o||a){M5(this.initialItems,this.hiddenScrollSync());var s=this.classifyToolbarItems();(o||"tab"===r&&"markdown"===n)&&(i.emit("changePreviewTabWrite"),s.activeTab="write"),this.setState(s)}},t.prototype.beforeDestroy=function(){window.removeEventListener("resize",this.handleResize),this.resizeObserver.disconnect(),gn(this.tooltipRef.current)},t.prototype.render=function(){var e=this,t=this.props,n=t.previewStyle,r=t.eventEmitter,i=t.editorType,o=this.state,a=o.popupInfo,s=o.showPopup,c=o.activeTab,l=o.items,u=o.dropdownItems,d={eventEmitter:r,tooltipRef:this.tooltipRef,disabled:"markdown"===i&&"tab"===n&&"preview"===c,execCommand:this.execCommand,setPopupInfo:this.setPopupInfo},f="tab"===n?{borderTopLeftRadius:0}:null;return V3(V5||(V5=m(['\n      <div class="','">\n        <div\n          class="','"\n          style="display: ','"\n        >\n          <'," tabs="," activeTab="," onClick=",' />\n        </div>\n        <div\n          class="','"\n          ref=',"\n          style=","\n        >\n          ","\n          <","\n            item=","\n            items=","\n            ...","\n          />\n        </div>\n        <","\n          info=","\n          show=","\n          eventEmitter=","\n          hidePopup=","\n          execCommand=","\n        />\n      </div>\n    "],['\n      <div class="','">\n        <div\n          class="','"\n          style="display: ','"\n        >\n          <'," tabs="," activeTab="," onClick=",' />\n        </div>\n        <div\n          class="','"\n          ref=',"\n          style=","\n        >\n          ","\n          <","\n            item=","\n            items=","\n            ...","\n          />\n        </div>\n        <","\n          info=","\n          show=","\n          eventEmitter=","\n          hidePopup=","\n          execCommand=","\n        />\n      </div>\n    "])),un("toolbar"),un("md-tab-container"),"wysiwyg"===i||"vertical"===n?"none":"block",c5,this.tabs,c,this.toggleTab,un("defaultUI-toolbar"),(function(t){return e.refs.el=t}),f,l.map((function(t,n){var r;return V3(U5||(U5=m(["\n              <","\n                group=","\n                hiddenDivider=","\n                setItemWidth=","\n                ...","\n              />\n            "],["\n              <","\n                group=","\n                hiddenDivider=","\n                setItemWidth=","\n                ...","\n              />\n            "])),t6,t,n===l.length-1||(null===(r=l[n+1])||void 0===r?void 0:r.hidden),e.setItemWidth,d)})),i6,C5("more"),u,d,N5,a,s,r,this.hidePopup,this.execCommand)},t}(l4),s6=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClickDocument=function(e){xn(e.target,"."+un("context-menu"))||n.setState({pos:null})},n.state={pos:null,menuGroups:[]},n.addEvent(),n}return f(t,e),t.prototype.addEvent=function(){var e=this;this.props.eventEmitter.listen("contextmenu",(function(t){var n=t.pos,r=t.menuGroups;e.setState({pos:n,menuGroups:r})}))},t.prototype.mounted=function(){document.addEventListener("click",this.handleClickDocument)},t.prototype.beforeDestroy=function(){document.removeEventListener("click",this.handleClickDocument)},t.prototype.getMenuGroupElements=function(){var e=this,t=this.state,n=t.pos,r=t.menuGroups;return n?r.reduce((function(t,n){var r=[];return n.forEach((function(t){var n=t.label,i=t.className,o=void 0!==i&&i,a=t.disabled,s=t.onClick,c=function(){a||(s(),e.setState({pos:null}))};r.push(V3(z5||(z5=m(["\n                <li\n                  onClick=",'\n                  class="menu-item','"\n                  aria-role="menuitem"\n                >\n                  <span class="','">',"</span>\n                </li>\n              "],["\n                <li\n                  onClick=",'\n                  class="menu-item','"\n                  aria-role="menuitem"\n                >\n                  <span class="','">',"</span>\n                </li>\n              "])),c,a?" disabled":"",o,n))})),t.push(V3($5||($5=m(['<ul class="menu-group">\n              ',"\n            </ul>"],['<ul class="menu-group">\n              ',"\n            </ul>"])),r)),t}),[]):[]},t.prototype.render=function(){var e=p({display:this.state.pos?"block":"none"},this.state.pos);return V3(W5||(W5=m(['<div class="','" style=',' aria-role="menu">\n      ',"\n    </div>"],['<div class="','" style=',' aria-role="menu">\n      ',"\n    </div>"])),un("context-menu"),e,this.getMenuGroupElements())},t}(l4),c6=function(e){function t(t){var n=e.call(this,t)||this;n.changeMode=function(e){e!==n.state.editorType&&n.setState({editorType:e})},n.changePreviewStyle=function(e){e!==n.state.previewStyle&&n.setState({previewStyle:e})},n.hide=function(){n.setState({hide:!0})},n.show=function(){n.setState({hide:!1})};var r=t.editorType,i=t.previewStyle;return n.state={editorType:r,previewStyle:i,hide:!1},n.addEvent(),n}return f(t,e),t.prototype.mounted=function(){var e=this.props.slots,t=e.wwEditor,n=e.mdEditor,r=e.mdPreview;this.refs.wwContainer.appendChild(t),this.refs.mdContainer.insertAdjacentElement("afterbegin",n),this.refs.mdContainer.appendChild(r)},t.prototype.insertToolbarItem=function(e,t){this.toolbar.insertToolbarItem(e,t)},t.prototype.removeToolbarItem=function(e){this.toolbar.removeToolbarItem(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.eventEmitter,r=t.hideModeSwitch,i=t.toolbarItems,o=t.theme,a=this.state,s=a.hide,c=a.previewStyle,l=a.editorType,u=s?" hidden":"",d=un("markdown"===l?"md-mode":"ww-mode"),f=un("md")+"-"+c+"-style",p=un(["light"!==o,o+" "]);return V3(K5||(K5=m(['\n      <div\n        class="',"","",'"\n        ref=',"\n      >\n        <","\n          ref=","\n          eventEmitter=","\n          previewStyle=","\n          toolbarItems=","\n          editorType=",'\n        />\n        <div\n          class="'," ",'"\n          ref=','\n        >\n          <div class="','">\n            <div\n              class="'," ",'"\n              ref=','\n            >\n              <div class="','"></div>\n            </div>\n            <div\n              class="','"\n              ref=',"\n            />\n          </div>\n        </div>\n        ","\n        <"," eventEmitter="," />\n      </div>\n    "],['\n      <div\n        class="',"","",'"\n        ref=',"\n      >\n        <","\n          ref=","\n          eventEmitter=","\n          previewStyle=","\n          toolbarItems=","\n          editorType=",'\n        />\n        <div\n          class="'," ",'"\n          ref=','\n        >\n          <div class="','">\n            <div\n              class="'," ",'"\n              ref=','\n            >\n              <div class="','"></div>\n            </div>\n            <div\n              class="','"\n              ref=',"\n            />\n          </div>\n        </div>\n        ","\n        <"," eventEmitter="," />\n      </div>\n    "])),p,un("defaultUI"),u,(function(t){return e.refs.el=t}),a6,(function(t){return e.toolbar=t}),n,c,i,l,un("main"),d,(function(t){return e.refs.editorSection=t}),un("main-container"),un("md-container"),f,(function(t){return e.refs.mdContainer=t}),un("md-splitter"),un("ww-container"),(function(t){return e.refs.wwContainer=t}),!r&&V3(G5||(G5=m(["<"," eventEmitter="," editorType="," />"],["<"," eventEmitter="," editorType="," />"])),u4,n,l),s6,n)},t.prototype.addEvent=function(){var e=this.props.eventEmitter;e.listen("hide",this.hide),e.listen("show",this.show),e.listen("changeMode",this.changeMode),e.listen("changePreviewStyle",this.changePreviewStyle)},t}(l4),l6=function(e){function t(t){var n,r,i=e.call(this,t)||this,o=s4(i.options.el,V3(J5||(J5=m(["\n        <","\n          ref=","\n          eventEmitter=","\n          slots=","\n          hideModeSwitch=","\n          toolbarItems=","\n          previewStyle=","\n          editorType=","\n          theme=","\n        />\n      "],["\n        <","\n          ref=","\n          eventEmitter=","\n          slots=","\n          hideModeSwitch=","\n          toolbarItems=","\n          previewStyle=","\n          editorType=","\n          theme=","\n        />\n      "])),c6,(function(e){return r=e}),i.eventEmitter,i.getEditorElements(),i.options.hideModeSwitch,i.options.toolbarItems,i.options.previewStyle,i.options.initialEditType,i.options.theme));return i.setMinHeight(i.options.minHeight),i.setHeight(i.options.height),i.defaultUI={insertToolbarItem:r.insertToolbarItem.bind(r),removeToolbarItem:r.removeToolbarItem.bind(r),destroy:o},null===(n=i.pluginInfo.toolbarItems)||void 0===n||n.forEach((function(e){var t=e.groupIndex,n=e.itemIndex,r=e.item;i.defaultUI.insertToolbarItem({groupIndex:t,itemIndex:n},r)})),i.eventEmitter.emit("loadUI",i),i}return f(t,e),t.factory=function(e){return e.viewer?new b3(e):new t(e)},t.prototype.insertToolbarItem=function(e,t){this.defaultUI.insertToolbarItem(e,t)},t.prototype.removeToolbarItem=function(e){this.defaultUI.removeToolbarItem(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.defaultUI.destroy()},t}(A3);A3.setLanguage(["en","en-US"],{Markdown:"Markdown",WYSIWYG:"WYSIWYG",Write:"Write",Preview:"Preview",Headings:"Headings",Paragraph:"Paragraph",Bold:"Bold",Italic:"Italic",Strike:"Strike",Code:"Inline code",Line:"Line",Blockquote:"Blockquote","Unordered list":"Unordered list","Ordered list":"Ordered list",Task:"Task",Indent:"Indent",Outdent:"Outdent","Insert link":"Insert link","Insert CodeBlock":"Insert codeBlock","Insert table":"Insert table","Insert image":"Insert image",Heading:"Heading","Image URL":"Image URL","Select image file":"Select image file","Choose a file":"Choose a file","No file":"No file",Description:"Description",OK:"OK",More:"More",Cancel:"Cancel",File:"File",URL:"URL","Link text":"Link text","Add row to up":"Add row to up","Add row to down":"Add row to down","Add column to left":"Add column to left","Add column to right":"Add column to right","Remove row":"Remove row","Remove column":"Remove column","Align column to left":"Align column to left","Align column to center":"Align column to center","Align column to right":"Align column to right","Remove table":"Remove table","Would you like to paste as table?":"Would you like to paste as table?","Text color":"Text color","Auto scroll enabled":"Auto scroll enabled","Auto scroll disabled":"Auto scroll disabled","Choose language":"Choose language"})}).call(this,n("c8ba"))},"586f":function(e,t,n){"use strict";n("0d4a")},"5b13":function(e,t,n){"use strict";n("3622")},"5fc2":function(e,t,n){"use strict";n("53e0")},"612d":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Ge}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.fetch?e._e():n("page-profile-edit-view",{attrs:{loading:e.loading,user:e.user,info:e.info,files:e.files,userTags:e.selectedTags,"background-progress-percent":e.backgroundProgressPercent},on:{upload:e.upload,save:e.save,updateUserTags:e.updateUserTags}})},i=[],o=(n("99af"),n("4de4"),n("7db0"),n("c740"),n("4160"),n("caad"),n("b0c0"),n("d3b7"),n("ac1f"),n("2532"),n("3ca3"),n("841c"),n("159b"),n("ddb0"),n("15fd")),a=n("5530"),s=(n("96cf"),n("1da1")),c=n("d4ec"),l=n("bee2"),u=n("262e"),d=n("2caf"),f=n("a34a"),p=n.n(f),h=n("9ab4"),m=n("2fe1"),v=n("60a3"),g=n("51ce"),b=(n("d81d"),n("25f0"),n("2b0e")),y=n("ff07"),w=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return Object(l["a"])(n,[{key:"userTagsUpdateData",value:function(){var e=Object(s["a"])(p.a.mark((function e(t){var n,r;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={fields:{tags:t}},n.fields.userId=this.$store.state.user.id,e.next=4,y["a"].QuestionaryInfoProvider.update({data:n});case 4:return r=e.sent,e.abrupt("return",r.fields.tags.map((function(e){return e.toString()})));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"userTagsGetData",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,y["a"].QuestionaryInfoProvider.find({id:this.$store.state.user.id});case 2:return t=e.sent,e.abrupt("return",t.fields.tags.map((function(e){return e.toString()})));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),n}(b["default"]);w=Object(h["__decorate"])([m["b"]],w);var k=w,x=n("8af2"),C=n("04fb"),O=n("78f9"),S=n("fe95"),T=n("a5de"),E=n("d70b"),_=n("ff8b"),M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"pa-4"},[e.selectedForm?[n(e.getComponent(e.selectedForm),{tag:"component",staticClass:"profile-edit__form",attrs:{user:e.user},on:{back:function(t){e.selectedForm=t||""}}})]:[n("page-title",[e._v(e._s(e.$t("Edit profile")))]),n("div",{staticClass:"mx-n4"},[n("profile-background-uploader",{attrs:{"background-file":e.backgroundFile,"progress-percent":e.backgroundProgressPercent},on:{input:function(t){return e.$emit("upload",t,"background_image")}}}),n("image-upload",{ref:"avatarUpload",staticClass:"mx-auto",attrs:{fitContent:!0},on:{input:function(t){return e.$emit("upload",t,"avatar")}}},[e.user?n("profile-header-avatar",{attrs:{user:e.user}}):e._e()],1)],1),n("base-form",{attrs:{fields:e.userFields},on:{validation:function(t){e.isValid=t}},model:{value:e.userFieldsValues,callback:function(t){e.userFieldsValues=t},expression:"userFieldsValues"}}),e.isCreator?e._l(e.menuFolders,(function(t){return n("menu-folder",{key:t.name,class:"__"+t.name+" my-4",attrs:{folder:t},on:{click:function(n){e.selectedForm=t.name}}})})):e._e(),e.allowThemes&&!e.restrictedMember?[e.userTags?n("profile-tags-view",{staticClass:"profile-edit__tags",attrs:{"user-tags":e.userTags},on:{input:e.onUserTagEdit}}):e._e(),n("select-user-tags-modal",{on:{save:e.onUserTagsSave},model:{value:e.showUserTagsModal,callback:function(t){e.showUserTagsModal=t},expression:"showUserTagsModal"}})]:e._e(),n("div",{staticClass:"profile-edit__save-wrapper"},[n("base-button",{staticClass:"profile-edit__save",attrs:{"full-width":"",to:e.profileUrl}},[e._v(e._s(e.$t("View My Profile")))])],1)]],2)},I=[],j=(n("13d5"),n("a9e3"),n("1276"),n("2909")),D=n("9b43"),N=n("dfc7"),A=n("64ae"),L=n("31cf"),P=n("c619"),B=n("bc3d"),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{attrs:{value:e.value,title:e.title,modal:e.modal,scrollable:!1},on:{input:e.$listeners.input}},[n("select-user-tags-controller",{on:{save:e.$listeners.save}})],1)},R=[],q=n("bef0"),H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select-tags-view",{attrs:{"pre-selected-tags":e.userTags,tags:e.tags,loading:e.loading},on:{save:e.save}})},U=[],V=n("28a7"),z=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.tags=[],e.userTags=[],e.loading=!1,e}return Object(l["a"])(n,[{key:"getData",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,Promise.all([y["a"].TagsProvider.findAll().then((function(e){return t.tags=e})),this.userTagsGetData().then((function(e){return t.userTags=e}))]);case 4:return e.prev=4,this.loading=!1,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[0,,4,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"save",value:function(){var e=Object(s["a"])(p.a.mark((function e(t,n){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.userTagsUpdateData(t);case 3:this.$emit("save",t);case 4:return e.prev=4,n(),e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[0,,4,7]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"created",value:function(){this.getData()}}]),n}(Object(m["c"])(k));z=Object(h["__decorate"])([Object(m["b"])({name:"SelectUserTagsController",components:{SelectTagsView:V["a"]}})],z);var $=z,W=$,G=n("2877"),K=Object(G["a"])(W,H,U,!1,null,null,null),J=K.exports,Y=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return n}(b["default"]);Object(h["__decorate"])([Object(v["e"])({required:!0})],Y.prototype,"value",void 0),Object(h["__decorate"])([Object(v["e"])({type:String,default:Object(O["a"])("Categories")})],Y.prototype,"title",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean,default:!1})],Y.prototype,"modal",void 0),Y=Object(h["__decorate"])([Object(m["b"])({name:"SelectUserTagsModal",components:{ModalView:q["a"],SelectUserTagsController:J}})],Y);var X=Y,Q=X,Z=Object(G["a"])(Q,F,R,!1,null,null,null),ee=Z.exports,te=n("9310"),ne=n("1031"),re=n("855c"),ie=n("93c4"),oe=n("9058"),ae=function(e,t){var n=t._c;return n("div",{class:(Array.isArray(t.data.class)?t.data.class:[t.data.class]).concat([t.data.staticClass])},[n("div",{staticClass:"profile-categories__header my-4"},[n("base-icon",{staticClass:"profile-categories__icon",attrs:{fontSize:"24",color:"var(--palette-gray-darken-3)"}},[t._v(" sci-geometric-figures ")]),n("div",{staticClass:"profile-categories__body px-4"},[n("div",{staticClass:"profile-categories__label-text"},[t._v(t._s(t.parent.$t("Profile Categories")))]),n("div",{staticClass:"profile-categories__description"},[t._v(" "+t._s(t.parent.$t("Please contact support to choose the category"))+" ")])]),n("base-icon",{staticClass:"profile-categories__icon ml-2",attrs:{fontSize:"24",color:"var(--palette-gray-darken-2)"},on:{click:function(){return t.listeners.input&&t.listeners.input(!0)}}},[t._v(" sci-text-sms-outline ")])],1),n("div",t._l(t.props.userTags,(function(e,r){return n("span",{key:r,staticClass:"profile-categories__selected-categories px-3 py-1 mr-2 mb-2"},[t._v(" "+t._s(e.title)+" ")])})),0)])},se=[],ce=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return n}(b["default"]);Object(h["__decorate"])([Object(v["e"])({type:Array,required:!0})],ce.prototype,"userTags",void 0),ce=Object(h["__decorate"])([Object(m["b"])({name:"ProfileTagsView"})],ce);var le=ce,ue=le,de=(n("3148"),Object(G["a"])(ue,ae,se,!0,null,null,null)),fe=de.exports,pe=function(e,t){var n=t._c;return n("div",{staticClass:"image-upload",class:(Array.isArray(t.data.class)?t.data.class:[t.data.class]).concat([t.data.staticClass],[{__fit_content:t.props.fitContent}])},[n("base-input-file",{ref:t.data.ref,staticClass:"image-upload__icon",attrs:{accept:"image"},on:{input:t.listeners.input},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.selectFile;return[n("div",{on:{click:r}},[n("base-icon",{staticClass:"place-center"},[t._v("sci-image-plus")])],1)]}}])}),t._t("default")],2)},he=[],me=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return n}(b["default"]);me=Object(h["__decorate"])([Object(m["b"])({name:"ImageUpload",components:{BaseInputFile:B["a"]}})],me);var ve=me,ge=ve,be=(n("805e"),Object(G["a"])(ge,pe,he,!0,null,"fb7620ce",null)),ye=be.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-background-uploader"},[n("profile-header-background",{attrs:{"background-file":e.backgroundFile,"progress-percent":e.progressPercent||void 0}}),n("base-input-file",{staticClass:"page-background-uploader__icon",attrs:{accept:["image","video"]},on:{input:e.$listeners.input},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.selectFile;return[n("div",{on:{click:r}},[n("base-icon",{staticClass:"place-center"},[e._v("sci-image-plus")])],1)]}}])})],1)},ke=[],xe=n("a6f4"),Ce=n("673f"),Oe=Object(xe["c"])({name:"ProfileBackgroundUploader",components:{BaseInputFile:B["a"],ProfileHeaderBackground:Ce["a"]},props:{backgroundFile:{type:Object},progressPercent:{type:Number}}}),Se=Oe,Te=(n("f203"),Object(G["a"])(Se,we,ke,!1,null,"ec24bc98",null)),Ee=Te.exports,_e=n("b22c"),Me=n("ab82"),Ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("EditSubForm")])},je=[],De=Object(xe["c"])({name:"EditSubForm"}),Ne=De,Ae=Object(G["a"])(Ne,Ie,je,!1,null,null,null),Le=Ae.exports,Pe=Object(Me["b"])(n("a8c9"));function Be(e){return Object(Me["a"])(Pe,e,Le)}var Fe=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.showUserTagsModal=!1,e.isValid=!0,e.selectedForm="",e.userFieldsValues=Object(a["a"])({screenName:e.user.screenName,username:e.user.username},e.questionaryUserFields.reduce((function(t,n){return t[n.name]=e.info[n.name],t}),{})),e}return Object(l["a"])(n,[{key:"getComponent",value:function(e){return Be(e)}},{key:"onUserTagsSave",value:function(e){this.showUserTagsModal=!1,this.$emit("updateUserTags",e)}},{key:"getImageUrl",value:function(e){var t=this,n=this.files.find((function(n){return n.fileId.type===e&&n.fileId.subjectId===t.user.id}));return n?N["a"].getImageThumbnail(n.urlPart,"1080p"):""}},{key:"onUserTagEdit",value:function(){this.$router.push({name:"messages",params:{userId:E["a"].supportUserId}})}},{key:"onFormInput",value:function(){""===this.userFieldsValues.username&&(this.userFieldsValues.username="hubzterpro.com/"),this.isValid&&this.save()}},{key:"save",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t,n;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.userFieldsValues.username.split(/^hubzterpro\.com\//).pop(),n=/^[a-zA-Z0-9._-]*$/.test(t)&&t.length>2,this.$emit("save",{values:Object(a["a"])(Object(a["a"])({},this.userFieldsValues),{},{username:n?t:""}),isValid:this.isValid});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"profileUrl",get:function(){return Object(A["e"])(this.user.id)}},{key:"menuFolders",get:function(){var e;return[{name:"buttons",icon:"sci-add-box",title:Object(O["a"])("Add Buttons"),description:Object(O["a"])("Create buttons and link to anything online")},{name:"privacy",icon:"sci-privacy-shield",title:Object(O["a"])("Privacy"),description:Object(O["a"])("Adjust your profile privacy settings to meet your needs")}].concat(Object(j["a"])("admin"===(null===(e=this.authUser)||void 0===e?void 0:e.role)?[]:[{name:"welcomeMessage",icon:"sci-hand-shake",title:Object(O["a"])("Welcome message"),description:Object(O["a"])("Greet new followers with a friendly welcome message"),to:{name:"welcomeMessage"}}]),[{name:"pageDesign",icon:"sci-pencil-teal",title:Object(O["a"])("Page Design"),description:Object(O["a"])("Get creative with our fully customizable page design features")},{name:"followButton",icon:"sci-gramophone",title:Object(O["a"])("Follow button"),description:Object(O["a"])("Allow your fans to follow you")},{name:"banner",icon:"sci-image",title:Object(O["a"])("Banner"),description:Object(O["a"])("Load special banners and ads and link them anywhere online")},{name:"video",icon:"sci-play-video",title:Object(O["a"])("Video"),description:Object(O["a"])("Load a Youtube video directly on your profile")},{name:"timerEvent",icon:"sci-timer",title:"Timer Countdown",description:Object(O["a"])("Increase customer engagement with a fully customizable timer")},{name:"socialMiniLinks",icon:"sci-social-link",title:Object(O["a"])("Social mini links"),description:Object(O["a"])("Be discreet with your social media links")}])}},{key:"restrictedMember",get:function(){return E["a"].featureRestrictMember&&Object(D["checkRole"])(this.user.role,"member")}},{key:"isCreator",get:function(){return Object(D["checkRole"])(this.user.role,"creator")}},{key:"allowThemes",get:function(){return E["a"].featureTags}},{key:"avatar",get:function(){return this.getImageUrl("avatar")}},{key:"backgroundFile",get:function(){var e,t=this;return null!==(e=this.files.find((function(e){return"background_image"===e.fileId.type&&e.fileId.subjectId===t.user.id})))&&void 0!==e?e:null}},{key:"questionaryUserFields",get:function(){return Object(C["a"])().filter((function(e){var t;return!(null!==(t=e.fieldMeta)&&void 0!==t&&t.social)}))}},{key:"userFields",get:function(){var e=this.restrictedMember?this.questionaryUserFields.filter((function(e){var t;return null===(t=e.fieldMeta)||void 0===t?void 0:t.allowedForMember})):this.questionaryUserFields;return[{name:"screenName",label:Object(O["a"])("Name"),rules:["required","max:30"],validationMode:"aggressive",maxlength:"30"},{name:"username",label:Object(O["a"])("Username"),validationMode:"aggressive",rules:{username_required:!0,max:30,min:1},maxlength:"30",rulesMessages:{username_required:Object(O["a"])("Name can only contain letters, numbers, dashes, dots, underscores and must contain at least 3 symbols.")},hint:Object(O["a"])("Name can only contain letters, numbers, dashes, dots, underscores and must contain at least 3 symbols.")}].concat(Object(j["a"])(e))}}]),n}(Object(m["c"])(g["a"]));Object(h["__decorate"])([Object(v["e"])({required:!0})],Fe.prototype,"user",void 0),Object(h["__decorate"])([Object(v["e"])({required:!0})],Fe.prototype,"info",void 0),Object(h["__decorate"])([Object(v["e"])({required:!0})],Fe.prototype,"files",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean})],Fe.prototype,"loading",void 0),Object(h["__decorate"])([Object(v["e"])({type:Array})],Fe.prototype,"userTags",void 0),Object(h["__decorate"])([Object(v["e"])({type:Number})],Fe.prototype,"backgroundProgressPercent",void 0),Object(h["__decorate"])([Object(v["i"])("userFieldsValues")],Fe.prototype,"onFormInput",null),Object(h["__decorate"])([Object(L["d"])(1e3)],Fe.prototype,"save",null),Fe=Object(h["__decorate"])([Object(m["b"])({name:"PageProfileEditView",components:{MenuFolder:_e["a"],SelectUserTagsModal:ee,ProfileTagsView:fe,ImageUpload:ye,BaseInputFile:B["a"],ProfileHeaderAvatar:P["a"],BaseForm:ie["a"],BasePage:re["a"],PageTitle:ne["a"],BaseButton:te["a"],BaseIcon:oe["a"],ProfileBackgroundUploader:Ee}})],Fe);var Re=Fe,qe=Re,He=(n("731b"),Object(G["a"])(qe,M,I,!1,null,null,null)),Ue=He.exports,Ve=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.fetch=!0,e.loading=!1,e.info={},e.files=[],e.user=null,e.userTags=[],e.systemTags=[],e.backgroundProgressPercent=null,e.checkConvertingStatusTimeoutId=null,e}return Object(l["a"])(n,[{key:"getFiles",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.filesFind({fileIds:[{subjectId:this.userId,type:"avatar"},{subjectId:this.userId,type:"background_image"}]});case 2:this.files=e.sent,t=this.getBgImageStatus(),t.isConverting&&this.checkConvertingStatus();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getBgImageStatus",value:function(){var e=this.files.findIndex((function(e){return"background_image"===e.fileId.type}));return{isConverting:-1!==e&&["NEW","CONVERTING"].includes(this.files[e].processingStatus),index:e}}},{key:"cleanTimeout",value:function(){this.checkConvertingStatusTimeoutId&&clearTimeout(this.checkConvertingStatusTimeoutId),this.checkConvertingStatusTimeoutId=null}},{key:"checkConvertingStatus",value:function(){var e=this;this.cleanTimeout(),this.checkConvertingStatusTimeoutId=setTimeout(Object(s["a"])(p.a.mark((function t(){var n,r;return p.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.getBgImageStatus(),n.isConverting){t.next=4;break}return e.cleanTimeout(),t.abrupt("return");case 4:return t.next=6,e.filesFind({fileIds:[{subjectId:e.userId,type:"background_image"}]});case 6:r=t.sent,r.length>0&&e.$set(e.files,n.index,r[0]),e.checkConvertingStatus();case 9:case"end":return t.stop()}}),t)}))),3e3)}},{key:"getUserData",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t,n,r=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.isAuthor){e.next=4;break}this.user=this.authUserStrict,e.next=9;break;case 4:return e.next=6,y["a"].UserPublicDataProvider.search({data:{id:[this.userId]}});case 6:t=e.sent,n=t.result.find((function(e){return e.id===r.userId})),n&&(this.user=n);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getData",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.fetch=!0,e.next=4,Promise.all([y["a"].QuestionaryInfoProvider.find({id:this.userId}).then((function(e){return t.info=e.fields})),this.getFiles(),this.getUserData(),E["a"].featureTags?(this.userTagsGetData().then((function(e){return t.userTags=e})),y["a"].TagsProvider.findAll().then((function(e){return t.systemTags=e}))):void 0]);case 4:return e.prev=4,this.fetch=!1,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[0,,4,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"updateUserTags",value:function(e){this.userTags=e}},{key:"upload",value:function(){var e=Object(s["a"])(p.a.mark((function e(t,n){var r,i,o,s,c=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=function(e){var t=e.loaded/e.total*100;c.backgroundProgressPercent=Math.ceil(t)},i={type:n,subjectId:this.userId},e.next=6,this.filesUpload({fileId:i,file:t[0],onUploadProgressCB:r});case 6:return o=e.sent,e.next=9,this.getFiles();case 9:this.user&&(s=Object(a["a"])(Object(a["a"])(Object(a["a"])({},this.user),"avatar"===o.fileId.type?{avatar:o}:{}),"background_image"===o.fileId.type?{background:o}:{}),this.$store.commit(_["b"].SET_USER,s),this.user=s);case 10:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"save",value:function(){var e=Object(s["a"])(p.a.mark((function e(t){var n,r,i,s,c,l,u=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.values,r=n.screenName,i=n.username,s=Object(o["a"])(n,["screenName","username"]),c=Object(a["a"])(Object(a["a"])({id:this.userId},r?{screenName:r}:{}),i?{username:i}:{}),Object(C["a"])().forEach((function(e){var t;if(s[e.name]&&null!==(t=e.fieldMeta)&&void 0!==t&&t.regExp)if(e.fieldMeta.appendText)e.fieldMeta.regExp.test(s[e.name])||(s[e.name]="".concat(e.fieldMeta.appendText).concat(s[e.name]));else{var n=e.fieldMeta.regExp.exec(s[e.name]);n[1]&&(s[e.name]=n[1])}})),l={fields:Object(a["a"])(Object(a["a"])({},s),{},{userId:this.userId})},this.loading=!0,e.next=7,Promise.all([y["a"].QuestionaryInfoProvider.update({data:l}),y["a"].UserProvider.update({data:c}).then((function(e){return u.isAuthor&&u.$store.commit(_["b"].SET_USER,e)}))]).finally((function(){t.isValid&&S["a"].emit(T["b"].NOTIFICATION_SHOW,{text:Object(O["a"])("Changes saved"),timeout:1500}),u.loading=!1}));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"created",value:function(){this.getData()}},{key:"isAuthor",get:function(){return this.authUserStrict.id===this.userId||!1}},{key:"selectedTags",get:function(){var e=this;return this.systemTags.filter((function(t){return e.userTags.includes(t.id)}))}}]),n}(Object(m["c"])(g["a"],x["a"],k));Object(h["__decorate"])([Object(v["e"])({type:String,required:!0})],Ve.prototype,"userId",void 0),Ve=Object(h["__decorate"])([Object(m["b"])({name:"PageProfileEdit",components:{PageProfileEditView:Ue}})],Ve);var ze=Ve,$e=ze,We=Object(G["a"])($e,r,i,!1,null,null,null),Ge=We.exports},6183:function(e,t,n){},"619f":function(e,t,n){"use strict";n("f726")},"61a4":function(e,t,n){},"61ff":function(e,t,n){},"626e":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-header-background"},[e.showStatus?n("div",{staticClass:"profile-header-background__text"},[e.isLoaded?n("base-spinner",{attrs:{size:"70px",linePercentFill:e.progressPercent}}):e._e(),e.isConverting?n("span",{staticClass:"subtitle-2"},[e._v(e._s(e.$t("This file is converting.")))]):e._e(),e.isError?n("span",{staticClass:"subtitle-2"},[e._v(e._s(e.$t("This file is broken.")))]):e._e()],1):e.url?n("div",{staticClass:"profile-header-background__thumbnail",class:[{__empty:!e.backgroundFile}],style:{backgroundImage:"url("+e.url+")"}}):e.videoSrc?n("div",{staticClass:"profile-header-background__video"},[n("video",{attrs:{src:e.videoSrc,muted:"",autoplay:"",loop:"",playsinline:""},domProps:{muted:!0}})]):e._e()])},i=[],o=(n("a9e3"),n("a6f4")),a=n("dfc7"),s=n("bc5a"),c=n("ab58"),l="/img/profile-placeholder.png",u=Object(o["c"])({name:"ProfileHeaderBackground",components:{BaseSpinner:c["a"]},props:{backgroundFile:{type:Object},progressPercent:{type:Number,default:100}},setup:function(e){var t=Object(o["a"])((function(){return!!e.backgroundFile&&Object(s["i"])(e.backgroundFile)})),n=Object(o["a"])((function(){var t;return"OK"===(null===(t=e.backgroundFile)||void 0===t?void 0:t.processingStatus)})),r=Object(o["a"])((function(){var t,n;return"CONVERTING"===(null===(t=e.backgroundFile)||void 0===t?void 0:t.processingStatus)||"NEW"===(null===(n=e.backgroundFile)||void 0===n?void 0:n.processingStatus)})),i=Object(o["a"])((function(){var t;return"ERROR"===(null===(t=e.backgroundFile)||void 0===t?void 0:t.processingStatus)})),c=Object(o["a"])((function(){return 100!==e.progressPercent})),u=Object(o["a"])((function(){return r.value||c.value||i.value})),d=Object(o["a"])((function(){if(!e.backgroundFile)return"__empty";if(i.value)return l;var r=e.backgroundFile.urlPart;return Object(s["f"])(e.backgroundFile)?a["a"].getImageThumbnail(r,"1080p"):!n.value&&t.value?a["a"].getVideoThumbnail(r,"1080p"):""})),f=Object(o["a"])((function(){var r;return e.backgroundFile&&n.value&&t.value&&!d.value?a["a"].getVideoUrl(null===(r=e.backgroundFile)||void 0===r?void 0:r.urlPart):""}));return{url:d,isError:i,isLoaded:c,videoSrc:f,showStatus:u,isConverting:r,ERROR_PLACEHOLDER:l}}}),d=u,f=(n("2722"),n("2877")),p=Object(f["a"])(d,r,i,!1,null,"4eb210c2",null);t["a"]=p.exports},"63ef":function(e,t,n){},"64b1":function(e,t,n){},"673f":function(e,t,n){"use strict";var r=n("626e");n.d(t,"a",(function(){return r["a"]}))},"68ae":function(e,t,n){"use strict";n("38c5")},6966:function(e,t,n){},"6a3b":function(e,t,n){},"6a9e":function(e,t,n){},"6a9f":function(e,t,n){"use strict";n("b1fd")},"6b32":function(e,t,n){"use strict";n("213d")},"6ce0":function(e,t,n){},"6df8":function(e,t,n){"use strict";n("fe84")},"6eb0":function(e,t,n){"use strict";n("61a4")},"70b0":function(e,t,n){"use strict";var r={facebook:function(e){return{url:"https://facebook.com/".concat(e),title:"Facebook",icon:"sci-color-facebook-button",backgroundColor:"#4267b2",textColor:"#ffffff"}},instagram:function(e){return{url:"https://instagram.com/".concat(e),title:"Instagram",icon:"sci-color-instagram",backgroundColor:"#262626",textColor:"#ffffff"}},x:function(e){return{url:"https://twitter.com/".concat(e),title:"",icon:"sci-color-x-white",backgroundColor:"#000000",textColor:"#ffffff"}},camsoda:function(e){return{url:"https://www.camsoda.com/".concat(e,"?noterms=1&id=mixedmag&type=PPS&rcc=1&join_form=1"),title:"",icon:"sci-color-camsoda",backgroundColor:"#f841b5"}},hubzterlive:function(e){return{url:"https://hubzter.live/".concat(e),title:"",icon:"sci-color-hubzterlive",backgroundColor:"#8d63d6"}},fansoda:function(e){return{url:"https://fansoda.com/".concat(e),title:"",icon:"sci-color-fansoda",backgroundColor:"#ffffff",textColor:"#ffffff"}},cashapp:function(e){return{url:"https://cash.app/".concat(e),title:"",icon:"sci-color-cashapp-button",backgroundColor:"#0bb634"}},paypal:function(e){return{url:"https://paypal.me/".concat(e),title:"",icon:"sci-color-paypal",backgroundColor:"#8d63d6"}},tipsnaps:function(e){return{url:"https://tipsnaps.com/profile/".concat(e),title:"",icon:"sci-color-tipsnaps",backgroundColor:"#ffffff"}},modelhub:function(e){return{url:"https://modelhub.com/".concat(e),title:"",icon:"sci-color-modelhub",backgroundColor:"#ffffff"}},sexyvids:function(e){return{url:"https://www.camsoda.com/enter.php?id=mixedmag&type=PPS&model=".concat(e,"&page=media"),title:"",icon:"sci-color-sexyvids",backgroundColor:"#f841b5",textColor:"#ffffff"}},collide:function(e){return{url:"https://www.collide.com/".concat(e),title:"",icon:"sci-color-collide",backgroundColor:"#929292"}},manyvids:function(e){return{url:"https://".concat(e,".manyvids.com"),title:"",icon:"sci-color-manyvids",backgroundColor:"#ffffff"}},venmo:function(e){return{url:"https://venmo.com/".concat(e),title:"",icon:"sci-color-venmo",backgroundColor:"#ffffff"}},cameo:function(e){return{url:"https://cameo.com/".concat(e),title:"",icon:"sci-color-cameo",backgroundColor:"#ffffff"}},fleshlight:function(e){return{url:"https://fleshlight.com/".concat(e),title:"",icon:"sci-color-fleshlight",backgroundColor:"#ffffff"}},chaturbate:function(e){return{url:"https://chaturbate.com/in/?track=default&tour=dT8X&campaign=SWGPp&room=".concat(e),title:"",icon:"sci-color-chaturbate",backgroundColor:"#f4ead3"}},fancentro:function(e){return{url:"https://fancentro.com/r/WnJHXMBX/".concat(e),title:"",icon:"sci-color-fancentro",backgroundColor:"#fed104"}},stripchat:function(e){return{url:"https://stripchat.com/".concat(e),title:"",icon:"sci-color-stripchat",backgroundColor:"#a2252d"}},patreon:function(e){return{url:"https://patreon.com/".concat(e),title:"",icon:"sci-color-patreon-button",backgroundColor:"#f96854"}},tiktok:function(e){return{url:"https://tiktok.com/@".concat(e),title:"",icon:"sci-color-tiktok-button",backgroundColor:"#ffffff"}},sextpanther:function(e){return{url:"https://sextpanther.com/".concat(e),title:"",icon:"sci-color-sextpanther",backgroundColor:"#111111"}},crunchyroll:function(e){return{url:"https://crunchyroll.com/".concat(e),title:"",icon:"sci-color-crunchyroll",backgroundColor:"#ffffff"}},twitch:function(e){return{url:"https://twitch.com/".concat(e),title:"",icon:"sci-color-twitch",backgroundColor:"#6441a4"}},pornhub:function(e){return{url:"https://pornhub.com/model/".concat(e),title:"",icon:"sci-color-pornhub",backgroundColor:"#313131",textColor:"#ffffff"}},onlyfans:function(e){return{url:"https://onlyfans.com/".concat(e),title:"",icon:"sci-color-onlyfans-button",backgroundColor:"#ffffff"}},onlyfansfree:function(e){return{url:"https://onlyfans.com/".concat(e),title:"",icon:"sci-color-onlyfans-button-free",backgroundColor:"#ffffff"}},onlyfansvip:function(e){return{url:"https://onlyfans.com/".concat(e),title:"",icon:"sci-color-onlyfans-button-vip",backgroundColor:"#ffffff"}},telegram:function(e){return{url:"https://t.me/".concat(e),title:"",icon:"sci-color-telegram",backgroundColor:"#279fd3"}},imlive:function(e){return{url:"https://imlive.com/wmaster2.ashx?wid=126524571630&linkid=701&from=freevideo1&nickname=".concat(e,"&queryid=1&promocode=xxxx"),title:"",icon:"sci-color-imlive",backgroundColor:"#d7e3ee"}},pinterest:function(e){return{url:"https://pinterest.com/".concat(e),title:"Pinterest",icon:"sci-color-pinterest",backgroundColor:"#bd081c",textColor:"#ffffff"}},snapchat:function(e){return{url:"https://snapchat.com/add/".concat(e),title:"Snapchat",icon:"sci-color-snapchat",backgroundColor:"#fffc00",textColor:"#000000"}},tumblr:function(e){return{url:"https://".concat(e,".tumblr.com"),title:"Tumblr",icon:"sci-color-tumblr",backgroundColor:"#529ecc",textColor:"#ffffff"}},livejasmin:function(e){return{url:"https://awejmp.com/?siteId=jasmin&pageName=freechat&performerName=".concat(e,"&prm[psid]=webcamglam&prm[pstool]=205_1&prm[psprogram]=revs"),title:"",icon:"sci-color-livejasmin",backgroundColor:"#a3090c"}},streamate:function(e){return{url:"https://models4members.solidcams.com/cam/".concat(e,"/"),title:"",icon:"sci-color-streamate",backgroundColor:"#ffffff"}},adultwork:function(e){return{url:"https://www.adultwork.com/ViewProfile.asp?UserID=".concat(e),title:"",icon:"sci-color-adultwork",backgroundColor:"#ffffff",textColor:"#ffffff"}},centerfold:function(e){return{url:"https://www.centerfold.com/".concat(e),title:"",icon:"sci-color-centerfold",backgroundColor:"#ffffff",textColor:"#000000"}},celebtv:function(e){return{url:"https://celeb.tv/".concat(e),title:"",icon:"sci-color-celebtv",backgroundColor:"#204182",textColor:"#ffffff"}},dribbble:function(e){return{url:"https://dribbble.com/".concat(e),title:"",icon:"sci-color-dribbble",backgroundColor:"#e27097",textColor:"#ffffff"}},justforfans:function(e){return{url:"https://justfor.fans/".concat(e),title:"",icon:"sci-color-justforfans",backgroundColor:"#ffffff",textColor:"#000000"}},fansly:function(e){return{url:"https://fansly.com/".concat(e),title:"",icon:"sci-color-fansly",backgroundColor:"#000000",textColor:"#ffffff"}},fanzen:function(e){return{url:"https://fanzen.com/".concat(e),title:"",icon:"sci-color-fanzen",backgroundColor:"#000000",textColor:"#ffffff"}},ifans:function(e){return{url:"https://www.ifans.com/".concat(e),title:"",icon:"sci-color-ifans",backgroundColor:"#ffffff",textColor:"#ffffff"}},ismygirl:function(e){return{url:"https://".concat(e,".ismygirl.com/"),title:"",icon:"sci-color-ismygirl",backgroundColor:"#00aaff",textColor:"#000000"}},loyalfans:function(e){return{url:"https://www.loyalfans.com/".concat(e),title:"",icon:"sci-color-loyalfans",backgroundColor:"#ffffff",textColor:"#000000"}},messenger:function(e){return{url:"https://messenger.com/t/".concat(e),title:"Messenger",icon:"fa-envelope fa-2x",backgroundColor:"#0084ff",textColor:"#000000"}},modelcentro:function(e){return{url:"http://".concat(e,".modelcentro.com/"),title:"",icon:"sci-color-modelcentro",backgroundColor:"#212650",textColor:"#ffffff"}},myfreecams:function(e){return{url:"https://new.myfreecams.com/room/".concat(e),title:"",icon:"sci-color-myfreecams",backgroundColor:"#008000",textColor:"#ffffff"}},mfcshare:function(e){return{url:"https://share.myfreecams.com/".concat(e),title:"",icon:"sci-color-myfreecamsshare",backgroundColor:"#ffffff",textColor:"#ffffff"}},shoutoutexpress:function(e){return{url:"https://shoutoutexpress.com/".concat(e),title:"BUY MY SHOUTOUTS!",icon:"sci-color-shoutoutexpress",backgroundColor:"#282828",textColor:"#14dcec"}},frisk:function(e){return{url:"https://frisk.chat/".concat(e),title:"",icon:"sci-color-frisk",backgroundColor:"#000000",textColor:"#ffffff"}},clips4sale:function(e){return{url:"https://clips4sale.com/".concat(e),title:"",icon:"sci-color-clips4sale",smallIcon:!0,backgroundColor:"#231b30",textColor:"#ffffff"}},alua:function(e){return{url:"https://alua.com/".concat(e),title:"",icon:"sci-color-alua",backgroundColor:"#efefef",textColor:"#231b30"}},niteflirt:function(e){return{url:"https://niteflirt.com/user/".concat(e),title:"",icon:"sci-color-niteflirt",backgroundColor:"#000000",textColor:"#ffffff"}},inkedgirls:function(e){return{url:"https://inkedgirl.com/".concat(e),title:"",icon:"sci-color-inkedgirls",backgroundColor:"#ffffff",textColor:"#ffffff"}},feetfinder:function(e){return{url:"https://www.feetfinder.com/sellerProfile/".concat(e),title:"",icon:"sci-color-feetfinder",backgroundColor:"#7945e5",textColor:"#ffffff"}},pocketstars:function(e){return{url:" https://pocketstars.com/".concat(e),title:"",icon:"sci-color-pocketstars",backgroundColor:"#ffffff",textColor:"#ffffff"}},myclub:function(e){return{url:"https://my.club/".concat(e),title:"",icon:"sci-color-myclub",backgroundColor:"#000000",textColor:"#ffffff"}},admiremevip:function(e){return{url:"https://admireme.vip/".concat(e),title:"",icon:"sci-color-admiremevip",backgroundColor:"#ffffff",textColor:"#ffffff"}},buymeacoffee:function(e){return{url:"https://www.buymeacoffee.com/".concat(e),title:"",icon:"sci-color-buymeacoffee",backgroundColor:"#ffffff",textColor:"#ffffff"}},clubhouse:function(e){return{url:"https://www.clubhouse.com/@".concat(e),title:"",icon:"sci-color-clubhouse",backgroundColor:"#f2efe4",textColor:"#ffffff"}},spankpay:function(e){return{url:"https://spankpay.me/".concat(e),title:"",icon:"sci-color-spankpay",backgroundColor:"#ff3b81",textColor:"#ffffff"}},stripperfans:function(e){return{url:" https://www.stripperfans.com/user/".concat(e),title:"",icon:"sci-color-stripperfans",backgroundColor:"#000000",textColor:"#ffffff"}},xfollow:function(e){return{url:" https://www.xfollow.com/".concat(e),title:"",icon:"sci-color-xfollow",backgroundColor:"#111111",textColor:"#ffffff"}},wishtender:function(e){return{url:"https://www.wishtender.com/".concat(e),title:"",icon:"sci-color-wishtender",smallIcon:!0,backgroundColor:"#ffffff",textColor:"#ffffff"}},slushy:function(e){return{url:"https://www.slushy.com/@".concat(e),title:"",icon:"sci-color-slushy",smallIcon:!0,backgroundColor:"#473a96",textColor:"#ffffff"}},fambase:function(e){return{url:e,title:"",icon:"sci-color-fambase",smallIcon:!0,backgroundColor:"#ffcc33",textColor:"#ffffff"}},fanzter:function(e){return{url:"https://www.fanzter.com/".concat(e),title:"",icon:"sci-color-fanzter",smallIcon:!0,backgroundColor:"#ffffff",textColor:"#ffffff"}}};t["a"]=r},"731b":function(e,t,n){"use strict";n("fd86")},"750c":function(e,t,n){},"757d":function(e,t,n){"use strict";n("0172")},"7cf0":function(e,t,n){},"7e31":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return O})),n.d(t,"selector",(function(){return S}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Social mini links")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):[n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput}}),n("base-form",{attrs:{fields:e.socialFields,values:e.socialFieldsValues},on:{input:e.onSocialFormInput}})]],2)],1)},i=[],o=(n("4de4"),n("13d5"),n("b0c0"),n("d3b7"),n("ddb0"),n("5530")),a=(n("96cf"),n("1da1")),s=n("a34a"),c=n.n(s),l=n("a6f4"),u=n("2ef0"),d=n("c3b0"),f=n("04fb"),p=n("78f9"),h=n("fe95"),m=n("ff07"),v=n("a5de"),g=n("ab58"),b=n("1031"),y=n("93c4"),w=Object(l["c"])({name:"EditFormSocialLinks",components:{PageTitle:b["a"],BaseSpinner:g["a"],BaseForm:y["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(d["b"])(Object(l["p"])(e,"user")),n=t.loading,r=t.values,i=t.infoValues,s=t.updateProfileSettings,g=[{name:"social-settings-subtitle",type:"subtitle",label:Object(p["a"])("Settings"),fieldClass:"mt-2 mb-1"},{name:"socialButtonsLocation",type:"select",label:Object(p["a"])("Buttons location"),options:[{text:Object(p["a"])("Bellow all buttons"),value:"bellow"},{text:Object(p["a"])("Above all buttons"),value:"above"}],fieldMeta:{socialSettings:!0}},{name:"social-links-subtitle",type:"subtitle",label:Object(p["a"])("Links"),fieldClass:"mt-5 mb-1"}],b=Object(f["a"])().filter((function(e){var t;return null===(t=e.fieldMeta)||void 0===t?void 0:t.social})),y=Object(u["debounce"])(Object(a["a"])(c.a.mark((function e(){var t;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n.value){e.next=2;break}return e.abrupt("return");case 2:return t={socialButtonsLocation:r.value.socialButtonsLocation},e.next=5,s(t);case 5:h["a"].emit(v["b"].NOTIFICATION_SHOW,{text:Object(p["a"])("Changes saved"),timeout:1500});case 6:case"end":return e.stop()}}),e)}))),500),w=Object(u["debounce"])(Object(a["a"])(c.a.mark((function t(){var r;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n.value){t.next=2;break}return t.abrupt("return");case 2:return r=b.reduce((function(e,t){return e[t.name]=i.value[t.name],e}),{}),t.next=5,m["a"].QuestionaryInfoProvider.update({data:{fields:Object(o["a"])({userId:e.user.id},r)}});case 5:h["a"].emit(v["b"].NOTIFICATION_SHOW,{text:Object(p["a"])("Changes saved"),timeout:1500});case 6:case"end":return t.stop()}}),t)}))),500),k=function(e){r.value=e,y()},x=function(e){i.value=e,w()};return{loading:n,fields:g,values:r,socialFields:b,socialFieldsValues:i,onFormInput:k,onSocialFormInput:x,save:y}}}),k=w,x=n("2877"),C=Object(x["a"])(k,r,i,!1,null,null,null),O=C.exports,S=function(e){return"socialMiniLinks"===e}},"7f06":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),s="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),c="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=o&&(c||+o[1]<57)||s&&c,d=0;d<10;d++)r[48+d]=r[96+d]=String(d);for(d=1;d<=24;d++)r[d+111]="F"+d;for(d=65;d<=90;d++)r[d]=String.fromCharCode(d+32),i[d]=String.fromCharCode(d);for(var f in r)i.hasOwnProperty(f)||(i[f]=r[f]);function p(e){var t=u&&(e.ctrlKey||e.altKey||e.metaKey)||(a||l)&&e.shiftKey&&e.key&&1==e.key.length,n=!t&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var h=n("5313"),m="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function v(e){var t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(var s=0;s<o.length-1;s++){var c=o[s];if(/^(cmd|meta|m)$/i.test(c))i=!0;else if(/^a(lt)?$/i.test(c))t=!0;else if(/^(c|ctrl|control)$/i.test(c))n=!0;else if(/^s(hift)?$/i.test(c))r=!0;else{if(!/^mod$/i.test(c))throw new Error("Unrecognized modifier name: "+c);m?i=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),i&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function g(e){var t=Object.create(null);for(var n in e)t[v(n)]=e[n];return t}function b(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function y(e){return new h["Plugin"]({props:{handleKeyDown:w(e)}})}function w(e){var t=g(e);return function(e,n){var i,o=p(n),a=1==o.length&&" "!=o,s=t[b(o,n,!a)];if(s&&s(e.state,e.dispatch,e))return!0;if(a&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(i=r[n.keyCode])&&i!=o){var c=t[b(i,n,!0)];if(c&&c(e.state,e.dispatch,e))return!0}else if(a&&n.shiftKey){var l=t[b(o,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}},"805e":function(e,t,n){"use strict";n("29097")},"81f7":function(e,t,n){"use strict";n("39e6")},8408:function(e,t,n){},8726:function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return I}));var r=200,i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<r&&this.leafAppend(e)||this.length<r&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?i.from(e).append(this):this},i.prototype.appendInner=function(e){return new a(this,e)},i.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},i.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},i.from=function(e){return e instanceof i?e:e&&e.length?new o(e):i.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=r)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=r)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(i);i.empty=new o([]);var a=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;return!(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r))&&(!(n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;return!(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i))&&(!(n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i),s=i,c=s,l=n("0ac0"),u=n("5313"),d=500,f=function(e,t){this.items=e,this.eventCount=t};function p(e,t){var n;return e.forEach((function(e,r){if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}f.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var r,i,o=this.items.length;;o--){var a=this.items.get(o-1);if(a.selection){--o;break}}t&&(r=this.remapping(o,this.items.length),i=r.maps.length);var s,c,l=e.tr,u=[],d=[];return this.items.forEach((function(e,t){if(!e.step)return r||(r=n.remapping(o,t+1),i=r.maps.length),i--,void d.push(e);if(r){d.push(new h(e.map));var a,p=e.step.map(r.slice(i));p&&l.maybeStep(p).doc&&(a=l.mapping.maps[l.mapping.maps.length-1],u.push(new h(a,null,null,u.length+d.length))),i--,a&&r.appendMap(a,i)}else l.maybeStep(e.step);return e.selection?(s=r?e.selection.map(r.slice(i)):e.selection,c=new f(n.items.slice(0,o).append(d.reverse().concat(u)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:c,transform:l,selection:s}},f.prototype.addTransform=function(e,t,n,r){for(var i=[],o=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-1):null,c=0;c<e.steps.length;c++){var l=e.steps[c].invert(e.docs[c]),u=new h(e.mapping.maps[c],l,t),d=void 0;(d=s&&s.merge(u))&&(u=d,c?i.pop():a=a.slice(0,a.length-1)),i.push(u),t&&(o++,t=null),r||(s=u)}var m=o-n.depth;return m>v&&(a=p(a,m),o-=m),new f(a.append(i),o)},f.prototype.remapping=function(e,t){var n=new l["a"];return this.items.forEach((function(t,r){var i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,i)}),e,t),n},f.prototype.addMaps=function(e){return 0==this.eventCount?this:new f(this.items.append(e.map((function(e){return new h(e)}))),this.eventCount)},f.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach((function(e){e.selection&&a--}),r);var s=t;this.items.forEach((function(t){var r=i.getMirror(--s);if(null!=r){o=Math.min(o,r);var c=i.maps[r];if(t.step){var l=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(s+1,r));u&&a++,n.push(new h(c,l,u))}else n.push(new h(c))}}),r);for(var c=[],l=t;l<o;l++)c.push(new h(i.maps[l]));var u=this.items.slice(0,r).append(c).append(n),p=new f(u,a);return p.emptyItemCount()>d&&(p=p.compress(this.items.length-n.length)),p},f.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},f.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((function(o,a){if(a>=e)r.push(o),o.selection&&i++;else if(o.step){var s=o.step.map(t.slice(n)),c=s&&s.getMap();if(n--,c&&t.appendMap(c,n),s){var l=o.selection&&o.selection.map(t.slice(n));l&&i++;var u,d=new h(c.invert(),s,l),f=r.length-1;(u=r.length&&r[f].merge(d))?r[f]=u:r.push(d)}}else o.map&&n--}),this.items.length,0),new f(c.from(r.reverse()),i)},f.empty=new f(c.empty,0);var h=function(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r};h.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new h(t.getMap().invert(),t,this.selection)}};var m=function(e,t,n,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r},v=20;function g(e,t,n,r){var i,o=n.getMeta(S);if(o)return o.historyState;n.getMeta(T)&&(e=new m(e.done,e.undone,null,0));var a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(S))return a.getMeta(S).redo?new m(e.done.addTransform(n,null,r,O(t)),e.undone,y(n.mapping.maps[n.steps.length-1]),e.prevTime):new m(e.done,e.undone.addTransform(n,null,r,O(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new m(e.done.rebased(n,i),e.undone.rebased(n,i),w(e.prevRanges,n.mapping),e.prevTime):new m(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),w(e.prevRanges,n.mapping),e.prevTime);var s=0==e.prevTime||!a&&(e.prevTime<(n.time||0)-r.newGroupDelay||!b(n,e.prevRanges)),c=a?w(e.prevRanges,n.mapping):y(n.mapping.maps[n.steps.length-1]);return new m(e.done.addTransform(n,s?t.selection.getBookmark():null,r,O(t)),f.empty,c,n.time)}function b(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,r){for(var i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)})),n}function y(e){var t=[];return e.forEach((function(e,n,r,i){return t.push(r,i)})),t}function w(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}function k(e,t,n,r){var i=O(t),o=S.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,i);if(a){var s=a.selection.resolve(a.transform.doc),c=(r?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),o,i),l=new m(r?c:a.remaining,r?a.remaining:c,null,0);n(a.transform.setSelection(s).setMeta(S,{redo:r,historyState:l}).scrollIntoView())}}var x=!1,C=null;function O(e){var t=e.plugins;if(C!=t){x=!1,C=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){x=!0;break}}return x}var S=new u["PluginKey"]("history"),T=new u["PluginKey"]("closeHistory");function E(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new u["Plugin"]({key:S,state:{init:function(){return new m(f.empty,f.empty,null,0)},apply:function(t,n,r){return g(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?_(e.state,e.dispatch):"historyRedo"==t.inputType&&M(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function _(e,t){var n=S.getState(e);return!(!n||0==n.done.eventCount)&&(t&&k(n,e,t,!1),!0)}function M(e,t){var n=S.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&k(n,e,t,!0),!0)}function I(e){var t=S.getState(e);return t?t.done.eventCount:0}},"880e":function(e,t,n){"use strict";n.r(t),n.d(t,"selector",(function(){return m})),n.d(t,"default",(function(){return h}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stream-message-tip"},[n("div",{staticClass:"stream-message-tip__avatar mr-4"},[n("base-avatar",{attrs:{"hide-online-status":"","hide-broadcasting":"",size:40,user:e.message.senderUser}}),n("div",{staticClass:"stream-message-tip__icon-wrapper d-center"},[n("base-icon",{staticClass:"stream-message-tip__icon",attrs:{"font-size":16}},[e._v("sci-gift")])],1)],1),n("div",{staticClass:"stream-message-tip__content d-flex __align-center bold"},[n("format-money",{attrs:{cost:e.amount},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.amount,r=t.symbol,i=t.separator;return[e._v(" "+e._s(e.$t("{0} sent a tip {1}",[e.message.senderUser.screenName,""+r+n[0]+i+n[1]]))+" ")]}}])})],1)])},i=[],o=n("a6f4"),a=n("7fc7"),s=n("6a2d"),c=n("6d37"),l=n("9058"),u=Object(o["c"])({name:"StreamMessage",components:{BaseAvatar:a["a"],FormatMoney:c["a"],BaseIcon:l["a"]},props:{message:{type:Object,required:!0}},setup:function(e){var t=Object(o["a"])((function(){return Object(s["isTipMessageDetails"])(e.message.details)?e.message.details.amount:0}));return{amount:t}}}),d=u,f=(n("619f"),n("2877")),p=Object(f["a"])(d,r,i,!1,null,"2c92d1e6",null),h=p.exports;function m(e){var t;return"tip"===(null===(t=e.details)||void 0===t?void 0:t.type)}},"893b":function(e,t,n){"use strict";n("30cf")},"8ab4":function(e,t,n){},"8af2":function(e,t,n){"use strict";var r=n("d4ec"),i=n("262e"),o=n("2caf"),a=n("9ab4"),s=n("2fe1"),c=n("2b0e"),l=n("427f"),u=function(e){Object(i["a"])(n,e);var t=Object(o["a"])(n);function n(){return Object(r["a"])(this,n),t.apply(this,arguments)}return n}(c["default"]);u=Object(a["__decorate"])([Object(s["b"])({setup:function(){var e=Object(l["a"])(),t=e.updateFile,n=e.findFiles,r=e.deleteFile,i=e.uploadFilesToS3,o=e.uploadThenUpdate;return{filesFind:n,filesUpdate:t,filesDelete:r,filesUploadFileToS3:i,filesUpload:o}}})],u),t["a"]=u},"8ef3":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u})),n.d(t,"selector",(function(){return d}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{position:"fixed",width:"100%",height:"100%",top:"0"}},[n("div",{staticClass:"blue-skies"}),n("div",{staticClass:"clouds-home"})])}],o=n("a6f4"),a=Object(o["c"])({name:"AnimationBlue"}),s=a,c=(n("d68a"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,"1e165c88",null),u=l.exports,d=function(e){return"blue"===e}},"90e4":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return M})),n.d(t,"selector",(function(){return I}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"banners"},[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Banner")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):[n("div",{staticClass:"caption mb-6"},[e._v(e._s(e.$t("The clickable banner will be displayed on your Profile page")))]),e.imageSrc?n("base-image",{staticClass:"banner__img mx-auto mb-6",attrs:{src:e.imageSrc,"top-right-icon":""},scopedSlots:e._u([{key:"top-right",fn:function(){return[n("base-icon",{staticClass:"banner__img-delete",attrs:{"font-size":20},on:{click:e.onDeleteFile}},[e._v("sci-cross")])]},proxy:!0}],null,!1,3104707064)}):e._e(),n("base-input-file",{staticClass:"mb-3",attrs:{accept:["image",".gif","image/gif"]},on:{input:e.onAddFile},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.selectFile;return[n("base-button",{staticClass:"banner__upload-picture-btn mx-auto",attrs:{gray:""},on:{click:r}},[e._v(" "+e._s(e.imageSrc?e.$t("Replace picture"):e.$t("Upload picture"))+" ")])]}}])}),n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput}})]],2)],1)},i=[],o=(n("d3b7"),n("3ca3"),n("9911"),n("ddb0"),n("2b3d"),n("5530")),a=(n("96cf"),n("1da1")),s=n("a34a"),c=n.n(s),l=n("a6f4"),u=n("2ef0"),d=n("d822"),f=n("ff07"),p=n("78f9"),h=n("fe95"),m=n("a5de"),v=n("dfc7"),g=n("427f"),b=n("ab58"),y=n("9310"),w=n("1031"),k=n("93c4"),x=n("9058"),C=n("0fb2"),O=n("bc3d"),S=Object(l["c"])({name:"EditFormBanner",components:{PageTitle:w["a"],BaseSpinner:b["a"],BaseForm:k["a"],BaseButton:y["a"],BaseIcon:x["a"],BaseImage:C["a"],BaseInputFile:O["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(g["a"])(),n=t.uploadThenUpdate,r=t.deleteFile,i=Object(l["o"])(!1),s=Object(l["o"])(null),b=Object(l["o"])(!1),y=Object(l["o"])({}),w=Object(l["o"])(null),k=Object(l["o"])(""),x=[{name:"title",label:Object(p["a"])("Title"),type:"text"},{name:"link",label:Object(p["a"])("URL"),type:"text"}];Object(l["s"])(w,(function(e){URL.revokeObjectURL(k.value),k.value=e?URL.createObjectURL(e):""}));var C=Object(l["a"])((function(){var e,t;return w.value?k.value:null!==(e=s.value)&&void 0!==e&&e.image&&!b.value?v["a"].getFileUrl(null===(t=s.value)||void 0===t?void 0:t.image.urlPart):""})),O=function(){var e=Object(a["a"])(c.a.mark((function e(){var t,i,o;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(w.value){e.next=7;break}if(!b.value||null===(t=s.value)||void 0===t||!t.image){e.next=5;break}return i={subjectId:s.value.image.fileId.subjectId,type:s.value.image.fileId.type},e.next=5,r({fileId:i});case 5:e.next=9;break;case 7:return e.next=9,n({fileId:{subjectId:(null===(o=s.value)||void 0===o?void 0:o.id)||"0",type:"banner"},file:w.value});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=Object(u["debounce"])(Object(a["a"])(c.a.mark((function t(){var n,r,i,a;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=y.value,r=n.link,i=n.title,a={link:r,title:i,subject:{subjectId:e.user.id,subjectType:d["BannerSubjectTypeEnum"].PROFILE_HEADER}},!s.value){t.next=8;break}return t.next=5,f["a"].BannersProvider.update({data:Object(o["a"])({id:s.value.id},a)});case 5:s.value=t.sent,t.next=11;break;case 8:return t.next=10,f["a"].BannersProvider.create({data:a});case 10:s.value=t.sent;case 11:return t.next=13,O();case 13:h["a"].emit(m["b"].NOTIFICATION_SHOW,{text:Object(p["a"])("Changes saved"),timeout:1500});case 14:case"end":return t.stop()}}),t)}))),500),T=function(){var e=Object(a["a"])(c.a.mark((function e(t){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t&&0!==t.length){e.next=2;break}return e.abrupt("return");case 2:w.value=t[0],S();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=Object(a["a"])(c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:w.value=null,b.value=!0,S();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var t=Object(a["a"])(c.a.mark((function t(){var n,r,o;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,i.value=!0,t.next=4,f["a"].BannersProvider.findAll({data:{subject:{subjectId:e.user.id,subjectType:d["BannerSubjectTypeEnum"].PROFILE_HEADER}}});case 4:n=t.sent,null!==n&&(s.value=n[0],y.value={title:(null===(r=s.value)||void 0===r?void 0:r.title)||"",link:(null===(o=s.value)||void 0===o?void 0:o.link)||""});case 6:return t.prev=6,i.value=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[0,,6,9]])})));return function(){return t.apply(this,arguments)}}(),M=function(e){y.value=e,S()};return _(),{loading:i,fields:x,values:y,imageSrc:C,onAddFile:T,onDeleteFile:E,onFormInput:M,save:S}}}),T=S,E=(n("0d93"),n("2877")),_=Object(E["a"])(T,r,i,!1,null,"483d0daf",null),M=_.exports,I=function(e){return"banner"===e}},9159:function(e,t,n){"use strict";n("3966")},"947a":function(e,t,n){},9558:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-profile-view",{attrs:{loading:e.loading,"is-author":e.isAuthor,"is-following":e.isFollowing,"is-subscribed":e.isSubscribed,scroll:e.scroll,"feed-id":e.feedId,user:e.user,"questionary-info":e.questionaryInfo,banners:e.banners,"content-feed-search-result":e.contentFeedSearchResult,"subscription-levels":e.subscriptionLevels,"payment-packages":e.paymentPackages,"can-create-content-set":e.canCreateContentSet},on:{onFeedClick:e.onFeedClick,onNext:e.onNext,onFeedLike:e.onFeedLike,onFeedDelete:e.onFeedDelete,onFollowUpdate:e.onFollowUpdate}})},i=[],o=(n("99af"),n("4de4"),n("7db0"),n("d81d"),n("d3b7"),n("ac1f"),n("3ca3"),n("841c"),n("ddb0"),n("2909")),a=n("5530"),s=(n("96cf"),n("1da1")),c=n("d4ec"),l=n("bee2"),u=n("262e"),d=n("2caf"),f=n("a34a"),p=n.n(f),h=n("9ab4"),m=n("2fe1"),v=n("60a3"),g=n("9b43"),b=n("e3ec"),y=n("b675"),w=n("51ce"),k=n("64ae"),x=n("4c88"),C=n("31cf"),O=n("ff07"),S=n("fe95"),T=n("c7e2"),E=n("a5de"),_=n("d70b"),M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loading?e._e():n("div",{staticClass:"profile d-flex __column",class:{__transparent:e.backgroundSettings.type}},[e.backgroundSettings.type?n("profile-background",{attrs:{"background-settings":e.backgroundSettings,"user-id":e.userId}}):e._e(),n("base-page",{staticClass:"profile__container",class:{"__my-page":e.isAuthor},style:Object.assign({},e.profileStyles),attrs:{loading:e.loading}},[e.user?n("router-view",{attrs:{user:e.user}}):e._e(),e.feedId?e._e():[n("div",{staticClass:"px-4 mb-8"},[e.user?n("profile-info-view",{attrs:{user:e.user,loading:e.loading,"profile-settings":e.profileSettings,"timer-settings":e.timerSettings,"questionary-info":e.questionaryInfo,banners:e.banners,"is-author":e.isAuthor,"is-following":!!e.isFollowing,"has-subscription-levels":e.subscriptionLevels.length>0},on:{onFollowUpdate:e.$listeners.onFollowUpdate,showQR:function(t){e.showQRCode=!0}}}):e._e(),n("verification-notification",{staticClass:"mt-8",attrs:{user:e.user}})],1)],e.feedId&&!e.isMember?n("page-title",{staticClass:"pa-4",attrs:{"default-back":e.profileUrl}},[e._v(e._s(e.$t("Feed")))]):e._e(),e.isDisabled||!e.contentFeedSearchResult||e.isEmptyProfile||!e.isAuthor&&!e.showPostsForNonFollowers?e._e():n("content-feed-view",{key:e.userId,staticClass:"profile__feed-list",attrs:{contentFeedSearchResult:e.contentFeedSearchResult,feedId:e.feedId,subscriptionLevels:e.subscriptionLevels,paymentPackages:e.paymentPackages,enableScroll:e.scroll,"show-search-model":e.isShowSearchModel},on:{feedClick:e.$listeners.onFeedClick,next:e.$listeners.onNext,like:e.$listeners.onFeedLike,delete:e.$listeners.onFeedDelete,feedOnScreen:e.onFeedOnScreen}}),e.isDisabled||!e.contentFeedSearchResult||e.isEmptyProfile||e.isAuthor||e.showPostsForNonFollowers?e._e():n("empty-content",{staticClass:"pa-4"},[n("div",{staticClass:"profile__text-follow-to-see caption",class:{__pointer:!e.isLoggedIn},on:{click:e.onClickEmptyContent}},[e._v(" "+e._s(e.isLoggedIn?e.$t("Follow to see my posts"):e.$t("Log in and follow to see my posts"))+" ")])]),e.isAuthor&&e.isMember?n("PageDiscover",{staticClass:"profile__discover",attrs:{"on-feed":!!e.feedId,user:e.user}}):e._e(),!e.isAuthor&&e.isSensitiveContent?n("confirm-sensitive-content",{attrs:{"ask-every-time":""},on:{confirm:e.onConfirmSensetive}}):e._e(),e.isDisabled?e._e():[e.restrictCreatePost?e._e():n("create-post-button-controller",{attrs:{userId:e.userId}})]],2),n("qr-code-modal",{attrs:{show:e.showQRCode,user:e.user},on:{close:function(t){e.showQRCode=!1}}})],1)},I=[],j=(n("a9e3"),n("5319"),n("a6f4")),D=n("4afc"),N=n("25d7"),A=n("c3b0"),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("check-authorities",{attrs:{"required-authorities":e.requiredAuthorities}},[n("create-post-button-view",{attrs:{"post-id":e.postId,loading:e.loading},on:{input:function(t){e.postId=""},createPost:e.onCreatePost,deletePost:e.onDeletePost,buttonClick:e.onButtonClick},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("default",null,null,t)]}}],null,!0)})],1)},P=[],B=n("2b0e"),F=n("8bde"),R=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return Object(l["a"])(n,[{key:"render",value:function(e){if(!this.allowRender)return e();var t=this.$scopedSlots.default&&this.$scopedSlots.default({});return t&&1===t.length?t[0]:e(this.tag,{},t)}}]),n}(B["default"]);Object(h["__decorate"])([Object(v["e"])({type:Array,required:!0})],R.prototype,"currentAuthorities",void 0),Object(h["__decorate"])([Object(v["e"])({type:Array,required:!0})],R.prototype,"requiredAuthorities",void 0),Object(h["__decorate"])([Object(v["e"])({type:String,default:"div"})],R.prototype,"tag",void 0),Object(h["__decorate"])([Object(F["a"])((function(e){return e.currentAuthorities}),(function(e){return e.requiredAuthorities}))],R.prototype,"allowRender",void 0),R=Object(h["__decorate"])([Object(m["b"])({name:"CheckAuthorities"})],R);var q=R,H=B["default"].extend({functional:!0,name:"CheckAuthorities",props:{requiredAuthorities:{type:Array,required:!0},tag:{type:String,default:"div"}},render:function(e,t){var n=Object(a["a"])(Object(a["a"])({},t.data),{},{props:Object(a["a"])({currentAuthorities:t.parent.$store.state.authorities||[]},t.props),on:t.listeners});return e(q,n,[t.scopedSlots.default&&t.scopedSlots.default({})])}}),U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("base-confirm",{attrs:{value:e.postId,title:e.$t("You have previously saved draft.")},on:{input:e.$listeners.input}},[n("div",{staticClass:"mt-4"},[e._v(e._s(e.$t("Do you want to use it or delete and start from scratch?")))]),n("base-button",{staticClass:"__draft mt-8",attrs:{fullWidth:""},on:{click:function(t){return e.$emit("createPost",e.postId)}}},[e._v(e._s(e.$t("Use draft")))]),n("base-button",{staticClass:"__scratch mt-4",attrs:{secondary:"",fullWidth:""},on:{click:function(t){e.$emit("deletePost",e.postId),e.$emit("createPost")}}},[e._v(e._s(e.$t("From scratch")))])],1),e._t("default",(function(){return[n("base-button",{staticClass:"create-post__button",attrs:{loading:e.loading,round:"",gradient:""},on:{click:e.onClick}},[n("base-icon",[e._v("sci-plus")])],1)]}),{onClick:e.onClick})],2)},V=[],z=n("9310"),$=n("5608"),W=n("9058"),G=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return Object(l["a"])(n,[{key:"onClick",value:function(){this.$emit("buttonClick")}}]),n}(B["default"]);Object(h["__decorate"])([Object(v["e"])({type:String,required:!0})],G.prototype,"postId",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean,required:!0})],G.prototype,"loading",void 0),G=Object(h["__decorate"])([Object(m["b"])({name:"CreatePostButtonView",components:{BaseConfirm:$["a"],BaseButton:z["a"],BaseIcon:W["a"]}})],G);var K=G,J=K,Y=(n("b7d1"),n("2877")),X=Object(Y["a"])(J,U,V,!1,null,"0e87106a",null),Q=X.exports,Z=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.postId="",e.loading=!1,e}return Object(l["a"])(n,[{key:"onButtonClick",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t,n,r;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,O["a"].ContentSetProvider.search({data:{userId:this.userId,published:!1}});case 4:r=e.sent,this.postId=null!==(t=null===(n=r.result.find((function(e){return!e.published})))||void 0===n?void 0:n.id)&&void 0!==t?t:"",this.postId||this.onCreatePost();case 7:return e.prev=7,this.loading=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[0,,7,10]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onDeletePost",value:function(e){O["a"].ContentSetProvider.delete({id:e})}},{key:"onCreatePost",value:function(e){S["a"].emit(E["b"].SHOW_CREATE_POST,{postId:e,userId:this.userId}),this.postId=""}},{key:"requiredAuthorities",get:function(){var e=this.authUser&&this.authUser.id===this.userId||!1;return e?["createMyContentSet"]:["createAnyContentSet"]}}]),n}(Object(m["c"])(w["a"]));Object(h["__decorate"])([Object(v["e"])({type:String,required:!0})],Z.prototype,"userId",void 0),Z=Object(h["__decorate"])([Object(m["b"])({name:"CreatePostButtonController",components:{CheckAuthorities:H,CreatePostButtonView:Q}})],Z);var ee=Z,te=ee,ne=Object(Y["a"])(te,L,P,!1,null,null,null),re=ne.exports,ie=n("e0da"),oe=n("855c"),ae=n("1031"),se=n("fe49"),ce=n("a8f5"),le=n("8798"),ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-background"},[e.backgroundSettings.type===e.backgroundSettingsType.COLOR?n("div",{staticClass:"profile-background__content",style:Object.assign({},e.backgroundColor)}):e.backgroundSettings.type===e.backgroundSettingsType.PICTURE?n("div",{staticClass:"profile-background__content",style:Object.assign({},e.backgroundImage)}):e.backgroundSettings.type===e.backgroundSettingsType.ANIMATION?n(e.getAnimationItem(e.backgroundSettings.animationType),{tag:"component"}):e._e()],1)},de=[],fe=n("427f"),pe=n("ab82"),he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"default-animation-item"})},me=[],ve={},ge=Object(Y["a"])(ve,he,me,!1,null,null,null),be=ge.exports,ye=Object(pe["b"])(n("a0d6"));function we(e){return Object(pe["a"])(ye,e,be)}var ke,xe,Ce=Object(j["c"])({name:"ProfileBackground",props:{backgroundSettings:{type:Object,required:!0},userId:{type:String,required:!0}},setup:function(e){var t=Object(fe["a"])(),n=t.findFiles,r=Object(j["o"])({}),i=Object(j["a"])((function(){var t,n,r,i,o="FFFFFF",a=null!==(t=null===(n=e.backgroundSettings)||void 0===n?void 0:n.colorStart)&&void 0!==t?t:o,s=null!==(r=null===(i=e.backgroundSettings)||void 0===i?void 0:i.colorEnd)&&void 0!==r?r:o;return{"--profile-background":"linear-gradient(135deg, #".concat(a," 0%, #").concat(s," 100%)")}})),o=function(){var t=Object(s["a"])(p.a.mark((function t(){var i,o;return p.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i={subjectId:e.userId,type:"page_background"},t.next=3,n({fileIds:[i]});case 3:o=t.sent,r.value={"--profile-background":"url('".concat(Object(k["d"])(o[0],o[0].urlPart,"1080p"),"')")};case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(j["s"])(Object(j["p"])(e,"backgroundSettings"),(function(e,t){e.type===A["a"].PICTURE&&e.imageUuid!==(null===t||void 0===t?void 0:t.imageUuid)&&o()}),{immediate:!0}),Object(j["j"])((function(){return S["a"].emit(E["b"].MAIN_MENU_CHANGE_BACKGROUND_COLOR,!0)})),Object(j["k"])((function(){return S["a"].emit(E["b"].MAIN_MENU_CHANGE_BACKGROUND_COLOR,!1)})),{backgroundColor:i,backgroundImage:r,backgroundSettingsType:A["a"],getAnimationItem:we}}}),Oe=Ce,Se=(n("37dc"),Object(Y["a"])(Oe,ue,de,!1,null,null,null)),Te=Se.exports,Ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-info"},[n("profile-header",{staticClass:"mx-n4 mb-4",attrs:{user:e.user,"is-following":e.isFollowing,"is-author":e.isAuthor,"show-follow-button":e.showSmallFollowButton,"show-qr-code-button":e.isCreator},on:{toggleFollow:e.toggleFollow,showQR:function(t){return e.$emit("showQR")}}}),e.showCamsodaLiveButton?n("div",{staticClass:"profile-info__camsoda-button-wrapper d-center"},[n("camsoda-live-button",{attrs:{"camsoda-username":e.profileSettings.camsodaWidget.username}})],1):e._e(),n("div",{staticClass:"d-flex __align-center __column"},[n("div",{staticClass:"profile-info__name"},[e._v(" "+e._s(e.screenName)+" "),!e.user.disabled&&e.verified?n("base-icon",{staticClass:"profile-info__verified-icon"},[e._v(" sci-color-verified ")]):e._e()],1),!e.user.disabled&&e.showOnlineStatus?n("div",{staticClass:"profile-info__online mt-1"},[e._v(" "+e._s(e.lastOnline)+" ")]):e._e(),e.showProfileInfoStats?n("div",{staticClass:"profile-info__stats d-flex mt-4"},[n("profile-statistic",{attrs:{"user-id":e.user.id}}),e.isAuthor&&e.isCreator?e._e():n("share",{staticClass:"profile-info__share"})],1):e._e(),e.isAuthor&&e.isCreator?n("div",{staticClass:"profile-info__share-url d-center mb-4 mt-7",on:{click:e.copyProfileLink}},[n("div",{staticClass:"profile-info__share-url-text mr-1"},[e._v(" "+e._s(e.myUrl.replace(/(^\w+:|^)\/\//,""))+" ")]),n("base-icon",[e._v("sci-filter-flash")])],1):e._e(),n("div",{staticClass:"d-flex __wrap __justify-center"},[!e.user.disabled&&e.canEditInfo?n("base-button",{staticClass:"profile-info__button __edit __following mx-1 mt-4",attrs:{outline:"",small:"",to:{name:"profilePageEdit"}}},[e._v(e._s(e.$t("Edit profile"))+" ")]):e._e()],1),e.user.disabled?e._e():n("questionary-info-printer",{attrs:{user:e.user,"questionary-info":e.questionaryInfo,banners:e.profileButtonBanners},scopedSlots:e._u([{key:"timer-event",fn:function(){return[e.showTimer?n("profile-timer-event",{attrs:{"timer-settings":e.timerSettings,user:e.user},on:{hideTimer:function(t){e.showTimer=!1}}}):e._e()]},proxy:!0},{key:"banner",fn:function(){return[e.profileHeaderBanner&&e.profileHeaderBanner.image?n("profile-header-banner",{staticClass:"mt-8 mb-4",attrs:{item:e.profileHeaderBanner}}):e._e()]},proxy:!0},{key:"prepend",fn:function(){return["aboveFollow"===e.profileSettings.profileVideoLocation?n("embed-video-player",{staticClass:"profile-info__video mb-4",attrs:{videoUrl:e.profileSettings.profileVideoUrl}}):e._e(),e.showFollowButton?n("base-button",{staticClass:"profile-info__follow mx-1 mb-4",class:{__animate:e.profileSettings.animateFollowButton,"__3d-button":e.profileSettings.gradientLinkButtons},attrs:{"full-width":"",gradient:""},on:{click:e.toggleFollow}},[n("span",{staticClass:"profile-info__button-caption"},[e._v(e._s(e.followButtonText))])]):e._e(),e.showMessageButton?n("base-button",{staticClass:"profile-info__button __send-message mx-1 mb-4",class:{"__3d-button":e.profileSettings.gradientLinkButtons},attrs:{outline:"","full-width":""},on:{click:e.sendMessage}},[n("span",{staticClass:"profile-info__button-caption"},[e._v(e._s(e.$t("Message")))])]):e._e(),e.showSubscribeButton?n("base-button",{staticClass:"profile-info__button __subscribe mx-1 mb-4",class:{"__3d-button":e.profileSettings.gradientLinkButtons},attrs:{outline:"","full-width":"",loading:e.processingFollow},on:{click:e.onFollowingClick}},[n("span",{staticClass:"profile-info__button-caption"},[e._v(e._s(e.$t("Subscribe")))])]):e._e(),"aboveAllButtons"===e.profileSettings.profileVideoLocation?n("embed-video-player",{staticClass:"profile-info__video mb-4",attrs:{videoUrl:e.profileSettings.profileVideoUrl}}):e._e()]},proxy:!0},{key:"append",fn:function(){return["belowAllButtons"===e.profileSettings.profileVideoLocation?n("embed-video-player",{staticClass:"profile-info__video mt-2",attrs:{videoUrl:e.profileSettings.profileVideoUrl}}):e._e()]},proxy:!0}],null,!1,3738300302)}),e.isAuthorAndIsMember?n("base-button",{staticClass:"profile-info__model-directory mt-4 pa-0",attrs:{"full-width":"",transparent:"",to:{name:"index"}}},[n("img",{attrs:{src:"/img/search-models.png",alt:"Model directory"}})]):e._e(),e.showHubzterLiveButton?n("live-models-button",{staticClass:"profile-info__live-models mt-4"}):e._e()],1),n("base-confirm",{staticClass:"content-feed__item__delete",attrs:{title:e.$t("Unfollow {0}?",[e.user.screenName])},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.close;return[n("base-button",{staticClass:"profile-info__unfollow-button mt-8",attrs:{fullWidth:""},on:{click:e.onUnfollowClick}},[e._v(" "+e._s(e.$t("Unfollow"))+" ")]),n("base-button",{staticClass:"mt-4",attrs:{fullWidth:"",secondary:""},on:{click:r}},[e._v(e._s(e.$t("Cancel")))])]}}]),model:{value:e.showUnfollowConfirm,callback:function(t){e.showUnfollowConfirm=t},expression:"showUnfollowConfirm"}}),e.showFollow?n("user-follow-subscribe-modal",{attrs:{user:e.user,show:e.showFollow,"is-following":e.isFollowing},on:{close:function(t){e.showFollow=!1},updateFollowingStatus:function(t){return e.$emit("onFollowUpdate",t)},toggleFollow:e.toggleFollow}}):e._e()],1)},_e=[],Me=(n("25f0"),n("2b3d"),n("d822")),Ie=n("76da"),je=n("78f9"),De=n("7677"),Ne=n("5beb"),Ae=n("e063"),Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("user-subscribe-modal",{attrs:{show:e.showModal,user:e.user,"filter-subscription-levels":!0},on:{close:e.onClose,levelsLoaded:e.onLevelsLoaded},scopedSlots:e._u([{key:"prepend",fn:function(){return[n("div",{staticClass:"my-4 caption"},[e._v(" "+e._s(e.$t("By clicking the Follow button you will only get access to the creator's free content, to access additional content you can subscribe."))+" ")])]},proxy:!0}])})},Pe=[],Be=n("b163"),Fe=Object(j["c"])({name:"UserFollowSubscribeModal",components:{UserSubscribeModal:Be["a"]},props:{show:{type:Boolean,required:!0},isFollowing:{type:Boolean,required:!0},user:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,r=Object(j["o"])(!1),i=Object(j["a"])((function(){return e.show&&r.value})),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.isFollowing;n("close"),n("updateFollowingStatus",t)},a=function(t){r.value=t.length>0,!e.show||r.value||e.isFollowing||n("toggleFollow")};return{onLevelsLoaded:a,showModal:i,onClose:o}}}),Re=Fe,qe=Object(Y["a"])(Re,Le,Pe,!1,null,null,null),He=qe.exports,Ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.modelIsOnline?n("base-button",{staticClass:"camsoda-live-button",attrs:{href:e.href,target:"_blank"}},[e._v(e._s(e.$t("I'M LIVE ON"))+" "),n("base-icon",{staticClass:"camsoda-live-button__logo-icon"},[e._v("sci-color-camsoda-orig")]),n("base-icon",{staticClass:"camsoda-live-button__arrow-icon"},[e._v("sci-back")])],1):e._e()},Ve=[],ze=Object(j["c"])({name:"CamsodaLiveButton",components:{BaseButton:z["a"],BaseIcon:W["a"]},props:{camsodaUsername:{type:String,required:!0}},setup:function(e){var t=Object(j["a"])((function(){return"https://www.camsoda.com/enter.php?id=mixedmag&type=PPS&model=".concat(e.camsodaUsername,"&cmp=").concat(e.camsodaUsername)})),n=Object(j["o"])(!1);return Object(j["j"])(Object(s["a"])(p.a.mark((function t(){return p.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,O["a"].CamsodaProvider.userOnlineOnCamsoda({username:e.camsodaUsername});case 2:n.value=t.sent;case 3:case"end":return t.stop()}}),t)})))),{href:t,modelIsOnline:n}}}),$e=ze,We=(n("757d"),Object(Y["a"])($e,Ue,Ve,!1,null,"608f2dad",null)),Ge=We.exports,Ke=n("e6fb"),Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"questionary-info mt-4"},[e._l(e.availableInfos,(function(t){return n(t.tag,e._b({key:t.id,tag:"div",staticClass:"questionary-info__item",class:t.class},"div",t.attrs,!1),[t.icon?n("base-icon",[e._v(e._s(t.icon))]):e._e(),e._v(" "+e._s(t.text)+" ")],1)})),n("div",{staticClass:"questionary-info__timer"},[e._t("timer-event")],2),e._t("banner"),e.availableSocials.length>0&&"above"===e.socialLinksLocation?n("social-links-list",{staticClass:"questionary-info__social-list __above",attrs:{availableSocials:e.availableSocials}}):e._e(),n("div",{staticClass:"questionary-info__profile-buttons d-flex __align-center __column mt-4"},[e._t("prepend"),e.availableLinkButtons.length>0&&e.isCreator?[e.profileSettings.expandLinkButtons?e._e():n("span",{staticClass:"questionary-info__link-buttons-expand caption d-flex __align-center __justify-center mb-4",on:{click:e.toggleShowLinks}},[n("span",{staticClass:"mr-2"},[e._v(e._s(e.showLinks?e.$t("Hide links"):e.$t("Show links")))]),n("base-icon",{class:{"questionary-info__link-buttons-expand-icon":!0,__expanded:e.showLinks}},[e._v("sci-back")])],1),e.isCreator?n("height-transition",[e.showLinks?n("div",{staticClass:"questionary-info__link-buttons d-flex __column"},[e._l(e.availableLinkButtons,(function(t,r){return["accordion"===t.linkType?n("accordion-button",{key:r,staticClass:"mb-2",attrs:{id:r,files:e.imagesFileData,buttonContent:t,gradient:e.profileSettings.gradientLinkButtons,user:e.user}}):"playlist"===t.linkType?n("playlist-button",{key:r,staticClass:"mb-2",attrs:{files:e.imagesFileData,buttonContent:t,gradient:e.profileSettings.gradientLinkButtons,"image-src":e.getImageSrc(t.imageId)}}):"banner"===t.linkType?n("banner-item",{key:r,staticClass:"questionary-info__link-banner mb-2",attrs:{"with-proportion":"",banner:e.bannersRecord[t.bannerId],linkStatUserId:e.user.id}}):n("profile-link-button",{key:r,staticClass:"mb-2",attrs:{buttonContent:t,gradient:e.profileSettings.gradientLinkButtons,"image-src":e.getImageSrc(t.imageId)},on:{click:function(){return e.onClickLinkButton(t)},mouseup:function(n){return"button"in n&&1!==n.button?null:function(){return e.onClickLinkButton(t)}.apply(null,arguments)},contextmenu:function(e){return e.preventDefault()}}})]}))],2):e._e()]):e._e()]:e._e(),e._t("append")],2),e.availableSocials.length>0&&"bellow"===e.socialLinksLocation?n("social-links-list",{staticClass:"questionary-info__social-list __bellow",attrs:{availableSocials:e.availableSocials}}):e._e()],2)},Ye=[],Xe=(n("a4d3"),n("e01a"),n("a15b"),n("13d5"),n("b0c0"),n("dfc7")),Qe=n("04fb"),Ze=n("a0fa"),et=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._g({staticClass:"profile-link-button",attrs:{target:"blank",href:e.linkButton.url}},e.$listeners),[n("base-button",{staticClass:"profile-link-button__btn",class:e.animationClass,style:e.style,attrs:{"full-width":""}},[e.linkButton.icon||e.linkButton.imageId?n("span",{staticClass:"d-flex __column __align-center"},[e.linkButton.icon?n("base-icon",{staticClass:"profile-link-button__icon",attrs:{"font-size":e.fontSize}},[e._v(e._s(e.linkButton.icon))]):e.imageSrc?n("base-image",{staticClass:"profile-link-button__img",attrs:{src:e.imageSrc,contain:""}}):e._e(),e.linkButton.title?n("span",{staticClass:"profile-link-button__title __tiny"},[e._v(e._s(e.linkButton.title))]):e._e()],1):n("span",{staticClass:"profile-link-button__title"},[e._v(e._s(e.linkButton.title))])])],1)},tt=[],nt=(n("466d"),n("70b0")),rt=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},it=function(e,t,n){var r,i=e/255,o=t/255,a=n/255,s=Math.max(i,o,a),c=Math.min(i,o,a),l=(s+c)/2,u=(s+c)/2;if(s===c)l=r=0;else{var d=s-c;switch(r=u>.5?d/(2-s-c):d/(s+c),s){case i:l=(o-a)/d+(o<a?6:0);break;case o:l=(a-i)/d+2;break;case a:l=(i-o)/d+4;break}l/=6}return{h:l,s:r,l:u}},ot=function(e,t,n){return"hsl(".concat(Math.round(360*Math.min(1,Math.max(0,e))),", ").concat(100*Math.min(1,Math.max(0,t)),"%, ").concat(100*Math.min(1,Math.max(0,n)),"%)")},at=function(e){var t,n,r=e.backgroundColor,i=e.textColor,o=e.gradient,s="#".concat(r.replace("#","")),c={"--link-button-background-color":s};i&&(c["--link-button-text-color"]="#".concat(i.replace("#","")));var l=rt(r);if(l){var u=it(l.r,l.g,l.b),d=u.h,f=u.s,p=u.l;return p<=.1?(t="linear-gradient(".concat(ot(d,f,p+.27),", ").concat(ot(d,f,p),")"),n=o?"linear-gradient(".concat(ot(d,f,p+.37),", ").concat(ot(d,f,p+.27),")"):ot(d,f,p+.37)):p>=.9?(t="linear-gradient(".concat(ot(d,f,p),", ").concat(ot(d,f,p-.27),")"),n=o?"linear-gradient(".concat(ot(d,f,p-.27),", ").concat(ot(d,f,p-.37),")"):ot(d,f,p-.27)):(t="linear-gradient(".concat(ot(d,f,p),", ").concat(ot(d,f,p-.07),")"),n=o?"linear-gradient(".concat(ot(d,f,p-.07),", ").concat(ot(d,f,p-.17),")"):ot(d,f,p-.07)),Object(a["a"])(Object(a["a"])({},c),{},{"--link-button-background-color":o?t:s,"--link-button-hover-background-color":n,"--link-button-border":p<.9?"none":"1px solid var(--palette-gray)","--link-button-box-shadow":o?"0 0 5px 0 rgb(0 0 0 / 75%)":"none"})}return c},st=Object(j["c"])({name:"ProfileLinkButton",props:{buttonContent:{type:Object,required:!0},gradient:{type:Boolean,required:!0},imageSrc:{type:String,default:""}},components:{BaseButton:z["a"]},setup:function(e){var t=Object(j["a"])((function(){if("custom"===e.buttonContent.linkType)return Object(a["a"])(Object(a["a"])({},e.buttonContent),{},{url:Object(k["b"])(e.buttonContent.url)});var t,n,r=Object(a["a"])({linkType:e.buttonContent.linkType,buttonAnimation:e.buttonContent.buttonAnimation},nt["a"][e.buttonContent.linkType](null!==(t=null!==(n=e.buttonContent.username)&&void 0!==n?n:e.buttonContent.url)&&void 0!==t?t:""));return Object(a["a"])(Object(a["a"])({},r),{},{url:r.url.match(/((http(s)?:\/\/)|((tel)|(mailto):)).*/gim)?r.url:"https://".concat(r.url)})})),n=Object(j["a"])((function(){return at({backgroundColor:t.value.backgroundColor,textColor:t.value.textColor,gradient:e.gradient})})),r=Object(j["a"])((function(){return t.value.buttonAnimation?"animation-".concat(t.value.buttonAnimation):""})),i=Object(j["a"])((function(){return t.value.smallIcon?"":"40"}));return{style:n,linkButton:t,animationClass:r,fontSize:i}}}),ct=st,lt=(n("1ffc"),Object(Y["a"])(ct,et,tt,!1,null,"38dc8e1c",null)),ut=lt.exports,dt={name:"HeightTransition",functional:!0,render:function(e,t){var n={props:{name:"height-transition"},on:{afterEnter:function(e){e.style.height="auto"},enter:function(e){var t=getComputedStyle(e),n=t.width;e.style.width=n,e.style.position="absolute",e.style.visibility="hidden",e.style.height="auto";var r=getComputedStyle(e),i=r.height;e.style.width="",e.style.position="",e.style.visibility="",e.style.height="0",getComputedStyle(e).height,requestAnimationFrame((function(){e.style.height=i}))},leave:function(e){var t=getComputedStyle(e),n=t.height;e.style.height=n,getComputedStyle(e).height,requestAnimationFrame((function(){e.style.height="0"}))}}};return e("transition",n,t.children)}},ft=dt,pt=(n("9159"),n("e154"),Object(Y["a"])(ft,ke,xe,!1,null,"33bd7822",null)),ht=pt.exports,mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._g({staticClass:"accordion-button"},e.$listeners),[n("height-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDescription,expression:"showDescription"}],staticClass:"accordion-button__description-wrapper"},[n("div",{staticClass:"accordion-button__description"},[e.buttonContent.description?n("wysiwyg-viewer",{staticClass:"accordion-button__description-text",attrs:{value:e.buttonContent.description}}):e._e(),e.imageSrc?[e.buttonContent.imageHref?n("a",{staticClass:"accordion-button__image-link",attrs:{href:e.buttonContent.imageHref,target:"_blank"}},[n("img",{staticClass:"accordion-button__image",attrs:{src:e.imageSrc,alt:""}})]):n("full-screen",{staticClass:"accordion-button__fullscreen",attrs:{scalable:!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.isFullScreen,i=t.openFullScreen;return[n("img",{class:r?"accordion-button__image-fullscreen":"accordion-button__image",attrs:{src:e.imageSrc,alt:""},on:{click:function(e){return e.stopPropagation(),i.apply(null,arguments)}}})]}}],null,!1,2996217057)})]:e._e(),e.buttonContent.videoUrl?n("embed-video-player",{staticClass:"mt-6",attrs:{"video-url":e.buttonContent.videoUrl,id:e.id,autoplay:!0,"force-play":e.showDescription}}):e._e()],2)])]),n("base-button",{staticClass:"accordion-button__btn",class:e.animationClass,style:e.style,attrs:{"full-width":""},on:{click:function(t){e.showDescription=!e.showDescription}}},[e.buttonContent.icon||e.imageIconSrc?n("span",{staticClass:"d-flex __column __align-center"},[e.buttonContent.icon?n("base-icon",{staticClass:"accordion-button__icon",attrs:{"font-size":"40"}},[e._v(e._s(e.buttonContent.icon))]):e.imageIconSrc?n("base-image",{staticClass:"accordion-button__img-icon",attrs:{src:e.imageIconSrc,contain:""}}):e._e(),n("span",{staticClass:"accordion-button__title __tiny"},[e._v(e._s(e.buttonContent.title))])],1):n("span",{staticClass:"accordion-button__title"},[e._v(e._s(e.buttonContent.title))]),n("base-icon",{staticClass:"accordion-button__arrow",class:{__opened:e.showDescription},attrs:{"font-size":"24"}},[e._v("sci-chevron-right")])],1)],1)},vt=[],gt=n("c18d"),bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("viewer",{staticClass:"wysiwyg-viewer",attrs:{initialValue:e.value,initialEditType:"markdown"}})},yt=[],wt=n("e459"),kt=Object(j["c"])({name:"WysiwygViewer",components:{Viewer:wt["b"]},props:{value:{type:String}}}),xt=kt,Ct=(n("893b"),n("0b61"),Object(Y["a"])(xt,bt,yt,!1,null,"b809be02",null)),Ot=Ct.exports,St=n("0fb2"),Tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isYoutube||e.isVimeo?n("div",{staticClass:"embed-video-player"},[e.isPlayVideo?n("iframe",{ref:"iframe",staticClass:"embed-video-player__player",attrs:{id:e.playerId,src:e.videoSrc,frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}):n("div",{staticClass:"embed-video-player__thumbnail",on:{click:e.onClickPlay}},[n("img",{staticClass:"embed-video-player__img",attrs:{src:e.imageThumbnailUrl,alt:"video thumbnail"}}),n("base-button",{staticClass:"embed-video-player__play-button",attrs:{round:""}},[n("base-icon",{attrs:{"font-size":64}},[e._v("sci-play")])],1)],1)]):e._e()},Et=[],_t=n("f596"),Mt=n.n(_t),It=Object(j["c"])({name:"EmbedVideoPlayer",props:{videoUrl:{type:String,required:!0},autoplay:{type:Boolean,default:!1},forcePlay:{type:Boolean,default:!1},id:{type:Number,default:-1}},setup:function(e){var t=Object(j["a"])((function(){return Mt.a.parse(e.videoUrl)})),n=Object(j["a"])((function(){var e;return t.value&&null!==(e=Mt.a.create({videoInfo:t.value,format:"embed",params:{enablejsapi:1}}))&&void 0!==e?e:""})),r=Object(j["o"])(e.autoplay),i=Object(j["o"])(null),o=Object(j["a"])((function(){return"player_"+e.id})),a=Object(j["a"])((function(){var e;return"vimeo"===(null===(e=t.value)||void 0===e?void 0:e.provider)})),c=Object(j["a"])((function(){var e;return"youtube"===(null===(e=t.value)||void 0===e?void 0:e.provider)})),l=Object(j["a"])((function(){var e,n;return a.value?"https://vumbnail.com/".concat(null===(e=t.value)||void 0===e?void 0:e.id,".jpg"):c.value?"https://i.ytimg.com/vi/".concat(null===(n=t.value)||void 0===n?void 0:n.id,"/0.jpg"):void 0})),u=Object(j["o"])(null),d=function(){var e=Object(s["a"])(p.a.mark((function e(){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var t=function t(){setTimeout((function(){a.value&&window.Vimeo&&e(),c.value&&window.YT&&window.YT.Player?e():t()}),50)};t()})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=Object(s["a"])(p.a.mark((function e(){var t,n;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return(c.value&&!window.YT||a.value&&!window.Vimeo)&&(t=document.createElement("script"),t.src=c.value?"https://www.youtube.com/iframe_api":a.value?"https://player.vimeo.com/api/player.js":"",n=document.getElementsByTagName("script")[0],n.parentNode&&n.parentNode.insertBefore(t,n)),e.next=3,d();case 3:c.value&&(u.value=new window.YT.Player(o.value,{})),a.value&&(u.value=new window.Vimeo.Player(i.value));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){if(c.value)try{u.value.playVideo()}catch(e){u.value.mute(),u.value.playVideo()}a.value&&u.value.play().catch((function(){u.value.setVolume(0),u.value.play()}))},m=function(){c.value&&u.value.pauseVideo(),a.value&&u.value.pause()};Object(j["s"])(Object(j["p"])(e,"forcePlay"),(function(e){u.value&&(e?h():m())}));var v=function(){r.value=!0};return Object(j["j"])((function(){e.autoplay&&f()})),{videoSrc:n,iframe:i,playerId:o,parsedUrl:t,isPlayVideo:r,imageThumbnailUrl:l,isYoutube:c,isVimeo:a,onClickPlay:v}}}),jt=It,Dt=(n("fca2"),Object(Y["a"])(jt,Tt,Et,!1,null,null,null)),Nt=Dt.exports,At=Object(j["c"])({name:"AccordionButton",components:{WysiwygViewer:Ot,FullScreen:gt["a"],BaseIcon:W["a"],BaseButton:z["a"],HeightTransition:ht,EmbedVideoPlayer:Nt,BaseImage:St["a"]},props:{user:{type:Object,required:!0},buttonContent:{type:Object,required:!0},gradient:{type:Boolean,required:!0},files:{type:Array,default:function(){return[]}},id:{type:Number,required:!0}},setup:function(e){var t=Object(j["a"])((function(){var t=e.files.find((function(t){return"profile_link_image"===t.fileId.type&&t.fileId.fileNumber===e.buttonContent.imageId}));return t?Object(k["d"])(t,t.urlPart,600,"auto",{exactSize:!0}):""})),n=Object(j["a"])((function(){var t=e.files.find((function(t){return"profile_link_image"===t.fileId.type&&t.fileId.fileNumber===e.buttonContent.iconImageId}));return t?Xe["a"].getFileUrl(t.urlPart):""})),r=Object(j["o"])(!1),i=Object(j["a"])((function(){return at({backgroundColor:e.buttonContent.backgroundColor,textColor:e.buttonContent.textColor,gradient:e.gradient})})),o=Object(j["a"])((function(){return e.buttonContent.buttonAnimation?"animation-".concat(e.buttonContent.buttonAnimation):""}));return{showDescription:r,imageSrc:t,style:i,animationClass:o,imageIconSrc:n}}}),Lt=At,Pt=(n("5fc2"),Object(Y["a"])(Lt,mt,vt,!1,null,"74a90048",null)),Bt=Pt.exports,Ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._g({staticClass:"playlist-button"},e.$listeners),[n("height-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDescription,expression:"showDescription"}],staticClass:"playlist-button__description-wrapper"},[n("div",{staticClass:"playlist-button__description"},e._l(e.playlists,(function(e){return n("playlist-link-item",{key:e.id,staticClass:"playlist-button__link-item",attrs:{"icon-name":e.iconName,href:e.href}})})),1)])]),n("base-button",{staticClass:"playlist-button__btn",class:e.animationClass,style:e.style,attrs:{"full-width":""},on:{click:function(t){e.showDescription=!e.showDescription}}},[e.buttonContent.icon||e.buttonContent.imageId?n("span",{staticClass:"d-flex __column __align-center"},[e.buttonContent.icon?n("base-icon",{staticClass:"playlist-button__icon",attrs:{"font-size":40}},[e._v(e._s(e.buttonContent.icon))]):e.imageSrc?n("base-image",{staticClass:"playlist-button__img",attrs:{src:e.imageSrc,contain:""}}):e._e(),e.buttonContent.title?n("span",{staticClass:"playlist-button__title __tiny"},[e._v(e._s(e.buttonContent.title))]):e._e()],1):n("span",{staticClass:"playlist-button__title"},[e._v(e._s(e.buttonContent.title))]),n("base-icon",{staticClass:"playlist-button__arrow",class:{__opened:e.showDescription},attrs:{"font-size":"24"}},[e._v(" sci-chevron-right ")])],1)],1)},Rt=[],qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._g({staticClass:"playlist-link pa-7",attrs:{href:e.href,target:"_blank"}},e.$listeners),[n("div",{staticClass:"playlist-link__logo"},[n("base-icon",{staticClass:"playlist-link__logo-icon"},[e._v(e._s(e.iconName))])],1),n("base-icon",{staticClass:"playlist-link__icon",attrs:{"font-size":"24"}},[e._v("sci-link-in-new")])],1)},Ht=[],Ut=Object(j["c"])({name:"PlaylistButton",components:{BaseIcon:W["a"]},props:{href:{type:String,required:!0},iconName:{type:String,required:!0}}}),Vt=Ut,zt=(n("46ae"),Object(Y["a"])(Vt,qt,Ht,!1,null,"5b8bed23",null)),$t=zt.exports,Wt=n("321e"),Gt=Object(j["c"])({name:"PlaylistButton",components:{WysiwygViewer:Ot,FullScreen:gt["a"],BaseIcon:W["a"],BaseButton:z["a"],HeightTransition:ht,PlaylistLinkItem:$t},props:{buttonContent:{type:Object,required:!0},gradient:{type:Boolean,required:!0},imageSrc:{type:String,default:""}},setup:function(e){var t=Object(j["a"])((function(){return Wt["a"].reduce((function(t,n){var r,i,o;return e.buttonContent.services[n.name]&&t.push({id:n.name,href:null!==(r=e.buttonContent.services[n.name])&&void 0!==r?r:"",iconName:null!==(i=null===(o=n.appendIcon)||void 0===o?void 0:o.concat("-full"))&&void 0!==i?i:""}),t}),[])})),n=Object(j["o"])(!1),r=Object(j["a"])((function(){return at({backgroundColor:e.buttonContent.backgroundColor,textColor:e.buttonContent.textColor,gradient:e.gradient})})),i=Object(j["a"])((function(){return e.buttonContent.buttonAnimation?"animation-".concat(e.buttonContent.buttonAnimation):""}));return{playlists:t,showDescription:n,style:r,animationClass:i}}}),Kt=Gt,Jt=(n("1bec"),Object(Y["a"])(Kt,Ft,Rt,!1,null,"5f003b1e",null)),Yt=Jt.exports,Xt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"social-links-list mt-6 mx-n2 mb-n2"},e._l(e.availableSocials,(function(t){return n("a",{key:t.id,staticClass:"social-links-list__social link mx-2 mb-2",attrs:{href:t.href,target:"_blank"}},[n("base-icon",{staticClass:"social-links-list__social-icon",attrs:{"font-size":"40px",color:"var(--profile-link-color)"}},[e._v(e._s(t.iconName))])],1)})),0)},Qt=[],Zt=Object(j["c"])({name:"SocialLinksList",props:{availableSocials:{type:Array}}}),en=Zt,tn=(n("1a02"),Object(Y["a"])(en,Xt,Qt,!1,null,null,null)),nn=tn.exports,rn=Object(j["c"])({name:"QuestionaryInfoPrinter",components:{AccordionButton:Bt,PlaylistButton:Yt,HeightTransition:ht,BaseIcon:W["a"],ProfileLinkButton:ut,SocialLinksList:nn,BannerItem:Ze["a"]},props:{questionaryInfo:{type:Object,required:!0},banners:{type:Array,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=Object(fe["a"])(),n=t.findFiles,r=Object(A["b"])(Object(j["p"])(e,"user")),i=r.profileSettings,c=r.loading,l=Object(j["o"])([]),u=Object(j["o"])(!1);Object(j["s"])(c,(function(){c.value||(u.value=!!i.value.expandLinkButtons)}),{immediate:!0});var d=Object(j["a"])((function(){var t;return _["a"].featureRestrictMember&&Object(g["checkRole"])(null!==(t=e.user.role)&&void 0!==t?t:"","member")})),f=Object(j["a"])((function(){var t;return Object(g["checkRole"])(null!==(t=e.user.role)&&void 0!==t?t:"","creator")})),h=Object(j["a"])((function(){return e.banners.reduce((function(e,t){return e[t.id]=t,e}),{})})),m=function(e){return"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent(e))},v=Object(j["a"])((function(){return Object(Qe["a"])().filter((function(t){var n,r;return(!d.value||(null===(n=t.fieldMeta)||void 0===n?void 0:n.allowedForMember))&&e.questionaryInfo[t.name]&&!(null!==(r=t.fieldMeta)&&void 0!==r&&r.social)})).map((function(t){var n,r,i,s,c,l,u,d=[].concat(Object(o["a"])(null!==(n=t.fieldMeta)&&void 0!==n&&n.description?["caption"]:[]),Object(o["a"])(null!==(r=t.fieldMeta)&&void 0!==r&&r.caption?["questionary-info__location mt-2"]:[]),Object(o["a"])(null!==(i=t.fieldMeta)&&void 0!==i&&i.location&&f.value?["link"]:[])),p=e.questionaryInfo[t.name];return Object(a["a"])({id:t.name,text:p,class:d.join(" "),tag:null!==(s=t.fieldMeta)&&void 0!==s&&s.location&&f.value?"a":"div",attrs:Object(a["a"])({},null!==(c=t.fieldMeta)&&void 0!==c&&c.location&&f.value?{href:m(e.questionaryInfo[t.name]),target:"_blank"}:{})},null!==(l=t.fieldMeta)&&void 0!==l&&l.icon?{icon:null===(u=t.fieldMeta)||void 0===u?void 0:u.icon}:{})}))})),b=Object(j["a"])((function(){return i.value.socialButtonsLocation})),y=Object(j["a"])((function(){var t=[];if(e.questionaryInfo["links"])try{var n=JSON.parse(e.questionaryInfo["links"]).buttons;t=n.map((function(e){return"twitter"!==e.linkType?e:Object(a["a"])(Object(a["a"])({},e),{},{linkType:"x"})}))}catch(r){}return t.filter((function(e){return!("banner"===e.linkType&&!h.value[e.bannerId].image)&&!e.hidden}))})),w=Object(j["a"])((function(){return d.value?[]:Object(Qe["a"])().filter((function(e){var t;return null===(t=e.fieldMeta)||void 0===t?void 0:t.social})).reduce((function(t,n){var r,i,o,a,s,c;return e.questionaryInfo[n.name]&&t.push({id:n.name,href:"".concat(null!==(r=null===(i=n.fieldMeta)||void 0===i?void 0:i.site)&&void 0!==r?r:"").concat(e.questionaryInfo[n.name]),iconName:null!==(o=null!==(a=null===(s=n.appendIcon)||void 0===s?void 0:s.replace("-color","-social"))&&void 0!==a?a:null===(c=n.fieldMeta)||void 0===c?void 0:c.icon)&&void 0!==o?o:""}),t}),[])})),k=function(){u.value=!u.value},x=function(t){var n={link:"".concat(t.linkType,"_").concat("custom"===t.linkType||t.url?t.url:t.username),userId:e.user.id};O["a"].LinksStatsProvider.linksClick({data:n})},C=function(e){if(!e)return"";var t=l.value.find((function(t){return"profile_link_image"===t.fileId.type&&t.fileId.fileNumber===e}));return t?Xe["a"].getFileUrl(t.urlPart):""},S=function(){var t=Object(s["a"])(p.a.mark((function t(){var r;return p.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={subjectId:e.user.id,type:"profile_link_image"},t.next=3,n({fileIds:[r]});case 3:l.value=t.sent;case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return S(),{profileSettings:i,restrictedMember:d,availableInfos:v,availableLinkButtons:y,availableSocials:w,imagesFileData:l,isCreator:f,toggleShowLinks:k,showLinks:u,onClickLinkButton:x,getImageSrc:C,socialLinksLocation:b,bannersRecord:h}}}),on=rn,an=(n("2f53"),Object(Y["a"])(on,Je,Ye,!1,null,"7025ab6e",null)),sn=an.exports,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-header"},[n("profile-header-background",{attrs:{"background-file":e.user.background}}),n("div",{staticClass:"profile-header__top-controllers d-flex __justify-space-between"},[e.showQrCodeButton?n("base-button",{staticClass:"profile-header__qr-code",attrs:{transparent:""},on:{click:function(t){return e.$emit("showQR")}}},[n("base-icon",{attrs:{color:"var(--profile-link-color)"}},[e._v("sci-qr-code")])],1):e._e(),e.showFollowButton?n("small-follow-button",{attrs:{"is-following":e.isFollowing},on:{click:function(t){return e.$emit("toggleFollow")}}}):e._e(),e.isAuthor&&e.isCreator?n("router-link",{staticClass:"profile-header__profile-analytics pr-6",attrs:{to:{name:"profileAnalytics",params:{linkId:"item.linkAnalyticsId"}}}},[n("base-icon",{attrs:{"font-size":"24",color:"var(--profile-link-color)"}},[e._v("sci-bar")])],1):e._e()],1),n("div",{staticClass:"profile-header__wrapper d-flex __wrap"},[e.user.publicLivechatUser?n("router-link",{staticClass:"mx-auto",attrs:{to:e.liveUrl}},[n("profile-header-avatar",{attrs:{user:e.user,animate:""}})],1):n("profile-header-avatar",{attrs:{user:e.user,animate:""}})],1),e._t("default")],2)},ln=[],un=n("673f"),dn=n("c619"),fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"small-follow-button",class:{__following:!e.isFollowing},on:{click:function(t){return e.$emit("click")}}},[n("transition",{attrs:{name:"slide-from-left"}},[e.isFollowing?e._e():n("span",{staticClass:"small-follow-button__text"},[e._v(" "+e._s(e.$t("Follow"))+" ")])]),n("div",{staticClass:"small-follow-button__heart-container d-center"},[n("transition",{attrs:{name:"fade"}},[e.isFollowing?e._e():n("base-icon",{staticClass:"small-follow-button__heart",attrs:{"font-size":24}},[e._v("sci-heart-outline")])],1),n("transition",{attrs:{name:"fade"}},[e.isFollowing?n("base-icon",{staticClass:"small-follow-button__heart",attrs:{"font-size":24}},[e._v("sci-heart")]):e._e()],1)],1)],1)},pn=[],hn=Object(j["c"])({name:"SmallFollowButton",components:{BaseIcon:W["a"]},props:{isFollowing:{type:Boolean,required:!0}}}),mn=hn,vn=(n("6b32"),Object(Y["a"])(mn,fn,pn,!1,null,"215343b7",null)),gn=vn.exports,bn=Object(j["c"])({name:"ProfileHeader",components:{ProfileHeaderAvatar:dn["a"],ProfileHeaderBackground:un["a"],SmallFollowButton:gn,BaseButton:z["a"],BaseIcon:W["a"]},props:{isAuthor:{type:Boolean,required:!0},user:{type:Object,required:!0},isFollowing:{type:Boolean,required:!0},showFollowButton:{type:Boolean,required:!0},showQrCodeButton:{type:Boolean,required:!0}},setup:function(e){var t=Object(j["a"])((function(){return Object(k["c"])(e.user)})),n=Object(D["a"])(),r=n.authUser,i=Object(j["a"])((function(){var e;return Object(g["checkRole"])((null===(e=r.value)||void 0===e?void 0:e.role)||"","creator")}));return{liveUrl:t,isCreator:i}}}),yn=bn,wn=(n("35e8"),Object(Y["a"])(yn,cn,ln,!1,null,"34dec433",null)),kn=wn.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("profile-statistic-view",{attrs:{userId:e.userId,followingStatistic:e.followingStatistic,"posts-statistic":e.postsStatistic}})},Cn=[],On=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-header-stat"},[n("div",{staticClass:"profile-header-stat__item"},[n("div",{staticClass:"profile-header-stat__amount subtitle-1"},[e._v(e._s(e.formattedPostsStats))]),n("div",{staticClass:"body-1"},[e._v(e._s(e.$t("Posts")))])]),n("router-link",{staticClass:"profile-header-stat__item __link",attrs:{to:{name:"followersById",params:{userId:e.userId}}}},[n("div",[n("div",{staticClass:"profile-header-stat__amount subtitle-1"},[e._v(e._s(e.amountFollowers))]),n("div",{staticClass:"body-1"},[e._v(e._s(e.$t("Followers")))])])]),n("router-link",{staticClass:"profile-header-stat__item __link ml-2",attrs:{to:{name:"followingById",params:{userId:e.userId}}}},[n("div",[n("div",{staticClass:"profile-header-stat__amount subtitle-1"},[e._v(e._s(e.amountFollowing))]),n("div",{staticClass:"body-1"},[e._v(e._s(e.$t("Following")))])])])],1)},Sn=[],Tn=n("a32c"),En=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){return Object(c["a"])(this,n),t.apply(this,arguments)}return Object(l["a"])(n,[{key:"amountFollowers",get:function(){var e,t;return Object(Tn["e"])(null!==(e=null===(t=this.followingStatistic)||void 0===t?void 0:t.followerCount)&&void 0!==e?e:0)}},{key:"amountFollowing",get:function(){var e,t;return Object(Tn["e"])(null!==(e=null===(t=this.followingStatistic)||void 0===t?void 0:t.followingCount)&&void 0!==e?e:0)}},{key:"formattedPostsStats",get:function(){return Object(Tn["e"])(this.postsStatistic)}}]),n}(B["default"]);Object(h["__decorate"])([Object(v["e"])({type:String,required:!0})],En.prototype,"userId",void 0),Object(h["__decorate"])([Object(v["e"])({required:!0})],En.prototype,"followingStatistic",void 0),Object(h["__decorate"])([Object(v["e"])({required:!0})],En.prototype,"postsStatistic",void 0),En=Object(h["__decorate"])([Object(m["b"])({name:"ProfileStatisticView"})],En);var _n=En,Mn=_n,In=(n("a34f"),Object(Y["a"])(Mn,On,Sn,!1,null,"3e5e8a7e",null)),jn=In.exports,Dn=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.followingStatistic=null,e.postsStatistic=0,e}return Object(l["a"])(n,[{key:"watchUserId",value:function(){var e=Object(s["a"])(p.a.mark((function e(t){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.getData(t);case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getData",value:function(e){var t=this;O["a"].FollowingsProvider.getStatistic({ids:[e]}).then((function(e){var n;return t.followingStatistic=null!==(n=e[0])&&void 0!==n?n:null})),this.contentFeedStatsGetCount(e).then((function(e){return t.postsStatistic=e}))}}]),n}(Object(m["c"])(y["a"]));Object(h["__decorate"])([Object(v["e"])({type:String,required:!0})],Dn.prototype,"userId",void 0),Object(h["__decorate"])([Object(v["i"])("userId",{immediate:!0})],Dn.prototype,"watchUserId",null),Dn=Object(h["__decorate"])([Object(m["b"])({name:"ProfileStatistic",components:{ProfileStatisticView:jn}})],Dn);var Nn=Dn,An=Nn,Ln=Object(Y["a"])(An,xn,Cn,!1,null,null,null),Pn=Ln.exports,Bn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.item.link?"a":"div",{tag:"component",staticClass:"banner",attrs:{href:e.bannerUrl,target:"_blank"}},[n("img",{staticClass:"banner__image",attrs:{src:e.imageSrc,alt:"banner"}}),e.item.title?n("div",{staticClass:"banner__title mt-4"},[e._v(e._s(e.item.title))]):e._e()])},Fn=[],Rn=(n("9911"),Object(j["c"])({name:"ProfileHeaderBanner",props:{item:{type:Object,required:!0}},computed:{bannerUrl:function(){return Object(k["b"])(this.item.link)},imageSrc:function(){return this.item.image?Xe["a"].getFileUrl(this.item.image.urlPart):""}}})),qn=Rn,Hn=(n("969a"),Object(Y["a"])(qn,Bn,Fn,!1,null,"e5780f90",null)),Un=Hn.exports,Vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-timer-event pa-6",style:[].concat(Array.isArray(e.backgroundStyle)?e.backgroundStyle:[e.backgroundStyle])},[n("div",{staticClass:"profile-timer-event__title",class:{"mb-6":e.timerSettings.eventTitle.length}},[e._v(" "+e._s(e.timerSettings.eventTitle)+" ")]),n("div",{staticClass:"profile-timer-event__timer d-flex",class:{"mb-6":!!e.timerSettings.eventText}},[n("div",{staticClass:"profile-timer-event__time-block d-flex"},[n("div",[n("span",{staticClass:"profile-timer-event__time-left"},[e._v(e._s(e.days))]),n("p",{staticClass:"body-1 normal"},[e._v(e._s(e.$t("days")))])])]),n("div",{staticClass:"profile-timer-event__time-block d-flex"},[n("div",[n("span",{staticClass:"profile-timer-event__time-left"},[e._v(e._s(e.hours))]),n("p",{staticClass:"body-1 normal"},[e._v(e._s(e.$t("hours")))])])]),n("div",{staticClass:"profile-timer-event__time-block d-flex"},[n("div",[n("span",{staticClass:"profile-timer-event__time-left"},[e._v(e._s(e.minutes))]),n("p",{staticClass:"body-1 normal"},[e._v(e._s(e.$t("minutes")))])])]),n("div",{staticClass:"profile-timer-event__time-block d-flex"},[n("div",[n("span",{staticClass:"profile-timer-event__time-left"},[e._v(e._s(e.seconds))]),n("p",{staticClass:"body-1 normal"},[e._v(e._s(e.$t("seconds")))])])])]),e.timerSettings.eventText?n("base-button",{staticClass:"profile-timer-event__btn",style:e.buttonStyle,attrs:{target:"_blank",href:e.timerSettings.eventUrl}},[e._v(" "+e._s(e.timerSettings.eventText)+" ")]):e._e()],1)},zn=[],$n=(n("4d90"),n("25b6")),Wn=n("3683"),Gn=function(e){var t,n,r=e.backgroundColor,i=e.textColor,o=e.gradient,s="#".concat(r.replace("#","")),c={"--link-background-color":s};i&&(c["--link-text-color"]="#".concat(i.replace("#","")));var l=rt(r);if(l){var u=it(l.r,l.g,l.b),d=u.h,f=u.s,p=u.l;return p<=.1?(t="linear-gradient(".concat(ot(d,f,p+.27),", ").concat(ot(d,f,p),")"),n=o?"linear-gradient(".concat(ot(d,f,p+.37),", ").concat(ot(d,f,p+.27),")"):ot(d,f,p+.37)):p>=.9?(t="linear-gradient(".concat(ot(d,f,p),", ").concat(ot(d,f,p-.27),")"),n=o?"linear-gradient(".concat(ot(d,f,p-.27),", ").concat(ot(d,f,p-.37),")"):ot(d,f,p-.27)):(t="linear-gradient(".concat(ot(d,f,p),", ").concat(ot(d,f,p-.07),")"),n=o?"linear-gradient(".concat(ot(d,f,p-.07),", ").concat(ot(d,f,p-.17),")"):ot(d,f,p-.07)),Object(a["a"])(Object(a["a"])({},c),{},{"--link-background-color":o?t:s,"--link-hover-background-color":n,"--link-border":p<.9?"none":"1px solid var(--palette-gray)","--link-box-shadow":o?"0 0 5px 0 rgb(0 0 0 / 75%)":"none"})}return c},Kn=Object(j["c"])({name:"ProfileTimerEvent",components:{BaseButton:z["a"]},props:{timerSettings:{type:Object,required:!0},user:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,r=e.timerSettings.date,i=Object(j["o"])(""),o=Object(j["o"])(""),a=Object(j["o"])(""),c=Object(j["o"])(""),l=Object(j["o"])(0),u=Object(j["a"])((function(){return at({backgroundColor:e.timerSettings.buttonBackgroundColor,textColor:e.timerSettings.buttonTextColor,gradient:!1})})),d=Gn({backgroundColor:e.timerSettings.generalBackgroundColor,textColor:e.timerSettings.generalTextColor,gradient:!1}),f=function(e){return e?String(e).padStart(2,"0"):"00"},h=function e(){var t=new Date,u=new Date(r);if(Object(De["a"])(t,u)){var d=Object($n["a"])({start:t,end:u}),h=d.hours,m=d.minutes,v=d.seconds,g=Object(Wn["a"])(u,t);i.value=f(h),o.value=f(m),a.value=f(v),c.value=f(g),l.value=setTimeout(Object(s["a"])(p.a.mark((function t(){return p.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",e());case 1:case"end":return t.stop()}}),t)}))),1e3)}else n("hideTimer")};return h(),Object(j["h"])((function(){clearTimeout(l.value)})),{buttonStyle:u,backgroundStyle:d,days:c,hours:i,minutes:o,seconds:a}}}),Jn=Kn,Yn=(n("ea7e"),Object(Y["a"])(Jn,Vn,zn,!1,null,null,null)),Xn=Yn.exports,Qn=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.showFollow=!1,e.showTimer=!!e.timerSettings&&e.timerSettings.showOnProfilePage&&Object(De["a"])(new Date,new Date(e.timerSettings.date))||!1,e.processingFollow=!1,e.showUnfollowConfirm=!1,e}return Object(l["a"])(n,[{key:"toggleFollow",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.processingFollow){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,this.processingFollow=!0,this.$emit("onFollowUpdate",!this.isFollowing),e.next=7,O["a"].FollowingsProvider.toggle({id:this.user.id});case 7:t=e.sent,this.$emit("onFollowUpdate",t);case 9:return e.prev=9,this.processingFollow=!1,e.finish(9);case 12:case"end":return e.stop()}}),e,this,[[2,,9,12]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFollowingClick",value:function(){this.showFollow=!0}},{key:"onUnfollowClick",value:function(){this.showFollow=!0,this.showUnfollowConfirm=!1}},{key:"copyProfileLink",value:function(){Object(k["f"])(this.myUrl,Object(je["a"])("Link copied"))}},{key:"sendMessage",value:function(){this.$router.push({name:"messages",params:{userId:this.user.id}})}},{key:"followButtonText",get:function(){return this.profileSettings.followButtonText}},{key:"showSubscribeButton",get:function(){return!this.isDisabled&&!this.isAuthor&&this.hasSubscriptionLevels}},{key:"showSmallFollowButton",get:function(){return!this.isDisabled&&!this.isAuthor&&this.profileSettings.showFollowButton&&this.profileSettings.smallFollowButton}},{key:"showFollowButton",get:function(){return!this.isDisabled&&!this.isAuthor&&!this.isFollowing&&this.profileSettings.showFollowButton&&!this.profileSettings.smallFollowButton}},{key:"showMessageButton",get:function(){var e=!0;return"nobody"===this.profileSettings.messageButtonVisibility?e=!1:"followers"===this.profileSettings.messageButtonVisibility&&(e=this.isFollowing),!this.user.disabled&&!this.isAuthor&&this.profileSettings.showButtonsByDefault&&e&&!this.loading}},{key:"showProfileInfoStats",get:function(){return!this.user.disabled&&this.profileSettings.showButtonsByDefault}},{key:"verified",get:function(){return this.user&&this.user.verified}},{key:"screenName",get:function(){return this.user.screenName}},{key:"myUrl",get:function(){var e=Object(k["e"])(this.authUserStrict),t=this.$router.resolve(e).href;return t?new URL(t,window.location.href).toString():""}},{key:"lastOnline",get:function(){var e,t;return null!==(e=this.user.onlineStatus)&&void 0!==e&&e.isOnline?Object(je["a"])("Online"):null!==(t=this.user.onlineStatus)&&void 0!==t&&t.lastOnlineTime?Object(je["a"])("Last visited {0}",[Object(Ie["timeAgo"])(this.user.onlineStatus.lastOnlineTime,{addSuffix:!0})]):""}},{key:"isDisabled",get:function(){var e,t;return null===(e=null===(t=this.user)||void 0===t?void 0:t.disabled)||void 0===e||e}},{key:"showOnlineStatus",get:function(){var e;return _["a"].featureUserOnlineStatus&&(null===(e=this.user.onlineStatus)||void 0===e?void 0:e.isOnline)}},{key:"isAuthorAndIsMember",get:function(){var e;return this.isAuthor&&Object(g["checkRole"])((null===(e=this.authUser)||void 0===e?void 0:e.role)||"","member")}},{key:"isCreatorViewer",get:function(){var e;return Object(g["checkRole"])((null===(e=this.authUser)||void 0===e?void 0:e.role)||"","creator")}},{key:"isCreator",get:function(){var e;return Object(g["checkRole"])((null===(e=this.user)||void 0===e?void 0:e.role)||"","creator")}},{key:"isFreeModel",get:function(){return this.isCreator&&this.questionaryInfo["freeModel"]}},{key:"isProModel",get:function(){return this.isCreator&&!this.questionaryInfo["freeModel"]}},{key:"showCamsodaLiveButton",get:function(){return this.profileSettings.camsodaWidget.display}},{key:"forceHubzterLiveButton",get:function(){return _["a"].featureHubzterLiveButton}},{key:"showHubzterLiveButton",get:function(){return!this.profileSettings.disabledHubzterLive&&!this.isCreatorViewer&&((this.forceHubzterLiveButton?this.isCreator:this.isFreeModel)||this.isAuthorAndIsMember)}},{key:"profileHeaderBanner",get:function(){return this.banners.find((function(e){return e.subject.subjectType===Me["BannerSubjectTypeEnum"].PROFILE_HEADER}))}},{key:"profileButtonBanners",get:function(){return this.banners.filter((function(e){return e.subject.subjectType===Me["BannerSubjectTypeEnum"].PROFILE_BUTTON}))}}]),n}(Object(m["c"])(w["a"]));Object(h["__decorate"])([Object(v["e"])({required:!0})],Qn.prototype,"user",void 0),Object(h["__decorate"])([Object(v["e"])({default:function(){return{}}})],Qn.prototype,"questionaryInfo",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean,required:!0})],Qn.prototype,"isFollowing",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean,required:!0})],Qn.prototype,"loading",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean,required:!0})],Qn.prototype,"isAuthor",void 0),Object(h["__decorate"])([Object(v["e"])({type:Boolean,required:!0})],Qn.prototype,"hasSubscriptionLevels",void 0),Object(h["__decorate"])([Object(v["e"])({type:Object,required:!0})],Qn.prototype,"profileSettings",void 0),Object(h["__decorate"])([Object(v["e"])({type:Object,required:!0})],Qn.prototype,"timerSettings",void 0),Object(h["__decorate"])([Object(v["e"])({type:Array,required:!0})],Qn.prototype,"banners",void 0),Object(h["__decorate"])([Object(C["b"])((function(e){return e.isAuthor?["updateMyQuestionaryInfo","updateMyPersonalInfo","updateMyFile"]:["updateAnyQuestionaryInfo","updateAnyPersonalInfo","updateAnyFile"]}))],Qn.prototype,"canEditInfo",void 0),Object(h["__decorate"])([C["a"]],Qn.prototype,"toggleFollow",null),Object(h["__decorate"])([C["a"]],Qn.prototype,"onFollowingClick",null),Object(h["__decorate"])([C["a"]],Qn.prototype,"sendMessage",null),Qn=Object(h["__decorate"])([Object(m["b"])({name:"ProfileInfoView",components:{LiveModelsButton:Ke["a"],ProfileTimerEvent:Xn,ProfileHeaderBanner:Un,EmbedVideoPlayer:Nt,CamsodaLiveButton:Ge,QuestionaryInfoPrinter:sn,ProfileHeader:kn,BaseButton:z["a"],BaseMenu:Ne["a"],BaseIcon:W["a"],BaseConfirm:$["a"],ProfileStatistic:Pn,Share:Ae["a"],UserFollowSubscribeModal:He}})],Qn);var Zn=Qn,er=Zn,tr=(n("d996"),Object(Y["a"])(er,Ee,_e,!1,null,"f74718b0",null)),nr=tr.exports,rr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"verification-notification"},[n("div",{staticClass:"verification-notification__icon"},[n("base-icon",{attrs:{"font-size":"20",color:"var(--palette-gray)"}},[e._v("sci-eye-off")])],1),n("div",{staticClass:"verification-notification__content"},[e._v(" "+e._s(e.$t("Your posts become available to other users once your account is verified."))+" ")])]):e._e()},ir=[],or=n("2beb"),ar=Object(j["c"])({name:"VerificationNotification",components:{BaseIcon:W["a"]},props:{user:{type:Object,required:!1}},setup:function(e){var t=Object(D["a"])(),n=t.authUser,r=t.userVerificationStatus,i=Object(j["a"])((function(){return n.value&&e.user&&n.value.id===e.user.id})),o=Object(j["a"])((function(){return i.value&&r.value===or["UserVerificationStatus"].WAITING_FOR_APPROVAL}));return{show:o}}}),sr=ar,cr=(n("25d4"),Object(Y["a"])(sr,rr,ir,!1,null,"6c8a51ba",null)),lr=cr.exports,ur=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-confirm",{staticClass:"qr-code-modal",attrs:{value:e.show},on:{input:function(t){return e.$emit("close")}},scopedSlots:e._u([{key:"titleAppend",fn:function(){return[n("div",{staticClass:"centered-content"},[n("span",{staticClass:"subtitle-2 mb-6"},[e._v(e._s(e.shareLink))]),n("QRCanvas",{ref:"qrRef",staticClass:"qr-code-modal__code",attrs:{options:e.options}}),n("base-button",{staticClass:"mt-10",attrs:{"full-width":"",href:e.downloadLink,target:"_blank"}},[e._v(e._s(e.$t("Download QR code")))])],1)]},proxy:!0}])})},dr=[],fr=n("ccb5");function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(this,arguments)}var hr=n("e0d3"),mr=n.n(hr),vr="#000",gr="#fff",br={createCanvas:yr,isCanvas:wr,isDrawable:kr,getCanvas:xr,updateCanvas:Cr,drawCanvas:Or,drawText:Sr};function yr(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function wr(e){return e instanceof HTMLCanvasElement}function kr(e){return wr(e)||e instanceof HTMLImageElement}function xr(e,t){return br.createCanvas(e,null==t?e:t)}function Cr(e,t,n){return e?(e.width=t,e.height=null==n?t:n,e):xr(t,n)}function Or(e,t,n){void 0===n&&(n={});var r=n,i=r.cellSize,o=r.context,a=r.clear,s=void 0===a||a,c=e.width,l=e.height,u=[t],d=o||e.getContext("2d");s&&d.clearRect(0,0,c,l),d.globalCompositeOperation="source-over";while(u.length){var f=u.shift();if(Array.isArray(f))u=f.concat(u);else if(f){var p=void 0;p=br.isDrawable(f)?{image:f}:"string"===typeof f?{style:f}:f;var h=(null==p.col?p.x:p.col*i)||0,m=(null==p.row?p.y:p.row*i)||0;h<0&&(h+=c),m<0&&(m+=c);var v=("cols"in p?p.cols*i:p.w)||c,g=("rows"in p?p.rows*i:p.h)||c;p.image?d.drawImage(p.image,h,m,v,g):(d.fillStyle=p.style||"black",d.fillRect(h,m,v,g))}}return e}function Sr(e,t){var n,r=t||{},i=r.fontSize,o=void 0===i?64:i,a=r.fontStyle,s=void 0===a?"":a,c=r.fontFamily,l=void 0===c?"Cursive":c,u=r.color,d=void 0===u?null:u,f=r.pad,p=void 0===f?8:f,h=r.padColor,m=void 0===h?gr:h,v=r.mode,g=void 0===v?1:v,b=xr(1),y=b.getContext("2d");if(m){y.fillStyle=m,y.fillRect(0,0,1,1);var w=y.getImageData(0,0,1,1);n=w.data,n[3]||(n=null)}var k=o+2*p,x=[s,o+"px",l].filter(Boolean).join(" "),C=function(){y.textAlign="center",y.textBaseline="middle",y.font=x};C();var O=Math.ceil(y.measureText(e).width)+2*p;b.width=O,b.height=k,C();var S=function(){y.fillStyle=d||vr,y.fillText(e,O/2,k/2)};return 1===g?(y.fillStyle=m,y.fillRect(0,0,O,k),S()):(S(),n&&function(){for(var e=y.getImageData(0,0,O,k),t=e.data,r=O*k,i=[],o=0,a=function(e){var a=[],s={};i[o]=a,o=1-o;var c=i[o];if(!c){c=[];for(var l=0;l<r;l+=1)c.push(l)}c.forEach((function(e){t[4*e+3]&&[e%O?e-1:-1,(e+1)%O?e+1:-1,e-O,e+O].forEach((function(e){var n=4*e;n>=0&&n<=t.length&&!s[e]&&(s[e]=1,a.push(e))}))})),a.forEach((function(e){var r=4*e;if(!t[r+3])for(var i=0;i<4;i+=1)t[r+i]=n[i]}))},s=0;s<p;s+=1)a();y.putImageData(e,0,0)}()),b}var Tr={default:Er,round:_r,fusion:Mr,spot:Ir};function Er(e){var t=e.foreground,n=e.cellSize,r=e.isDark,i=e.count,o=br.getCanvas,a=br.drawCanvas,s=n*i,c=o(s),l=c.getContext("2d");l.fillStyle=vr,jr({cellSize:n,count:i},(function(e){var t=e.i,i=e.j,o=e.x,a=e.y;r(t,i)&&l.fillRect(o,a,n,n)}));var u=o(s);a(u,t,{cellSize:n});var d=u.getContext("2d");return d.globalCompositeOperation="destination-in",d.drawImage(c,0,0),u}function _r(e,t){var n=e.foreground,r=e.cellSize,i=e.isDark,o=e.count,a=br.getCanvas,s=br.drawCanvas,c=r*o,l=a(c),u=t.value,d=void 0===u?1:u,f=d*r/2,p=l.getContext("2d");p.fillStyle=vr,jr({cellSize:r,count:o},(function(e){var t=e.i,n=e.j,o=e.x,a=e.y;i(t,n)&&(p.beginPath(),p.moveTo(o+.5*r,a),Dr(p,o+r,a,o+r,a+.5*r,f),Dr(p,o+r,a+r,o+.5*r,a+r,f),Dr(p,o,a+r,o,a+.5*r,f),Dr(p,o,a,o+.5*r,a,f),p.fill())}));var h=a(c);s(h,n,{cellSize:r});var m=h.getContext("2d");return m.globalCompositeOperation="destination-in",m.drawImage(l,0,0),h}function Mr(e,t){var n=e.foreground,r=e.cellSize,i=e.isDark,o=e.count,a=br.getCanvas,s=br.drawCanvas,c=r*o,l=a(c),u=l.getContext("2d");u.fillStyle=vr;var d=t.value,f=void 0===d?1:d,p=f*r/2;jr({cellSize:r,count:o},(function(e){var t=e.i,n=e.j,o=e.x,a=e.y,s=[0,0,0,0];i(t-1,n)&&(s[0]+=1,s[1]+=1),i(t+1,n)&&(s[2]+=1,s[3]+=1),i(t,n-1)&&(s[0]+=1,s[3]+=1),i(t,n+1)&&(s[1]+=1,s[2]+=1),i(t,n)?(i(t-1,n-1)&&(s[0]+=1),i(t-1,n+1)&&(s[1]+=1),i(t+1,n+1)&&(s[2]+=1),i(t+1,n-1)&&(s[3]+=1),u.beginPath(),u.moveTo(o+.5*r,a),Dr(u,o+r,a,o+r,a+.5*r,s[1]?0:p),Dr(u,o+r,a+r,o+.5*r,a+r,s[2]?0:p),Dr(u,o,a+r,o,a+.5*r,s[3]?0:p),Dr(u,o,a,o+.5*r,a,s[0]?0:p),u.fill()):(2===s[0]&&Nr(u,o,a+.5*r,o,a,o+.5*r,a,p),2===s[1]&&Nr(u,o+.5*r,a,o+r,a,o+r,a+.5*r,p),2===s[2]&&Nr(u,o+r,a+.5*r,o+r,a+r,o+.5*r,a+r,p),2===s[3]&&Nr(u,o+.5*r,a+r,o,a+r,o,a+.5*r,p))}));var h=a(c);s(h,n,{cellSize:r});var m=h.getContext("2d");return m.globalCompositeOperation="destination-in",m.drawImage(l,0,0),h}function Ir(e,t){var n=e.foreground,r=e.cellSize,i=e.isDark,o=e.count,a=br.getCanvas,s=br.drawCanvas,c=r*o,l=a(c),u=t.value,d=t.foregroundLight,f=void 0===d?gr:d,p=l.getContext("2d"),h=a(c),m=a(c),v=h.getContext("2d");return[{dark:!0,foreground:n},{dark:!1,foreground:f}].forEach((function(e){p.fillStyle=vr,p.clearRect(0,0,c,c),jr({cellSize:r,count:o},(function(t){var n=t.i,a=t.j,s=t.x,c=t.y;if(i(n,a)^+!e.dark){var l;l=n<=7&&a<=7||n<=7&&o-a-1<=7||o-n-1<=7&&a<=7||n+5<=o&&n+9>=o&&a+5<=o&&a+9>=o||7===n||7===a?1-.1*u:.25;var d=(1-l)/2;p.fillRect(s+d*r,c+d*r,l*r,l*r)}})),s(h,e.foreground,{cellSize:r,context:v}),v.globalCompositeOperation="destination-in",v.drawImage(l,0,0),s(m,h,{cellSize:r,clear:!1})})),m}function jr(e,t){for(var n=e.cellSize,r=e.count,i=0;i<r;i+=1)for(var o=0;o<r;o+=1){var a=o*n,s=i*n;t({i:i,j:o,x:a,y:s})}}function Dr(e,t,n,r,i,o){o?e.arcTo(t,n,r,i,o):(e.lineTo(t,n),e.lineTo(r,i))}function Nr(e,t,n,r,i,o,a,s){e.beginPath(),e.moveTo(t,n),Dr(e,r,i,o,a,s),e.lineTo(r,i),e.lineTo(t,n),e.fill()}mr.a.stringToBytes=mr.a.stringToBytesFuncs["UTF-8"];var Ar={background:"white",foreground:"black",typeNumber:0,correctLevel:"L",data:"",padding:0,resize:!0},Lr=function(){function e(e){var t=this;this.options=pr({},Ar),this.cache={},this.isDark=function(e,n){var r=t.cache,i=r.qr,o=r.count;return!(e<0||e>=o||n<0||n>=o)&&i.isDark(e,n)},this.setOptions(e)}var t=e.prototype;return t.render=function(e,t){void 0===t&&(t={});var n,r,i,o=this.options,a=o.background,s=o.foreground,c=o.padding,l=o.effect,u=o.logo,d=o.resize,f=Tr[l.type]||Tr["default"],p=this.cache.count,h=br.drawCanvas,m=t,v=m.size,g=t,b=g.cellSize;e||b||v||(b=6),b&&(v=p*b+c+c),v?n=d||!e?br.updateCanvas(e,v):e:(v=e.width,n=e);var y=v-c-c,w=Math.ceil(y/p),k=w*p;if(r=br.getCanvas(w*p),h(r,a,{cellSize:w}),i=f(pr({foreground:s,cellSize:w,isDark:this.isDark},this.cache),this.options.effect),u){var x=pr({},u);if(!u.w&&!u.h&&!u.cols&&!u.rows){var C=u.image,O=C.width,S=C.height,T=O/S,E=Math.min((p-18)/p,.38),_=Math.min(S,k*E,k*E/T),M=_*T,I=(k-M)/2,j=(k-_)/2;x.w=M,x.h=_,x.x=I,x.y=j}h(i,x,{clear:!1})}return h(n,[{image:r},{image:i,x:c,y:c,w:y,h:y}]),n},t.setOptions=function(e){this.options=pr({},this.options,e),this.normalizeEffect(),this.normalizeLogo();var t=this.options,n=t.typeNumber,r=t.data,i=t.logo,o=this.options.correctLevel;i&&["Q","H"].indexOf(o)<0&&(o="H");var a=mr()(n,o);a.addData(r||""),a.make();var s=a.getModuleCount();this.cache={qr:a,count:s}},t.normalizeEffect=function(){var e=this.options.effect;"string"===typeof e&&(e={type:e}),this.options.effect=e||{}},t.normalizeLogo=function(){var e=br.isDrawable,t=br.drawText,n=this.options.logo;n&&(e(n)?n={image:n}:e(n.image)||("string"===typeof n&&(n={text:n}),n="string"===typeof n.text?{image:t(n.text,n.options)}:null)),this.options.logo=n},e}();function Pr(e){var t=e.canvas,n=e.size,r=e.cellSize,i=Object(fr["a"])(e,["canvas","size","cellSize"]),o=new Lr(i);return o.render(t,{size:n,cellSize:r})}
/*! qrcanvas-vue v2.1.1 | ISC License */
function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(this,arguments)}function Fr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Rr=["options"],qr=B["default"].extend({props:{options:Object},render:function(e){var t=this.$props;t.options;var n=Fr(t,Rr);return e("canvas",n)},methods:{update:function(e){this.mounted&&(this.$emit("beforeUpdate",this.$el),Pr(Br({},e,{canvas:this.$el})),this.$emit("updated",this.$el))}},watch:{options:"update",width:"update",height:"update"},mounted:function(){this.mounted=!0,this.update(this.options)}}),Hr=Object(j["c"])({name:"QrCodeModal",components:{QRCanvas:qr,BaseButton:z["a"],BaseConfirm:$["a"]},props:{show:{type:Boolean,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=Object(j["o"])(),n=Object(j["o"])(""),r=Object(j["a"])((function(){return"".concat(document.location.hostname,"/").concat(e.user.username)})),i=Object(j["a"])((function(){return{data:r.value,size:600}}));return Object(j["s"])(t,(function(e){if(e){var t=e.$el;t.toBlob&&t.toBlob((function(e){n.value=window.URL.createObjectURL(e)}))}})),{shareLink:r,options:i,qrRef:t,downloadLink:n}}}),Ur=Hr,Vr=(n("455e"),Object(Y["a"])(Ur,ur,dr,!1,null,"423c662a",null)),zr=Vr.exports,$r=Object(j["c"])({name:"PageProfileView",components:{ProfileBackground:Te,CreatePostButtonController:re,ConfirmSensitiveContent:ie["a"],ProfileInfoView:nr,EmptyContent:ce["a"],BasePage:oe["a"],PageTitle:ae["a"],BaseIcon:W["a"],BaseButton:z["a"],ContentFeedView:se["a"],VerificationNotification:lr,PageDiscover:le["default"],QrCodeModal:zr},props:{feedId:{type:String},loading:{type:Boolean,required:!0},scroll:{type:Boolean,required:!0},isAuthor:{type:Boolean,required:!0},isFollowing:{type:Number,required:!0},isSubscribed:{type:Boolean,required:!0},user:{type:Object,default:null},questionaryInfo:{type:Object,required:!0},banners:{type:Array,required:!0},contentFeedSearchResult:{type:Object,default:null},subscriptionLevels:{type:Array,required:!0},paymentPackages:{type:Array,required:!0},canCreateContentSet:{type:Boolean,required:!0}},setup:function(e,t){var n=t.root,r=Object(D["a"])(),i=r.authUser,o=Object(A["b"])(Object(j["p"])(e,"user")),a=o.profileSettings,s=Object(j["a"])((function(){return Object(N["b"])(e.questionaryInfo)})),c=Object(j["o"])(!1),l=Object(j["a"])((function(){return a.value.background})),u=Object(j["a"])((function(){return a.value.showPostsForNonFollowers||!!e.isFollowing||e.isSubscribed})),d=Object(j["a"])((function(){return{"--profile-text-color":"#".concat(a.value.textColor),"--profile-link-color":"#".concat(a.value.linkColor),"--buttons-border-radius":"".concat(a.value.buttonsBorderRadius,"px")}})),f=Object(j["a"])((function(){var t,n;return null!==(t=null===(n=e.user)||void 0===n?void 0:n.id)&&void 0!==t?t:""})),p=Object(j["a"])((function(){var t,n;return null===(t=null===(n=e.user)||void 0===n?void 0:n.disabled)||void 0===t||t})),h=Object(j["a"])((function(){var t;return null!==(t=e.questionaryInfo.sensitiveContent)&&void 0!==t&&t})),m=Object(j["a"])((function(){return a.value.enableSearchModels})),v=Object(j["a"])((function(){return e.user&&Object(k["e"])(e.user)||null})),b=Object(j["a"])((function(){var t;return!e.loading&&0===(null===(t=e.contentFeedSearchResult)||void 0===t?void 0:t.result.length)})),y=Object(j["a"])((function(){var t;return _["a"].featureRestrictMember&&Object(g["checkRole"])((null===(t=e.user)||void 0===t?void 0:t.role)||"","member")||!e.canCreateContentSet})),w=Object(j["a"])((function(){var t;return Object(g["checkRole"])((null===(t=e.user)||void 0===t?void 0:t.role)||"",_["a"].userRegistrationRole)})),x=function(t){t!==e.feedId&&e.user&&n.$router.replace(Object(k["e"])(e.user,t&&{feedId:t}||void 0))},C=function(e){e||n.$router.replace({name:"home"})},O=Object(j["a"])((function(){return!!i.value})),T=Object(j["a"])((function(){var e;return m.value&&(Object(g["checkRole"])((null===(e=i.value)||void 0===e?void 0:e.role)||"",_["a"].userRegistrationRole)||!O.value)})),M=function(){O.value||S["a"].emit(E["b"].SHOW_LOGIN_SIGNUP_MODAL,!0)};return{showQRCode:c,timerSettings:s,profileSettings:a,backgroundSettings:l,profileStyles:d,userId:f,isDisabled:p,isSensitiveContent:h,profileUrl:v,isEmptyProfile:b,restrictCreatePost:y,isMember:w,showPostsForNonFollowers:u,isLoggedIn:O,isShowSearchModel:T,onFeedOnScreen:x,onConfirmSensetive:C,onClickEmptyContent:M}}}),Wr=$r,Gr=(n("3135"),Object(Y["a"])(Wr,M,I,!1,null,"7e5caf86",null)),Kr=Gr.exports,Jr=function(e){Object(u["a"])(n,e);var t=Object(d["a"])(n);function n(){var e;return Object(c["a"])(this,n),e=t.apply(this,arguments),e.loading=!0,e.user=null,e.questionaryInfo={},e.contentFeedSearchResult=null,e.subscriptionLevels=[],e.isSubscribed=!1,e.paymentPackages=[],e.banners=[],e.scroll=!1,e.isFollowing=0,e}return Object(l["a"])(n,[{key:"onFeedClick",value:function(e){this.user&&this.$router.push(Object(k["e"])(this.user,{feedId:e}))}},{key:"onFollowUpdate",value:function(){var e=Object(s["a"])(p.a.mark((function e(t){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.isFollowing=t?1:0;case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onFeedLike",value:function(e){this.contentFeedSearchResult&&this.$set(this.contentFeedSearchResult,"result",this.contentFeedSearchResult.result.map((function(t){return t.id===e.id?e:t})))}},{key:"onFeedDelete",value:function(e){this.contentFeedSearchResult&&this.$set(this.contentFeedSearchResult,"result",this.contentFeedSearchResult.result.filter((function(t){return t.id!==e})))}},{key:"onNext",value:function(){var e=Object(s["a"])(p.a.mark((function e(t){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!this.contentFeedSearchResult||!this.contentFeedSearchResult.hasNextPage){e.next=4;break}return e.next=4,this.getContentFeed(this.userId,{page:this.contentFeedSearchResult.page+1},!1);case 4:return e.prev=4,t&&t(),e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[0,,4,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getContentFeed",value:function(){var e=Object(s["a"])(p.a.mark((function e(t,n){var r,i,s,c,l,u,d=arguments;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=!(d.length>2&&void 0!==d[2])||d[2],s=d.length>3?d[3]:void 0,this.isAuthor||null!==(r=this.user)&&void 0!==r&&r.verified){e.next=5;break}return this.contentFeedSearchResult={page:0,size:0,totalRecords:0,totalPages:0,hasNextPage:!1,hasPrevPage:!1,result:[]},e.abrupt("return",this.contentFeedSearchResult);case 5:return e.prev=5,this.scroll=!1,e.next=9,this.contentFeedSearch(Object(a["a"])({userId:t,sort:"PUBLISH_TIME,DESC",processingStatus:this.canUpdateContentSet?void 0:"OK",published:!0,includeScheduled:this.canUpdateContentSet},n),s);case 9:return c=e.sent,this.contentFeedSearchResult=i?c:Object(a["a"])(Object(a["a"])({},c),{},{result:[].concat(Object(o["a"])(this.contentFeedSearchResult?this.contentFeedSearchResult.result:[]),Object(o["a"])(c.result))}),e.abrupt("return",this.contentFeedSearchResult);case 12:return e.prev=12,this.scroll=null!==(l=null===(u=this.contentFeedSearchResult)||void 0===u?void 0:u.hasNextPage)&&void 0!==l&&l,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[5,,12,15]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getFollowingData",value:function(){var e=Object(s["a"])(p.a.mark((function e(t,n){var r=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.isFollowing=-1,e.next=3,O["a"].FollowingsProvider.searchFollowings({ids:[n]}).then((function(e){r.isFollowing=e.find((function(e){return e.followerId===t&&e.userId===n}))?1:0}));case 3:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getBanners",value:function(){var e=Object(s["a"])(p.a.mark((function e(){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,O["a"].BannersProvider.findAll({data:{subject:{subjectId:this.userId}}});case 2:this.banners=e.sent;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getProfileData",value:function(){var e=Object(s["a"])(p.a.mark((function e(t,n){var r,i,o=this;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,this.user=null,this.questionaryInfo={},this.contentFeedSearchResult=null,e.next=6,O["a"].UserPublicDataProvider.search({data:{id:[t]}});case 6:r=e.sent,r.result[0]&&(this.user=r.result[0]),i=[O["a"].QuestionaryInfoProvider.find({id:t}).then((function(e){o.questionaryInfo=e.fields})),this.getContentFeed(t,{},!0,this.feedId||void 0),O["a"].SubscriptionLevelProvider.find({userIds:[t]}).then((function(e){return o.subscriptionLevels=e})),O["a"].PaymentPackageProvider.findAll({type:[b["PaymentPackageEnum"].FILESET]}).then((function(e){return o.paymentPackages=e}))],this.authUser&&!this.isAuthor&&(i.push(this.getFollowingData(this.authUser.id,t)),i.push(O["a"].SubscriptionProvider.search({data:{providerId:this.userId,consumerId:this.authUser.id,expired:!1}}).then((function(e){return o.isSubscribed=e.result.length>0})))),i.push(this.getBanners()),Promise.all(i).finally((function(){o.loading=!1,n&&n!==t&&window.scrollTo({top:0})}));case 12:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"updateDataForLogin",value:function(e,t){if(e&&!this.isAuthor&&this.getFollowingData(e.id,this.userId),!t&&e&&e.accountInfo.lastLoginTime&&this.authAllowAccess){var n,r,i,o=null!==(n=null===(r=this.contentFeedSearchResult)||void 0===r?void 0:r.result)&&void 0!==n?n:[],a=null===(i=o.find((function(){return!0})))||void 0===i?void 0:i.user.id;a&&this.updateFeed({userId:a})}}},{key:"updateFeed",value:function(){var e=Object(s["a"])(p.a.mark((function e(t){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.contentFeedSearchResult){e.next=2;break}return e.abrupt("return",this.getContentFeed(this.userId,{},!0));case 2:return e.t0=this,e.t1=this.contentFeedSearchResult,e.next=6,Object(T["a"])({authorId:t.userId,purchasedFeedId:t.feedId},this.contentFeedSearchResult,{includeScheduled:this.canUpdateContentSet});case 6:e.t2=e.sent,e.t0.$set.call(e.t0,e.t1,"result",e.t2);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"created",value:function(){var e=Object(s["a"])(p.a.mark((function e(){var t,n;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getProfileData(this.userId);case 2:if(this.isAuthor||!Object(g["checkRole"])((null===(t=this.user)||void 0===t?void 0:t.role)||"","creator")){e.next=6;break}return n={link:"profile_views_".concat(this.userId),userId:this.userId},e.next=6,O["a"].LinksStatsProvider.linksClick({data:n});case 6:S["a"].on(E["b"].CONTENT_FEED_UPDATED,this.updateFeed),S["a"].on(E["b"].CONTENT_FEED_PURCHASED,this.updateFeed);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"destroyed",value:function(){document.title=_["a"].siteName,S["a"].off(E["b"].CONTENT_FEED_UPDATED,this.updateFeed),S["a"].off(E["b"].CONTENT_FEED_PURCHASED,this.updateFeed)}},{key:"beforeRouteEnter",value:function(e,t,n){Object(x["a"])(e,t,n)}},{key:"beforeRouteUpdate",value:function(e,t,n){Object(x["a"])(e,t,n)}},{key:"isAuthor",get:function(){return!!this.authUser&&this.authUser.id===this.userId}}]),n}(Object(m["c"])(y["a"],w["a"]));Object(h["__decorate"])([Object(v["e"])({type:String,required:!0})],Jr.prototype,"userId",void 0),Object(h["__decorate"])([Object(v["e"])({type:String})],Jr.prototype,"feedId",void 0),Object(h["__decorate"])([Object(C["b"])((function(e){return e.isAuthor?["updateMyContentSet"]:["updateAnyContentSet"]}))],Jr.prototype,"canUpdateContentSet",void 0),Object(h["__decorate"])([Object(C["b"])(["createMyContentSet"])],Jr.prototype,"canCreateContentSet",void 0),Object(h["__decorate"])([Object(v["i"])("userId")],Jr.prototype,"getProfileData",null),Object(h["__decorate"])([Object(v["i"])("authUser")],Jr.prototype,"updateDataForLogin",null),Jr=Object(h["__decorate"])([Object(v["a"])({name:"PageProfile",components:{PageProfileView:Kr}})],Jr);var Yr=Jr,Xr=Yr,Qr=Object(Y["a"])(Xr,r,i,!1,null,null,null),Zr=Qr.exports;t["default"]=Zr},"969a":function(e,t,n){"use strict";n("d14c")},"97cc":function(e,t,n){"use strict";n("0de2")},"9a03":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return k})),n.d(t,"selector",(function(){return x}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Video")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput,validation:function(t){e.isValid=t}},scopedSlots:e._u([{key:"profileVideoTitle",fn:function(t){var r=t.field;return[n("div",{staticClass:"caption"},[e._v(e._s(r.label))])]}}])})],1)],1)},i=[],o=(n("d3b7"),n("ddb0"),n("96cf"),n("1da1")),a=n("a34a"),s=n.n(a),c=n("a6f4"),l=n("2ef0"),u=n("c3b0"),d=n("78f9"),f=n("fe95"),p=n("a5de"),h=n("ab58"),m=n("1031"),v=n("93c4"),g=Object(c["c"])({name:"EditFormVideo",components:{PageTitle:m["a"],BaseForm:v["a"],BaseSpinner:h["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(u["b"])(Object(c["p"])(e,"user")),n=t.loading,r=t.values,i=t.updateProfileSettings,a=Object(c["o"])(!1),h=Object(c["a"])((function(){return[{name:"profileVideoTitle",label:Object(d["a"])("The video will be displayed on your Profile page"),fieldClass:"mt-2"},{name:"profileVideoUrl",label:Object(d["a"])("URL"),hint:Object(d["a"])("YouTube or Vimeo"),rules:{regex:/^http(s)?:\/\/(?:www\.)?/},validationMode:"aggressive",autocomplete:"off"},{name:"profileVideoLocation",type:"select",label:Object(d["a"])("Video location"),options:[{text:Object(d["a"])("Above follow"),value:"aboveFollow"},{text:Object(d["a"])("Above all buttons"),value:"aboveAllButtons"},{text:Object(d["a"])("Below all buttons"),value:"belowAllButtons"}],disabled:!r.value.profileVideoUrl}]})),m=Object(l["debounce"])(Object(o["a"])(s.a.mark((function e(){var t;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n.value&&a.value){e.next=2;break}return e.abrupt("return");case 2:return t={profileVideoUrl:r.value.profileVideoUrl,profileVideoLocation:r.value.profileVideoLocation},e.next=5,i(t);case 5:f["a"].emit(p["b"].NOTIFICATION_SHOW,{text:Object(d["a"])("Changes saved"),timeout:1500});case 6:case"end":return e.stop()}}),e)}))),500),v=function(e){r.value=e,m()};return{loading:n,isValid:a,fields:h,values:r,onFormInput:v,save:m}}}),b=g,y=n("2877"),w=Object(y["a"])(b,r,i,!1,null,null,null),k=w.exports,x=function(e){return"video"===e}},"9a0c":function(e,t,n){var r=n("342f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},"9ba4":function(e,t,n){},"9d02":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return ae}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{staticClass:"stream-modal",attrs:{value:!0,modal:!0,scrollable:!1}},[e.produce?n("produce-controller",{attrs:{"user-id":e.userId},on:{close:e.onClose}}):n("consume-controller",{attrs:{"user-id":e.userId},on:{close:e.onClose}})],1)},i=[],o=n("a6f4"),a=n("d3ac"),s=(n("4160"),n("159b"),n("5530")),c=(n("96cf"),n("1da1")),l=n("a34a"),u=n.n(l),d=n("ff07"),f=(n("99af"),n("4de4"),n("7db0"),n("a15b"),n("d81d"),n("d3b7"),n("6c2d")),p=n("76da"),h=n("ed68");function m(e){var t=e.userId,n=e.connectionDelay,r=void 0===n?0:n,i=Object(o["n"])({joinData:null,loading:!1}),a=Object(o["a"])((function(){var e,t;return null!==(e=null===(t=i.joinData)||void 0===t?void 0:t.token)&&void 0!==e?e:""})),l=Object(o["a"])((function(){return(i.joinData?i.joinData.users:[]).filter((function(e){return e.userId!==t}))})),m=Object(o["o"])(0),v=function(e){m.value=(new Date).getTime()-e.getTime()},g=function(e){i.joinData&&(i.joinData=Object(s["a"])(Object(s["a"])({},i.joinData),{},{users:e}))},b=function(){var e=Object(c["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i.joinData){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,d["a"].LivechatsProvider.end({token:i.joinData.token});case 4:i.joinData=null;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){},w=function(){};Object(o["k"])((function(){return w()}));var k=function(e){return y=e},x=function(){var e=Object(c["a"])(u.a.mark((function e(){var t;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a.value){e.next=2;break}throw new Error("Empty token");case 2:return e.next=4,d["a"].LivechatsProvider.subscribeUserBroadcasting(Object(o["r"])(a),y);case 4:t=e.sent,w=function(){return t.unsubscribe()};case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){},O=function(){};Object(o["k"])((function(){return O()}));var S=function(e){return C=e},T=function(){var e=Object(c["a"])(u.a.mark((function e(){var t;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d["a"].LivechatsProvider.subscribeUserUpdate(Object(o["r"])(a),(function(e){i.joinData&&(C(e),e.action===f["LiveChatUserUpdateAction"].DELETE&&g(i.joinData.users.filter((function(t){return t.id!==e.user.id}))),e.action===f["LiveChatUserUpdateAction"].UPDATE&&(i.joinData.users.find((function(t){return e.user.id===t.id}))?g(i.joinData.users.map((function(t){return t.id===e.user.id?e.user:t}))):g(i.joinData.users.concat([e.user]))))}));case 2:t=e.sent,O=function(){return t.unsubscribe()};case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=Object(o["o"])(!0),_=function(){var e=Object(c["a"])(u.a.mark((function e(t){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:if(E.value){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,d["a"].LivechatsProvider.keepalive({token:t});case 6:return e.abrupt("return",_(t));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(o["k"])((function(){return E.value=!1}));var M=function(){var e=Object(c["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i.loading=!0,e.next=4,new Promise((function(e){return setTimeout(e,r)}));case 4:return e.next=6,d["a"].LivechatsProvider.join({subject:{subjectId:t,subjectType:f["LivechatSubjectType"].PUBLIC_LIVECHAT}});case 6:return i.joinData=e.sent,v(Object(p["parseISO"])(i.joinData.serverTime)),e.next=10,T();case 10:return e.next=12,x();case 12:_(i.joinData.token);case 13:return e.prev=13,i.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,,13,16]])})));return function(){return e.apply(this,arguments)}}();return M(),Object(o["k"])(b),Object(h["a"])(Object(c["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,b();case 2:return e.next=4,M();case 4:case"end":return e.stop()}}),e)})))),Object(s["a"])(Object(s["a"])({token:a,userList:l},Object(o["q"])(i)),{},{setOnUserListUpdatedCB:S,setOnUserBroadcastingCB:k,clientServerTimeDiff:m})}var v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"go-live",class:{__consume:!e.produce,__landscape:e.isLandscape}},[n("div",{staticClass:"go-live__wrapper-video"},[n("video",{ref:"player",staticClass:"go-live__video",class:{__self:e.mirrorVideo},attrs:{playsinline:""},domProps:{muted:e.produce}})]),n("div",{staticClass:"go-live__overlay",class:e.overlayClass},[e.showEnding?e._e():n("div",{staticClass:"go-live__header"},[n("div",{staticClass:"go-live__controls-wrapper d-flex pa-4"},[e.loading||e.connecting?e._e():[e.timePassed?n("base-button",{staticClass:"go-live__time caption px-2",attrs:{gradient:""},on:{click:function(t){e.showTime=!e.showTime}}},[e._v(e._s(e.showTime?e.timePassed:e.$t("Live")))]):e._e(),n("div",{staticClass:"go-live__viewers d-center px-2 ml-2 caption"},[n("base-icon",{staticClass:"mr-1",attrs:{"font-size":20}},[e._v("sci-eye-outline")]),n("span",{staticClass:"mx-auto"},[e._v(e._s(e.userList.length))])],1)],n("div",{staticClass:"go-live__end-button headline-1 normal ml-auto",on:{click:e.endClick}},[e._v(" "+e._s(e.produce?e.$t("End"):e.$t("Exit"))+" ")])],2),!e.produce||e.loading||e.connecting?e._e():n("mobile-switch-cam",{staticClass:"go-live__switch-cam ma-4 mt-0",attrs:{"video-tracks":e.stream.getVideoTracks()},on:{changeDevice:function(t){return e.$emit("changeVideoDevice",t)}}}),e.loading||e.connecting?e._e():n("share",{staticClass:"go-live__share ml-4"})],1),n("div",{staticClass:"go-live__overlay-body d-center __column pa-4"},[e.showEnding||!e.loading&&!e.connecting?e.showEnding?[n("div",{staticClass:"go-live__headline text-center headline mb-8"},[e._v(" "+e._s(e.$t("Do you really want to end video live?"))+" ")]),n("base-button",{staticClass:"go-live__button mb-4",on:{click:e.onClose}},[e._v(e._s(e.$t("End now")))]),n("base-button",{staticClass:"go-live__button ",attrs:{secondary:""},on:{click:function(t){e.showEnding=!1}}},[e._v(e._s(e.$t("Cancel")))])]:e._e():[n("div",{staticClass:"go-live__headline text-center headline"},[e._v(e._s(e.$t("Connecting...")))]),e.produce?n("div",{staticClass:"caption text-center  mt-6"},[e._v(" "+e._s(e.$t("We will inform your followers that you has started broadcasting"))+" ")]):e._e()]],2),e.showChat?n("stream-chat",{attrs:{"thread-id":e.threadId,token:e.token}}):e._e()],1)])},g=[];function b(){var e=Object(o["o"])(!1),t=function(){var t=0;window.screen.orientation?t=window.screen.orientation.angle:"number"===typeof window.orientation&&(t=window.orientation),e.value=90===Math.abs(t)||270===Math.abs(t)};return Object(o["j"])((function(){window.addEventListener("orientationchange",t),t()})),Object(o["k"])((function(){window.removeEventListener("orientationchange",t)})),{isLandscape:e}}var y=n("9310"),w=n("9058"),k=n("8dff"),x=n("e063"),C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stream-chat"},[n("div",{staticClass:"stream-chat__list-wrapper pa-4 mx-n4 mt-n4"},[n("custom-scroll",{ref:"messageListNode",staticClass:"stream-chat__list pa-4"},e._l(e.messageList,(function(e){return n("stream-message",{key:e.id,staticClass:"stream-chat__message",attrs:{message:e}})})),1)],1),n("tip-controller",{staticClass:"stream-chat__tip-controller mt-2 pa-4",attrs:{transparent:"",threadId:e.threadId},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.enable,i=t.openerIcon,o=t.activator;return[n("div",{staticClass:"stream-chat__input-wrapper "},[n("send-message-controller",{staticClass:"stream-chat__input",attrs:{"thread-ids":[e.threadId]},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.sending,i=t.sendMessage;return[n("base-send-message",{attrs:{transparent:"",keepFocus:"",sending:r,placeholder:e.$t("Message")},on:{send:i}})]}}],null,!0)}),r?n("base-icon-button",{staticClass:"stream-chat__tip-button ml-2",on:{click:o}},[e._v(e._s(i))]):e._e()],1)]}}])})],1)},O=[],S=n("b1ec"),T=n("4afc"),E=n("ccda"),_=n("75d7"),M=n("c83a"),I=n("4580"),j=n("4bfb"),D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.getComponent(e.message),{tag:"component",attrs:{message:e.message}})},N=[],A=n("ab82"),L=Object(A["b"])(n("3881")),P=function(e){return Object(A["a"])(L,e,Object(o["c"])({setup:function(){return function(){return Object(o["e"])()}}}))},B=Object(o["c"])({name:"StreamMessage",props:{message:{type:Object,required:!0}},setup:function(e){var t=Object(o["a"])((function(){return P(e.message)}));return{messageView:t,getComponent:P}}}),F=B,R=n("2877"),q=Object(R["a"])(F,D,N,!1,null,null,null),H=q.exports;function U(e){var t,n,r,i,a,s,c=Object(o["o"])(!1),l=Object(o["o"])(!1),u=Object(o["o"])({scrollHeight:null!==(t=null===(n=e.value)||void 0===n?void 0:n.scrollHeight)&&void 0!==t?t:0,scrollTop:null!==(r=null===(i=e.value)||void 0===i?void 0:i.scrollTop)&&void 0!==r?r:0,offsetHeight:null!==(a=null===(s=e.value)||void 0===s?void 0:s.offsetHeight)&&void 0!==a?a:0});Object(o["i"])((function(){var t,n,r,i,o,a;u.value={scrollHeight:null!==(t=null===(n=e.value)||void 0===n?void 0:n.scrollHeight)&&void 0!==t?t:0,scrollTop:null!==(r=null===(i=e.value)||void 0===i?void 0:i.scrollTop)&&void 0!==r?r:0,offsetHeight:null!==(o=null===(a=e.value)||void 0===a?void 0:a.offsetHeight)&&void 0!==o?o:0}}));var d=function(){setTimeout((function(){e.value&&e.value.scrollTo&&e.value.scrollTo(0,e.value.scrollHeight-e.value.offsetHeight)}))},f=function(){if(e.value){var t=u.value.scrollHeight-u.value.scrollTop;e.value.scrollTo&&e.value.scrollTo(0,e.value.scrollHeight-t)}};return Object(o["l"])((function(){var t;(null===(t=e.value)||void 0===t?void 0:t.scrollHeight)!==u.value.scrollHeight&&(c.value?f():l.value&&d())})),Object(o["l"])((function(){c.value=!1,l.value=!1})),{shouldKeepScroll:c,shouldScrollToBottom:l,scrollNode:e}}var V=Object(o["c"])({name:"StreamChat",components:{SendMessageController:E["a"],BaseSendMessage:_["a"],StreamMessage:H,CustomScroll:M["a"],BaseIconButton:I["a"],TipController:j["a"]},props:{threadId:{type:String,required:!0},token:{type:String,required:!0}},setup:function(e){var t=Object(o["o"])(0),n=Object(o["o"])(!1),r=Object(o["o"])([]),i=Object(o["o"])(),a=Object(T["a"])(),s=a.authUser,l=Object(o["a"])((function(){var e,t,n,r,o;if(i.value)return null!==(e=i.value)&&void 0!==e&&null!==(t=e.$refs)&&void 0!==t&&t.customScroll&&"SimpleBar"in(null===(n=i.value)||void 0===n?void 0:null===(r=n.$refs)||void 0===r?void 0:r.customScroll)?null===(o=i.value)||void 0===o?void 0:o.$refs.customScroll.scrollElement:Object(S["c"])(i.value)})),f=U(l),p=f.shouldScrollToBottom,h=f.scrollNode,m=function(e){var t;if(r.value=r.value.concat([e]),h.value){var n=h.value.scrollHeight-h.value.offsetHeight;(e.senderId===(null===(t=s.value)||void 0===t?void 0:t.id)||n-h.value.scrollTop<=100)&&(p.value=!0)}},v=function(){},g=function(){var t=Object(c["a"])(u.a.mark((function t(){var n;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].LivechatsProvider.subscribeMessageReceived(e.token,m);case 2:n=t.sent,v=function(){return n.unsubscribe()};case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(o["k"])((function(){return v()})),Object(o["j"])((function(){g()})),{messageList:r,sending:n,messageListNode:i,scrollbarWidth:t}}}),z=V,$=(n("da5b7"),Object(R["a"])(z,C,O,!1,null,"035548ce",null)),W=$.exports,G=Object(o["c"])({name:"StreamView",components:{BaseButton:y["a"],BaseIcon:w["a"],StreamChat:W,MobileSwitchCam:k["a"],Share:x["a"]},props:{produce:{type:Boolean,required:!0},stream:{type:MediaStream,required:!0},connecting:{type:Boolean,required:!0},loading:{type:Boolean,required:!0},userList:{type:Array,required:!0},streamStartedDate:{type:String,required:!0},threadId:{type:String},token:{type:String}},setup:function(e,t){var n,r=t.emit,i=Object(o["o"])(),a=Object(o["o"])(!0),s=Object(o["o"])(!1),l=Object(o["o"])(""),d=b(),f=d.isLandscape,h=function(){return a.value=!a.value},m=Object(o["a"])((function(){return{__background:s.value||e.loading||e.connecting}})),v=function(){return r("close")},g=function(){e.produce?s.value=!s.value:v()};Object(o["k"])(Object(o["s"])([Object(o["p"])(e,"stream"),i],Object(c["a"])(u.a.mark((function t(){var n;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i.value){t.next=2;break}return t.abrupt("return");case 2:if(i.value.pause(),n=e.stream.getTracks().length>0,!n){t.next=8;break}return i.value.srcObject=e.stream,t.next=8,i.value.play().catch((function(t){if(e.produce||!i.value)throw t;var n=function e(){i.value&&(i.value.muted=!1),document.removeEventListener("click",e)};return document.addEventListener("click",n),i.value.muted=!0,i.value.play()}));case 8:case"end":return t.stop()}}),t)}))),{immediate:!0})),Object(o["s"])(Object(o["p"])(e,"streamStartedDate"),(function(t){if(n&&clearInterval(n),t){var r=function(){l.value=Object(p["toTimePassed"])(Math.max(0,Object(p["differenceInMilliseconds"])(new Date,Object(p["parseISO"])(e.streamStartedDate))))};r(),n=setInterval(r,1e3)}else l.value=""})),Object(o["k"])((function(){return n&&clearInterval(n)}));var y=Object(o["a"])((function(){return!s.value&&!e.connecting&&!e.loading&&!!e.threadId&&!!e.token})),w=Object(o["a"])((function(){var t=e.stream.getVideoTracks(),n=t.length>0&&e.stream.getVideoTracks()[0].getSettings();return e.produce&&(!n||!n.facingMode||"user"===n.facingMode)}));return{player:i,showTime:a,showEnding:s,timePassed:l,timeClick:h,endClick:g,onClose:v,overlayClass:m,showChat:y,isLandscape:f,mirrorVideo:w}}}),K=G,J=(n("4797"),Object(R["a"])(K,v,g,!1,null,"4a86c2bd",null)),Y=J.exports,X=n("9ee8"),Q=n("b588"),Z=n("4636"),ee=Object(o["c"])({name:"ProduceController",props:{userId:{type:String,required:!0}},setup:function(e,t){var n=t.listeners,r=Object(o["o"])(new MediaStream([])),i=Object(X["a"])(),a=i.setDoNotDisturb,l=Object(o["o"])(!0),f=Object(o["o"])(null),h=Object(o["o"])({video:!0,audio:!0}),v=new Q["StreamingHelper"],g=m({userId:e.userId,connectionDelay:3e3}),b=g.loading,y=g.joinData,w=g.token,k=g.userList,x=g.clientServerTimeDiff,C=Object(o["a"])((function(){return y.value?new Date(Object(p["parseISO"])(y.value.me.joinTime).getTime()+x.value).toISOString():""})),O=function(){var e=Object(c["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v.getStream(h.value);case 2:r.value=e.sent;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=Object(o["o"])(),T=function(){var e=Object(c["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O();case 3:return e.prev=3,S.value=void 0,e.finish(3);case 6:case"end":return e.stop()}}),e,null,[[0,,3,6]])})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=Object(c["a"])(u.a.mark((function e(){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!S.value){e.next=4;break}return e.next=4,S.value;case 4:return l.value=!0,e.next=7,d["a"].LivechatsProvider.broadcast({token:w.value});case 7:return f.value=e.sent,e.next=10,v.produceStream(f.value,r.value);case 10:r.value=e.sent,a(!0);case 12:return e.prev=12,l.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,,12,15]])})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=Object(c["a"])(u.a.mark((function e(t){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(f.value){e.next=2;break}return e.abrupt("return");case 2:return Object(Z["c"])()&&r.value.getVideoTracks().forEach((function(e){e.stop(),r.value.removeTrack(e)})),h.value=Object(s["a"])(Object(s["a"])({},h.value),{},{video:t}),e.next=6,v.produceStream(f.value,{video:t,audio:!0});case 6:r.value=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();S.value=T();var M=Object(o["s"])(y,(function(){y&&(M(),E())}));return Object(o["k"])((function(){v.closeAllStreams(),r.value.getTracks().length>0&&r.value.getTracks().forEach((function(e){return e.stop()})),a(!1)})),function(){var e,t;return Object(o["e"])(Y,{props:{produce:!0,stream:Object(o["r"])(r),connecting:Object(o["r"])(l),loading:Object(o["r"])(b),userList:Object(o["r"])(k),streamStartedDate:Object(o["r"])(C),threadId:null===(e=y.value)||void 0===e?void 0:e.threadId,token:null===(t=y.value)||void 0===t?void 0:t.token},on:{close:n.close,changeVideoDevice:_}})}}}),te=Object(o["c"])({name:"ConsumeController",props:{userId:{type:String,required:!0}},setup:function(e,t){var n=t.listeners,r=Object(o["o"])(new MediaStream([])),i=Object(o["o"])(!1),a=Object(o["o"])(null),s=new Q["StreamingHelper"],l=m({userId:e.userId}),f=l.loading,h=l.token,v=l.userList,g=l.joinData,b=l.setOnUserBroadcastingCB,y=l.clientServerTimeDiff,w=Object(o["a"])((function(){var t,n;return null!==(t=null===(n=g.value)||void 0===n?void 0:n.users.find((function(t){return t.userId===e.userId})))&&void 0!==t?t:null})),k=Object(o["a"])((function(){return w.value?new Date(Object(p["parseISO"])(w.value.joinTime).getTime()+y.value).toISOString():""})),x=function(){var e=Object(c["a"])(u.a.mark((function e(t){return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d["a"].LivechatsProvider.watch({token:h.value,broadcasterChatUserId:t});case 2:return a.value=e.sent,s.closeAllStreams(),e.next=6,s.consumeStream({connection:a.value,tracks:{audio:!0,video:!0}});case 6:r.value=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();s.on("producers-updated",function(){var e=Object(c["a"])(u.a.mark((function e(t){var n,i;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.video,i=t.audio,a.value){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,s.consumeStream({connection:a.value,tracks:{video:n,audio:i}});case 5:r.value=e.sent;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var C=function(){s.closeAllStreams(),r.value=new MediaStream([])};return b((function(e){var t=e.chatUserId,n=e.broadcasting;return n?x(t):C()})),Object(o["s"])(g,(function(e,t){!e||e&&t||w.value&&w.value&&w.value.broadcasting&&x(w.value.id)})),Object(o["k"])(C),function(){var e,t;return Object(o["e"])(Y,{props:{produce:!1,stream:Object(o["r"])(r),connecting:Object(o["r"])(i),loading:Object(o["r"])(f),userList:Object(o["r"])(v),streamStartedDate:Object(o["r"])(k),threadId:null===(e=g.value)||void 0===e?void 0:e.threadId,token:null===(t=g.value)||void 0===t?void 0:t.token},on:{close:n.close}})}}}),ne=n("64ae"),re=Object(o["c"])({name:"StreamController",components:{ModalView:a["a"],ProduceController:ee,ConsumeController:te},props:{user:{type:Object,required:!0}},setup:function(e,t){var n=t.root,r=Object(T["a"])(),i=r.authUser,a=Object(o["a"])((function(){return i.value&&e.user.id===i.value.id})),s=Object(o["a"])((function(){return e.user.id})),c=function(){n.$router.push(Object(ne["e"])(e.user))},l=Object(o["n"])({user:e.user});return Object(o["s"])(Object(o["p"])(e,"user"),(function(e){return l.user=e})),Object(o["m"])("messageData",l),"member"===e.user.role&&c(),{produce:a,userId:s,onClose:c}}}),ie=re,oe=(n("81f7"),Object(R["a"])(ie,r,i,!1,null,null,null)),ae=oe.exports},a085:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"selector",(function(){return l}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{position:"fixed",width:"100%",height:"100%",top:"0"}},[n("div",{staticClass:"stars"}),n("div",{staticClass:"twinkling"}),n("div",{staticClass:"clouds"}),n("img",{staticClass:"moon",attrs:{src:"/img/background/moon.png",alt:""}})])}],o=(n("6eb0"),n("2877")),a={},s=Object(o["a"])(a,r,i,!1,null,"7018375f",null),c=s.exports,l=function(e){return"moon-sky"===e}},a0d6:function(e,t,n){var r={"./AnimationAlternate/index.ts":"cc22","./AnimationBlue/index.ts":"8ef3","./AnimationBubble/index.ts":"4c32","./AnimationClouds/index.ts":"ac0a","./AnimationHearts/index.ts":"3ad6","./AnimationHorizontalGradient/index.ts":"0326","./AnimationMoonSky/index.ts":"a085","./AnimationNight/index.ts":"5354","./AnimationSparkle/index.ts":"2bd9","./AnimationSpinningOrbs/index.ts":"b796","./AnimationStars/index.ts":"e26d"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="a0d6"},a186:function(e,t,n){"use strict";n.d(t,"a",(function(){return re}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"input-color-picker d-flex",style:e.style},[n("base-input",{staticClass:"input-color-picker__input mr-2",attrs:{type:"text",maxlength:"6",rules:"required",validationMode:"aggressive",name:e.name,"mask-opts":e.maskOpts,label:e.label,autocomplete:"off"},on:{input:function(t){return e.onColorChanged(t)},validation:function(t){return e.$emit("validation",t)}},model:{value:e.colorValue,callback:function(t){e.colorValue=t},expression:"colorValue"}}),n("base-menu",{staticClass:"input-color-picker__dropdown",attrs:{preventClose:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on;return[n("div",e._g({staticClass:"input-color-picker__color-round",style:{background:"#"+e.color}},r))]}}])},[n("color-picker",{staticClass:"input-color-picker__color-picker mt-4",attrs:{color:e.color},on:{colorChanged:e.onColorChanged}})],1)],1)},i=[],o=(n("ac1f"),n("5319"),n("a6f4")),a=n("efd0"),s=n("5beb"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("hex-color-picker",{staticClass:"color-picker",attrs:{color:e.color},on:{"color-changed":e.onColorChanged}})},l=[];const u=(e,t=0,n=1)=>{return e>n?n:e<t?t:e},d=(e,t=0,n=Math.pow(10,t))=>{return Math.round(n*e)/n},f=(Math.PI,e=>w(p(e))),p=e=>{return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},h=e=>y(g(e)),m=({h:e,s:t,v:n,a:r})=>{const i=(200-t)*n/100;return{h:d(e),s:d(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:d(i/2),a:d(r,2)}},v=e=>{const{h:t,s:n,l:r}=m(e);return`hsl(${t}, ${n}%, ${r}%)`},g=({h:e,s:t,v:n,a:r})=>{e=e/360*6,t/=100,n/=100;const i=Math.floor(e),o=n*(1-t),a=n*(1-(e-i)*t),s=n*(1-(1-e+i)*t),c=i%6;return{r:d(255*[n,a,o,o,s,n][c]),g:d(255*[s,n,n,a,o,o][c]),b:d(255*[o,o,s,n,n,a][c]),a:d(r,2)}},b=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},y=({r:e,g:t,b:n})=>{return"#"+b(e)+b(t)+b(n)},w=({r:e,g:t,b:n,a:r})=>{const i=Math.max(e,t,n),o=i-Math.min(e,t,n),a=o?i===e?(t-n)/o:i===t?2+(n-e)/o:4+(e-t)/o:0;return{h:d(60*(a<0?a+6:a)),s:d(i?o/i*100:0),v:d(i/255*100),a:r}},k=(e,t)=>{if(e===t)return!0;for(const n in e)if(e[n]!==t[n])return!1;return!0},x=(e,t)=>{return e.toLowerCase()===t.toLowerCase()||k(p(e),p(t))},C={},O=e=>{let t=C[e];return t||(t=document.createElement("template"),t.innerHTML=e,C[e]=t),t},S=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};let T=!1;const E=e=>"touches"in e,_=e=>{return!(T&&!E(e))&&(T||(T=E(e)),!0)},M=(e,t)=>{const n=E(t)?t.touches[0]:t,r=e.el.getBoundingClientRect();S(e.el,"move",e.getMove({x:u((n.pageX-(r.left+window.pageXOffset))/r.width),y:u((n.pageY-(r.top+window.pageYOffset))/r.height)}))},I=(e,t)=>{const n=t.keyCode;n>40||e.xy&&n<37||n<33||(t.preventDefault(),S(e.el,"move",e.getMove({x:39===n?.01:37===n?-.01:34===n?.05:33===n?-.05:35===n?1:36===n?-1:0,y:40===n?.01:38===n?-.01:0},!0)))};class j{constructor(e,t,n,r){const i=O(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);e.appendChild(i.content.cloneNode(!0));const o=e.querySelector(`[part=${t}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=r,this.nodes=[o.firstChild,o]}set dragging(e){const t=e?document.addEventListener:document.removeEventListener;t(T?"touchmove":"mousemove",this),t(T?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!_(e)||!T&&0!=e.button)return;M(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),M(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":I(this,e);break}}style(e){e.forEach((e,t)=>{for(const n in e)this.nodes[t].style.setProperty(n,e[n])})}}class D extends j{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:v({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${d(e)}`)}getMove(e,t){return{h:t?u(this.h+360*e.x,0,360):360*e.x}}}class N extends j{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:v(e)},{"background-color":v({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${d(e.s)}%, Brightness ${d(e.v)}%`)}getMove(e,t){return{s:t?u(this.hsva.s+100*e.x,0,100):100*e.x,v:t?u(this.hsva.v-100*e.y,0,100):Math.round(100-100*e.y)}}}var A=":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{display:block;content:'';position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}",L="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",P="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}";const B=Symbol("same"),F=Symbol("color"),R=Symbol("hsva"),q=Symbol("change"),H=Symbol("update"),U=Symbol("parts"),V=Symbol("css"),z=Symbol("sliders");class $ extends HTMLElement{static get observedAttributes(){return["color"]}get[V](){return[A,L,P]}get[z](){return[N,D]}get color(){return this[F]}set color(e){if(!this[B](e)){const t=this.colorModel.toHsva(e);this[H](t),this[q](e)}}constructor(){super();const e=O(`<style>${this[V].join("")}</style>`),t=this.attachShadow({mode:"open"});t.appendChild(e.content.cloneNode(!0)),t.addEventListener("move",this),this[U]=this[z].map(e=>new e(t))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this["color"],this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,t,n){const r=this.colorModel.fromAttr(n);this[B](r)||(this.color=r)}handleEvent(e){const t=this[R],n={...t,...e.detail};let r;this[H](n),k(n,t)||this[B](r=this.colorModel.fromHsva(n))||this[q](r)}[B](e){return this.color&&this.colorModel.equal(e,this.color)}[H](e){this[R]=e,this[U].forEach(t=>t.update(e))}[q](e){this[F]=e,S(this,"color-changed",{value:e})}}const W={defaultColor:"#000",toHsva:f,fromHsva:h,equal:x,fromAttr:e=>e};class G extends ${get colorModel(){return W}}class K extends G{}customElements.define("hex-color-picker",K);var J=Object(o["c"])({name:"ColorPicker",props:{color:{type:String}},setup:function(e,t){var n=t.emit,r=function(e){var t=e.target;t&&null!==t&&void 0!==t&&t.color&&n("colorChanged",t.color)};return{onColorChanged:r}}}),Y=J,X=n("2877"),Q=Object(X["a"])(Y,c,l,!1,null,null,null),Z=Q.exports,ee=Object(o["c"])({name:"InputColorPicker",components:{BaseInput:a["a"],BaseMenu:s["a"],ColorPicker:Z},props:{color:{type:String,default:"#FFFFFF"},name:{type:String,required:!0},label:{type:String},width:{type:String}},setup:function(e,t){var n=t.emit,r={placeholder:"",regex:"([0-9a-fA-F]{3}){1,2}"},i=Object(o["o"])(e.color.toUpperCase()),a=function(e){var t=e.toUpperCase().replace("#","");i.value=t,n("colorChanged",t)},s=Object(o["a"])((function(){return e.width?{"--color-picker-width":e.width}:{}}));return{maskOpts:r,colorValue:i,style:s,onColorChanged:a}}}),te=ee,ne=(n("0d07"),Object(X["a"])(te,r,i,!1,null,"64021fa6",null)),re=ne.exports},a307:function(e,t,n){},a34f:function(e,t,n){"use strict";n("3b50")},a40d:function(e,t,n){"use strict";n("204c")},a5cc:function(e,t,n){},a627:function(e,t,n){},a64f:function(e,t,n){},a8c9:function(e,t,n){var r={"./EditFormBanner/index.ts":"90e4","./EditFormButtons/index.ts":"2b87","./EditFormFollowButton/index.ts":"c0cc4","./EditFormPageDesign/index.ts":"c78b","./EditFormPrivacy/index.ts":"541a","./EditFormSocialLinks/index.ts":"7e31","./EditFormTimer/index.ts":"2d55","./EditFormVideo/index.ts":"9a03"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="a8c9"},a925:function(e,t,n){},aa15:function(e,t,n){},aa47:function(e,t,n){"use strict";
/**!
 * Sortable 1.10.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){return u(e)||d(e)||f()}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return Ft})),n.d(t,"Sortable",(function(){return Qe})),n.d(t,"Swap",(function(){return Tt}));var p="1.10.2";function h(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=h(/Edge/i),g=h(/firefox/i),b=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),y=h(/iP(ad|od|hone)/i),w=h(/chrome/i)&&h(/android/i),k={capture:!1,passive:!1};function x(e,t,n){e.addEventListener(t,n,!m&&k)}function C(e,t,n){e.removeEventListener(t,n,!m&&k)}function O(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function S(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function T(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&O(e,t):O(e,t))||r&&e===n)return e;if(e===n)break}while(e=S(e))}return null}var E,_=/\s+/g;function M(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_," ")}}function I(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function j(e,t){var n="";if("string"===typeof e)n=e;else do{var r=I(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function D(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function N(){var e=document.scrollingElement;return e||document.documentElement}function A(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,c,l,u,d;if(e!==window&&e!==N()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,c=o.bottom,l=o.right,u=o.height,d=o.width):(a=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!m))do{if(i&&i.getBoundingClientRect&&("none"!==I(i,"transform")||n&&"static"!==I(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(I(i,"border-top-width")),s-=f.left+parseInt(I(i,"border-left-width")),c=a+o.height,l=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var p=j(i||e),h=p&&p.a,v=p&&p.d;p&&(a/=v,s/=h,d/=h,u/=v,c=a+u,l=s+d)}return{top:a,left:s,bottom:c,right:l,width:d,height:u}}}function L(e,t,n){var r=H(e,!0),i=A(e)[t];while(r){var o=A(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===N())break;r=H(r,!1)}return!1}function P(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==Qe.ghost&&o[i]!==Qe.dragged&&T(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function B(e,t){var n=e.lastElementChild;while(n&&(n===Qe.ghost||"none"===I(n,"display")||t&&!O(n,t)))n=n.previousElementSibling;return n||null}function F(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Qe.clone||t&&!O(e,t)||n++;return n}function R(e){var t=0,n=0,r=N();if(e)do{var i=j(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function q(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function H(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=I(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(r||t)return n;r=!0}}}while(n=n.parentNode);return N()}function U(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function V(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function z(e,t){return function(){if(!E){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),E=setTimeout((function(){E=void 0}),t)}}}function $(){clearTimeout(E),E=void 0}function W(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function G(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function K(e,t){I(e,"position","absolute"),I(e,"top",t.top),I(e,"left",t.left),I(e,"width",t.width),I(e,"height",t.height)}function J(e){I(e,"position",""),I(e,"top",""),I(e,"left",""),I(e,"width",""),I(e,"height","")}var Y="Sortable"+(new Date).getTime();function X(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==I(e,"display")&&e!==Qe.ghost){t.push({target:e,rect:A(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=j(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(q(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=A(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=j(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&V(c,s)&&!V(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=Z(u,c,l,r.options)),V(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){I(e,"transition",""),I(e,"transform","");var i=j(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),c=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!c,I(e,"transform","translate3d("+s+"px,"+c+"px,0)"),Q(e),I(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),I(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){I(e,"transition",""),I(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function Q(e){return e.offsetWidth}function Z(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)!te.hasOwnProperty(t)||t in e||(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,c=e.fromEl,l=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[Y],t){var b,y=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||v?(b=document.createEvent("Event"),b.initEvent(r,!0,!0)):b=new CustomEvent(r,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=c||n,b.item=i||n,b.clone=o,b.oldIndex=l,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=f,b.originalEvent=p,b.pullMode=h?h.lastPutMode:void 0;var k=a({},g,ne.getEventProperties(r,t));for(var x in k)b[x]=k[x];n&&n.dispatchEvent(b),y[w]&&y[w].call(t,b)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=c(n,["evt"]);ne.pluginEvent.bind(Qe)(e,t,a({dragEl:ae,parentEl:se,ghostEl:ce,rootEl:le,nextEl:ue,lastDownEl:de,cloneEl:fe,cloneHidden:pe,dragStarted:Te,putSortable:ye,activeSortable:Qe.active,originalEvent:r,oldIndex:he,oldDraggableIndex:ve,newIndex:me,newDraggableIndex:ge,hideGhostForTarget:Ke,unhideGhostForTarget:Je,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(a({putSortable:ye,cloneEl:fe,targetEl:ae,rootEl:le,oldIndex:he,oldDraggableIndex:ve,newIndex:me,newDraggableIndex:ge},e))}var ae,se,ce,le,ue,de,fe,pe,he,me,ve,ge,be,ye,we,ke,xe,Ce,Oe,Se,Te,Ee,_e,Me,Ie,je=!1,De=!1,Ne=[],Ae=!1,Le=!1,Pe=[],Be=!1,Fe=[],Re="undefined"!==typeof document,qe=y,He=v||m?"cssFloat":"float",Ue=Re&&!w&&!y&&"draggable"in document.createElement("div"),Ve=function(){if(Re){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ze=function(e,t){var n=I(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=P(e,0,t),o=P(e,1,t),a=i&&I(i),s=o&&I(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=r&&"none"===n[He]||o&&"none"===n[He]&&c+l>r)?"vertical":"horizontal"},$e=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===a||i===s||r+o/2===a+c/2},We=function(e,t){var n;return Ne.some((function(r){if(!B(r)){var i=A(r),o=r[Y].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},Ge=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var c=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ke=function(){!Ve&&ce&&I(ce,"display","none")},Je=function(){!Ve&&ce&&I(ce,"display","")};Re&&document.addEventListener("click",(function(e){if(De)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),De=!1,!1}),!0);var Ye=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=We(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Y]._onDragOver(n)}}},Xe=function(e){ae&&ae.parentNode[Y]._isOutsideThisEl(e.target)};function Qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[Y]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ze(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Qe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ge(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ue,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?x(e,"pointerdown",this._onTapStart):(x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,X())}function Ze(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,o,a,s){var c,l,u=e[Y],d=u.options.onMove;return!window.CustomEvent||m||v?(c=document.createEvent("Event"),c.initEvent("move",!0,!0)):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=o||A(t),c.willInsertAfter=s,c.originalEvent=a,e.dispatchEvent(c),d&&(l=d.call(u,c,a)),l}function tt(e){e.draggable=!1}function nt(){Be=!1}function rt(e,t,n){var r=A(B(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,a,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&Me<l*i){if(!Ae&&(1===_e?c>u+l*o/2:c<d-l*o/2)&&(Ae=!0),Ae)f=!0;else if(1===_e?c<u+Me:c>d-Me)return-_e}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return ot(t);return f=f||a,f&&(c<u+l*o/2||c>d-l*o/2)?c>u+l/2?1:-1:0}function ot(e){return F(ae)<F(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Fe.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Fe.push(r)}}function ct(e){return setTimeout(e,0)}function lt(e){return clearTimeout(e)}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ee=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(s=T(s,r.draggable,n,!1),(!s||!s.animated)&&de!==s)){if(he=F(s),ve=F(s,r.draggable),"function"===typeof l){if(l.call(this,e,s,this))return oe({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=T(c,r.trim(),n,!1),r)return oe({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),l))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!T(c,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var c=A(n);if(le=o,ae=n,se=ae.parentNode,ue=ae.nextSibling,de=n,be=a.group,Qe.dragged=ae,we={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Oe=we.clientX-c.left,Se=we.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Qe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!g&&i.nativeDraggable&&(ae.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),M(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){D(ae,e.trim(),tt)})),x(s,"dragover",Ye),x(s,"mousemove",Ye),x(s,"touchmove",Ye),x(s,"mouseup",i._onDrop),x(s,"touchend",i._onDrop),x(s,"touchcancel",i._onDrop),g&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),ie("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(v||m))r();else{if(Qe.eventCanceled)return void this._onDrop();x(s,"mouseup",i._disableDelayedDrag),x(s,"touchend",i._disableDelayedDrag),x(s,"touchcancel",i._disableDelayedDrag),x(s,"mousemove",i._delayedDragTouchMoveHandler),x(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ae&&tt(ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?x(document,"pointermove",this._onTouchMove):x(document,t?"touchmove":"mousemove",this._onTouchMove):(x(ae,"dragend",this),x(le,"dragstart",this._onDragStart));try{document.selection?ct((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(je=!1,le&&ae){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&x(document,"dragover",Xe);var n=this.options;!e&&M(ae,n.dragClass,!1),M(ae,n.ghostClass,!0),Qe.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ke){this._lastX=ke.clientX,this._lastY=ke.clientY,Ke();var e=document.elementFromPoint(ke.clientX,ke.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(ke.clientX,ke.clientY),e===t)break;t=e}if(ae.parentNode[Y]._isOutsideThisEl(e),t)do{if(t[Y]){var n=void 0;if(n=t[Y]._onDragOver({clientX:ke.clientX,clientY:ke.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Je()}},_onTouchMove:function(e){if(we){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ce&&j(ce,!0),a=ce&&o&&o.a,s=ce&&o&&o.d,c=qe&&Ie&&R(Ie),l=(i.clientX-we.clientX+r.x)/(a||1)+(c?c[0]-Pe[0]:0)/(a||1),u=(i.clientY-we.clientY+r.y)/(s||1)+(c?c[1]-Pe[1]:0)/(s||1);if(!Qe.active&&!je){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ce){o?(o.e+=l-(xe||0),o.f+=u-(Ce||0)):o={a:1,b:0,c:0,d:1,e:l,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");I(ce,"webkitTransform",d),I(ce,"mozTransform",d),I(ce,"msTransform",d),I(ce,"transform",d),xe=l,Ce=u,ke=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ce){var e=this.options.fallbackOnBody?document.body:le,t=A(ae,!0,qe,!0,e),n=this.options;if(qe){Ie=e;while("static"===I(Ie,"position")&&"none"===I(Ie,"transform")&&Ie!==document)Ie=Ie.parentNode;Ie!==document.body&&Ie!==document.documentElement?(Ie===document&&(Ie=N()),t.top+=Ie.scrollTop,t.left+=Ie.scrollLeft):Ie=N(),Pe=R(Ie)}ce=ae.cloneNode(!0),M(ce,n.ghostClass,!1),M(ce,n.fallbackClass,!0),M(ce,n.dragClass,!0),I(ce,"transition",""),I(ce,"transform",""),I(ce,"box-sizing","border-box"),I(ce,"margin",0),I(ce,"top",t.top),I(ce,"left",t.left),I(ce,"width",t.width),I(ce,"height",t.height),I(ce,"opacity","0.8"),I(ce,"position",qe?"absolute":"fixed"),I(ce,"zIndex","100000"),I(ce,"pointerEvents","none"),Qe.ghost=ce,e.appendChild(ce),I(ce,"transform-origin",Oe/parseInt(ce.style.width)*100+"% "+Se/parseInt(ce.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Qe.eventCanceled?this._onDrop():(ie("setupClone",this),Qe.eventCanceled||(fe=G(ae),fe.draggable=!1,fe.style["will-change"]="",this._hideClone(),M(fe,this.options.chosenClass,!1),Qe.clone=fe),n.cloneId=ct((function(){ie("clone",n),Qe.eventCanceled||(n.options.removeCloneOnHide||le.insertBefore(fe,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&M(ae,i.dragClass,!0),t?(De=!0,n._loopId=setInterval(n._emulateDragOver,50)):(C(document,"mouseup",n._onDrop),C(document,"touchend",n._onDrop),C(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,ae)),x(document,"drop",n),I(ae,"transform","translateZ(0)")),je=!0,n._dragStartId=ct(n._dragStarted.bind(n,t,e)),x(document,"selectstart",n),Te=!0,b&&I(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,c=this.options,l=c.group,u=Qe.active,d=be===l,f=c.sort,p=ye||u,h=this,m=!1;if(!Be){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=T(s,c.draggable,o,!0),D("dragOver"),Qe.eventCanceled)return m;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return P(!1);if(De=!1,u&&!c.disabled&&(d?f||(r=!le.contains(ae)):ye===this||(this.lastPutMode=be.checkPull(this,u,ae,e))&&l.checkPut(this,u,ae,e))){if(i="vertical"===this._getDirection(e,s),t=A(ae),D("dragOverValid"),Qe.eventCanceled)return m;if(r)return se=le,N(),this._hideClone(),D("revert"),Qe.eventCanceled||(ue?le.insertBefore(ae,ue):le.appendChild(ae)),P(!0);var v=B(o,c.draggable);if(!v||rt(e,i,this)&&!v.animated){if(v===ae)return P(!1);if(v&&o===e.target&&(s=v),s&&(n=A(s)),!1!==et(le,o,ae,t,s,n,e,!!s))return N(),o.appendChild(ae),se=o,R(),P(!0)}else if(s.parentNode===o){n=A(s);var g,b,y=0,w=ae.parentNode!==o,k=!$e(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,i),x=i?"top":"left",C=L(s,"top","top")||L(ae,"top","top"),O=C?C.scrollTop:void 0;if(Ee!==s&&(g=n[x],Ae=!1,Le=!k&&c.invertSwap||w),y=it(e,s,n,i,k?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,Le,Ee===s),0!==y){var S=F(ae);do{S-=y,b=se.children[S]}while(b&&("none"===I(b,"display")||b===ce))}if(0===y||b===s)return P(!1);Ee=s,_e=y;var E=s.nextElementSibling,_=!1;_=1===y;var j=et(le,o,ae,t,s,n,e,_);if(!1!==j)return 1!==j&&-1!==j||(_=1===j),Be=!0,setTimeout(nt,30),N(),_&&!E?o.appendChild(ae):s.parentNode.insertBefore(ae,_?E:s),C&&W(C,0,O-C.scrollTop),se=ae.parentNode,void 0===g||Le||(Me=Math.abs(g-A(s)[x])),R(),P(!0)}if(o.contains(ae))return P(!1)}return!1}function D(c,l){ie(c,h,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:s,completed:P,onMove:function(n,r){return et(le,o,ae,t,n,A(n),e,r)},changed:R},l))}function N(){D("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function P(t){return D("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(M(ae,ye?ye.options.ghostClass:u.options.ghostClass,!1),M(ae,c.ghostClass,!0)),ye!==h&&h!==Qe.active?ye=h:h===Qe.active&&ye&&(ye=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){D("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Ee=null),c.dragoverBubble||e.rootEl||s===document||(ae.parentNode[Y]._isOutsideThisEl(e.target),!t&&Ye(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function R(){me=F(ae),ge=F(ae,c.draggable),oe({sortable:h,name:"change",toEl:o,newIndex:me,newDraggableIndex:ge,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Ye),C(document,"mousemove",Ye),C(document,"touchmove",Ye)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;me=F(ae),ge=F(ae,n.draggable),ie("drop",this,{evt:e}),se=ae&&ae.parentNode,me=F(ae),ge=F(ae,n.draggable),Qe.eventCanceled?this._nulling():(je=!1,Le=!1,Ae=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),lt(this.cloneId),lt(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&I(document.body,"user-select",""),I(ae,"transform",""),e&&(Te&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ce&&ce.parentNode&&ce.parentNode.removeChild(ce),(le===se||ye&&"clone"!==ye.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),ae&&(this.nativeDraggable&&C(ae,"dragend",this),tt(ae),ae.style["will-change"]="",Te&&!je&&M(ae,ye?ye.options.ghostClass:this.options.ghostClass,!1),M(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),le!==se?(me>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:le,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:le,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),ye&&ye.save()):me!==he&&me>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Qe.active&&(null!=me&&-1!==me||(me=he,ge=ve),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){ie("nulling",this),le=ae=se=ce=ue=fe=de=pe=we=ke=Te=me=ge=he=ve=Ee=_e=ye=be=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,Fe.forEach((function(e){e.checked=!0})),Fe.length=xe=Ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ae&&(this._onDragOver(e),Ze(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],T(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||at(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];T(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return T(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Ge(n)},destroy:function(){ie("destroy",this);var e=this.el;e[Y]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pe){if(ie("hideClone",this),Qe.eventCanceled)return;I(fe,"display","none"),this.options.removeCloneOnHide&&fe.parentNode&&fe.parentNode.removeChild(fe),pe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(pe){if(ie("showClone",this),Qe.eventCanceled)return;le.contains(ae)&&!this.options.group.revertClone?le.insertBefore(fe,ae):ue?le.insertBefore(fe,ue):le.appendChild(fe),this.options.group.revertClone&&this.animate(ae,fe),I(fe,"display",""),pe=!1}}else this._hideClone()}},Re&&x(document,"touchmove",(function(e){(Qe.active||je)&&e.cancelable&&e.preventDefault()})),Qe.utils={on:x,off:C,css:I,find:D,is:function(e,t){return!!T(e,t,e,!1)},extend:U,throttle:z,closest:T,toggleClass:M,clone:G,index:F,nextTick:ct,cancelNextTick:lt,detectDirection:ze,getChild:P},Qe.get=function(e){return e[Y]},Qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Qe.utils=a({},Qe.utils,e.utils)),ne.mount(e)}))},Qe.create=function(e,t){return new Qe(e,t)},Qe.version=p;var ut,dt,ft,pt,ht,mt,vt=[],gt=!1;function bt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):this.options.supportPointer?x(document,"pointermove",this._handleFallbackAutoScroll):t.touches?x(document,"touchmove",this._handleFallbackAutoScroll):x(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),wt(),yt(),$()},nulling:function(){ht=dt=ut=gt=mt=ft=pt=null,vt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(ht=e,t||v||m||b){xt(e,this.options,o,t);var a=H(o,!0);!gt||mt&&r===ft&&i===pt||(mt&&wt(),mt=setInterval((function(){var o=H(document.elementFromPoint(r,i),!0);o!==a&&(a=o,yt()),xt(e,n.options,o,t)}),10),ft=r,pt=i)}else{if(!this.options.bubbleScroll||H(o,!0)===N())return void yt();xt(e,this.options,H(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function yt(){vt.forEach((function(e){clearInterval(e.pid)})),vt=[]}function wt(){clearInterval(mt)}var kt,xt=z((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,c=t.scrollSpeed,l=N(),u=!1;dt!==n&&(dt=n,yt(),ut=t.scroll,i=t.scrollFn,!0===ut&&(ut=H(n,!0)));var d=0,f=ut;do{var p=f,h=A(p),m=h.top,v=h.bottom,g=h.left,b=h.right,y=h.width,w=h.height,k=void 0,x=void 0,C=p.scrollWidth,O=p.scrollHeight,S=I(p),T=p.scrollLeft,E=p.scrollTop;p===l?(k=y<C&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=w<O&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(k=y<C&&("auto"===S.overflowX||"scroll"===S.overflowX),x=w<O&&("auto"===S.overflowY||"scroll"===S.overflowY));var _=k&&(Math.abs(b-o)<=s&&T+y<C)-(Math.abs(g-o)<=s&&!!T),M=x&&(Math.abs(v-a)<=s&&E+w<O)-(Math.abs(m-a)<=s&&!!E);if(!vt[d])for(var j=0;j<=d;j++)vt[j]||(vt[j]={});vt[d].vx==_&&vt[d].vy==M&&vt[d].el===p||(vt[d].el=p,vt[d].vx=_,vt[d].vy=M,clearInterval(vt[d].pid),0==_&&0==M||(u=!0,vt[d].pid=setInterval(function(){r&&0===this.layer&&Qe.active._onTouchMove(ht);var t=vt[this.layer].vy?vt[this.layer].vy*c:0,n=vt[this.layer].vx?vt[this.layer].vx*c:0;"function"===typeof i&&"continue"!==i.call(Qe.dragged.parentNode[Y],n,t,e,ht,vt[this.layer].el)||W(vt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=H(f,!1)));gt=u}}),30),Ct=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Ot(){}function St(){}function Tt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;kt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=kt;!1!==r(n)?(M(n,c.swapClass,!0),kt=n):kt=null,l&&l!==kt&&M(l,c.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;kt&&M(kt,o.swapClass,!1),kt&&(o.swap||n&&n.options.swap)&&r!==kt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Et(r,kt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){kt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:kt}}})}function Et(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=F(e),r=F(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}Ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=P(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ct},o(Ot,{pluginName:"revertOnSpill"}),St.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Ct},o(St,{pluginName:"removeOnSpill"});var _t,Mt,It,jt,Dt,Nt=[],At=[],Lt=!1,Pt=!1,Bt=!1;function Ft(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?x(document,"pointerup",this._deselectMultiDrag):(x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag)),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Nt.length&&Mt===e?Nt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;It=t},delayEnded:function(){this.isMultiDrag=~Nt.indexOf(It)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Nt.length;r++)At.push(G(Nt[r])),At[r].sortableIndex=Nt[r].sortableIndex,At[r].draggable=!1,At[r].style["will-change"]="",M(At[r],this.options.selectedClass,!1),Nt[r]===It&&M(At[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Nt.length&&Mt===t&&(qt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(qt(!1,n),At.forEach((function(e){I(e,"display","")})),t(),Dt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(At.forEach((function(e){I(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Dt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Mt&&Mt.multiDrag._deselectMultiDrag(),Nt.forEach((function(e){e.sortableIndex=F(e)})),Nt=Nt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Bt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Nt.forEach((function(e){e!==It&&I(e,"position","absolute")}));var r=A(It,!1,!0,!0);Nt.forEach((function(e){e!==It&&K(e,r)})),Pt=!0,Lt=!0}n.animateAll((function(){Pt=!1,Lt=!1,t.options.animation&&Nt.forEach((function(e){J(e)})),t.options.sort&&Ht()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Pt&&~Nt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Nt.length>1&&(Nt.forEach((function(e){r.addAnimationState({target:e,rect:Pt?A(e):i}),J(e),e.fromRect=i,t.removeAnimationState(e)})),Pt=!1,Rt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Lt=!1,s.animation&&Nt.length>1&&(Pt||!n&&!i.options.sort&&!a)){var c=A(It,!1,!0,!0);Nt.forEach((function(e){e!==It&&(K(e,c),o.appendChild(e))})),Pt=!0}if(!n)if(Pt||Ht(),Nt.length>1){var l=Dt;i._showClone(t),i.options.animation&&!Dt&&l&&At.forEach((function(e){i.addAnimationState({target:e,rect:jt}),e.fromRect=jt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Nt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){jt=o({},t);var i=j(It,!0);jt.top-=i.f,jt.left-=i.e}},dragOverAnimationComplete:function(){Pt&&(Pt=!1,Ht())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!Bt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(It,l.selectedClass,!~Nt.indexOf(It)),~Nt.indexOf(It))Nt.splice(Nt.indexOf(It),1),_t=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:It,originalEvt:t});else{if(Nt.push(It),re({sortable:i,rootEl:n,name:"select",targetEl:It,originalEvt:t}),t.shiftKey&&_t&&i.el.contains(_t)){var d,f,p=F(_t),h=F(It);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~Nt.indexOf(u[f])||(M(u[f],l.selectedClass,!0),Nt.push(u[f]),re({sortable:i,rootEl:n,name:"select",targetEl:u[f],originalEvt:t}))}else _t=It;Mt=c}if(Bt&&this.isMultiDrag){if((r[Y].options.sort||r!==n)&&Nt.length>1){var m=A(It),v=F(It,":not(."+this.options.selectedClass+")");if(!Lt&&l.animation&&(It.thisAnimationDuration=null),c.captureAnimationState(),!Lt&&(l.animation&&(It.fromRect=m,Nt.forEach((function(e){if(e.thisAnimationDuration=null,e!==It){var t=Pt?A(e):m;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),Ht(),Nt.forEach((function(e){u[v]?r.insertBefore(e,u[v]):r.appendChild(e),v++})),a===F(It))){var g=!1;Nt.forEach((function(e){e.sortableIndex===F(e)||(g=!0)})),g&&o("update")}Nt.forEach((function(e){J(e)})),c.animateAll()}Mt=c}(n===r||s&&"clone"!==s.lastPutMode)&&At.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Bt=!1,At.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Bt||!Bt)&&Mt===this.sortable&&(!e||!T(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Nt.length){var t=Nt[0];M(t,this.options.selectedClass,!1),Nt.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Y];t&&t.options.multiDrag&&!~Nt.indexOf(e)&&(Mt&&Mt!==t&&(Mt.multiDrag._deselectMultiDrag(),Mt=t),M(e,t.options.selectedClass,!0),Nt.push(e))},deselect:function(e){var t=e.parentNode[Y],n=Nt.indexOf(e);t&&t.options.multiDrag&&~n&&(M(e,t.options.selectedClass,!1),Nt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Nt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Pt&&r!==It?-1:Pt?F(r,":not(."+e.options.selectedClass+")"):F(r),n.push({multiDragElement:r,index:i})})),{items:l(Nt),clones:[].concat(At),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Rt(e,t){Nt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function qt(e,t){At.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Ht(){Nt.forEach((function(e){e!==It&&e.parentNode&&e.parentNode.removeChild(e)}))}Qe.mount(new bt),Qe.mount(St,Ot),t["default"]=Qe},ac0a:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"selector",(function(){return l}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main_window"},[n("div",{staticClass:"cloud",staticStyle:{top:"15%"},attrs:{"data-type":"white_4","data-speed":"1"}}),n("div",{staticClass:"cloud",staticStyle:{top:"12%"},attrs:{"data-type":"white_2","data-speed":"2"}}),n("div",{staticClass:"cloud",staticStyle:{top:"8%"},attrs:{"data-type":"white_1","data-speed":"3"}}),n("div",{staticClass:"cloud",staticStyle:{top:"2%"},attrs:{"data-type":"white_1","data-speed":"4"}}),n("div",{staticClass:"cloud",staticStyle:{top:"25%"},attrs:{"data-type":"white_5","data-speed":"5"}}),n("div",{staticClass:"cloud",staticStyle:{top:"36%"},attrs:{"data-type":"white_4","data-speed":"6"}}),n("div",{staticClass:"cloud",staticStyle:{top:"30%"},attrs:{"data-type":"white_6","data-speed":"7"}}),n("div",{staticClass:"cloud",staticStyle:{top:"21%"},attrs:{"data-type":"white_6","data-speed":"8"}}),n("div",{staticClass:"cloud",staticStyle:{top:"46%"},attrs:{"data-type":"white_1","data-speed":"9"}}),n("div",{staticClass:"cloud",staticStyle:{top:"49%"},attrs:{"data-type":"white_2","data-speed":"10"}}),n("div",{staticClass:"cloud",staticStyle:{top:"1%"},attrs:{"data-type":"white_5","data-speed":"11"}}),n("div",{staticClass:"cloud",staticStyle:{top:"66%"},attrs:{"data-type":"white_5","data-speed":"12"}}),n("div",{staticClass:"cloud",staticStyle:{top:"64%"},attrs:{"data-type":"white_5","data-speed":"13"}}),n("div",{staticClass:"cloud",staticStyle:{top:"37%"},attrs:{"data-type":"white_5","data-speed":"14"}}),n("div",{staticClass:"cloud",staticStyle:{top:"72%"},attrs:{"data-type":"white_6","data-speed":"15"}}),n("div",{staticClass:"cloud",staticStyle:{top:"78%"},attrs:{"data-type":"white_1","data-speed":"16"}}),n("div",{staticClass:"cloud",staticStyle:{top:"81%"},attrs:{"data-type":"white_2","data-speed":"17"}}),n("div",{staticClass:"cloud",staticStyle:{top:"83%"},attrs:{"data-type":"white_6","data-speed":"18"}}),n("div",{staticClass:"cloud",staticStyle:{top:"89%"},attrs:{"data-type":"white_6","data-speed":"19"}}),n("div",{staticClass:"cloud",staticStyle:{top:"94%"},attrs:{"data-type":"white_2","data-speed":"20"}}),n("div",{staticClass:"cloud",staticStyle:{top:"99%"},attrs:{"data-type":"white_6","data-speed":"21"}}),n("div",{staticClass:"cloud",staticStyle:{top:"91%"},attrs:{"data-type":"white_6","data-speed":"22"}}),n("div",{staticClass:"cloud",staticStyle:{top:"5%"},attrs:{"data-type":"white_2","data-speed":"23"}}),n("div",{staticClass:"cloud",staticStyle:{top:"19%"},attrs:{"data-type":"white_1","data-speed":"24"}}),n("div",{staticClass:"cloud",staticStyle:{top:"28%"},attrs:{"data-type":"white_5","data-speed":"25"}}),n("div",{staticClass:"cloud",staticStyle:{top:"33%"},attrs:{"data-type":"white_1","data-speed":"26"}}),n("div",{staticClass:"cloud",staticStyle:{top:"42%"},attrs:{"data-type":"white_1","data-speed":"27"}}),n("div",{staticClass:"cloud",staticStyle:{top:"55%"},attrs:{"data-type":"white_1","data-speed":"28"}}),n("div",{staticClass:"cloud",staticStyle:{top:"51%"},attrs:{"data-type":"white_2","data-speed":"29"}}),n("div",{staticClass:"cloud",staticStyle:{top:"59%"},attrs:{"data-type":"white_2","data-speed":"30"}}),n("div",{staticClass:"cloud",staticStyle:{top:"62%"},attrs:{"data-type":"white_5","data-speed":"31"}}),n("div",{staticClass:"cloud",staticStyle:{top:"67%"},attrs:{"data-type":"white_5","data-speed":"32"}}),n("div",{staticClass:"cloud",staticStyle:{top:"77%"},attrs:{"data-type":"white_3","data-speed":"33"}}),n("div",{staticClass:"cloud",staticStyle:{top:"88%"},attrs:{"data-type":"white_2","data-speed":"34"}}),n("div",{staticClass:"cloud",staticStyle:{top:"86%"},attrs:{"data-type":"white_2","data-speed":"35"}}),n("div",{staticClass:"cloud",staticStyle:{top:"96%"},attrs:{"data-type":"white_6","data-speed":"36"}}),n("div",{staticClass:"cloud",staticStyle:{top:"100%"},attrs:{"data-type":"white_2","data-speed":"37"}}),n("div",{staticClass:"cloud",staticStyle:{top:"2%"},attrs:{"data-type":"white_1","data-speed":"38"}}),n("div",{staticClass:"cloud",staticStyle:{top:"57%"},attrs:{"data-type":"white_4","data-speed":"39"}}),n("div",{staticClass:"cloud",staticStyle:{top:"69%"},attrs:{"data-type":"white_6","data-speed":"40"}})])}],o=(n("216e"),n("2877")),a={},s=Object(o["a"])(a,r,i,!1,null,"7aa4260e",null),c=s.exports,l=function(e){return"clouds"===e}},b163:function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal-view",{staticClass:"user-subscribe",attrs:{title:e.title,value:e.show},on:{input:function(t){!e.processingLevelId&&e.$emit("close")}}},[e.loading?n("div",{staticClass:"user-subscribe__spinner-wrapper"},[n("base-spinner",{attrs:{size:"72px"}})],1):[e._t("prepend",null,{processing:!!e.processingLevelId}),n("div",{staticClass:"user-subscribe__list"},e._l(e.filteredSubscriptionLevels,(function(t){return n("subscription-item",{key:t.id,staticClass:"mt-4",attrs:{subscriptionLevel:t,disabled:e.maxCurrentSubscription&&t.pricePackage.amount<=e.maxCurrentSubscription.pricePackage.amount,selectedFeedSubscriptionLevelId:e.selectedFeedSubscriptionLevelId,purchaseSubscriptionProcessing:e.processingLevelId,"is-gradient":!!e.subscriptionLevelId},on:{subscribe:e.handleSubscribe}})})),1),e.selectedSubscriptionLevel&&e.showSubscriptionConfirmation?n("subscription-confirmation",{attrs:{user:e.user,show:e.showSubscriptionConfirmation,price:e.selectedSubscriptionLevel.pricePackage.amount},on:{close:function(t){e.showSubscriptionConfirmation=!1},confirm:e.handleConfirmSubscribe}}):e._e()]],2)},i=[],o=(n("4de4"),n("7db0"),n("caad"),n("13d5"),n("ac1f"),n("2532"),n("841c"),n("96cf"),n("1da1")),a=n("d4ec"),s=n("bee2"),c=n("262e"),l=n("2caf"),u=n("a34a"),d=n.n(u),f=n("9ab4"),p=n("2fe1"),h=n("60a3"),m=n("8c93"),v=n("a32c"),g=n("2462"),b=n("ff07"),y=n("fe95"),w=n("78f9"),k=n("31cf"),x=n("51ce"),C=n("a5de"),O=n("d3ac"),S=n("ab58"),T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("card-cost",{staticClass:"subscription-item",class:e.disabled?"__disabled":"",attrs:{description:e.subscriptionLevel.description,buttonText:e.disabled?e.$t("Available"):e.$t("Subscribe"),gradient:e.isGradient&&e.subscriptionLevel.id===e.selectedFeedSubscriptionLevelId,processing:e.subscriptionLevel.id===e.purchaseSubscriptionProcessing,disabled:!!e.purchaseSubscriptionProcessing||e.disabled,cost:e.cost},on:{click:e.handleClick},scopedSlots:e._u([{key:"caption",fn:function(){return[e._v(e._s(e.$t("per month")))]},proxy:!0}])})},E=[],_=n("2b0e"),M=n("7a27"),I=function(e){Object(c["a"])(n,e);var t=Object(l["a"])(n);function n(){return Object(a["a"])(this,n),t.apply(this,arguments)}return Object(s["a"])(n,[{key:"handleClick",value:function(){this.disabled||this.$emit("subscribe",this.subscriptionLevel)}},{key:"cost",get:function(){var e,t,n,r=Object(v["d"])();return null!==(e=null===(t=this.subscriptionLevel.pricePackage)||void 0===t?void 0:null===(n=t.costs.find((function(e){return e.currency===r})))||void 0===n?void 0:n.cost)&&void 0!==e?e:0}}]),n}(_["default"]);Object(f["__decorate"])([Object(h["e"])({type:Object,required:!0})],I.prototype,"subscriptionLevel",void 0),Object(f["__decorate"])([Object(h["e"])({type:String,required:!0})],I.prototype,"selectedFeedSubscriptionLevelId",void 0),Object(f["__decorate"])([Object(h["e"])({type:String})],I.prototype,"purchaseSubscriptionProcessing",void 0),Object(f["__decorate"])([Object(h["e"])({type:Boolean,default:!1})],I.prototype,"disabled",void 0),Object(f["__decorate"])([Object(h["e"])({type:Boolean,default:!0})],I.prototype,"isGradient",void 0),I=Object(f["__decorate"])([Object(h["a"])({name:"SubscriptionItem",components:{CardCost:M["a"]}})],I);var j=I,D=j,N=(n("18b5"),n("2877")),A=Object(N["a"])(D,T,E,!1,null,"81ea1bf2",null),L=A.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-confirm",{staticClass:"subscription-confirmation",attrs:{value:e.show,title:e.$t("Confirm subscription")},on:{input:function(t){return e.$emit("close")}},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.close;return[n("base-checkbox",{staticClass:"mt-6 __checkbox",scopedSlots:e._u([{key:"label",fn:function(){return[n("label",{staticClass:"caption"},[e._v(" "+e._s(e.$t("By subscribing to {0}, you agree that you will get charged by {1} every month.",[e.user.screenName,e.formatedPrice]))+" ")])]},proxy:!0}],null,!0),model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}}),n("base-button",{staticClass:"mt-8 __confirm",attrs:{disabled:!e.isChecked,"full-width":""},on:{click:e.$listeners.confirm}},[e._v(" "+e._s(e.$t("Subscribe for {0}/mo",[e.formatedPrice]))+" ")]),n("base-button",{staticClass:"mt-4 __cancel",attrs:{"full-width":"",secondary:""},on:{click:r}},[e._v(e._s(e.$t("Cancel")))])]}}])})},B=[],F=(n("a9e3"),n("a6f4")),R=n("5608"),q=n("9310"),H=n("bd25"),U=Object(F["c"])({name:"SubscriptionConfirmation",components:{BaseConfirm:R["a"],BaseButton:q["a"],BaseCheckbox:H["a"]},props:{user:{type:Object,required:!0},price:{type:Number,default:0},show:{type:Boolean,default:!1}},setup:function(e){var t=Object(F["a"])((function(){return Object(v["f"])(e.price)})),n=Object(F["o"])(!1);return{formatedPrice:t,isChecked:n}}}),V=U,z=Object(N["a"])(V,P,B,!1,null,null,null),$=z.exports,W=function(e){Object(c["a"])(n,e);var t=Object(l["a"])(n);function n(){var e;return Object(a["a"])(this,n),e=t.apply(this,arguments),e.processingLevelId="",e.loading=!1,e.showSubscriptionConfirmation=!1,e.selectedSubscriptionLevel=null,e.subscriptionLevels=[],e.maxCurrentSubscription=null,e.publicPaymentSystems=null,e}return Object(s["a"])(n,[{key:"handleSubscribe",value:function(e){this.showSubscriptionConfirmation||(this.showSubscriptionConfirmation=!0,this.selectedSubscriptionLevel=e)}},{key:"handleConfirmSubscribe",value:function(){var e=Object(o["a"])(d.a.mark((function e(){var t,n,r,i,o;return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.paymentSystemId&&!this.processingLevelId&&this.selectedSubscriptionLevel){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,this.showSubscriptionConfirmation=!1,this.processingLevelId=this.selectedSubscriptionLevel.id,i=null===(t=this.selectedSubscriptionLevel.pricePackage)||void 0===t?void 0:null===(n=t.costs)||void 0===n?void 0:null===(r=n.find((function(e){return e.currency===Object(v["d"])()})))||void 0===r?void 0:r.cost,o=i&&Object(v["f"])(i)||void 0,e.next=9,g["a"].subscribe({subjectType:m["RecurringBillingScheduleSubjectTypeEnum"].SUBSCRIPTION,subjectId:this.selectedSubscriptionLevel.id},this.selectedSubscriptionLevel.pricePackageId,o);case 9:y["a"].emit(C["b"].CONTENT_FEED_PURCHASED,{userId:this.user.id}),this.$emit("close",!0);case 11:return e.prev=11,this.processingLevelId="",e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[2,,11,14]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getMaxCurrentSubscriptionId",value:function(){var e=Object(o["a"])(d.a.mark((function e(){var t,n;return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=null,!this.authUser){e.next=6;break}return e.next=4,b["a"].SubscriptionProvider.search({data:{providerId:this.user.id,consumerId:this.authUser.id,expired:!1}});case 4:n=e.sent,t=n.result.length>0?n.result.reduce((function(e,t){return e.amount>t.amount?e:t})).levelId:null;case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"created",value:function(){var e=Object(o["a"])(d.a.mark((function e(){var t,n=this;return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,b["a"].PaymentSystemsProvider.findAllPublic().then((function(e){return n.publicPaymentSystems=e}));case 4:return e.next=6,this.getMaxCurrentSubscriptionId();case 6:return t=e.sent,e.next=9,b["a"].SubscriptionLevelProvider.find({userIds:[this.user.id]}).then((function(e){var r;n.$emit("levelsLoaded",e),n.maxCurrentSubscription=null!==(r=e.find((function(e){return e.id===t})))&&void 0!==r?r:null,n.subscriptionLevels=e}));case 9:return e.prev=9,this.loading=!1,e.finish(9);case 12:case"end":return e.stop()}}),e,this,[[0,,9,12]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"filteredSubscriptionLevels",get:function(){var e,t,n,r=this;if(!this.subscriptionLevelId)return this.subscriptionLevels;var i=null!==(e=null===(t=this.subscriptionLevels.find((function(e){return e.id===r.subscriptionLevelId})))||void 0===t?void 0:null===(n=t.pricePackage)||void 0===n?void 0:n.amount)&&void 0!==e?e:0;return this.subscriptionLevels.filter((function(e){var t,n;return(null!==(t=null===e||void 0===e?void 0:null===(n=e.pricePackage)||void 0===n?void 0:n.amount)&&void 0!==t?t:0)>=i}))}},{key:"mainCurrency",get:function(){return Object(v["d"])()}},{key:"paymentSystemId",get:function(){var e,t,n=this;return null===(e=this.publicPaymentSystems)||void 0===e?void 0:null===(t=e.find((function(e){return e.currencies.includes(n.mainCurrency)})))||void 0===t?void 0:t.id}},{key:"selectedFeedSubscriptionLevelId",get:function(){return this.subscriptionLevelId?this.subscriptionLevelId:this.subscriptionLevels.length>0?this.subscriptionLevels[0].id:""}}]),n}(Object(p["c"])(x["a"]));Object(f["__decorate"])([Object(h["e"])({type:Object,required:!0})],W.prototype,"user",void 0),Object(f["__decorate"])([Object(h["e"])({type:String,default:Object(w["a"])("Choose subscription")})],W.prototype,"title",void 0),Object(f["__decorate"])([Object(h["e"])({type:String})],W.prototype,"subscriptionLevelId",void 0),Object(f["__decorate"])([Object(h["e"])({type:Boolean,required:!0})],W.prototype,"show",void 0),Object(f["__decorate"])([k["a"]],W.prototype,"handleSubscribe",null),W=Object(f["__decorate"])([Object(h["a"])({name:"UserSubscribeModal",components:{SubscriptionItem:L,SubscriptionConfirmation:$,ModalView:O["a"],BaseSpinner:S["a"]}})],W);var G=W,K=G,J=(n("3b4f"),Object(N["a"])(K,r,i,!1,null,null,null)),Y=J.exports},b1fd:function(e,t,n){},b22c:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.folder.to?"router-link":"div",{tag:"component",staticClass:"menu-folder",attrs:{to:e.folder.to},on:{click:function(t){!e.folder.to&&e.$emit("click")}}},[e.folder.icon?n("base-icon",{staticClass:"menu-folder__icon",attrs:{fontSize:"24",color:"var(--palette-gray-darken-3)"}},[e._v(" "+e._s(e.folder.icon)+" ")]):e._e(),n("div",{staticClass:"menu-folder__info",class:{"px-4":e.folder.description}},[n("div",{staticClass:"menu-folder__info __title"},[e._v(e._s(e.folder.title))]),e.folder.description?n("div",{staticClass:"menu-folder__info __description"},[e._v(e._s(e.folder.description))]):e._e()]),n("base-icon",{staticClass:"menu-folder__icon",attrs:{fontSize:"24",color:"var(--palette-gray)"}},[e._v(" sci-back ")])],1)},i=[],o=n("a6f4"),a=Object(o["c"])({name:"MenuFolder",props:{folder:{type:Object,require:!0}}}),s=a,c=(n("046d"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,"7726357f",null),u=l.exports},b2f1:function(e,t,n){},b35c:function(e,t,n){},b528:function(e,t,n){},b6c1:function(e,t,n){},b751:function(e,t,n){},b76a:function(e,t,n){(function(t,r){e.exports=r(n("aa47"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,b,y,w){c(n,t,g);var k,x,C,O=function(e){if(!f&&e in _)return _[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T=b==m,E=!1,_=e.prototype,M=_[d]||_[p]||b&&_[b],I=M||O(b),j=b?T?O("entries"):I:void 0,D="Array"==t&&_.entries||M;if(D&&(C=u(D.call(new e)),C!==Object.prototype&&C.next&&(l(C,S,!0),r||"function"==typeof C[d]||a(C,d,v))),T&&M&&M.name!==m&&(E=!0,I=function(){return M.call(this)}),r&&!w||!f&&!E&&_[d]||a(_,d,I),s[t]=I,s[S]=v,b)if(k={values:T?I:O(m),keys:y?I:O(h),entries:j},w)for(x in k)x in _||o(_,x,k[x]);else i(i.P+i.F*(f||E),t,k);return k}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),l=s("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),p=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=p?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!t})):void 0;if(!p||!h||"replace"===e&&!u||"split"===e&&!d){var m=/./[f],v=n(a,f,""[e],(function(e,t,n,r,i){return t.exec===c?p&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),g=v[0],b=v[1];r(String.prototype,e,g),i(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",l=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[c][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),l=void 0!==/()??/.exec("")[1],u=c||l;u&&(a=function(e){var t,n,a,u,d=this;return l&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),c&&(t=d[s]),a=i.call(d,e),c&&a&&(d[s]=d.global?a.index+a[0].length:t),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),e.exports=a},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",l=function(e,t,n){var u,d,f,p,h=e&l.F,m=e&l.G,v=e&l.S,g=e&l.P,b=e&l.B,y=m?r:v?r[t]||(r[t]={}):(r[t]||{})[c],w=m?i:i[t]||(i[t]={}),k=w[c]||(w[c]={});for(u in m&&(n=t),n)d=!h&&y&&void 0!==y[u],f=(d?y:n)[u],p=b&&d?s(f,r):g&&"function"==typeof f?s(Function.call,f):f,y&&a(y,u,f,e&l.U),w[u]!=f&&o(w,u,p),g&&k[u]!=f&&(k[u]=f)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){var n=a(e),c=arguments.length,l=1,u=i.f,d=o.f;while(c>l){var f,p=s(arguments[l++]),h=u?r(p).concat(u(p)):r(p),m=h.length,v=0;while(m>v)d.call(p,f=h[v++])&&(n[f]=p[f])}return n}:c},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),f=String(this),p="function"===typeof t;p||(t=String(t));var g=d.global;if(g){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var w=c(d,f);if(null===w)break;if(y.push(w),!g)break;var k=String(w[0]);""===k&&(d.lastIndex=s(f,o(d.lastIndex),b))}for(var x="",C=0,O=0;O<y.length;O++){w=y[O];for(var S=String(w[0]),T=l(u(a(w.index),f.length),0),E=[],_=1;_<w.length;_++)E.push(h(w[_]));var M=w.groups;if(p){var I=[S].concat(E,T,f);void 0!==M&&I.push(M);var j=String(t.apply(void 0,I))}else j=v(S,f,T,E,M,t);T>=C&&(x+=f.slice(C,T)+j,C=T+S.length)}return x+f.slice(C)}];function v(e,t,r,o,a,s){var c=r+e.length,l=o.length,u=p;return void 0!==a&&(a=i(a),u=f),n.call(s,u,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>l){var f=d(u/10);return 0===f?n:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),d=l("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),m=0;m<h.length;m++){var v,g=h[m],b=p[g],y=a[g],w=y&&y.prototype;if(w&&(w[u]||s(w,u,f),w[d]||s(w,d,g),c[g]=f,b))for(v in r)w[v]||o(w,v,r[v],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return c}));n("a481");function r(){return"undefined"!==typeof window?window.console:e.console}var i=r();function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var a=/-(\w)/g,s=o((function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))}));function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function l(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function i(e){if(Array.isArray(e))return e}function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return i(e)||o(e,t)||s(e,t)||c()}n("6762"),n("2fdb");function u(e){if(Array.isArray(e))return a(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){return u(e)||d(e)||s(e)||f()}var h=n("a352"),m=n.n(h),v=n("c649");function g(e,t,n){return void 0===n?e:(e=e||{},e[t]=n,e)}function b(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=p(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function w(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function k(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}function x(e){return["transition-group","TransitionGroup"].includes(e)}function C(e){if(!e||1!==e.length)return!1;var t=l(e,1),n=t[0].componentOptions;return!!n&&x(n.tag)}function O(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var r=0,i=0,o=O(t,n,"header");o&&(r=o.length,e=e?[].concat(p(o),p(e)):p(o));var a=O(t,n,"footer");return a&&(i=a.length,e=e?[].concat(p(e),p(a)):p(a)),{children:e,headerOffset:r,footerOffset:i}}function T(e,t){var n=null,r=function(e,t){n=g(n,e,t)},i=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var o=t.on,a=t.props,s=t.attrs;return r("on",o),r("props",a),Object.assign(n.attrs,s),n}var E=["Start","Add","Remove","Update","End"],_=["Choose","Unchoose","Sort","Filter","Clone"],M=["Move"].concat(E,_).map((function(e){return"on"+e})),I=null,j={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},D={name:"draggable",inheritAttrs:!1,props:j,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=C(t);var n=S(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=T(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&v["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&v["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&v["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};E.forEach((function(n){t["on"+n]=k.call(e,n)})),_.forEach((function(n){t["on"+n]=w.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(v["a"])(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new m.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(v["a"])(t);-1===M.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=b(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&x(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=p(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,p(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),I=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(v["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(v["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(v["d"])(e.clone)},onDragUpdate:function(e){Object(v["d"])(e.item),Object(v["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=p(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(I);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(r,e);Object.assign(i,{futureIndex:o});var a=Object.assign({},e,{relatedContext:r,draggedContext:i});return n(a,t)},onDragEnd:function(){this.computeIndexes(),I=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",D);var N=D;t["default"]=N}})["default"]}))},b796:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"selector",(function(){return l}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"animation-spinning-orbs"},[n("div",{staticClass:"animation-spinning-orbs__head"}),n("div",{staticClass:"animation-spinning-orbs__body"})])}],o=(n("4052"),n("2877")),a={},s=Object(o["a"])(a,r,i,!1,null,"1d8fd22d",null),c=s.exports,l=function(e){return"spinning-orbs"===e}},b7d1:function(e,t,n){"use strict";n("52ae")},b943:function(e,t,n){},bb6c:function(e,t,n){},bf42:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return U}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.selectedFeed&&!e.loading?n("unlock-feed-view",{attrs:{selectedFeed:e.selectedFeed,paymentPackages:e.paymentPackages,"purchase-processing":e.purchaseProcessing},on:{close:e.handleClose,purchase:e.handleOneTimePurchase}}):e._e()},i=[],o=(n("7db0"),n("caad"),n("2532"),n("96cf"),n("1da1")),a=n("d4ec"),s=n("bee2"),c=n("262e"),l=n("2caf"),u=n("a34a"),d=n.n(u),f=n("9ab4"),p=n("2fe1"),h=n("60a3"),m=n("b98d"),v=n("e3ec"),g=n("a5de"),b=n("ff07"),y=n("fe95"),w=n("556c"),k=n("a32c"),x=n("51ce"),C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isOnlyPrice?n("base-confirm",{staticClass:"unlock-feed __confirm",attrs:{title:e.$t("Get access to this post"),value:!!e.selectedFeed},on:{input:function(t){!e.purchaseProcessing&&e.$emit("close")}},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.close;return[n("base-button",{staticClass:"unlock-feed__onetime-purchase mt-8",attrs:{fullWidth:"",loading:e.purchaseProcessing},on:{click:function(t){return e.$emit("purchase",e.selectedFeed)}}},[n("format-money",{attrs:{cost:e.oneTimeCost},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.amount,r=t.symbol,i=t.separator;return[e._v(e._s(e.$t("Unlock for"))+" "+e._s(r)+e._s(n[0])+e._s(i+n[1]))]}}],null,!0)})],1),n("base-button",{staticClass:"mt-4",attrs:{fullWidth:"",secondary:""},on:{click:function(t){!e.purchaseProcessing&&r()}}},[e._v(e._s(e.$t("Cancel")))])]}}],null,!1,643861037)}):n("user-subscribe-modal",{staticClass:"unlock-feed __modal",attrs:{user:e.selectedFeed.user,title:e.$t("Get access to this post"),subscriptionLevelId:e.selectedFeed.subscriptionLevelId,show:!!e.selectedFeed},on:{close:function(t){return e.$emit("close")}},scopedSlots:e._u([{key:"prepend",fn:function(t){var r=t.processing;return[e.oneTimeCost?[n("base-button",{staticClass:"unlock-feed__onetime-purchase",attrs:{loading:e.purchaseProcessing,secondary:!0,"full-width":""},on:{click:function(t){!e.purchaseProcessing&&!r&&e.$emit("purchase",e.selectedFeed)}}},[n("format-money",{attrs:{cost:e.oneTimeCost},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.amount,r=t.symbol,i=t.separator;return[e._v(e._s(e.$t("Unlock for"))+" "+e._s(r)+e._s(n[0])+e._s(i+n[1]))]}}],null,!0)})],1),n("div",{staticClass:"unlock-feed__or my-4"},[e._v(e._s(e.$t("or")))])]:e._e(),n("div",{staticClass:"unlock-feed__subtitle"},[e._v(" "+e._s(e.$t("Please click subscribe below"))+" ")]),n("div",{staticClass:"unlock-feed__description"},[e._v(" "+e._s(e.$t("The following subscription will give you access to this Creator's premium content"))+" ")])]}}])})},O=[],S=n("2b0e"),T=n("bef0"),E=n("1031"),_=n("9310"),M=n("5608"),I=n("6d37"),j=n("b163"),D=function(e){Object(c["a"])(n,e);var t=Object(l["a"])(n);function n(){return Object(a["a"])(this,n),t.apply(this,arguments)}return Object(s["a"])(n,[{key:"isOnlyPrice",get:function(){return"0"===this.selectedFeed.subscriptionLevelId&&"0"!==this.selectedFeed.pricePackageId}},{key:"oneTimeCost",get:function(){var e=this;if("0"===this.selectedFeed.pricePackageId)return 0;var t=this.paymentPackages.find((function(t){return t.id===e.selectedFeed.pricePackageId}));return t?Object(k["a"])(t):0}}]),n}(S["default"]);Object(f["__decorate"])([Object(h["e"])({required:!0})],D.prototype,"selectedFeed",void 0),Object(f["__decorate"])([Object(h["e"])({type:Array,required:!0})],D.prototype,"paymentPackages",void 0),Object(f["__decorate"])([Object(h["e"])({type:Boolean,required:!0})],D.prototype,"purchaseProcessing",void 0),D=Object(f["__decorate"])([Object(h["a"])({name:"UnlockFeedView",components:{UserSubscribeModal:j["a"],PageTitle:E["a"],BaseButton:_["a"],ModalView:T["a"],BaseConfirm:M["a"],FormatMoney:I["a"]}})],D);var N=D,A=N,L=(n("27fb"),n("2877")),P=Object(L["a"])(A,C,O,!1,null,null,null),B=P.exports,F=function(e){Object(c["a"])(n,e);var t=Object(l["a"])(n);function n(){var e;return Object(a["a"])(this,n),e=t.apply(this,arguments),e.loading=!1,e.selectedFeed=null,e.paymentPackages=[],e.publicPaymentSystems=null,e.purchaseProcessing=!1,e}return Object(s["a"])(n,[{key:"handleOneTimePurchase",value:function(){var e=Object(o["a"])(d.a.mark((function e(t){var n;return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t&&this.paymentSystemId){e.next=3;break}return e.abrupt("return");case 3:return this.purchaseProcessing=!0,n={subjectId:t.id,subjectType:m["ContentPriceSubjectTypeEnum"].CONTENT_SET},e.prev=5,b["a"].ContentPriceProvider.setReceiveErrors(!1),e.next=9,b["a"].ContentPriceProvider.purchase({data:n});case 9:y["a"].emit(g["b"].CONTENT_FEED_PURCHASED,{userId:t.userId,feedId:t.id}),e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](5),Object(w["a"])(e.t0,(function(e){var t;return"{com.scrile.money.validation.SpendingBalanceValidator.message}"===(null===(t=e.details)||void 0===t?void 0:t.messageTemplate)}),(function(){return y["a"].emit(g["b"].BALANCE_REFILL_SHOW,!0)}));case 15:this.selectedFeed=null;case 16:return e.prev=16,this.purchaseProcessing=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[0,,16,19],[5,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showUnlockFeed",value:function(){var e=Object(o["a"])(d.a.mark((function e(t){var n=this;return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.loading){e.next=2;break}return e.abrupt("return");case 2:try{this.loading=!0,b["a"].PaymentPackageProvider.findAll({type:[v["PaymentPackageEnum"].FILESET]}).then((function(e){return n.paymentPackages=e})),this.selectedFeed=t}finally{this.loading=!1}case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"handleClose",value:function(){this.selectedFeed=null}},{key:"created",value:function(){var e=this;b["a"].PaymentSystemsProvider.findAllPublic().then((function(t){return e.publicPaymentSystems=t})),y["a"].on(g["b"].CONTENT_FEED_PURCHASE,this.showUnlockFeed)}},{key:"destroyed",value:function(){y["a"].off(g["b"].CONTENT_FEED_PURCHASE,this.showUnlockFeed)}},{key:"mainCurrency",get:function(){return Object(k["d"])()}},{key:"paymentSystemId",get:function(){var e,t,n=this;return null===(e=this.publicPaymentSystems)||void 0===e?void 0:null===(t=e.find((function(e){return e.currencies.includes(n.mainCurrency)})))||void 0===t?void 0:t.id}}]),n}(Object(p["c"])(x["a"]));F=Object(f["__decorate"])([Object(h["a"])({name:"UnlockFeed",components:{UnlockFeedView:B}})],F);var R=F,q=R,H=Object(L["a"])(q,r,i,!1,null,null,null),U=H.exports},bfb5:function(e,t,n){"use strict";n("6a9e")},c0cc4:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return O})),n.d(t,"selector",(function(){return S}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Follow button")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput,validation:function(t){e.isValid=t}}})],1)],1)},i=[],o=(n("99af"),n("d3b7"),n("ddb0"),n("96cf"),n("1da1")),a=n("2909"),s=n("a34a"),c=n.n(s),l=n("a6f4"),u=n("2ef0"),d=n("c3b0"),f=n("78f9"),p=n("fe95"),h=n("a5de"),m=n("ab58"),v=n("1031"),g=n("9058"),b=n("93c4"),y=n("b22c"),w=Object(l["c"])({name:"EditFormFollowButton",components:{MenuFolder:y["a"],PageTitle:v["a"],BaseIcon:g["a"],BaseSpinner:m["a"],BaseForm:b["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(d["b"])(Object(l["p"])(e,"user")),n=t.loading,r=t.values,i=t.updateProfileSettings,s=Object(l["o"])(!1),m=Object(l["a"])((function(){return[{name:"showFollowButton",type:"switch",label:Object(f["a"])("Show button on profile page")}].concat(Object(a["a"])(r.value.showFollowButton?[{name:"smallFollowButton",type:"switch",label:Object(f["a"])("Small Follow button")}].concat(Object(a["a"])(r.value.smallFollowButton?[]:[{name:"followButtonText",label:Object(f["a"])("Follow button text"),rules:["required"],autocomplete:"off"},{name:"animateFollowButton",type:"switch",label:Object(f["a"])("Follow button animation")}])):[]))})),v=Object(u["debounce"])(Object(o["a"])(c.a.mark((function e(){var t;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n.value&&s.value){e.next=2;break}return e.abrupt("return");case 2:return t={showFollowButton:r.value.showFollowButton,smallFollowButton:r.value.smallFollowButton,followButtonText:r.value.followButtonText,animateFollowButton:r.value.animateFollowButton},e.next=5,i(t);case 5:p["a"].emit(h["b"].NOTIFICATION_SHOW,{text:Object(f["a"])("Changes saved"),timeout:1500});case 6:case"end":return e.stop()}}),e)}))),500),g=function(e){r.value=e,v()};return{loading:n,isValid:s,fields:m,values:r,save:v,onFormInput:g}}}),k=w,x=(n("97cc"),n("2877")),C=Object(x["a"])(k,r,i,!1,null,"5c8a35ae",null),O=C.exports,S=function(e){return"followButton"===e}},c114:function(e,t,n){},c3b0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return p}));n("7db0"),n("ac1f"),n("5319");var r,i=n("5530"),o=(n("96cf"),n("1da1")),a=n("a34a"),s=n.n(a),c=n("a6f4"),l=n("b1ec"),u=n("ff07"),d=n("78f9");(function(e){e["COLOR"]="COLOR",e["PICTURE"]="PICTURE",e["ANIMATION"]="ANIMATION"})(r||(r={}));var f={gradientLinkButtons:!1,expandLinkButtons:!0,buttonsBorderRadius:Object(l["b"])("--buttons-border-radius").replace("px",""),smallFollowButton:!1,animateFollowButton:!0,socialButtonsLocation:"bellow",followButtonText:Object(d["a"])("FOLLOW"),textColor:Object(l["b"])("--palette-fg").replace("#",""),linkColor:Object(l["b"])("--palette-secondary").replace("#",""),showPostsForNonFollowers:!0,showButtonsByDefault:!0,showFollowButton:!0,messageButtonVisibility:"everyone",profileVideoUrl:"",profileVideoLocation:"aboveAllButtons",background:{animationType:"clouds",colorEnd:"FFFFFF",colorStart:"FFFFFF",imageUuid:void 0,type:void 0},camsodaWidget:{display:!1,username:""},disabledHubzterLive:!1,enableSearchModels:!1};function p(e){var t=Object(c["o"])(f),n=Object(c["o"])({}),r=Object(c["o"])(!1),a=Object(c["o"])(f);Object(c["s"])(e,function(){var e=Object(o["a"])(s.a.mark((function e(o,c){var l,d,p;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if((null===o||void 0===o?void 0:o.id)!==(null===c||void 0===c?void 0:c.id)&&o){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,r.value=!0,e.next=6,u["a"].QuestionaryInfoProvider.find({id:o.id});case 6:p=e.sent,n.value=p.fields,t.value=JSON.parse(null!==(l=null===(d=p.fields)||void 0===d?void 0:d.profileSettings)&&void 0!==l?l:"{}"),t.value=Object(i["a"])(Object(i["a"])({},f),t.value),a.value=Object(i["a"])(Object(i["a"])({},a.value),t.value);case 11:return e.prev=11,r.value=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[2,,11,14]])})));return function(t,n){return e.apply(this,arguments)}}(),{immediate:!0});var l=function(){var n=Object(o["a"])(s.a.mark((function n(r){var o;return s.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.value=Object(i["a"])(Object(i["a"])({},t.value),r),n.next=3,u["a"].QuestionaryInfoProvider.update({data:{fields:{userId:null===(o=e.value)||void 0===o?void 0:o.id,profileSettings:JSON.stringify(t.value)}}});case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return{loading:r,values:a,profileSettings:Object(c["a"])((function(){return t.value})),infoValues:n,updateProfileSettings:l}}},c619:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-avatar",e._b({staticClass:"profile-header__avatar mx-auto",attrs:{size:112}},"base-avatar",e.$props,!1))},i=[],o=n("d4ec"),a=n("262e"),s=n("2caf"),c=n("9ab4"),l=n("2b0e"),u=n("2fe1"),d=n("60a3"),f=n("7fc7"),p=function(e){Object(a["a"])(n,e);var t=Object(s["a"])(n);function n(){return Object(o["a"])(this,n),t.apply(this,arguments)}return n}(l["default"]);Object(c["__decorate"])([Object(d["e"])({type:Object,required:!0})],p.prototype,"user",void 0),Object(c["__decorate"])([Object(d["e"])({type:Boolean,default:!1})],p.prototype,"animate",void 0),p=Object(c["__decorate"])([Object(u["b"])({name:"ProfileHeaderAvatar",components:{BaseAvatar:f["a"]}})],p);var h=p,m=h,v=(n("411c"),n("2877")),g=Object(v["a"])(m,r,i,!1,null,"574649af",null),b=g.exports},c63c:function(e,t,n){},c78b:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return F})),n.d(t,"selector",(function(){return R}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("page-title",{on:{click:function(t){return e.$emit("back")}}},[e._v(e._s(e.$t("Page design")))]),n("div",{staticClass:"profile-edit__form-wrapper"},[e.loading?n("div",{staticClass:"d-center pa-4"},[n("base-spinner")],1):n("base-form",{attrs:{fields:e.fields,values:e.values},on:{input:e.onFormInput,validation:function(t){e.isValid=t}},scopedSlots:e._u([{key:"colors",fn:function(t){var r=t.field;return[n("div",{staticClass:"edit-form-page-design__picker-wrapper"},e._l(r.colorFields,(function(t){return n("input-color-picker",{key:t.name,attrs:{name:t.name,width:"200px",color:e.values[t.name],label:t.label},on:{colorChanged:function(n){var r;return e.setProfileSettings((r={},r[t.name]=n,r))}}})})),1)]}},{key:"backgroundEditor",fn:function(){return[n("background-editor",{attrs:{background:e.values.background},on:{change:e.setBackgroundProfileSettings,deletedFile:e.emitMessage}})]},proxy:!0}])})],1)],1)},i=[],o=(n("d3b7"),n("ddb0"),n("5530")),a=(n("96cf"),n("1da1")),s=n("a34a"),c=n.n(s),l=n("a6f4"),u=n("c3b0"),d=n("78f9"),f=n("fe95"),p=n("2ef0"),h=n("a5de"),m=n("ab58"),v=n("1031"),g=n("9058"),b=n("93c4"),y=n("a186"),w=n("b22c"),k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"background-editor"},[n("base-form",{attrs:{fields:e.backgroundTypeFields,values:e.values},on:{input:e.onInputSettings}}),e.values.type===e.backgroundSettingsType.COLOR?[n("div",{staticClass:"background-editor__picker-wrapper"},e._l(e.pickerList,(function(t){return n("input-color-picker",{key:t.name,staticClass:"mt-6",attrs:{name:t.name,width:"200px",color:t.value,label:t.label},on:{colorChanged:function(n){var r;return e.setBackgroundSettings((r={},r[t.name]=n,r))}}})})),1)]:e._e(),e.values.type===e.backgroundSettingsType.PICTURE?[e.imageSrc||e.loadingImage?n("base-image",{staticClass:"background-editor__img mb-6",attrs:{src:e.imageSrc,loading:e.loadingImage,"top-right-icon":""},scopedSlots:e._u([{key:"top-right",fn:function(){return[n("base-icon",{staticClass:"background-editor__img-delete mt-1 mr-1",attrs:{"font-size":24},on:{click:e.onDeleteFile}},[e._v("sci-cross")])]},proxy:!0}],null,!1,3351059308)}):e._e(),n("base-input-file",{attrs:{accept:"image"},on:{input:e.onAddFile},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.selectFile;return[n("base-button",{staticClass:"background-editor__upload-picture-btn",attrs:{gray:""},on:{click:r}},[n("base-icon",{attrs:{"font-size":"24"}},[e._v("sci-plus")]),e._v(" "+e._s(e.$t("Upload picture")))],1)]}}],null,!1,751977518)})]:e._e(),e.values.type===e.backgroundSettingsType.ANIMATION?[n("base-form",{attrs:{fields:e.animationTypeFields,values:e.values},on:{input:e.onInputSettings}})]:e._e()],2)},x=[],C=n("64ae"),O=n("427f"),S=n("4afc"),T=n("bef0"),E=n("bc3d"),_=n("0fb2"),M=n("9310"),I=Object(l["c"])({name:"BackgroundEditor",components:{BaseForm:b["a"],ModalView:T["a"],InputColorPicker:y["a"],BaseInputFile:E["a"],BaseImage:_["a"],BaseButton:M["a"]},props:{background:{type:Object}},setup:function(e,t){var n=t.emit,r=Object(O["a"])(),i=r.uploadThenUpdate,s=r.findFiles,f=r.deleteFile,p=Object(S["a"])(),h=p.authUserStrict,m=[{name:"type",label:Object(d["a"])("Effect"),type:"select",fieldClass:"mt-1",options:[{text:Object(d["a"])("Default"),value:void 0},{text:Object(d["a"])("Color"),value:u["a"].COLOR},{text:Object(d["a"])("Picture"),value:u["a"].PICTURE},{text:Object(d["a"])("Animation"),value:u["a"].ANIMATION}]}],v=[{name:"animationType",label:Object(d["a"])("Animation"),type:"select",options:[{text:Object(d["a"])("Alternate Background Colors"),value:"alternate"},{text:Object(d["a"])("Blue Sky"),value:"blue"},{text:Object(d["a"])("Bubble"),value:"bubble"},{text:Object(d["a"])("Moving Clouds"),value:"clouds"},{text:Object(d["a"])("Horizontal Gradient Colors"),value:"horizontal-gradient"},{text:Object(d["a"])("Rainbow Hearts"),value:"hearts"},{text:Object(d["a"])("Moon In The Sky"),value:"moon-sky"},{text:Object(d["a"])("Night Sky"),value:"night"},{text:Object(d["a"])("Sparkles"),value:"sparkle"},{text:Object(d["a"])("Spinning Orbs"),value:"spinning-orbs"},{text:Object(d["a"])("Star Glitters"),value:"stars"}]}],g=Object(l["o"])(e.background||{}),b=Object(l["a"])((function(){var e,t;return[{name:"colorStart",value:null===(e=g.value)||void 0===e?void 0:e.colorStart,label:Object(d["a"])("Top background color")},{name:"colorEnd",value:null===(t=g.value)||void 0===t?void 0:t.colorEnd,label:Object(d["a"])("Bottom background color")}]})),y=Object(l["o"])(""),w=Object(l["o"])(!1),k=function(){var e=Object(a["a"])(c.a.mark((function e(){var t;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={subjectId:h.value.id,type:"page_background"},y.value="",e.next=4,f({fileId:t});case 4:n("deletedFile");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){g.value.type!==u["a"].PICTURE&&(g.value.imageUuid&&k(),g.value.imageUuid=void 0),n("change",g.value)},T=function(){var t=Object(a["a"])(c.a.mark((function t(){var n,r,i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null===(n=e.background)||void 0===n||!n.imageUuid){t.next=11;break}return w.value=!0,r={subjectId:h.value.id,type:"page_background"},t.prev=3,t.next=6,s({fileIds:[r]});case 6:i=t.sent,i.length&&(y.value=Object(C["d"])(i[0],i[0].urlPart,"480p"));case 8:return t.prev=8,w.value=!1,t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[3,,8,11]])})));return function(){return t.apply(this,arguments)}}(),E=function(e){g.value=Object(o["a"])(Object(o["a"])({},g.value),e),x()},_=function(){var e=Object(a["a"])(c.a.mark((function e(t){var n,r;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={subjectId:h.value.id,type:"page_background"},e.prev=1,w.value=!0,e.next=5,i({fileId:n,file:t[0]});case 5:r=e.sent,g.value=Object(o["a"])(Object(o["a"])({},g.value),{},{imageUuid:r.uuid}),y.value=Object(C["d"])(r,r.urlPart,"480p");case 8:return e.prev=8,w.value=!1,x(),e.finish(8);case 12:case"end":return e.stop()}}),e,null,[[1,,8,12]])})));return function(t){return e.apply(this,arguments)}}(),M=function(e){g.value=Object(o["a"])(Object(o["a"])({},g.value),e),x()};return T(),{pickerList:b,imageSrc:y,loadingImage:w,backgroundTypeFields:m,animationTypeFields:v,backgroundSettingsType:u["a"],values:g,onAddFile:_,onInputSettings:M,onDeleteFile:k,setBackgroundSettings:E}}}),j=I,D=(n("4606"),n("2877")),N=Object(D["a"])(j,k,x,!1,null,null,null),A=N.exports,L=Object(l["c"])({name:"EditFormPageDesign",components:{MenuFolder:w["a"],PageTitle:v["a"],BaseIcon:g["a"],InputColorPicker:y["a"],BaseSpinner:m["a"],BaseForm:b["a"],BackgroundEditor:A},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(u["b"])(Object(l["p"])(e,"user")),n=t.loading,r=t.values,i=t.updateProfileSettings,s=Object(l["o"])(!1),m=Object(l["o"])(!1),v=Object(l["a"])((function(){return[{name:"colors",fieldClass:"mb-5",colorFields:[{name:"textColor",label:Object(d["a"])("Text color")},{name:"linkColor",label:Object(d["a"])("Link color")}]},{name:"background",type:"subtitle",label:Object(d["a"])("Background"),fieldClass:"mb-2"},{name:"backgroundEditor",fieldClass:"mt-1 mb-1"},{name:"design-subtitle",type:"subtitle",label:Object(d["a"])("Design"),fieldClass:"mt-5 mb-1"},{name:"buttonsBorderRadius",label:Object(d["a"])("Buttons roundness"),type:"select",options:[{text:Object(d["a"])("0%"),value:"0"},{text:Object(d["a"])("25%"),value:"9"},{text:Object(d["a"])("50%"),value:"18"},{text:Object(d["a"])("75%"),value:"27"},{text:Object(d["a"])("100%"),value:"36"}]},{name:"gradientLinkButtons",type:"switch",label:Object(d["a"])("3D effect")}]})),g=function(){return f["a"].emit(h["b"].NOTIFICATION_SHOW,{text:Object(d["a"])("Changes saved"),timeout:1500})},b=Object(p["debounce"])(Object(a["a"])(c.a.mark((function e(){var t;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n.value&&m.value){e.next=2;break}return e.abrupt("return");case 2:return t={linkColor:r.value.linkColor,textColor:r.value.textColor,background:r.value.background,buttonsBorderRadius:r.value.buttonsBorderRadius,gradientLinkButtons:r.value.gradientLinkButtons},e.next=5,i(t);case 5:g();case 6:case"end":return e.stop()}}),e)}))),500),y=function(e){r.value=Object(o["a"])(Object(o["a"])({},r.value),e),b()},w=function(e){r.value=Object(o["a"])(Object(o["a"])({},r.value),{},{background:Object(o["a"])(Object(o["a"])({},r.value.background),e)}),b()},k=function(e){r.value=e,b()};return{loading:n,isValid:m,fields:v,values:r,showBackgroundModal:s,setProfileSettings:y,setBackgroundProfileSettings:w,onFormInput:k,emitMessage:g,save:b}}}),P=L,B=(n("f5bc"),Object(D["a"])(P,r,i,!1,null,"75939c1f",null)),F=B.exports,R=function(e){return"pageDesign"===e}},ca4a:function(e,t,n){"use strict";n("aa15")},ca83:function(e,t,n){},cc22:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u})),n.d(t,"selector",(function(){return d}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"containerRef",staticClass:"animation-alternate"})},i=[],o=(n("fb6a"),n("d3b7"),n("25f0"),n("a6f4")),a=Object(o["c"])({name:"AnimationAlternate",setup:function(){var e=Object(o["o"])();return Object(o["j"])((function(){e.value&&setInterval((function(){var t="#"+("000000"+Math.floor(16777215*Math.random()).toString(16)).slice(-6);e.value&&(e.value.style.background=t)}),4e3)})),{containerRef:e}}}),s=a,c=(n("1486"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,"1407c06e",null),u=l.exports,d=function(e){return"alternate"===e}},ccf0:function(e,t,n){"use strict";n("ca83")},d14c:function(e,t,n){},d68a:function(e,t,n){"use strict";n("e45a")},d996:function(e,t,n){"use strict";n("64b1")},d9c4:function(e,t,n){},da5b7:function(e,t,n){"use strict";n("e4f8")},debc:function(e,t,n){"use strict";n("0e5c")},e0d3:function(e,t,n){var r,i,o,a=function(){var e=function(e,t){var r=236,o=17,p=e,h=n[t],m=null,v=0,b=null,y=[],w={},k=function(e,t){v=4*p+17,m=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(v),x(0,0),x(v-7,0),x(0,v-7),S(),O(),E(e,t),p>=7&&T(e),null==b&&(b=I(p,h,y)),_(b,t)},x=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||v<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||v<=t+r||(m[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},C=function(){for(var e=0,t=0,n=0;n<8;n+=1){k(!0,n);var r=i.getLostPoint(w);(0==n||e>r)&&(e=r,t=n)}return t},O=function(){for(var e=8;e<v-8;e+=1)null==m[e][6]&&(m[e][6]=e%2==0);for(var t=8;t<v-8;t+=1)null==m[6][t]&&(m[6][t]=t%2==0)},S=function(){for(var e=i.getPatternPosition(p),t=0;t<e.length;t+=1)for(var n=0;n<e.length;n+=1){var r=e[t],o=e[n];if(null==m[r][o])for(var a=-2;a<=2;a+=1)for(var s=-2;s<=2;s+=1)m[r+a][o+s]=-2==a||2==a||-2==s||2==s||0==a&&0==s}},T=function(e){for(var t=i.getBCHTypeNumber(p),n=0;n<18;n+=1){var r=!e&&1==(t>>n&1);m[Math.floor(n/3)][n%3+v-8-3]=r}for(n=0;n<18;n+=1){r=!e&&1==(t>>n&1);m[n%3+v-8-3][Math.floor(n/3)]=r}},E=function(e,t){for(var n=h<<3|t,r=i.getBCHTypeInfo(n),o=0;o<15;o+=1){var a=!e&&1==(r>>o&1);o<6?m[o][8]=a:o<8?m[o+1][8]=a:m[v-15+o][8]=a}for(o=0;o<15;o+=1){a=!e&&1==(r>>o&1);o<8?m[8][v-o-1]=a:o<9?m[8][15-o-1+1]=a:m[8][15-o-1]=a}m[v-8][8]=!e},_=function(e,t){for(var n=-1,r=v-1,o=7,a=0,s=i.getMaskFunction(t),c=v-1;c>0;c-=2){6==c&&(c-=1);while(1){for(var l=0;l<2;l+=1)if(null==m[r][c-l]){var u=!1;a<e.length&&(u=1==(e[a]>>>o&1));var d=s(r,c-l);d&&(u=!u),m[r][c-l]=u,o-=1,-1==o&&(a+=1,o=7)}if(r+=n,r<0||v<=r){r-=n,n=-n;break}}}},M=function(e,t){for(var n=0,r=0,o=0,s=new Array(t.length),c=new Array(t.length),l=0;l<t.length;l+=1){var u=t[l].dataCount,d=t[l].totalCount-u;r=Math.max(r,u),o=Math.max(o,d),s[l]=new Array(u);for(var f=0;f<s[l].length;f+=1)s[l][f]=255&e.getBuffer()[f+n];n+=u;var p=i.getErrorCorrectPolynomial(d),h=a(s[l],p.getLength()-1),m=h.mod(p);c[l]=new Array(p.getLength()-1);for(f=0;f<c[l].length;f+=1){var v=f+m.getLength()-c[l].length;c[l][f]=v>=0?m.getAt(v):0}}var g=0;for(f=0;f<t.length;f+=1)g+=t[f].totalCount;var b=new Array(g),y=0;for(f=0;f<r;f+=1)for(l=0;l<t.length;l+=1)f<s[l].length&&(b[y]=s[l][f],y+=1);for(f=0;f<o;f+=1)for(l=0;l<t.length;l+=1)f<c[l].length&&(b[y]=c[l][f],y+=1);return b},I=function(e,t,n){for(var a=s.getRSBlocks(e,t),l=c(),u=0;u<n.length;u+=1){var d=n[u];l.put(d.getMode(),4),l.put(d.getLength(),i.getLengthInBits(d.getMode(),e)),d.write(l)}var f=0;for(u=0;u<a.length;u+=1)f+=a[u].dataCount;if(l.getLengthInBits()>8*f)throw"code length overflow. ("+l.getLengthInBits()+">"+8*f+")";l.getLengthInBits()+4<=8*f&&l.put(0,4);while(l.getLengthInBits()%8!=0)l.putBit(!1);while(1){if(l.getLengthInBits()>=8*f)break;if(l.put(r,8),l.getLengthInBits()>=8*f)break;l.put(o,8)}return M(l,a)};w.addData=function(e,t){t=t||"Byte";var n=null;switch(t){case"Numeric":n=l(e);break;case"Alphanumeric":n=u(e);break;case"Byte":n=d(e);break;case"Kanji":n=f(e);break;default:throw"mode:"+t}y.push(n),b=null},w.isDark=function(e,t){if(e<0||v<=e||t<0||v<=t)throw e+","+t;return m[e][t]},w.getModuleCount=function(){return v},w.make=function(){if(p<1){for(var e=1;e<40;e++){for(var t=s.getRSBlocks(e,h),n=c(),r=0;r<y.length;r++){var o=y[r];n.put(o.getMode(),4),n.put(o.getLength(),i.getLengthInBits(o.getMode(),e)),o.write(n)}var a=0;for(r=0;r<t.length;r++)a+=t[r].dataCount;if(n.getLengthInBits()<=8*a)break}p=e}k(!1,C())},w.createTableTag=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+t+"px;",n+='">',n+="<tbody>";for(var r=0;r<w.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<w.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=w.isDark(r,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>",n},w.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(i=arguments[0],e=i.cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t="undefined"==typeof t?4*e:t,n="string"===typeof n?{text:n}:n||{},n.text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,r="string"===typeof r?{text:r}:r||{},r.text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,c,l,u=w.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=i.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+j([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+j(r.id)+'">'+j(r.text)+"</title>":"",d+=n.text?'<description id="'+j(n.id)+'">'+j(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',s=0;s<w.getModuleCount();s+=1)for(c=s*e+t,o=0;o<w.getModuleCount();o+=1)w.isDark(s,o)&&(a=o*e+t,d+="M"+a+","+c+l);return d+='" stroke="transparent" fill="black"/>',d+="</svg>",d},w.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=w.getModuleCount()*e+2*t,r=t,i=n-t;return g(n,n,(function(t,n){if(r<=t&&t<i&&r<=n&&n<i){var o=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return w.isDark(a,o)?0:1}return 1}))},w.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var r=w.getModuleCount()*e+2*t,i="";return i+="<img",i+=' src="',i+=w.createDataURL(e,t),i+='"',i+=' width="',i+=r,i+='"',i+=' height="',i+=r,i+='"',n&&(i+=' alt="',i+=j(n),i+='"'),i+="/>",i};var j=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r;break}}return t},D=function(e){var t=1;e="undefined"==typeof e?2*t:e;var n,r,i,o,a,s=w.getModuleCount()*t+2*e,c=e,l=s-e,u={"██":"█","█ ":"▀"," █":"▄","  ":" "},d={"██":"▀","█ ":"▀"," █":" ","  ":" "},f="";for(n=0;n<s;n+=2){for(i=Math.floor((n-c)/t),o=Math.floor((n+1-c)/t),r=0;r<s;r+=1)a="█",c<=r&&r<l&&c<=n&&n<l&&w.isDark(i,Math.floor((r-c)/t))&&(a=" "),c<=r&&r<l&&c<=n+1&&n+1<l&&w.isDark(o,Math.floor((r-c)/t))?a+=" ":a+="█",f+=e<1&&n+1>=l?d[a]:u[a];f+="\n"}return s%2&&e>0?f.substring(0,f.length-s-1)+Array(s+1).join("▀"):f.substring(0,f.length-1)};return w.createASCII=function(e,t){if(e=e||1,e<2)return D(t);e-=1,t="undefined"==typeof t?2*e:t;var n,r,i,o,a=w.getModuleCount()*e+2*t,s=t,c=a-t,l=Array(e+1).join("██"),u=Array(e+1).join("  "),d="",f="";for(n=0;n<a;n+=1){for(i=Math.floor((n-s)/e),f="",r=0;r<a;r+=1)o=1,s<=r&&r<c&&s<=n&&n<c&&w.isDark(i,Math.floor((r-s)/e))&&(o=0),f+=o?l:u;for(i=0;i<e;i+=1)d+=f+"\n"}return d.substring(0,d.length-1)},w.renderTo2dContext=function(e,t){t=t||2;for(var n=w.getModuleCount(),r=0;r<n;r++)for(var i=0;i<n;i++)e.fillStyle=w.isDark(r,i)?"black":"white",e.fillRect(r*t,i*t,t,t)},w};e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}},e.stringToBytes=e.stringToBytesFuncs["default"],e.createStringToBytes=function(e,t){var n=function(){var n=m(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};while(1){var a=n.read();if(-1==a)break;var s=r(),c=r(),l=r(),u=String.fromCharCode(a<<8|s),d=c<<8|l;o[u]=d,i+=1}if(i!=t)throw i+" != "+t;return o}(),r="?".charCodeAt(0);return function(e){for(var t=[],i=0;i<e.length;i+=1){var o=e.charCodeAt(i);if(o<128)t.push(o);else{var a=n[e.charAt(i)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,i=7973,s=21522,c={},l=function(e){var t=0;while(0!=e)t+=1,e>>>=1;return t};return c.getBCHTypeInfo=function(e){var t=e<<10;while(l(t)-l(n)>=0)t^=n<<l(t)-l(n);return(e<<10|t)^s},c.getBCHTypeNumber=function(e){var t=e<<12;while(l(t)-l(i)>=0)t^=i<<l(t)-l(i);return e<<12|t},c.getPatternPosition=function(t){return e[t-1]},c.getMaskFunction=function(e){switch(e){case r.PATTERN000:return function(e,t){return(e+t)%2==0};case r.PATTERN001:return function(e,t){return e%2==0};case r.PATTERN010:return function(e,t){return t%3==0};case r.PATTERN011:return function(e,t){return(e+t)%3==0};case r.PATTERN100:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case r.PATTERN101:return function(e,t){return e*t%2+e*t%3==0};case r.PATTERN110:return function(e,t){return(e*t%2+e*t%3)%2==0};case r.PATTERN111:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},c.getErrorCorrectPolynomial=function(e){for(var t=a([1],0),n=0;n<e;n+=1)t=t.multiply(a([1,o.gexp(n)],0));return t},c.getLengthInBits=function(e,n){if(1<=n&&n<10)switch(e){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:return 8;case t.MODE_KANJI:return 8;default:throw"mode:"+e}else if(n<27)switch(e){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw"mode:"+e}else{if(!(n<41))throw"type:"+n;switch(e){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw"mode:"+e}}},c.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var c=-1;c<=1;c+=1)i+c<0||t<=i+c||0==s&&0==c||a==e.isDark(r+s,i+c)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<t-1;r+=1)for(i=0;i<t-1;i+=1){var l=0;e.isDark(r,i)&&(l+=1),e.isDark(r+1,i)&&(l+=1),e.isDark(r,i+1)&&(l+=1),e.isDark(r+1,i+1)&&(l+=1),0!=l&&4!=l||(n+=3)}for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var u=0;for(i=0;i<t;i+=1)for(r=0;r<t;r+=1)e.isDark(r,i)&&(u+=1);var d=Math.abs(100*u/t/t-50)/5;return n+=10*d,n},c}(),o=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return e[t]}};return r}();function a(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){var n=0;while(n<e.length&&0==e[n])n+=1;for(var r=new Array(e.length-n+t),i=0;i<e.length-n;i+=1)r[i]=e[i+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=o.gexp(o.glog(r.getAt(n))+o.glog(e.getAt(i)));return a(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=o.glog(r.getAt(0))-o.glog(e.getAt(0)),n=new Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=o.gexp(o.glog(e.getAt(i))+t);return a(n,0).mod(e)}};return r}var s=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},r={},i=function(t,r){switch(r){case n.L:return e[4*(t-1)+0];case n.M:return e[4*(t-1)+1];case n.Q:return e[4*(t-1)+2];case n.H:return e[4*(t-1)+3];default:return}};return r.getRSBlocks=function(e,n){var r=i(e,n);if("undefined"==typeof r)throw"bad rs block @ typeNumber:"+e+"/errorCorrectionLevel:"+n;for(var o=r.length/3,a=[],s=0;s<o;s+=1)for(var c=r[3*s+0],l=r[3*s+1],u=r[3*s+2],d=0;d<c;d+=1)a.push(t(l,u));return a},r}(),c=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},l=function(e){var n=t.MODE_NUMBER,r=e,i={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){var t=r,n=0;while(n+2<t.length)e.put(o(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(o(t.substring(n,n+1)),4):t.length-n==2&&e.put(o(t.substring(n,n+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+a(e.charAt(n));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return i},u=function(e){var n=t.MODE_ALPHA_NUM,r=e,i={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){var t=r,n=0;while(n+1<t.length)e.put(45*o(t.charAt(n))+o(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(o(t.charAt(n)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return i},d=function(n){var r=t.MODE_8BIT_BYTE,i=e.stringToBytes(n),o={getMode:function(){return r},getLength:function(e){return i.length},write:function(e){for(var t=0;t<i.length;t+=1)e.put(i[t],8)}};return o},f=function(n){var r=t.MODE_KANJI,i=e.stringToBytesFuncs["SJIS"];if(!i)throw"sjis not supported.";!function(e,t){var n=i(e);if(2!=n.length||(n[0]<<8|n[1])!=t)throw"sjis not supported."}("友",38726);var o=i(n),a={getMode:function(){return r},getLength:function(e){return~~(o.length/2)},write:function(e){var t=o,n=0;while(n+1<t.length){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return a},p=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i<r;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]",t}};return t},h=function(){var e=0,t=0,n=0,r="",i={},o=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return i.writeByte=function(r){e=e<<8|255&r,t+=8,n+=1;while(t>=6)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a<i;a+=1)r+="="},i.toString=function(){return r},i},m=function(e){var t=e,n=0,r=0,i=0,o={read:function(){while(i<8){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},v=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=2,i=s(t);e.writeByte(t);var o=0;while(i.length-o>255)e.writeByte(255),e.writeBytes(i,o,255),o+=255;e.writeByte(i.length-o),e.writeBytes(i,o,i.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){var t=e,n=0,r=0,i={write:function(e,i){if(e>>>i!=0)throw"length over";while(n+i>=8)t.writeByte(255&(e<<n|r)),i-=8-n,e>>>=8-n,r=0,n=0;r|=e<<n,n+=i},flush:function(){n>0&&t.writeByte(r)}};return i},s=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,o=c(),s=0;s<t;s+=1)o.add(String.fromCharCode(s));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(n));var l=p(),u=a(l);u.write(t,r);var d=0,f=String.fromCharCode(i[d]);d+=1;while(d<i.length){var h=String.fromCharCode(i[d]);d+=1,o.contains(f+h)?f+=h:(u.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+h)),f=h)}return u.write(o.indexOf(f),r),u.write(n,r),u.flush(),l.toByteArray()},c=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return o},g=function(e,t,n){for(var r=v(e,t),i=0;i<t;i+=1)for(var o=0;o<e;o+=1)r.setPixel(o,i,n(o,i));var a=p();r.write(a);for(var s=h(),c=a.toByteArray(),l=0;l<c.length;l+=1)s.writeByte(c[l]);return s.flush(),"data:image/gif;base64,"+s};return e}();!function(){a.stringToBytesFuncs["UTF-8"]=function(e){function t(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}return t(e)}}(),function(n){i=[],r=n,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)}((function(){return a}))},e154:function(e,t,n){"use strict";n("b2f1")},e26d:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"selector",(function(){return l}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"animation-stars"},[n("div",{attrs:{id:"parastars"}}),n("div",{attrs:{id:"parastars2"}}),n("div",{attrs:{id:"parastars3"}})])}],o=(n("11e1"),n("2877")),a={},s=Object(o["a"])(a,r,i,!1,null,"2d6ff43e",null),c=s.exports,l=function(e){return"stars"===e}},e459:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return M}));var r=n("5865"),i=n("f059"),o=n.n(i),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var c=["load","change","caretChange","focus","blur","keydown","keyup","beforePreviewRender","beforeConvertWysiwygToMarkdown"],l={initialEditType:"markdown",initialValue:"",height:"300px",previewStyle:"vertical"},u={data:function(){var e=this,t={};c.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e.$emit.apply(e,s([n],t))}}));var n=a(a({},this.options),{initialEditType:this.initialEditType,initialValue:this.initialValue,height:this.height,previewStyle:this.previewStyle,events:t});return Object.keys(l).forEach((function(e){n[e]||(n[e]=l[e])})),{editor:null,computedOptions:n}},methods:{invoke:function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=null;return this.editor[e]&&(i=(t=this.editor)[e].apply(t,n)),i}},destroyed:function(){var e=this;c.forEach((function(t){e.editor.off(t)})),this.editor.destroy()}},d={name:"ToastuiEditor",mixins:[u],props:{previewStyle:{type:String},height:{type:String},initialEditType:{type:String},initialValue:{type:String},options:{type:Object}},watch:{previewStyle:function(e){this.editor.changePreviewStyle(e)},height:function(e){this.editor.height(e)}},mounted:function(){var e=a(a({},this.computedOptions),{el:this.$refs.toastuiEditor});this.editor=new r["a"](e)},methods:{getRootElement:function(){return this.$refs.toastuiEditor}}};function f(e,t,n,r,i,o,a,s,c,l){"boolean"!==typeof a&&(c=s,s=a,a=!1);var u,d="function"===typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=u):t&&(u=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var f=d.render;d.render=function(e,t){return u.call(t),f(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}var p=d,h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"toastuiEditor"})},m=[];h._withStripped=!0;var v=void 0,g=void 0,b=void 0,y=!1,w=f({render:h,staticRenderFns:m},v,p,g,y,b,!1,void 0,void 0,void 0),k={name:"ToastuiEditorViewer",mixins:[u],props:{height:{type:String},initialValue:{type:String},options:{type:Object}},mounted:function(){var e=a(a({},this.computedOptions),{el:this.$refs.toastuiEditorViewer});this.editor=new o.a(e)},methods:{getRootElement:function(){return this.$refs.toastuiEditorViewer}}},x=k,C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"toastuiEditorViewer"})},O=[];C._withStripped=!0;var S=void 0,T=void 0,E=void 0,_=!1,M=f({render:C,staticRenderFns:O},S,x,T,_,E,!1,void 0,void 0,void 0)},e45a:function(e,t,n){},e4f8:function(e,t,n){},e58a:function(e,t,n){"use strict";n("6a3b")},e6da:function(e,t,n){"use strict";n("b35c")},ea7e:function(e,t,n){"use strict";n("a5cc")},ed54:function(e,t,n){},ee61:function(e,t,n){"use strict";n("a307")},f059:function(e,t,n){
/*!
 * @toast-ui/editor
 * @version 3.1.3 | Thu Feb 10 2022
 * @author NHN FE Development Lab <dl_javascript@nhn.com>
 * @license MIT
 */
(function(t,r){e.exports=r(n("304a"),n("5313"),n("576a"))})(self,(function(e,t,n){return function(){var r={368:function(e){
/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,i=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,l="undefined"!==typeof Reflect&&Reflect,u=l.apply,d=l.construct;u||(u=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),s||(s=function(e){return e}),d||(d=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var f=x(Array.prototype.forEach),p=x(Array.prototype.pop),h=x(Array.prototype.push),m=x(String.prototype.toLowerCase),v=x(String.prototype.match),g=x(String.prototype.replace),b=x(String.prototype.indexOf),y=x(String.prototype.trim),w=x(RegExp.prototype.test),k=C(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return u(e,t,r)}}function C(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(e,n)}}function O(e,t){n&&n(e,null);var i=t.length;while(i--){var o=t[i];if("string"===typeof o){var a=m(o);a!==o&&(r(t)||(t[i]=a),o=a)}e[o]=!0}return e}function S(e){var n=c(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}function T(e,t){while(null!==e){var n=o(e,t);if(n){if(n.get)return x(n.get);if("function"===typeof n.value)return x(n.value)}e=i(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=a(["#text"]),A=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),R=s(/<%[\s\S]*|[\s\S]*%>/gm),q=s(/^data-[\-\w.\u00B7-\uFFFF]/),H=s(/^aria-[\-\w]+$/),U=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=s(/^(?:\w+script|data):/i),z=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function W(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var G=function(){return"undefined"===typeof window?null:window},K=function(e,t){if("object"!==("undefined"===typeof e?"undefined":$(e))||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G(),t=function(e){return J(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,x=e.Text,C=e.Comment,Y=e.DOMParser,X=e.trustedTypes,Q=c.prototype,Z=T(Q,"cloneNode"),ee=T(Q,"nextSibling"),te=T(Q,"childNodes"),ne=T(Q,"parentNode");if("function"===typeof o){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var ie=K(X,n),oe=ie&&Be?ie.createHTML(""):"",ae=r,se=ae.implementation,ce=ae.createNodeIterator,le=ae.createDocumentFragment,ue=ae.getElementsByTagName,de=n.importNode,fe={};try{fe=S(r).documentMode?r.documentMode:{}}catch(xt){}var pe={};t.isSupported="function"===typeof ne&&se&&"undefined"!==typeof se.createHTMLDocument&&9!==fe;var he=F,me=R,ve=q,ge=H,be=V,ye=z,we=U,ke=null,xe=O({},[].concat(W(E),W(_),W(M),W(j),W(N))),Ce=null,Oe=O({},[].concat(W(A),W(L),W(P),W(B))),Se=null,Te=null,Ee=!0,_e=!0,Me=!1,Ie=!1,je=!1,De=!1,Ne=!1,Ae=!1,Le=!1,Pe=!0,Be=!1,Fe=!0,Re=!0,qe=!1,He={},Ue=null,Ve=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,$e=O({},["audio","video","img","source","image","track"]),We=null,Ge=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Xe=Ye,Qe=!1,Ze=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,it=r.createElement("form"),ot=function(e){rt&&rt===e||(e&&"object"===("undefined"===typeof e?"undefined":$(e))||(e={}),e=S(e),ke="ALLOWED_TAGS"in e?O({},e.ALLOWED_TAGS):xe,Ce="ALLOWED_ATTR"in e?O({},e.ALLOWED_ATTR):Oe,We="ADD_URI_SAFE_ATTR"in e?O(S(Ge),e.ADD_URI_SAFE_ATTR):Ge,ze="ADD_DATA_URI_TAGS"in e?O(S($e),e.ADD_DATA_URI_TAGS):$e,Ue="FORBID_CONTENTS"in e?O({},e.FORBID_CONTENTS):Ve,Se="FORBID_TAGS"in e?O({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?O({},e.FORBID_ATTR):{},He="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.SAFE_FOR_TEMPLATES||!1,je=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Pe=!1!==e.RETURN_DOM_IMPORT,Be=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Xe=e.NAMESPACE||Ye,Ze=Ze=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Ze?function(e){return e}:m,Ie&&(_e=!1),Le&&(Ae=!0),He&&(ke=O({},[].concat(W(N))),Ce=[],!0===He.html&&(O(ke,E),O(Ce,A)),!0===He.svg&&(O(ke,_),O(Ce,L),O(Ce,B)),!0===He.svgFilters&&(O(ke,M),O(Ce,L),O(Ce,B)),!0===He.mathMl&&(O(ke,j),O(Ce,P),O(Ce,B))),e.ADD_TAGS&&(ke===xe&&(ke=S(ke)),O(ke,e.ADD_TAGS)),e.ADD_ATTR&&(Ce===Oe&&(Ce=S(Ce)),O(Ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&O(We,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ue===Ve&&(Ue=S(Ue)),O(Ue,e.FORBID_CONTENTS)),Re&&(ke["#text"]=!0),je&&O(ke,["html","head","body"]),ke.table&&(O(ke,["tbody"]),delete Se.tbody),a&&a(e),rt=e)},at=O({},["mi","mo","mn","ms","mtext"]),st=O({},["foreignobject","desc","title","annotation-xml"]),ct=O({},_);O(ct,M),O(ct,I);var lt=O({},j);O(lt,D);var ut=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===Je)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(ct[n]);if(e.namespaceURI===Ke)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===Je?"math"===n&&st[r]:Boolean(lt[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===Je&&!st[r])return!1;if(t.namespaceURI===Ke&&!at[r])return!1;var i=O({},["title","style","font","a","script"]);return!lt[n]&&(i[n]||!ct[n])}return!1},dt=function(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(xt){try{e.outerHTML=oe}catch(xt){e.remove()}}},ft=function(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(xt){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Ce[e])if(Ae||Le)try{dt(n)}catch(xt){}else try{n.setAttribute(e,"")}catch(xt){}},pt=function(e){var t=void 0,n=void 0;if(Ne)e="<remove></remove>"+e;else{var i=v(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ie?ie.createHTML(e):e;if(Xe===Ye)try{t=(new Y).parseFromString(o,Ze)}catch(xt){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Qe?"":o}catch(xt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ye?ue.call(t,je?"html":"body")[0]:je?t.documentElement:a},ht=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},mt=function(e){return!(e instanceof x||e instanceof C)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof d&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},vt=function(e){return"object"===("undefined"===typeof s?"undefined":$(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":$(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},gt=function(e,n,r){pe[e]&&f(pe[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(gt("beforeSanitizeElements",e,null),mt(e))return dt(e),!0;if(v(e.nodeName,/[\u0080-\uFFFF]/))return dt(e),!0;var r=nt(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:r,allowedTags:ke}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return dt(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return dt(e),!0;if(!ke[r]||Se[r]){if(Re&&!Ue[r]){var i=ne(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&i)for(var a=o.length,s=a-1;s>=0;--s)i.insertBefore(Z(o[s],!0),ee(e))}return dt(e),!0}return e instanceof c&&!ut(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(n=e.textContent,n=g(n,he," "),n=g(n,me," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),gt("afterSanitizeElements",e,null),!1):(dt(e),!0)},yt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in r||n in it))return!1;if(_e&&!Te[t]&&w(ve,t));else if(Ee&&w(ge,t));else{if(!Ce[t]||Te[t])return!1;if(We[t]);else if(w(we,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!ze[e]){if(Me&&!w(be,g(n,ye,"")));else if(n)return!1}else;}return!0},wt=function(e){var n=void 0,r=void 0,i=void 0,o=void 0;gt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce};o=a.length;while(o--){n=a[o];var c=n,l=c.name,u=c.namespaceURI;if(r=y(n.value),i=nt(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(ft(l,e),s.keepAttr))if(w(/\/>/i,r))ft(l,e);else{Ie&&(r=g(r,he," "),r=g(r,me," "));var d=nt(e.nodeName);if(yt(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),p(t.removed)}catch(xt){}}}gt("afterSanitizeAttributes",e,null)}},kt=function e(t){var n=void 0,r=ht(t);gt("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())gt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof i&&e(n.content),wt(n));gt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var a=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if(Qe=!r,Qe&&(r="\x3c!--\x3e"),"string"!==typeof r&&!vt(r)){if("function"!==typeof r.toString)throw k("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw k("dirty is not a string, aborting")}if(!t.isSupported){if("object"===$(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(De||ot(o),t.removed=[],"string"===typeof r&&(qe=!1),qe);else if(r instanceof s)a=pt("\x3c!----\x3e"),c=a.ownerDocument.importNode(r,!0),1===c.nodeType&&"BODY"===c.nodeName?a=c:"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ae&&!Ie&&!je&&-1===r.indexOf("<"))return ie&&Be?ie.createHTML(r):r;if(a=pt(r),!a)return Ae?null:oe}a&&Ne&&dt(a.firstChild);var f=ht(qe?r:a);while(l=f.nextNode())3===l.nodeType&&l===u||bt(l)||(l.content instanceof i&&kt(l.content),wt(l),u=l);if(u=null,qe)return r;if(Ae){if(Le){d=le.call(a.ownerDocument);while(a.firstChild)d.appendChild(a.firstChild)}else d=a;return Pe&&(d=de.call(n,d,!0)),d}var p=je?a.outerHTML:a.innerHTML;return Ie&&(p=g(p,he," "),p=g(p,me," ")),ie&&Be?ie.createHTML(p):p},t.setConfig=function(e){ot(e),De=!0},t.clearConfig=function(){rt=null,De=!1},t.isValidAttribute=function(e,t,n){rt||ot({});var r=nt(e),i=nt(t);return yt(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&(pe[e]=pe[e]||[],h(pe[e],t))},t.removeHook=function(e){pe[e]&&p(pe[e])},t.removeHooks=function(e){pe[e]&&(pe[e]=[])},t.removeAllHooks=function(){pe={}},t}var Y=J();return Y}))},928:function(e,t,n){"use strict";var r=n(322);function i(e,t,n){var i,o;if(n=n||0,!r(t))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e,n);for(o=t.length,i=n;n>=0&&i<o;i+=1)if(t[i]===e)return i;return-1}e.exports=i},690:function(e,t,n){"use strict";var r=n(322),i=n(893),o=n(956);function a(e,t,n){r(e)?i(e,t,n):o(e,t,n)}e.exports=a},893:function(e){"use strict";function t(e,t,n){var r=0,i=e.length;for(n=n||null;r<i;r+=1)if(!1===t.call(n,e[r],r,e))break}e.exports=t},956:function(e){"use strict";function t(e,t,n){var r;for(r in n=n||null,e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))break}e.exports=t},990:function(e,t,n){"use strict";var r=n(893);function i(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){t=[],r(e,(function(e){t.push(e)}))}return t}e.exports=i},755:function(e){"use strict";var t="_feEventKey";function n(e,n){var r,i=e[t];return i||(i=e[t]={}),r=i[n],r||(r=i[n]=[]),r}e.exports=n},349:function(e,t,n){"use strict";var r=n(758),i=n(690),o=n(755);function a(e,t,n){r(t)?i(t.split(/\s+/g),(function(t){s(e,t,n)})):i(t,(function(t,n){s(e,n,t)}))}function s(e,t,n){var r,a=o(e,t);n?(i(a,(function(i,o){return n!==i.handler||(c(e,t,i.wrappedHandler),r=o,!1)})),a.splice(r,1)):(i(a,(function(n){c(e,t,n.wrappedHandler)})),a.splice(0,a.length))}function c(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}e.exports=a},348:function(e,t,n){"use strict";var r=n(758),i=n(690),o=n(755);function a(e,t,n,o){r(t)?i(t.split(/\s+/g),(function(t){s(e,t,n,o)})):i(t,(function(t,r){s(e,r,t,n)}))}function s(e,t,n,r){function i(t){n.call(r||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,i):"attachEvent"in e&&e.attachEvent("on"+t,i),c(e,t,n,i)}function c(e,t,n,r){var a=o(e,t),s=!1;i(a,(function(e){return e.handler!==n||(s=!0,!1)})),s||a.push({handler:n,wrappedHandler:r})}e.exports=a},24:function(e,t,n){"use strict";var r=n(322),i=n(929);function o(e,t){t=r(t)?t.join(" "):t,t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),i(e.className.baseVal)?e.className=t:e.className.baseVal=t}e.exports=o},204:function(e,t,n){"use strict";var r=n(690),i=n(928),o=n(902),a=n(24);function s(e){var t,n=Array.prototype.slice.call(arguments,1),s=e.classList,c=[];s?r(n,(function(t){e.classList.add(t)})):(t=o(e),t&&(n=[].concat(t.split(/\s+/),n)),r(n,(function(e){i(e,c)<0&&c.push(e)})),a(e,c))}e.exports=s},522:function(e,t,n){"use strict";var r=n(758),i=n(690);function o(e,t,n){var o=e.style;r(t)?o[t]=n:i(t,(function(e,t){o[t]=e}))}e.exports=o},902:function(e,t,n){"use strict";var r=n(929);function i(e){return e&&e.className?r(e.className.baseVal)?e.className:e.className.baseVal:""}e.exports=i},714:function(e,t,n){"use strict";var r=n(928),i=n(902);function o(e,t){var n;return e.classList?e.classList.contains(t):(n=i(e).split(/\s+/),r(t,n)>-1)}e.exports=o},471:function(e,t,n){"use strict";var r=n(928),i=n(990),o=Element.prototype,a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return r(this,i(t.querySelectorAll(e)))>-1};function s(e,t){return a.call(e,t)}e.exports=s},462:function(e,t,n){"use strict";var r=n(893),i=n(928),o=n(902),a=n(24);function s(e){var t,n,s=Array.prototype.slice.call(arguments,1),c=e.classList;c?r(s,(function(e){c.remove(e)})):(t=o(e).split(/\s+/),n=[],r(t,(function(e){i(e,s)<0&&n.push(e)})),a(e,n))}e.exports=s},969:function(e){"use strict";function t(e,t){var n,r,i,o,a=Object.prototype.hasOwnProperty;for(i=1,o=arguments.length;i<o;i+=1)for(r in n=arguments[i],n)a.call(n,r)&&(e[r]=n[r]);return e}e.exports=t},254:function(e,t,n){"use strict";var r=n(956);function i(e,t){var n=document.createElement("img"),i="";return r(t,(function(e,t){i+="&"+t+"="+e})),i=i.substring(1),n.src=e+"?"+i,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}e.exports=i},391:function(e,t,n){"use strict";var r=n(929),i=n(254),o=6048e5;function a(e){var t=(new Date).getTime();return t-e>o}function s(e,t){var n="https://www.google-analytics.com/collect",o=location.hostname,s="event",c="use",l="TOAST UI "+e+" for "+o+": Statistics",u=window.localStorage.getItem(l);(r(window.tui)||!1!==window.tui.usageStatistics)&&(u&&!a(u)||(window.localStorage.setItem(l,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||i(n,{v:1,t:s,tid:t,cid:o,dp:o,dh:e,el:e,ec:c})}),1e3)))}e.exports=s},322:function(e){"use strict";function t(e){return e instanceof Array}e.exports=t},65:function(e,t,n){"use strict";var r=n(929),i=n(934);function o(e){return!r(e)&&!i(e)}e.exports=o},404:function(e,t,n){"use strict";var r=n(790);function i(e){return!r(e)}e.exports=i},294:function(e){"use strict";function t(e){return e instanceof Function}e.exports=t},934:function(e){"use strict";function t(e){return null===e}e.exports=t},758:function(e){"use strict";function t(e){return"string"===typeof e||e instanceof String}e.exports=t},790:function(e,t,n){"use strict";var r=n(65);function i(e){return r(e)&&!1!==e}e.exports=i},929:function(e){"use strict";function t(e){return void 0===e}e.exports=t},43:function(t){"use strict";t.exports=e},814:function(e){"use strict";e.exports=t},311:function(e){"use strict";e.exports=n}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e].call(n.exports,n,n.exports,o),n.exports}!function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var a={};return function(){"use strict";o.d(a,{default:function(){return EG}});var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.apply(this,arguments)};Object.create;function t(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof o.g?o.g:"undefined"!==typeof self?self:{},l={};function u(e){var t,n,r=l[e];if(r)return r;for(r=l[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function d(e,t,n){var r,i,o,a,s,c="";for("string"!==typeof t&&(n=t,t=d.defaultChars),"undefined"===typeof n&&(n=!0),s=u(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))c+=e.slice(r,r+3),r+=2;else if(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){c+=encodeURIComponent(e[r]+e[r+1]),r++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[r]);return c}d.defaultChars=";/?:@&=+$,-_.!~*'()#",d.componentChars="-_.!~*'()";var f=d,p={},h={},m="Á",v="á",g="Ă",b="ă",y="∾",w="∿",k="∾̳",x="Â",C="â",O="´",S="А",T="а",E="Æ",_="æ",M="⁡",I="𝔄",j="𝔞",D="À",N="à",A="ℵ",L="ℵ",P="Α",B="α",F="Ā",R="ā",q="⨿",H="&",U="&",V="⩕",z="⩓",$="∧",W="⩜",G="⩘",K="⩚",J="∠",Y="⦤",X="∠",Q="⦨",Z="⦩",ee="⦪",te="⦫",ne="⦬",re="⦭",ie="⦮",oe="⦯",ae="∡",se="∟",ce="⊾",le="⦝",ue="∢",de="Å",fe="⍼",pe="Ą",he="ą",me="𝔸",ve="𝕒",ge="⩯",be="≈",ye="⩰",we="≊",ke="≋",xe="'",Ce="⁡",Oe="≈",Se="≊",Te="Å",Ee="å",_e="𝒜",Me="𝒶",Ie="≔",je="*",De="≈",Ne="≍",Ae="Ã",Le="ã",Pe="Ä",Be="ä",Fe="∳",Re="⨑",qe="≌",He="϶",Ue="‵",Ve="∽",ze="⋍",$e="∖",We="⫧",Ge="⊽",Ke="⌅",Je="⌆",Ye="⌅",Xe="⎵",Qe="⎶",Ze="≌",et="Б",tt="б",nt="„",rt="∵",it="∵",ot="∵",at="⦰",st="϶",ct="ℬ",lt="ℬ",ut="Β",dt="β",ft="ℶ",pt="≬",ht="𝔅",mt="𝔟",vt="⋂",gt="◯",bt="⋃",yt="⨀",wt="⨁",kt="⨂",xt="⨆",Ct="★",Ot="▽",St="△",Tt="⨄",Et="⋁",_t="⋀",Mt="⤍",It="⧫",jt="▪",Dt="▴",Nt="▾",At="◂",Lt="▸",Pt="␣",Bt="▒",Ft="░",Rt="▓",qt="█",Ht="=⃥",Ut="≡⃥",Vt="⫭",zt="⌐",$t="𝔹",Wt="𝕓",Gt="⊥",Kt="⊥",Jt="⋈",Yt="⧉",Xt="┐",Qt="╕",Zt="╖",en="╗",tn="┌",nn="╒",rn="╓",on="╔",an="─",sn="═",cn="┬",ln="╤",un="╥",dn="╦",fn="┴",pn="╧",hn="╨",mn="╩",vn="⊟",gn="⊞",bn="⊠",yn="┘",wn="╛",kn="╜",xn="╝",Cn="└",On="╘",Sn="╙",Tn="╚",En="│",_n="║",Mn="┼",In="╪",jn="╫",Dn="╬",Nn="┤",An="╡",Ln="╢",Pn="╣",Bn="├",Fn="╞",Rn="╟",qn="╠",Hn="‵",Un="˘",Vn="˘",zn="¦",$n="𝒷",Wn="ℬ",Gn="⁏",Kn="∽",Jn="⋍",Yn="⧅",Xn="\\",Qn="⟈",Zn="•",er="•",tr="≎",nr="⪮",rr="≏",ir="≎",or="≏",ar="Ć",sr="ć",cr="⩄",lr="⩉",ur="⩋",dr="∩",fr="⋒",pr="⩇",hr="⩀",mr="ⅅ",vr="∩︀",gr="⁁",br="ˇ",yr="ℭ",wr="⩍",kr="Č",xr="č",Cr="Ç",Or="ç",Sr="Ĉ",Tr="ĉ",Er="∰",_r="⩌",Mr="⩐",Ir="Ċ",jr="ċ",Dr="¸",Nr="¸",Ar="⦲",Lr="¢",Pr="·",Br="·",Fr="𝔠",Rr="ℭ",qr="Ч",Hr="ч",Ur="✓",Vr="✓",zr="Χ",$r="χ",Wr="ˆ",Gr="≗",Kr="↺",Jr="↻",Yr="⊛",Xr="⊚",Qr="⊝",Zr="⊙",ei="®",ti="Ⓢ",ni="⊖",ri="⊕",ii="⊗",oi="○",ai="⧃",si="≗",ci="⨐",li="⫯",ui="⧂",di="∲",fi="”",pi="’",hi="♣",mi="♣",vi=":",gi="∷",bi="⩴",yi="≔",wi="≔",ki=",",xi="@",Ci="∁",Oi="∘",Si="∁",Ti="ℂ",Ei="≅",_i="⩭",Mi="≡",Ii="∮",ji="∯",Di="∮",Ni="𝕔",Ai="ℂ",Li="∐",Pi="∐",Bi="©",Fi="©",Ri="℗",qi="∳",Hi="↵",Ui="✗",Vi="⨯",zi="𝒞",$i="𝒸",Wi="⫏",Gi="⫑",Ki="⫐",Ji="⫒",Yi="⋯",Xi="⤸",Qi="⤵",Zi="⋞",eo="⋟",to="↶",no="⤽",ro="⩈",io="⩆",oo="≍",ao="∪",so="⋓",co="⩊",lo="⊍",uo="⩅",fo="∪︀",po="↷",ho="⤼",mo="⋞",vo="⋟",go="⋎",bo="⋏",yo="¤",wo="↶",ko="↷",xo="⋎",Co="⋏",Oo="∲",So="∱",To="⌭",Eo="†",_o="‡",Mo="ℸ",Io="↓",jo="↡",Do="⇓",No="‐",Ao="⫤",Lo="⊣",Po="⤏",Bo="˝",Fo="Ď",Ro="ď",qo="Д",Ho="д",Uo="‡",Vo="⇊",zo="ⅅ",$o="ⅆ",Wo="⤑",Go="⩷",Ko="°",Jo="∇",Yo="Δ",Xo="δ",Qo="⦱",Zo="⥿",ea="𝔇",ta="𝔡",na="⥥",ra="⇃",ia="⇂",oa="´",aa="˙",sa="˝",ca="`",la="˜",ua="⋄",da="⋄",fa="⋄",pa="♦",ha="♦",ma="¨",va="ⅆ",ga="ϝ",ba="⋲",ya="÷",wa="÷",ka="⋇",xa="⋇",Ca="Ђ",Oa="ђ",Sa="⌞",Ta="⌍",Ea="$",_a="𝔻",Ma="𝕕",Ia="¨",ja="˙",Da="⃜",Na="≐",Aa="≑",La="≐",Pa="∸",Ba="∔",Fa="⊡",Ra="⌆",qa="∯",Ha="¨",Ua="⇓",Va="⇐",za="⇔",$a="⫤",Wa="⟸",Ga="⟺",Ka="⟹",Ja="⇒",Ya="⊨",Xa="⇑",Qa="⇕",Za="∥",es="⤓",ts="↓",ns="↓",rs="⇓",is="⇵",os="̑",as="⇊",ss="⇃",cs="⇂",ls="⥐",us="⥞",ds="⥖",fs="↽",ps="⥟",hs="⥗",ms="⇁",vs="↧",gs="⊤",bs="⤐",ys="⌟",ws="⌌",ks="𝒟",xs="𝒹",Cs="Ѕ",Os="ѕ",Ss="⧶",Ts="Đ",Es="đ",_s="⋱",Ms="▿",Is="▾",js="⇵",Ds="⥯",Ns="⦦",As="Џ",Ls="џ",Ps="⟿",Bs="É",Fs="é",Rs="⩮",qs="Ě",Hs="ě",Us="Ê",Vs="ê",zs="≖",$s="≕",Ws="Э",Gs="э",Ks="⩷",Js="Ė",Ys="ė",Xs="≑",Qs="ⅇ",Zs="≒",ec="𝔈",tc="𝔢",nc="⪚",rc="È",ic="è",oc="⪖",ac="⪘",sc="⪙",cc="∈",lc="⏧",uc="ℓ",dc="⪕",fc="⪗",pc="Ē",hc="ē",mc="∅",vc="∅",gc="◻",bc="∅",yc="▫",wc=" ",kc=" ",xc=" ",Cc="Ŋ",Oc="ŋ",Sc=" ",Tc="Ę",Ec="ę",_c="𝔼",Mc="𝕖",Ic="⋕",jc="⧣",Dc="⩱",Nc="ε",Ac="Ε",Lc="ε",Pc="ϵ",Bc="≖",Fc="≕",Rc="≂",qc="⪖",Hc="⪕",Uc="⩵",Vc="=",zc="≂",$c="≟",Wc="⇌",Gc="≡",Kc="⩸",Jc="⧥",Yc="⥱",Xc="≓",Qc="ℯ",Zc="ℰ",el="≐",tl="⩳",nl="≂",rl="Η",il="η",ol="Ð",al="ð",sl="Ë",cl="ë",ll="€",ul="!",dl="∃",fl="∃",pl="ℰ",hl="ⅇ",ml="ⅇ",vl="≒",gl="Ф",bl="ф",yl="♀",wl="ffi",kl="ff",xl="ffl",Cl="𝔉",Ol="𝔣",Sl="fi",Tl="◼",El="▪",_l="fj",Ml="♭",Il="fl",jl="▱",Dl="ƒ",Nl="𝔽",Al="𝕗",Ll="∀",Pl="∀",Bl="⋔",Fl="⫙",Rl="ℱ",ql="⨍",Hl="½",Ul="⅓",Vl="¼",zl="⅕",$l="⅙",Wl="⅛",Gl="⅔",Kl="⅖",Jl="¾",Yl="⅗",Xl="⅜",Ql="⅘",Zl="⅚",eu="⅝",tu="⅞",nu="⁄",ru="⌢",iu="𝒻",ou="ℱ",au="ǵ",su="Γ",cu="γ",lu="Ϝ",uu="ϝ",du="⪆",fu="Ğ",pu="ğ",hu="Ģ",mu="Ĝ",vu="ĝ",gu="Г",bu="г",yu="Ġ",wu="ġ",ku="≥",xu="≧",Cu="⪌",Ou="⋛",Su="≥",Tu="≧",Eu="⩾",_u="⪩",Mu="⩾",Iu="⪀",ju="⪂",Du="⪄",Nu="⋛︀",Au="⪔",Lu="𝔊",Pu="𝔤",Bu="≫",Fu="⋙",Ru="⋙",qu="ℷ",Hu="Ѓ",Uu="ѓ",Vu="⪥",zu="≷",$u="⪒",Wu="⪤",Gu="⪊",Ku="⪊",Ju="⪈",Yu="≩",Xu="⪈",Qu="≩",Zu="⋧",ed="𝔾",td="𝕘",nd="`",rd="≥",id="⋛",od="≧",ad="⪢",sd="≷",cd="⩾",ld="≳",ud="𝒢",dd="ℊ",fd="≳",pd="⪎",hd="⪐",md="⪧",vd="⩺",gd=">",bd=">",yd="≫",wd="⋗",kd="⦕",xd="⩼",Cd="⪆",Od="⥸",Sd="⋗",Td="⋛",Ed="⪌",_d="≷",Md="≳",Id="≩︀",jd="≩︀",Dd="ˇ",Nd=" ",Ad="½",Ld="ℋ",Pd="Ъ",Bd="ъ",Fd="⥈",Rd="↔",qd="⇔",Hd="↭",Ud="^",Vd="ℏ",zd="Ĥ",$d="ĥ",Wd="♥",Gd="♥",Kd="…",Jd="⊹",Yd="𝔥",Xd="ℌ",Qd="ℋ",Zd="⤥",ef="⤦",tf="⇿",nf="∻",rf="↩",of="↪",af="𝕙",sf="ℍ",cf="―",lf="─",uf="𝒽",df="ℋ",ff="ℏ",pf="Ħ",hf="ħ",mf="≎",vf="≏",gf="⁃",bf="‐",yf="Í",wf="í",kf="⁣",xf="Î",Cf="î",Of="И",Sf="и",Tf="İ",Ef="Е",_f="е",Mf="¡",If="⇔",jf="𝔦",Df="ℑ",Nf="Ì",Af="ì",Lf="ⅈ",Pf="⨌",Bf="∭",Ff="⧜",Rf="℩",qf="IJ",Hf="ij",Uf="Ī",Vf="ī",zf="ℑ",$f="ⅈ",Wf="ℐ",Gf="ℑ",Kf="ı",Jf="ℑ",Yf="⊷",Xf="Ƶ",Qf="⇒",Zf="℅",ep="∞",tp="⧝",np="ı",rp="⊺",ip="∫",op="∬",ap="ℤ",sp="∫",cp="⊺",lp="⋂",up="⨗",dp="⨼",fp="⁣",pp="⁢",hp="Ё",mp="ё",vp="Į",gp="į",bp="𝕀",yp="𝕚",wp="Ι",kp="ι",xp="⨼",Cp="¿",Op="𝒾",Sp="ℐ",Tp="∈",Ep="⋵",_p="⋹",Mp="⋴",Ip="⋳",jp="∈",Dp="⁢",Np="Ĩ",Ap="ĩ",Lp="І",Pp="і",Bp="Ï",Fp="ï",Rp="Ĵ",qp="ĵ",Hp="Й",Up="й",Vp="𝔍",zp="𝔧",$p="ȷ",Wp="𝕁",Gp="𝕛",Kp="𝒥",Jp="𝒿",Yp="Ј",Xp="ј",Qp="Є",Zp="є",eh="Κ",th="κ",nh="ϰ",rh="Ķ",ih="ķ",oh="К",ah="к",sh="𝔎",ch="𝔨",lh="ĸ",uh="Х",dh="х",fh="Ќ",ph="ќ",hh="𝕂",mh="𝕜",vh="𝒦",gh="𝓀",bh="⇚",yh="Ĺ",wh="ĺ",kh="⦴",xh="ℒ",Ch="Λ",Oh="λ",Sh="⟨",Th="⟪",Eh="⦑",_h="⟨",Mh="⪅",Ih="ℒ",jh="«",Dh="⇤",Nh="⤟",Ah="←",Lh="↞",Ph="⇐",Bh="⤝",Fh="↩",Rh="↫",qh="⤹",Hh="⥳",Uh="↢",Vh="⤙",zh="⤛",$h="⪫",Wh="⪭",Gh="⪭︀",Kh="⤌",Jh="⤎",Yh="❲",Xh="{",Qh="[",Zh="⦋",em="⦏",tm="⦍",nm="Ľ",rm="ľ",im="Ļ",om="ļ",am="⌈",sm="{",cm="Л",lm="л",um="⤶",dm="“",fm="„",pm="⥧",hm="⥋",mm="↲",vm="≤",gm="≦",bm="⟨",ym="⇤",wm="←",km="←",xm="⇐",Cm="⇆",Om="↢",Sm="⌈",Tm="⟦",Em="⥡",_m="⥙",Mm="⇃",Im="⌊",jm="↽",Dm="↼",Nm="⇇",Am="↔",Lm="↔",Pm="⇔",Bm="⇆",Fm="⇋",Rm="↭",qm="⥎",Hm="↤",Um="⊣",Vm="⥚",zm="⋋",$m="⧏",Wm="⊲",Gm="⊴",Km="⥑",Jm="⥠",Ym="⥘",Xm="↿",Qm="⥒",Zm="↼",ev="⪋",tv="⋚",nv="≤",rv="≦",iv="⩽",ov="⪨",av="⩽",sv="⩿",cv="⪁",lv="⪃",uv="⋚︀",dv="⪓",fv="⪅",pv="⋖",hv="⋚",mv="⪋",vv="⋚",gv="≦",bv="≶",yv="≶",wv="⪡",kv="≲",xv="⩽",Cv="≲",Ov="⥼",Sv="⌊",Tv="𝔏",Ev="𝔩",_v="≶",Mv="⪑",Iv="⥢",jv="↽",Dv="↼",Nv="⥪",Av="▄",Lv="Љ",Pv="љ",Bv="⇇",Fv="≪",Rv="⋘",qv="⌞",Hv="⇚",Uv="⥫",Vv="◺",zv="Ŀ",$v="ŀ",Wv="⎰",Gv="⎰",Kv="⪉",Jv="⪉",Yv="⪇",Xv="≨",Qv="⪇",Zv="≨",eg="⋦",tg="⟬",ng="⇽",rg="⟦",ig="⟵",og="⟵",ag="⟸",sg="⟷",cg="⟷",lg="⟺",ug="⟼",dg="⟶",fg="⟶",pg="⟹",hg="↫",mg="↬",vg="⦅",gg="𝕃",bg="𝕝",yg="⨭",wg="⨴",kg="∗",xg="_",Cg="↙",Og="↘",Sg="◊",Tg="◊",Eg="⧫",_g="(",Mg="⦓",Ig="⇆",jg="⌟",Dg="⇋",Ng="⥭",Ag="‎",Lg="⊿",Pg="‹",Bg="𝓁",Fg="ℒ",Rg="↰",qg="↰",Hg="≲",Ug="⪍",Vg="⪏",zg="[",$g="‘",Wg="‚",Gg="Ł",Kg="ł",Jg="⪦",Yg="⩹",Xg="<",Qg="<",Zg="≪",eb="⋖",tb="⋋",nb="⋉",rb="⥶",ib="⩻",ob="◃",ab="⊴",sb="◂",cb="⦖",lb="⥊",ub="⥦",db="≨︀",fb="≨︀",pb="¯",hb="♂",mb="✠",vb="✠",gb="↦",bb="↦",yb="↧",wb="↤",kb="↥",xb="▮",Cb="⨩",Ob="М",Sb="м",Tb="—",Eb="∺",_b="∡",Mb=" ",Ib="ℳ",jb="𝔐",Db="𝔪",Nb="℧",Ab="µ",Lb="*",Pb="⫰",Bb="∣",Fb="·",Rb="⊟",qb="−",Hb="∸",Ub="⨪",Vb="∓",zb="⫛",$b="…",Wb="∓",Gb="⊧",Kb="𝕄",Jb="𝕞",Yb="∓",Xb="𝓂",Qb="ℳ",Zb="∾",ey="Μ",ty="μ",ny="⊸",ry="⊸",iy="∇",oy="Ń",ay="ń",sy="∠⃒",cy="≉",ly="⩰̸",uy="≋̸",dy="ʼn",fy="≉",py="♮",hy="ℕ",my="♮",vy=" ",gy="≎̸",by="≏̸",yy="⩃",wy="Ň",ky="ň",xy="Ņ",Cy="ņ",Oy="≇",Sy="⩭̸",Ty="⩂",Ey="Н",_y="н",My="–",Iy="⤤",jy="↗",Dy="⇗",Ny="↗",Ay="≠",Ly="≐̸",Py="​",By="​",Fy="​",Ry="​",qy="≢",Hy="⤨",Uy="≂̸",Vy="≫",zy="≪",$y="\n",Wy="∄",Gy="∄",Ky="𝔑",Jy="𝔫",Yy="≧̸",Xy="≱",Qy="≱",Zy="≧̸",ew="⩾̸",tw="⩾̸",nw="⋙̸",rw="≵",iw="≫⃒",ow="≯",aw="≯",sw="≫̸",cw="↮",lw="⇎",uw="⫲",dw="∋",fw="⋼",pw="⋺",hw="∋",mw="Њ",vw="њ",gw="↚",bw="⇍",yw="‥",ww="≦̸",kw="≰",xw="↚",Cw="⇍",Ow="↮",Sw="⇎",Tw="≰",Ew="≦̸",_w="⩽̸",Mw="⩽̸",Iw="≮",jw="⋘̸",Dw="≴",Nw="≪⃒",Aw="≮",Lw="⋪",Pw="⋬",Bw="≪̸",Fw="∤",Rw="⁠",qw=" ",Hw="𝕟",Uw="ℕ",Vw="⫬",zw="¬",$w="≢",Ww="≭",Gw="∦",Kw="∉",Jw="≠",Yw="≂̸",Xw="∄",Qw="≯",Zw="≱",ek="≧̸",tk="≫̸",nk="≹",rk="⩾̸",ik="≵",ok="≎̸",ak="≏̸",sk="∉",ck="⋵̸",lk="⋹̸",uk="∉",dk="⋷",fk="⋶",pk="⧏̸",hk="⋪",mk="⋬",vk="≮",gk="≰",bk="≸",yk="≪̸",wk="⩽̸",kk="≴",xk="⪢̸",Ck="⪡̸",Ok="∌",Sk="∌",Tk="⋾",Ek="⋽",_k="⊀",Mk="⪯̸",Ik="⋠",jk="∌",Dk="⧐̸",Nk="⋫",Ak="⋭",Lk="⊏̸",Pk="⋢",Bk="⊐̸",Fk="⋣",Rk="⊂⃒",qk="⊈",Hk="⊁",Uk="⪰̸",Vk="⋡",zk="≿̸",$k="⊃⃒",Wk="⊉",Gk="≁",Kk="≄",Jk="≇",Yk="≉",Xk="∤",Qk="∦",Zk="∦",ex="⫽⃥",tx="∂̸",nx="⨔",rx="⊀",ix="⋠",ox="⊀",ax="⪯̸",sx="⪯̸",cx="⤳̸",lx="↛",ux="⇏",dx="↝̸",fx="↛",px="⇏",hx="⋫",mx="⋭",vx="⊁",gx="⋡",bx="⪰̸",yx="𝒩",wx="𝓃",kx="∤",xx="∦",Cx="≁",Ox="≄",Sx="≄",Tx="∤",Ex="∦",_x="⋢",Mx="⋣",Ix="⊄",jx="⫅̸",Dx="⊈",Nx="⊂⃒",Ax="⊈",Lx="⫅̸",Px="⊁",Bx="⪰̸",Fx="⊅",Rx="⫆̸",qx="⊉",Hx="⊃⃒",Ux="⊉",Vx="⫆̸",zx="≹",$x="Ñ",Wx="ñ",Gx="≸",Kx="⋪",Jx="⋬",Yx="⋫",Xx="⋭",Qx="Ν",Zx="ν",eC="#",tC="№",nC=" ",rC="≍⃒",iC="⊬",oC="⊭",aC="⊮",sC="⊯",cC="≥⃒",lC=">⃒",uC="⤄",dC="⧞",fC="⤂",pC="≤⃒",hC="<⃒",mC="⊴⃒",vC="⤃",gC="⊵⃒",bC="∼⃒",yC="⤣",wC="↖",kC="⇖",xC="↖",CC="⤧",OC="Ó",SC="ó",TC="⊛",EC="Ô",_C="ô",MC="⊚",IC="О",jC="о",DC="⊝",NC="Ő",AC="ő",LC="⨸",PC="⊙",BC="⦼",FC="Œ",RC="œ",qC="⦿",HC="𝔒",UC="𝔬",VC="˛",zC="Ò",$C="ò",WC="⧁",GC="⦵",KC="Ω",JC="∮",YC="↺",XC="⦾",QC="⦻",ZC="‾",eO="⧀",tO="Ō",nO="ō",rO="Ω",iO="ω",oO="Ο",aO="ο",sO="⦶",cO="⊖",lO="𝕆",uO="𝕠",dO="⦷",fO="“",pO="‘",hO="⦹",mO="⊕",vO="↻",gO="⩔",bO="∨",yO="⩝",wO="ℴ",kO="ℴ",xO="ª",CO="º",OO="⊶",SO="⩖",TO="⩗",EO="⩛",_O="Ⓢ",MO="𝒪",IO="ℴ",jO="Ø",DO="ø",NO="⊘",AO="Õ",LO="õ",PO="⨶",BO="⨷",FO="⊗",RO="Ö",qO="ö",HO="⌽",UO="‾",VO="⏞",zO="⎴",$O="⏜",WO="¶",GO="∥",KO="∥",JO="⫳",YO="⫽",XO="∂",QO="∂",ZO="П",eS="п",tS="%",nS=".",rS="‰",iS="⊥",oS="‱",aS="𝔓",sS="𝔭",cS="Φ",lS="φ",uS="ϕ",dS="ℳ",fS="☎",pS="Π",hS="π",mS="⋔",vS="ϖ",gS="ℏ",bS="ℎ",yS="ℏ",wS="⨣",kS="⊞",xS="⨢",CS="+",OS="∔",SS="⨥",TS="⩲",ES="±",_S="±",MS="⨦",IS="⨧",jS="±",DS="ℌ",NS="⨕",AS="𝕡",LS="ℙ",PS="£",BS="⪷",FS="⪻",RS="≺",qS="≼",HS="⪷",US="≺",VS="≼",zS="≺",$S="⪯",WS="≼",GS="≾",KS="⪯",JS="⪹",YS="⪵",XS="⋨",QS="⪯",ZS="⪳",eT="≾",tT="′",nT="″",rT="ℙ",iT="⪹",oT="⪵",aT="⋨",sT="∏",cT="∏",lT="⌮",uT="⌒",dT="⌓",fT="∝",pT="∝",hT="∷",mT="∝",vT="≾",gT="⊰",bT="𝒫",yT="𝓅",wT="Ψ",kT="ψ",xT=" ",CT="𝔔",OT="𝔮",ST="⨌",TT="𝕢",ET="ℚ",_T="⁗",MT="𝒬",IT="𝓆",jT="ℍ",DT="⨖",NT="?",AT="≟",LT='"',PT='"',BT="⇛",FT="∽̱",RT="Ŕ",qT="ŕ",HT="√",UT="⦳",VT="⟩",zT="⟫",$T="⦒",WT="⦥",GT="⟩",KT="»",JT="⥵",YT="⇥",XT="⤠",QT="⤳",ZT="→",eE="↠",tE="⇒",nE="⤞",rE="↪",iE="↬",oE="⥅",aE="⥴",sE="⤖",cE="↣",lE="↝",uE="⤚",dE="⤜",fE="∶",pE="ℚ",hE="⤍",mE="⤏",vE="⤐",gE="❳",bE="}",yE="]",wE="⦌",kE="⦎",xE="⦐",CE="Ř",OE="ř",SE="Ŗ",TE="ŗ",EE="⌉",_E="}",ME="Р",IE="р",jE="⤷",DE="⥩",NE="”",AE="”",LE="↳",PE="ℜ",BE="ℛ",FE="ℜ",RE="ℝ",qE="ℜ",HE="▭",UE="®",VE="®",zE="∋",$E="⇋",WE="⥯",GE="⥽",KE="⌋",JE="𝔯",YE="ℜ",XE="⥤",QE="⇁",ZE="⇀",e_="⥬",t_="Ρ",n_="ρ",r_="ϱ",i_="⟩",o_="⇥",a_="→",s_="→",c_="⇒",l_="⇄",u_="↣",d_="⌉",f_="⟧",p_="⥝",h_="⥕",m_="⇂",v_="⌋",g_="⇁",b_="⇀",y_="⇄",w_="⇌",k_="⇉",x_="↝",C_="↦",O_="⊢",S_="⥛",T_="⋌",E_="⧐",__="⊳",M_="⊵",I_="⥏",j_="⥜",D_="⥔",N_="↾",A_="⥓",L_="⇀",P_="˚",B_="≓",F_="⇄",R_="⇌",q_="‏",H_="⎱",U_="⎱",V_="⫮",z_="⟭",$_="⇾",W_="⟧",G_="⦆",K_="𝕣",J_="ℝ",Y_="⨮",X_="⨵",Q_="⥰",Z_=")",eM="⦔",tM="⨒",nM="⇉",rM="⇛",iM="›",oM="𝓇",aM="ℛ",sM="↱",cM="↱",lM="]",uM="’",dM="’",fM="⋌",pM="⋊",hM="▹",mM="⊵",vM="▸",gM="⧎",bM="⧴",yM="⥨",wM="℞",kM="Ś",xM="ś",CM="‚",OM="⪸",SM="Š",TM="š",EM="⪼",_M="≻",MM="≽",IM="⪰",jM="⪴",DM="Ş",NM="ş",AM="Ŝ",LM="ŝ",PM="⪺",BM="⪶",FM="⋩",RM="⨓",qM="≿",HM="С",UM="с",VM="⊡",zM="⋅",$M="⩦",WM="⤥",GM="↘",KM="⇘",JM="↘",YM="§",XM=";",QM="⤩",ZM="∖",eI="∖",tI="✶",nI="𝔖",rI="𝔰",iI="⌢",oI="♯",aI="Щ",sI="щ",cI="Ш",lI="ш",uI="↓",dI="←",fI="∣",pI="∥",hI="→",mI="↑",vI="­",gI="Σ",bI="σ",yI="ς",wI="ς",kI="∼",xI="⩪",CI="≃",OI="≃",SI="⪞",TI="⪠",EI="⪝",_I="⪟",MI="≆",II="⨤",jI="⥲",DI="←",NI="∘",AI="∖",LI="⨳",PI="⧤",BI="∣",FI="⌣",RI="⪪",qI="⪬",HI="⪬︀",UI="Ь",VI="ь",zI="⌿",$I="⧄",WI="/",GI="𝕊",KI="𝕤",JI="♠",YI="♠",XI="∥",QI="⊓",ZI="⊓︀",ej="⊔",tj="⊔︀",nj="√",rj="⊏",ij="⊑",oj="⊏",aj="⊑",sj="⊐",cj="⊒",lj="⊐",uj="⊒",dj="□",fj="□",pj="⊓",hj="⊏",mj="⊑",vj="⊐",gj="⊒",bj="⊔",yj="▪",wj="□",kj="▪",xj="→",Cj="𝒮",Oj="𝓈",Sj="∖",Tj="⌣",Ej="⋆",_j="⋆",Mj="☆",Ij="★",jj="ϵ",Dj="ϕ",Nj="¯",Aj="⊂",Lj="⋐",Pj="⪽",Bj="⫅",Fj="⊆",Rj="⫃",qj="⫁",Hj="⫋",Uj="⊊",Vj="⪿",zj="⥹",$j="⊂",Wj="⋐",Gj="⊆",Kj="⫅",Jj="⊆",Yj="⊊",Xj="⫋",Qj="⫇",Zj="⫕",eD="⫓",tD="⪸",nD="≻",rD="≽",iD="≻",oD="⪰",aD="≽",sD="≿",cD="⪰",lD="⪺",uD="⪶",dD="⋩",fD="≿",pD="∋",hD="∑",mD="∑",vD="♪",gD="¹",bD="²",yD="³",wD="⊃",kD="⋑",xD="⪾",CD="⫘",OD="⫆",SD="⊇",TD="⫄",ED="⊃",_D="⊇",MD="⟉",ID="⫗",jD="⥻",DD="⫂",ND="⫌",AD="⊋",LD="⫀",PD="⊃",BD="⋑",FD="⊇",RD="⫆",qD="⊋",HD="⫌",UD="⫈",VD="⫔",zD="⫖",$D="⤦",WD="↙",GD="⇙",KD="↙",JD="⤪",YD="ß",XD="\t",QD="⌖",ZD="Τ",eN="τ",tN="⎴",nN="Ť",rN="ť",iN="Ţ",oN="ţ",aN="Т",sN="т",cN="⃛",lN="⌕",uN="𝔗",dN="𝔱",fN="∴",pN="∴",hN="∴",mN="Θ",vN="θ",gN="ϑ",bN="ϑ",yN="≈",wN="∼",kN="  ",xN=" ",CN=" ",ON="≈",SN="∼",TN="Þ",EN="þ",_N="˜",MN="∼",IN="≃",jN="≅",DN="≈",NN="⨱",AN="⊠",LN="×",PN="⨰",BN="∭",FN="⤨",RN="⌶",qN="⫱",HN="⊤",UN="𝕋",VN="𝕥",zN="⫚",$N="⤩",WN="‴",GN="™",KN="™",JN="▵",YN="▿",XN="◃",QN="⊴",ZN="≜",eA="▹",tA="⊵",nA="◬",rA="≜",iA="⨺",oA="⃛",aA="⨹",sA="⧍",cA="⨻",lA="⏢",uA="𝒯",dA="𝓉",fA="Ц",pA="ц",hA="Ћ",mA="ћ",vA="Ŧ",gA="ŧ",bA="≬",yA="↞",wA="↠",kA="Ú",xA="ú",CA="↑",OA="↟",SA="⇑",TA="⥉",EA="Ў",_A="ў",MA="Ŭ",IA="ŭ",jA="Û",DA="û",NA="У",AA="у",LA="⇅",PA="Ű",BA="ű",FA="⥮",RA="⥾",qA="𝔘",HA="𝔲",UA="Ù",VA="ù",zA="⥣",$A="↿",WA="↾",GA="▀",KA="⌜",JA="⌜",YA="⌏",XA="◸",QA="Ū",ZA="ū",eL="¨",tL="_",nL="⏟",rL="⎵",iL="⏝",oL="⋃",aL="⊎",sL="Ų",cL="ų",lL="𝕌",uL="𝕦",dL="⤒",fL="↑",pL="↑",hL="⇑",mL="⇅",vL="↕",gL="↕",bL="⇕",yL="⥮",wL="↿",kL="↾",xL="⊎",CL="↖",OL="↗",SL="υ",TL="ϒ",EL="ϒ",_L="Υ",ML="υ",IL="↥",jL="⊥",DL="⇈",NL="⌝",AL="⌝",LL="⌎",PL="Ů",BL="ů",FL="◹",RL="𝒰",qL="𝓊",HL="⋰",UL="Ũ",VL="ũ",zL="▵",$L="▴",WL="⇈",GL="Ü",KL="ü",JL="⦧",YL="⦜",XL="ϵ",QL="ϰ",ZL="∅",eP="ϕ",tP="ϖ",nP="∝",rP="↕",iP="⇕",oP="ϱ",aP="ς",sP="⊊︀",cP="⫋︀",lP="⊋︀",uP="⫌︀",dP="ϑ",fP="⊲",pP="⊳",hP="⫨",mP="⫫",vP="⫩",gP="В",bP="в",yP="⊢",wP="⊨",kP="⊩",xP="⊫",CP="⫦",OP="⊻",SP="∨",TP="⋁",EP="≚",_P="⋮",MP="|",IP="‖",jP="|",DP="‖",NP="∣",AP="|",LP="❘",PP="≀",BP=" ",FP="𝔙",RP="𝔳",qP="⊲",HP="⊂⃒",UP="⊃⃒",VP="𝕍",zP="𝕧",$P="∝",WP="⊳",GP="𝒱",KP="𝓋",JP="⫋︀",YP="⊊︀",XP="⫌︀",QP="⊋︀",ZP="⊪",eB="⦚",tB="Ŵ",nB="ŵ",rB="⩟",iB="∧",oB="⋀",aB="≙",sB="℘",cB="𝔚",lB="𝔴",uB="𝕎",dB="𝕨",fB="℘",pB="≀",hB="≀",mB="𝒲",vB="𝓌",gB="⋂",bB="◯",yB="⋃",wB="▽",kB="𝔛",xB="𝔵",CB="⟷",OB="⟺",SB="Ξ",TB="ξ",EB="⟵",_B="⟸",MB="⟼",IB="⋻",jB="⨀",DB="𝕏",NB="𝕩",AB="⨁",LB="⨂",PB="⟶",BB="⟹",FB="𝒳",RB="𝓍",qB="⨆",HB="⨄",UB="△",VB="⋁",zB="⋀",$B="Ý",WB="ý",GB="Я",KB="я",JB="Ŷ",YB="ŷ",XB="Ы",QB="ы",ZB="¥",eF="𝔜",tF="𝔶",nF="Ї",rF="ї",iF="𝕐",oF="𝕪",aF="𝒴",sF="𝓎",cF="Ю",lF="ю",uF="ÿ",dF="Ÿ",fF="Ź",pF="ź",hF="Ž",mF="ž",vF="З",gF="з",bF="Ż",yF="ż",wF="ℨ",kF="​",xF="Ζ",CF="ζ",OF="𝔷",SF="ℨ",TF="Ж",EF="ж",_F="⇝",MF="𝕫",IF="ℤ",jF="𝒵",DF="𝓏",NF="‍",AF="‌",LF={Aacute:m,aacute:v,Abreve:g,abreve:b,ac:y,acd:w,acE:k,Acirc:x,acirc:C,acute:O,Acy:S,acy:T,AElig:E,aelig:_,af:M,Afr:I,afr:j,Agrave:D,agrave:N,alefsym:A,aleph:L,Alpha:P,alpha:B,Amacr:F,amacr:R,amalg:q,amp:H,AMP:U,andand:V,And:z,and:$,andd:W,andslope:G,andv:K,ang:J,ange:Y,angle:X,angmsdaa:Q,angmsdab:Z,angmsdac:ee,angmsdad:te,angmsdae:ne,angmsdaf:re,angmsdag:ie,angmsdah:oe,angmsd:ae,angrt:se,angrtvb:ce,angrtvbd:le,angsph:ue,angst:de,angzarr:fe,Aogon:pe,aogon:he,Aopf:me,aopf:ve,apacir:ge,ap:be,apE:ye,ape:we,apid:ke,apos:xe,ApplyFunction:Ce,approx:Oe,approxeq:Se,Aring:Te,aring:Ee,Ascr:_e,ascr:Me,Assign:Ie,ast:je,asymp:De,asympeq:Ne,Atilde:Ae,atilde:Le,Auml:Pe,auml:Be,awconint:Fe,awint:Re,backcong:qe,backepsilon:He,backprime:Ue,backsim:Ve,backsimeq:ze,Backslash:$e,Barv:We,barvee:Ge,barwed:Ke,Barwed:Je,barwedge:Ye,bbrk:Xe,bbrktbrk:Qe,bcong:Ze,Bcy:et,bcy:tt,bdquo:nt,becaus:rt,because:it,Because:ot,bemptyv:at,bepsi:st,bernou:ct,Bernoullis:lt,Beta:ut,beta:dt,beth:ft,between:pt,Bfr:ht,bfr:mt,bigcap:vt,bigcirc:gt,bigcup:bt,bigodot:yt,bigoplus:wt,bigotimes:kt,bigsqcup:xt,bigstar:Ct,bigtriangledown:Ot,bigtriangleup:St,biguplus:Tt,bigvee:Et,bigwedge:_t,bkarow:Mt,blacklozenge:It,blacksquare:jt,blacktriangle:Dt,blacktriangledown:Nt,blacktriangleleft:At,blacktriangleright:Lt,blank:Pt,blk12:Bt,blk14:Ft,blk34:Rt,block:qt,bne:Ht,bnequiv:Ut,bNot:Vt,bnot:zt,Bopf:$t,bopf:Wt,bot:Gt,bottom:Kt,bowtie:Jt,boxbox:Yt,boxdl:Xt,boxdL:Qt,boxDl:Zt,boxDL:en,boxdr:tn,boxdR:nn,boxDr:rn,boxDR:on,boxh:an,boxH:sn,boxhd:cn,boxHd:ln,boxhD:un,boxHD:dn,boxhu:fn,boxHu:pn,boxhU:hn,boxHU:mn,boxminus:vn,boxplus:gn,boxtimes:bn,boxul:yn,boxuL:wn,boxUl:kn,boxUL:xn,boxur:Cn,boxuR:On,boxUr:Sn,boxUR:Tn,boxv:En,boxV:_n,boxvh:Mn,boxvH:In,boxVh:jn,boxVH:Dn,boxvl:Nn,boxvL:An,boxVl:Ln,boxVL:Pn,boxvr:Bn,boxvR:Fn,boxVr:Rn,boxVR:qn,bprime:Hn,breve:Un,Breve:Vn,brvbar:zn,bscr:$n,Bscr:Wn,bsemi:Gn,bsim:Kn,bsime:Jn,bsolb:Yn,bsol:Xn,bsolhsub:Qn,bull:Zn,bullet:er,bump:tr,bumpE:nr,bumpe:rr,Bumpeq:ir,bumpeq:or,Cacute:ar,cacute:sr,capand:cr,capbrcup:lr,capcap:ur,cap:dr,Cap:fr,capcup:pr,capdot:hr,CapitalDifferentialD:mr,caps:vr,caret:gr,caron:br,Cayleys:yr,ccaps:wr,Ccaron:kr,ccaron:xr,Ccedil:Cr,ccedil:Or,Ccirc:Sr,ccirc:Tr,Cconint:Er,ccups:_r,ccupssm:Mr,Cdot:Ir,cdot:jr,cedil:Dr,Cedilla:Nr,cemptyv:Ar,cent:Lr,centerdot:Pr,CenterDot:Br,cfr:Fr,Cfr:Rr,CHcy:qr,chcy:Hr,check:Ur,checkmark:Vr,Chi:zr,chi:$r,circ:Wr,circeq:Gr,circlearrowleft:Kr,circlearrowright:Jr,circledast:Yr,circledcirc:Xr,circleddash:Qr,CircleDot:Zr,circledR:ei,circledS:ti,CircleMinus:ni,CirclePlus:ri,CircleTimes:ii,cir:oi,cirE:ai,cire:si,cirfnint:ci,cirmid:li,cirscir:ui,ClockwiseContourIntegral:di,CloseCurlyDoubleQuote:fi,CloseCurlyQuote:pi,clubs:hi,clubsuit:mi,colon:vi,Colon:gi,Colone:bi,colone:yi,coloneq:wi,comma:ki,commat:xi,comp:Ci,compfn:Oi,complement:Si,complexes:Ti,cong:Ei,congdot:_i,Congruent:Mi,conint:Ii,Conint:ji,ContourIntegral:Di,copf:Ni,Copf:Ai,coprod:Li,Coproduct:Pi,copy:Bi,COPY:Fi,copysr:Ri,CounterClockwiseContourIntegral:qi,crarr:Hi,cross:Ui,Cross:Vi,Cscr:zi,cscr:$i,csub:Wi,csube:Gi,csup:Ki,csupe:Ji,ctdot:Yi,cudarrl:Xi,cudarrr:Qi,cuepr:Zi,cuesc:eo,cularr:to,cularrp:no,cupbrcap:ro,cupcap:io,CupCap:oo,cup:ao,Cup:so,cupcup:co,cupdot:lo,cupor:uo,cups:fo,curarr:po,curarrm:ho,curlyeqprec:mo,curlyeqsucc:vo,curlyvee:go,curlywedge:bo,curren:yo,curvearrowleft:wo,curvearrowright:ko,cuvee:xo,cuwed:Co,cwconint:Oo,cwint:So,cylcty:To,dagger:Eo,Dagger:_o,daleth:Mo,darr:Io,Darr:jo,dArr:Do,dash:No,Dashv:Ao,dashv:Lo,dbkarow:Po,dblac:Bo,Dcaron:Fo,dcaron:Ro,Dcy:qo,dcy:Ho,ddagger:Uo,ddarr:Vo,DD:zo,dd:$o,DDotrahd:Wo,ddotseq:Go,deg:Ko,Del:Jo,Delta:Yo,delta:Xo,demptyv:Qo,dfisht:Zo,Dfr:ea,dfr:ta,dHar:na,dharl:ra,dharr:ia,DiacriticalAcute:oa,DiacriticalDot:aa,DiacriticalDoubleAcute:sa,DiacriticalGrave:ca,DiacriticalTilde:la,diam:ua,diamond:da,Diamond:fa,diamondsuit:pa,diams:ha,die:ma,DifferentialD:va,digamma:ga,disin:ba,div:ya,divide:wa,divideontimes:ka,divonx:xa,DJcy:Ca,djcy:Oa,dlcorn:Sa,dlcrop:Ta,dollar:Ea,Dopf:_a,dopf:Ma,Dot:Ia,dot:ja,DotDot:Da,doteq:Na,doteqdot:Aa,DotEqual:La,dotminus:Pa,dotplus:Ba,dotsquare:Fa,doublebarwedge:Ra,DoubleContourIntegral:qa,DoubleDot:Ha,DoubleDownArrow:Ua,DoubleLeftArrow:Va,DoubleLeftRightArrow:za,DoubleLeftTee:$a,DoubleLongLeftArrow:Wa,DoubleLongLeftRightArrow:Ga,DoubleLongRightArrow:Ka,DoubleRightArrow:Ja,DoubleRightTee:Ya,DoubleUpArrow:Xa,DoubleUpDownArrow:Qa,DoubleVerticalBar:Za,DownArrowBar:es,downarrow:ts,DownArrow:ns,Downarrow:rs,DownArrowUpArrow:is,DownBreve:os,downdownarrows:as,downharpoonleft:ss,downharpoonright:cs,DownLeftRightVector:ls,DownLeftTeeVector:us,DownLeftVectorBar:ds,DownLeftVector:fs,DownRightTeeVector:ps,DownRightVectorBar:hs,DownRightVector:ms,DownTeeArrow:vs,DownTee:gs,drbkarow:bs,drcorn:ys,drcrop:ws,Dscr:ks,dscr:xs,DScy:Cs,dscy:Os,dsol:Ss,Dstrok:Ts,dstrok:Es,dtdot:_s,dtri:Ms,dtrif:Is,duarr:js,duhar:Ds,dwangle:Ns,DZcy:As,dzcy:Ls,dzigrarr:Ps,Eacute:Bs,eacute:Fs,easter:Rs,Ecaron:qs,ecaron:Hs,Ecirc:Us,ecirc:Vs,ecir:zs,ecolon:$s,Ecy:Ws,ecy:Gs,eDDot:Ks,Edot:Js,edot:Ys,eDot:Xs,ee:Qs,efDot:Zs,Efr:ec,efr:tc,eg:nc,Egrave:rc,egrave:ic,egs:oc,egsdot:ac,el:sc,Element:cc,elinters:lc,ell:uc,els:dc,elsdot:fc,Emacr:pc,emacr:hc,empty:mc,emptyset:vc,EmptySmallSquare:gc,emptyv:bc,EmptyVerySmallSquare:yc,emsp13:wc,emsp14:kc,emsp:xc,ENG:Cc,eng:Oc,ensp:Sc,Eogon:Tc,eogon:Ec,Eopf:_c,eopf:Mc,epar:Ic,eparsl:jc,eplus:Dc,epsi:Nc,Epsilon:Ac,epsilon:Lc,epsiv:Pc,eqcirc:Bc,eqcolon:Fc,eqsim:Rc,eqslantgtr:qc,eqslantless:Hc,Equal:Uc,equals:Vc,EqualTilde:zc,equest:$c,Equilibrium:Wc,equiv:Gc,equivDD:Kc,eqvparsl:Jc,erarr:Yc,erDot:Xc,escr:Qc,Escr:Zc,esdot:el,Esim:tl,esim:nl,Eta:rl,eta:il,ETH:ol,eth:al,Euml:sl,euml:cl,euro:ll,excl:ul,exist:dl,Exists:fl,expectation:pl,exponentiale:hl,ExponentialE:ml,fallingdotseq:vl,Fcy:gl,fcy:bl,female:yl,ffilig:wl,fflig:kl,ffllig:xl,Ffr:Cl,ffr:Ol,filig:Sl,FilledSmallSquare:Tl,FilledVerySmallSquare:El,fjlig:_l,flat:Ml,fllig:Il,fltns:jl,fnof:Dl,Fopf:Nl,fopf:Al,forall:Ll,ForAll:Pl,fork:Bl,forkv:Fl,Fouriertrf:Rl,fpartint:ql,frac12:Hl,frac13:Ul,frac14:Vl,frac15:zl,frac16:$l,frac18:Wl,frac23:Gl,frac25:Kl,frac34:Jl,frac35:Yl,frac38:Xl,frac45:Ql,frac56:Zl,frac58:eu,frac78:tu,frasl:nu,frown:ru,fscr:iu,Fscr:ou,gacute:au,Gamma:su,gamma:cu,Gammad:lu,gammad:uu,gap:du,Gbreve:fu,gbreve:pu,Gcedil:hu,Gcirc:mu,gcirc:vu,Gcy:gu,gcy:bu,Gdot:yu,gdot:wu,ge:ku,gE:xu,gEl:Cu,gel:Ou,geq:Su,geqq:Tu,geqslant:Eu,gescc:_u,ges:Mu,gesdot:Iu,gesdoto:ju,gesdotol:Du,gesl:Nu,gesles:Au,Gfr:Lu,gfr:Pu,gg:Bu,Gg:Fu,ggg:Ru,gimel:qu,GJcy:Hu,gjcy:Uu,gla:Vu,gl:zu,glE:$u,glj:Wu,gnap:Gu,gnapprox:Ku,gne:Ju,gnE:Yu,gneq:Xu,gneqq:Qu,gnsim:Zu,Gopf:ed,gopf:td,grave:nd,GreaterEqual:rd,GreaterEqualLess:id,GreaterFullEqual:od,GreaterGreater:ad,GreaterLess:sd,GreaterSlantEqual:cd,GreaterTilde:ld,Gscr:ud,gscr:dd,gsim:fd,gsime:pd,gsiml:hd,gtcc:md,gtcir:vd,gt:gd,GT:bd,Gt:yd,gtdot:wd,gtlPar:kd,gtquest:xd,gtrapprox:Cd,gtrarr:Od,gtrdot:Sd,gtreqless:Td,gtreqqless:Ed,gtrless:_d,gtrsim:Md,gvertneqq:Id,gvnE:jd,Hacek:Dd,hairsp:Nd,half:Ad,hamilt:Ld,HARDcy:Pd,hardcy:Bd,harrcir:Fd,harr:Rd,hArr:qd,harrw:Hd,Hat:Ud,hbar:Vd,Hcirc:zd,hcirc:$d,hearts:Wd,heartsuit:Gd,hellip:Kd,hercon:Jd,hfr:Yd,Hfr:Xd,HilbertSpace:Qd,hksearow:Zd,hkswarow:ef,hoarr:tf,homtht:nf,hookleftarrow:rf,hookrightarrow:of,hopf:af,Hopf:sf,horbar:cf,HorizontalLine:lf,hscr:uf,Hscr:df,hslash:ff,Hstrok:pf,hstrok:hf,HumpDownHump:mf,HumpEqual:vf,hybull:gf,hyphen:bf,Iacute:yf,iacute:wf,ic:kf,Icirc:xf,icirc:Cf,Icy:Of,icy:Sf,Idot:Tf,IEcy:Ef,iecy:_f,iexcl:Mf,iff:If,ifr:jf,Ifr:Df,Igrave:Nf,igrave:Af,ii:Lf,iiiint:Pf,iiint:Bf,iinfin:Ff,iiota:Rf,IJlig:qf,ijlig:Hf,Imacr:Uf,imacr:Vf,image:zf,ImaginaryI:$f,imagline:Wf,imagpart:Gf,imath:Kf,Im:Jf,imof:Yf,imped:Xf,Implies:Qf,incare:Zf,in:"∈",infin:ep,infintie:tp,inodot:np,intcal:rp,int:ip,Int:op,integers:ap,Integral:sp,intercal:cp,Intersection:lp,intlarhk:up,intprod:dp,InvisibleComma:fp,InvisibleTimes:pp,IOcy:hp,iocy:mp,Iogon:vp,iogon:gp,Iopf:bp,iopf:yp,Iota:wp,iota:kp,iprod:xp,iquest:Cp,iscr:Op,Iscr:Sp,isin:Tp,isindot:Ep,isinE:_p,isins:Mp,isinsv:Ip,isinv:jp,it:Dp,Itilde:Np,itilde:Ap,Iukcy:Lp,iukcy:Pp,Iuml:Bp,iuml:Fp,Jcirc:Rp,jcirc:qp,Jcy:Hp,jcy:Up,Jfr:Vp,jfr:zp,jmath:$p,Jopf:Wp,jopf:Gp,Jscr:Kp,jscr:Jp,Jsercy:Yp,jsercy:Xp,Jukcy:Qp,jukcy:Zp,Kappa:eh,kappa:th,kappav:nh,Kcedil:rh,kcedil:ih,Kcy:oh,kcy:ah,Kfr:sh,kfr:ch,kgreen:lh,KHcy:uh,khcy:dh,KJcy:fh,kjcy:ph,Kopf:hh,kopf:mh,Kscr:vh,kscr:gh,lAarr:bh,Lacute:yh,lacute:wh,laemptyv:kh,lagran:xh,Lambda:Ch,lambda:Oh,lang:Sh,Lang:Th,langd:Eh,langle:_h,lap:Mh,Laplacetrf:Ih,laquo:jh,larrb:Dh,larrbfs:Nh,larr:Ah,Larr:Lh,lArr:Ph,larrfs:Bh,larrhk:Fh,larrlp:Rh,larrpl:qh,larrsim:Hh,larrtl:Uh,latail:Vh,lAtail:zh,lat:$h,late:Wh,lates:Gh,lbarr:Kh,lBarr:Jh,lbbrk:Yh,lbrace:Xh,lbrack:Qh,lbrke:Zh,lbrksld:em,lbrkslu:tm,Lcaron:nm,lcaron:rm,Lcedil:im,lcedil:om,lceil:am,lcub:sm,Lcy:cm,lcy:lm,ldca:um,ldquo:dm,ldquor:fm,ldrdhar:pm,ldrushar:hm,ldsh:mm,le:vm,lE:gm,LeftAngleBracket:bm,LeftArrowBar:ym,leftarrow:wm,LeftArrow:km,Leftarrow:xm,LeftArrowRightArrow:Cm,leftarrowtail:Om,LeftCeiling:Sm,LeftDoubleBracket:Tm,LeftDownTeeVector:Em,LeftDownVectorBar:_m,LeftDownVector:Mm,LeftFloor:Im,leftharpoondown:jm,leftharpoonup:Dm,leftleftarrows:Nm,leftrightarrow:Am,LeftRightArrow:Lm,Leftrightarrow:Pm,leftrightarrows:Bm,leftrightharpoons:Fm,leftrightsquigarrow:Rm,LeftRightVector:qm,LeftTeeArrow:Hm,LeftTee:Um,LeftTeeVector:Vm,leftthreetimes:zm,LeftTriangleBar:$m,LeftTriangle:Wm,LeftTriangleEqual:Gm,LeftUpDownVector:Km,LeftUpTeeVector:Jm,LeftUpVectorBar:Ym,LeftUpVector:Xm,LeftVectorBar:Qm,LeftVector:Zm,lEg:ev,leg:tv,leq:nv,leqq:rv,leqslant:iv,lescc:ov,les:av,lesdot:sv,lesdoto:cv,lesdotor:lv,lesg:uv,lesges:dv,lessapprox:fv,lessdot:pv,lesseqgtr:hv,lesseqqgtr:mv,LessEqualGreater:vv,LessFullEqual:gv,LessGreater:bv,lessgtr:yv,LessLess:wv,lesssim:kv,LessSlantEqual:xv,LessTilde:Cv,lfisht:Ov,lfloor:Sv,Lfr:Tv,lfr:Ev,lg:_v,lgE:Mv,lHar:Iv,lhard:jv,lharu:Dv,lharul:Nv,lhblk:Av,LJcy:Lv,ljcy:Pv,llarr:Bv,ll:Fv,Ll:Rv,llcorner:qv,Lleftarrow:Hv,llhard:Uv,lltri:Vv,Lmidot:zv,lmidot:$v,lmoustache:Wv,lmoust:Gv,lnap:Kv,lnapprox:Jv,lne:Yv,lnE:Xv,lneq:Qv,lneqq:Zv,lnsim:eg,loang:tg,loarr:ng,lobrk:rg,longleftarrow:ig,LongLeftArrow:og,Longleftarrow:ag,longleftrightarrow:sg,LongLeftRightArrow:cg,Longleftrightarrow:lg,longmapsto:ug,longrightarrow:dg,LongRightArrow:fg,Longrightarrow:pg,looparrowleft:hg,looparrowright:mg,lopar:vg,Lopf:gg,lopf:bg,loplus:yg,lotimes:wg,lowast:kg,lowbar:xg,LowerLeftArrow:Cg,LowerRightArrow:Og,loz:Sg,lozenge:Tg,lozf:Eg,lpar:_g,lparlt:Mg,lrarr:Ig,lrcorner:jg,lrhar:Dg,lrhard:Ng,lrm:Ag,lrtri:Lg,lsaquo:Pg,lscr:Bg,Lscr:Fg,lsh:Rg,Lsh:qg,lsim:Hg,lsime:Ug,lsimg:Vg,lsqb:zg,lsquo:$g,lsquor:Wg,Lstrok:Gg,lstrok:Kg,ltcc:Jg,ltcir:Yg,lt:Xg,LT:Qg,Lt:Zg,ltdot:eb,lthree:tb,ltimes:nb,ltlarr:rb,ltquest:ib,ltri:ob,ltrie:ab,ltrif:sb,ltrPar:cb,lurdshar:lb,luruhar:ub,lvertneqq:db,lvnE:fb,macr:pb,male:hb,malt:mb,maltese:vb,Map:"⤅",map:gb,mapsto:bb,mapstodown:yb,mapstoleft:wb,mapstoup:kb,marker:xb,mcomma:Cb,Mcy:Ob,mcy:Sb,mdash:Tb,mDDot:Eb,measuredangle:_b,MediumSpace:Mb,Mellintrf:Ib,Mfr:jb,mfr:Db,mho:Nb,micro:Ab,midast:Lb,midcir:Pb,mid:Bb,middot:Fb,minusb:Rb,minus:qb,minusd:Hb,minusdu:Ub,MinusPlus:Vb,mlcp:zb,mldr:$b,mnplus:Wb,models:Gb,Mopf:Kb,mopf:Jb,mp:Yb,mscr:Xb,Mscr:Qb,mstpos:Zb,Mu:ey,mu:ty,multimap:ny,mumap:ry,nabla:iy,Nacute:oy,nacute:ay,nang:sy,nap:cy,napE:ly,napid:uy,napos:dy,napprox:fy,natural:py,naturals:hy,natur:my,nbsp:vy,nbump:gy,nbumpe:by,ncap:yy,Ncaron:wy,ncaron:ky,Ncedil:xy,ncedil:Cy,ncong:Oy,ncongdot:Sy,ncup:Ty,Ncy:Ey,ncy:_y,ndash:My,nearhk:Iy,nearr:jy,neArr:Dy,nearrow:Ny,ne:Ay,nedot:Ly,NegativeMediumSpace:Py,NegativeThickSpace:By,NegativeThinSpace:Fy,NegativeVeryThinSpace:Ry,nequiv:qy,nesear:Hy,nesim:Uy,NestedGreaterGreater:Vy,NestedLessLess:zy,NewLine:$y,nexist:Wy,nexists:Gy,Nfr:Ky,nfr:Jy,ngE:Yy,nge:Xy,ngeq:Qy,ngeqq:Zy,ngeqslant:ew,nges:tw,nGg:nw,ngsim:rw,nGt:iw,ngt:ow,ngtr:aw,nGtv:sw,nharr:cw,nhArr:lw,nhpar:uw,ni:dw,nis:fw,nisd:pw,niv:hw,NJcy:mw,njcy:vw,nlarr:gw,nlArr:bw,nldr:yw,nlE:ww,nle:kw,nleftarrow:xw,nLeftarrow:Cw,nleftrightarrow:Ow,nLeftrightarrow:Sw,nleq:Tw,nleqq:Ew,nleqslant:_w,nles:Mw,nless:Iw,nLl:jw,nlsim:Dw,nLt:Nw,nlt:Aw,nltri:Lw,nltrie:Pw,nLtv:Bw,nmid:Fw,NoBreak:Rw,NonBreakingSpace:qw,nopf:Hw,Nopf:Uw,Not:Vw,not:zw,NotCongruent:$w,NotCupCap:Ww,NotDoubleVerticalBar:Gw,NotElement:Kw,NotEqual:Jw,NotEqualTilde:Yw,NotExists:Xw,NotGreater:Qw,NotGreaterEqual:Zw,NotGreaterFullEqual:ek,NotGreaterGreater:tk,NotGreaterLess:nk,NotGreaterSlantEqual:rk,NotGreaterTilde:ik,NotHumpDownHump:ok,NotHumpEqual:ak,notin:sk,notindot:ck,notinE:lk,notinva:uk,notinvb:dk,notinvc:fk,NotLeftTriangleBar:pk,NotLeftTriangle:hk,NotLeftTriangleEqual:mk,NotLess:vk,NotLessEqual:gk,NotLessGreater:bk,NotLessLess:yk,NotLessSlantEqual:wk,NotLessTilde:kk,NotNestedGreaterGreater:xk,NotNestedLessLess:Ck,notni:Ok,notniva:Sk,notnivb:Tk,notnivc:Ek,NotPrecedes:_k,NotPrecedesEqual:Mk,NotPrecedesSlantEqual:Ik,NotReverseElement:jk,NotRightTriangleBar:Dk,NotRightTriangle:Nk,NotRightTriangleEqual:Ak,NotSquareSubset:Lk,NotSquareSubsetEqual:Pk,NotSquareSuperset:Bk,NotSquareSupersetEqual:Fk,NotSubset:Rk,NotSubsetEqual:qk,NotSucceeds:Hk,NotSucceedsEqual:Uk,NotSucceedsSlantEqual:Vk,NotSucceedsTilde:zk,NotSuperset:$k,NotSupersetEqual:Wk,NotTilde:Gk,NotTildeEqual:Kk,NotTildeFullEqual:Jk,NotTildeTilde:Yk,NotVerticalBar:Xk,nparallel:Qk,npar:Zk,nparsl:ex,npart:tx,npolint:nx,npr:rx,nprcue:ix,nprec:ox,npreceq:ax,npre:sx,nrarrc:cx,nrarr:lx,nrArr:ux,nrarrw:dx,nrightarrow:fx,nRightarrow:px,nrtri:hx,nrtrie:mx,nsc:vx,nsccue:gx,nsce:bx,Nscr:yx,nscr:wx,nshortmid:kx,nshortparallel:xx,nsim:Cx,nsime:Ox,nsimeq:Sx,nsmid:Tx,nspar:Ex,nsqsube:_x,nsqsupe:Mx,nsub:Ix,nsubE:jx,nsube:Dx,nsubset:Nx,nsubseteq:Ax,nsubseteqq:Lx,nsucc:Px,nsucceq:Bx,nsup:Fx,nsupE:Rx,nsupe:qx,nsupset:Hx,nsupseteq:Ux,nsupseteqq:Vx,ntgl:zx,Ntilde:$x,ntilde:Wx,ntlg:Gx,ntriangleleft:Kx,ntrianglelefteq:Jx,ntriangleright:Yx,ntrianglerighteq:Xx,Nu:Qx,nu:Zx,num:eC,numero:tC,numsp:nC,nvap:rC,nvdash:iC,nvDash:oC,nVdash:aC,nVDash:sC,nvge:cC,nvgt:lC,nvHarr:uC,nvinfin:dC,nvlArr:fC,nvle:pC,nvlt:hC,nvltrie:mC,nvrArr:vC,nvrtrie:gC,nvsim:bC,nwarhk:yC,nwarr:wC,nwArr:kC,nwarrow:xC,nwnear:CC,Oacute:OC,oacute:SC,oast:TC,Ocirc:EC,ocirc:_C,ocir:MC,Ocy:IC,ocy:jC,odash:DC,Odblac:NC,odblac:AC,odiv:LC,odot:PC,odsold:BC,OElig:FC,oelig:RC,ofcir:qC,Ofr:HC,ofr:UC,ogon:VC,Ograve:zC,ograve:$C,ogt:WC,ohbar:GC,ohm:KC,oint:JC,olarr:YC,olcir:XC,olcross:QC,oline:ZC,olt:eO,Omacr:tO,omacr:nO,Omega:rO,omega:iO,Omicron:oO,omicron:aO,omid:sO,ominus:cO,Oopf:lO,oopf:uO,opar:dO,OpenCurlyDoubleQuote:fO,OpenCurlyQuote:pO,operp:hO,oplus:mO,orarr:vO,Or:gO,or:bO,ord:yO,order:wO,orderof:kO,ordf:xO,ordm:CO,origof:OO,oror:SO,orslope:TO,orv:EO,oS:_O,Oscr:MO,oscr:IO,Oslash:jO,oslash:DO,osol:NO,Otilde:AO,otilde:LO,otimesas:PO,Otimes:BO,otimes:FO,Ouml:RO,ouml:qO,ovbar:HO,OverBar:UO,OverBrace:VO,OverBracket:zO,OverParenthesis:$O,para:WO,parallel:GO,par:KO,parsim:JO,parsl:YO,part:XO,PartialD:QO,Pcy:ZO,pcy:eS,percnt:tS,period:nS,permil:rS,perp:iS,pertenk:oS,Pfr:aS,pfr:sS,Phi:cS,phi:lS,phiv:uS,phmmat:dS,phone:fS,Pi:pS,pi:hS,pitchfork:mS,piv:vS,planck:gS,planckh:bS,plankv:yS,plusacir:wS,plusb:kS,pluscir:xS,plus:CS,plusdo:OS,plusdu:SS,pluse:TS,PlusMinus:ES,plusmn:_S,plussim:MS,plustwo:IS,pm:jS,Poincareplane:DS,pointint:NS,popf:AS,Popf:LS,pound:PS,prap:BS,Pr:FS,pr:RS,prcue:qS,precapprox:HS,prec:US,preccurlyeq:VS,Precedes:zS,PrecedesEqual:$S,PrecedesSlantEqual:WS,PrecedesTilde:GS,preceq:KS,precnapprox:JS,precneqq:YS,precnsim:XS,pre:QS,prE:ZS,precsim:eT,prime:tT,Prime:nT,primes:rT,prnap:iT,prnE:oT,prnsim:aT,prod:sT,Product:cT,profalar:lT,profline:uT,profsurf:dT,prop:fT,Proportional:pT,Proportion:hT,propto:mT,prsim:vT,prurel:gT,Pscr:bT,pscr:yT,Psi:wT,psi:kT,puncsp:xT,Qfr:CT,qfr:OT,qint:ST,qopf:TT,Qopf:ET,qprime:_T,Qscr:MT,qscr:IT,quaternions:jT,quatint:DT,quest:NT,questeq:AT,quot:LT,QUOT:PT,rAarr:BT,race:FT,Racute:RT,racute:qT,radic:HT,raemptyv:UT,rang:VT,Rang:zT,rangd:$T,range:WT,rangle:GT,raquo:KT,rarrap:JT,rarrb:YT,rarrbfs:XT,rarrc:QT,rarr:ZT,Rarr:eE,rArr:tE,rarrfs:nE,rarrhk:rE,rarrlp:iE,rarrpl:oE,rarrsim:aE,Rarrtl:sE,rarrtl:cE,rarrw:lE,ratail:uE,rAtail:dE,ratio:fE,rationals:pE,rbarr:hE,rBarr:mE,RBarr:vE,rbbrk:gE,rbrace:bE,rbrack:yE,rbrke:wE,rbrksld:kE,rbrkslu:xE,Rcaron:CE,rcaron:OE,Rcedil:SE,rcedil:TE,rceil:EE,rcub:_E,Rcy:ME,rcy:IE,rdca:jE,rdldhar:DE,rdquo:NE,rdquor:AE,rdsh:LE,real:PE,realine:BE,realpart:FE,reals:RE,Re:qE,rect:HE,reg:UE,REG:VE,ReverseElement:zE,ReverseEquilibrium:$E,ReverseUpEquilibrium:WE,rfisht:GE,rfloor:KE,rfr:JE,Rfr:YE,rHar:XE,rhard:QE,rharu:ZE,rharul:e_,Rho:t_,rho:n_,rhov:r_,RightAngleBracket:i_,RightArrowBar:o_,rightarrow:a_,RightArrow:s_,Rightarrow:c_,RightArrowLeftArrow:l_,rightarrowtail:u_,RightCeiling:d_,RightDoubleBracket:f_,RightDownTeeVector:p_,RightDownVectorBar:h_,RightDownVector:m_,RightFloor:v_,rightharpoondown:g_,rightharpoonup:b_,rightleftarrows:y_,rightleftharpoons:w_,rightrightarrows:k_,rightsquigarrow:x_,RightTeeArrow:C_,RightTee:O_,RightTeeVector:S_,rightthreetimes:T_,RightTriangleBar:E_,RightTriangle:__,RightTriangleEqual:M_,RightUpDownVector:I_,RightUpTeeVector:j_,RightUpVectorBar:D_,RightUpVector:N_,RightVectorBar:A_,RightVector:L_,ring:P_,risingdotseq:B_,rlarr:F_,rlhar:R_,rlm:q_,rmoustache:H_,rmoust:U_,rnmid:V_,roang:z_,roarr:$_,robrk:W_,ropar:G_,ropf:K_,Ropf:J_,roplus:Y_,rotimes:X_,RoundImplies:Q_,rpar:Z_,rpargt:eM,rppolint:tM,rrarr:nM,Rrightarrow:rM,rsaquo:iM,rscr:oM,Rscr:aM,rsh:sM,Rsh:cM,rsqb:lM,rsquo:uM,rsquor:dM,rthree:fM,rtimes:pM,rtri:hM,rtrie:mM,rtrif:vM,rtriltri:gM,RuleDelayed:bM,ruluhar:yM,rx:wM,Sacute:kM,sacute:xM,sbquo:CM,scap:OM,Scaron:SM,scaron:TM,Sc:EM,sc:_M,sccue:MM,sce:IM,scE:jM,Scedil:DM,scedil:NM,Scirc:AM,scirc:LM,scnap:PM,scnE:BM,scnsim:FM,scpolint:RM,scsim:qM,Scy:HM,scy:UM,sdotb:VM,sdot:zM,sdote:$M,searhk:WM,searr:GM,seArr:KM,searrow:JM,sect:YM,semi:XM,seswar:QM,setminus:ZM,setmn:eI,sext:tI,Sfr:nI,sfr:rI,sfrown:iI,sharp:oI,SHCHcy:aI,shchcy:sI,SHcy:cI,shcy:lI,ShortDownArrow:uI,ShortLeftArrow:dI,shortmid:fI,shortparallel:pI,ShortRightArrow:hI,ShortUpArrow:mI,shy:vI,Sigma:gI,sigma:bI,sigmaf:yI,sigmav:wI,sim:kI,simdot:xI,sime:CI,simeq:OI,simg:SI,simgE:TI,siml:EI,simlE:_I,simne:MI,simplus:II,simrarr:jI,slarr:DI,SmallCircle:NI,smallsetminus:AI,smashp:LI,smeparsl:PI,smid:BI,smile:FI,smt:RI,smte:qI,smtes:HI,SOFTcy:UI,softcy:VI,solbar:zI,solb:$I,sol:WI,Sopf:GI,sopf:KI,spades:JI,spadesuit:YI,spar:XI,sqcap:QI,sqcaps:ZI,sqcup:ej,sqcups:tj,Sqrt:nj,sqsub:rj,sqsube:ij,sqsubset:oj,sqsubseteq:aj,sqsup:sj,sqsupe:cj,sqsupset:lj,sqsupseteq:uj,square:dj,Square:fj,SquareIntersection:pj,SquareSubset:hj,SquareSubsetEqual:mj,SquareSuperset:vj,SquareSupersetEqual:gj,SquareUnion:bj,squarf:yj,squ:wj,squf:kj,srarr:xj,Sscr:Cj,sscr:Oj,ssetmn:Sj,ssmile:Tj,sstarf:Ej,Star:_j,star:Mj,starf:Ij,straightepsilon:jj,straightphi:Dj,strns:Nj,sub:Aj,Sub:Lj,subdot:Pj,subE:Bj,sube:Fj,subedot:Rj,submult:qj,subnE:Hj,subne:Uj,subplus:Vj,subrarr:zj,subset:$j,Subset:Wj,subseteq:Gj,subseteqq:Kj,SubsetEqual:Jj,subsetneq:Yj,subsetneqq:Xj,subsim:Qj,subsub:Zj,subsup:eD,succapprox:tD,succ:nD,succcurlyeq:rD,Succeeds:iD,SucceedsEqual:oD,SucceedsSlantEqual:aD,SucceedsTilde:sD,succeq:cD,succnapprox:lD,succneqq:uD,succnsim:dD,succsim:fD,SuchThat:pD,sum:hD,Sum:mD,sung:vD,sup1:gD,sup2:bD,sup3:yD,sup:wD,Sup:kD,supdot:xD,supdsub:CD,supE:OD,supe:SD,supedot:TD,Superset:ED,SupersetEqual:_D,suphsol:MD,suphsub:ID,suplarr:jD,supmult:DD,supnE:ND,supne:AD,supplus:LD,supset:PD,Supset:BD,supseteq:FD,supseteqq:RD,supsetneq:qD,supsetneqq:HD,supsim:UD,supsub:VD,supsup:zD,swarhk:$D,swarr:WD,swArr:GD,swarrow:KD,swnwar:JD,szlig:YD,Tab:XD,target:QD,Tau:ZD,tau:eN,tbrk:tN,Tcaron:nN,tcaron:rN,Tcedil:iN,tcedil:oN,Tcy:aN,tcy:sN,tdot:cN,telrec:lN,Tfr:uN,tfr:dN,there4:fN,therefore:pN,Therefore:hN,Theta:mN,theta:vN,thetasym:gN,thetav:bN,thickapprox:yN,thicksim:wN,ThickSpace:kN,ThinSpace:xN,thinsp:CN,thkap:ON,thksim:SN,THORN:TN,thorn:EN,tilde:_N,Tilde:MN,TildeEqual:IN,TildeFullEqual:jN,TildeTilde:DN,timesbar:NN,timesb:AN,times:LN,timesd:PN,tint:BN,toea:FN,topbot:RN,topcir:qN,top:HN,Topf:UN,topf:VN,topfork:zN,tosa:$N,tprime:WN,trade:GN,TRADE:KN,triangle:JN,triangledown:YN,triangleleft:XN,trianglelefteq:QN,triangleq:ZN,triangleright:eA,trianglerighteq:tA,tridot:nA,trie:rA,triminus:iA,TripleDot:oA,triplus:aA,trisb:sA,tritime:cA,trpezium:lA,Tscr:uA,tscr:dA,TScy:fA,tscy:pA,TSHcy:hA,tshcy:mA,Tstrok:vA,tstrok:gA,twixt:bA,twoheadleftarrow:yA,twoheadrightarrow:wA,Uacute:kA,uacute:xA,uarr:CA,Uarr:OA,uArr:SA,Uarrocir:TA,Ubrcy:EA,ubrcy:_A,Ubreve:MA,ubreve:IA,Ucirc:jA,ucirc:DA,Ucy:NA,ucy:AA,udarr:LA,Udblac:PA,udblac:BA,udhar:FA,ufisht:RA,Ufr:qA,ufr:HA,Ugrave:UA,ugrave:VA,uHar:zA,uharl:$A,uharr:WA,uhblk:GA,ulcorn:KA,ulcorner:JA,ulcrop:YA,ultri:XA,Umacr:QA,umacr:ZA,uml:eL,UnderBar:tL,UnderBrace:nL,UnderBracket:rL,UnderParenthesis:iL,Union:oL,UnionPlus:aL,Uogon:sL,uogon:cL,Uopf:lL,uopf:uL,UpArrowBar:dL,uparrow:fL,UpArrow:pL,Uparrow:hL,UpArrowDownArrow:mL,updownarrow:vL,UpDownArrow:gL,Updownarrow:bL,UpEquilibrium:yL,upharpoonleft:wL,upharpoonright:kL,uplus:xL,UpperLeftArrow:CL,UpperRightArrow:OL,upsi:SL,Upsi:TL,upsih:EL,Upsilon:_L,upsilon:ML,UpTeeArrow:IL,UpTee:jL,upuparrows:DL,urcorn:NL,urcorner:AL,urcrop:LL,Uring:PL,uring:BL,urtri:FL,Uscr:RL,uscr:qL,utdot:HL,Utilde:UL,utilde:VL,utri:zL,utrif:$L,uuarr:WL,Uuml:GL,uuml:KL,uwangle:JL,vangrt:YL,varepsilon:XL,varkappa:QL,varnothing:ZL,varphi:eP,varpi:tP,varpropto:nP,varr:rP,vArr:iP,varrho:oP,varsigma:aP,varsubsetneq:sP,varsubsetneqq:cP,varsupsetneq:lP,varsupsetneqq:uP,vartheta:dP,vartriangleleft:fP,vartriangleright:pP,vBar:hP,Vbar:mP,vBarv:vP,Vcy:gP,vcy:bP,vdash:yP,vDash:wP,Vdash:kP,VDash:xP,Vdashl:CP,veebar:OP,vee:SP,Vee:TP,veeeq:EP,vellip:_P,verbar:MP,Verbar:IP,vert:jP,Vert:DP,VerticalBar:NP,VerticalLine:AP,VerticalSeparator:LP,VerticalTilde:PP,VeryThinSpace:BP,Vfr:FP,vfr:RP,vltri:qP,vnsub:HP,vnsup:UP,Vopf:VP,vopf:zP,vprop:$P,vrtri:WP,Vscr:GP,vscr:KP,vsubnE:JP,vsubne:YP,vsupnE:XP,vsupne:QP,Vvdash:ZP,vzigzag:eB,Wcirc:tB,wcirc:nB,wedbar:rB,wedge:iB,Wedge:oB,wedgeq:aB,weierp:sB,Wfr:cB,wfr:lB,Wopf:uB,wopf:dB,wp:fB,wr:pB,wreath:hB,Wscr:mB,wscr:vB,xcap:gB,xcirc:bB,xcup:yB,xdtri:wB,Xfr:kB,xfr:xB,xharr:CB,xhArr:OB,Xi:SB,xi:TB,xlarr:EB,xlArr:_B,xmap:MB,xnis:IB,xodot:jB,Xopf:DB,xopf:NB,xoplus:AB,xotime:LB,xrarr:PB,xrArr:BB,Xscr:FB,xscr:RB,xsqcup:qB,xuplus:HB,xutri:UB,xvee:VB,xwedge:zB,Yacute:$B,yacute:WB,YAcy:GB,yacy:KB,Ycirc:JB,ycirc:YB,Ycy:XB,ycy:QB,yen:ZB,Yfr:eF,yfr:tF,YIcy:nF,yicy:rF,Yopf:iF,yopf:oF,Yscr:aF,yscr:sF,YUcy:cF,yucy:lF,yuml:uF,Yuml:dF,Zacute:fF,zacute:pF,Zcaron:hF,zcaron:mF,Zcy:vF,zcy:gF,Zdot:bF,zdot:yF,zeetrf:wF,ZeroWidthSpace:kF,Zeta:xF,zeta:CF,zfr:OF,Zfr:SF,ZHcy:TF,zhcy:EF,zigrarr:_F,zopf:MF,Zopf:IF,Zscr:jF,zscr:DF,zwj:NF,zwnj:AF},PF="Á",BF="á",FF="Â",RF="â",qF="´",HF="Æ",UF="æ",VF="À",zF="à",$F="&",WF="&",GF="Å",KF="å",JF="Ã",YF="ã",XF="Ä",QF="ä",ZF="¦",eR="Ç",tR="ç",nR="¸",rR="¢",iR="©",oR="©",aR="¤",sR="°",cR="÷",lR="É",uR="é",dR="Ê",fR="ê",pR="È",hR="è",mR="Ð",vR="ð",gR="Ë",bR="ë",yR="½",wR="¼",kR="¾",xR=">",CR=">",OR="Í",SR="í",TR="Î",ER="î",_R="¡",MR="Ì",IR="ì",jR="¿",DR="Ï",NR="ï",AR="«",LR="<",PR="<",BR="¯",FR="µ",RR="·",qR=" ",HR="¬",UR="Ñ",VR="ñ",zR="Ó",$R="ó",WR="Ô",GR="ô",KR="Ò",JR="ò",YR="ª",XR="º",QR="Ø",ZR="ø",eq="Õ",tq="õ",nq="Ö",rq="ö",iq="¶",oq="±",aq="£",sq='"',cq='"',lq="»",uq="®",dq="®",fq="§",pq="­",hq="¹",mq="²",vq="³",gq="ß",bq="Þ",yq="þ",wq="×",kq="Ú",xq="ú",Cq="Û",Oq="û",Sq="Ù",Tq="ù",Eq="¨",_q="Ü",Mq="ü",Iq="Ý",jq="ý",Dq="¥",Nq="ÿ",Aq={Aacute:PF,aacute:BF,Acirc:FF,acirc:RF,acute:qF,AElig:HF,aelig:UF,Agrave:VF,agrave:zF,amp:$F,AMP:WF,Aring:GF,aring:KF,Atilde:JF,atilde:YF,Auml:XF,auml:QF,brvbar:ZF,Ccedil:eR,ccedil:tR,cedil:nR,cent:rR,copy:iR,COPY:oR,curren:aR,deg:sR,divide:cR,Eacute:lR,eacute:uR,Ecirc:dR,ecirc:fR,Egrave:pR,egrave:hR,ETH:mR,eth:vR,Euml:gR,euml:bR,frac12:yR,frac14:wR,frac34:kR,gt:xR,GT:CR,Iacute:OR,iacute:SR,Icirc:TR,icirc:ER,iexcl:_R,Igrave:MR,igrave:IR,iquest:jR,Iuml:DR,iuml:NR,laquo:AR,lt:LR,LT:PR,macr:BR,micro:FR,middot:RR,nbsp:qR,not:HR,Ntilde:UR,ntilde:VR,Oacute:zR,oacute:$R,Ocirc:WR,ocirc:GR,Ograve:KR,ograve:JR,ordf:YR,ordm:XR,Oslash:QR,oslash:ZR,Otilde:eq,otilde:tq,Ouml:nq,ouml:rq,para:iq,plusmn:oq,pound:aq,quot:sq,QUOT:cq,raquo:lq,reg:uq,REG:dq,sect:fq,shy:pq,sup1:hq,sup2:mq,sup3:vq,szlig:gq,THORN:bq,thorn:yq,times:wq,Uacute:kq,uacute:xq,Ucirc:Cq,ucirc:Oq,Ugrave:Sq,ugrave:Tq,uml:Eq,Uuml:_q,uuml:Mq,Yacute:Iq,yacute:jq,yen:Dq,yuml:Nq},Lq="&",Pq="'",Bq=">",Fq="<",Rq='"',qq={amp:Lq,apos:Pq,gt:Bq,lt:Fq,quot:Rq},Hq={},Uq={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},Vq=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hq,"__esModule",{value:!0});var zq=Vq(Uq),$q=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function Wq(e){return e>=55296&&e<=57343||e>1114111?"�":(e in zq.default&&(e=zq.default[e]),$q(e))}Hq.default=Wq;var Gq=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0}),h.decodeHTML=h.decodeHTMLStrict=h.decodeXML=void 0;var Kq=Gq(LF),Jq=Gq(Aq),Yq=Gq(qq),Xq=Gq(Hq),Qq=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function Zq(e){var t=tH(e);return function(e){return String(e).replace(Qq,t)}}h.decodeXML=Zq(Yq.default),h.decodeHTMLStrict=Zq(Kq.default);var eH=function(e,t){return e<t?1:-1};function tH(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?Xq.default(parseInt(t.substr(3),16)):Xq.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}h.decodeHTML=function(){for(var e=Object.keys(Jq.default).sort(eH),t=Object.keys(Kq.default).sort(eH),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),o=tH(Kq.default);function a(e){return";"!==e.substr(-1)&&(e+=";"),o(e)}return function(e){return String(e).replace(i,a)}}();var nH={},rH=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nH,"__esModule",{value:!0}),nH.escapeUTF8=nH.escape=nH.encodeNonAsciiHTML=nH.encodeHTML=nH.encodeXML=void 0;var iH=rH(qq),oH=uH(iH.default),aH=dH(oH);nH.encodeXML=yH(oH);var sH=rH(LF),cH=uH(sH.default),lH=dH(cH);function uH(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function dH(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];1===o.length?t.push("\\"+o):n.push(o)}t.sort();for(var a=0;a<t.length-1;a++){var s=a;while(s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1))s+=1;var c=1+s-a;c<3||t.splice(a,c,t[a]+"-"+t[s])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}nH.encodeHTML=mH(cH,lH),nH.encodeNonAsciiHTML=yH(cH);var fH=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,pH=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function hH(e){return"&#x"+(e.length>1?pH(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function mH(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(fH,hH)}}var vH=new RegExp(aH.source+"|"+fH.source,"g");function gH(e){return e.replace(vH,hH)}function bH(e){return e.replace(aH,hH)}function yH(e){return function(t){return t.replace(vH,(function(t){return e[t]||hH(t)}))}}nH.escape=gH,nH.escapeUTF8=bH,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=h,n=nH;function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}function o(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.decode=r,e.decodeStrict=i,e.encode=o;var a=nH;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=h;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}(p);var wH="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",kH=92,xH=/[\\&]/,CH="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",OH=new RegExp("\\\\"+CH+"|"+wH,"gi"),SH='[&<>"]',TH=new RegExp(SH,"g"),EH=function(e){return e.charCodeAt(0)===kH?e.charAt(1):p.decodeHTML(e)};function _H(e){return xH.test(e)?e.replace(OH,EH):e}function MH(e){try{return f(e)}catch(t){return e}}function IH(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return e}}function jH(e){return TH.test(e)?e.replace(TH,IH):e}function DH(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n.join("")}function NH(e){return!e||!/[^ \t]+/.test(e)}var AH=function(){function e(e){this.current=e,this.root=e,this.entering=!0}return e.prototype.next=function(){var e=this.current,t=this.entering;if(null===e)return null;var n=LH(e);return t&&n?e.firstChild?(this.current=e.firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e.next?(this.current=e.parent,this.entering=!1):(this.current=e.next,this.entering=!0),{entering:t,node:e}},e.prototype.resumeAt=function(e,t){this.current=e,this.entering=!0===t},e}();function LH(e){switch(e.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}var PH=1,BH={};function FH(e){return BH[e]}function RH(e){delete BH[e]}function qH(){BH={}}var HH=function(){function e(e,t){this.parent=null,this.prev=null,this.next=null,this.firstChild=null,this.lastChild=null,this.literal=null,this.id="document"===e?-1:PH++,this.type=e,this.sourcepos=t,BH[this.id]=this}return e.prototype.isContainer=function(){return LH(this)},e.prototype.unlink=function(){this.prev?this.prev.next=this.next:this.parent&&(this.parent.firstChild=this.next),this.next?this.next.prev=this.prev:this.parent&&(this.parent.lastChild=this.prev),this.parent=null,this.next=null,this.prev=null},e.prototype.replaceWith=function(e){this.insertBefore(e),this.unlink()},e.prototype.insertAfter=function(e){e.unlink(),e.next=this.next,e.next&&(e.next.prev=e),e.prev=this,this.next=e,this.parent&&(e.parent=this.parent,e.next||(e.parent.lastChild=e))},e.prototype.insertBefore=function(e){e.unlink(),e.prev=this.prev,e.prev&&(e.prev.next=e),e.next=this,this.prev=e,e.parent=this.parent,e.prev||(e.parent.firstChild=e)},e.prototype.appendChild=function(e){e.unlink(),e.parent=this,this.lastChild?(this.lastChild.next=e,e.prev=this.lastChild,this.lastChild=e):(this.firstChild=e,this.lastChild=e)},e.prototype.prependChild=function(e){e.unlink(),e.parent=this,this.firstChild?(this.firstChild.prev=e,e.next=this.firstChild,this.firstChild=e):(this.firstChild=e,this.lastChild=e)},e.prototype.walker=function(){return new AH(this)},e}(),UH=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.open=!0,r.lineOffsets=null,r.stringContent=null,r.lastLineBlank=!1,r.lastLineChecked=!1,r.type=t,r}return r(t,e),t}(HH),VH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.listData=null,t}return r(t,e),t}(UH),zH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.level=0,t.headingType="atx",t}return r(t,e),t}(UH),$H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isFenced=!1,t.fenceChar=null,t.fenceLength=0,t.fenceOffset=-1,t.info=null,t.infoPadding=0,t}return r(t,e),t}(UH),WH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.columns=[],t}return r(t,e),t}(UH),GH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startIdx=0,t.endIdx=0,t.paddingLeft=0,t.paddingRight=0,t.ignored=!1,t}return r(t,e),t}(UH),KH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="",t.dest="",t.label="",t}return r(t,e),t}(UH),JH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.syntaxLength=0,t.offset=-1,t.info="",t}return r(t,e),t}(UH),YH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.htmlBlockType=-1,t}return r(t,e),t}(UH),XH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destination=null,t.title=null,t.extendedAutolink=!1,t}return r(t,e),t}(HH),QH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tickCount=0,t}return r(t,e),t}(HH),ZH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.info="",t}return r(t,e),t}(HH);function eU(e,t){switch(e){case"heading":return new zH(e,t);case"list":case"item":return new VH(e,t);case"link":case"image":return new XH(e,t);case"codeBlock":return new $H(e,t);case"htmlBlock":return new YH(e,t);case"table":return new WH(e,t);case"tableCell":return new GH(e,t);case"document":case"paragraph":case"blockQuote":case"thematicBreak":case"tableRow":case"tableBody":case"tableHead":case"frontMatter":return new UH(e,t);case"code":return new QH(e,t);case"refDef":return new KH(e,t);case"customBlock":return new JH(e,t);case"customInline":return new ZH(e,t);default:return new HH(e,t)}}function tU(e){return"codeBlock"===e.type}function nU(e){return"htmlBlock"===e.type}function rU(e){return"heading"===e.type}function iU(e){return"list"===e.type}function oU(e){return"table"===e.type}function aU(e){return"refDef"===e.type}function sU(e){return"customBlock"===e.type}function cU(e){return"customInline"===e.type}function lU(e,t){var n=eU("text",t);return n.literal=e,n}var uU,dU="[A-Za-z][A-Za-z0-9-]*",fU="[a-zA-Z_:][a-zA-Z0-9:._-]*",pU="[^\"'=<>`\\x00-\\x20]+",hU="'[^']*'",mU='"[^"]*"',vU="(?:"+pU+"|"+hU+"|"+mU+")",gU="(?:\\s*=\\s*"+vU+")",bU="(?:\\s+"+fU+gU+"?)",yU="<"+dU+bU+"*\\s*/?>",wU="</"+dU+"\\s*[>]",kU="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",xU="[<][?].*?[?][>]",CU="<![A-Z]+\\s+[^>]*>",OU="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",SU="(?:"+yU+"|"+wU+"|"+kU+"|"+xU+"|"+CU+"|"+OU+")",TU=new RegExp("^"+SU,"i");if(String.fromCodePoint)uU=function(e){try{return String.fromCodePoint(e)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t}};else{var EU=String.fromCharCode,_U=Math.floor;uU=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,i=16384,o=[],a=-1,s=e.length;if(!s)return"";var c="";while(++a<s){var l=Number(e[a]);if(!isFinite(l)||l<0||l>1114111||_U(l)!==l)return String.fromCharCode(65533);l<=65535?o.push(l):(l-=65536,n=55296+(l>>10),r=l%1024+56320,o.push(n,r)),(a+1===s||o.length>i)&&(c+=EU.apply(void 0,o),o.length=0)}return c}}var MU=uU,IU="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",jU="[^<\\s]*[^<?!.,:*_?~\\s]",DU="[\\w.+-]+@(?:[\\w-]+\\.)+[\\w-]+";function NU(e){var t=/\)+$/.exec(e);if(t){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];"("===o?n<0?n=1:n+=1:")"===o&&(n-=1)}if(n<0){var a=Math.min(-n,t[0].length);return e.substring(0,e.length-a)}}return e}function AU(e){return e.replace(/&[A-Za-z0-9]+;$/,"")}function LU(e){var t,n=new RegExp(DU,"g"),r=[];while(t=n.exec(e)){var i=t[0];/[_-]+$/.test(i)||r.push({text:i,range:[t.index,t.index+i.length-1],url:"mailto:"+i})}return r}function PU(e){var t,n=new RegExp("(www|https?://)."+IU+jU,"g"),r=[];while(t=n.exec(e)){var i=AU(NU(t[0])),o="www"===t[1]?"http://":"";r.push({text:i,range:[t.index,t.index+i.length-1],url:""+o+i})}return r}function BU(e){return s(s([],PU(e)),LU(e)).sort((function(e,t){return e.range[0]-t.range[0]}))}function FU(e,t){var n;"boolean"===typeof t&&(t=BU);var r=function(){var e=n.entering,r=n.node;if(e&&"text"===r.type&&"link"!==r.parent.type){var i=r.literal,o=t(i);if(!o||!o.length)return"continue";for(var a=0,s=r.sourcepos[0],c=s[0],l=s[1],u=function(e,t){return[[c,l+e],[c,l+t]]},d=[],f=0,p=o;f<p.length;f++){var h=p[f],m=h.range,v=h.url,g=h.text;m[0]>a&&d.push(lU(i.substring(a,m[0]),u(a,m[0]-1)));var b=eU("link",u.apply(void 0,m));b.appendChild(lU(g,u.apply(void 0,m))),b.destination=v,b.extendedAutolink=!0,d.push(b),a=m[1]+1}a<i.length&&d.push(lU(i.substring(a),u(a,i.length-1)));for(var y=0,w=d;y<w.length;y++){var k=w[y];r.insertBefore(k)}r.unlink()}};while(n=e.next())r()}function RU(e){return e[e.length-1]}function qU(e){return e.slice(1,e.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()}function HU(e,t){Object.keys(e).forEach((function(n){t(n,e[n])}))}function UU(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=i({},e);return t.forEach((function(e){delete r[e]})),r}function VU(e){return!Object.keys(e).length}function zU(e){Object.keys(e).forEach((function(t){delete e[t]}))}var $U=10,WU=42,GU=95,KU=96,JU=91,YU=93,XU=126,QU=60,ZU=33,eV=92,tV=38,nV=40,rV=41,iV=58,oV=39,aV=34,sV=36,cV="\\\\"+CH,lV=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\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\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-\u2E42\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[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),uV=new RegExp('^(?:"('+cV+'|[^"\\x00])*"|\'('+cV+"|[^'\\x00])*'|\\(("+cV+"|[^()\\x00])*\\))"),dV=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,fV=new RegExp("^"+CH),pV=new RegExp("^"+wH,"i"),hV=/`+/,mV=/^`+/,vV=/\.\.\./g,gV=/--+/g,bV=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,yV=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,wV=/^ *(?:\n *)?/,kV=/^[ \t\n\x0b\x0c\x0d]/,xV=/^\s/,CV=/ *$/,OV=/^ */,SV=/^ *(?:\n|$)/,TV=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,EV=/^[^\n`\[\]\\!<&*_'"~$]+/m,_V=function(){function e(e){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=e}return e.prototype.sourcepos=function(e,t){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],r=this.lineStartNum+this.lineIdx,i=[r,e+n];return"number"===typeof t?[i,[r,t+n]]:i},e.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},e.prototype.match=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},e.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},e.prototype.spnl=function(){return this.match(wV),!0},e.prototype.parseBackticks=function(e){var t=this.pos+1,n=this.match(mV);if(null===n)return!1;var r,i=this.pos;while(null!==(r=this.match(hV)))if(r===n){var o=this.subject.slice(i,this.pos-n.length),a=this.sourcepos(t,this.pos),s=o.split("\n");if(s.length>1){var c=RU(s);this.lineIdx+=s.length-1,this.linePosOffset=-(this.pos-c.length-n.length),a[1]=this.sourcepos(this.pos),o=s.join(" ")}var l=eU("code",a);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?l.literal=o.slice(1,o.length-1):l.literal=o,l.tickCount=n.length,e.appendChild(l),!0}return this.pos=i,e.appendChild(lU(n,this.sourcepos(t,this.pos-1))),!0},e.prototype.parseBackslash=function(e){var t,n=this.subject;this.pos+=1;var r=this.pos;return this.peek()===$U?(this.pos+=1,t=eU("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(t),this.nextLine()):fV.test(n.charAt(this.pos))?(e.appendChild(lU(n.charAt(this.pos),this.sourcepos(r,this.pos))),this.pos+=1):e.appendChild(lU("\\",this.sourcepos(r,r))),!0},e.prototype.parseAutolink=function(e){var t,n,r,i=this.pos+1;return(t=this.match(bV))?(n=t.slice(1,t.length-1),r=eU("link",this.sourcepos(i,this.pos)),r.destination=MH("mailto:"+n),r.title="",r.appendChild(lU(n,this.sourcepos(i+1,this.pos-1))),e.appendChild(r),!0):!!(t=this.match(yV))&&(n=t.slice(1,t.length-1),r=eU("link",this.sourcepos(i,this.pos)),r.destination=MH(n),r.title="",r.appendChild(lU(n,this.sourcepos(i+1,this.pos-1))),e.appendChild(r),!0)},e.prototype.parseHtmlTag=function(e){var t=this.pos+1,n=this.match(TU);if(null===n)return!1;var r=eU("htmlInline",this.sourcepos(t,this.pos));return r.literal=n,e.appendChild(r),!0},e.prototype.scanDelims=function(e){var t=0,n=this.pos;if(e===oV||e===aV)t++,this.pos++;else while(this.peek()===e)t++,this.pos++;if(0===t||t<2&&(e===XU||e===sV))return this.pos=n,null;var r,i=0===n?"\n":this.subject.charAt(n-1),o=this.peek();r=-1===o?"\n":MU(o);var a,s,c=xV.test(r),l=lV.test(r),u=xV.test(i),d=lV.test(i),f=!c&&(!l||u||d),p=!u&&(!d||c||l);return e===GU?(a=f&&(!p||d),s=p&&(!f||l)):e===oV||e===aV?(a=f&&!p,s=p):e===sV?(a=!c,s=!u):(a=f,s=p),this.pos=n,{numdelims:t,canOpen:a,canClose:s}},e.prototype.handleDelim=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var r,i=n.numdelims,o=this.pos+1;this.pos+=i,r=e===oV?"’":e===aV?"“":this.subject.slice(o-1,this.pos);var a=lU(r,this.sourcepos(o,this.pos));return t.appendChild(a),(n.canOpen||n.canClose)&&(this.options.smart||e!==oV&&e!==aV)&&(this.delimiters={cc:e,numdelims:i,origdelims:i,node:a,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},e.prototype.removeDelimiter=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},e.prototype.removeDelimitersBetween=function(e,t){e.next!==t&&(e.next=t,t.previous=e)},e.prototype.processEmphasis=function(e){var t,n,r,i,o,a,s,c=!1,l=(t={},t[GU]=[e,e,e],t[WU]=[e,e,e],t[oV]=[e],t[aV]=[e],t[XU]=[e],t[sV]=[e],t);r=this.delimiters;while(null!==r&&r.previous!==e)r=r.previous;while(null!==r){var u=r.cc,d=u===GU||u===WU;if(r.canClose){n=r.previous,s=!1;while(null!==n&&n!==e&&n!==l[u][d?r.origdelims%3:0]){if(c=d&&(r.canOpen||n.canClose)&&r.origdelims%3!==0&&(n.origdelims+r.origdelims)%3===0,n.cc===r.cc&&n.canOpen&&!c){s=!0;break}n=n.previous}if(i=r,d||u===XU||u===sV)if(s){if(n){var f=r.numdelims>=2&&n.numdelims>=2?2:1,p=d?0:1;o=n.node,a=r.node;var h=d?1===f?"emph":"strong":"strike";u===sV&&(h="customInline");var m=eU(h),v=o.sourcepos[1],g=a.sourcepos[0];m.sourcepos=[[v[0],v[1]-f+1],[g[0],g[1]+f-1]],o.sourcepos[1][1]-=f,a.sourcepos[0][1]+=f,o.literal=o.literal.slice(f),a.literal=a.literal.slice(f),n.numdelims-=f,r.numdelims-=f;var b=o.next,y=void 0;while(b&&b!==a)y=b.next,b.unlink(),m.appendChild(b),b=y;if(u===sV){var w=m.firstChild,k=w.literal||"",x=k.split(/\s/)[0];m.info=x,k.length<=x.length?w.unlink():(w.sourcepos[0][1]+=x.length,w.literal=k.replace(x+" ",""))}if(o.insertAfter(m),this.removeDelimitersBetween(n,r),n.numdelims<=p&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),r.numdelims<=p){0===r.numdelims&&a.unlink();var C=r.next;this.removeDelimiter(r),r=C}}}else r=r.next;else u===oV?(r.node.literal="’",s&&(n.node.literal="‘"),r=r.next):u===aV&&(r.node.literal="”",s&&(n.node.literal="“"),r=r.next);s||(l[u][d?i.origdelims%3:0]=i.previous,i.canOpen||this.removeDelimiter(i))}else r=r.next}while(null!==this.delimiters&&this.delimiters!==e)this.removeDelimiter(this.delimiters)},e.prototype.parseLinkTitle=function(){var e=this.match(uV);return null===e?null:_H(e.substr(1,e.length-2))},e.prototype.parseLinkDestination=function(){var e=this.match(dV);if(null===e){if(this.peek()===QU)return null;var t=this.pos,n=0,r=void 0;while(-1!==(r=this.peek()))if(r===eV&&fV.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(r===nV)this.pos+=1,n+=1;else if(r===rV){if(n<1)break;this.pos+=1,n-=1}else{if(null!==kV.exec(MU(r)))break;this.pos+=1}return this.pos===t&&r!==rV?null:0!==n?null:(e=this.subject.substr(t,this.pos-t),MH(_H(e)))}return MH(_H(e.substr(1,e.length-2)))},e.prototype.parseLinkLabel=function(){var e=this.match(TV);return null===e||e.length>1001?0:e.length},e.prototype.parseOpenBracket=function(e){var t=this.pos;this.pos+=1;var n=lU("[",this.sourcepos(this.pos,this.pos));return e.appendChild(n),this.addBracket(n,t,!1),!0},e.prototype.parseBang=function(e){var t=this.pos;if(this.pos+=1,this.peek()===JU){this.pos+=1;var n=lU("![",this.sourcepos(this.pos-1,this.pos));e.appendChild(n),this.addBracket(n,t+1,!0)}else{n=lU("!",this.sourcepos(this.pos,this.pos));e.appendChild(n)}return!0},e.prototype.parseCloseBracket=function(e){var t=null,n=null,r=!1;this.pos+=1;var i=this.pos,o=this.brackets;if(null===o)return e.appendChild(lU("]",this.sourcepos(i,i))),!0;if(!o.active)return e.appendChild(lU("]",this.sourcepos(i,i))),this.removeBracket(),!0;var a=o.image,s=this.pos;this.peek()===nV&&(this.pos++,this.spnl()&&null!==(t=this.parseLinkDestination())&&this.spnl()&&(kV.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&this.peek()===rV?(this.pos+=1,r=!0):this.pos=s);var c="";if(!r){var l=this.pos,u=this.parseLinkLabel();if(u>2?c=this.subject.slice(l,l+u):o.bracketAfter||(c=this.subject.slice(o.index,i)),0===u&&(this.pos=s),c){c=qU(c);var d=this.refMap[c];d&&(t=d.destination,n=d.title,r=!0)}}if(r){var f=eU(a?"image":"link");f.destination=t,f.title=n||"",f.sourcepos=[o.startpos,this.sourcepos(this.pos)];var p=o.node.next,h=void 0;while(p)h=p.next,p.unlink(),f.appendChild(p),p=h;if(e.appendChild(f),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!a){o=this.brackets;while(null!==o)o.image||(o.active=!1),o=o.previous}return this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0}return this.removeBracket(),this.pos=i,e.appendChild(lU("]",this.sourcepos(i,i))),this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0},e.prototype.addBracket=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,startpos:this.sourcepos(t+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},e.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},e.prototype.parseEntity=function(e){var t,n=this.pos+1;return!!(t=this.match(pV))&&(e.appendChild(lU(p.decodeHTML(t),this.sourcepos(n,this.pos))),!0)},e.prototype.parseString=function(e){var t,n=this.pos+1;if(t=this.match(EV)){if(this.options.smart){var r=t.replace(vV,"…").replace(gV,(function(e){var t=0,n=0;return e.length%3===0?n=e.length/3:e.length%2===0?t=e.length/2:e.length%3===2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),DH("—",n)+DH("–",t)}));e.appendChild(lU(r,this.sourcepos(n,this.pos)))}else{var i=lU(t,this.sourcepos(n,this.pos));e.appendChild(i)}return!0}return!1},e.prototype.parseNewline=function(e){this.pos+=1;var t=e.lastChild;if(t&&"text"===t.type&&" "===t.literal[t.literal.length-1]){var n=" "===t.literal[t.literal.length-2],r=t.literal.length;t.literal=t.literal.replace(CV,"");var i=r-t.literal.length;t.sourcepos[1][1]-=i,e.appendChild(eU(n?"linebreak":"softbreak",this.sourcepos(this.pos-i,this.pos)))}else e.appendChild(eU("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(OV),!0},e.prototype.parseReference=function(e,t){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,r=this.pos,i=this.parseLinkLabel();if(0===i)return 0;var o=this.subject.substr(0,i);if(this.peek()!==iV)return this.pos=r,0;this.pos++,this.spnl();var a=this.parseLinkDestination();if(null===a)return this.pos=r,0;var s=this.pos;this.spnl(),this.pos!==s&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=s);var c=!0;if(null===this.match(SV)&&(""===n?c=!1:(n="",this.pos=s,c=null!==this.match(SV))),!c)return this.pos=r,0;var l=qU(o);if(""===l)return this.pos=r,0;var u=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=u[1][0]+1;var d=eU("refDef",u);return d.title=n,d.dest=a,d.label=l,e.insertBefore(d),t[l]?this.refDefCandidateMap[d.id]=d:t[l]=f$(d),this.pos-r},e.prototype.mergeTextNodes=function(e){var t,n=[];while(t=e.next()){var r=t.entering,i=t.node;if(r&&"text"===i.type)n.push(i);else if(1===n.length)n=[];else if(n.length>1){var o=n[0],a=n[n.length-1];o.sourcepos&&a.sourcepos&&(o.sourcepos[1]=a.sourcepos[1]),o.next=a.next,o.next&&(o.next.prev=o);for(var s=1;s<n.length;s+=1)o.literal+=n[s].literal,n[s].unlink();n=[]}}},e.prototype.getReferenceDefSourcepos=function(e){for(var t=e.stringContent.split(/\n|\r\n/),n=!1,r=0,i={line:0,ch:0},o=0;o<t.length;o+=1){var a=t[o];if(kV.test(a))break;if(/\:/.test(a)&&0===r){if(n)break;var s=a.indexOf(":")===a.length-1?o+1:o;i={line:s,ch:t[s].length},n=!0}var c=a.match(/'|"/g);if(c&&(r+=c.length),2===r){i={line:o,ch:a.length};break}}return[[e.sourcepos[0][0],e.sourcepos[0][1]],[e.sourcepos[0][0]+i.line,i.ch]]},e.prototype.parseInline=function(e){var t,n=!1,r=this.peek();if(-1===r)return!1;switch(r){case $U:n=this.parseNewline(e);break;case eV:n=this.parseBackslash(e);break;case KU:n=this.parseBackticks(e);break;case WU:case GU:case XU:case sV:n=this.handleDelim(r,e);break;case oV:case aV:n=!!(null===(t=this.options)||void 0===t?void 0:t.smart)&&this.handleDelim(r,e);break;case JU:n=this.parseOpenBracket(e);break;case ZU:n=this.parseBang(e);break;case YU:n=this.parseCloseBracket(e);break;case QU:n=this.parseAutolink(e)||this.parseHtmlTag(e);break;case tV:n=this.parseEntity(e);break;default:n=this.parseString(e);break}return n||(this.pos+=1,e.appendChild(lU(MU(r),this.sourcepos(this.pos,this.pos+1)))),!0},e.prototype.parse=function(e){this.subject=e.stringContent.trim(),this.pos=0,this.delimiters=null,this.brackets=null,this.lineOffsets=e.lineOffsets||[0],this.lineIdx=0,this.linePosOffset=0,this.lineStartNum=e.sourcepos[0][0],rU(e)&&(this.lineOffsets[0]+=e.level+1);while(this.parseInline(e));e.stringContent=null,this.processEmphasis(null),this.mergeTextNodes(e.walker());var t=this.options,n=t.extendedAutolinks,r=t.customParser;if(n&&FU(e.walker(),n),r&&e.firstChild){var i,o=e.firstChild.walker();while(i=o.next()){var a=i.node,s=i.entering;r[a.type]&&r[a.type](a,{entering:s,options:this.options})}}},e}(),MV=/^\[([ \txX])\][ \t]+/;function IV(e,t){if(t.firstChild&&"paragraph"===t.firstChild.type){var n=t.firstChild,r=n.stringContent.match(MV);if(r){var i=r[0].length;n.stringContent=n.stringContent.substring(i-1),n.sourcepos[0][1]+=i,n.lineOffsets[0]+=i,t.listData.task=!0,t.listData.checked=/[xX]/.test(r[1])}}}var jV={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableHead"===e||"tableBody"===e},acceptsLines:!1},DV={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableRow"===e},acceptsLines:!1},NV={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableRow"===e||"tableDelimRow"===e},acceptsLines:!1},AV={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableDelimCell"===e},acceptsLines:!1},LV={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},PV={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableCell"===e},acceptsLines:!1},BV={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},FV=4,RV=9,qV=62,HV=60,UV=32,VV=91,zV=/[^ \t\f\v\r\n]/,$V=/^(?:`{3,}|~{3,})(?= *$)/;function WV(e){var t=e;while(t){if(t.lastLineBlank)return!0;var n=t.type;if(t.lastLineChecked||"list"!==n&&"item"!==n){t.lastLineChecked=!0;break}t.lastLineChecked=!0,t=t.lastChild}return!1}function GV(e,t){return t<e.length?e.charCodeAt(t):-1}function KV(e){return!zV.test(e)}function JV(e){return e===UV||e===RV}var YV=/^\$\$$/,XV={continue:function(e,t){var n=e.currentLine,r=n.match(YV);if(r)return e.lastLineLength=r[0].length,e.finalize(t,e.lineNumber),2;var i=t.offset;while(i>0&&JV(GV(n,e.offset)))e.advanceOffset(1,!0),i--;return 0},finalize:function(e,t){if(null!==t.stringContent){var n=t.stringContent,r=n.indexOf("\n"),i=n.slice(0,r),o=n.slice(r+1),a=i.match(/^(\s*)(.*)/);t.info=_H(a[2].trim()),t.literal=o,t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},QV={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},ZV={continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},ez={continue:function(){return 0},finalize:function(e,t){var n=t.firstChild;while(n){if(WV(n)&&n.next){t.listData.tight=!1;break}var r=n.firstChild;while(r){if(WV(r)&&(n.next||r.next)){t.listData.tight=!1;break}r=r.next}n=n.next}},canContain:function(e){return"item"===e},acceptsLines:!1},tz={continue:function(e){var t=e.currentLine;return e.indented||GV(t,e.nextNonspace)!==qV?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),JV(GV(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},nz={continue:function(e,t){if(e.blank){if(null===t.firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t.listData.markerOffset+t.listData.padding))return 1;e.advanceOffset(t.listData.markerOffset+t.listData.padding,!0)}return 0},finalize:IV,canContain:function(e){return"item"!==e},acceptsLines:!1},rz={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},iz={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},oz={continue:function(e,t){var n=e.currentLine,r=e.indent;if(t.isFenced){var i=r<=3&&n.charAt(e.nextNonspace)===t.fenceChar&&n.slice(e.nextNonspace).match($V);if(i&&i[0].length>=t.fenceLength)return e.lastLineLength=e.offset+r+i[0].length,e.finalize(t,e.lineNumber),2;var o=t.fenceOffset;while(o>0&&JV(GV(n,e.offset)))e.advanceOffset(1,!0),o--}else if(r>=FV)e.advanceOffset(FV,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){var n;if(null!==t.stringContent){if(t.isFenced){var r=t.stringContent,i=r.indexOf("\n"),o=r.slice(0,i),a=r.slice(i+1),s=o.match(/^(\s*)(.*)/);t.infoPadding=s[1].length,t.info=_H(s[2].trim()),t.literal=a}else t.literal=null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,"\n");t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},az={continue:function(e,t){return!e.blank||6!==t.htmlBlockType&&7!==t.htmlBlockType?0:1},finalize:function(e,t){var n;t.literal=(null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,""))||null,t.stringContent=null},canContain:function(){return!1},acceptsLines:!0},sz={continue:function(e){return e.blank?1:0},finalize:function(e,t){if(null!==t.stringContent){var n,r=!1;while(GV(t.stringContent,0)===VV&&(n=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(n),r=!0;r&&KV(t.stringContent)&&t.unlink()}},canContain:function(){return!1},acceptsLines:!0},cz=QV,lz=QV,uz={document:ZV,list:ez,blockQuote:tz,item:nz,heading:rz,thematicBreak:iz,codeBlock:oz,htmlBlock:az,paragraph:sz,table:jV,tableBody:DV,tableHead:NV,tableRow:PV,tableCell:BV,tableDelimRow:AV,tableDelimCell:LV,refDef:cz,customBlock:XV,frontMatter:lz};function dz(e){for(var t=0,n=0,r=[],i=0;i<e.length;i+=1)if("|"===e[i]&&"\\"!==e[i-1]){var o=e.substring(t,i);0===t&&NH(o)?n=i+1:r.push(o),t=i+1}if(t<e.length){o=e.substring(t,e.length);NH(o)||r.push(o)}return[n,r]}function fz(e,t,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var s=a[o],c=s.match(/^[ \t]+/),l=c?c[0].length:0,u=void 0,d=void 0;if(l===s.length)l=0,u=0,d="";else{var f=s.match(/[ \t]+$/);u=f?f[0].length:0,d=s.slice(l,s.length-u)}var p=r+l,h=eU(e,[[n,r],[n,r+s.length-1]]);h.stringContent=d.replace(/\\\|/g,"|"),h.startIdx=i.length,h.endIdx=i.length,h.lineOffsets=[p-1],h.paddingLeft=l,h.paddingRight=u,i.push(h),r+=s.length+1}return i}function pz(e){var t=null,n=e.stringContent,r=n[0],i=n[n.length-1];return":"===i?t=":"===r?"center":"right":":"===r&&(t="left"),{align:t}}var hz=function(e,t){var n=t.stringContent;if("paragraph"===t.type&&!e.indented&&!e.blank){var r=n.length-1,i=n.lastIndexOf("\n",r-1)+1,o=n.slice(i,r),a=e.currentLine.slice(e.nextNonspace),s=dz(o),c=s[0],l=s[1],u=dz(a),d=u[0],f=u[1],p=/^[ \t]*:?-+:?[ \t]*$/;if(!l.length||!f.length||f.some((function(e){return!p.test(e)}))||1===f.length&&0!==a.indexOf("|"))return 0;var h=t.lineOffsets,m=e.lineNumber-1,v=RU(h)+1,g=eU("table",[[m,v],[e.lineNumber,e.offset]]);if(g.columns=f.map((function(){return{align:null}})),t.insertAfter(g),1===h.length)t.unlink();else{t.stringContent=n.slice(0,i);var b=n.lastIndexOf("\n",i-2)+1,y=i-b-1;e.lastLineLength=h[h.length-2]+y,e.finalize(t,m-1)}e.advanceOffset(e.currentLine.length-e.offset,!1);var w=eU("tableHead",[[m,v],[e.lineNumber,e.offset]]);g.appendChild(w);var k=eU("tableRow",[[m,v],[m,v+o.length-1]]),x=eU("tableDelimRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.offset]]);w.appendChild(k),w.appendChild(x),fz("tableCell",l,m,v+c).forEach((function(e){k.appendChild(e)}));var C=fz("tableDelimCell",f,e.lineNumber,e.nextNonspace+1+d);return C.forEach((function(e){x.appendChild(e)})),g.columns=C.map(pz),e.tip=g,2}return 0},mz=function(e,t){if("table"!==t.type&&"tableBody"!==t.type||!e.blank&&-1===e.currentLine.indexOf("|"))return 0;if(e.advanceOffset(e.currentLine.length-e.offset,!1),e.blank){var n=t;return"tableBody"===t.type&&(n=t.parent,e.finalize(t,e.lineNumber-1)),e.finalize(n,e.lineNumber-1),0}var r=t;"table"===t.type&&(r=e.addChild("tableBody",e.nextNonspace),r.stringContent=null);var i=eU("tableRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.currentLine.length]]);r.appendChild(i);var o=r.parent,a=e.currentLine.slice(e.nextNonspace),s=dz(a),c=s[0],l=s[1];return fz("tableCell",l,e.lineNumber,e.nextNonspace+1+c).forEach((function(e,t){t>=o.columns.length&&(e.ignored=!0),i.appendChild(e)})),2},vz=/^(\$\$)(\s*[a-zA-Z])+/,gz=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,bz=function(e){var t;if(!e.indented&&!gz.test(e.currentLine)&&(t=e.currentLine.match(vz))){var n=t[1].length;e.closeUnmatchedBlocks();var r=e.addChild("customBlock",e.nextNonspace);return r.syntaxLength=n,r.offset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},yz=/^`{3,}(?!.*`)|^~{3,}/,wz=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+yU+"|"+wU+")\\s*$","i")],kz=/^(?:=+|-+)[ \t]*$/,xz=/^#{1,6}(?:[ \t]+|$)/,Cz=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Oz=/^[*+-]/,Sz=/^(\d{1,9})([.)])/;function Tz(e,t){var n,r,i=e.currentLine.slice(e.nextNonspace),o={type:"bullet",tight:!0,bulletChar:"",start:0,delimiter:"",padding:0,markerOffset:e.indent,task:!1,checked:!1};if(e.indent>=4)return null;if(n=i.match(Oz))o.type="bullet",o.bulletChar=n[0][0];else{if(!(n=i.match(Sz))||"paragraph"===t.type&&"1"!==n[1])return null;o.type="ordered",o.start=parseInt(n[1],10),o.delimiter=n[2]}if(r=GV(e.currentLine,e.nextNonspace+n[0].length),-1!==r&&r!==RV&&r!==UV)return null;if("paragraph"===t.type&&!e.currentLine.slice(e.nextNonspace+n[0].length).match(zV))return null;e.advanceNextNonspace(),e.advanceOffset(n[0].length,!0);var a=e.column,s=e.offset;do{e.advanceOffset(1,!0),r=GV(e.currentLine,e.offset)}while(e.column-a<5&&JV(r));var c=-1===GV(e.currentLine,e.offset),l=e.column-a;return l>=5||l<1||c?(o.padding=n[0].length+1,e.column=a,e.offset=s,JV(GV(e.currentLine,e.offset))&&e.advanceOffset(1,!0)):o.padding=n[0].length+l,o}function Ez(e,t){return e.type===t.type&&e.delimiter===t.delimiter&&e.bulletChar===t.bulletChar}function _z(e,t){return e.options.disallowDeepHeading&&("blockQuote"===t.type||"item"===t.type)}var Mz=function(e){return e.indented||GV(e.currentLine,e.nextNonspace)!==qV?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),JV(GV(e.currentLine,e.offset))&&e.advanceOffset(1,!0),e.closeUnmatchedBlocks(),e.addChild("blockQuote",e.nextNonspace),1)},Iz=function(e,t){var n;if(!e.indented&&!_z(e,t)&&(n=e.currentLine.slice(e.nextNonspace).match(xz))){e.advanceNextNonspace(),e.advanceOffset(n[0].length,!1),e.closeUnmatchedBlocks();var r=e.addChild("heading",e.nextNonspace);return r.level=n[0].trim().length,r.headingType="atx",r.stringContent=e.currentLine.slice(e.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},jz=function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(yz))){var n=t[0].length;e.closeUnmatchedBlocks();var r=e.addChild("codeBlock",e.nextNonspace);return r.isFenced=!0,r.fenceLength=n,r.fenceChar=t[0][0],r.fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},Dz=function(e,t){if(!e.indented&&GV(e.currentLine,e.nextNonspace)===HV){var n=e.currentLine.slice(e.nextNonspace),r=e.options.disallowedHtmlBlockTags,i=void 0;for(i=1;i<=7;i++){var o=n.match(wz[i]);if(o){if(7===i){if("paragraph"===t.type)return 0;if(r.length>0){var a=new RegExp("</?(?:"+r.join("|")+")","i");if(a.test(o[0]))return 0}}e.closeUnmatchedBlocks();var s=e.addChild("htmlBlock",e.offset);return s.htmlBlockType=i,2}}}return 0},Nz=function(e,t){var n;if(null!==t.stringContent&&!e.indented&&"paragraph"===t.type&&!_z(e,t.parent)&&(n=e.currentLine.slice(e.nextNonspace).match(kz))){e.closeUnmatchedBlocks();var r=void 0;while(GV(t.stringContent,0)===VV&&(r=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(r);if(t.stringContent.length>0){var i=eU("heading",t.sourcepos);return i.level="="===n[0][0]?1:2,i.headingType="setext",i.stringContent=t.stringContent,t.insertAfter(i),t.unlink(),e.tip=i,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0}return 0},Az=function(e){return!e.indented&&Cz.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("thematicBreak",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},Lz=function(e,t){var n,r=t;return e.indented&&"list"!==t.type||!(n=Tz(e,r))?0:(e.closeUnmatchedBlocks(),"list"===e.tip.type&&Ez(r.listData,n)||(r=e.addChild("list",e.nextNonspace),r.listData=n),r=e.addChild("item",e.nextNonspace),r.listData=n,1)},Pz=function(e){return e.indented&&"paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(FV,!0),e.closeUnmatchedBlocks(),e.addChild("codeBlock",e.offset),2):0},Bz=[Mz,Iz,jz,Dz,Nz,Az,Lz,Pz,hz,mz,bz],Fz=/^(-{3}|\+{3}|;{3})$/,Rz=function(e,t){var n=e.currentLine,r=e.lineNumber,i=e.indented;if(1===r&&!i&&"document"===t.type&&Fz.test(n)){e.closeUnmatchedBlocks();var o=e.addChild("frontMatter",e.nextNonspace);return o.stringContent=n,e.advanceNextNonspace(),e.advanceOffset(n.length,!1),2}return 0},qz={continue:function(e,t){var n=e.currentLine,r=n.match(Fz);return"frontMatter"===t.type&&r?(t.stringContent+=n,e.lastLineLength=r[0].length,e.finalize(t,e.lineNumber),2):0},finalize:function(e,t){null!==t.stringContent&&(t.literal=t.stringContent,t.stringContent=null)},canContain:function(){return!1},acceptsLines:!0},Hz=[/./,/<\/(?:script|pre|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],Uz=/^[#`~*+_=<>0-9-;$]/,Vz=/\r\n|\n|\r/;function zz(){return eU("document",[[1,1],[0,0]])}var $z={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},Wz=function(){function e(e){this.options=i(i({},$z),e),this.doc=zz(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.lines=[],this.options.frontMatter&&(uz.frontMatter=qz,Bz.unshift(Rz)),this.inlineParser=new _V(this.options)}return e.prototype.advanceOffset=function(e,t){void 0===t&&(t=!1);var n,r,i,o=this.currentLine;while(e>0&&(i=o[this.offset]))"\t"===i?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,r=n>e?e:n,this.column+=r,this.offset+=this.partiallyConsumedTab?0:1,e-=r):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},e.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},e.prototype.findNextNonspace=function(){var e,t=this.currentLine,n=this.offset,r=this.column;while(""!==(e=t.charAt(n)))if(" "===e)n++,r++;else{if("\t"!==e)break;n++,r+=4-r%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=r,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=FV},e.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=DH(" ",e)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+"\n"},e.prototype.addChild=function(e,t){while(!uz[this.tip.type].canContain(e))this.finalize(this.tip,this.lineNumber-1);var n=t+1,r=eU(e,[[this.lineNumber,n],[0,0]]);return r.stringContent="",this.tip.appendChild(r),this.tip=r,r},e.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){while(this.oldtip!==this.lastMatchedContainer){var e=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},e.prototype.finalize=function(e,t){var n=e.parent;e.open=!1,e.sourcepos[1]=[t,this.lastLineLength],uz[e.type].finalize(this,e),this.tip=n},e.prototype.processInlines=function(e){var t,n=this.options.customParser,r=e.walker();this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;while(t=r.next()){var i=t.node,o=t.entering,a=i.type;n&&n[a]&&n[a](i,{entering:o,options:this.options}),o||"paragraph"!==a&&"heading"!==a&&("tableCell"!==a||i.ignored)||this.inlineParser.parse(i)}},e.prototype.incorporateLine=function(e){var t=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"�")),this.currentLine=e;var n,r=!0;while((n=t.lastChild)&&n.open){switch(t=n,this.findNextNonspace(),uz[t.type]["continue"](this,t)){case 0:break;case 1:r=!1;break;case 2:return void(this.lastLineLength=e.length);default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!r){t=t.parent;break}}this.allClosed=t===this.oldtip,this.lastMatchedContainer=t;var i="paragraph"!==t.type&&uz[t.type].acceptsLines,o=Bz.length;while(!i){if(this.findNextNonspace(),"table"!==t.type&&"tableBody"!==t.type&&"paragraph"!==t.type&&!this.indented&&!Uz.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}var a=0;while(a<o){var s=Bz[a](this,t);if(1===s){t=this.tip;break}if(2===s){t=this.tip,i=!0;break}a++}if(a===o){this.advanceNextNonspace();break}}if(this.allClosed||this.blank||"paragraph"!==this.tip.type){this.closeUnmatchedBlocks(),this.blank&&t.lastChild&&(t.lastChild.lastLineBlank=!0);var c=t.type,l=this.blank&&!("blockQuote"===c||tU(t)&&t.isFenced||"item"===c&&!t.firstChild&&t.sourcepos[0][0]===this.lineNumber),u=t;while(u)u.lastLineBlank=l,u=u.parent;uz[c].acceptsLines?(this.addLine(),nU(t)&&t.htmlBlockType>=1&&t.htmlBlockType<=5&&Hz[t.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(t,this.lineNumber))):this.offset<e.length&&!this.blank&&(t=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())}else this.addLine();this.lastLineLength=e.length},e.prototype.parse=function(e,t){this.doc=zz(),this.tip=this.doc,this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";var n=e.split(Vz),r=n.length;this.lines=t||n,this.options.referenceDefinition&&this.clearRefMaps(),e.charCodeAt(e.length-1)===$U&&(r-=1);for(var i=0;i<r;i++)this.incorporateLine(n[i]);while(this.tip)this.finalize(this.tip,r);return this.processInlines(this.doc),this.doc},e.prototype.partialParseStart=function(e,t){this.doc=zz(),this.tip=this.doc,this.lineNumber=e-1,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";for(var n=t.length,r=0;r<n;r++)this.incorporateLine(t[r]);return this.doc},e.prototype.partialParseExtends=function(e){for(var t=0;t<e.length;t++)this.incorporateLine(e[t])},e.prototype.partialParseFinish=function(){while(this.tip)this.finalize(this.tip,this.lineNumber);this.processInlines(this.doc)},e.prototype.setRefMaps=function(e,t,n){this.refMap=e,this.refLinkCandidateMap=t,this.refDefCandidateMap=n},e.prototype.clearRefMaps=function(){[this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){zU(e)}))},e}();function Gz(e,t){return e[0]<t[0]?1:e[0]>t[0]?-1:e[1]<t[1]?1:e[1]>t[1]?-1:0}function Kz(e,t){var n=e[0],r=e[1];return 1===Gz(r,t)?1:-1===Gz(n,t)?-1:0}function Jz(e,t){if(e.parent===t.parent&&e!==t){var n=e.next;while(n&&n!==t){for(var r=n.next,i=0,o=["parent","prev","next"];i<o.length;i++){var a=o[i];n[a]&&(RH(n[a].id),n[a]=null)}n=r}e.next=t.next,t.next?t.next.prev=e:e.parent.lastChild=e}}function Yz(e){var t=[],n=e.firstChild;while(n)t.push(n),n=n.next;return t}function Xz(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];e.insertBefore(i)}}function Qz(e,t){for(var n=t.length-1;n>=0;n-=1)e.prependChild(t[n])}function Zz(e,t){if(e&&e.parent&&0!==t){var n,r=e.parent.walker();r.resumeAt(e,!0);while(n=r.next()){var i=n.node,o=n.entering;o&&(i.sourcepos[0][0]+=t,i.sourcepos[1][0]+=t)}}}function e$(e,t){var n=e[0],r=e[1];return r[0]<t?1:n[0]>t?-1:0}function t$(e,t){var n=e.firstChild;while(n){var r=e$(n.sourcepos,t);if(0===r)return n;if(-1===r)return n.prev||n;n=n.next}return e.lastChild}function n$(e){while(e.lastChild)e=e.lastChild;return e}function r$(e){while(e.parent&&"document"!==e.parent.type&&e.parent.sourcepos[0][0]===e.sourcepos[0][0])e=e.parent;return e}function i$(e,t){var n=e.firstChild,r=null;while(n){var i=e$(n.sourcepos,t);if(0===i){if(n.sourcepos[0][0]===t||!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)break;r=n,n=n.next}}return r?r$(n$(r)):null}function o$(e,t){var n=e,r=null;while(n){var i=Kz(n.sourcepos,t);if(0===i){if(!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)return r;if(!n.next)return r;n=n.next}}return n}function a$(e){return FH(e)||null}function s$(e,t,n){if(void 0===n&&(n=null),t){var r=t.walker();while(t&&t!==n){e(t);var i=r.next();if(!i)break;t=i.node}}}function c$(e){var t=a$(e);if(!t)return!0;while(t&&"document"!==t.type){if(!t.parent&&!t.prev&&!t.next)return!0;t=t.parent}return!1}var l$=/\r\n|\n|\r/;function u$(e){var t=e.match(/^[ \t]+/);if(t&&(t[0].length>=2||/\t/.test(t[0])))return!0;var n=t?e.slice(t.length):e;return Oz.test(n)||Sz.test(n)}function d$(e){return!KV(e)&&-1!==e.indexOf("|")}function f$(e){var t=e.id,n=e.title,r=e.sourcepos,i=e.dest;return{id:t,title:n,sourcepos:r,unlinked:!1,destination:i}}var p$=function(){function e(e,t){this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(null===t||void 0===t?void 0:t.referenceDefinition),this.parser=new Wz(t),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(l$),this.root=this.parser.parse(e,this.lineTexts)}return e.prototype.updateLineTexts=function(e,t,n){var r,i=e[0],o=e[1],a=t[0],c=t[1],l=n.split(l$),u=l.length,d=this.lineTexts[i-1],f=this.lineTexts[a-1];l[0]=d.slice(0,o-1)+l[0],l[u-1]=l[u-1]+f.slice(c-1);var p=a-i+1;return(r=this.lineTexts).splice.apply(r,s([i-1,p],l)),u-p},e.prototype.updateRootNodeState=function(){if(1===this.lineTexts.length&&""===this.lineTexts[0])return this.root.lastLineBlank=!0,void(this.root.sourcepos=[[1,1],[1,0]]);this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);var e=this.lineTexts,t=e.length-1;while(""===e[t])t-=1;e.length-2>t&&(t+=1),this.root.sourcepos[1]=[t+1,e[t].length]},e.prototype.replaceRangeNodes=function(e,t,n){e?(Xz(e,n),Jz(e,t),[e.id,t.id].forEach((function(e){return RH(e)})),e.unlink()):t?(Xz(t,n),RH(t.id),t.unlink()):Qz(this.root,n)},e.prototype.getNodeRange=function(e,t){var n=t$(this.root,e[0]),r=t$(this.root,t[0]);return r&&r.next&&t[0]+1===r.next.sourcepos[0][0]&&(r=r.next),[n,r]},e.prototype.trigger=function(e,t){this.eventHandlerMap[e].forEach((function(e){e(t)}))},e.prototype.extendEndLine=function(e){while(""===this.lineTexts[e])e+=1;return e},e.prototype.parseRange=function(e,t,n,r){e&&e.prev&&(iU(e.prev)&&u$(this.lineTexts[n-1])||oU(e.prev)&&d$(this.lineTexts[n-1]))&&(e=e.prev,n=e.sourcepos[0][0]);var i=this.lineTexts.slice(n-1,r),o=this.parser.partialParseStart(n,i),a=t?t.next:this.root.firstChild,s=o.lastChild,c=s&&tU(s)&&s.open,l=s&&sU(s)&&s.open,u=s&&iU(s);while((c||l)&&a||u&&a&&("list"===a.type||a.sourcepos[0][1]>=2)){var d=this.extendEndLine(a.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(r,d)),e||(e=t),t=a,r=d,a=a.next}this.parser.partialParseFinish();var f=Yz(o);return{newNodes:f,extStartNode:e,extEndNode:t}},e.prototype.getRemovedNodeRange=function(e,t){return!e||e&&aU(e)||t&&aU(t)?null:{id:[e.id,t.id],line:[e.sourcepos[0][0]-1,t.sourcepos[1][0]-1]}},e.prototype.markDeletedRefMap=function(e,t){var n=this;if(!VU(this.refMap)){var r=function(e){if(aU(e)){var t=n.refMap[e.label];t&&e.id===t.id&&(t.unlinked=!0)}};e&&s$(r,e.parent,t),t&&s$(r,t)}},e.prototype.replaceWithNewRefDefState=function(e){var t=this;if(!VU(this.refMap)){var n=function(e){if(aU(e)){var n=e.label,r=t.refMap[n];r&&!r.unlinked||(t.refMap[n]=f$(e))}};e.forEach((function(e){s$(n,e)}))}},e.prototype.replaceWithRefDefCandidate=function(){var e=this;VU(this.refDefCandidateMap)||HU(this.refDefCandidateMap,(function(t,n){var r=n.label,i=n.sourcepos,o=e.refMap[r];(!o||o.unlinked||o.sourcepos[0][0]>i[0][0])&&(e.refMap[r]=f$(n))}))},e.prototype.getRangeWithRefDef=function(e,t,n,r,i){if(this.referenceDefinition&&!VU(this.refMap)){var o=t$(this.root,e-1),a=t$(this.root,t+1);o&&aU(o)&&o!==n&&o!==r&&(n=o,e=n.sourcepos[0][0]),a&&aU(a)&&a!==n&&a!==r&&(r=a,t=this.extendEndLine(r.sourcepos[1][0]+i))}return[n,r,e,t]},e.prototype.parse=function(e,t,n){void 0===n&&(n=0);var r=this.getNodeRange(e,t),i=r[0],o=r[1],a=i?Math.min(i.sourcepos[0][0],e[0]):e[0],s=this.extendEndLine((o?Math.max(o.sourcepos[1][0],t[0]):t[0])+n),c=this.parseRange.apply(this,this.getRangeWithRefDef(a,s,i,o,n)),l=c.newNodes,u=c.extStartNode,d=c.extEndNode,f=this.getRemovedNodeRange(u,d),p=d?d.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(u,d),this.replaceRangeNodes(u,d,l),this.replaceWithNewRefDefState(l)):this.replaceRangeNodes(u,d,l),{nodes:l,removedNodeRange:f,nextNode:p}},e.prototype.parseRefLink=function(){var e=this,t=[];return VU(this.refMap)||HU(this.refMap,(function(n,r){r.unlinked&&delete e.refMap[n],HU(e.refLinkCandidateMap,(function(r,i){var o=i.node,a=i.refLabel;a===n&&t.push(e.parse(o.sourcepos[0],o.sourcepos[1]))}))})),t},e.prototype.removeUnlinkedCandidate=function(){VU(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){HU(e,(function(t){c$(t)&&delete e[t]}))}))},e.prototype.editMarkdown=function(e,t,n){var r=this.updateLineTexts(e,t,n),i=this.parse(e,t,r),o=UU(i,"nextNode");Zz(i.nextNode,r),this.updateRootNodeState();var a=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),a=a.concat(this.parseRefLink())),this.trigger("change",a),a},e.prototype.getLineTexts=function(){return this.lineTexts},e.prototype.getRootNode=function(){return this.root},e.prototype.findNodeAtPosition=function(e){var t=o$(this.root,e);return t&&t!==this.root?t:null},e.prototype.findFirstNodeAtLine=function(e){return i$(this.root,e)},e.prototype.on=function(e,t){this.eventHandlerMap[e].push(t)},e.prototype.off=function(e,t){var n=this.eventHandlerMap[e],r=n.indexOf(t);n.splice(r,1)},e.prototype.findNodeById=function(e){return a$(e)},e.prototype.removeAllNode=function(){qH()},e}(),h$=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],m$=new RegExp("<(/?(?:"+h$.join("|")+")[^>]*>)","ig");function v$(e){return m$.test(e)?e.replace(m$,(function(e,t){return"&lt;"+t})):e}var g$={heading:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"h"+e.level,outerNewLine:!0}},text:function(e){return{type:"text",content:e.literal}},softbreak:function(e,t){var n=t.options;return{type:"html",content:n.softbreak}},linebreak:function(){return{type:"html",content:"<br />\n"}},emph:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"em"}},strong:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"strong"}},paragraph:function(e,t){var n,r=t.entering,i=null===(n=e.parent)||void 0===n?void 0:n.parent;return i&&"list"===i.type&&i.listData.tight?null:{type:r?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(e,t){var n=t.entering,r=e.listData,i=r.type,o=r.start,a="bullet"===i?"ul":"ol",s={};return"ol"===a&&null!==o&&1!==o&&(s.start=o.toString()),{type:n?"openTag":"closeTag",tagName:a,attributes:s,outerNewLine:!0}},item:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(e,t){var n=t.options,r=n.tagFilter?v$(e.literal):e.literal;return{type:"html",content:r}},htmlBlock:function(e,t){var n=t.options,r=n.tagFilter?v$(e.literal):e.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:r},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:r,outerNewLine:!0}},code:function(e){return[{type:"openTag",tagName:"code"},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e.info,n=t?t.split(/\s+/):[],r=[];return n.length>0&&n[0].length>0&&r.push("language-"+jH(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(e,t){var n=t.entering;if(n){var r=e,o=r.title,a=r.destination;return{type:"openTag",tagName:"a",attributes:i({href:jH(a)},o&&{title:jH(o)})}}return{type:"closeTag",tagName:"a"}},image:function(e,t){var n=t.getChildrenText,r=t.skipChildren,o=e,a=o.title,s=o.destination;return r(),{type:"openTag",tagName:"img",selfClose:!0,attributes:i({src:jH(s),alt:n(e)},a&&{title:jH(a)})}},customBlock:function(e,t,n){var r=e.info.trim().toLowerCase(),i=n[r];if(i)try{return i(e,t)}catch(o){console.warn("[@toast-ui/editor] - The error occurred when "+r+" block node was parsed in markdown renderer: "+o)}return[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},frontMatter:function(e){return[{type:"openTag",tagName:"div",outerNewLine:!0,attributes:{style:"white-space: pre; display: none;"}},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},customInline:function(e,t,n){var r=e,i=r.info,o=r.firstChild,a=i.trim().toLowerCase(),s=n[a],c=t.entering;if(s)try{return s(e,t)}catch(l){console.warn("[@toast-ui/editor] - The error occurred when "+a+" inline node was parsed in markdown renderer: "+l)}return c?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+i+(o?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},b$={strike:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"del"}},item:function(e,t){var n=t.entering,r=e.listData,o=r.checked,a=r.task;if(n){var s={type:"openTag",tagName:"li",outerNewLine:!0};return a?[s,{type:"openTag",tagName:"input",selfClose:!0,attributes:i(i({},o&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:s}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(e,t){var n=t.entering;if(n)return{type:"openTag",tagName:"tr",outerNewLine:!0};var r=[];if(e.lastChild)for(var i=e.parent.parent.columns.length,o=e.lastChild.endIdx,a=o+1;a<i;a+=1)r.push({type:"openTag",tagName:"td",outerNewLine:!0},{type:"closeTag",tagName:"td",outerNewLine:!0});return r.push({type:"closeTag",tagName:"tr",outerNewLine:!0}),r},tableCell:function(e,t){var n=t.entering;if(e.ignored)return{type:"text",content:""};var r=e.parent.parent,o="tableHead"===r.type?"th":"td",a=r.parent,s=a.columns[e.startIdx],c=(null===s||void 0===s?void 0:s.align)?{align:s.align}:null;return n?i({type:"openTag",tagName:o,outerNewLine:!0},c&&{attributes:c}):{type:"closeTag",tagName:o,outerNewLine:!0}}},y$={softbreak:"\n",gfm:!1,tagFilter:!1,nodeId:!1};function w$(e){var t=[],n=e.walker(),r=null;while(r=n.next()){var i=r.node;"text"===i.type&&t.push(i.literal)}return t.join("")}var k$=function(){function e(e){this.buffer=[],this.options=i(i({},y$),e),this.convertors=this.createConvertors(),delete this.options.convertors}return e.prototype.createConvertors=function(){var e=i({},g$);if(this.options.gfm&&(e=i(i({},e),b$)),this.options.convertors){var t=this.options.convertors,n=Object.keys(t),r=i(i({},g$),b$);n.forEach((function(n){var i=e[n],o=t[n],a=-1===Object.keys(r).indexOf(n)?n.toLowerCase():n;e[a]=i?function(e,t,n){return t.origin=function(){return i(e,t,n)},o(e,t)}:o}))}return e},e.prototype.getConvertors=function(){return this.convertors},e.prototype.getOptions=function(){return this.options},e.prototype.render=function(e){var t=this;this.buffer=[];var n=e.walker(),r=null,i=function(){var e=r.node,i=r.entering,a=o.convertors[e.type];if(!a)return"continue";var s=!1,c={entering:i,leaf:!LH(e),options:o.options,getChildrenText:w$,skipChildren:function(){s=!0}},l=sU(e)||cU(e)?a(e,c,o.convertors):a(e,c);if(l){var u=Array.isArray(l)?l:[l];u.forEach((function(n,r){"openTag"===n.type&&t.options.nodeId&&0===r&&(n.attributes||(n.attributes={}),n.attributes["data-nodeid"]=String(e.id)),t.renderHTMLNode(n)})),s&&(n.resumeAt(e,!1),n.next())}},o=this;while(r=n.next())i();return this.addNewLine(),this.buffer.join("")},e.prototype.renderHTMLNode=function(e){switch(e.type){case"openTag":case"closeTag":this.renderElementNode(e);break;case"text":this.renderTextNode(e);break;case"html":this.renderRawHtmlNode(e);break}},e.prototype.generateOpenTagString=function(e){var t=this,n=e.tagName,r=e.classNames,i=e.attributes;this.buffer.push("<"+n),r&&r.length>0&&this.buffer.push(' class="'+r.join(" ")+'"'),i&&Object.keys(i).forEach((function(e){var n=i[e];t.buffer.push(" "+e+'="'+n+'"')})),e.selfClose&&this.buffer.push(" /"),this.buffer.push(">")},e.prototype.generateCloseTagString=function(e){var t=e.tagName;this.buffer.push("</"+t+">")},e.prototype.addNewLine=function(){this.buffer.length&&"\n"!==RU(RU(this.buffer))&&this.buffer.push("\n")},e.prototype.addOuterNewLine=function(e){e.outerNewLine&&this.addNewLine()},e.prototype.addInnerNewLine=function(e){e.innerNewLine&&this.addNewLine()},e.prototype.renderTextNode=function(e){this.buffer.push(jH(e.content))},e.prototype.renderRawHtmlNode=function(e){this.addOuterNewLine(e),this.buffer.push(e.content),this.addOuterNewLine(e)},e.prototype.renderElementNode=function(e){"openTag"===e.type?(this.addOuterNewLine(e),this.generateOpenTagString(e),e.selfClose?this.addOuterNewLine(e):this.addInnerNewLine(e)):(this.addInnerNewLine(e),this.generateCloseTagString(e),this.addOuterNewLine(e))},e}(),x$=o(956),C$=o.n(x$),O$=o(969),S$=o.n(O$),T$=o(348),E$=o.n(T$),_$=o(349),M$=o.n(_$),I$=o(204),j$=o.n(I$),D$=o(462),N$=o.n(D$),A$=o(522),L$=o.n(A$),P$=o(990),B$=o.n(P$),F$=o(322),R$=o.n(F$),q$=o(758),H$=o.n(q$),U$=o(929),V$=o.n(U$),z$=o(714),$$=o.n(z$),W$=(o(471),"[A-Za-z][A-Za-z0-9-]*"),G$="[a-zA-Z_:][a-zA-Z0-9:._-]*",K$="[^\"'=<>`\\x00-\\x20]+",J$="'[^']*'",Y$='"[^"]*"',X$="(?:"+K$+"|"+J$+"|"+Y$+")",Q$="(?:\\s*=\\s*"+X$+")",Z$="(?:\\s+"+G$+Q$+"?)",eW="<("+W$+")("+Z$+")*\\s*/?>",tW="</("+W$+")\\s*[>]",nW="(?:"+eW+"|"+tW+")",rW=new RegExp("^"+nW,"i"),iW=(o(934),o(391),/Mac/.test(navigator.platform),'[&<>"]');new RegExp(iW,"g");function oW(e,t){return-1!==e.indexOf(t)}var aW=["rel","target","hreflang","type"];function sW(e){if(!e)return null;var t={};return aW.forEach((function(n){V$()(e[n])||(t[n]=e[n])})),t}function cW(e){return e[e.length-1]}function lW(e){return"object"===typeof e&&null!==e}function uW(t,n){var r=e({},t);return t&&n&&Object.keys(n).forEach((function(e){lW(r[e])?Array.isArray(n[e])?r[e]=dW(n[e]):r.hasOwnProperty(e)?r[e]=uW(r[e],n[e]):r[e]=fW(n[e]):r[e]=n[e]})),r}function dW(e){return e.map((function(e){return lW(e)?Array.isArray(e)?dW(e):fW(e):e}))}function fW(e){var t=Object.keys(e);return t.length?t.reduce((function(t,n){return lW(e[n])?t[n]=Array.isArray(e[n])?dW(e[n]):fW(e[n]):t[n]=e[n],t}),{}):e}function pW(e,t){return void 0===t&&(t={}),Object.keys(t).forEach((function(n){e.hasOwnProperty(n)&&"object"===typeof e[n]?Array.isArray(t[n])?e[n]=t[n]:pW(e[n],t[n]):e[n]=t[n]})),e}function hW(e,t){return e>t?[t,e]:[e,t]}function mW(e,t,n){var r=parseInt(e.left,10),i=parseInt(e.top,10),o=parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),a=parseInt(e.height,10)+parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10);return t>=r&&t<=r+o&&n>=i&&n<=i+a}var vW="toastui-editor-";function gW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],a=void 0;a=Array.isArray(o)?o[0]?o[1]:null:o,a&&n.push(""+vW+a)}return n.join(" ")}function bW(e){e.parentNode&&e.parentNode.removeChild(e)}function yW(e,t,n){V$()(n)&&(n=!$$()(e,t));var r=n?j$():N$();r(e,t)}function wW(e,t){var n=document.createElement("div");H$()(e)?n.innerHTML=e:n.appendChild(e);var r=n.firstChild;return t&&t.appendChild(r),r}var kW=o(294),xW=o.n(kW);function CW(e){return e.sourcepos[0][1]}function OW(e){switch(e.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":case"customInline":return!0;default:return!1}}function SW(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type){if(t(e))return e;e=e.parent}return null}function TW(e){var t=e.firstChild.literal;switch(e.type){case"emph":return"*"+t+"*";case"strong":return"**"+t+"**";case"strike":return"~~"+t+"~~";case"code":return"`"+t+"`";case"link":case"image":var n=e,r=n.destination,i=n.title,o="link"===e.type?"":"!";return o+"["+t+"]("+r+(i?' "'+i+'"':"")+")";default:return null}}var EW={},_W=/\$\$widget\d+\s/;function MW(e){var t=e.search(_W);if(-1!==t){var n=e.substring(t),r=n.replace(_W,"").replace("$$","");e=e.substring(0,t),e+=MW(r)}return e}function IW(e,t){var n=EW[e],r=n.rule,i=n.toDOM;return t=MW(t).match(r)[0],i(t)}function jW(e){var t,n="",r=e.walker();while(t=r.next()){var i=t.node,o=t.entering;o&&(i!==e&&"text"!==i.type?(n+=TW(i),r.resumeAt(e,!1),r.next()):"text"===i.type&&(n+=i.literal))}return n}var DW=o(368),NW=o.n(DW),AW=["iframe","embed"],LW=[];function PW(e){oW(AW,e)&&LW.push(e.toLowerCase())}function BW(t,n){return NW().sanitize(t,e({ADD_TAGS:LW,ADD_ATTR:["rel","target","hreflang","type"],FORBID_TAGS:["input","script","textarea","form","button","select","meta","style","link","title","object","base"]},n))}function FW(e,t){return e.literal.replace(new RegExp("(<\\s*"+t+"[^>]*>)|(</"+t+"\\s*[>])","ig"),"").trim()}function RW(e){e=e.match(rW)[0];var t=e.match(new RegExp(Z$,"g"));return t?t.reduce((function(e,t){var n=t.trim().split("="),r=n[0],i=n.slice(1);return i.length&&(e[r]=i.join("=").replace(/'|"/g,"").trim()),e}),{}):{}}var qW=/^\s*<\s*\//,HW={paragraph:function(e,t){var n=t.entering,r=t.origin,i=t.options;return i.nodeId?{type:n?"openTag":"closeTag",outerNewLine:!0,tagName:"p"}:r()},softbreak:function(e){var t=e.prev&&"htmlInline"===e.prev.type,n=t&&/<br ?\/?>/.test(e.prev.literal),r=n?"\n":"<br>\n";return{type:"html",content:r}},item:function(e,t){var n=t.entering;if(n){var r={},i=[];return e.listData.task&&(r["data-task"]="",i.push("task-list-item"),e.listData.checked&&(i.push("checked"),r["data-task-checked"]="")),{type:"openTag",tagName:"li",classNames:i,attributes:r,outerNewLine:!0}}return{type:"closeTag",tagName:"li",outerNewLine:!0}},code:function(e){var t={"data-backticks":String(e.tickCount)};return[{type:"openTag",tagName:"code",attributes:t},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e,n=t.fenceLength,r=t.info,i=r?r.split(/\s+/):[],o=[],a={};if(n>3&&(a["data-backticks"]=n),i.length>0&&i[0].length>0){var s=i[0];o.push("lang-"+s),a["data-language"]=s}return[{type:"openTag",tagName:"pre",classNames:o},{type:"openTag",tagName:"code",attributes:a},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre"}]},customInline:function(e,t){var n=t.origin,r=t.entering,i=t.skipChildren,o=e.info;if(-1!==o.indexOf("widget")&&r){i();var a=jW(e),s=IW(o,a).outerHTML;return[{type:"openTag",tagName:"span",classNames:["tui-widget"]},{type:"html",content:s},{type:"closeTag",tagName:"span"}]}return n()}};function UW(t,n){var r=e({},HW);return t&&(r.link=function(n,r){var i=r.entering,o=r.origin,a=o();return i&&(a.attributes=e(e({},a.attributes),t)),a}),n&&Object.keys(n).forEach((function(t){var i=r[t],o=n[t];i&&xW()(o)?r[t]=function(t,n){var r=e({},n);return r.origin=function(){return i(t,n)},o(t,r)}:oW(["htmlBlock","htmlInline"],t)&&!xW()(o)?r[t]=function(t,n){var r=t.literal.match(rW);if(r){var i=r[0],a=r[1],s=r[3],c=(a||s).toLowerCase(),l=o[c],u=FW(t,c);if(l){var d=e({},t);return d.attrs=RW(i),d.childrenHTML=u,d.type=c,n.entering=!qW.test(t.literal),l(d,n)}}return n.origin()}:r[t]=o})),r}var VW=["UL","OL","BLOCKQUOTE"];function zW(e,t){var n=0;while(e&&e!==t){if(oW(VW,e.tagName)||(n+=e.offsetTop),e.offsetParent===t.offsetParent)break;e=e.parentElement}return n}function $W(e,t){var n=t,r=null;while(n){var i=n.firstElementChild;if(!i)break;var o=WW(i,e,zW(n,t));r=n,n=o}var a=n||r;return a===t?null:a}function WW(e,t,n){return e&&t>n+e.offsetTop?WW(e.nextElementSibling,t,n)||e:null}var GW={};function KW(e){e&&(delete GW[Number(e.getAttribute("data-nodeid"))],B$()(e.children).forEach((function(e){KW(e)})))}var JW=gW("md-preview-highlight");function YW(e,t){var n=e.firstChild;while(n&&n.next){if(CW(n.next)>t+1)break;n=n.next}return n}var XW=function(){function e(e,t){var n=document.createElement("div");this.el=n,this.eventEmitter=e,this.isViewer=!!t.isViewer,this.el.className=gW("md-preview");var r=t.linkAttributes,i=t.customHTMLRenderer,o=t.sanitizer,a=t.highlight,s=void 0!==a&&a;this.renderer=new k$({gfm:!0,nodeId:!0,convertors:UW(r,i)}),this.cursorNodeId=null,this.sanitizer=o,this.initEvent(s),this.initContentSection(),this.isViewer&&(this.previewContent.style.overflowWrap="break-word")}return e.prototype.initContentSection=function(){this.previewContent=wW('<div class="'+gW("contents")+'"></div>'),this.isViewer||this.el.appendChild(this.previewContent)},e.prototype.toggleActive=function(e){yW(this.el,"active",e)},e.prototype.initEvent=function(e){var t=this;this.eventEmitter.listen("updatePreview",this.update.bind(this)),this.isViewer||(e&&(this.eventEmitter.listen("changeToolbarState",(function(e){var n=e.mdNode,r=e.cursorPos;t.updateCursorNode(n,r)})),this.eventEmitter.listen("blur",(function(){t.removeHighlight()}))),E$()(this.el,"scroll",(function(e){t.eventEmitter.emit("scroll","preview",$W(e.target.scrollTop,t.previewContent))})),this.eventEmitter.listen("changePreviewTabPreview",(function(){return t.toggleActive(!0)})),this.eventEmitter.listen("changePreviewTabWrite",(function(){return t.toggleActive(!1)})))},e.prototype.removeHighlight=function(){if(this.cursorNodeId){var e=this.getElementByNodeId(this.cursorNodeId);e&&N$()(e,JW)}},e.prototype.updateCursorNode=function(e,t){e&&(e=SW(e,(function(e){return!OW(e)})),"tableRow"===e.type?e=YW(e,t[1]):"tableBody"===e.type&&(e=null));var n=e?e.id:null;if(this.cursorNodeId!==n){var r=this.getElementByNodeId(this.cursorNodeId),i=this.getElementByNodeId(n);r&&N$()(r,JW),i&&j$()(i,JW),this.cursorNodeId=n}},e.prototype.getElementByNodeId=function(e){return e?this.previewContent.querySelector('[data-nodeid="'+e+'"]'):null},e.prototype.update=function(e){var t=this;e.forEach((function(e){return t.replaceRangeNodes(e)})),this.eventEmitter.emit("afterPreviewRender",this)},e.prototype.replaceRangeNodes=function(e){var t=this,n=e.nodes,r=e.removedNodeRange,i=this.previewContent,o=this.eventEmitter.emitReduce("beforePreviewRender",this.sanitizer(n.map((function(e){return t.renderer.render(e)})).join("")));if(r){var a=r.id,s=a[0],c=a[1],l=this.getElementByNodeId(s),u=this.getElementByNodeId(c);if(l){l.insertAdjacentHTML("beforebegin",o);var d=l;while(d&&d!==u){var f=d.nextElementSibling;bW(d),KW(d),d=f}(null===d||void 0===d?void 0:d.parentNode)&&(bW(d),KW(d))}}else i.insertAdjacentHTML("afterbegin",o)},e.prototype.getRenderer=function(){return this.renderer},e.prototype.destroy=function(){M$()(this.el,"scroll"),this.el=null},e.prototype.getElement=function(){return this.el},e.prototype.getHTML=function(){return this.previewContent.innerHTML},e.prototype.setHTML=function(e){this.previewContent.innerHTML=e},e.prototype.setHeight=function(e){L$()(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){L$()(this.el,{minHeight:e+"px"})},e}(),QW=XW,ZW=o(814),eG=o(311),tG=o(43),nG=o(928),rG=o.n(nG),iG=function(){function e(){this.keys=[],this.values=[]}return e.prototype.getKeyIndex=function(e){return rG()(e,this.keys)},e.prototype.get=function(e){return this.values[this.getKeyIndex(e)]},e.prototype.set=function(e,t){var n=this.getKeyIndex(e);return n>-1?this.values[n]=t:(this.keys.push(e),this.values.push(t)),this},e.prototype.has=function(e){return this.getKeyIndex(e)>-1},e.prototype.delete=function(e){var t=this.getKeyIndex(e);return t>-1&&(this.keys.splice(t,1),this.values.splice(t,1),!0)},e.prototype.forEach=function(e,t){var n=this;void 0===t&&(t=this),this.values.forEach((function(r,i){r&&n.keys[i]&&e.call(t,r,n.keys[i],n)}))},e.prototype.clear=function(){this.keys=[],this.values=[]},e}(),oG=iG,aG="en-US",sG=function(){function e(){this.code=aG,this.langs=new oG}return e.prototype.setCode=function(e){this.code=e||aG},e.prototype.setLanguage=function(e,t){var n=this;e=[].concat(e),e.forEach((function(e){if(n.langs.has(e)){var r=n.langs.get(e);n.langs.set(e,S$()(r,t))}else n.langs.set(e,t)}))},e.prototype.get=function(e,t){t||(t=this.code);var n=this.langs.get(t);n||(n=this.langs.get(aG));var r=n[e];if(!r)throw new Error('There is no text key "'+e+'" in '+t);return r},e}(),cG=new sG;function lG(e,t){var n=e.depth;while(n){var r=e.node(n);if(t(r,n))return{node:r,depth:n,offset:n>0?e.before(n):0};n-=1}return null}var uG=new Map,dG=function(){function e(e,t,n,r){this.table=e,this.tableRows=t,this.tableStartPos=n,this.rowInfo=r}return e.create=function(t){var n=lG(t,(function(e){var t=e.type;return"table"===t.name}));if(n){var r=n.node,i=n.depth,o=n.offset,a=uG.get(r);if((null===a||void 0===a?void 0:a.tableStartPos)===o+1)return a;var s=[],c=t.start(i),l=r.child(0),u=r.child(1),d=fG(l,c),f=fG(u,c+l.nodeSize);l.forEach((function(e){return s.push(e)})),u.forEach((function(e){return s.push(e)}));var p=new e(r,s,c,d.concat(f));return uG.set(r,p),p}return null},Object.defineProperty(e.prototype,"totalRowCount",{get:function(){return this.rowInfo.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalColumnCount",{get:function(){return this.rowInfo[0].length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableStartOffset",{get:function(){return this.tableStartPos},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableEndOffset",{get:function(){return this.tableStartPos+this.table.nodeSize-1},enumerable:!1,configurable:!0}),e.prototype.getCellInfo=function(e,t){return this.rowInfo[e][t]},e.prototype.posAt=function(e,t){for(var n=0,r=this.tableStartPos;;n+=1){var i=r+this.tableRows[n].nodeSize;if(n===e){var o=t;while(o<this.totalColumnCount&&this.rowInfo[n][o].offset<r)o+=1;return o===this.totalColumnCount?i:this.rowInfo[n][o].offset}r=i}},e.prototype.getNodeAndPos=function(e,t){var n=this.rowInfo[e][t];return{node:this.table.nodeAt(n.offset-this.tableStartOffset),pos:n.offset}},e.prototype.extendedRowspan=function(e,t){return!1},e.prototype.extendedColspan=function(e,t){return!1},e.prototype.getRowspanCount=function(e,t){return 0},e.prototype.getColspanCount=function(e,t){return 0},e.prototype.decreaseColspanCount=function(e,t){return 0},e.prototype.decreaseRowspanCount=function(e,t){return 0},e.prototype.getColspanStartInfo=function(e,t){return null},e.prototype.getRowspanStartInfo=function(e,t){return null},e.prototype.getCellStartOffset=function(e,t){var n=this.rowInfo[e][t].offset;return this.extendedRowspan(e,t)?this.posAt(e,t):n},e.prototype.getCellEndOffset=function(e,t){var n=this.rowInfo[e][t],r=n.offset,i=n.nodeSize;return this.extendedRowspan(e,t)?this.posAt(e,t):r+i},e.prototype.getCellIndex=function(e){for(var t=0;t<this.totalRowCount;t+=1)for(var n=this.rowInfo[t],r=0;r<this.totalColumnCount;r+=1)if(n[r].offset+1>e.pos)return[t,r];return[0,0]},e.prototype.getRectOffsets=function(e,t){var n,r,i;void 0===t&&(t=e),e.pos>t.pos&&(n=[t,e],e=n[0],t=n[1]);var o=this.getCellIndex(e),a=o[0],s=o[1],c=this.getCellIndex(t),l=c[0],u=c[1];return r=hW(a,l),a=r[0],l=r[1],i=hW(s,u),s=i[0],u=i[1],this.getSpannedOffsets({startRowIdx:a,startColIdx:s,endRowIdx:l,endColIdx:u})},e.prototype.getSpannedOffsets=function(e){return e},e}(),fG=function(e,t){var n=[];return e.forEach((function(e,r){var i={rowspanMap:{},colspanMap:{},length:0};e.forEach((function(e,n){var o=e.nodeSize,a=0;while(i[a])a+=1;i[a]={offset:t+r+n+2,nodeSize:o},i.length+=1})),n.push(i)})),n};function pG(e,t){return pW(dG.prototype,e),fG=t,dG}function hG(e,t,n){var r={Plugin:ZW.Plugin,Selection:ZW.Selection,TextSelection:ZW.TextSelection},i={Decoration:eG.Decoration,DecorationSet:eG.DecorationSet},o={Fragment:tG.Fragment},a={eventEmitter:t,usageStatistics:n,pmState:r,pmView:i,pmModel:o,i18n:cG};if(R$()(e)){var s=e[0],c=e[1],l=void 0===c?{}:c;return s(a,l)}return e(a)}function mG(t,n,r){return n.listen("mixinTableOffsetMapPrototype",pG),(null!==t&&void 0!==t?t:[]).reduce((function(t,i){var o=hG(i,n,r);if(!o)throw new Error("The return value of the executed plugin is empty.");var a=o.markdownParsers,s=o.toHTMLRenderers,c=o.toMarkdownRenderers,l=o.markdownPlugins,u=o.wysiwygPlugins,d=o.wysiwygNodeViews,f=o.markdownCommands,p=o.wysiwygCommands,h=o.toolbarItems;return s&&(t.toHTMLRenderers=uW(t.toHTMLRenderers,s)),c&&(t.toMarkdownRenderers=uW(t.toMarkdownRenderers,c)),l&&(t.mdPlugins=t.mdPlugins.concat(l)),u&&(t.wwPlugins=t.wwPlugins.concat(u)),d&&(t.wwNodeViews=e(e({},t.wwNodeViews),d)),f&&(t.mdCommands=e(e({},t.mdCommands),f)),p&&(t.wwCommands=e(e({},t.wwCommands),p)),h&&(t.toolbarItems=t.toolbarItems.concat(h)),a&&(t.markdownParsers=e(e({},t.markdownParsers),a)),t}),{toHTMLRenderers:{},toMarkdownRenderers:{},mdPlugins:[],wwPlugins:[],wwNodeViews:{},mdCommands:{},wwCommands:{},toolbarItems:[],markdownParsers:{}})}var vG=o(404),gG=o.n(vG),bG=["afterPreviewRender","updatePreview","changeMode","needChangeMode","command","changePreviewStyle","changePreviewTabPreview","changePreviewTabWrite","scroll","contextmenu","show","hide","changeLanguage","changeToolbarState","toggleScrollSync","mixinTableOffsetMapPrototype","setFocusedNode","removePopupWidget","query","openPopup","closePopup","addImageBlobHook","beforePreviewRender","beforeConvertWysiwygToMarkdown","load","loadUI","change","caretChange","destroy","focus","blur","keydown","keyup"],yG=function(){function n(){var t=this;this.events=new oG,this.eventTypes=bG.reduce((function(t,n){return e(e({},t),{type:n})}),{}),this.hold=!1,bG.forEach((function(e){t.addEventType(e)}))}return n.prototype.listen=function(e,t){var n=this.getTypeInfo(e),r=this.events.get(n.type)||[];if(!this.hasEventType(n.type))throw new Error("There is no event type "+n.type);n.namespace&&(t.namespace=n.namespace),r.push(t),this.events.set(n.type,r)},n.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getTypeInfo(e),i=this.events.get(r.type),o=[];return!this.hold&&i&&i.forEach((function(e){var n=e.apply(void 0,t);V$()(n)||o.push(n)})),o},n.prototype.emitReduce=function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=this.events.get(e);return!this.hold&&o&&o.forEach((function(e){var i=e.apply(void 0,t([n],r));gG()(i)||(n=i)})),n},n.prototype.getTypeInfo=function(e){var t=e.split(".");return{type:t[0],namespace:t[1]}},n.prototype.hasEventType=function(e){return!V$()(this.eventTypes[this.getTypeInfo(e).type])},n.prototype.addEventType=function(e){if(this.hasEventType(e))throw new Error("There is already have event type "+e);this.eventTypes[e]=e},n.prototype.removeEventHandler=function(e,t){var n=this,r=this.getTypeInfo(e),i=r.type,o=r.namespace;i&&t?this.removeEventHandlerWithHandler(i,t):i&&!o?this.events.delete(i):!i&&o?this.events.forEach((function(e,t){n.removeEventHandlerWithTypeInfo(t,o)})):i&&o&&this.removeEventHandlerWithTypeInfo(i,o)},n.prototype.removeEventHandlerWithHandler=function(e,t){var n=this.events.get(e);if(n){var r=n.indexOf(t);n.indexOf(t)>=0&&n.splice(r,1)}},n.prototype.removeEventHandlerWithTypeInfo=function(e,t){var n=[],r=this.events.get(e);r&&(r.map((function(e){return e.namespace!==t&&n.push(e),null})),this.events.set(e,n))},n.prototype.getEvents=function(){return this.events},n.prototype.holdEventInvoke=function(e){this.hold=!0,e(),this.hold=!1},n}(),wG=yG,kG="data-task",xG="data-task-disabled",CG="checked";function OG(e){["htmlBlock","htmlInline"].forEach((function(t){e[t]&&Object.keys(e[t]).forEach((function(e){return PW(e)}))}))}var SG=function(){function t(t){var n=this;this.options=S$()({linkAttributes:null,extendedAutolinks:!1,customHTMLRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null,frontMatter:!1,usageStatistics:!0,theme:"light"},t),this.eventEmitter=new wG;var r=sW(this.options.linkAttributes),i=mG(this.options.plugins,this.eventEmitter,this.options.usageStatistics)||{},o=i.toHTMLRenderers,a=i.markdownParsers,s=this.options,c=s.customHTMLRenderer,l=s.extendedAutolinks,u=s.referenceDefinition,d=s.frontMatter,f=s.customHTMLSanitizer,p={linkAttributes:r,customHTMLRenderer:e(e({},o),c),extendedAutolinks:l,referenceDefinition:u,frontMatter:d,sanitizer:f||BW};OG(p.customHTMLRenderer),this.options.events&&C$()(this.options.events,(function(e,t){n.on(t,e)}));var h=this.options,m=h.el,v=h.initialValue,g=h.theme,b=m.innerHTML;"light"!==g&&m.classList.add(gW(g)),m.innerHTML="",this.toastMark=new p$("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:l,referenceDefinition:u,disallowDeepHeading:!0,frontMatter:d,customParser:a}),this.preview=new QW(this.eventEmitter,e(e({},p),{isViewer:!0})),E$()(this.preview.previewContent,"mousedown",this.toggleTask.bind(this)),v?this.setMarkdown(v):b&&this.preview.setHTML(b),m.appendChild(this.preview.previewContent),this.eventEmitter.emit("load",this)}return t.prototype.toggleTask=function(e){var t=e.target,n=getComputedStyle(t,":before");!t.hasAttribute(xG)&&t.hasAttribute(kG)&&mW(n,e.offsetX,e.offsetY)&&yW(t,CG)},t.prototype.setMarkdown=function(e){var t=this.toastMark.getLineTexts(),n=t.length,r=cW(t),i=[n,r.length+1],o=this.toastMark.editMarkdown([1,1],i,e||"");this.eventEmitter.emit("updatePreview",o)},t.prototype.on=function(e,t){this.eventEmitter.listen(e,t)},t.prototype.off=function(e){this.eventEmitter.removeEventHandler(e)},t.prototype.addHook=function(e,t){this.eventEmitter.removeEventHandler(e),this.eventEmitter.listen(e,t)},t.prototype.destroy=function(){M$()(this.preview.el,"mousedown",this.toggleTask.bind(this)),this.preview.destroy(),this.eventEmitter.emit("destroy")},t.prototype.isViewer=function(){return!0},t.prototype.isMarkdownMode=function(){return!1},t.prototype.isWysiwygMode=function(){return!1},t}(),TG=SG,EG=TG}(),a=a["default"],a}()}))},f203:function(e,t,n){"use strict";n("c63c")},f2b0:function(e,t,n){},f596:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=function(e){if("string"!==typeof e)return{};e=e.split("+").join(" ");var t,n={},r=e.match(/(?:[?](?:[^=]+)=(?:[^&#]*)(?:[&](?:[^=]+)=(?:[^&#]*))*(?:[#].*)?)|(?:[#].*)/);if(null===r)return{};t=r[0].substr(1).split(/[&#=]/);for(var i=0;i<t.length;i+=2)n[decodeURIComponent(t[i])]=decodeURIComponent(t[i+1]||"");return n},n=function(t,n){if("object"!==e(t))return"";var r="",i=0,o=Object.keys(t);if(0===o.length)return"";for(o.sort(),n||(r+="?"+o[0]+"="+t[o[0]],i+=1);i<o.length;i+=1)r+="&"+o[i]+"="+t[o[i]];return r};function r(e){var t,n=0,r={s:1,m:60,h:3600,d:86400,w:604800};e=e.replace(/([smhdw])/g," $1 ").trim(),t=e.split(" ");for(var i=0;i<t.length;i+=2)n+=parseInt(t[i],10)*r[t[i+1]||"s"];return n}function i(e){for(var t=0,n=[1,60,3600,86400,604800],r=e.split(":"),i=0;i<r.length;i++)t+=parseInt(r[i],10)*n[r.length-i-1];return t}var o=function(e){return"undefined"===typeof e?0:e.match(/^(\d+[smhdw]?)+$/)?r(e):e.match(/^(\d+:?)+$/)?i(e):0},a={getQueryParams:t,combineParams:n,getTime:o},s=a.getQueryParams;function c(){for(var e=0,t=["parseProvider","parse","bind","create"];e<t.length;e++){var n=t[e];this[n]=this[n].bind(this)}this.plugins={}}var l=c;function u(e){return e.params&&0===Object.keys(e.params).length&&delete e.params,e}c.prototype.parseProvider=function(e){var t=e.match(/(?:(?:https?:)?\/\/)?(?:[^.]+\.)?(\w+)\./i);return t?t[1]:void 0},c.prototype.parse=function(e){if("undefined"!==typeof e){var t,n=this.parseProvider(e),r=this.plugins[n];if(n&&r&&r.parse)return t=r.parse.call(r,e,s(e)),t&&(t=u(t),t.provider=r.provider),t}},c.prototype.bind=function(e){if(this.plugins[e.provider]=e,e.alternatives)for(var t=0;t<e.alternatives.length;t+=1)this.plugins[e.alternatives[t]]=e},c.prototype.create=function(t){if("object"===e(t)&&"object"===e(t.videoInfo)){var n=t.videoInfo,r=t.params,i=this.plugins[n.provider];return r="internal"===r?n.params:r||{},i&&(t.format=t.format||i.defaultFormat,i.formats.hasOwnProperty(t.format))?i.formats[t.format].apply(i,[n,Object.assign({},r)]):void 0}};var d=new l,f=d;function p(){this.provider="allocine",this.alternatives=[],this.defaultFormat="embed",this.formats={embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video"}}p.prototype.parseUrl=function(e){var t=e.match(/(?:\/video\/player_gen_cmedia=)([A-Za-z0-9]+)/i);return t?t[1]:void 0},p.prototype.parse=function(e){var t={mediaType:this.mediaTypes.VIDEO,id:this.parseUrl(e)};return t.id?t:void 0},p.prototype.createEmbedUrl=function(e){if(e.id&&e.mediaType===this.mediaTypes.VIDEO)return"https://player.allocine.fr/"+e.id+".html"},f.bind(new p);var h=a.combineParams;function m(){this.provider="canalplus",this.defaultFormat="embed",this.formats={embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video"}}m.prototype.parseParameters=function(e){return delete e.vid,e},m.prototype.parse=function(e,t){var n=this,r={mediaType:this.mediaTypes.VIDEO,id:t.vid};if(r.params=n.parseParameters(t),r.id)return r},m.prototype.createEmbedUrl=function(e,t){if(e.id&&e.mediaType===this.mediaTypes.VIDEO){var n="http://player.canalplus.fr/embed/";return t.vid=e.id,n+=h(t),n}},f.bind(new m);var v=a.combineParams;function g(){this.provider="coub",this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video"}}g.prototype.parseUrl=function(e){var t=e.match(/(?:embed|view)\/([a-zA-Z\d]+)/i);return t?t[1]:void 0},g.prototype.parse=function(e,t){var n={mediaType:this.mediaTypes.VIDEO,params:t,id:this.parseUrl(e)};if(n.id)return n},g.prototype.createUrl=function(e,t,n){if(t.id&&t.mediaType===this.mediaTypes.VIDEO){var r=e+t.id;return r+=v(n),r}},g.prototype.createLongUrl=function(e,t){return this.createUrl("https://coub.com/view/",e,t)},g.prototype.createEmbedUrl=function(e,t){return this.createUrl("//coub.com/embed/",e,t)},f.bind(new g);var b=a.combineParams,y=a.getTime;function w(){this.provider="dailymotion",this.alternatives=["dai"],this.defaultFormat="long",this.formats={short:this.createShortUrl,long:this.createLongUrl,embed:this.createEmbedUrl,image:this.createImageUrl},this.mediaTypes={VIDEO:"video"}}w.prototype.parseParameters=function(e){return this.parseTime(e)},w.prototype.parseTime=function(e){return e.start&&(e.start=y(e.start)),e},w.prototype.parseUrl=function(e){var t=e.match(/(?:\/video|ly)\/([A-Za-z0-9]+)/i);return t?t[1]:void 0},w.prototype.parse=function(e,t){var n=this,r={mediaType:this.mediaTypes.VIDEO,params:n.parseParameters(t),id:n.parseUrl(e)};return r.id?r:void 0},w.prototype.createUrl=function(e,t,n){if(t.id&&t.mediaType===this.mediaTypes.VIDEO)return e+t.id+b(n)},w.prototype.createShortUrl=function(e,t){return this.createUrl("https://dai.ly/",e,t)},w.prototype.createLongUrl=function(e,t){return this.createUrl("https://dailymotion.com/video/",e,t)},w.prototype.createEmbedUrl=function(e,t){return this.createUrl("https://www.dailymotion.com/embed/video/",e,t)},w.prototype.createImageUrl=function(e,t){return delete t.start,this.createUrl("https://www.dailymotion.com/thumbnail/video/",e,t)},f.bind(new w);var k=a.combineParams;function x(){this.provider="loom",this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video"}}x.prototype.parseUrl=function(e){var t=e.match(/(?:share|embed)\/([a-zA-Z\d]+)/i);return t?t[1]:void 0},x.prototype.parse=function(e,t){var n={mediaType:this.mediaTypes.VIDEO,params:t,id:this.parseUrl(e)};return n.id?n:void 0},x.prototype.createUrl=function(e,t,n){if(t.id&&t.mediaType===this.mediaTypes.VIDEO){var r=e+t.id;return r+=k(n),r}},x.prototype.createLongUrl=function(e,t){return this.createUrl("https://loom.com/share/",e,t)},x.prototype.createEmbedUrl=function(e,t){return this.createUrl("//loom.com/embed/",e,t)},f.bind(new x);var C=a.combineParams,O=a.getTime;function S(){this.provider="twitch",this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video",STREAM:"stream",CLIP:"clip"}}S.prototype.seperateId=function(e){return{pre:e[0],id:e.substr(1)}},S.prototype.parseChannel=function(e,t){var n=t.channel||t.utm_content||e.channel;return delete t.utm_content,delete t.channel,n},S.prototype.parseUrl=function(e,t,n){var r;return r=e.match(/(clips\.)?twitch\.tv\/(?:(?:videos\/(\d+))|(\w+(?:-[\w\d-]+)?)(?:\/clip\/(\w+))?)/i),r&&r[2]?t.id="v"+r[2]:n.video?(t.id=n.video,delete n.video):n.clip?(t.id=n.clip,t.isClip=!0,delete n.clip):r&&r[1]&&r[3]?(t.id=r[3],t.isClip=!0):r&&r[3]&&r[4]?(t.channel=r[3],t.id=r[4],t.isClip=!0):r&&r[3]&&(t.channel=r[3]),t},S.prototype.parseMediaType=function(e){var t;return e.id?e.isClip?(t=this.mediaTypes.CLIP,delete e.isClip):t=this.mediaTypes.VIDEO:e.channel&&(t=this.mediaTypes.STREAM),t},S.prototype.parseParameters=function(e){return e.t&&(e.start=O(e.t),delete e.t),e},S.prototype.parse=function(e,t){var n=this,r={};return r=n.parseUrl(e,r,t),r.channel=n.parseChannel(r,t),r.mediaType=n.parseMediaType(r),r.params=n.parseParameters(t),r.channel||r.id?r:void 0},S.prototype.createLongUrl=function(e,t){var n="";if(e.mediaType===this.mediaTypes.STREAM&&e.channel)n="https://twitch.tv/"+e.channel;else if(e.mediaType===this.mediaTypes.VIDEO&&e.id){var r=this.seperateId(e.id);n="https://twitch.tv/videos/"+r.id,t.start&&(t.t=t.start+"s",delete t.start)}else{if(e.mediaType!==this.mediaTypes.CLIP||!e.id)return;n=e.channel?"https://www.twitch.tv/"+e.channel+"/clip/"+e.id:"https://clips.twitch.tv/"+e.id}return n+=C(t),n},S.prototype.createEmbedUrl=function(e,t){var n="https://player.twitch.tv/";if(e.mediaType===this.mediaTypes.STREAM&&e.channel)t.channel=e.channel;else if(e.mediaType===this.mediaTypes.VIDEO&&e.id)t.video=e.id,t.start&&(t.t=t.start+"s",delete t.start);else{if(e.mediaType!==this.mediaTypes.CLIP||!e.id)return;n="https://clips.twitch.tv/embed",t.clip=e.id}return n+=C(t),n},f.bind(new S);var T=a.combineParams,E=a.getTime;function _(){this.provider="vimeo",this.alternatives=["vimeopro"],this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video"}}_.prototype.parseUrl=function(e){var t=e.match(/(?:\/showcase\/\d+)?(?:\/(?:channels\/[\w]+|(?:(?:album\/\d+|groups\/[\w]+)\/)?videos?))?\/(\d+)/i);return t?t[1]:void 0},_.prototype.parseHash=function(e){var t=e.match(/\/\d+\/(\w+)$/i);return t?t[1]:void 0},_.prototype.parseParameters=function(e){return e.t&&(e.start=E(e.t),delete e.t),e.h&&(e.hash=e.h,delete e.h),e},_.prototype.parse=function(e,t){var n={mediaType:this.mediaTypes.VIDEO,params:this.parseParameters(t),id:this.parseUrl(e)},r=this.parseHash(e,t);return r&&(n.params.hash=r),n.id?n:void 0},_.prototype.createUrl=function(e,t,n,r){if(t.id&&t.mediaType===this.mediaTypes.VIDEO){var i=e+t.id,o=n.start;return delete n.start,n.hash&&("embed"===r?n.h=n.hash:"long"===r&&(i+="/"+n.hash),delete n.hash),i+=T(n),o&&(i+="#t="+o),i}},_.prototype.createLongUrl=function(e,t){return this.createUrl("https://vimeo.com/",e,t,"long")},_.prototype.createEmbedUrl=function(e,t){return this.createUrl("//player.vimeo.com/video/",e,t,"embed")},f.bind(new _);var M=a.combineParams,I=a.getTime;function j(){this.provider="wistia",this.alternatives=[],this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl,embedjsonp:this.createEmbedJsonpUrl},this.mediaTypes={VIDEO:"video",EMBEDVIDEO:"embedvideo"}}j.prototype.parseUrl=function(e){var t=e.match(/(?:(?:medias|iframe)\/|wvideo=)([\w-]+)/);return t?t[1]:void 0},j.prototype.parseChannel=function(e){var t=e.match(/(?:(?:https?:)?\/\/)?([^.]*)\.wistia\./),n=t?t[1]:void 0;if("fast"!==n&&"content"!==n)return n},j.prototype.parseParameters=function(e,t){return e.wtime&&(e.start=I(e.wtime),delete e.wtime),e.wvideo===t.id&&delete e.wvideo,e},j.prototype.parseMediaType=function(e){return e.id&&e.channel?this.mediaTypes.VIDEO:e.id?(delete e.channel,this.mediaTypes.EMBEDVIDEO):void 0},j.prototype.parse=function(e,t){var n={id:this.parseUrl(e),channel:this.parseChannel(e)};if(n.params=this.parseParameters(t,n),n.mediaType=this.parseMediaType(n),n.id)return n},j.prototype.createUrl=function(e,t,n){return t.start&&(t.wtime=t.start,delete t.start),n+=M(t),n},j.prototype.createLongUrl=function(e,t){if(e.id&&e.mediaType===this.mediaTypes.VIDEO){var n="https://"+e.channel+".wistia.com/medias/"+e.id;return this.createUrl(e,t,n)}},j.prototype.createEmbedUrl=function(e,t){if(e.id&&(e.mediaType===this.mediaTypes.VIDEO||e.mediaType===this.mediaTypes.EMBEDVIDEO)){var n="https://fast.wistia.com/embed/iframe/"+e.id;return this.createUrl(e,t,n)}},j.prototype.createEmbedJsonpUrl=function(e){if(e.id&&(e.mediaType===this.mediaTypes.VIDEO||e.mediaType===this.mediaTypes.EMBEDVIDEO))return"https://fast.wistia.com/embed/medias/"+e.id+".jsonp"},f.bind(new j);var D=a.combineParams;function N(){this.provider="youku",this.defaultFormat="long",this.formats={embed:this.createEmbedUrl,long:this.createLongUrl,flash:this.createFlashUrl,static:this.createStaticUrl},this.mediaTypes={VIDEO:"video"}}N.prototype.parseUrl=function(e){var t=e.match(/(?:(?:embed|sid)\/|v_show\/id_|VideoIDS=)([a-zA-Z0-9]+)/);return t?t[1]:void 0},N.prototype.parseParameters=function(e){return e.VideoIDS&&delete e.VideoIDS,e},N.prototype.parse=function(e,t){var n=this,r={mediaType:this.mediaTypes.VIDEO,id:n.parseUrl(e),params:n.parseParameters(t)};if(r.id)return r},N.prototype.createUrl=function(e,t,n){if(t.id&&t.mediaType===this.mediaTypes.VIDEO){var r=e+t.id;return r+=D(n),r}},N.prototype.createEmbedUrl=function(e,t){return this.createUrl("http://player.youku.com/embed/",e,t)},N.prototype.createLongUrl=function(e,t){return this.createUrl("http://v.youku.com/v_show/id_",e,t)},N.prototype.createStaticUrl=function(e,t){return this.createUrl("http://static.youku.com/v1.0.0638/v/swf/loader.swf?VideoIDS=",e,t)},N.prototype.createFlashUrl=function(e,t){if(e.id&&e.mediaType===this.mediaTypes.VIDEO){var n="http://player.youku.com/player.php/sid/"+e.id+"/v.swf";return n+=D(t),n}},f.bind(new N);var A=a.combineParams,L=a.getTime;function P(){this.provider="youtube",this.alternatives=["youtu","ytimg"],this.defaultFormat="long",this.formats={short:this.createShortUrl,long:this.createLongUrl,embed:this.createEmbedUrl,shortImage:this.createShortImageUrl,longImage:this.createLongImageUrl},this.imageQualities={0:"0",1:"1",2:"2",3:"3",DEFAULT:"default",HQDEFAULT:"hqdefault",SDDEFAULT:"sddefault",MQDEFAULT:"mqdefault",MAXRESDEFAULT:"maxresdefault"},this.defaultImageQuality=this.imageQualities.HQDEFAULT,this.mediaTypes={VIDEO:"video",PLAYLIST:"playlist",SHARE:"share",CHANNEL:"channel"}}P.prototype.parseVideoUrl=function(e){var t=e.match(/(?:(?:v|vi|be|videos|embed)\/(?!videoseries)|(?:v|ci)=)([\w-]{11})/i);return t?t[1]:void 0},P.prototype.parseChannelUrl=function(e){var t=e.match(/\/channel\/([\w-]+)/);return t?{id:t[1],mediaType:this.mediaTypes.CHANNEL}:(t=e.match(/\/(?:c|user)\/([\w-]+)/),t?{name:t[1],mediaType:this.mediaTypes.CHANNEL}:void 0)},P.prototype.parseParameters=function(e,t){return(e.start||e.t)&&(e.start=L(e.start||e.t),delete e.t),e.v===t.id&&delete e.v,e.list===t.id&&delete e.list,e},P.prototype.parseMediaType=function(e){if(e.params.list&&(e.list=e.params.list,delete e.params.list),e.id&&!e.params.ci)e.mediaType=this.mediaTypes.VIDEO;else if(e.list)delete e.id,e.mediaType=this.mediaTypes.PLAYLIST;else{if(!e.params.ci)return;delete e.params.ci,e.mediaType=this.mediaTypes.SHARE}return e},P.prototype.parse=function(e,t){var n=this.parseChannelUrl(e);if(n)return n;var r={params:t,id:this.parseVideoUrl(e)};return r.params=this.parseParameters(t,r),r=this.parseMediaType(r),r},P.prototype.createShortUrl=function(e,t){if(e.id&&e.mediaType===this.mediaTypes.VIDEO){var n="https://youtu.be/"+e.id;return t.start&&(n+="#t="+t.start),n}},P.prototype.createLongUrl=function(e,t){var n="",r=t.start;if(delete t.start,e.mediaType===this.mediaTypes.CHANNEL)if(e.id)n+="https://www.youtube.com/channel/"+e.id;else{if(!e.name)return;n+="https://www.youtube.com/c/"+e.name}else if(e.mediaType===this.mediaTypes.PLAYLIST&&e.list)t.feature="share",n+="https://www.youtube.com/playlist";else if(e.mediaType===this.mediaTypes.VIDEO&&e.id)t.v=e.id,n+="https://www.youtube.com/watch";else{if(e.mediaType!==this.mediaTypes.SHARE||!e.id)return;t.ci=e.id,n+="https://www.youtube.com/shared"}return e.list&&(t.list=e.list),n+=A(t),e.mediaType!==this.mediaTypes.PLAYLIST&&r&&(n+="#t="+r),n},P.prototype.createEmbedUrl=function(e,t){var n="https://www.youtube.com/embed";if(e.mediaType===this.mediaTypes.PLAYLIST&&e.list)t.listType="playlist";else{if(e.mediaType!==this.mediaTypes.VIDEO||!e.id)return;n+="/"+e.id,"1"===t.loop&&(t.playlist=e.id)}return e.list&&(t.list=e.list),n+=A(t),n},P.prototype.createImageUrl=function(e,t,n){if(t.id&&t.mediaType===this.mediaTypes.VIDEO){var r=e+t.id+"/",i=n.imageQuality||this.defaultImageQuality;return r+i+".jpg"}},P.prototype.createShortImageUrl=function(e,t){return this.createImageUrl("https://i.ytimg.com/vi/",e,t)},P.prototype.createLongImageUrl=function(e,t){return this.createImageUrl("https://img.youtube.com/vi/",e,t)},f.bind(new P);var B=a.combineParams,F=a.getTime;function R(){this.provider="soundcloud",this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={TRACK:"track",PLAYLIST:"playlist",APITRACK:"apitrack",APIPLAYLIST:"apiplaylist"}}R.prototype.parseUrl=function(e,t){var n=e.match(/(?:m\.)?soundcloud\.com\/(?:([\w-]+)\/(sets\/)?)([\w-]+)/i);return n?(t.channel=n[1],"playlists"===n[1]||n[2]?t.list=n[3]:t.id=n[3],t):t},R.prototype.parseParameters=function(e){return e.t&&(e.start=F(e.t),delete e.t),e},R.prototype.parseMediaType=function(e){return e.id&&("tracks"===e.channel?(delete e.channel,delete e.params.url,e.mediaType=this.mediaTypes.APITRACK):e.mediaType=this.mediaTypes.TRACK),e.list&&("playlists"===e.channel?(delete e.channel,delete e.params.url,e.mediaType=this.mediaTypes.APIPLAYLIST):e.mediaType=this.mediaTypes.PLAYLIST),e},R.prototype.parse=function(e,t){var n={};if(n=this.parseUrl(e,n),n.params=this.parseParameters(t),n=this.parseMediaType(n),n.id||n.list)return n},R.prototype.createLongUrl=function(e,t){var n="",r=t.start;if(delete t.start,e.mediaType===this.mediaTypes.TRACK&&e.id&&e.channel)n="https://soundcloud.com/"+e.channel+"/"+e.id;else if(e.mediaType===this.mediaTypes.PLAYLIST&&e.list&&e.channel)n="https://soundcloud.com/"+e.channel+"/sets/"+e.list;else if(e.mediaType===this.mediaTypes.APITRACK&&e.id)n="https://api.soundcloud.com/tracks/"+e.id;else{if(e.mediaType!==this.mediaTypes.APIPLAYLIST||!e.list)return;n="https://api.soundcloud.com/playlists/"+e.list}return n+=B(t),r&&(n+="#t="+r),n},R.prototype.createEmbedUrl=function(e,t){var n="https://w.soundcloud.com/player/";if(delete t.start,e.mediaType===this.mediaTypes.APITRACK&&e.id)t.url="https%3A//api.soundcloud.com/tracks/"+e.id;else{if(e.mediaType!==this.mediaTypes.APIPLAYLIST||!e.list)return;t.url="https%3A//api.soundcloud.com/playlists/"+e.list}return n+=B(t),n},f.bind(new R);var q=a.combineParams;function H(){this.provider="teachertube",this.alternatives=[],this.defaultFormat="long",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video",AUDIO:"audio",DOCUMENT:"document",CHANNEL:"channel",COLLECTION:"collection",GROUP:"group"}}H.prototype.parse=function(e,t){var n={};n.list=this.parsePlaylist(t),n.params=t;var r=e.match(/\/(audio|video|document|user\/channel|collection|group)\/(?:[\w-]+-)?(\w+)/);if(r)return n.mediaType=this.parseMediaType(r[1]),n.id=r[2],n},H.prototype.parsePlaylist=function(e){if(e["playlist-id"]){var t=e["playlist-id"];return delete e["playlist-id"],t}},H.prototype.parseMediaType=function(e){switch(e){case"audio":return this.mediaTypes.AUDIO;case"video":return this.mediaTypes.VIDEO;case"document":return this.mediaTypes.DOCUMENT;case"user/channel":return this.mediaTypes.CHANNEL;case"collection":return this.mediaTypes.COLLECTION;case"group":return this.mediaTypes.GROUP}},H.prototype.createLongUrl=function(e,t){if(e.id){var n="https://www.teachertube.com/";return e.list&&(t["playlist-id"]=e.list),e.mediaType===this.mediaTypes.CHANNEL?n+="user/channel/":n+=e.mediaType+"/",n+=e.id,n+=q(t),n}},H.prototype.createEmbedUrl=function(e,t){if(e.id){var n="https://www.teachertube.com/embed/";if(e.mediaType===this.mediaTypes.VIDEO||e.mediaType===this.mediaTypes.AUDIO)return n+=e.mediaType+"/"+e.id,n+=q(t),n}},f.bind(new H);var U=a.combineParams;function V(){this.provider="tiktok",this.defaultFormat="long",this.formats={long:this.createLongUrl},this.mediaTypes={VIDEO:"video"}}V.prototype.parse=function(e,t){var n={params:t,mediaType:this.mediaTypes.VIDEO},r=e.match(/@([^/]+)\/video\/(\d{19})/);if(r)return n.channel=r[1],n.id=r[2],n},V.prototype.createLongUrl=function(e,t){var n="";if(e.mediaType===this.mediaTypes.VIDEO&&e.id&&e.channel)return n+="https://www.tiktok.com/@".concat(e.channel,"/video/").concat(e.id),n+=U(t),n},f.bind(new V);var z=a.combineParams;function $(){this.provider="ted",this.formats={long:this.createLongUrl,embed:this.createEmbedUrl},this.mediaTypes={VIDEO:"video",PLAYLIST:"playlist"}}$.prototype.parseUrl=function(e,t){var n=e.match(/\/(talks|playlists\/(\d+))\/([\w-]+)/i),r=n?n[1]:void 0;return r?(t.channel=r.split("/")[0],t.id=n[3],"playlists"===t.channel&&(t.list=n[2]),t):t},$.prototype.parseMediaType=function(e){return e.id&&"playlists"===e.channel&&(delete e.channel,e.mediaType=this.mediaTypes.PLAYLIST),e.id&&"talks"===e.channel&&(delete e.channel,e.mediaType=this.mediaTypes.VIDEO),e},$.prototype.parse=function(e,t){var n={params:t};if(n=this.parseUrl(e,n),n=this.parseMediaType(n),n.id)return n},$.prototype.createLongUrl=function(e,t){var n="";if(e.mediaType===this.mediaTypes.VIDEO&&e.id)n+="https://ted.com/talks/"+e.id;else{if(e.mediaType!==this.mediaTypes.PLAYLIST||!e.id)return;n+="https://ted.com/playlists/"+e.list+"/"+e.id}return n+=z(t),n},$.prototype.createEmbedUrl=function(e,t){var n="https://embed.ted.com/";if(e.mediaType===this.mediaTypes.PLAYLIST&&e.id)n+="playlists/"+e.list+"/"+e.id;else{if(e.mediaType!==this.mediaTypes.VIDEO||!e.id)return;n+="talks/"+e.id}return n+=z(t),n},f.bind(new $);var W=a.combineParams;function G(){this.provider="facebook",this.alternatives=[],this.defaultFormat="long",this.formats={long:this.createLongUrl,watch:this.createWatchUrl},this.mediaTypes={VIDEO:"video"}}G.prototype.parse=function(e,t){var n={params:t,mediaType:this.mediaTypes.VIDEO},r=e.match(/(?:\/(\d+))?\/videos(?:\/.*?)?\/(\d+)/i);if(r&&(r[1]&&(n.pageId=r[1]),n.id=r[2]),t.v&&!n.id&&(n.id=t.v,delete t.v,n.params=t),n.id)return n},G.prototype.createWatchUrl=function(e,t){var n="https://facebook.com/watch/";if(e.mediaType===this.mediaTypes.VIDEO&&e.id)return t={v:e.id},n+=W(t),n},G.prototype.createLongUrl=function(e,t){var n="https://facebook.com/";if(e.pageId&&(n+=e.pageId,e.mediaType===this.mediaTypes.VIDEO&&e.id))return n+="/videos/"+e.id,n+=W(t),n},f.bind(new G);var K=f;return K}))},f5bc:function(e,t,n){"use strict";n("b6c1")},f726:function(e,t,n){},f899:function(e,t,n){"use strict";n("4fe8")},f95e:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("5313"),i=(n("0ac0"),function(e,t){this.match=e,this.handler="string"==typeof t?o(t):t});function o(e){return function(t,n,r,i){var o=e;if(n[1]){var a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;var s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return t.tr.insertText(o,r,i)}}var a=500;function s(e){var t=e.rules,n=new r["Plugin"]({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,r,i,o){return c(e,r,i,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var r=e.state.selection,i=r.$cursor;i&&c(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function c(e,t,n,r,i,o){if(e.composing)return!1;var s=e.state,c=s.doc.resolve(t);if(c.parent.type.spec.code)return!1;for(var l=c.parent.textBetween(Math.max(0,c.parentOffset-a),c.parentOffset,null,"")+r,u=0;u<i.length;u++){var d=i[u].match.exec(l),f=d&&i[u].handler(s,d,t-(d[0].length-r.length),n);if(f)return e.dispatch(f.setMeta(o,{transform:f,from:t,to:n,text:r})),!0}return!1}new i(/--$/,"—"),new i(/\.\.\.$/,"…"),new i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new i(/"$/,"”"),new i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new i(/'$/,"’")},fc53:function(e,t,n){"use strict";n("529b")},fca2:function(e,t,n){"use strict";n("557f")},fd86:function(e,t,n){},fe84:function(e,t,n){}}]);