23 lines
860 KiB
JavaScript
23 lines
860 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-089036cc"],{"0010":function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return T})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return C}));var a=n("0ac0"),l=n("304a"),o=n("5313");function r(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function i(e,t,n){var l=e.selection,r=l.$cursor;if(!r||(n?!n.endOfTextblock("backward",e):r.parentOffset>0))return!1;var i=s(r);if(!i){var u=r.blockRange(),d=u&&Object(a["k"])(u);return null!=d&&(t&&t(e.tr.lift(u,d).scrollIntoView()),!0)}var p=i.nodeBefore;if(!p.type.spec.isolating&&x(e,i,t))return!0;if(0==r.parent.content.size&&(c(p,"end")||o["c"].isSelectable(p))){if(t){var h=e.tr.deleteRange(r.before(),r.after());h.setSelection(c(p,"end")?o["f"].findFrom(h.doc.resolve(h.mapping.map(i.pos,-1)),-1):o["c"].create(h.doc,i.pos-p.nodeSize)),t(h.scrollIntoView())}return!0}return!(!p.isAtom||i.depth!=r.depth-1)&&(t&&t(e.tr.delete(i.pos-p.nodeSize,i.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 u(e,t,n){var a=e.selection,l=a.$head,r=a.empty,i=l;if(!r)return!1;if(l.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):l.parentOffset>0)return!1;i=s(l)}var c=i&&i.nodeBefore;return!(!c||!o["c"].isSelectable(c))&&(t&&t(e.tr.setSelection(o["c"].create(e.doc,i.pos-c.nodeSize)).scrollIntoView()),!0)}function s(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,l=a.$cursor;if(!l||(n?!n.endOfTextblock("forward",e):l.parentOffset<l.parent.content.size))return!1;var r=h(l);if(!r)return!1;var i=r.nodeAfter;if(x(e,r,t))return!0;if(0==l.parent.content.size&&(c(i,"start")||o["c"].isSelectable(i))){if(t){var u=e.tr.deleteRange(l.before(),l.after());u.setSelection(c(i,"start")?o["f"].findFrom(u.doc.resolve(u.mapping.map(r.pos)),1):o["c"].create(u.doc,u.mapping.map(r.pos))),t(u.scrollIntoView())}return!0}return!(!i.isAtom||r.depth!=l.depth-1)&&(t&&t(e.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0)}function p(e,t,n){var a=e.selection,l=a.$head,r=a.empty,i=l;if(!r)return!1;if(l.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):l.parentOffset<l.parent.content.size)return!1;i=h(l)}var c=i&&i.nodeAfter;return!(!c||!o["c"].isSelectable(c))&&(t&&t(e.tr.setSelection(o["c"].create(e.doc,i.pos)).scrollIntoView()),!0)}function h(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 f(e,t){var n=e.selection,a=n.$head,l=n.$anchor;return!(!a.parent.type.spec.code||!a.sameParent(l))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function m(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t),a=n.type;if(a.isTextblock&&!a.hasRequiredAttrs())return a}return null}function v(e,t){var n=e.selection,a=n.$head,l=n.$anchor;if(!a.parent.type.spec.code||!a.sameParent(l))return!1;var r=a.node(-1),i=a.indexAfter(-1),c=m(r.contentMatchAt(i));if(!r.canReplaceWith(i,i,c))return!1;if(t){var u=a.after(),s=e.tr.replaceWith(u,u,c.createAndFill());s.setSelection(o["f"].near(s.doc.resolve(u),1)),t(s.scrollIntoView())}return!0}function b(e,t){var n=e.selection,a=n.$from,l=n.$to;if(n instanceof o["a"]||a.parent.inlineContent||l.parent.inlineContent)return!1;var r=m(l.parent.contentMatchAt(l.indexAfter()));if(!r||!r.isTextblock)return!1;if(t){var i=(!a.parentOffset&&l.index()<l.parent.childCount?a:l).pos,c=e.tr.insert(i,r.createAndFill());c.setSelection(o["h"].create(c.doc,i+1)),t(c.scrollIntoView())}return!0}function g(e,t){var n=e.selection,l=n.$cursor;if(!l||l.parent.content.size)return!1;if(l.depth>1&&l.after()!=l.end(-1)){var o=l.before();if(Object(a["g"])(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}var r=l.blockRange(),i=r&&Object(a["k"])(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}function y(e,t){var n=e.selection,l=n.$from,r=n.$to;if(e.selection instanceof o["c"]&&e.selection.node.isBlock)return!(!l.parentOffset||!Object(a["g"])(e.doc,l.pos))&&(t&&t(e.tr.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(t){var i=r.parentOffset==r.parent.content.size,c=e.tr;(e.selection instanceof o["h"]||e.selection instanceof o["a"])&&c.deleteSelection();var u=0==l.depth?null:m(l.node(-1).contentMatchAt(l.indexAfter(-1))),s=i&&u?[{type:u}]:null,d=Object(a["g"])(c.doc,c.mapping.map(l.pos),1,s);if(s||d||!Object(a["g"])(c.doc,c.mapping.map(l.pos),1,u&&[{type:u}])||(s=[{type:u}],d=!0),d&&(c.split(c.mapping.map(l.pos),1,s),!i&&!l.parentOffset&&l.parent.type!=u)){var p=c.mapping.map(l.before()),h=c.doc.resolve(p);l.node(-1).canReplaceWith(h.index(),h.index()+1,u)&&c.setNodeMarkup(c.mapping.map(l.before()),u)}t(c.scrollIntoView())}return!0}function w(e,t){return t&&t(e.tr.setSelection(new o["a"](e.doc))),!0}function k(e,t,n){var l=t.nodeBefore,o=t.nodeAfter,r=t.index();return!!(l&&o&&l.type.compatibleContent(o.type))&&(!l.content.size&&t.parent.canReplace(r-1,r)?(n&&n(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(r,r+1)||!o.isTextblock&&!Object(a["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,l.type,l.contentMatchAt(l.childCount)).join(t.pos).scrollIntoView()),!0))}function x(e,t,n){var r,i,u=t.nodeBefore,s=t.nodeAfter;if(u.type.spec.isolating||s.type.spec.isolating)return!1;if(k(e,t,n))return!0;var d=t.parent.canReplace(t.index(),t.index()+1);if(d&&(r=(i=u.contentMatchAt(u.childCount)).findWrapping(s.type))&&i.matchType(r[0]||s.type).validEnd){if(n){for(var p=t.pos+s.nodeSize,h=l["c"].empty,f=r.length-1;f>=0;f--)h=l["c"].from(r[f].create(null,h));h=l["c"].from(u.copy(h));var m=e.tr.step(new a["b"](t.pos-1,p,t.pos,p,new l["j"](h,1,0),r.length,!0)),v=p+2*r.length;Object(a["f"])(m.doc,v)&&m.join(v),n(m.scrollIntoView())}return!0}var b=o["f"].findFrom(t,1),g=b&&b.$from.blockRange(b.$to),y=g&&Object(a["k"])(g);if(null!=y&&y>=t.depth)return n&&n(e.tr.lift(g,y).scrollIntoView()),!0;if(d&&c(s,"start",!0)&&c(u,"end")){for(var w=u,x=[];;){if(x.push(w),w.isTextblock)break;w=w.lastChild}for(var C=s,T=1;!C.isTextblock;C=C.firstChild)T++;if(w.canReplace(w.childCount,w.childCount,C.content)){if(n){for(var M=l["c"].empty,O=x.length-1;O>=0;O--)M=l["c"].from(x[O].copy(M));var S=e.tr.step(new a["b"](t.pos-x.length,t.pos+s.nodeSize,t.pos+T,t.pos+s.nodeSize-T,new l["j"](M,x.length,0),0,!0));n(S.scrollIntoView())}return!0}}return!1}function C(e,t){return function(n,l){var o=n.selection,r=o.$from,i=o.$to,c=r.blockRange(i),u=c&&Object(a["i"])(c,e,t);return!!u&&(l&&l(n.tr.wrap(c,u).scrollIntoView()),!0)}}function T(e,t){return function(n,a){var l=n.selection,o=l.from,r=l.to,i=!1;return n.doc.nodesBetween(o,r,(function(a,l){if(i)return!1;if(a.isTextblock&&!a.hasMarkup(e,t))if(a.type==e)i=!0;else{var o=n.doc.resolve(l),r=o.index();i=o.parent.canReplaceWith(r,r+1,e)}})),!!i&&(a&&a(n.tr.setBlockType(o,r,e,t).scrollIntoView()),!0)}}function M(e,t,n){for(var a=function(a){var l=t[a],o=l.$from,r=l.$to,i=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,r.pos,(function(e){if(i)return!1;i=e.inlineContent&&e.type.allowsMarkType(n)})),i)return{v:!0}},l=0;l<t.length;l++){var o=a(l);if(o)return o.v}return!1}function O(e,t){return function(n,a){var l=n.selection,o=l.empty,r=l.$cursor,i=l.ranges;if(o&&!r||!M(n.doc,i,e))return!1;if(a)if(r)e.isInSet(n.storedMarks||r.marks())?a(n.tr.removeStoredMark(e)):a(n.tr.addStoredMark(e.create(t)));else{for(var c=!1,u=n.tr,s=0;!c&&s<i.length;s++){var d=i[s],p=d.$from,h=d.$to;c=n.doc.rangeHasMark(p.pos,h.pos,e)}for(var f=0;f<i.length;f++){var m=i[f],v=m.$from,b=m.$to;if(c)u.removeMark(v.pos,b.pos,e);else{var g=v.pos,y=b.pos,w=v.nodeAfter,k=b.nodeBefore,x=w&&w.isText?/^\s*/.exec(w.text)[0].length:0,C=k&&k.isText?/\s*$/.exec(k.text)[0].length:0;g+x<y&&(g+=x,y-=C),u.addMark(g,y,e.create(t))}}a(u.scrollIntoView())}return!0}}function S(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return function(t,n,a){for(var l=0;l<e.length;l++)if(e[l](t,n,a))return!0;return!1}}var E=S(r,i,u),N=S(r,d,p),D={Enter:S(f,b,g,y),"Mod-Enter":v,Backspace:E,"Mod-Backspace":E,"Shift-Backspace":E,Delete:N,"Mod-Delete":N,"Mod-a":w},A={"Ctrl-h":D["Backspace"],"Alt-Backspace":D["Mod-Backspace"],"Ctrl-d":D["Delete"],"Ctrl-Alt-Backspace":D["Mod-Delete"],"Alt-Delete":D["Mod-Delete"],"Alt-d":D["Mod-Delete"]};for(var L in D)A[L]=D[L];var I="undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform(),R=I?A:D},"03fb":function(e,t,n){},"0792":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));n("d9e2");function a(e){return!e||("{}"===JSON.stringify(e)||"[]"===JSON.stringify(e))}const l=()=>(e,t,n)=>{if(t){const e=/^1[3|4|5|7|8][0-9]\d{8}$/;if(!e.test(t))return n(new Error("请输入正确的手机号"));n()}else;},o=(e,t="phone")=>{if(a(e))return[];const{require:n,validator:o}=e&&{...e},r=[];n&&r.push({required:!0,message:"请输入手机号",trigger:"blur"}),o&&r.push({min:11,message:"手机号格式不正确",trigger:"blur"},{trigger:"blur",validator:l()});const i={};return i[t]=r,{...i}},r=()=>(e,t,n)=>{t&&(/(^\d{15}$)|(^\d{17}(\d|X|x)$)/.test(t)||n(new Error("输入的身份证长度或格式错误")));var a={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"};a[parseInt(null===t||void 0===t?void 0:t.substr(0,2))]||n(new Error("身份证地区非法"));var l=(t.substr(6,4)+"-"+Number(t.substr(10,2))+"-"+Number(t.substr(12,2))).replace(/-/g,"/"),o=new Date(l);l!==o.getFullYear()+"/"+(o.getMonth()+1)+"/"+o.getDate()&&n(new Error("身份证上的出生日期非法"));for(var r=0,i=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],c="10X98765432",u=0;u<t.length-1;u++)r+=t[u]*i[u];var s=c[r%11];t[t.length-1]!==s&&n(new Error("输入的身份证号非法")),n()},i=(e,t="idEntityCard")=>{if(a(e))return[];const{require:n,validator:l}=e&&{...e},o=[];n&&o.push({required:!0,message:"请输入身份证号",trigger:"blur"}),l&&o.push({trigger:"blur",validator:r()});const i={};return i[t]=o,{...i}},c=(e,t="addredd")=>{if(a(e))return[];const{require:n}=e&&{...e},l=[];n&&l.push({required:!0,message:"请选择地址",trigger:"change"});const o={};return o[t]=l,{...o}},u=()=>(e,t,n)=>{const a=/^([a-zA-Z0-9]+[-_\.]?)+@[a-zA-Z0-9]+\.[a-z]+$/;if(t){if(!a.test(t))return n(new Error("请输入正确的邮箱地址"));n()}else;},s=(e,t="email")=>{if(a(e))return[];const{require:n,validator:l}=e&&{...e},o=[];n&&o.push({required:!0,message:"请输入邮箱",trigger:"blur"}),l&&o.push({trigger:"change",validator:u()});const r={};return r[t]=o,{...r}}},"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 s})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return N})),n.d(t,"h",(function(){return R})),n.d(t,"i",(function(){return T})),n.d(t,"j",(function(){return L})),n.d(t,"k",(function(){return C}));var a=n("304a"),l=65535,o=Math.pow(2,16);function r(e,t){return e+t*o}function i(e){return e&l}function c(e){return(e-(e&l))/o}var u=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},s=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};s.prototype.recover=function(e){var t=0,n=i(e);if(!this.inverted)for(var a=0;a<n;a++)t+=this.ranges[3*a+2]-this.ranges[3*a+1];return this.ranges[3*n]+t+c(e)},s.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},s.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},s.prototype._map=function(e,t,n){for(var a=0,l=this.inverted?2:1,o=this.inverted?1:2,i=0;i<this.ranges.length;i+=3){var c=this.ranges[i]-(this.inverted?a:0);if(c>e)break;var s=this.ranges[i+l],d=this.ranges[i+o],p=c+s;if(e<=p){var h=s?e==c?-1:e==p?1:t:t,f=c+a+(h<0?0:d);if(n)return f;var m=e==(t<0?c:p)?null:r(i/3,e-c);return new u(f,t<0?e!=c:e!=p,m)}a+=d-s}return n?e+a:new u(e+a)},s.prototype.touches=function(e,t){for(var n=0,a=i(t),l=this.inverted?2:1,o=this.inverted?1:2,r=0;r<this.ranges.length;r+=3){var c=this.ranges[r]-(this.inverted?n:0);if(c>e)break;var u=this.ranges[r+l],s=c+u;if(e<=s&&r==3*a)return!0;n+=this.ranges[r+o]-u}return!1},s.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,a=0,l=0;a<this.ranges.length;a+=3){var o=this.ranges[a],r=o-(this.inverted?l:0),i=o+(this.inverted?0:l),c=this.ranges[a+t],u=this.ranges[a+n];e(r,r+c,i,i+u),l+=u-c}},s.prototype.invert=function(){return new s(this.ranges,!this.inverted)},s.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},s.offset=function(e){return 0==e?s.empty:new s(e<0?[0,-e,0]:[0,0,e])},s.empty=new s([]);var d=function(e,t,n,a){this.maps=e||[],this.from=n||0,this.to=null==a?this.maps.length:a,this.mirror=t};function p(e){var t=Error.call(this,e);return t.__proto__=p.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 a=e.getMirror(t);this.appendMap(e.maps[t],null!=a&&a<t?n+a: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 a=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=a&&a>t?n-a-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 a=!1,l=this.from;l<this.to;l++){var o=this.maps[l],r=o.mapResult(e,t);if(null!=r.recover){var i=this.getMirror(l);if(null!=i&&i>l&&i<this.to){l=i,e=this.maps[i].recover(r.recover);continue}}r.deleted&&(a=!0),e=r.pos}return n?e:new u(e,a)},p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p.prototype.name="TransformError";var h=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new d},f={before:{configurable:!0},docChanged:{configurable:!0}};function m(){throw new Error("Override me")}f.before.get=function(){return this.docs.length?this.docs[0]:this.doc},h.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new p(t.failed);return this},h.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},f.docChanged.get=function(){return this.steps.length>0},h.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(h.prototype,f);var v=Object.create(null),b=function(){};b.prototype.apply=function(e){return m()},b.prototype.getMap=function(){return s.empty},b.prototype.invert=function(e){return m()},b.prototype.map=function(e){return m()},b.prototype.merge=function(e){return null},b.prototype.toJSON=function(){return m()},b.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)},b.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 g=function(e,t){this.doc=e,this.failed=t};g.ok=function(e){return new g(e,null)},g.fail=function(e){return new g(null,e)},g.fromReplace=function(e,t,n,l){try{return g.ok(e.replace(t,n,l))}catch(o){if(o instanceof a["h"])return g.fail(o.message);throw o}};var y=function(e){function t(t,n,a,l){e.call(this),this.from=t,this.to=n,this.slice=a,this.structure=!!l}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)?g.fail("Structure replace would overwrite content"):g.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new s([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),a=e.mapResult(this.to,-1);return n.deleted&&a.deleted?null:new t(n.pos,Math.max(n.pos,a.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?a["j"].empty:new a["j"](e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var l=this.slice.size+e.slice.size==0?a["j"].empty:new a["j"](this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),l,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,a["j"].fromJSON(e,n.slice),!!n.structure)},t}(b);b.jsonID("replace",y);var w=function(e){function t(t,n,a,l,o,r,i){e.call(this),this.from=t,this.to=n,this.gapFrom=a,this.gapTo=l,this.slice=o,this.insert=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){if(this.structure&&(k(e,this.from,this.gapFrom)||k(e,this.gapTo,this.to)))return g.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return g.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?g.fromReplace(e,this.from,this.to,n):g.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new s([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),a=e.mapResult(this.to,-1),l=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deleted&&a.deleted||l<n.pos||o>a.pos?null:new t(n.pos,a.pos,l,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,a["j"].fromJSON(e,n.slice),n.insert,!!n.structure)},t}(b);function k(e,t,n){var a=e.resolve(t),l=n-t,o=a.depth;while(l>0&&o>0&&a.indexAfter(o)==a.node(o).childCount)o--,l--;if(l>0){var r=a.node(o).maybeChild(a.indexAfter(o));while(l>0){if(!r||r.isLeaf)return!0;r=r.firstChild,l--}}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),a=e.depth;;--a){var l=e.$from.node(a),o=e.$from.index(a),r=e.$to.indexAfter(a);if(a<e.depth&&l.canReplace(o,r,n))return a;if(0==a||l.type.spec.isolating||!x(l,o,r))break}}function T(e,t,n,a){void 0===a&&(a=e);var l=O(e,t),o=l&&S(a,t);return o?l.map(M).concat({type:t,attrs:n}).concat(o.map(M)):null}function M(e){return{type:e,attrs:null}}function O(e,t){var n=e.parent,a=e.startIndex,l=e.endIndex,o=n.contentMatchAt(a).findWrapping(t);if(!o)return null;var r=o.length?o[0]:t;return n.canReplaceWith(a,l,r)?o:null}function S(e,t){var n=e.parent,a=e.startIndex,l=e.endIndex,o=n.child(a),r=t.contentMatch.findWrapping(o.type);if(!r)return null;for(var i=r.length?r[r.length-1]:t,c=i.contentMatch,u=a;c&&u<l;u++)c=c.matchType(n.child(u).type);return c&&c.validEnd?r:null}function E(e,t,n){var a=e.resolve(t),l=a.index();return a.parent.canReplaceWith(l,l+1,n)}function N(e,t,n,a){void 0===n&&(n=1);var l=e.resolve(t),o=l.depth-n,r=a&&a[a.length-1]||l.parent;if(o<0||l.parent.type.spec.isolating||!l.parent.canReplace(l.index(),l.parent.childCount)||!r.type.validContent(l.parent.content.cutByIndex(l.index(),l.parent.childCount)))return!1;for(var i=l.depth-1,c=n-2;i>o;i--,c--){var u=l.node(i),s=l.index(i);if(u.type.spec.isolating)return!1;var d=u.content.cutByIndex(s,u.childCount),p=a&&a[c]||u;if(p!=u&&(d=d.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(s+1,u.childCount)||!p.type.validContent(d))return!1}var h=l.indexAfter(o),f=a&&a[0];return l.node(o).canReplaceWith(h,h,f?f.type:l.node(o+1).type)}function D(e,t){var n=e.resolve(t),a=n.index();return A(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(a,a+1)}function A(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function L(e,t,n){void 0===n&&(n=-1);for(var a=e.resolve(t),l=a.depth;;l--){var o=void 0,r=void 0,i=a.index(l);if(l==a.depth?(o=a.nodeBefore,r=a.nodeAfter):n>0?(o=a.node(l+1),i++,r=a.node(l).maybeChild(i)):(o=a.node(l).maybeChild(i-1),r=a.node(l+1)),o&&!o.isTextblock&&A(o,r)&&a.node(l).canReplace(i,i+1))return t;if(0==l)break;t=n<0?a.before(l):a.after(l)}}function I(e,t,n){var a=e.resolve(t);if(a.parent.canReplaceWith(a.index(),a.index(),n))return t;if(0==a.parentOffset)for(var l=a.depth-1;l>=0;l--){var o=a.index(l);if(a.node(l).canReplaceWith(o,o,n))return a.before(l+1);if(o>0)return null}if(a.parentOffset==a.parent.content.size)for(var r=a.depth-1;r>=0;r--){var i=a.indexAfter(r);if(a.node(r).canReplaceWith(i,i,n))return a.after(r+1);if(i<a.node(r).childCount)return null}}function R(e,t,n){var a=e.resolve(t);if(!n.content.size)return t;for(var l=n.content,o=0;o<n.openStart;o++)l=l.firstChild.content;for(var r=1;r<=(0==n.openStart&&n.size?2:1);r++)for(var i=a.depth;i>=0;i--){var c=i==a.depth?0:a.pos<=(a.start(i+1)+a.end(i+1))/2?-1:1,u=a.index(i)+(c>0?1:0),s=a.node(i),d=!1;if(1==r)d=s.canReplace(u,u,l);else{var p=s.contentMatchAt(u).findWrapping(l.firstChild.type);d=p&&s.canReplaceWith(u,u,p[0])}if(d)return 0==c?a.pos:c<0?a.before(i+1):a.after(i+1)}return null}function j(e,t,n){for(var l=[],o=0;o<e.childCount;o++){var r=e.child(o);r.content.size&&(r=r.copy(j(r.content,t,r))),r.isInline&&(r=t(r,n,o)),l.push(r)}return a["c"].fromArray(l)}b.jsonID("replaceAround",w),h.prototype.lift=function(e,t){for(var n=e.$from,l=e.$to,o=e.depth,r=n.before(o+1),i=l.after(o+1),c=r,u=i,s=a["c"].empty,d=0,p=o,h=!1;p>t;p--)h||n.index(p)>0?(h=!0,s=a["c"].from(n.node(p).copy(s)),d++):c--;for(var f=a["c"].empty,m=0,v=o,b=!1;v>t;v--)b||l.after(v+1)<l.end(v)?(b=!0,f=a["c"].from(l.node(v).copy(f)),m++):u++;return this.step(new w(c,u,r,i,new a["j"](s.append(f),d,m),s.size-d,!0))},h.prototype.wrap=function(e,t){for(var n=a["c"].empty,l=t.length-1;l>=0;l--){if(n.size){var o=t[l].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=a["c"].from(t[l].type.create(t[l].attrs,n))}var r=e.start,i=e.end;return this.step(new w(r,i,r,i,new a["j"](n,0,0),t.length,!0))},h.prototype.setBlockType=function(e,t,n,l){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var r=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,l)&&E(o.doc,o.mapping.slice(r).map(t),n)){o.clearIncompatible(o.mapping.slice(r).map(t,1),n);var i=o.mapping.slice(r),c=i.map(t,1),u=i.map(t+e.nodeSize,1);return o.step(new w(c,u,c+1,u-1,new a["j"](a["c"].from(n.create(l,null,e.marks)),0,0),1,!0)),!1}})),this},h.prototype.setNodeMarkup=function(e,t,n,l){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var r=t.create(n,null,l||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,r);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 a["j"](a["c"].from(r),0,0),1,!0))},h.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var l=this.doc.resolve(e),o=a["c"].empty,r=a["c"].empty,i=l.depth,c=l.depth-t,u=t-1;i>c;i--,u--){o=a["c"].from(l.node(i).copy(o));var s=n&&n[u];r=a["c"].from(s?s.type.create(s.attrs,r):l.node(i).copy(r))}return this.step(new y(e,e,new a["j"](o.append(r),t,t),!0))},h.prototype.join=function(e,t){void 0===t&&(t=1);var n=new y(e-t,e+t,a["j"].empty,!0);return this.step(n)};var B=function(e){function t(t,n,a){e.call(this),this.from=t,this.to=n,this.mark=a}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),l=e.resolve(this.from),o=l.node(l.sharedDepth(this.to)),r=new a["j"](j(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 g.fromReplace(e,this.from,this.to,r)},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),a=e.mapResult(this.to,-1);return n.deleted&&a.deleted||n.pos>=a.pos?null:new t(n.pos,a.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}(b);b.jsonID("addMark",B);var P=function(e){function t(t,n,a){e.call(this),this.from=t,this.to=n,this.mark=a}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),l=new a["j"](j(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return g.fromReplace(e,this.from,this.to,l)},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),a=e.mapResult(this.to,-1);return n.deleted&&a.deleted||n.pos>=a.pos?null:new t(n.pos,a.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}(b);function V(e,t,n,l){if(void 0===n&&(n=t),void 0===l&&(l=a["j"].empty),t==n&&!l.size)return null;var o=e.resolve(t),r=e.resolve(n);return F(o,r,l)?new y(t,n,l):new H(o,r,l).fit()}function F(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}b.jsonID("removeMark",P),h.prototype.addMark=function(e,t,n){var a=this,l=[],o=[],r=null,i=null;return this.doc.nodesBetween(e,t,(function(a,c,u){if(a.isInline){var s=a.marks;if(!n.isInSet(s)&&u.type.allowsMarkType(n.type)){for(var d=Math.max(c,e),p=Math.min(c+a.nodeSize,t),h=n.addToSet(s),f=0;f<s.length;f++)s[f].isInSet(h)||(r&&r.to==d&&r.mark.eq(s[f])?r.to=p:l.push(r=new P(d,p,s[f])));i&&i.to==d?i.to=p:o.push(i=new B(d,p,n))}}})),l.forEach((function(e){return a.step(e)})),o.forEach((function(e){return a.step(e)})),this},h.prototype.removeMark=function(e,t,n){var l=this;void 0===n&&(n=null);var o=[],r=0;return this.doc.nodesBetween(e,t,(function(l,i){if(l.isInline){r++;var c=null;if(n instanceof a["e"]){var u,s=l.marks;while(u=n.isInSet(s))(c||(c=[])).push(u),s=u.removeFromSet(s)}else n?n.isInSet(l.marks)&&(c=[n]):c=l.marks;if(c&&c.length)for(var d=Math.min(i+l.nodeSize,t),p=0;p<c.length;p++){for(var h=c[p],f=void 0,m=0;m<o.length;m++){var v=o[m];v.step==r-1&&h.eq(o[m].style)&&(f=v)}f?(f.to=d,f.step=r):o.push({style:h,from:Math.max(i,e),to:d,step:r})}}})),o.forEach((function(e){return l.step(new P(e.from,e.to,e.style))})),this},h.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var l=this.doc.nodeAt(e),o=[],r=e+1,i=0;i<l.childCount;i++){var c=l.child(i),u=r+c.nodeSize,s=n.matchType(c.type,c.attrs);if(s){n=s;for(var d=0;d<c.marks.length;d++)t.allowsMarkType(c.marks[d].type)||this.step(new P(r,u,c.marks[d]))}else o.push(new y(r,u,a["j"].empty));r=u}if(!n.validEnd){var p=n.fillBefore(a["c"].empty,!0);this.replace(r,r,new a["j"](p,0,0))}for(var h=o.length-1;h>=0;h--)this.step(o[h]);return this},h.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=a["j"].empty);var l=V(this.doc,e,t,n);return l&&this.step(l),this},h.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new a["j"](a["c"].from(n),0,0))},h.prototype.delete=function(e,t){return this.replace(e,t,a["j"].empty)},h.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var H=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var l=0;l<=e.depth;l++){var o=e.node(l);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(l))})}this.placed=a["c"].empty;for(var r=e.depth;r>0;r--)this.placed=a["c"].from(e.node(r).copy(this.placed))},z={depth:{configurable:!0}};function _(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(_(e.firstChild.content,t-1,n)))}function q(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(q(e.lastChild.content,t-1,n)))}function $(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function U(e,t,n){if(t<=0)return e;var l=e.content;return t>1&&(l=l.replaceChild(0,U(l.firstChild,t-1,1==l.childCount?n-1:0))),t>0&&(l=e.type.contentMatch.fillBefore(l).append(l),n<=0&&(l=l.append(e.type.contentMatch.matchFragment(l).fillBefore(a["c"].empty,!0)))),e.copy(l)}function W(e,t,n,a,l){var o=e.node(t),r=l?e.indexAfter(t):e.index(t);if(r==o.childCount&&!n.compatibleContent(o.type))return null;var i=a.fillBefore(o.content,!0,r);return i&&!J(n,o.content,r)?i:null}function J(e,t,n){for(var a=n;a<t.childCount;a++)if(!e.allowsMarks(t.child(a).marks))return!0;return!1}function K(e,t,n,l,o){if(t<n){var r=e.firstChild;e=e.replaceChild(0,r.copy(K(r.content,t+1,n,l,r)))}if(t>l){var i=o.contentMatchAt(0),c=i.fillBefore(e).append(e);e=c.append(i.matchFragment(c).fillBefore(a["c"].empty,!0))}return e}function G(e,t){for(var n=[],a=Math.min(e.depth,t.depth),l=a;l>=0;l--){var o=e.start(l);if(o<e.pos-(e.depth-l)||t.end(l)>t.pos+(t.depth-l)||e.node(l).type.spec.isolating||t.node(l).type.spec.isolating)break;(o==t.start(l)||l==e.depth&&l==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&l&&t.start(l-1)==o-1)&&n.push(l)}return n}z.depth.get=function(){return this.frontier.length-1},H.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,l=this.$from,o=this.close(t<0?this.$to:l.doc.resolve(t));if(!o)return null;var r=this.placed,i=l.depth,c=o.depth;while(i&&c&&1==r.childCount)r=r.firstChild.content,i--,c--;var u=new a["j"](r,i,c);return t>-1?new w(l.pos,t,this.$to.pos,this.$to.end(),u,n):u.size||l.pos!=this.$to.pos?new y(l.pos,o.pos,u):void 0},H.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--){var n=void 0,l=void 0;t?(l=$(this.unplaced.content,t-1).firstChild,n=l.content):n=this.unplaced.content;for(var o=n.firstChild,r=this.depth;r>=0;r--){var i=this.frontier[r],c=i.type,u=i.match,s=void 0,d=void 0;if(1==e&&(o?u.matchType(o.type)||(d=u.fillBefore(a["c"].from(o),!1)):c.compatibleContent(l.type)))return{sliceDepth:t,frontierDepth:r,parent:l,inject:d};if(2==e&&o&&(s=u.findWrapping(o.type)))return{sliceDepth:t,frontierDepth:r,parent:l,wrap:s};if(l&&u.matchType(l.type))break}}},H.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,l=e.openEnd,o=$(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new a["j"](t,n+1,Math.max(l,o.size+n>=t.size-l?n+1:0)),!0)},H.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,l=e.openEnd,o=$(t,n);if(o.childCount<=1&&n>0){var r=t.size-n<=n+o.size;this.unplaced=new a["j"](_(t,n-1,1),n-1,r?n-1:l)}else this.unplaced=new a["j"](_(t,n,1),n,l)},H.prototype.placeNodes=function(e){var t=e.sliceDepth,n=e.frontierDepth,l=e.parent,o=e.inject,r=e.wrap;while(this.depth>n)this.closeFrontierNode();if(r)for(var i=0;i<r.length;i++)this.openFrontierNode(r[i]);var c=this.unplaced,u=l?l.content:c.content,s=c.openStart-t,d=0,p=[],h=this.frontier[n],f=h.match,m=h.type;if(o){for(var v=0;v<o.childCount;v++)p.push(o.child(v));f=f.matchFragment(o)}var b=u.size+t-(c.content.size-c.openEnd);while(d<u.childCount){var g=u.child(d),y=f.matchType(g.type);if(!y)break;d++,(d>1||0==s||g.content.size)&&(f=y,p.push(U(g.mark(m.allowedMarks(g.marks)),1==d?s:0,d==u.childCount?b:-1)))}var w=d==u.childCount;w||(b=-1),this.placed=q(this.placed,n,a["c"].from(p)),this.frontier[n].match=f,w&&b<0&&l&&l.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var k=0,x=u;k<b;k++){var C=x.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),x=C.content}this.unplaced=w?0==t?a["j"].empty:new a["j"](_(c.content,t-1,1),t-1,b<0?c.openEnd:t-1):new a["j"](_(c.content,t,d),c.openStart,c.openEnd)},H.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,a=n.depth,l=this.$to.after(a);while(a>1&&l==this.$to.end(--a))++l;return l},H.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],a=n.match,l=n.type,o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),r=W(e,t,l,a,o);if(r){for(var i=t-1;i>=0;i--){var c=this.frontier[i],u=c.match,s=c.type,d=W(e,i,s,u,!0);if(!d||d.childCount)continue e}return{depth:t,fit:r,move:o?e.doc.resolve(e.after(t+1)):e}}}},H.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=q(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var a=e.node(n),l=a.type.contentMatch.fillBefore(a.content,!0,e.index(n));this.openFrontierNode(a.type,a.attrs,l)}return e},H.prototype.openFrontierNode=function(e,t,n){var l=this.frontier[this.depth];l.match=l.match.matchType(e),this.placed=q(this.placed,this.depth,a["c"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},H.prototype.closeFrontierNode=function(){var e=this.frontier.pop(),t=e.match.fillBefore(a["c"].empty,!0);t.childCount&&(this.placed=q(this.placed,this.frontier.length,t))},Object.defineProperties(H.prototype,z),h.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var l=this.doc.resolve(e),o=this.doc.resolve(t);if(F(l,o,n))return this.step(new y(e,t,n));var r=G(l,this.doc.resolve(t));0==r[r.length-1]&&r.pop();var i=-(l.depth+1);r.unshift(i);for(var c=l.depth,u=l.pos-1;c>0;c--,u--){var s=l.node(c).type.spec;if(s.defining||s.isolating)break;r.indexOf(c)>-1?i=c:l.before(c)==u&&r.splice(1,0,-c)}for(var d=r.indexOf(i),p=[],h=n.openStart,f=n.content,m=0;;m++){var v=f.firstChild;if(p.push(v),m==n.openStart)break;f=v.content}h>0&&p[h-1].type.spec.defining&&l.node(d).type!=p[h-1].type?h-=1:h>=2&&p[h-1].isTextblock&&p[h-2].type.spec.defining&&l.node(d).type!=p[h-2].type&&(h-=2);for(var b=n.openStart;b>=0;b--){var g=(b+h+1)%(n.openStart+1),w=p[g];if(w)for(var k=0;k<r.length;k++){var x=r[(k+d)%r.length],C=!0;x<0&&(C=!1,x=-x);var T=l.node(x-1),M=l.index(x-1);if(T.canReplaceWith(M,M,w.type,w.marks))return this.replace(l.before(x),C?o.after(x):t,new a["j"](K(n.content,0,n.openStart,g),g,n.openEnd))}}for(var O=this.steps.length,S=r.length-1;S>=0;S--){if(this.replace(e,t,n),this.steps.length>O)break;var E=r[S];E<0||(e=l.before(E),t=o.after(E))}return this},h.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var l=I(this.doc,e,n.type);null!=l&&(e=t=l)}return this.replaceRange(e,t,new a["j"](a["c"].from(n),0,0))},h.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),a=this.doc.resolve(t),l=G(n,a),o=0;o<l.length;o++){var r=l[o],i=o==l.length-1;if(i&&0==r||n.node(r).type.contentMatch.validEnd)return this.delete(n.start(r),a.end(r));if(r>0&&(i||n.node(r-1).canReplace(n.index(r-1),a.indexAfter(r-1))))return this.delete(n.before(r),a.after(r))}for(var c=1;c<=n.depth&&c<=a.depth;c++)if(e-n.start(c)==n.depth-c&&t>n.end(c)&&a.end(c)-t!=a.depth-c)return this.delete(n.before(c),t);return this.delete(e,t)}},"0cb2":function(e,t,n){var a=n("e330"),l=n("7b0b"),o=Math.floor,r=a("".charAt),i=a("".replace),c=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,p){var h=n+e.length,f=a.length,m=s;return void 0!==d&&(d=l(d),m=u),i(p,m,(function(l,i){var u;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,h);case"<":u=d[c(i,1,-1)];break;default:var s=+i;if(0===s)return l;if(s>f){var p=o(s/10);return 0===p?l:p<=f?void 0===a[p-1]?r(i,1):a[p-1]+r(i,1):l}u=a[s-1]}return void 0===u?"":u}))}},"11d8":function(e,t,n){},"1a11":function(e,t,n){e.exports=n.p+"static/img/icon_043.d3e1cb75.png"},"2a03":function(e,t,n){"use strict";n("9541")},"2c73":function(e,t,n){"use strict";n("a521")},"2fc6":function(e,t,n){"use strict";n("7d03")},"304a":function(e,t,n){"use strict";function a(e){this.content=e}n.d(t,"a",(function(){return pe})),n.d(t,"b",(function(){return Ne})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return ue})),n.d(t,"f",(function(){return B})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return se})),n.d(t,"j",(function(){return f})),a.prototype={constructor:a,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 l=n&&n!=e?this.remove(n):this,o=l.find(e),r=l.content.slice();return-1==o?r.push(n||e,t):(r[o+1]=t,n&&(r[o]=n)),new a(r)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new a(n)},addToStart:function(e,t){return new a([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new a(n)},addBefore:function(e,t,n){var l=this.remove(t),o=l.content.slice(),r=l.find(e);return o.splice(-1==r?o.length:r,0,t,n),new a(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=a.from(e),e.size?new a(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=a.from(e),e.size?new a(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=a.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}},a.from=function(e){if(e instanceof a)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new a(t)};var l=a;function o(e,t,n){for(var a=0;;a++){if(a==e.childCount||a==t.childCount)return e.childCount==t.childCount?null:n;var l=e.child(a),r=t.child(a);if(l!=r){if(!l.sameMarkup(r))return n;if(l.isText&&l.text!=r.text){for(var i=0;l.text[i]==r.text[i];i++)n++;return n}if(l.content.size||r.content.size){var c=o(l.content,r.content,n+1);if(null!=c)return c}n+=l.nodeSize}else n+=l.nodeSize}}function r(e,t,n,a){for(var l=e.childCount,o=t.childCount;;){if(0==l||0==o)return l==o?null:{a:n,b:a};var i=e.child(--l),c=t.child(--o),u=i.nodeSize;if(i!=c){if(!i.sameMarkup(c))return{a:n,b:a};if(i.isText&&i.text!=c.text){var s=0,d=Math.min(i.text.length,c.text.length);while(s<d&&i.text[i.text.length-s-1]==c.text[c.text.length-s-1])s++,n--,a--;return{a:n,b:a}}if(i.content.size||c.content.size){var p=r(i.content,c.content,n-1,a-1);if(p)return p}n-=u,a-=u}else n-=u,a-=u}}var i=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},c={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};i.prototype.nodesBetween=function(e,t,n,a,l){void 0===a&&(a=0);for(var o=0,r=0;r<t;o++){var i=this.content[o],c=r+i.nodeSize;if(c>e&&!1!==n(i,a+r,l,o)&&i.content.size){var u=r+1;i.nodesBetween(Math.max(0,e-u),Math.min(i.content.size,t-u),n,a+u)}r=c}},i.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},i.prototype.textBetween=function(e,t,n,a){var l="",o=!0;return this.nodesBetween(e,t,(function(r,i){r.isText?(l+=r.text.slice(Math.max(e,i)-i,t-i),o=!n):r.isLeaf&&a?(l+=a,o=!n):!o&&r.isBlock&&(l+=n,o=!0)}),0),l},i.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,a=this.content.slice(),l=0;for(t.isText&&t.sameMarkup(n)&&(a[a.length-1]=t.withText(t.text+n.text),l=1);l<e.content.length;l++)a.push(e.content[l]);return new i(a,this.size+e.size)},i.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],a=0;if(t>e)for(var l=0,o=0;o<t;l++){var r=this.content[l],c=o+r.nodeSize;c>e&&((o<e||c>t)&&(r=r.isText?r.cut(Math.max(0,e-o),Math.min(r.text.length,t-o)):r.cut(Math.max(0,e-o-1),Math.min(r.content.size,t-o-1))),n.push(r),a+=r.nodeSize),o=c}return new i(n,a)},i.prototype.cutByIndex=function(e,t){return e==t?i.empty:0==e&&t==this.content.length?this:new i(this.content.slice(e,t))},i.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var a=this.content.slice(),l=this.size+t.nodeSize-n.nodeSize;return a[e]=t,new i(a,l)},i.prototype.addToStart=function(e){return new i([e].concat(this.content),this.size+e.nodeSize)},i.prototype.addToEnd=function(e){return new i(this.content.concat(e),this.size+e.nodeSize)},i.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},c.firstChild.get=function(){return this.content.length?this.content[0]:null},c.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},c.childCount.get=function(){return this.content.length},i.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},i.prototype.maybeChild=function(e){return this.content[e]},i.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var a=this.content[t];e(a,n,t),n+=a.nodeSize}},i.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),o(this,e,t)},i.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),r(this,e,t,n)},i.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return s(0,e);if(e==this.size)return s(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,a=0;;n++){var l=this.child(n),o=a+l.nodeSize;if(o>=e)return o==e||t>0?s(n+1,o):s(n,a);a=o}},i.prototype.toString=function(){return"<"+this.toStringInner()+">"},i.prototype.toStringInner=function(){return this.content.join(", ")},i.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},i.fromJSON=function(e,t){if(!t)return i.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new i(t.map(e.nodeFromJSON))},i.fromArray=function(e){if(!e.length)return i.empty;for(var t,n=0,a=0;a<e.length;a++){var l=e[a];n+=l.nodeSize,a&&l.isText&&e[a-1].sameMarkup(l)?(t||(t=e.slice(0,a)),t[t.length-1]=l.withText(t[t.length-1].text+l.text)):t&&t.push(l)}return new i(t||e,n)},i.from=function(e){if(!e)return i.empty;if(e instanceof i)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new i([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(i.prototype,c);var u={index:0,offset:0};function s(e,t){return u.index=e,u.offset=t,u}function d(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 a=0;a<e.length;a++)if(!d(e[a],t[a]))return!1}else{for(var l in e)if(!(l in t)||!d(e[l],t[l]))return!1;for(var o in t)if(!(o in e))return!1}return!0}i.empty=new i([],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,a=0;a<e.length;a++){var l=e[a];if(this.eq(l))return e;if(this.type.excludes(l.type))t||(t=e.slice(0,a));else{if(l.type.excludes(this.type))return e;!n&&l.type.rank>this.type.rank&&(t||(t=e.slice(0,a)),t.push(this),n=!0),t&&t.push(l)}}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&&d(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 f=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},m={size:{configurable:!0}};function v(e,t,n){var a=e.findIndex(t),l=a.index,o=a.offset,r=e.maybeChild(l),i=e.findIndex(n),c=i.index,u=i.offset;if(o==t||r.isText){if(u!=n&&!e.child(c).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(l!=c)throw new RangeError("Removing non-flat range");return e.replaceChild(l,r.copy(v(r.content,t-o-1,n-o-1)))}function b(e,t,n,a){var l=e.findIndex(t),o=l.index,r=l.offset,i=e.maybeChild(o);if(r==t||i.isText)return a&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));var c=b(i.content,t-r-1,n);return c&&e.replaceChild(o,i.copy(c))}function g(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 y(e,t,n,0)}function y(e,t,n,a){var l=e.index(a),o=e.node(a);if(l==t.index(a)&&a<e.depth-n.openStart){var r=y(e,t,n,a+1);return o.copy(o.content.replaceChild(l,r))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=a||t.depth!=a){var i=S(n,e),c=i.start,u=i.end;return T(o,M(e,c,u,t,a))}var s=e.parent,d=s.content;return T(s,d.cut(0,e.parentOffset).append(n.content).append(d.cut(t.parentOffset)))}return T(o,O(e,t,a))}function w(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function k(e,t,n){var a=e.node(n);return w(a,t.node(n)),a}function x(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 C(e,t,n,a){var l=(t||e).node(n),o=0,r=t?t.index(n):l.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(x(e.nodeAfter,a),o++));for(var i=o;i<r;i++)x(l.child(i),a);t&&t.depth==n&&t.textOffset&&x(t.nodeBefore,a)}function T(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function M(e,t,n,a,l){var o=e.depth>l&&k(e,t,l+1),r=a.depth>l&&k(n,a,l+1),c=[];return C(null,e,l,c),o&&r&&t.index(l)==n.index(l)?(w(o,r),x(T(o,M(e,t,n,a,l+1)),c)):(o&&x(T(o,O(e,t,l+1)),c),C(t,n,l,c),r&&x(T(r,O(n,a,l+1)),c)),C(a,null,l,c),new i(c)}function O(e,t,n){var a=[];if(C(null,e,n,a),e.depth>n){var l=k(e,t,n+1);x(T(l,O(e,t,n+1)),a)}return C(t,null,n,a),new i(a)}function S(e,t){for(var n=t.depth-e.openStart,a=t.node(n),l=a.copy(e.content),o=n-1;o>=0;o--)l=t.node(o).copy(i.from(l));return{start:l.resolveNoCache(e.openStart+n),end:l.resolveNoCache(l.content.size-e.openEnd-n)}}m.size.get=function(){return this.content.size-this.openStart-this.openEnd},f.prototype.insertAt=function(e,t){var n=b(this.content,e+this.openStart,t,null);return n&&new f(n,this.openStart,this.openEnd)},f.prototype.removeBetween=function(e,t){return new f(v(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},f.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},f.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},f.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},f.fromJSON=function(e,t){if(!t)return f.empty;var n=t.openStart||0,a=t.openEnd||0;if("number"!=typeof n||"number"!=typeof a)throw new RangeError("Invalid input for Slice.fromJSON");return new f(i.fromJSON(e,t.content),n,a)},f.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,a=0,l=e.firstChild;l&&!l.isLeaf&&(t||!l.type.spec.isolating);l=l.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)a++;return new f(e,n,a)},Object.defineProperties(f.prototype,m),f.empty=new f(i.empty,0,0);var E=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},N={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};E.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},N.parent.get=function(){return this.node(this.depth)},N.doc.get=function(){return this.node(0)},E.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},E.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},E.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},E.prototype.start=function(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1},E.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},E.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]},E.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},N.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},N.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],a=e.child(t);return n?e.child(t).cut(n):a},N.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)},E.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],a=0==t?0:this.path[3*t-1]+1,l=0;l<e;l++)a+=n.child(l).nodeSize;return a},E.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),a=e.maybeChild(t);if(!n){var l=n;n=a,a=l}for(var o=n.marks,r=0;r<o.length;r++)!1!==o[r].type.spec.inclusive||a&&o[r].isInSet(a.marks)||(o=o[r--].removeFromSet(o));return o},E.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,a=e.parent.maybeChild(e.index()),l=0;l<n.length;l++)!1!==n[l].type.spec.inclusive||a&&n[l].isInSet(a.marks)||(n=n[l--].removeFromSet(n));return n},E.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},E.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 I(this,e,n)},E.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},E.prototype.max=function(e){return e.pos>this.pos?e:this},E.prototype.min=function(e){return e.pos<this.pos?e:this},E.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},E.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],a=0,l=t,o=e;;){var r=o.content.findIndex(l),i=r.index,c=r.offset,u=l-c;if(n.push(o,i,a+c),!u)break;if(o=o.child(i),o.isText)break;l=u-1,a+=c+1}return new E(t,n,l)},E.resolveCached=function(e,t){for(var n=0;n<D.length;n++){var a=D[n];if(a.pos==t&&a.doc==e)return a}var l=D[A]=E.resolve(e,t);return A=(A+1)%L,l},Object.defineProperties(E.prototype,N);var D=[],A=0,L=12,I=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},R={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};R.start.get=function(){return this.$from.before(this.depth+1)},R.end.get=function(){return this.$to.after(this.depth+1)},R.parent.get=function(){return this.$from.node(this.depth)},R.startIndex.get=function(){return this.$from.index(this.depth)},R.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(I.prototype,R);var j=Object.create(null),B=function(e,t,n,a){this.type=e,this.attrs=t,this.content=n||i.empty,this.marks=a||p.none},P={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}};P.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},P.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,a){void 0===a&&(a=0),this.content.nodesBetween(e,t,n,a,this)},B.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},P.textContent.get=function(){return this.textBetween(0,this.content.size,"")},B.prototype.textBetween=function(e,t,n,a){return this.content.textBetween(e,t,n,a)},P.firstChild.get=function(){return this.content.firstChild},P.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&&d(this.attrs,t||e.defaultAttrs||j)&&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 f.empty;var a=this.resolve(e),l=this.resolve(t),o=n?0:a.sharedDepth(t),r=a.start(o),i=a.node(o),c=i.content.cut(a.pos-r,l.pos-r);return new f(c,a.depth-o,l.depth-o)},B.prototype.replace=function(e,t,n){return g(this.resolve(e),this.resolve(t),n)},B.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),a=n.index,l=n.offset;if(t=t.maybeChild(a),!t)return null;if(l==e||t.isText)return t;e-=l+1}},B.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,a=t.offset;return{node:this.content.maybeChild(n),index:n,offset:a}},B.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,a=t.offset;if(a<e)return{node:this.content.child(n),index:n,offset:a};var l=this.content.child(n-1);return{node:l,index:n-1,offset:a-l.nodeSize}},B.prototype.resolve=function(e){return E.resolveCached(this,e)},B.prototype.resolveNoCache=function(e){return E.resolve(this,e)},B.prototype.rangeHasMark=function(e,t,n){var a=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(a=!0),!a})),a},P.isBlock.get=function(){return this.type.isBlock},P.isTextblock.get=function(){return this.type.isTextblock},P.inlineContent.get=function(){return this.type.inlineContent},P.isInline.get=function(){return this.type.isInline},P.isText.get=function(){return this.type.isText},P.isLeaf.get=function(){return this.type.isLeaf},P.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()+")"),F(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,a,l){void 0===n&&(n=i.empty),void 0===a&&(a=0),void 0===l&&(l=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,a,l),r=o&&o.matchFragment(this.content,t);if(!r||!r.validEnd)return!1;for(var c=a;c<l;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0},B.prototype.canReplaceWith=function(e,t,n,a){if(a&&!this.type.allowsMarks(a))return!1;var l=this.contentMatchAt(e).matchType(n),o=l&&l.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 a=i.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,a,n)},Object.defineProperties(B.prototype,P);var V=function(e){function t(t,n,a,l){if(e.call(this,t,n,null,l),!a)throw new RangeError("Empty text nodes are not allowed");this.text=a}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):F(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 F(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=[]},z={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};H.parse=function(e,t){var n=new _(e,t);if(null==n.next)return H.empty;var a=$(n);n.next&&n.err("Unexpected trailing text");var l=ee(Z(a));return te(l,n),l},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 a=this,l=t;a&&l<n;l++)a=a.matchType(e.child(l).type);return a},z.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},z.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 a=[this];function l(o,r){var c=o.matchFragment(e,n);if(c&&(!t||c.validEnd))return i.from(r.map((function(e){return e.createAndFill()})));for(var u=0;u<o.next.length;u+=2){var s=o.next[u],d=o.next[u+1];if(!s.isText&&!s.hasRequiredAttrs()&&-1==a.indexOf(d)){a.push(d);var p=l(d,r.concat(s));if(p)return p}}}return l(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 a=n.shift(),l=a.match;if(l.matchType(e)){for(var o=[],r=a;r.type;r=r.via)o.push(r.type);return o.reverse()}for(var i=0;i<l.next.length;i+=2){var c=l.next[i];c.isLeaf||c.hasRequiredAttrs()||c.name in t||a.type&&!l.next[i+1].validEnd||(n.push({match:c.contentMatch,type:c,via:a}),t[c.name]=!0)}}},z.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 a=1;a<n.next.length;a+=2)-1==e.indexOf(n.next[a])&&t(n.next[a])}return t(this),e.map((function(t,n){for(var a=n+(t.validEnd?"*":" ")+" ",l=0;l<t.next.length;l+=2)a+=(l?", ":"")+t.next[l].name+"->"+e.indexOf(t.next[l+1]);return a})).join("\n")},Object.defineProperties(H.prototype,z),H.empty=new H(!0);var _=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()},q={next:{configurable:!0}};function $(e){var t=[];do{t.push(U(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function U(e){var t=[];do{t.push(W(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function W(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=K(e,t)}return t}function J(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function K(e,t){var n=J(e),a=n;return e.eat(",")&&(a="}"!=e.next?J(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:a,expr:t}}function G(e,t){var n=e.nodeTypes,a=n[t];if(a)return[a];var l=[];for(var o in n){var r=n[o];r.groups.indexOf(t)>-1&&l.push(r)}return 0==l.length&&e.err("No node type or group '"+t+"' found"),l}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=G(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 Z(e){var t=[[]];return l(o(e,0),n()),t;function n(){return t.push([])-1}function a(e,n,a){var l={term:a,to:n};return t[e].push(l),l}function l(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 r=0;;r++){var i=o(e.exprs[r],t);if(r==e.exprs.length-1)return i;l(i,t=n())}else{if("star"==e.type){var c=n();return a(t,c),l(o(e.expr,c),c),[a(c)]}if("plus"==e.type){var u=n();return l(o(e.expr,t),u),l(o(e.expr,u),u),[a(u)]}if("opt"==e.type)return[a(t)].concat(o(e.expr,t));if("range"==e.type){for(var s=t,d=0;d<e.min;d++){var p=n();l(o(e.expr,s),p),s=p}if(-1==e.max)l(o(e.expr,s),s);else for(var h=e.min;h<e.max;h++){var f=n();a(s,f),l(o(e.expr,s),f),s=f}return[a(s)]}if("name"==e.type)return[a(t,null,e.value)]}}}function Q(e,t){return t-e}function Y(e,t){var n=[];return a(t),n.sort(Q);function a(t){var l=e[t];if(1==l.length&&!l[0].term)return a(l[0].to);n.push(t);for(var o=0;o<l.length;o++){var r=l[o],i=r.term,c=r.to;i||-1!=n.indexOf(c)||a(c)}}}function ee(e){var t=Object.create(null);return n(Y(e,0));function n(a){var l=[];a.forEach((function(t){e[t].forEach((function(t){var n=t.term,a=t.to;if(n){var o=l.indexOf(n),r=o>-1&&l[o+1];Y(e,a).forEach((function(e){r||l.push(n,r=[]),-1==r.indexOf(e)&&r.push(e)}))}}))}));for(var o=t[a.join(",")]=new H(a.indexOf(e.length-1)>-1),r=0;r<l.length;r+=2){var i=l[r+1].sort(Q);o.next.push(l[r],t[i.join(",")]||n(i))}return o}}function te(e,t){for(var n=0,a=[e];n<a.length;n++){for(var l=a[n],o=!l.validEnd,r=[],i=0;i<l.next.length;i+=2){var c=l.next[i],u=l.next[i+1];r.push(c.name),!o||c.isText||c.hasRequiredAttrs()||(o=!1),-1==a.indexOf(u)&&a.push(u)}o&&t.err("Only non-generatable nodes ("+r.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function ne(e){var t=Object.create(null);for(var n in e){var a=e[n];if(!a.hasDefault)return null;t[n]=a.default}return t}function ae(e,t){var n=Object.create(null);for(var a in e){var l=t&&t[a];if(void 0===l){var o=e[a];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+a);l=o.default}n[a]=l}return n}function le(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new ie(e[n]);return t}q.next.get=function(){return this.tokens[this.pos]},_.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},_.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(_.prototype,q);var oe=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=le(n.attrs),this.defaultAttrs=ne(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},re={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};re.isInline.get=function(){return!this.isBlock},re.isTextblock.get=function(){return this.isBlock&&this.inlineContent},re.isLeaf.get=function(){return this.contentMatch==H.empty},re.isAtom.get=function(){return this.isLeaf||this.spec.atom},oe.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},oe.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},oe.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:ae(this.attrs,e)},oe.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),i.from(t),p.setFrom(n))},oe.prototype.createChecked=function(e,t,n){if(t=i.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))},oe.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),t=i.from(t),t.size){var a=this.contentMatch.fillBefore(t);if(!a)return null;t=a.append(t)}var l=this.contentMatch.matchFragment(t).fillBefore(i.empty,!0);return l?new B(this,e,t.append(l),p.setFrom(n)):null},oe.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},oe.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},oe.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},oe.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},oe.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,a){return n[e]=new oe(e,t,a)}));var a=t.spec.topNode||"doc";if(!n[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var l in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(oe.prototype,re);var ie=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ce={isRequired:{configurable:!0}};ce.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(ie.prototype,ce);var ue=function(e,t,n,a){this.name=e,this.schema=n,this.spec=a,this.attrs=le(a.attrs),this.rank=t,this.excluded=null;var l=ne(this.attrs);this.instance=l&&new p(this,l)};ue.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,ae(this.attrs,e))},ue.compile=function(e,t){var n=Object.create(null),a=0;return e.forEach((function(e,l){return n[e]=new ue(e,a++,t,l)})),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 se=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=l.from(e.nodes),this.spec.marks=l.from(e.marks),this.nodes=oe.compile(this.spec.nodes,this),this.marks=ue.compile(this.spec.marks,this);var n=Object.create(null);for(var a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");var o=this.nodes[a],r=o.spec.content||"",i=o.spec.marks;o.contentMatch=n[r]||(n[r]=H.parse(r,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==i?null:i?de(this,i.split(" ")):""!=i&&o.inlineContent?null:[]}for(var c in this.marks){var u=this.marks[c],s=u.spec.excludes;u.excluded=null==s?[u]:""==s?[]:de(this,s.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 de(e,t){for(var n=[],a=0;a<t.length;a++){var l=t[a],o=e.marks[l],r=o;if(o)n.push(o);else for(var i in e.marks){var c=e.marks[i];("_"==l||c.spec.group&&c.spec.group.split(" ").indexOf(l)>-1)&&n.push(r=c)}if(!r)throw new SyntaxError("Unknown mark type: '"+t[a]+"'")}return n}se.prototype.node=function(e,t,n,a){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof oe))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,a)},se.prototype.text=function(e,t){var n=this.nodes.text;return new V(n,n.defaultAttrs,e,p.setFrom(t))},se.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},se.prototype.nodeFromJSON=function(e){return B.fromJSON(this,e)},se.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},se.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 ke(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 ke(this,t,!0);return n.addAll(e,null,t.from,t.to),f.maxOpen(n.finish())},pe.prototype.matchTag=function(e,t,n){for(var a=n?this.tags.indexOf(n)+1:0;a<this.tags.length;a++){var l=this.tags[a];if(Te(e,l.tag)&&(void 0===l.namespace||e.namespaceURI==l.namespace)&&(!l.context||t.matchesContext(l.context))){if(l.getAttrs){var o=l.getAttrs(e);if(!1===o)continue;l.attrs=o}return l}}},pe.prototype.matchStyle=function(e,t,n,a){for(var l=a?this.styles.indexOf(a)+1:0;l<this.styles.length;l++){var o=this.styles[l];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 r=o.getAttrs(t);if(!1===r)continue;o.attrs=r}return o}}},pe.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,a=0;a<t.length;a++){var l=t[a],o=null==l.priority?50:l.priority;if(o<n)break}t.splice(a,0,e)}var a=function(t){var a=e.marks[t].spec.parseDOM;a&&a.forEach((function(e){n(e=Oe(e)),e.mark=t}))};for(var l in e.marks)a(l);var o=function(t){var a=e.nodes[r].spec.parseDOM;a&&a.forEach((function(e){n(e=Oe(e)),e.node=r}))};for(var r 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},fe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},me={ol:!0,ul:!0},ve=1,be=2,ge=4;function ye(e){return(e?ve:0)|("full"===e?be:0)}var we=function(e,t,n,a,l,o,r){this.type=e,this.attrs=t,this.solid=l,this.match=o||(r&ge?null:e.contentMatch),this.options=r,this.content=[],this.marks=n,this.activeMarks=p.none,this.pendingMarks=a,this.stashMarks=[]};we.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(i.from(e));if(!t){var n,a=this.type.contentMatch;return(n=a.findWrapping(e.type))?(this.match=a,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},we.prototype.finish=function(e){if(!(this.options&ve)){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 a=i.from(this.content);return!e&&this.match&&(a=a.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,a,this.marks):a},we.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]},we.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var a=n[t];(this.type?this.type.allowsMarkType(a.type):Se(a.type,e))&&!a.isInSet(this.activeMarks)&&(this.activeMarks=a.addToSet(this.activeMarks),this.pendingMarks=a.removeFromSet(this.pendingMarks))}},we.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 ke=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var a,l=t.topNode,o=ye(t.preserveWhitespace)|(n?ge:0);a=l?new we(l.type,l.attrs,p.none,p.none,!0,t.topMatch||l.type.contentMatch,o):new we(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,o),this.nodes=[a],this.open=0,this.find=t.findPositions,this.needsBlock=!1},xe={top:{configurable:!0},currentPos:{configurable:!0}};function Ce(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var a=1==t.nodeType?t.nodeName.toLowerCase():null;a&&me.hasOwnProperty(a)&&n?(n.appendChild(t),t=n):"li"==a?n=t:a&&(n=null)}}function Te(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Me(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,a=[];while(t=n.exec(e))a.push(t[1],t[2].trim());return a}function Oe(e){var t={};for(var n in e)t[n]=e[n];return t}function Se(e,t){var n=t.schema.nodes,a=function(a){var l=n[a];if(l.allowsMarkType(e)){var o=[],r=function(e){o.push(e);for(var n=0;n<e.edgeCount;n++){var a=e.edge(n),l=a.type,i=a.next;if(l==t)return!0;if(o.indexOf(i)<0&&r(i))return!0}};return r(l.contentMatch)?{v:!0}:void 0}};for(var l in n){var o=a(l);if(o)return o.v}}function Ee(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}xe.top.get=function(){return this.nodes[this.open]},ke.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(Me(t)):null,a=this.top;if(null!=n)for(var l=0;l<n.length;l++)this.addPendingMark(n[l]);if(this.addElement(e),null!=n)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],a)}},ke.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&ve)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 a=n.content[n.content.length-1],l=e.previousSibling;(!a||l&&"BR"==l.nodeName||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},ke.prototype.addElement=function(e,t){var n,a=e.nodeName.toLowerCase();me.hasOwnProperty(a)&&this.parser.normalizeLists&&Ce(e);var l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(l?l.ignore:fe.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);var o,r=this.top,i=this.needsBlock;if(he.hasOwnProperty(a))o=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),o&&this.sync(r),this.needsBlock=i}else this.addElementByRule(e,l,!1===l.consuming?n:null)},ke.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},ke.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},ke.prototype.readStyles=function(e){var t=p.none;e:for(var n=0;n<e.length;n+=2)for(var a=null;;){var l=this.parser.matchStyle(e[n],e[n+1],this,a);if(!l)continue e;if(l.ignore)return null;if(t=this.parser.schema.marks[l.mark].create(l.attrs).addToSet(t),!1!==l.consuming)break;a=l}return t},ke.prototype.addElementByRule=function(e,t,n){var a,l,o,r,i=this;t.node?(l=this.parser.schema.nodes[t.node],l.isLeaf?this.insertNode(l.create(t.attrs))||this.leafFallback(e):a=this.enter(l,t.attrs,t.preserveWhitespace)):(o=this.parser.schema.marks[t.mark],r=o.create(t.attrs),this.addPendingMark(r));var c=this.top;if(l&&l.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 i.insertNode(e)}));else{var u=t.contentElement;"string"==typeof u?u=e.querySelector(u):"function"==typeof u&&(u=u(e)),u||(u=e),this.findAround(e,u,!0),this.addAll(u,a)}a&&(this.sync(c),this.open--),r&&this.removePendingMark(r,c)},ke.prototype.addAll=function(e,t,n,a){for(var l=n||0,o=n?e.childNodes[n]:e.firstChild,r=null==a?null:e.childNodes[a];o!=r;o=o.nextSibling,++l)this.findAtPoint(e,l),this.addDOM(o),t&&he.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,l)},ke.prototype.findPlace=function(e){for(var t,n,a=this.open;a>=0;a--){var l=this.nodes[a],o=l.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=l,!o.length))break;if(l.solid)break}if(!t)return!1;this.sync(n);for(var r=0;r<t.length;r++)this.enterInner(t[r],null,!1);return!0},ke.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 a=n.activeMarks,l=0;l<e.marks.length;l++)n.type&&!n.type.allowsMarkType(e.marks[l].type)||(a=e.marks[l].addToSet(a));return n.content.push(e.mark(a)),!0}return!1},ke.prototype.enter=function(e,t,n){var a=this.findPlace(e.create(t));return a&&this.enterInner(e,t,!0,n),a},ke.prototype.enterInner=function(e,t,n,a){this.closeExtra();var l=this.top;l.applyPending(e),l.match=l.match&&l.match.matchType(e,t);var o=null==a?l.options&~ge:ye(a);l.options&ge&&0==l.content.length&&(o|=ge),this.nodes.push(new we(e,t,l.activeMarks,l.pendingMarks,n,null,o)),this.open++},ke.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}},ke.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},ke.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},xe.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,a=n.length-1;a>=0;a--)e+=n[a].nodeSize;t&&e++}return e},ke.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)},ke.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)},ke.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var a=0;a<this.find.length;a++)if(null==this.find[a].pos&&1==e.nodeType&&e.contains(this.find[a].node)){var l=t.compareDocumentPosition(this.find[a].node);l&(n?2:4)&&(this.find[a].pos=this.currentPos)}},ke.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))},ke.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),a=this.options.context,l=!this.isOpen&&(!a||a.parent.type==this.nodes[0].type),o=-(a?a.depth+1:0)+(l?0:1),r=function(e,i){for(;e>=0;e--){var c=n[e];if(""==c){if(e==n.length-1||0==e)continue;for(;i>=o;i--)if(r(e-1,i))return!0;return!1}var u=i>0||0==i&&l?t.nodes[i].type:a&&i>=o?a.node(i-o).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;i--}return!0};return r(n.length-1,this.open)},ke.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 a in this.parser.schema.nodes){var l=this.parser.schema.nodes[a];if(l.isTextblock&&l.defaultAttrs)return l}},ke.prototype.addPendingMark=function(e){var t=Ee(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},ke.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var a=this.nodes[n],l=a.pendingMarks.lastIndexOf(e);if(l>-1)a.pendingMarks=e.removeFromSet(a.pendingMarks);else{a.activeMarks=e.removeFromSet(a.activeMarks);var o=a.popFromStashMark(e);o&&a.type&&a.type.allowsMarkType(o.type)&&(a.activeMarks=o.addToSet(a.activeMarks))}if(a==t)break}},Object.defineProperties(ke.prototype,xe);var Ne=function(e,t){this.nodes=e||{},this.marks=t||{}};function De(e){var t={};for(var n in e){var a=e[n].spec.toDOM;a&&(t[n]=a)}return t}function Ae(e){return e.document||window.document}Ne.prototype.serializeFragment=function(e,t,n){var a=this;void 0===t&&(t={}),n||(n=Ae(t).createDocumentFragment());var l=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);var n=0,r=0;while(n<o.length&&r<e.marks.length){var i=e.marks[r];if(a.marks[i.type.name]){if(!i.eq(o[n])||!1===i.type.spec.spanning)break;n+=2,r++}else r++}while(n<o.length)l=o.pop(),o.pop();while(r<e.marks.length){var c=e.marks[r++],u=a.serializeMark(c,e.isInline,t);u&&(o.push(c,l),l.appendChild(u.dom),l=u.contentDOM||u.dom)}}l.appendChild(a.serializeNodeInner(e,t))})),n},Ne.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=Ne.renderSpec(Ae(t),this.nodes[e.type.name](e)),a=n.dom,l=n.contentDOM;if(l){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,l,t):this.serializeFragment(e.content,t,l)}return a},Ne.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),a=e.marks.length-1;a>=0;a--){var l=this.serializeMark(e.marks[a],e.isInline,t);l&&((l.contentDOM||l.dom).appendChild(n),n=l.dom)}return n},Ne.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var a=this.marks[e.type.name];return a&&Ne.renderSpec(Ae(n),a(e,t))},Ne.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 a=t[0],l=a.indexOf(" ");l>0&&(n=a.slice(0,l),a=a.slice(l+1));var o=null,r=n?e.createElementNS(n,a):e.createElement(a),i=t[1],c=1;if(i&&"object"==typeof i&&null==i.nodeType&&!Array.isArray(i))for(var u in c=2,i)if(null!=i[u]){var s=u.indexOf(" ");s>0?r.setAttributeNS(u.slice(0,s),u.slice(s+1),i[u]):r.setAttribute(u,i[u])}for(var d=c;d<t.length;d++){var p=t[d];if(0===p){if(d<t.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:r,contentDOM:r}}var h=Ne.renderSpec(e,p,n),f=h.dom,m=h.contentDOM;if(r.appendChild(f),m){if(o)throw new RangeError("Multiple content holes");o=m}}return{dom:r,contentDOM:o}},Ne.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ne(this.nodesFromSchema(e),this.marksFromSchema(e)))},Ne.nodesFromSchema=function(e){var t=De(e.nodes);return t.text||(t.text=function(e){return e.text}),t},Ne.marksFromSchema=function(e){return De(e.marks)}},"383f6":function(e,t,n){"use strict";n("11d8")},"39d3":function(e,t,n){"use strict";n("499d")},"3d78":function(e,t,n){"use strict";n("5979")},"42a3":function(e,t,n){},"44e7":function(e,t,n){var a=n("861d"),l=n("c6b6"),o=n("b622"),r=o("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==l(e))}},"44fe":function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#fff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},"499d":function(e,t,n){},5313:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return L})),n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return u}));var a=n("304a"),l=n("0ac0"),o=Object.create(null),r=function(e,t,n){this.ranges=n||[new c(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},i={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};i.anchor.get=function(){return this.$anchor.pos},i.head.get=function(){return this.$head.pos},i.from.get=function(){return this.$from.pos},i.to.get=function(){return this.$to.pos},i.$from.get=function(){return this.ranges[0].$from},i.$to.get=function(){return this.ranges[0].$to},i.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},r.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},r.prototype.replace=function(e,t){void 0===t&&(t=a["j"].empty);for(var n=t.content.lastChild,l=null,o=0;o<t.openEnd;o++)l=n,n=n.lastChild;for(var r=e.steps.length,i=this.ranges,c=0;c<i.length;c++){var u=i[c],s=u.$from,d=u.$to,p=e.mapping.slice(r);e.replaceRange(p.map(s.pos),p.map(d.pos),c?a["j"].empty:t),0==c&&v(e,r,(n?n.isInline:l&&l.isTextblock)?-1:1)}},r.prototype.replaceWith=function(e,t){for(var n=e.steps.length,a=this.ranges,l=0;l<a.length;l++){var o=a[l],r=o.$from,i=o.$to,c=e.mapping.slice(n),u=c.map(r.pos),s=c.map(i.pos);l?e.deleteRange(u,s):(e.replaceRangeWith(u,s,t),v(e,n,t.isInline?-1:1))}},r.findFrom=function(e,t,n){var a=e.parent.inlineContent?new u(e):m(e.node(0),e.parent,e.pos,e.index(),t,n);if(a)return a;for(var l=e.depth-1;l>=0;l--){var o=t<0?m(e.node(0),e.node(l),e.before(l+1),e.index(l),t,n):m(e.node(0),e.node(l),e.after(l+1),e.index(l)+1,t,n);if(o)return o}},r.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new h(e.node(0))},r.atStart=function(e){return m(e,e,0,0,1)||new h(e)},r.atEnd=function(e){return m(e,e,e.content.size,e.childCount,-1)||new h(e)},r.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)},r.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},r.prototype.getBookmark=function(){return u.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(r.prototype,i),r.prototype.visible=!0;var c=function(e,t){this.$from=e,this.$to=t},u=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,a){var l=n.resolve(a.map(this.head));if(!l.parent.inlineContent)return e.near(l);var o=n.resolve(a.map(this.anchor));return new t(o.parent.inlineContent?o:l,l)},t.prototype.replace=function(t,n){if(void 0===n&&(n=a["j"].empty),e.prototype.replace.call(this,t,n),n==a["j"].empty){var l=this.$from.marksAcross(this.$to);l&&t.ensureMarks(l)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new s(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 a=e.resolve(t);return new this(a,n==t?a:e.resolve(n))},t.between=function(n,a,l){var o=n.pos-a.pos;if(l&&!o||(l=o>=0?1:-1),!a.parent.inlineContent){var r=e.findFrom(a,l,!0)||e.findFrom(a,-l,!0);if(!r)return e.near(a,l);a=r.$head}return n.parent.inlineContent||(0==o?n=a:(n=(e.findFrom(n,-l,!0)||e.findFrom(n,l,!0)).$anchor,n.pos<a.pos!=o<0&&(n=a))),new t(n,a)},Object.defineProperties(t.prototype,n),t}(r);r.jsonID("text",u);var s=function(e,t){this.anchor=e,this.head=t};s.prototype.map=function(e){return new s(e.map(this.anchor),e.map(this.head))},s.prototype.resolve=function(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))};var d=function(e){function t(t){var n=t.nodeAfter,a=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,a),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,a){var l=a.mapResult(this.anchor),o=l.deleted,r=l.pos,i=n.resolve(r);return o?e.near(i):new t(i)},t.prototype.content=function(){return new a["j"](a["c"].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 p(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}(r);d.prototype.visible=!1,r.jsonID("node",d);var p=function(e){this.anchor=e};p.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,a=t.pos;return n?new s(a,a):new p(a)},p.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&d.isSelectable(n)?new d(t):r.near(t)};var h=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=a["j"].empty),n==a["j"].empty){t.delete(0,t.doc.content.size);var l=e.atStart(t.doc);l.eq(t.selection)||t.setSelection(l)}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 f},t}(r);r.jsonID("all",h);var f={map:function(){return this},resolve:function(e){return new h(e)}};function m(e,t,n,a,l,o){if(t.inlineContent)return u.create(e,n);for(var r=a-(l>0?0:1);l>0?r<t.childCount:r>=0;r+=l){var i=t.child(r);if(i.isAtom){if(!o&&d.isSelectable(i))return d.create(e,n-(l<0?i.nodeSize:0))}else{var c=m(e,i,n+l,l<0?i.childCount:0,l,o);if(c)return c}n+=i.nodeSize*l}}function v(e,t,n){var a=e.steps.length-1;if(!(a<t)){var o=e.steps[a];if(o instanceof l["c"]||o instanceof l["b"]){var i,c=e.mapping.maps[a];c.forEach((function(e,t,n,a){null==i&&(i=a)})),e.setSelection(r.near(e.doc.resolve(i),n))}}}var b=1,g=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|b)&~g,this.storedMarks=null,this},n.selectionSet.get=function(){return(this.updated&b)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=g,this},t.prototype.ensureMarks=function(e){return a["d"].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&g)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=this.updated&~g,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)||a["d"].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 a=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(a.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var l=this.storedMarks;if(!l){var o=this.doc.resolve(t);l=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,a.text(e,l)),this.selection.empty||this.setSelection(r.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}(l["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||r.atStart(t.doc)},apply:function(e){return e.selection}}),new x("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,a){return a.selection.$cursor?e.storedMarks:null}}),new x("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],T=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))}))},M=function(e){this.config=e},O={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};O.schema.get=function(){return this.config.schema},O.plugins.get=function(){return this.config.plugins},M.prototype.apply=function(e){return this.applyTransaction(e).state},M.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var a=this.config.plugins[n];if(a.spec.filterTransaction&&!a.spec.filterTransaction.call(a,e,this))return!1}return!0},M.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),a=null;;){for(var l=!1,o=0;o<this.config.plugins.length;o++){var r=this.config.plugins[o];if(r.spec.appendTransaction){var i=a?a[o].n:0,c=a?a[o].state:this,u=i<t.length&&r.spec.appendTransaction.call(r,i?t.slice(i):t,c,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!a){a=[];for(var s=0;s<this.config.plugins.length;s++)a.push(s<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),l=!0}a&&(a[o]={state:n,n:t.length})}}if(!l)return{state:n,transactions:t}}},M.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new M(this.config),n=this.config.fields,a=0;a<n.length;a++){var l=n[a];t[l.name]=l.apply(e,this[l.name],this,t)}for(var o=0;o<S.length;o++)S[o](this,e,t);return t},O.tr.get=function(){return new w(this)},M.create=function(e){for(var t=new T(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new M(t),a=0;a<t.fields.length;a++)n[t.fields[a].name]=t.fields[a].init(e,n);return n},M.prototype.reconfigure=function(e){for(var t=new T(this.schema,e.plugins),n=t.fields,a=new M(t),l=0;l<n.length;l++){var o=n[l].name;a[o]=this.hasOwnProperty(o)?this[o]:n[l].init(e,a)}return a},M.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 a=e[n],l=a.spec.state;l&&l.toJSON&&(t[n]=l.toJSON.call(a,this[a.key]))}return t},M.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 l=new T(e.schema,e.plugins),o=new M(l);return l.fields.forEach((function(l){if("doc"==l.name)o.doc=a["f"].fromJSON(e.schema,t.doc);else if("selection"==l.name)o.selection=r.fromJSON(o.doc,t.selection);else if("storedMarks"==l.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var i in n){var c=n[i],u=c.spec.state;if(c.key==l.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[l.name]=u.fromJSON.call(c,e,t[i],o))}o[l.name]=l.init(e,o)}})),o},M.addApplyListener=function(e){S.push(e)},M.removeApplyListener=function(e){var t=S.indexOf(e);t>-1&&S.splice(t,1)},Object.defineProperties(M.prototype,O);var S=[];function E(e,t,n){for(var a in e){var l=e[a];l instanceof Function?l=l.bind(t):"handleDOMEvents"==a&&(l=E(l,t,{})),n[a]=l}return n}var N=function(e){this.props={},e.props&&E(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:A("plugin")};N.prototype.getState=function(e){return e[this.key]};var D=Object.create(null);function A(e){return e in D?e+"$"+ ++D[e]:(D[e]=0,e+"$")}var L=function(e){void 0===e&&(e="key"),this.key=A(e)};L.prototype.get=function(e){return e.config.pluginsByKey[this.key]},L.prototype.getState=function(e){return e[this.key]}},5591:function(e,t,n){},"576a":function(e,t,n){"use strict";n.d(t,"a",(function(){return Cn})),n.d(t,"b",(function(){return Sn})),n.d(t,"c",(function(){return Hn}));var a=n("5313"),l=n("304a"),o=n("0ac0"),r={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var i=/Edge\/(\d+)/.exec(navigator.userAgent),c=/MSIE \d/.test(navigator.userAgent),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);r.mac=/Mac/.test(navigator.platform);var s=r.ie=!!(c||u||i);r.ie_version=c?document.documentMode||6:u?+u[1]:i?+i[1]:null,r.gecko=!s&&/gecko\/(\d+)/i.test(navigator.userAgent),r.gecko_version=r.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var d=!s&&/Chrome\/(\d+)/.exec(navigator.userAgent);r.chrome=!!d,r.chrome_version=d&&+d[1],r.safari=!s&&/Apple Computer/.test(navigator.vendor),r.ios=r.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),r.android=/Android \d/.test(navigator.userAgent),r.webkit="webkitFontSmoothing"in document.documentElement.style,r.webkit_version=r.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var p=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},h=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},f=null,m=function(e,t,n){var a=f||(f=document.createRange());return a.setEnd(e,null==n?e.nodeValue.length:n),a.setStart(e,t||0),a},v=function(e,t,n,a){return n&&(g(e,t,n,a,-1)||g(e,t,n,a,1))},b=/^(img|br|input|textarea|hr)$/i;function g(e,t,n,a,l){for(;;){if(e==n&&t==a)return!0;if(t==(l<0?0:y(e))){var o=e.parentNode;if(1!=o.nodeType||k(e)||b.test(e.nodeName)||"false"==e.contentEditable)return!1;t=p(e)+(l<0?0:1),e=o}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(l<0?-1:0)],"false"==e.contentEditable)return!1;t=l<0?y(e):0}}}function y(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function w(e,t,n){for(var a=0==t,l=t==y(e);a||l;){if(e==n)return!0;var o=p(e);if(e=e.parentNode,!e)return!1;a=a&&0==o,l=l&&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&&r.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 T(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function M(e,t){return"number"==typeof e?e:e[t]}function O(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,a=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*a}}function S(e,t,n){for(var a=e.someProp("scrollThreshold")||0,l=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument,r=n||e.dom;;r=h(r)){if(!r)break;if(1==r.nodeType){var i=r==o.body||1!=r.nodeType,c=i?T(o):O(r),u=0,s=0;if(t.top<c.top+M(a,"top")?s=-(c.top-t.top+M(l,"top")):t.bottom>c.bottom-M(a,"bottom")&&(s=t.bottom-c.bottom+M(l,"bottom")),t.left<c.left+M(a,"left")?u=-(c.left-t.left+M(l,"left")):t.right>c.right-M(a,"right")&&(u=t.right-c.right+M(l,"right")),u||s)if(i)o.defaultView.scrollBy(u,s);else{var d=r.scrollLeft,p=r.scrollTop;s&&(r.scrollTop+=s),u&&(r.scrollLeft+=u);var f=r.scrollLeft-d,m=r.scrollTop-p;t={left:t.left-f,top:t.top-m,right:t.right-f,bottom:t.bottom-m}}if(i)break}}}function E(e){for(var t,n,a=e.dom.getBoundingClientRect(),l=Math.max(0,a.top),o=(a.left+a.right)/2,r=l+1;r<Math.min(innerHeight,a.bottom);r+=5){var i=e.root.elementFromPoint(o,r);if(i!=e.dom&&e.dom.contains(i)){var c=i.getBoundingClientRect();if(c.top>=l-20){t=i,n=c.top;break}}}return{refDOM:t,refTop:n,stack:N(e.dom)}}function N(e){for(var t=[],n=e.ownerDocument;e;e=h(e))if(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e==n)break;return t}function D(e){var t=e.refDOM,n=e.refTop,a=e.stack,l=t?t.getBoundingClientRect().top:0;A(a,0==l?0:l-n)}function A(e,t){for(var n=0;n<e.length;n++){var a=e[n],l=a.dom,o=a.top,r=a.left;l.scrollTop!=o+t&&(l.scrollTop=o+t),l.scrollLeft!=r&&(l.scrollLeft=r)}}var L=null;function I(e){if(e.setActive)return e.setActive();if(L)return e.focus(L);var t=N(e);e.focus(null==L?{get preventScroll(){return L={preventScroll:!0},!0}}:void 0),L||(L=!1,A(t,0))}function R(e,t){for(var n,a,l=2e8,o=0,r=t.top,i=t.top,c=e.firstChild,u=0;c;c=c.nextSibling,u++){var s=void 0;if(1==c.nodeType)s=c.getClientRects();else{if(3!=c.nodeType)continue;s=m(c).getClientRects()}for(var d=0;d<s.length;d++){var p=s[d];if(p.top<=r&&p.bottom>=i){r=Math.max(p.bottom,r),i=Math.min(p.top,i);var h=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(h<l){n=c,l=h,a=h&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==c.nodeType&&h&&(o=u+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=u+1)}}return n&&3==n.nodeType?j(n,a):!n||l&&1==n.nodeType?{node:e,offset:o}:R(n,a)}function j(e,t){for(var n=e.nodeValue.length,a=document.createRange(),l=0;l<n;l++){a.setEnd(e,l+1),a.setStart(e,l);var o=_(a,1);if(o.top!=o.bottom&&B(t,o))return{node:e,offset:l+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function B(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function P(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function V(e,t,n){var a=R(t,n),l=a.node,o=a.offset,r=-1;if(1==l.nodeType&&!l.firstChild){var i=l.getBoundingClientRect();r=i.left!=i.right&&n.left>(i.left+i.right)/2?1:-1}return e.docView.posFromDOM(l,o,r)}function F(e,t,n,a){for(var l=-1,o=t;;){if(o==e.dom)break;var r=e.docView.nearestDesc(o,!0);if(!r)return null;if(r.node.isBlock&&r.parent){var i=r.dom.getBoundingClientRect();if(i.left>a.left||i.top>a.top)l=r.posBefore;else{if(!(i.right<a.left||i.bottom<a.top))break;l=r.posAfter}}o=r.dom.parentNode}return l>-1?l:e.docView.posFromDOM(t,n)}function H(e,t,n){var a=e.childNodes.length;if(a&&n.top<n.bottom)for(var l=Math.max(0,Math.min(a-1,Math.floor(a*(t.top-n.top)/(n.bottom-n.top))-2)),o=l;;){var r=e.childNodes[o];if(1==r.nodeType)for(var i=r.getClientRects(),c=0;c<i.length;c++){var u=i[c];if(B(t,u))return H(r,t,u)}if((o=(o+1)%a)==l)break}return e}function z(e,t){var n,a,l,o,i=e.root;if(i.caretPositionFromPoint)try{var c=i.caretPositionFromPoint(t.left,t.top);c&&(n=c,l=n.offsetNode,o=n.offset)}catch(g){}if(!l&&i.caretRangeFromPoint){var u=i.caretRangeFromPoint(t.left,t.top);u&&(a=u,l=a.startContainer,o=a.startOffset)}var s,d=i.elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var p=e.dom.getBoundingClientRect();if(!B(t,p))return null;if(d=H(e.dom,t,p),!d)return null}if(r.safari)for(var f=d;l&&f;f=h(f))f.draggable&&(l=o=null);if(d=P(d,t),l){if(r.gecko&&1==l.nodeType&&(o=Math.min(o,l.childNodes.length),o<l.childNodes.length)){var m,v=l.childNodes[o];"IMG"==v.nodeName&&(m=v.getBoundingClientRect()).right<=t.left&&m.bottom>t.top&&o++}l==e.dom&&o==l.childNodes.length-1&&1==l.lastChild.nodeType&&t.top>l.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:0!=o&&1==l.nodeType&&"BR"==l.childNodes[o-1].nodeName||(s=F(e,l,o,t))}null==s&&(s=V(e,d,t));var b=e.docView.nearestDesc(d,!0);return{pos:s,inside:b?b.posAtStart-b.border:-1}}function _(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var q=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function $(e,t,n){var a=e.docView.domFromPos(t,n<0?-1:1),l=a.node,o=a.offset,i=r.webkit||r.gecko;if(3==l.nodeType){if(!i||!q.test(l.nodeValue)&&(n<0?o:o!=l.nodeValue.length)){var c=o,u=o,s=n<0?1:-1;return n<0&&!o?(u++,s=-1):n>=0&&o==l.nodeValue.length?(c--,s=1):n<0?c--:u++,U(_(m(l,c,u),s),s<0)}var d=_(m(l,o,o),n);if(r.gecko&&o&&/\s/.test(l.nodeValue[o-1])&&o<l.nodeValue.length){var p=_(m(l,o-1,o-1),-1);if(p.top==d.top){var h=_(m(l,o,o+1),-1);if(h.top!=d.top)return U(h,h.left<p.left)}}return d}if(!e.state.doc.resolve(t).parent.inlineContent){if(o&&(n<0||o==y(l))){var f=l.childNodes[o-1];if(1==f.nodeType)return W(f.getBoundingClientRect(),!1)}if(o<y(l)){var v=l.childNodes[o];if(1==v.nodeType)return W(v.getBoundingClientRect(),!0)}return W(l.getBoundingClientRect(),n>=0)}if(o&&(n<0||o==y(l))){var b=l.childNodes[o-1],g=3==b.nodeType?m(b,y(b)-(i?0:1)):1!=b.nodeType||"BR"==b.nodeName&&b.nextSibling?null:b;if(g)return U(_(g,1),!1)}if(o<y(l)){var w=l.childNodes[o],k=3==w.nodeType?m(w,0,i?0:1):1==w.nodeType?w:null;if(k)return U(_(k,-1),!0)}return U(_(3==l.nodeType?m(l):l,-n),n>=0)}function U(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 J(e,t,n){var a=e.state,l=e.root.activeElement;a!=t&&e.updateState(t),l!=e.dom&&e.focus();try{return n()}finally{a!=t&&e.updateState(a),l!=e.dom&&l&&l.focus()}}function K(e,t,n){var a=t.selection,l="up"==n?a.$from:a.$to;return J(e,t,(function(){for(var t=e.docView.domFromPos(l.pos,"up"==n?-1:1),a=t.node;;){var o=e.docView.nearestDesc(a,!0);if(!o)break;if(o.node.isBlock){a=o.dom;break}a=o.dom.parentNode}for(var r=$(e,l.pos,1),i=a.firstChild;i;i=i.nextSibling){var c=void 0;if(1==i.nodeType)c=i.getClientRects();else{if(3!=i.nodeType)continue;c=m(i,0,i.nodeValue.length).getClientRects()}for(var u=0;u<c.length;u++){var s=c[u];if(s.bottom>s.top&&("up"==n?s.bottom<r.top+1:s.top>r.bottom-1))return!1}}return!0}))}var G=/[\u0590-\u08ac]/;function X(e,t,n){var a=t.selection,l=a.$head;if(!l.parent.isTextblock)return!1;var o=l.parentOffset,r=!o,i=o==l.parent.content.size,c=getSelection();return G.test(l.parent.textContent)&&c.modify?J(e,t,(function(){var t=c.getRangeAt(0),a=c.focusNode,o=c.focusOffset,r=c.caretBidiLevel;c.modify("move",n,"character");var i=l.depth?e.docView.domAfterPos(l.before()):e.dom,u=!i.contains(1==c.focusNode.nodeType?c.focusNode:c.focusNode.parentNode)||a==c.focusNode&&o==c.focusOffset;return c.removeAllRanges(),c.addRange(t),null!=r&&(c.caretBidiLevel=r),u})):"left"==n||"backward"==n?r:i}var Z=null,Q=null,Y=!1;function ee(e,t,n){return Z==t&&Q==n?Y:(Z=t,Q=n,Y="up"==n||"down"==n?K(e,t,n):X(e,t,n))}var te=0,ne=1,ae=2,le=3,oe=function(e,t,n,a){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=a,this.dirty=te},re={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{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},re.beforePosition.get=function(){return!1},oe.prototype.parseRule=function(){return null},oe.prototype.stopEvent=function(){return!1},re.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},re.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 a=this.children[t];if(a==e)return n;n+=a.size}},re.posBefore.get=function(){return this.parent.posBeforeChild(this)},re.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},re.posAfter.get=function(){return this.posBefore+this.size},re.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 a,l;if(e==this.contentDOM)a=e.childNodes[t-1];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;a=e.previousSibling}while(a&&(!(l=a.pmViewDesc)||l.parent!=this))a=a.previousSibling;return a?this.posBeforeChild(l)+l.size:this.posAtStart}var o,r;if(e==this.contentDOM)o=e.childNodes[t];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;o=e.nextSibling}while(o&&(!(r=o.pmViewDesc)||r.parent!=this))o=o.nextSibling;return o?this.posBeforeChild(r):this.posAtEnd}var i;if(e==this.dom&&this.contentDOM)i=t>p(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var c=e;;c=c.parentNode){if(c==this.dom){i=!1;break}if(c.parentNode.firstChild!=c)break}if(null==i&&t==e.childNodes.length)for(var u=e;;u=u.parentNode){if(u==this.dom){i=!0;break}if(u.parentNode.lastChild!=u)break}}return(null==i?n>0:i)?this.posAtEnd:this.posAtStart},oe.prototype.nearestDesc=function(e,t){for(var n=!0,a=e;a;a=a.parentNode){var l=this.getDesc(a);if(l&&(!t||l.node)){if(!n||!l.nodeDOM||(1==l.nodeDOM.nodeType?l.nodeDOM.contains(1==e.nodeType?e:e.parentNode):l.nodeDOM==e))return l;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 a=e;a;a=a.parentNode){var l=this.getDesc(a);if(l)return l.localPosFromDOM(e,t,n)}return-1},oe.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var a=this.children[t],l=n+a.size;if(n==e&&l!=n){while(!a.border&&a.children.length)a=a.children[0];return a}if(e<l)return a.descAt(e-n-a.border);n=l}},oe.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,a=0,l=!0;;a++,l=!1){while(a<this.children.length&&(this.children[a].beforePosition||this.children[a].dom.parentNode!=this.contentDOM))n+=this.children[a++].size;var o=a==this.children.length?null:this.children[a];if(n==e&&(0==t||!o||!o.size||o.border||t<0&&l)||o&&o.domAtom&&e<n+o.size)return{node:this.contentDOM,offset:o?p(o.dom):this.contentDOM.childNodes.length};if(!o)throw new Error("Invalid position "+e);var r=n+o.size;if(!o.domAtom&&(t<0&&!o.border?r>=e:r>e)&&(r>e||a+1>=this.children.length||!this.children[a+1].beforePosition))return o.domFromPos(e-n-o.border,t);n=r}},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 a=-1,l=-1,o=n,r=0;;r++){var i=this.children[r],c=o+i.size;if(-1==a&&e<=c){var u=o+i.border;if(e>=u&&t<=c-i.border&&i.node&&i.contentDOM&&this.contentDOM.contains(i.contentDOM))return i.parseRange(e,t,u);e=o;for(var s=r;s>0;s--){var d=this.children[s-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){a=p(d.dom)+1;break}e-=d.size}-1==a&&(a=0)}if(a>-1&&(c>t||r==this.children.length-1)){t=c;for(var h=r+1;h<this.children.length;h++){var f=this.children[h];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){l=p(f.dom);break}t+=f.size}-1==l&&(l=this.contentDOM.childNodes.length);break}o=c}return{node:this.contentDOM,from:e,to:t,fromOffset:a,toOffset:l}},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,a=t.offset;if(1!=n.nodeType||a==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[a]},oe.prototype.setSelection=function(e,t,n,a){for(var l=Math.min(e,t),o=Math.max(e,t),i=0,c=0;i<this.children.length;i++){var u=this.children[i],s=c+u.size;if(l>c&&o<s)return u.setSelection(e-c-u.border,t-c-u.border,n,a);c=s}var d=this.domFromPos(e,e?-1:1),h=t==e?d:this.domFromPos(t,t?-1:1),f=n.getSelection(),m=!1;if((r.gecko||r.safari)&&e==t){var b=d.node,g=d.offset;if(3==b.nodeType){if(m=g&&"\n"==b.nodeValue[g-1],m&&g==b.nodeValue.length)for(var y=b,w=void 0;y;y=y.parentNode){if(w=y.nextSibling){"BR"==w.nodeName&&(d=h={node:w.parentNode,offset:p(w)+1});break}var k=y.pmViewDesc;if(k&&k.node&&k.node.isBlock)break}}else{var x=b.childNodes[g-1];m=x&&("BR"==x.nodeName||"false"==x.contentEditable)}}if(r.gecko&&f.focusNode&&f.focusNode!=h.node&&1==f.focusNode.nodeType){var C=f.focusNode.childNodes[f.focusOffset];C&&"false"==C.contentEditable&&(a=!0)}if(a||m&&r.safari||!v(d.node,d.offset,f.anchorNode,f.anchorOffset)||!v(h.node,h.offset,f.focusNode,f.focusOffset)){var T=!1;if((f.extend||e==t)&&!m){f.collapse(d.node,d.offset);try{e!=t&&f.extend(h.node,h.offset),T=!0}catch(S){if(!(S instanceof DOMException))throw S}}if(!T){if(e>t){var M=d;d=h,h=M}var O=document.createRange();O.setEnd(h.node,h.offset),O.setStart(d.node,d.offset),f.removeAllRanges(),f.addRange(O)}}},oe.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},re.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,a=0;a<this.children.length;a++){var l=this.children[a],o=n+l.size;if(n==o?e<=o&&t>=n:e<o&&t>n){var r=n+l.border,i=o-l.border;if(e>=r&&t<=i)return this.dirty=e==n||t==o?ae:ne,void(e!=r||t!=i||!l.contentLost&&l.dom.parentNode==this.contentDOM?l.markDirty(e-r,t-r):l.dirty=le);l.dirty=l.dom==l.contentDOM&&l.dom.parentNode==this.contentDOM?ae:le}n=o}this.dirty=ae},oe.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?ae:ne;t.dirty<n&&(t.dirty=n)}},re.domAtom.get=function(){return!1},Object.defineProperties(oe.prototype,re);var ie=[],ce=function(e){function t(t,n,a,l){var o,r=n.type.toDOM;if("function"==typeof r&&(r=r(a,(function(){return o?o.parent?o.parent.posBeforeChild(o):void 0:l}))),!n.type.spec.raw){if(1!=r.nodeType){var i=document.createElement("span");i.appendChild(r),r=i}r.contentEditable=!1,r.classList.add("ProseMirror-widget")}e.call(this,t,ie,r,null),this.widget=n,o=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={beforePosition:{configurable:!0},domAtom:{configurable:!0}};return n.beforePosition.get=function(){return this.widget.type.side<0},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},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(oe),ue=function(e){function t(t,n,a,l){e.call(this,t,ie,n,null),this.textDOM=a,this.text=l}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),se=function(e){function t(t,n,a,l){e.call(this,t,[],a,l),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,a,o){var r=o.nodeViews[n.type.name],i=r&&r(n,o,a);return i&&i.dom||(i=l["b"].renderSpec(document,n.type.spec.toDOM(n,a))),new t(e,n,i.dom,i.contentDOM||i.dom)},t.prototype.parseRule=function(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return this.dirty!=le&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),this.dirty!=te){var a=this.parent;while(!a.node)a=a.parent;a.dirty<this.dirty&&(a.dirty=this.dirty),this.dirty=te}},t.prototype.slice=function(e,n,a){var l=t.create(this.parent,this.mark,!0,a),o=this.children,r=this.size;n<r&&(o=Le(o,n,r,a)),e>0&&(o=Le(o,0,e,a));for(var i=0;i<o.length;i++)o[i].parent=l;return l.children=o,l},t}(oe),de=function(e){function t(t,n,a,l,o,r,i,c,u){e.call(this,t,n.isLeaf?ie:[],o,r),this.nodeDOM=i,this.node=n,this.outerDeco=a,this.innerDeco=l,r&&this.updateChildren(c,u)}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,a,o,r,i){var c,u,s=r.nodeViews[n.type.name],d=s&&s(n,r,(function(){return u?u.parent?u.parent.posBeforeChild(u):void 0:i}),a,o),p=d&&d.dom,h=d&&d.contentDOM;if(n.isText)if(p){if(3!=p.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else p=document.createTextNode(n.text);else p||(c=l["b"].renderSpec(document,n.type.spec.toDOM(n)),p=c.dom,h=c.contentDOM);h||n.isText||"BR"==p.nodeName||(p.hasAttribute("contenteditable")||(p.contentEditable=!1),n.type.spec.draggable&&(p.draggable=!0));var f=p;return p=xe(p,a,n),d?u=new me(e,n,a,o,p,h,f,d,r,i+1):n.isText?new he(e,n,a,o,p,f,r):new t(e,n,a,o,p,h,f,r,i+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 this.node.type.spec.code&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?l["c"].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,a=this.node.inlineContent,o=t,i=e.composing&&this.localCompositionInfo(e,t),c=i&&i.pos>-1?i:null,u=i&&i.pos<0,s=new Me(this,c&&c.node);Ee(this.node,this.innerDeco,(function(t,r,i){t.spec.marks?s.syncToMarks(t.spec.marks,a,e):t.type.side>=0&&!i&&s.syncToMarks(r==n.node.childCount?l["d"].none:n.node.child(r).marks,a,e),s.placeWidget(t,e,o)}),(function(t,n,l,r){var c;s.syncToMarks(t.marks,a,e),s.findNodeMatch(t,n,l,r)||u&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(c=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,n,l,c,e)||s.updateNextNode(t,n,l,e,r)||s.addNode(t,n,l,e,o),o+=t.nodeSize})),s.syncToMarks(ie,a,e),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==ae)&&(c&&this.protectLocalComposition(e,c),ve(this.contentDOM,this.children,e),r.ios&&Ne(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,l=n.from,o=n.to;if(!(!(e.state.selection instanceof a["h"])||l<t||o>t+this.node.content.size)){var r=e.root.getSelection(),i=De(r.focusNode,r.focusOffset);if(i&&this.dom.contains(i.parentNode)){if(this.node.inlineContent){var c=i.nodeValue,u=Ae(this.node.content,c,l-t,o-t);return u<0?null:{node:i,pos:u,text:c}}return{node:i,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,a=t.pos,l=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 r=new ue(this,o,n,l);e.compositionNodes.push(r),this.children=Le(this.children,a,a+l.length,e,r)}},t.prototype.update=function(e,t,n,a){return!(this.dirty==le||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,a),!0)},t.prototype.updateInner=function(e,t,n,a){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(a,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 pe(e,t,n,a,l){return xe(a,t,e),new de(null,e,t,n,a,a,a,l,0)}var he=function(e){function t(t,n,a,l,o,r,i){e.call(this,t,n,a,l,o,null,r,i)}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,a){return!(this.dirty==le||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,a.trackWrites==this.nodeDOM&&(a.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,a){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,a)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,a){var l=this.node.cut(e,n),o=document.createTextNode(l.text);return new t(this.parent,l,this.outerDeco,this.innerDeco,o,o,a)},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=le)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(de),fe=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}};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},Object.defineProperties(t.prototype,n),t}(oe),me=function(e){function t(t,n,a,l,o,r,i,c,u,s){e.call(this,t,n,a,l,o,r,i,u,s),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,a,l){if(this.dirty==le)return!1;if(this.spec.update){var o=this.spec.update(t,n,a);return o&&this.updateInner(t,n,a,l),o}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,a,l)},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,a,l){this.spec.setSelection?this.spec.setSelection(t,n,a):e.prototype.setSelection.call(this,t,n,a,l)},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 a=e.firstChild,l=!1,o=0;o<t.length;o++){var r=t[o],i=r.dom;if(i.parentNode==e){while(i!=a)a=Te(a),l=!0;a=a.nextSibling}else l=!0,e.insertBefore(i,a);if(r instanceof se){var c=a?a.previousSibling:e.lastChild;ve(r.contentDOM,r.children,n),a=c?c.nextSibling:e.firstChild}}while(a)a=Te(a),l=!0;l&&n.trackWrites==e&&(n.trackWrites=null)}function be(e){e&&(this.nodeName=e)}be.prototype=Object.create(null);var ge=[new be];function ye(e,t,n){if(0==e.length)return ge;for(var a=n?ge[0]:new be,l=[a],o=0;o<e.length;o++){var r=e[o].type.attrs;if(r)for(var i in r.nodeName&&l.push(a=new be(r.nodeName)),r){var c=r[i];null!=c&&(n&&1==l.length&&l.push(a=new be(t.isInline?"span":"div")),"class"==i?a.class=(a.class?a.class+" ":"")+c:"style"==i?a.style=(a.style?a.style+";":"")+c:"nodeName"!=i&&(a[i]=c))}}return l}function we(e,t,n,a){if(n==ge&&a==ge)return t;for(var l=t,o=0;o<a.length;o++){var r=a[o],i=n[o];if(o){var c=void 0;i&&i.nodeName==r.nodeName&&l!=e&&(c=l.parentNode)&&c.tagName.toLowerCase()==r.nodeName||(c=document.createElement(r.nodeName),c.pmIsDeco=!0,c.appendChild(l),i=ge[0]),l=c}ke(l,i||ge[0],r)}return l}function ke(e,t,n){for(var a in t)"class"==a||"style"==a||"nodeName"==a||a in n||e.removeAttribute(a);for(var l in n)"class"!=l&&"style"!=l&&"nodeName"!=l&&n[l]!=t[l]&&e.setAttribute(l,n[l]);if(t.class!=n.class){for(var o=t.class?t.class.split(" ").filter(Boolean):ie,r=n.class?n.class.split(" ").filter(Boolean):ie,i=0;i<o.length;i++)-1==r.indexOf(o[i])&&e.classList.remove(o[i]);for(var c=0;c<r.length;c++)-1==o.indexOf(r[c])&&e.classList.add(r[c])}if(t.style!=n.style){if(t.style){var u,s=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;while(u=s.exec(t.style))e.style.removeProperty(u[1])}n.style&&(e.style.cssText+=n.style)}}function xe(e,t,n){return we(e,e,ge,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 Te(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var Me=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=Oe(e.node.content,e.children)};function Oe(e,t){for(var n=e.childCount,a=t.length,l=new Map;n>0&&a>0;a--){var o=t[a-1],r=o.node;if(r){if(r!=e.child(n-1))break;--n,l.set(o,n)}}return{index:n,matched:l}}function Se(e,t){return e.type.side-t.type.side}function Ee(e,t,n,a){var l=t.locals(e),o=0;if(0!=l.length)for(var r=0,i=[],c=null,u=0;;){if(r<l.length&&l[r].to==o){var s=l[r++],d=void 0;while(r<l.length&&l[r].to==o)(d||(d=[s])).push(l[r++]);if(d){d.sort(Se);for(var p=0;p<d.length;p++)n(d[p],u,!!c)}else n(s,u,!!c)}var h=void 0,f=void 0;if(c)f=-1,h=c,c=null;else{if(!(u<e.childCount))break;f=u,h=e.child(u++)}for(var m=0;m<i.length;m++)i[m].to<=o&&i.splice(m--,1);while(r<l.length&&l[r].from<=o&&l[r].to>o)i.push(l[r++]);var v=o+h.nodeSize;if(h.isText){var b=v;r<l.length&&l[r].from<b&&(b=l[r].from);for(var g=0;g<i.length;g++)i[g].to<b&&(b=i[g].to);b<v&&(c=h.cut(b-o),h=h.cut(0,b-o),v=b,f=-1)}var y=i.length?h.isInline&&!h.isLeaf?i.filter((function(e){return!e.inline})):i.slice():ie;a(h,y,t.forChild(o,h),f),o=v}else for(var w=0;w<e.childCount;w++){var k=e.child(w);a(k,l,t.forChild(o,k),w),o+=k.nodeSize}}function Ne(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 De(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 Ae(e,t,n,a){for(var l=0,o=0;l<e.childCount&&o<=a;){var r=e.child(l++),i=o;if(o+=r.nodeSize,r.isText){var c=r.text;while(l<e.childCount){var u=e.child(l++);if(o+=u.nodeSize,!u.isText)break;c+=u.text}if(o>=n){var s=c.lastIndexOf(t,a-i);if(s>=0&&s+t.length+i>=n)return i+s}}}return-1}function Le(e,t,n,a,l){for(var o=[],r=0,i=0;r<e.length;r++){var c=e[r],u=i,s=i+=c.size;u>=n||s<=t?o.push(c):(u<t&&o.push(c.slice(0,t-u,a)),l&&(o.push(l),l=null),s>n&&o.push(c.slice(n-u,c.size,a)))}return o}function Ie(e,t){var n=e.root.getSelection(),l=e.state.doc;if(!n.focusNode)return null;var o=e.docView.nearestDesc(n.focusNode),r=o&&0==o.size,i=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(i<0)return null;var c,u,s=l.resolve(i);if(x(n)){c=s;while(o&&!o.node)o=o.parent;if(o&&o.node.isAtom&&a["c"].isSelectable(o.node)&&o.parent&&(!o.node.isInline||!w(n.focusNode,n.focusOffset,o.dom))){var d=o.posBefore;u=new a["c"](i==d?s:l.resolve(d))}}else{var p=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(p<0)return null;c=l.resolve(p)}if(!u){var h="pointer"==t||e.state.selection.head<s.pos&&!r?1:-1;u=$e(e,c,s,h)}return u}function Re(e){return e.editable?e.hasFocus():We(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function je(e,t){var n=e.state.selection;if(_e(e,n),Re(e)){if(e.domObserver.disconnectSelection(),e.cursorWrapper)ze(e);else{var l,o,r=n.anchor,i=n.head;!Be||n instanceof a["h"]||(n.$from.parent.inlineContent||(l=Pe(e,n.from)),n.empty||n.$from.parent.inlineContent||(o=Pe(e,n.to))),e.docView.setSelection(r,i,e.root,t),Be&&(l&&Fe(l),o&&Fe(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&He(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}Me.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}},Me.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},Me.prototype.syncToMarks=function(e,t,n){var a=0,l=this.stack.length>>1,o=Math.min(l,e.length);while(a<o&&(a==l-1?this.top:this.stack[a+1<<1]).matchesMark(e[a])&&!1!==e[a].type.spec.spanning)a++;while(a<l)this.destroyRest(),this.top.dirty=te,this.index=this.stack.pop(),this.top=this.stack.pop(),l--;while(l<e.length){this.stack.push(this.top,this.index+1);for(var r=-1,i=this.index;i<Math.min(this.index+3,this.top.children.length);i++)if(this.top.children[i].matchesMark(e[l])){r=i;break}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{var c=se.create(this.top,e[l],t,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,l++}},Me.prototype.findNodeMatch=function(e,t,n,a){var l=this.top.children,o=-1;if(a>=this.preMatch.index){for(var r=this.index;r<l.length;r++)if(l[r].matchesNode(e,t,n)){o=r;break}}else for(var i=this.index,c=Math.min(l.length,i+1);i<c;i++){var u=l[i];if(u.matchesNode(e,t,n)&&!this.preMatch.matched.has(u)){o=i;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)},Me.prototype.updateNodeAt=function(e,t,n,a,l){var o=this.top.children[a];return!!o.update(e,t,n,l)&&(this.destroyBetween(this.index,a),this.index=a+1,!0)},Me.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 a=this.index;a<this.top.children.length;a++)if(this.top.children[a]==n)return a;return-1}e=t}},Me.prototype.updateNextNode=function(e,t,n,a,l){for(var o=this.index;o<this.top.children.length;o++){var r=this.top.children[o];if(r instanceof de){var i=this.preMatch.matched.get(r);if(null!=i&&i!=l)return!1;var c=r.dom,u=this.lock&&(c==this.lock||1==c.nodeType&&c.contains(this.lock.parentNode))&&!(e.isText&&r.node&&r.node.isText&&r.nodeDOM.nodeValue==e.text&&r.dirty!=le&&Ce(t,r.outerDeco));if(!u&&r.update(e,t,n,a))return this.destroyBetween(this.index,o),r.dom!=c&&(this.changed=!0),this.index++,!0;break}}return!1},Me.prototype.addNode=function(e,t,n,a,l){this.top.children.splice(this.index++,0,de.create(this.top,e,t,n,a,l)),this.changed=!0},Me.prototype.placeWidget=function(e,t,n){var a=this.index<this.top.children.length?this.top.children[this.index]:null;if(!a||!a.matchesWidget(e)||e!=a.widget&&a.widget.type.toDOM.parentNode){var l=new ce(this.top,e,t,n);this.top.children.splice(this.index++,0,l),this.changed=!0}else this.index++},Me.prototype.addTextblockHacks=function(){var e=this.top.children[this.index-1];while(e instanceof se)e=e.children[e.children.length-1];e&&e instanceof he&&!/\n$/.test(e.node.text)||(r.safari&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},Me.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);this.top.children.splice(this.index++,0,new fe(this.top,ie,t,null)),this.changed=!0}};var Be=r.safari||r.chrome&&r.chrome_version<63;function Pe(e,t){var n=e.docView.domFromPos(t,0),a=n.node,l=n.offset,o=l<a.childNodes.length?a.childNodes[l]:null,i=l?a.childNodes[l-1]:null;if(r.safari&&o&&"false"==o.contentEditable)return Ve(o);if((!o||"false"==o.contentEditable)&&(!i||"false"==i.contentEditable)){if(o)return Ve(o);if(i)return Ve(i)}}function Ve(e){return e.contentEditable="true",r.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Fe(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function He(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),a=n.anchorNode,l=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==a&&n.anchorOffset==l||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){Re(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}function ze(e){var t=e.root.getSelection(),n=document.createRange(),a=e.cursorWrapper.dom,l="IMG"==a.nodeName;l?n.setEnd(a.parentNode,p(a)+1):n.setEnd(a,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!l&&!e.state.selection.visible&&r.ie&&r.ie_version<=11&&(a.disabled=!0,a.disabled=!1)}function _e(e,t){if(t instanceof a["c"]){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qe(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qe(e)}function qe(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function $e(e,t,n,l){return e.someProp("createSelectionBetween",(function(a){return a(e,t,n)}))||a["h"].between(t,n,l)}function Ue(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 Je(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,l=n.$anchor,o=n.$head,r=t>0?l.max(o):l.min(o),i=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return i&&a["f"].findFrom(i,t)}function Ge(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Xe(e,t,n){var l=e.state.selection;if(!(l instanceof a["h"])){if(l instanceof a["c"]&&l.node.isInline)return Ge(e,new a["h"](t>0?l.$to:l.$from));var o=Ke(e.state,t);return!!o&&Ge(e,o)}if(!l.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var i=Ke(e.state,t);return!!(i&&i instanceof a["c"])&&Ge(e,i)}if(!(r.mac&&n.indexOf("m")>-1)){var c,u=l.$head,s=u.textOffset?null:t<0?u.nodeBefore:u.nodeAfter;if(!s||s.isText)return!1;var d=t<0?u.pos-s.nodeSize:u.pos;return!!(s.isAtom||(c=e.docView.descAt(d))&&!c.contentDOM)&&(a["c"].isSelectable(s)?Ge(e,new a["c"](t<0?e.state.doc.resolve(u.pos-s.nodeSize):u)):!!r.webkit&&Ge(e,new a["h"](e.state.doc.resolve(t<0?d:d+s.nodeSize))))}}function Ze(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 Ye(e){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n){var l,o,i=!1;for(r.gecko&&1==n.nodeType&&a<Ze(n)&&Qe(n.childNodes[a])&&(i=!0);;)if(a>0){if(1!=n.nodeType)break;var c=n.childNodes[a-1];if(Qe(c))l=n,o=--a;else{if(3!=c.nodeType)break;n=c,a=n.nodeValue.length}}else{if(tt(n))break;var u=n.previousSibling;while(u&&Qe(u))l=n.parentNode,o=p(u),u=u.previousSibling;if(u)n=u,a=Ze(n);else{if(n=n.parentNode,n==e.dom)break;a=0}}i?nt(e,t,n,a):l&&nt(e,t,l,o)}}function et(e){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n){for(var l,o,r=Ze(n);;)if(a<r){if(1!=n.nodeType)break;var i=n.childNodes[a];if(!Qe(i))break;l=n,o=++a}else{if(tt(n))break;var c=n.nextSibling;while(c&&Qe(c))l=c.parentNode,o=p(c)+1,c=c.nextSibling;if(c)n=c,a=0,r=Ze(n);else{if(n=n.parentNode,n==e.dom)break;a=r=0}}l&&nt(e,t,l,o)}}function tt(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function nt(e,t,n,a){if(x(t)){var l=document.createRange();l.setEnd(n,a),l.setStart(n,a),t.removeAllRanges(),t.addRange(l)}else t.extend&&t.extend(n,a);e.domObserver.setCurSelection();var o=e.state;setTimeout((function(){e.state==o&&je(e)}),50)}function at(e,t,n){var l=e.state.selection;if(l instanceof a["h"]&&!l.empty||n.indexOf("s")>-1)return!1;if(r.mac&&n.indexOf("m")>-1)return!1;var o=l.$from,i=l.$to;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var c=Ke(e.state,t);if(c&&c instanceof a["c"])return Ge(e,c)}if(!o.parent.inlineContent){var u=t<0?o:i,s=l instanceof a["a"]?a["f"].near(u,t):a["f"].findFrom(u,t);return!!s&&Ge(e,s)}return!1}function lt(e,t){if(!(e.state.selection instanceof a["h"]))return!0;var n=e.state.selection,l=n.$head,o=n.$anchor,r=n.empty;if(!l.sameParent(o))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var i=!l.textOffset&&(t<0?l.nodeBefore:l.nodeAfter);if(i&&!i.isText){var c=e.state.tr;return t<0?c.delete(l.pos-i.nodeSize,l.pos):c.delete(l.pos,l.pos+i.nodeSize),e.dispatch(c),!0}return!1}function ot(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function rt(e){if(r.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n&&1==n.nodeType&&0==a&&n.firstChild&&"false"==n.firstChild.contentEditable){var l=n.firstChild;ot(e,l,!0),setTimeout((function(){return ot(e,l,!1)}),20)}}}function it(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,a=it(t);return 8==n||r.mac&&72==n&&"c"==a?lt(e,-1)||Ye(e):46==n||r.mac&&68==n&&"c"==a?lt(e,1)||et(e):13==n||27==n||(37==n?Xe(e,-1,a)||Ye(e):39==n?Xe(e,1,a)||et(e):38==n?at(e,-1,a)||Ye(e):40==n?rt(e)||at(e,1,a)||et(e):a==(r.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function ut(e,t,n){var a=e.docView.parseRange(t,n),o=a.node,i=a.fromOffset,c=a.toOffset,u=a.from,s=a.to,d=e.root.getSelection(),p=null,h=d.anchorNode;if(h&&e.dom.contains(1==h.nodeType?h:h.parentNode)&&(p=[{node:h,offset:d.anchorOffset}],x(d)||p.push({node:d.focusNode,offset:d.focusOffset})),r.chrome&&8===e.lastKeyCode)for(var f=c;f>i;f--){var m=o.childNodes[f-1],v=m.pmViewDesc;if("BR"==m.nodeName&&!v){c=f;break}if(!v||v.size)break}var b=e.state.doc,g=e.someProp("domParser")||l["a"].fromSchema(e.state.schema),y=b.resolve(u),w=null,k=g.parse(o,{topNode:y.parent,topMatch:y.parent.contentMatchAt(y.index()),topOpen:!0,from:i,to:c,preserveWhitespace:!y.parent.type.spec.code||"full",editableContent:!0,findPositions:p,ruleFromNode:st,context:y});if(p&&null!=p[0].pos){var C=p[0].pos,T=p[1]&&p[1].pos;null==T&&(T=C),w={anchor:C+u,head:T+u}}return{doc:k,sel:w,from:u,to:s}}function st(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(r.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||r.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,l,o){if(t<0){var i=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,c=Ie(e,i);if(c&&!e.state.selection.eq(c)){var u=e.state.tr.setSelection(c);"pointer"==i?u.setMeta("pointer",!0):"key"==i&&u.scrollIntoView(),e.dispatch(u)}}else{var s=e.state.doc.resolve(t),d=s.sharedDepth(n);t=s.before(d+1),n=e.state.doc.resolve(n).after(d+1);var p=e.state.selection,h=ut(e,t,n);if(r.chrome&&e.cursorWrapper&&h.sel&&h.sel.anchor==e.cursorWrapper.deco.from){var f=e.cursorWrapper.deco.type.toDOM.nextSibling,m=f&&f.nodeValue?f.nodeValue.length:1;h.sel={anchor:h.sel.anchor+m,head:h.sel.anchor+m}}var v,b,g=e.state.doc,y=g.slice(h.from,h.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(v=e.state.selection.to,b="end"):(v=e.state.selection.from,b="start"),e.lastKeyCode=null;var w=vt(y.content,h.doc.content,h.from,v,b);if(!w){if(!(l&&p instanceof a["h"]&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||h.sel&&h.sel.anchor!=h.sel.head){if((r.ios&&e.lastIOSEnter>Date.now()-225||r.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(h.sel){var k=pt(e,e.state.doc,h.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}w={start:p.from,endA:p.to,endB:p.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&w.start==w.endB&&e.state.selection instanceof a["h"]&&(w.start>e.state.selection.from&&w.start<=e.state.selection.from+2?w.start=e.state.selection.from:w.endA<e.state.selection.to&&w.endA>=e.state.selection.to-2&&(w.endB+=e.state.selection.to-w.endA,w.endA=e.state.selection.to)),r.ie&&r.ie_version<=11&&w.endB==w.start+1&&w.endA==w.start&&w.start>h.from&&" "==h.doc.textBetween(w.start-h.from-1,w.start-h.from+1)&&(w.start--,w.endA--,w.endB--);var x,T=h.doc.resolveNoCache(w.start-h.from),M=h.doc.resolveNoCache(w.endB-h.from),O=T.sameParent(M)&&T.parent.inlineContent;if((r.ios&&e.lastIOSEnter>Date.now()-225&&(!O||o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!O&&T.pos<h.doc.content.size&&(x=a["f"].findFrom(h.doc.resolve(T.pos+1),1,!0))&&x.head==M.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,C(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>w.start&&ft(g,w.start,w.endA,T,M)&&e.someProp("handleKeyDown",(function(t){return t(e,C(8,"Backspace"))})))r.android&&r.chrome&&e.domObserver.suppressSelectionUpdates();else{r.chrome&&r.android&&w.toB==w.from&&(e.lastAndroidDelete=Date.now()),r.android&&!O&&T.start()!=M.start()&&0==M.parentOffset&&T.depth==M.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==w.endA&&(w.endB-=2,M=h.doc.resolveNoCache(w.endB-h.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,C(13,"Enter"))}))}),20));var S,E,N,D,A=w.start,L=w.endA;if(O)if(T.pos==M.pos)r.ie&&r.ie_version<=11&&0==T.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return je(e)}),20)),S=e.state.tr.delete(A,L),E=g.resolve(w.start).marksAcross(g.resolve(w.endA));else if(w.endA==w.endB&&(D=g.resolve(w.start))&&(N=ht(T.parent.content.cut(T.parentOffset,M.parentOffset),D.parent.content.cut(D.parentOffset,w.endA-D.start()))))S=e.state.tr,"add"==N.type?S.addMark(A,L,N.mark):S.removeMark(A,L,N.mark);else if(T.parent.child(T.index()).isText&&T.index()==M.index()-(M.textOffset?0:1)){var I=T.parent.textBetween(T.parentOffset,M.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,A,L,I)})))return;S=e.state.tr.insertText(I,A,L)}if(S||(S=e.state.tr.replace(A,L,h.doc.slice(w.start-h.from,w.endB-h.from))),h.sel){var R=pt(e,S.doc,h.sel);R&&!(r.chrome&&r.android&&e.composing&&R.empty&&(w.start!=w.endB||e.lastAndroidDelete<Date.now()-100)&&(R.head==A||R.head==S.mapping.map(L)-1)||r.ie&&R.empty&&R.head==A)&&S.setSelection(R)}E&&S.ensureMarks(E),e.dispatch(S.scrollIntoView())}}}function pt(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:$e(e,t.resolve(n.anchor),t.resolve(n.head))}function ht(e,t){for(var n,a,o,r=e.firstChild.marks,i=t.firstChild.marks,c=r,u=i,s=0;s<i.length;s++)c=i[s].removeFromSet(c);for(var d=0;d<r.length;d++)u=r[d].removeFromSet(u);if(1==c.length&&0==u.length)a=c[0],n="add",o=function(e){return e.mark(a.addToSet(e.marks))};else{if(0!=c.length||1!=u.length)return null;a=u[0],n="remove",o=function(e){return e.mark(a.removeFromSet(e.marks))}}for(var p=[],h=0;h<t.childCount;h++)p.push(o(t.child(h)));if(l["c"].from(p).eq(e))return{mark:a,type:n}}function ft(e,t,n,a,l){if(!a.parent.isTextblock||n-t<=l.pos-a.pos||mt(a,!0,!1)<l.pos)return!1;var o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;var r=e.resolve(mt(o,!0,!0));return!(!r.parent.isTextblock||r.pos>n||mt(r,!0,!1)<n)&&a.parent.content.cut(a.parentOffset).eq(r.parent.content)}function mt(e,t,n){var a=e.depth,l=t?e.end():e.pos;while(a>0&&(t||e.indexAfter(a)==e.node(a).childCount))a--,l++,t=!1;if(n){var o=e.node(a).maybeChild(e.indexAfter(a));while(o&&!o.isLeaf)o=o.firstChild,l++}return l}function vt(e,t,n,a,l){var o=e.findDiffStart(t,n);if(null==o)return null;var r=e.findDiffEnd(t,n+e.size,n+t.size),i=r.a,c=r.b;if("end"==l){var u=Math.max(0,o-Math.min(i,c));a-=i+u-o}if(i<o&&e.size<t.size){var s=a<=o&&a>=i?o-a:0;o-=s,c=o+(c-i),i=o}else if(c<o){var d=a<=o&&a>=c?o-a:0;o-=d,i=o+(i-c),c=o}return{start:o,endA:i,endB:c}}function bt(e,t){var n=[],a=t.content,o=t.openStart,r=t.openEnd;while(o>1&&r>1&&1==a.childCount&&1==a.firstChild.childCount){o--,r--;var i=a.firstChild;n.push(i.type.name,i.attrs!=i.type.defaultAttrs?i.attrs:null),a=i.content}var c=e.someProp("clipboardSerializer")||l["b"].fromSchema(e.state.schema),u=St(),s=u.createElement("div");s.appendChild(c.serializeFragment(a,{document:u}));var d,p=s.firstChild;while(p&&1==p.nodeType&&(d=Mt[p.nodeName.toLowerCase()])){for(var h=d.length-1;h>=0;h--){var f=u.createElement(d[h]);while(s.firstChild)f.appendChild(s.firstChild);s.appendChild(f)}p=s.firstChild}p&&1==p.nodeType&&p.setAttribute("data-pm-slice",o+" "+r+" "+JSON.stringify(n));var m=e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:s,text:m}}function gt(e,t,n,a,o){var i,c,u=o.parent.type.spec.code;if(!n&&!t)return null;var s=t&&(a||u||!n);if(s){if(e.someProp("transformPastedText",(function(e){t=e(t,u||a)})),u)return new l["j"](l["c"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0);var d=e.someProp("clipboardTextParser",(function(e){return e(t,o,a)}));if(d)c=d;else{var p=o.marks(),h=e.state,f=h.schema,m=l["b"].fromSchema(f);i=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach((function(e){i.appendChild(document.createElement("p")).appendChild(m.serializeNode(f.text(e,p)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),i=Et(n),r.webkit&&Nt(i);var v=i&&i.querySelector("[data-pm-slice]"),b=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!c){var g=e.someProp("clipboardParser")||e.someProp("domParser")||l["a"].fromSchema(e.state.schema);c=g.parseSlice(i,{preserveWhitespace:!(!s&&!b),context:o})}return c=b?Dt(Tt(c,+b[1],+b[2]),b[3]):l["j"].maxOpen(yt(c.content,o),!1),e.someProp("transformPasted",(function(e){c=e(c)})),c}function yt(e,t){if(e.childCount<2)return e;for(var n=function(n){var a=t.node(n),o=a.contentMatchAt(t.index(n)),r=void 0,i=[];if(e.forEach((function(e){if(i){var t,n=o.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&r.length&&kt(n,r,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=xt(i[i.length-1],r.length));var a=wt(e,n);i.push(a),o=o.matchType(a.type,a.attrs),r=n}}})),i)return{v:l["c"].from(i)}},a=t.depth;a>=0;a--){var o=n(a);if(o)return o.v}return e}function wt(e,t,n){void 0===n&&(n=0);for(var a=t.length-1;a>=n;a--)e=t[a].create(null,l["c"].from(e));return e}function kt(e,t,n,a,o){if(o<e.length&&o<t.length&&e[o]==t[o]){var r=kt(e,t,n,a.lastChild,o+1);if(r)return a.copy(a.content.replaceChild(a.childCount-1,r));var i=a.contentMatchAt(a.childCount);if(i.matchType(o==e.length-1?n.type:e[o+1]))return a.copy(a.content.append(l["c"].from(wt(n,e,o+1))))}}function xt(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,xt(e.lastChild,t-1)),a=e.contentMatchAt(e.childCount).fillBefore(l["c"].empty,!0);return e.copy(n.append(a))}function Ct(e,t,n,a,o,r){var i=t<0?e.firstChild:e.lastChild,c=i.content;return o<a-1&&(c=Ct(c,t,n,a,o+1,r)),o>=n&&(c=t<0?i.contentMatchAt(0).fillBefore(c,e.childCount>1||r<=o).append(c):c.append(i.contentMatchAt(i.childCount).fillBefore(l["c"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,i.copy(c))}function Tt(e,t,n){return t<e.openStart&&(e=new l["j"](Ct(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new l["j"](Ct(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Mt={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Ot=null;function St(){return Ot||(Ot=document.implementation.createHTMLDocument("title"))}function Et(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,a=St().createElement("div"),l=/<([a-z][^>\s]+)/i.exec(e);if((n=l&&Mt[l[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join("")),a.innerHTML=e,n)for(var o=0;o<n.length;o++)a=a.querySelector(n[o])||a;return a}function Nt(e){for(var t=e.querySelectorAll(r.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var a=t[n];1==a.childNodes.length&&" "==a.textContent&&a.parentNode&&a.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),a)}}function Dt(e,t){if(!e.size)return e;var n,a=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(s){return e}for(var o=e.content,r=e.openStart,i=e.openEnd,c=n.length-2;c>=0;c-=2){var u=a.nodes[n[c]];if(!u||u.hasRequiredAttrs())break;o=l["c"].from(u.create(n[c+1],o)),r++,i++}return new l["j"](o,r,i)}var At={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Lt=r.ie&&r.ie_version<=11,It=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};It.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},It.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Rt=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]);r.ie&&r.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 It,Lt&&(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};Rt.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Rt.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Rt.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,At),Lt&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Rt.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()}Lt&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Rt.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Rt.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Rt.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Rt.prototype.onSelectionChange=function(){if(Ue(this.view)){if(this.suppressingSelectionUpdates)return je(this.view);if(r.ie&&r.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()}},Rt.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Rt.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},Rt.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),a=-1,l=-1,o=!1,i=[];if(this.view.editable)for(var c=0;c<e.length;c++){var u=this.registerMutation(e[c],i);u&&(a=a<0?u.from:Math.min(u.from,a),l=l<0?u.to:Math.max(u.to,l),u.typeOver&&(o=!0))}if(r.gecko&&i.length>1){var s=i.filter((function(e){return"BR"==e.nodeName}));if(2==s.length){var d=s[0],p=s[1];d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}}(a>-1||n)&&(a>-1&&(this.view.docView.markDirty(a,l),Bt(this.view)),this.handleDOMChange(a,l,o,i),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||je(this.view),this.currentSelection.set(t))}},Rt.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 a=0;a<e.addedNodes.length;a++)t.push(e.addedNodes[a]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var l=e.previousSibling,o=e.nextSibling;if(r.ie&&r.ie_version<=11&&e.addedNodes.length)for(var i=0;i<e.addedNodes.length;i++){var c=e.addedNodes[i],u=c.previousSibling,s=c.nextSibling;(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(l=u),(!s||Array.prototype.indexOf.call(e.addedNodes,s)<0)&&(o=s)}var d=l&&l.parentNode==e.target?p(l)+1:0,h=n.localPosFromDOM(e.target,d,-1),f=o&&o.parentNode==e.target?p(o):e.target.childNodes.length,m=n.localPosFromDOM(e.target,f,1);return{from:h,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 jt=!1;function Bt(e){jt||(jt=!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 Pt={},Vt={};function Ft(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 Rt(e,(function(t,n,a,l){return dt(e,t,n,a,l)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=Pt[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!$t(e,t)||qt(e,t)||!e.editable&&t.type in Vt||n(e,t)})};for(var n in Pt)t(n);r.safari&&e.dom.addEventListener("input",(function(){return null})),_t(e)}function Ht(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function zt(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}function _t(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return qt(e,t)})}))}function qt(e,t){return e.someProp("handleDOMEvents",(function(n){var a=n[t.type];return!!a&&(a(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 Ut(e,t){qt(e,t)||!Pt[t.type]||!e.editable&&t.type in Vt||Pt[t.type](e,t)}function Wt(e){return{left:e.clientX,top:e.clientY}}function Jt(e,t){var n=t.x-e.clientX,a=t.y-e.clientY;return n*n+a*a<100}function Kt(e,t,n,a,l){if(-1==a)return!1;for(var o=e.state.doc.resolve(a),r=function(a){if(e.someProp(t,(function(t){return a>o.depth?t(e,n,o.nodeAfter,o.before(a),l,!0):t(e,n,o.node(a),o.before(a),l,!1)})))return{v:!0}},i=o.depth+1;i>0;i--){var c=r(i);if(c)return c.v}return!1}function Gt(e,t,n){e.focused||e.focus();var a=e.state.tr.setSelection(t);"pointer"==n&&a.setMeta("pointer",!0),e.dispatch(a)}function Xt(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),l=n.nodeAfter;return!!(l&&l.isAtom&&a["c"].isSelectable(l))&&(Gt(e,new a["c"](n),"pointer"),!0)}function Zt(e,t){if(-1==t)return!1;var n,l,o=e.state.selection;o instanceof a["c"]&&(n=o.node);for(var r=e.state.doc.resolve(t),i=r.depth+1;i>0;i--){var c=i>r.depth?r.nodeAfter:r.node(i);if(a["c"].isSelectable(c)){l=n&&o.$from.depth>0&&i>=o.$from.depth&&r.before(o.$from.depth+1)==o.$from.pos?r.before(o.$from.depth):r.before(i);break}}return null!=l&&(Gt(e,a["c"].create(e.state.doc,l),"pointer"),!0)}function Qt(e,t,n,a,l){return Kt(e,"handleClickOn",t,n,a)||e.someProp("handleClick",(function(n){return n(e,t,a)}))||(l?Zt(e,n):Xt(e,n))}function Yt(e,t,n,a){return Kt(e,"handleDoubleClickOn",t,n,a)||e.someProp("handleDoubleClick",(function(n){return n(e,t,a)}))}function en(e,t,n,a){return Kt(e,"handleTripleClickOn",t,n,a)||e.someProp("handleTripleClick",(function(n){return n(e,t,a)}))||tn(e,n,a)}function tn(e,t,n){if(0!=n.button)return!1;var l=e.state.doc;if(-1==t)return!!l.inlineContent&&(Gt(e,a["h"].create(l,0,l.content.size),"pointer"),!0);for(var o=l.resolve(t),r=o.depth+1;r>0;r--){var i=r>o.depth?o.nodeAfter:o.node(r),c=o.before(r);if(i.inlineContent)Gt(e,a["h"].create(l,c+1,c+1+i.content.size),"pointer");else{if(!a["c"].isSelectable(i))continue;Gt(e,a["c"].create(l,c),"pointer")}return!0}}function nn(e){return sn(e)}Vt.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!on(e,t))if(229!=t.keyCode&&e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!r.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)}},Vt.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},Vt.keypress=function(e,t){if(!(on(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||r.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof a["h"])||!n.$from.sameParent(n.$to)){var l=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,l)}))||e.dispatch(e.state.tr.insertText(l).scrollIntoView()),t.preventDefault()}}};var an=r.mac?"metaKey":"ctrlKey";Pt.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=nn(e),a=Date.now(),l="singleClick";a-e.lastClick.time<500&&Jt(t,e.lastClick)&&!t[an]&&("singleClick"==e.lastClick.type?l="doubleClick":"doubleClick"==e.lastClick.type&&(l="tripleClick")),e.lastClick={time:a,x:t.clientX,y:t.clientY,type:l};var o=e.posAtCoords(Wt(t));o&&("singleClick"==l?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new ln(e,o,t,n)):("doubleClick"==l?Yt:en)(e,o.pos,o.inside,t)?t.preventDefault():Ht(e,"pointer"))};var ln=function(e,t,n,l){var o,i,c=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=l,this.selectNode=n[an],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{var u=e.state.doc.resolve(t.pos);o=u.parent,i=u.depth?u.before():0}this.mightDrag=null;var s=l?null:n.target,d=s?e.docView.nearestDesc(s,!0):null;this.target=d?d.dom:null;var p=e.state,h=p.selection;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||h instanceof a["c"]&&h.from<=i&&h.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&r.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 on(e,t){return!!e.composing||!!(r.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ln.prototype.done=function(){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.view.mouseDown=null},ln.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(Wt(e))),this.allowDefault||!t?Ht(this.view,"pointer"):Qt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||r.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||r.chrome&&!(this.view.state.selection instanceof a["h"])&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Gt(this.view,a["f"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Ht(this.view,"pointer")}},ln.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()},Pt.touchdown=function(e){nn(e),Ht(e,"pointer")},Pt.contextmenu=function(e){return nn(e)};var rn=r.android?5e3:-1;function cn(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return sn(e)}),t))}function un(e){e.composing=!1;while(e.compositionNodes.length>0)e.compositionNodes.pop().markParentsDirty()}function sn(e,t){if(e.domObserver.forceFlush(),un(e),t||e.docView.dirty){var n=Ie(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}function dn(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 a=getSelection(),l=document.createRange();l.selectNodeContents(t),e.dom.blur(),a.removeAllRanges(),a.addRange(l),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}Vt.compositionstart=Vt.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(),sn(e,!0),e.markCursor=null;else if(sn(e),r.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var a=e.root.getSelection(),l=a.focusNode,o=a.focusOffset;l&&1==l.nodeType&&0!=o;){var i=o<0?l.lastChild:l.childNodes[o-1];if(!i)break;if(3==i.nodeType){a.collapse(i,i.nodeValue.length);break}l=i,o=-1}e.composing=!0}cn(e,rn)},Vt.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,cn(e,20))};var pn=r.ie&&r.ie_version<15||r.ios&&r.webkit_version<604;function hn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function fn(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,a=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(a.contentEditable="true"),a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout((function(){e.focus(),a.parentNode&&a.parentNode.removeChild(a),n?mn(e,a.value,null,t):mn(e,a.textContent,a.innerHTML,t)}),50)}}function mn(e,t,n,a){var o=gt(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,a,o||l["j"].empty)})))return!0;if(!o)return!1;var r=hn(o),i=r?e.state.tr.replaceSelectionWith(r,e.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(i.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Pt.copy=Vt.cut=function(e,t){var n=e.state.selection,a="cut"==t.type;if(!n.empty){var l=pn?null:t.clipboardData,o=n.content(),r=bt(e,o),i=r.dom,c=r.text;l?(t.preventDefault(),l.clearData(),l.setData("text/html",i.innerHTML),l.setData("text/plain",c)):dn(e,i),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},Vt.paste=function(e,t){var n=pn?null:t.clipboardData;n&&mn(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():fn(e,t)};var vn=function(e,t){this.slice=e,this.move=t},bn=r.mac?"altKey":"ctrlKey";for(var gn in Pt.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var l=e.state.selection,o=l.empty?null:e.posAtCoords(Wt(t));if(o&&o.pos>=l.from&&o.pos<=(l instanceof a["c"]?l.to-1:l.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(a["c"].create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var r=e.docView.nearestDesc(t.target,!0);r&&r.node.type.spec.draggable&&r!=e.docView&&e.dispatch(e.state.tr.setSelection(a["c"].create(e.state.doc,r.posBefore)))}var i=e.state.selection.content(),c=bt(e,i),u=c.dom,s=c.text;t.dataTransfer.clearData(),t.dataTransfer.setData(pn?"Text":"text/html",u.innerHTML),t.dataTransfer.effectAllowed="copyMove",pn||t.dataTransfer.setData("text/plain",s),e.dragging=new vn(i,!t[bn])}},Pt.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},Vt.dragover=Vt.dragenter=function(e,t){return t.preventDefault()},Vt.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var r=e.posAtCoords(Wt(t));if(r){var i=e.state.doc.resolve(r.pos);if(i){var c=n&&n.slice;c?e.someProp("transformPasted",(function(e){c=e(c)})):c=gt(e,t.dataTransfer.getData(pn?"Text":"text/plain"),pn?null:t.dataTransfer.getData("text/html"),!1,i);var u=n&&!t[bn];if(e.someProp("handleDrop",(function(n){return n(e,t,c||l["j"].empty,u)})))t.preventDefault();else if(c){t.preventDefault();var s=c?Object(o["h"])(e.state.doc,i.pos,c):i.pos;null==s&&(s=i.pos);var d=e.state.tr;u&&d.deleteSelection();var p=d.mapping.map(s),h=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,f=d.doc;if(h?d.replaceRangeWith(p,p,c.content.firstChild):d.replaceRange(p,p,c),!d.doc.eq(f)){var m=d.doc.resolve(p);if(h&&a["c"].isSelectable(c.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(c.content.firstChild))d.setSelection(new a["c"](m));else{var v=d.mapping.map(s);d.mapping.maps[d.mapping.maps.length-1].forEach((function(e,t,n,a){return v=a})),d.setSelection($e(e,m,d.doc.resolve(v)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}}}}}},Pt.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())&&je(e)}),20))},Pt.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},Pt.beforeinput=function(e,t){if(r.chrome&&r.android&&"deleteContentBackward"==t.inputType){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,a=t.$cursor;a&&a.pos>0&&e.dispatch(e.state.tr.delete(a.pos-1,a.pos).scrollIntoView())}}),50)}},Vt)Pt[gn]=Vt[gn];function yn(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var a in t)if(!(a in e))return!1;return!0}var wn=function(e,t){this.spec=t||On,this.side=this.spec.side||0,this.toDOM=e};wn.prototype.map=function(e,t,n,a){var l=e.mapResult(t.from+a,this.side<0?-1:1),o=l.pos,r=l.deleted;return r?null:new Cn(o-n,o-n,this)},wn.prototype.valid=function(){return!0},wn.prototype.eq=function(e){return this==e||e instanceof wn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&yn(this.spec,e.spec))};var kn=function(e,t){this.spec=t||On,this.attrs=e};kn.prototype.map=function(e,t,n,a){var l=e.map(t.from+a,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+a,this.spec.inclusiveEnd?1:-1)-n;return l>=o?null:new Cn(l,o,this)},kn.prototype.valid=function(e,t){return t.from<t.to},kn.prototype.eq=function(e){return this==e||e instanceof kn&&yn(this.attrs,e.attrs)&&yn(this.spec,e.spec)},kn.is=function(e){return e.type instanceof kn};var xn=function(e,t){this.spec=t||On,this.attrs=e};xn.prototype.map=function(e,t,n,a){var l=e.mapResult(t.from+a,1);if(l.deleted)return null;var o=e.mapResult(t.to+a,-1);return o.deleted||o.pos<=l.pos?null:new Cn(l.pos-n,o.pos-n,this)},xn.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),a=n.index,l=n.offset;return l==t.from&&l+e.child(a).nodeSize==t.to},xn.prototype.eq=function(e){return this==e||e instanceof xn&&yn(this.attrs,e.attrs)&&yn(this.spec,e.spec)};var Cn=function(e,t,n){this.from=e,this.to=t,this.type=n},Tn={spec:{configurable:!0},inline:{configurable:!0}};Cn.prototype.copy=function(e,t){return new Cn(e,t,this.type)},Cn.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},Cn.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Cn.widget=function(e,t,n){return new Cn(e,e,new wn(t,n))},Cn.inline=function(e,t,n,a){return new Cn(e,t,new kn(n,a))},Cn.node=function(e,t,n,a){return new Cn(e,t,new xn(n,a))},Tn.spec.get=function(){return this.type.spec},Tn.inline.get=function(){return this.type instanceof kn},Object.defineProperties(Cn.prototype,Tn);var Mn=[],On={},Sn=function(e,t){this.local=e&&e.length?e:Mn,this.children=t&&t.length?t:Mn};Sn.create=function(e,t){return t.length?jn(t,e,0,On):En},Sn.prototype.find=function(e,t,n){var a=[];return this.findInner(null==e?0:e,null==t?1e9:t,a,0,n),a},Sn.prototype.findInner=function(e,t,n,a,l){for(var o=0;o<this.local.length;o++){var r=this.local[o];r.from<=t&&r.to>=e&&(!l||l(r.spec))&&n.push(r.copy(r.from+a,r.to+a))}for(var i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){var c=this.children[i]+1;this.children[i+2].findInner(e-c,t-c,n,a+c,l)}},Sn.prototype.map=function(e,t,n){return this==En||0==e.maps.length?this:this.mapInner(e,t,0,0,n||On)},Sn.prototype.mapInner=function(e,t,n,a,l){for(var o,r=0;r<this.local.length;r++){var i=this.local[r].map(e,n,a);i&&i.type.valid(t,i)?(o||(o=[])).push(i):l.onRemove&&l.onRemove(this.local[r].spec)}return this.children.length?Dn(this.children,o,e,t,n,a,l):o?new Sn(o.sort(Bn)):En},Sn.prototype.add=function(e,t){return t.length?this==En?Sn.create(e,t):this.addInner(e,t,0):this},Sn.prototype.addInner=function(e,t,n){var a,l=this,o=0;e.forEach((function(e,r){var i,c=r+n;if(i=In(t,e,c)){a||(a=l.children.slice());while(o<a.length&&a[o]<r)o+=3;a[o]==r?a[o+2]=a[o+2].addInner(e,i,c+1):a.splice(o,0,r,r+e.nodeSize,jn(i,e,c+1,On)),o+=3}}));for(var r=An(o?Rn(t):t,-n),i=0;i<r.length;i++)r[i].type.valid(e,r[i])||r.splice(i--,1);return new Sn(r.length?this.local.concat(r).sort(Bn):this.local,a||this.children)},Sn.prototype.remove=function(e){return 0==e.length||this==En?this:this.removeInner(e,0)},Sn.prototype.removeInner=function(e,t){for(var n=this.children,a=this.local,l=0;l<n.length;l+=3){for(var o=void 0,r=n[l]+t,i=n[l+1]+t,c=0,u=void 0;c<e.length;c++)(u=e[c])&&u.from>r&&u.to<i&&(e[c]=null,(o||(o=[])).push(u));if(o){n==this.children&&(n=this.children.slice());var s=n[l+2].removeInner(o,r+1);s!=En?n[l+2]=s:(n.splice(l,3),l-=3)}}if(a.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var h=0;h<a.length;h++)a[h].eq(p,t)&&(a==this.local&&(a=this.local.slice()),a.splice(h--,1));return n==this.children&&a==this.local?this:a.length||n.length?new Sn(a,n):En},Sn.prototype.forChild=function(e,t){if(this==En)return this;if(t.isLeaf)return Sn.empty;for(var n,a,l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(n=this.children[l+2]);break}for(var o=e+1,r=o+t.content.size,i=0;i<this.local.length;i++){var c=this.local[i];if(c.from<r&&c.to>o&&c.type instanceof kn){var u=Math.max(o,c.from)-o,s=Math.min(r,c.to)-o;u<s&&(a||(a=[])).push(c.copy(u,s))}}if(a){var d=new Sn(a.sort(Bn));return n?new Nn([d,n]):d}return n||En},Sn.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Sn)||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},Sn.prototype.locals=function(e){return Pn(this.localsInner(e))},Sn.prototype.localsInner=function(e){if(this==En)return Mn;if(e.inlineContent||!this.local.some(kn.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof kn||t.push(this.local[n]);return t};var En=new Sn;Sn.empty=En,Sn.removeOverlap=Pn;var Nn=function(e){this.members=e};function Dn(e,t,n,a,l,o,r){for(var i=e.slice(),c=function(e,t,n,a){for(var r=0;r<i.length;r+=3){var c=i[r+1],u=void 0;-1==c||e>c+o||(t>=i[r]+o?i[r+1]=-1:n>=l&&(u=a-n-(t-e))&&(i[r]+=u,i[r+1]+=u))}},u=0;u<n.maps.length;u++)n.maps[u].forEach(c);for(var s=!1,d=0;d<i.length;d+=3)if(-1==i[d+1]){var p=n.map(e[d]+o),h=p-l;if(h<0||h>=a.content.size){s=!0;continue}var f=n.map(e[d+1]+o,-1),m=f-l,v=a.content.findIndex(h),b=v.index,g=v.offset,y=a.maybeChild(b);if(y&&g==h&&g+y.nodeSize==m){var w=i[d+2].mapInner(n,y,p+1,e[d]+o+1,r);w!=En?(i[d]=h,i[d+1]=m,i[d+2]=w):(i[d+1]=-2,s=!0)}else s=!0}if(s){var k=Ln(i,e,t||[],n,l,o,r),x=jn(k,a,0,r);t=x.local;for(var C=0;C<i.length;C+=3)i[C+1]<0&&(i.splice(C,3),C-=3);for(var T=0,M=0;T<x.children.length;T+=3){var O=x.children[T];while(M<i.length&&i[M]<O)M+=3;i.splice(M,0,x.children[T],x.children[T+1],x.children[T+2])}}return new Sn(t&&t.sort(Bn),i)}function An(e,t){if(!t||!e.length)return e;for(var n=[],a=0;a<e.length;a++){var l=e[a];n.push(new Cn(l.from+t,l.to+t,l.type))}return n}function Ln(e,t,n,a,l,o,r){function i(e,t){for(var o=0;o<e.local.length;o++){var c=e.local[o].map(a,l,t);c?n.push(c):r.onRemove&&r.onRemove(e.local[o].spec)}for(var u=0;u<e.children.length;u+=3)i(e.children[u+2],e.children[u]+t+1)}for(var c=0;c<e.length;c+=3)-1==e[c+1]&&i(e[c+2],t[c]+o+1);return n}function In(e,t,n){if(t.isLeaf)return null;for(var a=n+t.nodeSize,l=null,o=0,r=void 0;o<e.length;o++)(r=e[o])&&r.from>n&&r.to<a&&((l||(l=[])).push(r),e[o]=null);return l}function Rn(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function jn(e,t,n,a){var l=[],o=!1;t.forEach((function(t,r){var i=In(e,t,r+n);if(i){o=!0;var c=jn(i,t,n+r+1,a);c!=En&&l.push(r,r+t.nodeSize,c)}}));for(var r=An(o?Rn(e):e,-n).sort(Bn),i=0;i<r.length;i++)r[i].type.valid(t,r[i])||(a.onRemove&&a.onRemove(r[i].spec),r.splice(i--,1));return r.length||l.length?new Sn(r,l):En}function Bn(e,t){return e.from-t.from||e.to-t.to}function Pn(e){for(var t=e,n=0;n<t.length-1;n++){var a=t[n];if(a.from!=a.to)for(var l=n+1;l<t.length;l++){var o=t[l];if(o.from!=a.from){o.from<a.to&&(t==e&&(t=e.slice()),t[n]=a.copy(a.from,o.from),Vn(t,l,a.copy(o.from,a.to)));break}o.to!=a.to&&(t==e&&(t=e.slice()),t[l]=o.copy(o.from,a.to),Vn(t,l+1,o.copy(a.to,o.to)))}}return t}function Vn(e,t,n){while(t<e.length&&Bn(n,e[t])>0)t++;e.splice(t,0,n)}function Fn(e){var t=[];return e.someProp("decorations",(function(n){var a=n(e.state);a&&a!=En&&t.push(a)})),e.cursorWrapper&&t.push(Sn.create(e.state.doc,[e.cursorWrapper.deco])),Nn.from(t)}Nn.prototype.forChild=function(e,t){if(t.isLeaf)return Sn.empty;for(var n=[],a=0;a<this.members.length;a++){var l=this.members[a].forChild(e,t);l!=En&&(l instanceof Nn?n=n.concat(l.members):n.push(l))}return Nn.from(n)},Nn.prototype.eq=function(e){if(!(e instanceof Nn)||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},Nn.prototype.locals=function(e){for(var t,n=!0,a=0;a<this.members.length;a++){var l=this.members[a].localsInner(e);if(l.length)if(t){n&&(t=t.slice(),n=!1);for(var o=0;o<l.length;o++)t.push(l[o])}else t=l}return t?Pn(n?t:t.sort(Bn)):Mn},Nn.from=function(e){switch(e.length){case 0:return En;case 1:return e[0];default:return new Nn(e)}};var Hn=function(e,t){this._props=t,this.state=t.state,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=$n(this),this.markCursor=null,this.cursorWrapper=null,qn(this),this.nodeViews=Wn(this),this.docView=pe(this.state.doc,_n(this),Fn(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,Ft(this),this.pluginViews=[],this.updatePluginViews()},zn={props:{configurable:!0},root:{configurable:!0}};function _n(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var a in n)"class"==a?t.class+=" "+n[a]:t[a]||"contenteditable"==a||"nodeName"==a||(t[a]=String(n[a]))})),[Cn.node(0,e.state.doc.content.size,t)]}function qn(e){if(e.markCursor){var t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Cn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function $n(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function Un(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 Wn(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,a=0;for(var l in e){if(e[l]!=t[l])return!0;n++}for(var o in t)a++;return n!=a}zn.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},Hn.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&_t(this),this._props=e,this.updateStateInner(e.state,!0)},Hn.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var a in t.state=this.state,e)t[a]=e[a];this.update(t)},Hn.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Hn.prototype.updateStateInner=function(e,t){var n=this,l=this.state,o=!1,i=!1;if(e.storedMarks&&this.composing&&(un(this),i=!0),this.state=e,t){var c=Wn(this);Jn(c,this.nodeViews)&&(this.nodeViews=c,o=!0),_t(this)}this.editable=$n(this),qn(this);var u=Fn(this),s=_n(this),d=t?"reset":e.scrollToSelection>l.scrollToSelection?"to selection":"preserve",p=o||!this.docView.matchesNode(e.doc,s,u);!p&&e.selection.eq(l.selection)||(i=!0);var h="preserve"==d&&i&&null==this.dom.style.overflowAnchor&&E(this);if(i){this.domObserver.stop();var f=p&&(r.ie||r.chrome)&&!this.composing&&!l.selection.empty&&!e.selection.empty&&Un(l.selection,e.selection);if(p){var m=r.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!o&&this.docView.update(e.doc,s,u,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=pe(e.doc,s,u,this.dom,this)),m&&!this.trackWrites&&(f=!0)}f||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&Je(this))?je(this,f):(_e(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(l),"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 a["c"]?S(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),v):S(this,this.coordsAtPos(e.selection.head,1),v))}else h&&D(h)},Hn.prototype.destroyPluginViews=function(){var e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()},Hn.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.destroyPluginViews();for(var a=0;a<this.state.plugins.length;a++){var l=this.state.plugins[a];l.spec.view&&this.pluginViews.push(l.spec.view(this))}}},Hn.prototype.someProp=function(e,t){var n,a=this._props&&this._props[e];if(null!=a&&(n=t?t(a):a))return n;var l=this.state.plugins;if(l)for(var o=0;o<l.length;o++){var r=l[o].props[e];if(null!=r&&(n=t?t(r):r))return n}},Hn.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Hn.prototype.focus=function(){this.domObserver.stop(),this.editable&&I(this.dom),je(this),this.domObserver.start()},zn.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},Hn.prototype.posAtCoords=function(e){return z(this,e)},Hn.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),$(this,e,t)},Hn.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},Hn.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Hn.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var a=this.docView.posFromDOM(e,t,n);if(null==a)throw new RangeError("DOM position not inside the editor");return a},Hn.prototype.endOfTextblock=function(e,t){return ee(this,t||this.state,e)},Hn.prototype.destroy=function(){this.docView&&(zt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Fn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Hn.prototype.dispatchEvent=function(e){return Ut(this,e)},Hn.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Hn.prototype,zn)},5865:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Editor",(function(){return h6})),n.d(t,"EditorCore",(function(){return V3})),n.d(t,"default",(function(){return h6}));var a=n("304a"),l=n("576a"),o=n("0ac0"),r=n("5313"),i=n("7f06"),c=n("0010"),u=n("f95e"),s=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 p(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 h=function(){return h=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var l in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},h.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var a,l=0,o=t.length;l<o;l++)!a&&l in t||(a||(a=Array.prototype.slice.call(t,0,l)),a[l]=t[l]);return e.concat(a||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 a;for(a in n=n||null,e)if(e.hasOwnProperty(a)&&!1===t.call(n,e[a],a,e))break}var b=v;function g(e,t){var n,a,l,o,r=Object.prototype.hasOwnProperty;for(l=1,o=arguments.length;l<o;l+=1)for(a in n=arguments[l],n)r.call(n,a)&&(e[a]=n[a]);return e}var y=g;function w(e){return"string"===typeof e||e instanceof String}var k=w;function x(e){return e instanceof Array}var C=x;function T(e,t,n){var a=0,l=e.length;for(n=n||null;a<l;a+=1)if(!1===t.call(n,e[a],a,e))break}var M=T,O=C,S=M,E=b;function N(e,t,n){O(e)?S(e,t,n):E(e,t,n)}var D=N,A=k,L=D;function I(e,t,n){var a=e.style;A(t)?a[t]=n:L(t,(function(e,t){a[t]=e}))}var R=I,j=C;function B(e,t,n){var a,l;if(n=n||0,!j(t))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e,n);for(l=t.length,a=n;n>=0&&a<l;a+=1)if(t[a]===e)return a;return-1}var P=B;function V(e){return void 0===e}var F=V,H=F;function z(e){return e&&e.className?H(e.className.baseVal)?e.className:e.className.baseVal:""}var _=z,q=C,$=F;function U(e,t){t=q(t)?t.join(" "):t,t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),$(e.className.baseVal)?e.className=t:e.className.baseVal=t}var W=U,J=D,K=P,G=_,X=W;function Z(e){var t,n=Array.prototype.slice.call(arguments,1),a=e.classList,l=[];a?J(n,(function(t){e.classList.add(t)})):(t=G(e),t&&(n=[].concat(t.split(/\s+/),n)),J(n,(function(e){K(e,l)<0&&l.push(e)})),X(e,l))}var Q=Z,Y=M,ee=P,te=_,ne=W;function ae(e){var t,n,a=Array.prototype.slice.call(arguments,1),l=e.classList;l?Y(a,(function(e){l.remove(e)})):(t=te(e).split(/\s+/),n=[],Y(t,(function(e){ee(e,a)<0&&n.push(e)})),ne(e,n))}var le=ae;function oe(e){return"number"===typeof e||e instanceof Number}var re=oe;function ie(e){return null===e}var ce=ie,ue=b;function se(e,t){var n=document.createElement("img"),a="";return ue(t,(function(e,t){a+="&"+t+"="+e})),a=a.substring(1),n.src=e+"?"+a,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}var de=se,pe=F,he=de,fe=6048e5;function me(e){var t=(new Date).getTime();return t-e>fe}function ve(e,t){var n="https://www.google-analytics.com/collect",a=location.hostname,l="event",o="use",r="TOAST UI "+e+" for "+a+": Statistics",i=window.localStorage.getItem(r);(pe(window.tui)||!1!==window.tui.usageStatistics)&&(i&&!me(i)||(window.localStorage.setItem(r,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||he(n,{v:1,t:l,tid:t,cid:a,dp:a,dh:e,el:e,ec:o})}),1e3)))}var be=ve;/Mac/.test(navigator.platform);var ge=/[\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,Te=/[[\]]/g,Me=/(?:^|[^\\])\\(?!\\)/g,Oe='[&<>"]',Se=new RegExp(Oe,"g");function Ee(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function Ne(e){return Se.test(e)?e.replace(Se,Ee):e}function De(){be("editor","UA-129966929-1")}function Ae(e,t){return-1!==e.indexOf(t)}var Le=["rel","target","hreflang","type"],Ie={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 Re(e){if(!e)return null;var t={};return Le.forEach((function(n){F(e[n])||(t[n]=e[n])})),t}function je(e,t){for(var n="",a=0;a<t;a+=1)n+=e;return n}function Be(e){var t=!1;return b(Ie,(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(Te,(function(e,n){var a=t.some((function(e){return n>e[0]&&n<e[1]}));return a?e:"\\"+e}))}function Ve(e){var t=function(e){return"\\"+e},n=function(e){return e+"\\"},a=e.replace(ge," ");return ke.test(a)&&(a=a.replace(ke,t)),Me.test(a)&&(a=a.replace(Me,n)),a=a.replace(xe,t),we.test(a)&&(a=a.replace(we,t)),Be(a)&&(a=a.replace(ye,t)),a}function Fe(e){var t;return t=-1===e.indexOf('"')?'""':-1===e.indexOf("'")?"''":"()",t[0]+e+t[1]}function He(e){return ce(e)||F(e)}function ze(e,t){if(null===e&&e===t)return!0;if("object"!==typeof e||"object"!==typeof t||He(e)||He(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 _e(e){return e[e.length-1]}function qe(e,t,n){return e>=t&&e<=n}function $e(e){return"object"===typeof e&&null!==e}function Ue(e,t){var n=h({},e);return e&&t&&Object.keys(t).forEach((function(e){$e(n[e])?Array.isArray(t[e])?n[e]=We(t[e]):n.hasOwnProperty(e)?n[e]=Ue(n[e],t[e]):n[e]=Je(t[e]):n[e]=t[e]})),n}function We(e){return e.map((function(e){return $e(e)?Array.isArray(e)?We(e):Je(e):e}))}function Je(e){var t=Object.keys(e);return t.length?t.reduce((function(t,n){return $e(e[n])?t[n]=Array.isArray(e[n])?We(e[n]):Je(e[n]):t[n]=e[n],t}),{}):e}function Ke(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]:Ke(e[n],t[n]):e[n]=t[n]})),e}function Ge(e,t){return e>t?[t,e]:[e,t]}function Xe(e){var t=/^\s(\S*)/g;return t.test(e)}function Ze(e){var t=/(\S*)\s$/g;return t.test(e)}var Qe=M;function Ye(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){t=[],Qe(e,(function(e){t.push(e)}))}return t}var et=Ye;function tt(e,t){var n=e.nodes.paragraph;return t?n.create(null,k(t)?e.text(t):t):n.createAndFill()}function nt(e,t,n){return e.text(t,n)}function at(e,t,n){void 0===n&&(n=t);var a=e.doc.content.size,l=a>0?a-1:1;return r["h"].create(e.doc,Math.min(t,l),Math.min(n,l))}function lt(e,t,n){var a=t.pos;return e.replaceWith(a,a,tt(n)),e.setSelection(at(e,a+1))}function ot(e){for(var t=e.state,n=e.from,l=e.startIndex,o=e.endIndex,r=e.createText,i=t.tr,c=t.doc,u=t.schema,s=l;s<=o;s+=1){var d=c.child(s),p=d.nodeSize,h=d.textContent,f=d.content,m=r(h),v=m?nt(u,m):a["c"].empty,b=i.mapping.map(n),g=b+f.size;i.replaceWith(b,g,v),n+=p}return i}function rt(e,t,n,a){var l=n.length;e.split(t).delete(t-l,t).insert(e.mapping.map(t),a).setSelection(at(e,e.mapping.map(t)-l))}function it(e){return e.sourcepos[0][0]}function ct(e){return e.sourcepos[1][0]}function ut(e){return e.sourcepos[0][1]}function st(e){return e.sourcepos[1][1]}function dt(e){var t=e.type;return"htmlBlock"===t||"htmlInline"===t}function pt(e){var t=e.type;return"strike"===t||"strong"===t||"emph"===t||"code"===t||"link"===t||"image"===t}function ht(e){return e&&"codeBlock"===e.type}function ft(e){return e&&("item"===e.type||"list"===e.type)}function mt(e){return ft(e)&&"ordered"===e.listData.type}function vt(e){return ft(e)&&"ordered"!==e.listData.type}function bt(e){return e&&("tableCell"===e.type||"tableDelimCell"===e.type)}function gt(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 yt(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 wt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type)t(e),e=e.parent}function kt(e,t){return[e[0],e[1]+t]}function xt(e,t){return[e[0],t]}function Ct(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,a=n.destination,l=n.title,o="link"===e.type?"":"!";return o+"["+t+"]("+a+(l?' "'+l+'"':"")+")";default:return null}}function Tt(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 Mt(e){var t=[],n=e.walker(),a=null;while(a=n.next()){var l=a.node;"text"===l.type&&t.push(l.literal)}return t.join("")}var Ot=[],St={},Et=/\$\$widget\d+\s/;function Nt(e){var t=e.search(Et);if(-1!==t){var n=e.substring(t),a=n.replace(Et,"").replace("$$","");e=e.substring(0,t),e+=Nt(a)}return e}function Dt(e,t){return"$$"+e+" "+t+"$$"}function At(e,t){var n=St[e],a=n.rule,l=n.toDOM,o=Nt(t).match(a);return o&&(t=o[0]),l(t)}function Lt(){return Ot}function It(e){Ot=e,Ot.forEach((function(e,t){St["widget"+t]=e}))}function Rt(e,t,n,a){return e.concat(jt(t,n,a))}function jt(e,t,n){void 0===n&&(n=0);var a=[],l=(Ot[n]||{}).rule,o=n+1;if(e=Nt(e),l&&l.test(e)){var r=void 0;while(-1!==(r=e.search(l))){var i=e.substring(0,r);i&&(a=Rt(a,i,t,o)),e=e.substring(r);var c=e.match(l)[0],u="widget"+n;a.push(t.nodes.widget.create({info:u},t.text(Dt(u,c)))),e=e.substring(c.length)}e&&(a=Rt(a,e,t,o))}else e&&(a=n<Ot.length-1?Rt(a,e,t,o):[t.text(e)]);return a}function Bt(e){var t,n="",a=e.walker();while(t=a.next()){var l=t.node,o=t.entering;o&&(l!==e&&"text"!==l.type?(n+=Ct(l),a.resumeAt(e,!1),a.next()):"text"===l.type&&(n+=l.literal))}return n}function Pt(){return{deleteSelection:function(){return c["c"]},selectAll:function(){return c["g"]},undo:function(){return s["c"]},redo:function(){return s["b"]}}}function Vt(e){return new r["d"]({props:{decorations:function(t){var n=t.doc;if(e.text&&1===n.childCount&&n.firstChild.isTextblock&&0===n.firstChild.content.size){var a=document.createElement("span");return Q(a,"placeholder"),e.className&&Q(a,e.className),a.textContent=e.text,l["b"].create(n,[l["a"].widget(1,a)])}return null}}})}var Ft=P,Ht=_;function zt(e,t){var n;return e.classList?e.classList.contains(t):(n=Ht(e).split(/\s+/),Ft(t,n)>-1)}var _t=zt,qt=P,$t=et,Ut=Element.prototype,Wt=Ut.matches||Ut.webkitMatchesSelector||Ut.mozMatchesSelector||Ut.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return qt(this,$t(t.querySelectorAll(e)))>-1};function Jt(e,t){return Wt.call(e,t)}var Kt=Jt,Gt="[A-Za-z][A-Za-z0-9-]*",Xt="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zt="[^\"'=<>`\\x00-\\x20]+",Qt="'[^']*'",Yt='"[^"]*"',en="(?:"+Zt+"|"+Qt+"|"+Yt+")",tn="(?:\\s*=\\s*"+en+")",nn="(?:\\s+"+Xt+tn+"?)",an="<("+Gt+")("+nn+")*\\s*/?>",ln="</("+Gt+")\\s*[>]",on="(?:"+an+"|"+ln+")",rn=new RegExp("^"+on,"i"),cn=/<br\s*\/*>/i,un=/<! ---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,sn="</p><p>",dn="a";function pn(e,t,n){var a=parseInt(e.left,10),l=parseInt(e.top,10),o=parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),r=parseInt(e.height,10)+parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10);return t>=a&&t<=a+o&&n>=l&&n<=l+r}var hn="toastui-editor-";function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],a=0,l=e;a<l.length;a++){var o=l[a],r=void 0;r=Array.isArray(o)?o[0]?o[1]:null:o,r&&n.push(""+hn+r)}return n.join(" ")}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.map((function(e){return hn+"md-"+e})).join(" ")}function vn(e){return(null===e||void 0===e?void 0:e.nodeType)===Node.TEXT_NODE}function bn(e){return e&&e.nodeType===Node.ELEMENT_NODE}function gn(e,t){var n=et(e.querySelectorAll(t));return n.length?n:[]}function yn(e,t){t=C(t)?et(t):[t],t.forEach((function(t){e.appendChild(t)}))}function wn(e,t){t.parentNode&&t.parentNode.insertBefore(e,t)}function kn(e){e.parentNode&&e.parentNode.removeChild(e)}function xn(e){var t=[];while(e.firstChild)t.push(e.firstChild),e.parentNode&&e.parentNode.insertBefore(e.firstChild,e);return kn(e),t}function Cn(e,t,n){F(n)&&(n=!_t(e,t));var a=n?Q:le;a(e,t)}function Tn(e,t){var n=document.createElement("div");k(e)?n.innerHTML=e:n.appendChild(e);var a=n.firstChild;return t&&t.appendChild(a),a}function Mn(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 On(e,t){var n;n=k(t)?function(e){return Kt(e,t)}:function(e){return e===t};while(e&&e!==document){if(bn(e)&&n(e))return e;e=e.parentNode}return null}function Sn(e,t){var n=0,a=0;while(e&&e!==t){var l=e.offsetTop,o=e.offsetLeft,r=e.offsetParent;if(n+=l,a+=o,r===t.offsetParent)break;e=e.offsetParent}return{offsetTop:n,offsetLeft:a}}function En(e,t){Object.keys(e).forEach((function(n){He(e[n])?t.removeAttribute(n):t.setAttribute(n,e[n])}))}function Nn(e){var t=e.replace(/<p><br\s*\/*><\/p>/gi,"<p></p>"),n=new RegExp(on,"ig"),a=t.match(n);return null===a||void 0===a||a.forEach((function(e,n){if(cn.test(e)){var l=sn;if(n){var o=a[n-1],r=o.match(an);if(r&&!/br/i.test(r[1])){var i=r[1];l="</"+i+"><"+i+">"}}t=t.replace(cn,l)}})),t}var Dn=new r["e"]("widget"),An=5,Ln=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=On(e.dom.parentElement,"."+fn("defaultUI"))})),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return e.prototype.update=function(e){var t=Dn.getState(e.state);if(this.removeWidget(),t){var n=t.node,a=t.style,l=e.coordsAtPos(t.pos),o=l.top,r=l.left,i=l.bottom,c=i-o,u=this.rootEl.getBoundingClientRect(),s=o-u.top;R(n,{opacity:"0"}),this.rootEl.appendChild(n),R(n,{position:"absolute",left:r-u.left+An+"px",top:("bottom"===a?s+c-An:s-c)+"px",opacity:"1"}),this.popup=n,e.focus()}},e.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},e}();function In(e){return new r["d"]({key:Dn,state:{init:function(){return null},apply:function(e){return e.getMeta("widget")}},view:function(t){return new Ln(t,e)}})}function Rn(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 a=function(n,a){e.emit("command","addImage",{imageUrl:n,altText:a||t.name||"image"})};e.emit("addImageBlobHook",t,a,n)}function Bn(e){var t=et(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 Pn(e){var t=e.eventEmitter;return new r["d"]({props:{handleDOMEvents:{drop:function(e,n){var a,l=null===(a=n.dataTransfer)||void 0===a?void 0:a.files;return l&&M(l,(function(e){return-1===e.type.indexOf("image")||(n.preventDefault(),n.stopPropagation(),jn(t,e,n.type),!1)})),!0}}}})}var Vn=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 Fn(e){var t=document.createElement("span"),n=At(e.attrs.info,e.textContent);return t.className="tui-widget",t.appendChild(n),{dom:t}}function Hn(e){return"widget"===e.type.name}var zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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+)/),a=n[1];return{info:a}}}]}},enumerable:!1,configurable:!0}),t}(Vn),_n=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 r["b"].create({schema:this.schema,plugins:this.createPlugins()})},e.prototype.initEvent=function(){var e=this,t=e.eventEmitter,n=e.view,a=e.editorType;n.dom.addEventListener("focus",(function(){return t.emit("focus",a)})),n.dom.addEventListener("blur",(function(){return t.emit("blur",a)}))},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=f(f([],this.keymaps),[Object(i["a"])(h({"Shift-Enter":c["a"].Enter},c["a"])),Object(s["a"])(),Vt(this.placeholder),In(this.eventEmitter),Pn(this.context)]);return e?t.concat(e):t},enumerable:!1,configurable:!0}),e.prototype.createInputRules=function(){var e=Lt(),t=e.map((function(e){var t=e.rule;return new u["a"](t,(function(e,n,a,l){var o=e.schema,r=e.tr,i=e.doc,c=n.input.match(new RegExp(t,"g")),u=i.resolve(a),s=u.parent,d=0;if(Hn(s)&&(s=u.node(u.depth-1)),s.forEach((function(e){return Hn(e)&&(d+=1)})),c.length>d){var p=_e(c),h=jt(p,o);return r.replaceWith(l-p.length+1,l,h)}return null}))}));return t.length?Object(u["b"])({rules:t}):null},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.createSchema=function(){return new a["i"]({nodes:this.specs.nodes,marks:this.specs.marks})},e.prototype.createKeymaps=function(e){var t=Pt(),n=t.undo,a=t.redo,l=this.specs.keymaps(e),o={"Mod-z":n(),"Shift-Mod-z":a()};return e?l.concat(Object(i["a"])(o)):l},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(at(t,1)).scrollIntoView()),e&&this.focus()},e.prototype.moveCursorToEnd=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(at(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){R(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){R(this.el,{minHeight:e+"px"})},e.prototype.getElement=function(){return this.el},e}();function qn(e){return e instanceof Function}var $n=qn,Un=["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 Wn(e,t,n){return e.focus(),t(n)(e.state,e.dispatch,e)}var Jn=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,a=t.name,l=t.schema;return h(h({},e),(n={},n[a]=l,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,a=t.name,l=t.schema;return h(h({},e),(n={},n[a]=l,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 a={},l=n.commands();return $n(l)?a[n.name]=function(t){return Wn(e,l,t)}:Object.keys(l).forEach((function(t){a[t]=function(n){return Wn(e,l[t],n)}})),h(h({},t),a)}),{}),a=Pt();return Object.keys(a).forEach((function(t){n[t]=function(n){return Wn(e,a[t],n)}})),t&&Object.keys(t).forEach((function(a){n[a]=function(n){return Wn(e,t[a],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){Ae(Un,e)||delete t[e]})),Object(i["a"])(t)}))},e.prototype.setContext=function(e){this.specs.forEach((function(t){t.setContext(e)}))},e}();function Kn(e){var t=e.from,n=e.to;return e instanceof r["a"]?[t+1,n-1]:[t,n]}function Gn(e){return e.index(0)+1}function Xn(e,t,n){void 0===n&&(n=1);var a=0;return e.forEach((function(e,l){Hn(e)&&l+2<t&&(a+=2*n)})),a}function Zn(e,t,n){void 0===n&&(n=t);var a=t===n,l=e.resolve(t),o=Gn(l),r=o,i=l.start(1),c=i;if(!a){var u=e.resolve(n===e.content.size?n-1:n);c=u.start(1),r=Gn(u),u.pos===e.content.size&&(n=e.content.size-2)}var s=Math.max(t-i+1,1),d=Math.max(n-c+1,1);return[[o,s+Xn(e.child(o-1),s,-1)],[r,d+Xn(e.child(r-1),d,-1)]]}function Qn(e,t){for(var n=[],a=0,l=0;a<t;a+=1){var o=e.child(a);n[a]=l,l+=o.nodeSize}return n}function Yn(e,t,n){var a=Qn(e,n[0]),l=t[0]-1,o=n[0]-1,r=e.child(l),i=e.child(o),c=a[l],u=a[o];return c+=t[1]+Xn(r,t[1]-1),u+=n[1]+Xn(i,n[1]-1),[c,Math.min(u,e.content.size)]}function ea(e){var t=e.$from,n=e.$to,a=e.from,l=e.to,o=t.doc;return e instanceof r["a"]&&(t=o.resolve(a+1),n=o.resolve(l-1)),0===t.depth&&(t=o.resolve(a-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 ta(e,t){for(var n=1,a=1,l=0,o=0;l<e.childCount;l+=1){var r=e.child(l).nodeSize;if(n=o+1,a=o+r-1,l===t)break;o+=r}return{startOffset:n,endOffset:a}}var na="heading",aa="blockQuote",la="listItem",oa="table",ra="tableCell",ia="codeBlock",ca="thematicBreak",ua="link",sa="code",da="meta",pa="delimiter",ha="taskDelimiter",fa="markedText",ma="html",va="customBlock",ba={strong:2,emph:1,strike:2};function ga(e,t,n,a){return{start:e,end:t,spec:{type:n,attrs:a}}}function ya(e,t,n){var a=e.level,l=e.headingType,o=[ga(t,n,na,{level:a})];return"atx"===l?o.push(ga(t,kt(t,a),pa)):o.push(ga(xt(n,0),n,na,{seText:!0})),o}function wa(e,t,n){var a=e.type,l=kt(t,ba[a]),o=kt(n,-ba[a]);return[ga(l,o,a),ga(t,l,pa),ga(o,n,pa)]}function ka(e,t,n,a){return[ga(e,t,ua),ga(xt(e,n[1]+1),xt(t,a),ua,{desc:!0}),ga(xt(t,a+2),kt(t,-1),ua,{url:!0})]}function xa(e,t,n){var a=e.lastChild,l=a?st(a)+1:3,o=kt(t,1);return f([ga(t,o,da)],ka(t,n,o,l))}function Ca(e,t,n){var a=e.lastChild,l=e.extendedAutolink,o=a?st(a)+1:2;return l?[ga(t,n,ua,{desc:!0})]:ka(t,n,t,o)}function Ta(e,t,n){var a=e.tickCount,l=kt(t,a),o=kt(n,-a);return[ga(t,n,sa),ga(t,l,sa,{start:!0}),ga(l,o,sa,{marked:!0}),ga(o,n,sa,{end:!0})]}function Ma(e,t,n,a){var l={start:t,end:n,spec:{attrs:{className:a+"-line-background",codeStart:t[0],codeEnd:n[0]}},lineBackground:!0};return"item"!==e.type&&"blockQuote"!==e.type?[h(h({},l),{end:t,spec:{attrs:{className:a+"-line-background start"}}}),h(h({},l),{start:[Math.min(t[0]+1,n[0]),t[1]]})]:null}function Oa(e,t,n,a){var l=e.fenceOffset,o=e.fenceLength,r=e.fenceChar,i=e.info,c=e.infoPadding,u=e.parent,s=l+o,d=[ga(xt(t,1),n,ia)];r&&d.push(ga(t,kt(t,s),pa)),i&&d.push(ga(kt(t,o),kt(t,o+c+i.length),da));var p="^(\\s{0,4})("+r+"{"+o+",})",h=new RegExp(p);h.test(a)&&d.push(ga(xt(n,1),n,pa));var f=Ma(u,t,n,"code-block");return f?d.concat(f):d}function Sa(e,t,n){var a=e,l=a.offset,o=a.syntaxLength,r=a.info,i=a.parent,c=l+o,u=[ga(xt(t,1),n,va)];u.push(ga(t,kt(t,c),pa)),r&&u.push(ga(kt(t,c),kt(t,o+r.length),da)),u.push(ga(xt(n,1),n,pa));var s=Ma(i,t,n,"custom-block");return s?u.concat(s):u}function Ea(e,t){var n=[];while(e){var a=e.type;"paragraph"!==a&&"codeBlock"!==a||n.push(ga([it(e),ut(e)-1],[ct(e),st(e)+1],t)),e=e.next}return n}function Na(e){var t=[];while(e)t.push(ga([it(e),ut(e)],[ct(e),st(e)+1],fa)),e=e.next;return t}function Da(e,t,n){var a=e.parent&&"blockQuote"!==e.parent.type?[ga(t,n,aa)]:[];if(e.firstChild){var l=[];"paragraph"===e.firstChild.type?l=Na(e.firstChild.firstChild):"list"===e.firstChild.type&&(l=Ea(e.firstChild,fa)),a=f(f([],a),l)}return a}function Aa(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[la,h(h({},n),{listStyle:!0})]}function La(e,t){var n=e.listData,a=n.padding,l=n.task,o=Aa(e),r=[ga.apply(void 0,f([t,kt(t,a)],o))];return l&&(r.push(ga(kt(t,a),kt(t,a+3),ha)),r.push(ga(kt(t,a+1),kt(t,a+2),da))),r.concat(Ea(e.firstChild,fa))}var Ia={heading:ya,strong:wa,emph:wa,strike:wa,link:Ca,image:xa,code:Ta,codeBlock:Oa,blockQuote:Da,item:La,customBlock:Sa},Ra={thematicBreak:ca,table:oa,tableCell:ra,htmlInline:ma};function ja(e,t,n,a){var l=e.type;return $n(Ia[l])?Ia[l](e,t,n,a):Ra[l]?[ga(t,n,Ra[l])]:null}var Ba={};function Pa(e){var t=e.schema,n=e.toastMark;return new r["d"]({appendTransaction:function(e,a,l){var o=e[0],r=l.tr;if(o.docChanged){var i=[],c=o.getMeta("editResult");c.forEach((function(e){var t=e.nodes,a=e.removedNodeRange;if(t.length){i=i.concat(qa(r,t));for(var l=0,o=t;l<o.length;l++){var c=o[l],u=c.walker(),s=u.next();while(s){var d=s.node,p=s.entering;p&&(i=i.concat($a(d,n))),s=u.next()}}}else if(a)for(var h=r.doc.childCount-1,f=a.line,m=f[0],v=f[1],b=Math.min(m,h),g=Math.min(v,h),y=b;y<=g;y+=1)Ba[y]=!0})),Ha(r,t,i)}return r.setMeta("widget",o.getMeta("widget"))}})}function Va(e,t,n){return Object.keys(n).some((function(a){return n[a]!==e.child(t).attrs[a]}))}function Fa(e,t,n,a,l){void 0===l&&(l={});for(var o=a.startIndex,r=a.endIndex,i=a.from,c=a.to,u=!1,s=o;s<=r;s+=1)delete Ba[s],u=Va(t,s,l);u&&e.setBlockType(i,c,n,l)}function Ha(e,t,n){var a=e.doc,l=t.nodes.paragraph,o=Qn(a,a.childCount);n.forEach((function(n){var r=n.start,i=n.end,c=n.spec,u=n.lineBackground,s=Math.min(r[0],a.childCount)-1,d=Math.min(i[0],a.childCount)-1,p=a.child(s),h=a.child(d),f=o[s],m=o[d];if(f+=r[1]+Xn(p,r[1]-1),m+=i[1]+Xn(h,i[1]-1),c)if(u){var v={from:f,to:m,startIndex:s,endIndex:d};Fa(e,a,l,v,c.attrs)}else e.addMark(f,m,t.mark(c.type,c.attrs));else e.removeMark(f,m)})),za(e,o,l)}function za(e,t,n){Object.keys(Ba).forEach((function(a){var l=Number(a),o=Math.min(Number(a)+1,e.doc.childCount-1),r=t[l],i=t[o]-1;l===o&&(i+=2),e.setBlockType(r,i,n)}))}function _a(e,t,n){var a=[];Ba={};for(var l=t[0]-1;l<n[0];l+=1){var o=e.child(l),r=o.attrs.codeEnd,i=o.attrs.codeStart;if(i&&r&&!Ae(a,i)){a.push(i),r=Math.min(r,e.childCount);for(var c=i-1,u=n[0],s=c;s<u;s+=1)Ba[s]=!0}}}function qa(e,t){var n=e.doc,a=t[0].sourcepos[0],l=_e(t).sourcepos,o=l[1],r=[a[0],a[1]],i=[o[0],o[1]+1],c=[];return _a(n,a,o),c.push({start:r,end:i}),c}function $a(e,t){var n=t.getLineTexts(),a=[it(e),ut(e)],l=[ct(e),st(e)+1],o=ja(e,a,l,n[l[0]-1]);return null!==o&&void 0!==o?o:[]}var Ua=["taskList","orderedList","bulletList","table","strong","emph","strike","heading","thematicBreak","blockQuote","code","codeBlock","indent","outdent"];function Wa(e){var t=e.type;return ft(e)?e.listData.task?"taskList":"ordered"===e.listData.type?"orderedList":"bulletList":-1!==t.indexOf("table")?"table":Ae(Ua,t)?t:null}function Ja(e){var t={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}},n=!0;return wt(e,(function(e){var a=Wa(e);a&&("bulletList"===a||"orderedList"===a?n&&(t[a]={active:!0},t.indent.disabled=!1,t.outdent.disabled=!1,n=!1):t[a]={active:!0})})),t}function Ka(e){var t=e.toastMark,n=e.eventEmitter;return new r["d"]({view:function(){return{update:function(e,a){var l=e.state,o=l.doc,r=l.selection;if(!(a&&a.doc.eq(o)&&a.selection.eq(r))){var i=r.from,c=l.doc.resolve(i).start(),u=l.doc.content.findIndex(i).index+1,s=i-c;i===c&&(s+=1);var d=[u,s],p=t.findNodeAtPosition(d),h=Ja(p);n.emit("changeToolbarState",{cursorPos:d,mdNode:p,toolbarState:h}),n.emit("setFocusedNode",p)}}}}})}var Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}(Vn),Xa=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 Za(e,t){return Qa(e,t-1)}function Qa(e,t){return e.child(t).textContent}var Ya=/^\s*> ?/,el=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("block-quote")},0]}}},enumerable:!1,configurable:!0}),t.prototype.createBlockQuoteText=function(e,t){return t?e.replace(Ya,"").trim():"> "+e.trim()},t.prototype.extendBlockQuote=function(){var e=this;return function(t,n){var a=t.selection,l=t.doc,o=t.tr,r=t.schema,i=ea(a),c=i.endFromOffset,u=i.endToOffset,s=i.endIndex,d=i.to,p=Qa(l,s),h=Ya.test(p);if(h&&d>c&&a.empty){var f=!p.replace(Ya,"").trim();if(f)o.deleteRange(c,u).split(o.mapping.map(u));else{var m=p.slice(d-c).trim(),v=nt(r,e.createBlockQuoteText(m));rt(o,u,m,v)}return n(o),!0}return!1}},t.prototype.commands=function(){var e=this;return function(){return function(t,n){var a=t.selection,l=t.doc,o=ea(a),r=o.startFromOffset,i=o.endToOffset,c=o.startIndex,u=o.endIndex,s=Ya.test(Qa(l,c)),d=ot({state:t,startIndex:c,endIndex:u,from:r,createText:function(t){return e.createBlockQuoteText(t,s)}});return n(d.setSelection(at(d,d.mapping.map(i)))),!0}}},t.prototype.keymaps=function(){var e=this.commands()();return{"alt-q":e,"alt-Q":e,Enter:this.extendBlockQuote()}},t}(Xa),tl=/(^\s*)([-*+] |[\d]+\. )/,nl=/(^\s*)([\d])+\.( \[[ xX]])? /,al=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,ll=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,ol=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,rl=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,il=/(^\s*)([-*+])( \[[ xX]]) /;function cl(e){return nl.test(e)?"ordered":"bullet"}function ul(e){var t=0;while(e&&"document"!==e.type)"list"===e.type&&(t+=1),e=e.parent;return t}function sl(e,t,n,a){var l=e.getLineTexts(),o=l.length,r=[],i=t;while(a?i<o:i>1){i=a?i+1:i-1;var c=e.findFirstNodeAtLine(i),u=ul(c);if(u===n)r.push({line:i,depth:n,mdNode:c});else if(u<n)break}return r}function dl(e){var t=e.toastMark,n=e.mdNode,a=e.line,l=ul(n),o=sl(t,a,l,!1).reverse(),r=sl(t,a,l,!0);return o.concat([{line:a,depth:l,mdNode:n}]).concat(r)}function pl(e){if(!tl.test(e))return"* "+e;var t=cl(e);return"bullet"===t&&ll.test(e)?e=e.replace(il,"$1$2 "):"ordered"===t&&(e=e.replace(nl,"$1* ")),e}function hl(e,t){if(!tl.test(e))return t+". "+e;var n=cl(e);if("bullet"===n||"ordered"===n&&ll.test(e))e=e.replace(ll,"$1"+t+". ");else if("ordered"===n){var a=al.exec(e)[3];Number(a)!==t&&(e=e.replace(nl,"$1"+t+". "))}return e}function fl(e,t,n,a){void 0===a&&(a=0);var l=Number.MAX_VALUE,o=0,r=t.map((function(t,r){var i=t.line;l=Math.min(i-1,l),o=Math.max(i-1,o);var c=Za(e,i);return c="bullet"===n?pl(c):hl(c,r+1+a),{text:c,line:i}}));return{changedResults:r,firstIndex:l,lastIndex:o}}function ml(e,t){var n=dl(t);return fl(t.doc,n,e)}var vl={bullet:function(e){return ml("bullet",e)},ordered:function(e){return ml("ordered",e)},task:function(e){var t=e.mdNode,n=e.doc,a=e.line,l=Za(n,a);return t.listData.task?l=l.replace(rl,"$1$2"):ft(t)&&(l=l.replace(tl,"$1$2[ ] ")),{changedResults:[{text:l,line:a}]}}},bl={bullet:function(e){var t=e.doc,n=e.line,a=Za(t,n),l=[{text:"* "+a,line:n}];return{changedResults:l}},ordered:function(e){for(var t=e.toastMark,n=e.doc,a=e.line,l=e.startLine,o=Za(n,a),r=1,i=l,c=0,u=l-1;u>0;u-=1){var s=t.findFirstNodeAtLine(u),d=Za(n,u),p=d&&!!yt(s,(function(e){return ft(e)})),h=al.exec(Za(n,u));if(!h&&!p)break;if(h||!p){var f=h,m=f[1],v=f[3];if(!m){r=Number(v),i=u;break}}else c+=1}var b=r+a-i-c,g=[{text:b+". "+o,line:a}];return{changedResults:g}},task:function(e){var t=e.doc,n=e.line,a=Za(t,n),l=[{text:"* [ ] "+a,line:n}];return{changedResults:l}}},gl={bullet:function(e){var t=e.line,n=e.doc,a=Za(n,t),l=ol.exec(a),o=l[1],r=l[2];return{listSyntax:""+o+r}},ordered:function(e){var t=e.toastMark,n=e.line,a=e.mdNode,l=e.doc,o=ul(a),r=Za(l,n),i=al.exec(r),c=i[1],u=i[3],s=i[4],d=Number(u)+1,p=""+c+d+s,f=sl(t,n,o,!0),m=f.filter((function(e){var t=al.exec(Za(l,e.line));return t&&t[1].length===c.length&&!!yt(e.mdNode,(function(e){return mt(e)}))}));return h({listSyntax:p},fl(l,m,"ordered",d))}};function yl(e,t,n,a,l){var o=[],r=Za(e,n),i=al.exec(r);while(i){var c=i[1],u=i[4],s=i[5],d=c.length;if(d===l)o.push(nt(t,""+c+a+u+s)),a+=1,n+=1;else if(d>l){var p=yl(e,t,n,1,d);n=p.line,o=o.concat(p.nodes)}if(d<l||n>e.childCount)break;r=Za(e,n),i=al.exec(r)}return{nodes:o,line:n}}var wl=/(^\s{1,4})(.*)/;function kl(e,t,n){return e<t||tl.test(n)||Ya.test(n)}function xl(e,t,n){var a=n.$from;0===a.depth&&(a=e.resolve(a.pos-1));var l=a.node(1),o=a.start(1),r=l.content.size;return l.rangeHasMark(0,r,t.marks.table)&&a.pos-o!==r&&a.pos!==o}function Cl(e,t){var n=t.from,a=t.to;if("indent"===t.type){var l=4;n+=l,a+=(t.lineLen+1)*l}else{var o=t.spaceLenList;n-=o[0];for(var r=0;r<o.length;r+=1)a-=o[r]}return at(e,n,a)}var Tl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn(t.className)},0]:["div",0]}}},enumerable:!1,configurable:!0}),t.prototype.reorderList=function(e,t){var n=this.context,a=n.view,l=n.toastMark,o=n.schema,r=a.state,i=r.tr,c=r.selection,u=r.doc,s=l.findFirstNodeAtLine(e),d=s;while(s&&!vt(s)&&"document"!==s.parent.type)if(s=s.parent,mt(s)){d=s;break}d&&(e=d.sourcepos[0][0]);var p=al.exec(Za(u,e)),h=p[1],f=p[3],m=h.length,v=yl(u,o,e,Number(f),m),b=v.line,g=v.nodes;t=Math.max(t,b-1);for(var y=ta(u,e-1).startOffset,w=e-1;w<=t-1;w+=1){var k=u.child(w),x=k.nodeSize,C=k.content,T=i.mapping.map(y),M=T+C.size;i.replaceWith(T,M,g[w-e+1]),y+=x}var O=at(i,c.from,c.to);a.dispatch(i.setSelection(O))},t.prototype.indent=function(e){var t=this;return void 0===e&&(e=!1),function(){return function(n,a){var l=n.schema,o=n.selection,r=n.doc,i=ea(o),c=i.from,u=i.to,s=i.startFromOffset,d=i.startIndex,p=i.endIndex;if(e&&xl(r,l,o))return!1;var h=Qa(r,d);if(e&&kl(c,u,h)||!e&&tl.test(h)){var f=ot({state:n,from:s,startIndex:d,endIndex:p,createText:function(e){return" "+e}}),m={type:"indent",from:c,to:u,lineLen:p-d};a(f.setSelection(Cl(f,m))),al.test(h)&&t.reorderList(d+1,p+1)}else e&&a(n.tr.insert(u,nt(l," ")));return!0}}},t.prototype.outdent=function(e){var t=this;return void 0===e&&(e=!1),function(){return function(n,a){var l=n.selection,o=n.doc,r=n.schema,i=ea(l),c=i.from,u=i.to,s=i.startFromOffset,d=i.startIndex,p=i.endIndex;if(e&&xl(o,r,l))return!1;var h=Qa(o,d);if(e&&kl(c,u,h)||!e&&tl.test(h)){var f=[],m=ot({state:n,from:s,startIndex:d,endIndex:p,createText:function(e){var t=wl.exec(e);return f.push(t?t[1].length:0),e.replace(wl,"$2")}}),v={type:"outdent",from:c,to:u,spaceLenList:f};a(m.setSelection(Cl(m,v))),al.test(h)&&t.reorderList(d+1,p+1)}else if(e){var b=h.slice(0,u-s),g=b.replace(/\s{1,4}$/,""),y=u-(b.length-g.length);a(n.tr.delete(y,u))}return!0}}},t.prototype.deleteLines=function(){var e=this;return function(t,n){var a=e.context.view,l=ea(t.selection),o=l.startFromOffset,r=l.endToOffset,i=function(){return n(t.tr.deleteRange(o,r)),!0};return Object(c["b"])(i,c["e"])(t,n,a)}},t.prototype.moveDown=function(){return function(e,t){var n=e.doc,a=e.tr,l=e.selection,o=e.schema,r=ea(l),i=r.startFromOffset,c=r.endToOffset,u=r.endIndex;if(u<n.content.childCount-1){var s=n.child(u+1),d=s.nodeSize,p=s.textContent;return a.delete(c,c+d).split(i).insert(a.mapping.map(i)-2,nt(o,p)),t(a),!0}return!1}},t.prototype.moveUp=function(){return function(e,t){var n=e.tr,a=e.doc,l=e.selection,o=e.schema,r=ea(l),i=r.startFromOffset,c=r.endToOffset,u=r.startIndex;if(u>0){var s=a.child(u-1),d=s.nodeSize,p=s.textContent;return n.delete(i-d,i).split(n.mapping.map(c)).insert(n.mapping.map(c),nt(o,p)),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}(Vn),Ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}(Vn),Ol=/^#{1,6}\s/,Sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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,a=t.seText,l="heading|heading"+n;return a&&(l+="|delimiter|setext"),["span",{class:mn.apply(void 0,l.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.createHeadingText=function(e,t,n){var a=t.replace(n,"").trim(),l="";while(e>0)l+="#",e-=1;return l+" "+a},t.prototype.commands=function(){var e=this;return function(t){return function(n,a){var l=t.level,o=ea(n.selection),r=o.startFromOffset,i=o.endToOffset,c=o.startIndex,u=o.endIndex,s=ot({state:n,from:r,startIndex:c,endIndex:u,createText:function(t){var n=t.match(Ol),a=n?n[0]:"";return e.createHeadingText(l,t,a)}});return a(s.setSelection(at(s,s.mapping.map(i)))),!0}}},t}(Xa),El="```",Nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("code-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=e.tr,o=ea(n),r=o.startFromOffset,i=o.endToOffset,c=nt(a,El);return l.insert(r,c).split(r+El.length),l.split(l.mapping.map(i)).insert(l.mapping.map(i),c),t(l.setSelection(at(l,l.mapping.map(i)-(El.length+2)))),!0}}},t.prototype.keepIndentation=function(){var e=this;return function(t,n){var a=t.selection,l=t.tr,o=t.doc,r=t.schema,i=e.context.toastMark,c=ea(a),u=c.startFromOffset,s=c.endToOffset,d=c.endIndex,p=c.from,h=c.to,f=Qa(o,d);if(p===h&&f.trim()){var m=f.match(/^\s+/),v=i.findFirstNodeAtLine(d+1);if(ht(v)&&m){var b=m[0],g=f.slice(h-u),y=nt(r,b+g);return rt(l,s,g,y),n(l),!0}}return!1}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-p":e,"Shift-Mod-P":e,Enter:this.keepIndentation()}},t}(Xa),Dl=/\||\s/g;function Al(e){return[Il(e),Il(e,!0)]}function Ll(e,t){for(var n=[],a=0;a<t;a+=1)n.push(Il(e));return n}function Il(e,t){for(var n="|",a=0;a<e;a+=1)n+=t?" --- |":" |";return n}function Rl(e){return e?{type:"next",parentType:"tableHead",childType:"firstChild"}:{type:"prev",parentType:"tableBody",childType:"lastChild"}}var jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("table")},0]}}},enumerable:!1,configurable:!0}),t.prototype.extendTable=function(){var e=this;return function(t,n){var a=t.selection,l=t.doc,o=t.tr,r=t.schema;if(!a.empty)return!1;var i=ea(a),c=i.endFromOffset,u=i.endToOffset,s=i.endIndex,d=i.to,p=Qa(l,s),h=[s+1,d-c+1],f=e.context.toastMark.findNodeAtPosition(h),m=yt(f,(function(e){return bt(e)&&("tableDelimRow"===e.parent.type||"tableBody"===e.parent.parent.type)}));if(m){var v=!p.replace(Dl,"").trim(),b=m.parent,g=b.parent.parent.columns.length,y=Il(g);return v?o.deleteRange(c,u).split(o.mapping.map(u)):o.split(u).insert(o.mapping.map(u),nt(r,y)).setSelection(at(o,o.mapping.map(u)-2)),n(o),!0}return!1}},t.prototype.moveTableCell=function(e){var t=this;return function(n,a){var l=n.selection,o=n.tr,r=ea(l),i=r.endFromOffset,c=r.endIndex,u=r.to,s=[c+1,u-i],d=t.context.toastMark.findNodeAtPosition(s),p=yt(d,(function(e){return bt(e)}));if(p){var h=p.parent,f=Rl(e),m=f.type,v=f.parentType,b=f.childType,g=st(p);if(p[m])g=st(p[m])-1;else{var y=h[m]||h.parent.type!==v?h[m]:h.parent[m][b];if("next"===m){var w=y?st(y[b]):0;g+=w+2}else"prev"===m&&(g=y?-4:0)}return a(o.setSelection(at(o,i+g))),!0}return!1}},t.prototype.addTable=function(){return function(e){return function(t,n){var a=t.selection,l=t.tr,o=t.schema,r=e,i=r.columnCount,c=r.rowCount,u=ea(a).endToOffset,s=Al(i),d=Ll(i,c-1),p=f(f([],s),d);return p.forEach((function(e){l.split(l.mapping.map(u)).insert(l.mapping.map(u),nt(o,e))})),n(l.setSelection(at(l,u+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}(Xa),Bl="***",Pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("thematic-break")},0]}}},enumerable:!1,configurable:!0}),t.prototype.hr=function(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=e.tr,o=ea(n),r=o.from,i=o.to,c=o.endToOffset,u=nt(a,Bl);return l.split(r).replaceWith(l.mapping.map(r),l.mapping.map(i),u).split(l.mapping.map(i)).setSelection(at(l,l.mapping.map(c))),t(l),!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}(Xa);function Vl(e,t){var n=e.type,a=e.sourcepos,l=a[0][0];return t<=l&&("codeBlock"===n||"heading"===n||n.match("table"))}var Fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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,a=t.even,l=t.listStyle,o="list-item";return l&&(o+="|list-item-style"),n&&(o+="|list-item-odd"),a&&(o+="|list-item-even"),["span",{class:mn.apply(void 0,o.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.extendList=function(){var e=this;return function(t,n){var a=t.selection,l=t.doc,o=t.schema,r=t.tr,i=e.context.toastMark,c=ea(a),u=c.to,s=c.startFromOffset,d=c.endFromOffset,p=c.endIndex,h=c.endToOffset,f=Qa(l,p),m=tl.test(f);if(!m||a.from===s||!a.empty)return!1;var v=!f.replace(ll,"").trim();if(v)r.deleteRange(d,h).split(r.mapping.map(h));else{var b=cl(f),g=i.findFirstNodeAtLine(p+1),y=f.slice(u-d),w={toastMark:i,mdNode:g,doc:l,line:p+1},k=gl[b](w),x=k.listSyntax,C=k.changedResults;if(null===C||void 0===C?void 0:C.length){r.split(u),C.unshift({text:x+y,line:p+1}),e.changeToListPerLine(r,C,{from:u,startLine:C[0].line,endLine:_e(C).line});var T=r.mapping.map(h)-y.length;r.setSelection(at(r,T))}else{var M=nt(o,x+y);rt(r,h,y,M)}}return n(r),!0}},t.prototype.toList=function(e){var t=this;return function(){return function(n,a){for(var l=n.doc,o=n.tr,r=n.selection,i=t.context.toastMark,c=ea(r),u=c.startIndex+1,s=c.endIndex+1,d=c.endToOffset,p=[],h=u;h<=s;h+=1){var f=i.findFirstNodeAtLine(h);if(f&&Vl(f,h))break;if(-1===p.indexOf(h)){var m={toastMark:i,mdNode:f,doc:l,line:h,startLine:u},v=(ft(f)?vl[e](m):bl[e](m)).changedResults,b=t.changeToListPerLine(o,v,{from:ta(l,v[0].line-1).startOffset,startLine:v[0].line,endLine:_e(v).line,indexDiff:1});d=Math.max(b,d),v&&(p=p.concat(v.map((function(e){return e.line}))))}}return a(o.setSelection(at(o,o.mapping.map(d)))),!0}}},t.prototype.changeToListPerLine=function(e,t,n){for(var a=n.from,l=n.startLine,o=n.endLine,r=n.indexDiff,i=void 0===r?0:r,c=0,u=function(n){var l=e.doc.child(n),o=l.nodeSize,r=l.content,u=e.mapping.map(a),d=u+r.size,p=t.filter((function(e){return e.line-i===n}))[0];p&&(e.replaceWith(u,d,nt(s.context.schema,p.text)),c=Math.max(c,a+r.size)),a+=o},s=this,d=l-i;d<=o-i;d+=1)u(d);return c},t.prototype.toggleTask=function(){var e=this;return function(t,n){for(var a=t.selection,l=t.tr,o=t.doc,r=t.schema,i=e.context.toastMark,c=ea(a),u=c.startIndex,s=c.endIndex,d=null,p=u;p<=s;p+=1){var h=i.findFirstNodeAtLine(p+1);if(ft(h)&&h.listData.task){var f=h.listData,m=f.checked,v=f.padding,b=m?" ":"x",g=h.sourcepos[0],y=ta(o,g[0]-1).startOffset;y+=g[1]+v,d=l.replaceWith(y,y+1,r.text(b))}}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")(),a=this.toggleTask();return{"Mod-u":e,"Mod-U":e,"Mod-o":t,"Mod-O":t,"alt-t":n,"alt-T":n,"Shift-Ctrl-x":a,"Shift-Ctrl-X":a,Enter:this.extendList()}},t}(Xa);function Hl(e,t){return function(){return function(n,a){var l=n.tr,o=n.selection,r=$n(e)?e:function(t){return e.test(t)},i=t.length,c=l.doc,u=Kn(o),s=u[0],d=u[1],p=Math.max(s-i,1),h=Math.min(d+i,c.content.size-1),f=o.content(),m=f.content.textBetween(0,f.content.size,"\n"),v=c.textBetween(p,s,"\n"),b=c.textBetween(d,h,"\n");if(m=""+v+m+b,v&&b&&r(m))l.delete(h-i,h).delete(p,p+i);else{l.insertText(t,d).insertText(t,s);var g=o.empty?at(l,s+i):at(l,s+i,d+i);l.setSelection(g)}return a(l),!0}}}var zl=/^(\*{2}|_{2}).*([\s\S]*)\1$/m,_l="**",ql=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("strong")},0]}}},enumerable:!1,configurable:!0}),t.prototype.bold=function(){return Hl(zl,_l)},t.prototype.commands=function(){return{bold:this.bold()}},t.prototype.keymaps=function(){var e=this.bold()();return{"Mod-b":e,"Mod-B":e}},t}(Xa),$l=/^(~{2}).*([\s\S]*)\1$/m,Ul="~~",Wl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("strike")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return Hl($l,Ul)},t.prototype.keymaps=function(){var e=this.commands()();return{"Mod-s":e,"Mod-S":e}},t}(Xa),Jl=/^(\*|_).*([\s\S]*)\1$/m,Kl="*",Gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("emph")},0]}}},enumerable:!1,configurable:!0}),t.prototype.italic=function(){return Hl(Jl,Kl)},t.prototype.commands=function(){return{italic:this.italic()}},t.prototype.keymaps=function(){var e=this.italic()();return{"Mod-i":e,"Mod-I":e}},t}(Xa),Xl=/^(`).*([\s\S]*)\1$/m,Zl="`",Ql=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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,a=t.end,l=t.marked,o="code";return n&&(o+="|delimiter|start"),a&&(o+="|delimiter|end"),l&&(o+="|marked-text"),["span",{class:mn.apply(void 0,o.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return Hl(Xl,Zl)},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-c":e,"Shift-Mod-C":e}},t}(Xa),Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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,a=t.desc,l="link";return n&&(l+="|link-url|marked-text"),a&&(l+="|link-desc|marked-text"),["span",{class:mn.apply(void 0,l.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.addLinkOrImage=function(e){return function(t){return function(n,a){var l=n.selection,o=n.tr,r=n.schema,i=Kn(l),c=i[0],u=i[1],s=t,d=s.linkText,p=s.altText,h=s.linkUrl,f=s.imageUrl,m=d,v=h,b="";return"image"===e&&(m=p,v=f,b="!"),m=Pe(m),b+="["+m+"]("+v+")",a(o.replaceWith(c,u,nt(r,b))),!0}}},t.prototype.commands=function(){return{addImage:this.addLinkOrImage("image"),addLink:this.addLinkOrImage("link")}},t}(Xa),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("delimiter","list-item")},0]}}},enumerable:!1,configurable:!0}),t}(Xa),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("delimiter")},0]}}},enumerable:!1,configurable:!0}),t}(Xa),no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("meta")},0]}}},enumerable:!1,configurable:!0}),t}(Xa),ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("marked-text")},0]}}},enumerable:!1,configurable:!0}),t}(Xa),lo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("table-cell")},0]}}},enumerable:!1,configurable:!0}),t}(Xa),oo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("html")},0]}}},enumerable:!1,configurable:!0}),t}(Xa),ro="$$",io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:mn("custom-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(e){return function(t,n){var a=t.selection,l=t.schema,o=t.tr,r=ea(a),i=r.startFromOffset,c=r.endToOffset;if(!(null===e||void 0===e?void 0:e.info))return!1;var u=""+ro+e.info,s=nt(l,u),d=nt(l,ro);return o.insert(i,s).split(i+u.length),o.split(o.mapping.map(c)).insert(o.mapping.map(c),d),n(o.setSelection(at(o,o.mapping.map(c)-(ro.length+2)))),!0}}},t}(Xa),co=/x|backspace/i,uo=/^\[(\s*)(x?)(\s*)\](?:\s+)/i;function so(e){var t=e.schema,n=e.toastMark;return new r["d"]({props:{handleDOMEvents:{keyup:function(e,a){var l,o=e.state,r=o.doc,i=o.tr,c=o.selection;if(c.empty&&co.test(a.key)){var u=ea(c),s=u.startIndex,d=u.startFromOffset,p=u.from,h=[s+1,p-d+1],f=n.findNodeAtPosition(h),m=yt(f,(function(e){var t;return"paragraph"===e.type&&"item"===(null===(t=e.parent)||void 0===t?void 0:t.type)}));if(null===(l=null===m||void 0===m?void 0:m.firstChild)||void 0===l?void 0:l.literal){var v=m.firstChild,b=v.literal.match(uo);if(b){var g=v.sourcepos[0],y=b[1],w=b[2],k=b[3],x=y.length+k.length,C=ta(r,g[0]-1).startOffset,T=g[1]+C;if(w){var M=x?x+1:0;i.replaceWith(T,M+T,t.text(w)),e.dispatch(i)}else x||(i.insertText(" ",T),e.dispatch(i))}}}return!1}}}})}var po="cut",ho=/\r\n|\n|\r/,fo=function(e){function t(t,n){var a=e.call(this,t)||this,l=n.toastMark,o=n.useCommandShortcut,r=void 0===o||o,i=n.mdPlugins,c=void 0===i?[]:i;return a.editorType="markdown",a.el.classList.add("md-mode"),a.toastMark=l,a.extraPlugins=c,a.specs=a.createSpecs(),a.schema=a.createSchema(),a.context=a.createContext(),a.keymaps=a.createKeymaps(r),a.view=a.createView(),a.commands=a.createCommands(),a.specs.setContext(h(h({},a.context),{view:a.view})),a.createClipboard(),a.eventEmitter.listen("changePreviewTabWrite",(function(e){return a.toggleActive(!0,e)})),a.eventEmitter.listen("changePreviewTabPreview",(function(){return a.toggleActive(!1)})),a.initEvent(),a}return p(t,e),t.prototype.toggleActive=function(e,t){Cn(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=fn("pseudo-clipboard"),this.clipboard.addEventListener("paste",(function(t){var n=t.clipboardData||window.clipboardData,a=n&&n.items;if(a){var l=et(a).some((function(e){return"string"===e.kind&&"text/rtf"===e.type}));if(!l){var o=Bn(a);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 Jn([new Ga,new Tl,new zn,new Ml,new Sl,new el,new Nl,new io,new jl,new lo,new Pl,new Fl,new ql,new Wl,new Gl,new Ql,new Yl,new to,new eo,new ao,new no,new oo])},t.prototype.createPlugins=function(){return f([Pa(this.context),Ka(this.context),so(this.context)],this.createPluginProps()).concat(this.defaultPlugins)},t.prototype.createView=function(){var e=this;return new l["c"](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,po)},scroll:function(){return e.eventEmitter.emit("scroll","editor"),!0},keyup:function(t,n){return e.eventEmitter.emit("keyup",e.editorType,n),!1}},nodeViews:{widget:Fn}})},t.prototype.createCommands=function(){return this.specs.commands(this.view)},t.prototype.captureCopy=function(e,t){e.preventDefault();var n=this.view.state,a=n.selection,l=n.tr;if(a.empty)return!0;var o=this.getChanged(a.content());return e.clipboardData?e.clipboardData.setData("text/plain",o):window.clipboardData.setData("Text",o),t===po&&this.view.dispatch(l.deleteSelection().scrollIntoView().setMeta("uiEvent",po)),!0},t.prototype.updateMarkdown=function(e){var t=this;e.docChanged&&e.steps.forEach((function(n,a){if(n.slice&&!(n instanceof o["b"])){var l=e.docs[a],r=[n.from,n.to],i=r[0],c=r[1],u=Zn(l,i,c),s=u[0],d=u[1],p=t.getChanged(n.slice);s[0]===d[0]&&s[1]===d[1]&&""===p&&(p="\n");var h=t.toastMark.editMarkdown(s,d,p);t.eventEmitter.emit("updatePreview",h),e.setMeta("editResult",h).scrollIntoView()}}))},t.prototype.getChanged=function(e){var t="",n=0,a=e.content.size;return e.content.nodesBetween(n,a,(function(e,l){e.isText?t+=e.text.slice(Math.max(n,l)-l,a-l):e.isBlock&&l>0&&(t+="\n")})),t},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,a=Yn(n.doc,e,t),l=a[0],o=a[1];this.view.dispatch(n.setSelection(at(n,l,o)).scrollIntoView())},t.prototype.replaceSelection=function(e,t,n){var l,o=this.view.state,r=o.tr,i=o.schema,c=o.doc,u=e.split(ho),s=u.map((function(e){return tt(i,jt(e,i))})),d=new a["j"](a["c"].from(s),1,1);if(this.focus(),t&&n){var p=Yn(c,t,n),h=p[0],f=p[1];l=r.replaceRange(h,f,d)}else l=r.replaceSelection(d);this.view.dispatch(l.scrollIntoView())},t.prototype.deleteSelection=function(e,t){var n,a=this.view.state,l=a.tr,o=a.doc;if(e&&t){var r=Yn(o,e,t),i=r[0],c=r[1];n=l.deleteRange(i,c)}else n=l.deleteSelection();this.view.dispatch(n.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,a=n.doc,l=n.selection,o=l.from,r=l.to;if(e&&t){var i=Yn(a,e,t);o=i[0],r=i[1]}return a.textBetween(o,r,"\n")},t.prototype.getSelection=function(){var e=this.view.state.selection,t=e.from,n=e.to;return Zn(this.view.state.tr.doc,t,n)},t.prototype.setMarkdown=function(e,t){void 0===t&&(t=!0);var n=e.split(ho),a=this.view.state,l=a.tr,o=a.doc,r=a.schema,i=n.map((function(e){return tt(r,jt(e,r))}));this.view.dispatch(l.replaceWith(0,o.content.size,i)),t&&this.moveCursorToEnd(!0)},t.prototype.addWidget=function(e,t,n){var a=this.view.state,l=a.tr,o=a.doc,r=a.selection,i=n?Yn(o,n,n)[0]:r.to;this.view.dispatch(l.setMeta("widget",{pos:i,node:e,style:t}))},t.prototype.replaceWithWidget=function(e,t,n){var a=this.view.state,l=a.tr,o=a.schema,r=a.doc,i=Yn(r,e,t),c=jt(n,o);this.view.dispatch(l.replaceWith(i[0],i[1],c))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,a=t.selection,l=e||Zn(n,a.from)[0],o=this.toastMark.findNodeAtPosition(l);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 Nt(e)})).join("\n")},t.prototype.getToastMark=function(){return this.toastMark},t}(_n),mo="_feEventKey";function vo(e,t){var n,a=e[mo];return a||(a=e[mo]={}),n=a[t],n||(n=a[t]=[]),n}var bo=vo,go=k,yo=D,wo=bo;function ko(e,t,n){go(t)?yo(t.split(/\s+/g),(function(t){xo(e,t,n)})):yo(t,(function(t,n){xo(e,n,t)}))}function xo(e,t,n){var a,l=wo(e,t);n?(yo(l,(function(l,o){return n!==l.handler||(Co(e,t,l.wrappedHandler),a=o,!1)})),l.splice(a,1)):(yo(l,(function(n){Co(e,t,n.wrappedHandler)})),l.splice(0,l.length))}function Co(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}var To=ko,Mo=k,Oo=D,So=bo;function Eo(e,t,n,a){Mo(t)?Oo(t.split(/\s+/g),(function(t){No(e,t,n,a)})):Oo(t,(function(t,a){No(e,a,t,n)}))}function No(e,t,n,a){function l(t){n.call(a||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,l):"attachEvent"in e&&e.attachEvent("on"+t,l),Do(e,t,n,l)}function Do(e,t,n,a){var l=So(e,t),o=!1;Oo(l,(function(e){return e.handler!==n||(o=!0,!1)})),o||l.push({handler:n,wrappedHandler:a})}var Ao=Eo,Lo=function(e,t){return Lo=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])},Lo(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 Io(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}Lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var l in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},Ro.apply(this,arguments)};function jo(e,t,n){if(n||2===arguments.length)for(var a,l=0,o=t.length;l<o;l++)!a&&l in t||(a||(a=Array.prototype.slice.call(t,0,l)),a[l]=t[l]);return e.concat(a||Array.prototype.slice.call(t))}var Bo="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},Po={};function Vo(e){var t,n,a=Po[e];if(a)return a;for(a=Po[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?a.push(n):a.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)a[e.charCodeAt(t)]=e[t];return a}function Fo(e,t,n){var a,l,o,r,i,c="";for("string"!==typeof t&&(n=t,t=Fo.defaultChars),"undefined"===typeof n&&(n=!0),i=Vo(t),a=0,l=e.length;a<l;a++)if(o=e.charCodeAt(a),n&&37===o&&a+2<l&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))c+=e.slice(a,a+3),a+=2;else if(o<128)c+=i[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<l&&(r=e.charCodeAt(a+1),r>=56320&&r<=57343)){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}Fo.defaultChars=";/?:@&=+$,-_.!~*'()#",Fo.componentChars="-_.!~*'()";var Ho=Fo,zo={},_o={},qo="Á",$o="á",Uo="Ă",Wo="ă",Jo="∾",Ko="∿",Go="∾̳",Xo="Â",Zo="â",Qo="´",Yo="А",er="а",tr="Æ",nr="æ",ar="",lr="𝔄",or="𝔞",rr="À",ir="à",cr="ℵ",ur="ℵ",sr="Α",dr="α",pr="Ā",hr="ā",fr="⨿",mr="&",vr="&",br="⩕",gr="⩓",yr="∧",wr="⩜",kr="⩘",xr="⩚",Cr="∠",Tr="⦤",Mr="∠",Or="⦨",Sr="⦩",Er="⦪",Nr="⦫",Dr="⦬",Ar="⦭",Lr="⦮",Ir="⦯",Rr="∡",jr="∟",Br="⊾",Pr="⦝",Vr="∢",Fr="Å",Hr="⍼",zr="Ą",_r="ą",qr="𝔸",$r="𝕒",Ur="⩯",Wr="≈",Jr="⩰",Kr="≊",Gr="≋",Xr="'",Zr="",Qr="≈",Yr="≊",ei="Å",ti="å",ni="𝒜",ai="𝒶",li="≔",oi="*",ri="≈",ii="≍",ci="Ã",ui="ã",si="Ä",di="ä",pi="∳",hi="⨑",fi="≌",mi="϶",vi="‵",bi="∽",gi="⋍",yi="∖",wi="⫧",ki="⊽",xi="⌅",Ci="⌆",Ti="⌅",Mi="⎵",Oi="⎶",Si="≌",Ei="Б",Ni="б",Di="„",Ai="∵",Li="∵",Ii="∵",Ri="⦰",ji="϶",Bi="ℬ",Pi="ℬ",Vi="Β",Fi="β",Hi="ℶ",zi="≬",_i="𝔅",qi="𝔟",$i="⋂",Ui="◯",Wi="⋃",Ji="⨀",Ki="⨁",Gi="⨂",Xi="⨆",Zi="★",Qi="▽",Yi="△",ec="⨄",tc="⋁",nc="⋀",ac="⤍",lc="⧫",oc="▪",rc="▴",ic="▾",cc="◂",uc="▸",sc="␣",dc="▒",pc="░",hc="▓",fc="█",mc="=⃥",vc="≡⃥",bc="⫭",gc="⌐",yc="𝔹",wc="𝕓",kc="⊥",xc="⊥",Cc="⋈",Tc="⧉",Mc="┐",Oc="╕",Sc="╖",Ec="╗",Nc="┌",Dc="╒",Ac="╓",Lc="╔",Ic="─",Rc="═",jc="┬",Bc="╤",Pc="╥",Vc="╦",Fc="┴",Hc="╧",zc="╨",_c="╩",qc="⊟",$c="⊞",Uc="⊠",Wc="┘",Jc="╛",Kc="╜",Gc="╝",Xc="└",Zc="╘",Qc="╙",Yc="╚",eu="│",tu="║",nu="┼",au="╪",lu="╫",ou="╬",ru="┤",iu="╡",cu="╢",uu="╣",su="├",du="╞",pu="╟",hu="╠",fu="‵",mu="˘",vu="˘",bu="¦",gu="𝒷",yu="ℬ",wu="⁏",ku="∽",xu="⋍",Cu="⧅",Tu="\\",Mu="⟈",Ou="•",Su="•",Eu="≎",Nu="⪮",Du="≏",Au="≎",Lu="≏",Iu="Ć",Ru="ć",ju="⩄",Bu="⩉",Pu="⩋",Vu="∩",Fu="⋒",Hu="⩇",zu="⩀",_u="ⅅ",qu="∩︀",$u="⁁",Uu="ˇ",Wu="ℭ",Ju="⩍",Ku="Č",Gu="č",Xu="Ç",Zu="ç",Qu="Ĉ",Yu="ĉ",es="∰",ts="⩌",ns="⩐",as="Ċ",ls="ċ",os="¸",rs="¸",is="⦲",cs="¢",us="·",ss="·",ds="𝔠",ps="ℭ",hs="Ч",fs="ч",ms="✓",vs="✓",bs="Χ",gs="χ",ys="ˆ",ws="≗",ks="↺",xs="↻",Cs="⊛",Ts="⊚",Ms="⊝",Os="⊙",Ss="®",Es="Ⓢ",Ns="⊖",Ds="⊕",As="⊗",Ls="○",Is="⧃",Rs="≗",js="⨐",Bs="⫯",Ps="⧂",Vs="∲",Fs="”",Hs="’",zs="♣",_s="♣",qs=":",$s="∷",Us="⩴",Ws="≔",Js="≔",Ks=",",Gs="@",Xs="∁",Zs="∘",Qs="∁",Ys="ℂ",ed="≅",td="⩭",nd="≡",ad="∮",ld="∯",od="∮",rd="𝕔",id="ℂ",cd="∐",ud="∐",sd="©",dd="©",pd="℗",hd="∳",fd="↵",md="✗",vd="⨯",bd="𝒞",gd="𝒸",yd="⫏",wd="⫑",kd="⫐",xd="⫒",Cd="⋯",Td="⤸",Md="⤵",Od="⋞",Sd="⋟",Ed="↶",Nd="⤽",Dd="⩈",Ad="⩆",Ld="≍",Id="∪",Rd="⋓",jd="⩊",Bd="⊍",Pd="⩅",Vd="∪︀",Fd="↷",Hd="⤼",zd="⋞",_d="⋟",qd="⋎",$d="⋏",Ud="¤",Wd="↶",Jd="↷",Kd="⋎",Gd="⋏",Xd="∲",Zd="∱",Qd="⌭",Yd="†",ep="‡",tp="ℸ",np="↓",ap="↡",lp="⇓",op="‐",rp="⫤",ip="⊣",cp="⤏",up="˝",sp="Ď",dp="ď",pp="Д",hp="д",fp="‡",mp="⇊",vp="ⅅ",bp="ⅆ",gp="⤑",yp="⩷",wp="°",kp="∇",xp="Δ",Cp="δ",Tp="⦱",Mp="⥿",Op="𝔇",Sp="𝔡",Ep="⥥",Np="⇃",Dp="⇂",Ap="´",Lp="˙",Ip="˝",Rp="`",jp="˜",Bp="⋄",Pp="⋄",Vp="⋄",Fp="♦",Hp="♦",zp="¨",_p="ⅆ",qp="ϝ",$p="⋲",Up="÷",Wp="÷",Jp="⋇",Kp="⋇",Gp="Ђ",Xp="ђ",Zp="⌞",Qp="⌍",Yp="$",eh="𝔻",th="𝕕",nh="¨",ah="˙",lh="⃜",oh="≐",rh="≑",ih="≐",ch="∸",uh="∔",sh="⊡",dh="⌆",ph="∯",hh="¨",fh="⇓",mh="⇐",vh="⇔",bh="⫤",gh="⟸",yh="⟺",wh="⟹",kh="⇒",xh="⊨",Ch="⇑",Th="⇕",Mh="∥",Oh="⤓",Sh="↓",Eh="↓",Nh="⇓",Dh="⇵",Ah="̑",Lh="⇊",Ih="⇃",Rh="⇂",jh="⥐",Bh="⥞",Ph="⥖",Vh="↽",Fh="⥟",Hh="⥗",zh="⇁",_h="↧",qh="⊤",$h="⤐",Uh="⌟",Wh="⌌",Jh="𝒟",Kh="𝒹",Gh="Ѕ",Xh="ѕ",Zh="⧶",Qh="Đ",Yh="đ",ef="⋱",tf="▿",nf="▾",af="⇵",lf="⥯",of="⦦",rf="Џ",cf="џ",uf="⟿",sf="É",df="é",pf="⩮",hf="Ě",ff="ě",mf="Ê",vf="ê",bf="≖",gf="≕",yf="Э",wf="э",kf="⩷",xf="Ė",Cf="ė",Tf="≑",Mf="ⅇ",Of="≒",Sf="𝔈",Ef="𝔢",Nf="⪚",Df="È",Af="è",Lf="⪖",If="⪘",Rf="⪙",jf="∈",Bf="⏧",Pf="ℓ",Vf="⪕",Ff="⪗",Hf="Ē",zf="ē",_f="∅",qf="∅",$f="◻",Uf="∅",Wf="▫",Jf=" ",Kf=" ",Gf=" ",Xf="Ŋ",Zf="ŋ",Qf=" ",Yf="Ę",em="ę",tm="𝔼",nm="𝕖",am="⋕",lm="⧣",om="⩱",rm="ε",im="Ε",cm="ε",um="ϵ",sm="≖",dm="≕",pm="≂",hm="⪖",fm="⪕",mm="⩵",vm="=",bm="≂",gm="≟",ym="⇌",wm="≡",km="⩸",xm="⧥",Cm="⥱",Tm="≓",Mm="ℯ",Om="ℰ",Sm="≐",Em="⩳",Nm="≂",Dm="Η",Am="η",Lm="Ð",Im="ð",Rm="Ë",jm="ë",Bm="€",Pm="!",Vm="∃",Fm="∃",Hm="ℰ",zm="ⅇ",_m="ⅇ",qm="≒",$m="Ф",Um="ф",Wm="♀",Jm="ffi",Km="ff",Gm="ffl",Xm="𝔉",Zm="𝔣",Qm="fi",Ym="◼",ev="▪",tv="fj",nv="♭",av="fl",lv="▱",ov="ƒ",rv="𝔽",iv="𝕗",cv="∀",uv="∀",sv="⋔",dv="⫙",pv="ℱ",hv="⨍",fv="½",mv="⅓",vv="¼",bv="⅕",gv="⅙",yv="⅛",wv="⅔",kv="⅖",xv="¾",Cv="⅗",Tv="⅜",Mv="⅘",Ov="⅚",Sv="⅝",Ev="⅞",Nv="⁄",Dv="⌢",Av="𝒻",Lv="ℱ",Iv="ǵ",Rv="Γ",jv="γ",Bv="Ϝ",Pv="ϝ",Vv="⪆",Fv="Ğ",Hv="ğ",zv="Ģ",_v="Ĝ",qv="ĝ",$v="Г",Uv="г",Wv="Ġ",Jv="ġ",Kv="≥",Gv="≧",Xv="⪌",Zv="⋛",Qv="≥",Yv="≧",eb="⩾",tb="⪩",nb="⩾",ab="⪀",lb="⪂",ob="⪄",rb="⋛︀",ib="⪔",cb="𝔊",ub="𝔤",sb="≫",db="⋙",pb="⋙",hb="ℷ",fb="Ѓ",mb="ѓ",vb="⪥",bb="≷",gb="⪒",yb="⪤",wb="⪊",kb="⪊",xb="⪈",Cb="≩",Tb="⪈",Mb="≩",Ob="⋧",Sb="𝔾",Eb="𝕘",Nb="`",Db="≥",Ab="⋛",Lb="≧",Ib="⪢",Rb="≷",jb="⩾",Bb="≳",Pb="𝒢",Vb="ℊ",Fb="≳",Hb="⪎",zb="⪐",_b="⪧",qb="⩺",$b=">",Ub=">",Wb="≫",Jb="⋗",Kb="⦕",Gb="⩼",Xb="⪆",Zb="⥸",Qb="⋗",Yb="⋛",eg="⪌",tg="≷",ng="≳",ag="≩︀",lg="≩︀",og="ˇ",rg=" ",ig="½",cg="ℋ",ug="Ъ",sg="ъ",dg="⥈",pg="↔",hg="⇔",fg="↭",mg="^",vg="ℏ",bg="Ĥ",gg="ĥ",yg="♥",wg="♥",kg="…",xg="⊹",Cg="𝔥",Tg="ℌ",Mg="ℋ",Og="⤥",Sg="⤦",Eg="⇿",Ng="∻",Dg="↩",Ag="↪",Lg="𝕙",Ig="ℍ",Rg="―",jg="─",Bg="𝒽",Pg="ℋ",Vg="ℏ",Fg="Ħ",Hg="ħ",zg="≎",_g="≏",qg="⁃",$g="‐",Ug="Í",Wg="í",Jg="",Kg="Î",Gg="î",Xg="И",Zg="и",Qg="İ",Yg="Е",ey="е",ty="¡",ny="⇔",ay="𝔦",ly="ℑ",oy="Ì",ry="ì",iy="ⅈ",cy="⨌",uy="∭",sy="⧜",dy="℩",py="IJ",hy="ij",fy="Ī",my="ī",vy="ℑ",by="ⅈ",gy="ℐ",yy="ℑ",wy="ı",ky="ℑ",xy="⊷",Cy="Ƶ",Ty="⇒",My="℅",Oy="∞",Sy="⧝",Ey="ı",Ny="⊺",Dy="∫",Ay="∬",Ly="ℤ",Iy="∫",Ry="⊺",jy="⋂",By="⨗",Py="⨼",Vy="",Fy="",Hy="Ё",zy="ё",_y="Į",qy="į",$y="𝕀",Uy="𝕚",Wy="Ι",Jy="ι",Ky="⨼",Gy="¿",Xy="𝒾",Zy="ℐ",Qy="∈",Yy="⋵",ew="⋹",tw="⋴",nw="⋳",aw="∈",lw="",ow="Ĩ",rw="ĩ",iw="І",cw="і",uw="Ï",sw="ï",dw="Ĵ",pw="ĵ",hw="Й",fw="й",mw="𝔍",vw="𝔧",bw="ȷ",gw="𝕁",yw="𝕛",ww="𝒥",kw="𝒿",xw="Ј",Cw="ј",Tw="Є",Mw="є",Ow="Κ",Sw="κ",Ew="ϰ",Nw="Ķ",Dw="ķ",Aw="К",Lw="к",Iw="𝔎",Rw="𝔨",jw="ĸ",Bw="Х",Pw="х",Vw="Ќ",Fw="ќ",Hw="𝕂",zw="𝕜",_w="𝒦",qw="𝓀",$w="⇚",Uw="Ĺ",Ww="ĺ",Jw="⦴",Kw="ℒ",Gw="Λ",Xw="λ",Zw="⟨",Qw="⟪",Yw="⦑",ek="⟨",tk="⪅",nk="ℒ",ak="«",lk="⇤",ok="⤟",rk="←",ik="↞",ck="⇐",uk="⤝",sk="↩",dk="↫",pk="⤹",hk="⥳",fk="↢",mk="⤙",vk="⤛",bk="⪫",gk="⪭",yk="⪭︀",wk="⤌",kk="⤎",xk="❲",Ck="{",Tk="[",Mk="⦋",Ok="⦏",Sk="⦍",Ek="Ľ",Nk="ľ",Dk="Ļ",Ak="ļ",Lk="⌈",Ik="{",Rk="Л",jk="л",Bk="⤶",Pk="“",Vk="„",Fk="⥧",Hk="⥋",zk="↲",_k="≤",qk="≦",$k="⟨",Uk="⇤",Wk="←",Jk="←",Kk="⇐",Gk="⇆",Xk="↢",Zk="⌈",Qk="⟦",Yk="⥡",ex="⥙",tx="⇃",nx="⌊",ax="↽",lx="↼",ox="⇇",rx="↔",ix="↔",cx="⇔",ux="⇆",sx="⇋",dx="↭",px="⥎",hx="↤",fx="⊣",mx="⥚",vx="⋋",bx="⧏",gx="⊲",yx="⊴",wx="⥑",kx="⥠",xx="⥘",Cx="↿",Tx="⥒",Mx="↼",Ox="⪋",Sx="⋚",Ex="≤",Nx="≦",Dx="⩽",Ax="⪨",Lx="⩽",Ix="⩿",Rx="⪁",jx="⪃",Bx="⋚︀",Px="⪓",Vx="⪅",Fx="⋖",Hx="⋚",zx="⪋",_x="⋚",qx="≦",$x="≶",Ux="≶",Wx="⪡",Jx="≲",Kx="⩽",Gx="≲",Xx="⥼",Zx="⌊",Qx="𝔏",Yx="𝔩",eC="≶",tC="⪑",nC="⥢",aC="↽",lC="↼",oC="⥪",rC="▄",iC="Љ",cC="љ",uC="⇇",sC="≪",dC="⋘",pC="⌞",hC="⇚",fC="⥫",mC="◺",vC="Ŀ",bC="ŀ",gC="⎰",yC="⎰",wC="⪉",kC="⪉",xC="⪇",CC="≨",TC="⪇",MC="≨",OC="⋦",SC="⟬",EC="⇽",NC="⟦",DC="⟵",AC="⟵",LC="⟸",IC="⟷",RC="⟷",jC="⟺",BC="⟼",PC="⟶",VC="⟶",FC="⟹",HC="↫",zC="↬",_C="⦅",qC="𝕃",$C="𝕝",UC="⨭",WC="⨴",JC="∗",KC="_",GC="↙",XC="↘",ZC="◊",QC="◊",YC="⧫",eT="(",tT="⦓",nT="⇆",aT="⌟",lT="⇋",oT="⥭",rT="",iT="⊿",cT="‹",uT="𝓁",sT="ℒ",dT="↰",pT="↰",hT="≲",fT="⪍",mT="⪏",vT="[",bT="‘",gT="‚",yT="Ł",wT="ł",kT="⪦",xT="⩹",CT="<",TT="<",MT="≪",OT="⋖",ST="⋋",ET="⋉",NT="⥶",DT="⩻",AT="◃",LT="⊴",IT="◂",RT="⦖",jT="⥊",BT="⥦",PT="≨︀",VT="≨︀",FT="¯",HT="♂",zT="✠",_T="✠",qT="↦",$T="↦",UT="↧",WT="↤",JT="↥",KT="▮",GT="⨩",XT="М",ZT="м",QT="—",YT="∺",eM="∡",tM=" ",nM="ℳ",aM="𝔐",lM="𝔪",oM="℧",rM="µ",iM="*",cM="⫰",uM="∣",sM="·",dM="⊟",pM="−",hM="∸",fM="⨪",mM="∓",vM="⫛",bM="…",gM="∓",yM="⊧",wM="𝕄",kM="𝕞",xM="∓",CM="𝓂",TM="ℳ",MM="∾",OM="Μ",SM="μ",EM="⊸",NM="⊸",DM="∇",AM="Ń",LM="ń",IM="∠⃒",RM="≉",jM="⩰̸",BM="≋̸",PM="ʼn",VM="≉",FM="♮",HM="ℕ",zM="♮",_M=" ",qM="≎̸",$M="≏̸",UM="⩃",WM="Ň",JM="ň",KM="Ņ",GM="ņ",XM="≇",ZM="⩭̸",QM="⩂",YM="Н",eO="н",tO="–",nO="⤤",aO="↗",lO="⇗",oO="↗",rO="≠",iO="≐̸",cO="",uO="",sO="",dO="",pO="≢",hO="⤨",fO="≂̸",mO="≫",vO="≪",bO="\n",gO="∄",yO="∄",wO="𝔑",kO="𝔫",xO="≧̸",CO="≱",TO="≱",MO="≧̸",OO="⩾̸",SO="⩾̸",EO="⋙̸",NO="≵",DO="≫⃒",AO="≯",LO="≯",IO="≫̸",RO="↮",jO="⇎",BO="⫲",PO="∋",VO="⋼",FO="⋺",HO="∋",zO="Њ",_O="њ",qO="↚",$O="⇍",UO="‥",WO="≦̸",JO="≰",KO="↚",GO="⇍",XO="↮",ZO="⇎",QO="≰",YO="≦̸",eS="⩽̸",tS="⩽̸",nS="≮",aS="⋘̸",lS="≴",oS="≪⃒",rS="≮",iS="⋪",cS="⋬",uS="≪̸",sS="∤",dS="",pS=" ",hS="𝕟",fS="ℕ",mS="⫬",vS="¬",bS="≢",gS="≭",yS="∦",wS="∉",kS="≠",xS="≂̸",CS="∄",TS="≯",MS="≱",OS="≧̸",SS="≫̸",ES="≹",NS="⩾̸",DS="≵",AS="≎̸",LS="≏̸",IS="∉",RS="⋵̸",jS="⋹̸",BS="∉",PS="⋷",VS="⋶",FS="⧏̸",HS="⋪",zS="⋬",_S="≮",qS="≰",$S="≸",US="≪̸",WS="⩽̸",JS="≴",KS="⪢̸",GS="⪡̸",XS="∌",ZS="∌",QS="⋾",YS="⋽",eE="⊀",tE="⪯̸",nE="⋠",aE="∌",lE="⧐̸",oE="⋫",rE="⋭",iE="⊏̸",cE="⋢",uE="⊐̸",sE="⋣",dE="⊂⃒",pE="⊈",hE="⊁",fE="⪰̸",mE="⋡",vE="≿̸",bE="⊃⃒",gE="⊉",yE="≁",wE="≄",kE="≇",xE="≉",CE="∤",TE="∦",ME="∦",OE="⫽⃥",SE="∂̸",EE="⨔",NE="⊀",DE="⋠",AE="⊀",LE="⪯̸",IE="⪯̸",RE="⤳̸",jE="↛",BE="⇏",PE="↝̸",VE="↛",FE="⇏",HE="⋫",zE="⋭",_E="⊁",qE="⋡",$E="⪰̸",UE="𝒩",WE="𝓃",JE="∤",KE="∦",GE="≁",XE="≄",ZE="≄",QE="∤",YE="∦",eN="⋢",tN="⋣",nN="⊄",aN="⫅̸",lN="⊈",oN="⊂⃒",rN="⊈",iN="⫅̸",cN="⊁",uN="⪰̸",sN="⊅",dN="⫆̸",pN="⊉",hN="⊃⃒",fN="⊉",mN="⫆̸",vN="≹",bN="Ñ",gN="ñ",yN="≸",wN="⋪",kN="⋬",xN="⋫",CN="⋭",TN="Ν",MN="ν",ON="#",SN="№",EN=" ",NN="≍⃒",DN="⊬",AN="⊭",LN="⊮",IN="⊯",RN="≥⃒",jN=">⃒",BN="⤄",PN="⧞",VN="⤂",FN="≤⃒",HN="<⃒",zN="⊴⃒",_N="⤃",qN="⊵⃒",$N="∼⃒",UN="⤣",WN="↖",JN="⇖",KN="↖",GN="⤧",XN="Ó",ZN="ó",QN="⊛",YN="Ô",eD="ô",tD="⊚",nD="О",aD="о",lD="⊝",oD="Ő",rD="ő",iD="⨸",cD="⊙",uD="⦼",sD="Œ",dD="œ",pD="⦿",hD="𝔒",fD="𝔬",mD="˛",vD="Ò",bD="ò",gD="⧁",yD="⦵",wD="Ω",kD="∮",xD="↺",CD="⦾",TD="⦻",MD="‾",OD="⧀",SD="Ō",ED="ō",ND="Ω",DD="ω",AD="Ο",LD="ο",ID="⦶",RD="⊖",jD="𝕆",BD="𝕠",PD="⦷",VD="“",FD="‘",HD="⦹",zD="⊕",_D="↻",qD="⩔",$D="∨",UD="⩝",WD="ℴ",JD="ℴ",KD="ª",GD="º",XD="⊶",ZD="⩖",QD="⩗",YD="⩛",eA="Ⓢ",tA="𝒪",nA="ℴ",aA="Ø",lA="ø",oA="⊘",rA="Õ",iA="õ",cA="⨶",uA="⨷",sA="⊗",dA="Ö",pA="ö",hA="⌽",fA="‾",mA="⏞",vA="⎴",bA="⏜",gA="¶",yA="∥",wA="∥",kA="⫳",xA="⫽",CA="∂",TA="∂",MA="П",OA="п",SA="%",EA=".",NA="‰",DA="⊥",AA="‱",LA="𝔓",IA="𝔭",RA="Φ",jA="φ",BA="ϕ",PA="ℳ",VA="☎",FA="Π",HA="π",zA="⋔",_A="ϖ",qA="ℏ",$A="ℎ",UA="ℏ",WA="⨣",JA="⊞",KA="⨢",GA="+",XA="∔",ZA="⨥",QA="⩲",YA="±",eL="±",tL="⨦",nL="⨧",aL="±",lL="ℌ",oL="⨕",rL="𝕡",iL="ℙ",cL="£",uL="⪷",sL="⪻",dL="≺",pL="≼",hL="⪷",fL="≺",mL="≼",vL="≺",bL="⪯",gL="≼",yL="≾",wL="⪯",kL="⪹",xL="⪵",CL="⋨",TL="⪯",ML="⪳",OL="≾",SL="′",EL="″",NL="ℙ",DL="⪹",AL="⪵",LL="⋨",IL="∏",RL="∏",jL="⌮",BL="⌒",PL="⌓",VL="∝",FL="∝",HL="∷",zL="∝",_L="≾",qL="⊰",$L="𝒫",UL="𝓅",WL="Ψ",JL="ψ",KL=" ",GL="𝔔",XL="𝔮",ZL="⨌",QL="𝕢",YL="ℚ",eI="⁗",tI="𝒬",nI="𝓆",aI="ℍ",lI="⨖",oI="?",rI="≟",iI='"',cI='"',uI="⇛",sI="∽̱",dI="Ŕ",pI="ŕ",hI="√",fI="⦳",mI="⟩",vI="⟫",bI="⦒",gI="⦥",yI="⟩",wI="»",kI="⥵",xI="⇥",CI="⤠",TI="⤳",MI="→",OI="↠",SI="⇒",EI="⤞",NI="↪",DI="↬",AI="⥅",LI="⥴",II="⤖",RI="↣",jI="↝",BI="⤚",PI="⤜",VI="∶",FI="ℚ",HI="⤍",zI="⤏",_I="⤐",qI="❳",$I="}",UI="]",WI="⦌",JI="⦎",KI="⦐",GI="Ř",XI="ř",ZI="Ŗ",QI="ŗ",YI="⌉",eR="}",tR="Р",nR="р",aR="⤷",lR="⥩",oR="”",rR="”",iR="↳",cR="ℜ",uR="ℛ",sR="ℜ",dR="ℝ",pR="ℜ",hR="▭",fR="®",mR="®",vR="∋",bR="⇋",gR="⥯",yR="⥽",wR="⌋",kR="𝔯",xR="ℜ",CR="⥤",TR="⇁",MR="⇀",OR="⥬",SR="Ρ",ER="ρ",NR="ϱ",DR="⟩",AR="⇥",LR="→",IR="→",RR="⇒",jR="⇄",BR="↣",PR="⌉",VR="⟧",FR="⥝",HR="⥕",zR="⇂",_R="⌋",qR="⇁",$R="⇀",UR="⇄",WR="⇌",JR="⇉",KR="↝",GR="↦",XR="⊢",ZR="⥛",QR="⋌",YR="⧐",ej="⊳",tj="⊵",nj="⥏",aj="⥜",lj="⥔",oj="↾",rj="⥓",ij="⇀",cj="˚",uj="≓",sj="⇄",dj="⇌",pj="",hj="⎱",fj="⎱",mj="⫮",vj="⟭",bj="⇾",gj="⟧",yj="⦆",wj="𝕣",kj="ℝ",xj="⨮",Cj="⨵",Tj="⥰",Mj=")",Oj="⦔",Sj="⨒",Ej="⇉",Nj="⇛",Dj="›",Aj="𝓇",Lj="ℛ",Ij="↱",Rj="↱",jj="]",Bj="’",Pj="’",Vj="⋌",Fj="⋊",Hj="▹",zj="⊵",_j="▸",qj="⧎",$j="⧴",Uj="⥨",Wj="℞",Jj="Ś",Kj="ś",Gj="‚",Xj="⪸",Zj="Š",Qj="š",Yj="⪼",eB="≻",tB="≽",nB="⪰",aB="⪴",lB="Ş",oB="ş",rB="Ŝ",iB="ŝ",cB="⪺",uB="⪶",sB="⋩",dB="⨓",pB="≿",hB="С",fB="с",mB="⊡",vB="⋅",bB="⩦",gB="⤥",yB="↘",wB="⇘",kB="↘",xB="§",CB=";",TB="⤩",MB="∖",OB="∖",SB="✶",EB="𝔖",NB="𝔰",DB="⌢",AB="♯",LB="Щ",IB="щ",RB="Ш",jB="ш",BB="↓",PB="←",VB="∣",FB="∥",HB="→",zB="↑",_B="",qB="Σ",$B="σ",UB="ς",WB="ς",JB="∼",KB="⩪",GB="≃",XB="≃",ZB="⪞",QB="⪠",YB="⪝",eP="⪟",tP="≆",nP="⨤",aP="⥲",lP="←",oP="∘",rP="∖",iP="⨳",cP="⧤",uP="∣",sP="⌣",dP="⪪",pP="⪬",hP="⪬︀",fP="Ь",mP="ь",vP="⌿",bP="⧄",gP="/",yP="𝕊",wP="𝕤",kP="♠",xP="♠",CP="∥",TP="⊓",MP="⊓︀",OP="⊔",SP="⊔︀",EP="√",NP="⊏",DP="⊑",AP="⊏",LP="⊑",IP="⊐",RP="⊒",jP="⊐",BP="⊒",PP="□",VP="□",FP="⊓",HP="⊏",zP="⊑",_P="⊐",qP="⊒",$P="⊔",UP="▪",WP="□",JP="▪",KP="→",GP="𝒮",XP="𝓈",ZP="∖",QP="⌣",YP="⋆",eV="⋆",tV="☆",nV="★",aV="ϵ",lV="ϕ",oV="¯",rV="⊂",iV="⋐",cV="⪽",uV="⫅",sV="⊆",dV="⫃",pV="⫁",hV="⫋",fV="⊊",mV="⪿",vV="⥹",bV="⊂",gV="⋐",yV="⊆",wV="⫅",kV="⊆",xV="⊊",CV="⫋",TV="⫇",MV="⫕",OV="⫓",SV="⪸",EV="≻",NV="≽",DV="≻",AV="⪰",LV="≽",IV="≿",RV="⪰",jV="⪺",BV="⪶",PV="⋩",VV="≿",FV="∋",HV="∑",zV="∑",_V="♪",qV="¹",$V="²",UV="³",WV="⊃",JV="⋑",KV="⪾",GV="⫘",XV="⫆",ZV="⊇",QV="⫄",YV="⊃",eF="⊇",tF="⟉",nF="⫗",aF="⥻",lF="⫂",oF="⫌",rF="⊋",iF="⫀",cF="⊃",uF="⋑",sF="⊇",dF="⫆",pF="⊋",hF="⫌",fF="⫈",mF="⫔",vF="⫖",bF="⤦",gF="↙",yF="⇙",wF="↙",kF="⤪",xF="ß",CF="\t",TF="⌖",MF="Τ",OF="τ",SF="⎴",EF="Ť",NF="ť",DF="Ţ",AF="ţ",LF="Т",IF="т",RF="⃛",jF="⌕",BF="𝔗",PF="𝔱",VF="∴",FF="∴",HF="∴",zF="Θ",_F="θ",qF="ϑ",$F="ϑ",UF="≈",WF="∼",JF=" ",KF=" ",GF=" ",XF="≈",ZF="∼",QF="Þ",YF="þ",eH="˜",tH="∼",nH="≃",aH="≅",lH="≈",oH="⨱",rH="⊠",iH="×",cH="⨰",uH="∭",sH="⤨",dH="⌶",pH="⫱",hH="⊤",fH="𝕋",mH="𝕥",vH="⫚",bH="⤩",gH="‴",yH="™",wH="™",kH="▵",xH="▿",CH="◃",TH="⊴",MH="≜",OH="▹",SH="⊵",EH="◬",NH="≜",DH="⨺",AH="⃛",LH="⨹",IH="⧍",RH="⨻",jH="⏢",BH="𝒯",PH="𝓉",VH="Ц",FH="ц",HH="Ћ",zH="ћ",_H="Ŧ",qH="ŧ",$H="≬",UH="↞",WH="↠",JH="Ú",KH="ú",GH="↑",XH="↟",ZH="⇑",QH="⥉",YH="Ў",ez="ў",tz="Ŭ",nz="ŭ",az="Û",lz="û",oz="У",rz="у",iz="⇅",cz="Ű",uz="ű",sz="⥮",dz="⥾",pz="𝔘",hz="𝔲",fz="Ù",mz="ù",vz="⥣",bz="↿",gz="↾",yz="▀",wz="⌜",kz="⌜",xz="⌏",Cz="◸",Tz="Ū",Mz="ū",Oz="¨",Sz="_",Ez="⏟",Nz="⎵",Dz="⏝",Az="⋃",Lz="⊎",Iz="Ų",Rz="ų",jz="𝕌",Bz="𝕦",Pz="⤒",Vz="↑",Fz="↑",Hz="⇑",zz="⇅",_z="↕",qz="↕",$z="⇕",Uz="⥮",Wz="↿",Jz="↾",Kz="⊎",Gz="↖",Xz="↗",Zz="υ",Qz="ϒ",Yz="ϒ",e_="Υ",t_="υ",n_="↥",a_="⊥",l_="⇈",o_="⌝",r_="⌝",i_="⌎",c_="Ů",u_="ů",s_="◹",d_="𝒰",p_="𝓊",h_="⋰",f_="Ũ",m_="ũ",v_="▵",b_="▴",g_="⇈",y_="Ü",w_="ü",k_="⦧",x_="⦜",C_="ϵ",T_="ϰ",M_="∅",O_="ϕ",S_="ϖ",E_="∝",N_="↕",D_="⇕",A_="ϱ",L_="ς",I_="⊊︀",R_="⫋︀",j_="⊋︀",B_="⫌︀",P_="ϑ",V_="⊲",F_="⊳",H_="⫨",z_="⫫",__="⫩",q_="В",$_="в",U_="⊢",W_="⊨",J_="⊩",K_="⊫",G_="⫦",X_="⊻",Z_="∨",Q_="⋁",Y_="≚",eq="⋮",tq="|",nq="‖",aq="|",lq="‖",oq="∣",rq="|",iq="❘",cq="≀",uq=" ",sq="𝔙",dq="𝔳",pq="⊲",hq="⊂⃒",fq="⊃⃒",mq="𝕍",vq="𝕧",bq="∝",gq="⊳",yq="𝒱",wq="𝓋",kq="⫋︀",xq="⊊︀",Cq="⫌︀",Tq="⊋︀",Mq="⊪",Oq="⦚",Sq="Ŵ",Eq="ŵ",Nq="⩟",Dq="∧",Aq="⋀",Lq="≙",Iq="℘",Rq="𝔚",jq="𝔴",Bq="𝕎",Pq="𝕨",Vq="℘",Fq="≀",Hq="≀",zq="𝒲",_q="𝓌",qq="⋂",$q="◯",Uq="⋃",Wq="▽",Jq="𝔛",Kq="𝔵",Gq="⟷",Xq="⟺",Zq="Ξ",Qq="ξ",Yq="⟵",e$="⟸",t$="⟼",n$="⋻",a$="⨀",l$="𝕏",o$="𝕩",r$="⨁",i$="⨂",c$="⟶",u$="⟹",s$="𝒳",d$="𝓍",p$="⨆",h$="⨄",f$="△",m$="⋁",v$="⋀",b$="Ý",g$="ý",y$="Я",w$="я",k$="Ŷ",x$="ŷ",C$="Ы",T$="ы",M$="¥",O$="𝔜",S$="𝔶",E$="Ї",N$="ї",D$="𝕐",A$="𝕪",L$="𝒴",I$="𝓎",R$="Ю",j$="ю",B$="ÿ",P$="Ÿ",V$="Ź",F$="ź",H$="Ž",z$="ž",_$="З",q$="з",$$="Ż",U$="ż",W$="ℨ",J$="",K$="Ζ",G$="ζ",X$="𝔷",Z$="ℨ",Q$="Ж",Y$="ж",eU="⇝",tU="𝕫",nU="ℤ",aU="𝒵",lU="𝓏",oU="",rU="",iU={Aacute:qo,aacute:$o,Abreve:Uo,abreve:Wo,ac:Jo,acd:Ko,acE:Go,Acirc:Xo,acirc:Zo,acute:Qo,Acy:Yo,acy:er,AElig:tr,aelig:nr,af:ar,Afr:lr,afr:or,Agrave:rr,agrave:ir,alefsym:cr,aleph:ur,Alpha:sr,alpha:dr,Amacr:pr,amacr:hr,amalg:fr,amp:mr,AMP:vr,andand:br,And:gr,and:yr,andd:wr,andslope:kr,andv:xr,ang:Cr,ange:Tr,angle:Mr,angmsdaa:Or,angmsdab:Sr,angmsdac:Er,angmsdad:Nr,angmsdae:Dr,angmsdaf:Ar,angmsdag:Lr,angmsdah:Ir,angmsd:Rr,angrt:jr,angrtvb:Br,angrtvbd:Pr,angsph:Vr,angst:Fr,angzarr:Hr,Aogon:zr,aogon:_r,Aopf:qr,aopf:$r,apacir:Ur,ap:Wr,apE:Jr,ape:Kr,apid:Gr,apos:Xr,ApplyFunction:Zr,approx:Qr,approxeq:Yr,Aring:ei,aring:ti,Ascr:ni,ascr:ai,Assign:li,ast:oi,asymp:ri,asympeq:ii,Atilde:ci,atilde:ui,Auml:si,auml:di,awconint:pi,awint:hi,backcong:fi,backepsilon:mi,backprime:vi,backsim:bi,backsimeq:gi,Backslash:yi,Barv:wi,barvee:ki,barwed:xi,Barwed:Ci,barwedge:Ti,bbrk:Mi,bbrktbrk:Oi,bcong:Si,Bcy:Ei,bcy:Ni,bdquo:Di,becaus:Ai,because:Li,Because:Ii,bemptyv:Ri,bepsi:ji,bernou:Bi,Bernoullis:Pi,Beta:Vi,beta:Fi,beth:Hi,between:zi,Bfr:_i,bfr:qi,bigcap:$i,bigcirc:Ui,bigcup:Wi,bigodot:Ji,bigoplus:Ki,bigotimes:Gi,bigsqcup:Xi,bigstar:Zi,bigtriangledown:Qi,bigtriangleup:Yi,biguplus:ec,bigvee:tc,bigwedge:nc,bkarow:ac,blacklozenge:lc,blacksquare:oc,blacktriangle:rc,blacktriangledown:ic,blacktriangleleft:cc,blacktriangleright:uc,blank:sc,blk12:dc,blk14:pc,blk34:hc,block:fc,bne:mc,bnequiv:vc,bNot:bc,bnot:gc,Bopf:yc,bopf:wc,bot:kc,bottom:xc,bowtie:Cc,boxbox:Tc,boxdl:Mc,boxdL:Oc,boxDl:Sc,boxDL:Ec,boxdr:Nc,boxdR:Dc,boxDr:Ac,boxDR:Lc,boxh:Ic,boxH:Rc,boxhd:jc,boxHd:Bc,boxhD:Pc,boxHD:Vc,boxhu:Fc,boxHu:Hc,boxhU:zc,boxHU:_c,boxminus:qc,boxplus:$c,boxtimes:Uc,boxul:Wc,boxuL:Jc,boxUl:Kc,boxUL:Gc,boxur:Xc,boxuR:Zc,boxUr:Qc,boxUR:Yc,boxv:eu,boxV:tu,boxvh:nu,boxvH:au,boxVh:lu,boxVH:ou,boxvl:ru,boxvL:iu,boxVl:cu,boxVL:uu,boxvr:su,boxvR:du,boxVr:pu,boxVR:hu,bprime:fu,breve:mu,Breve:vu,brvbar:bu,bscr:gu,Bscr:yu,bsemi:wu,bsim:ku,bsime:xu,bsolb:Cu,bsol:Tu,bsolhsub:Mu,bull:Ou,bullet:Su,bump:Eu,bumpE:Nu,bumpe:Du,Bumpeq:Au,bumpeq:Lu,Cacute:Iu,cacute:Ru,capand:ju,capbrcup:Bu,capcap:Pu,cap:Vu,Cap:Fu,capcup:Hu,capdot:zu,CapitalDifferentialD:_u,caps:qu,caret:$u,caron:Uu,Cayleys:Wu,ccaps:Ju,Ccaron:Ku,ccaron:Gu,Ccedil:Xu,ccedil:Zu,Ccirc:Qu,ccirc:Yu,Cconint:es,ccups:ts,ccupssm:ns,Cdot:as,cdot:ls,cedil:os,Cedilla:rs,cemptyv:is,cent:cs,centerdot:us,CenterDot:ss,cfr:ds,Cfr:ps,CHcy:hs,chcy:fs,check:ms,checkmark:vs,Chi:bs,chi:gs,circ:ys,circeq:ws,circlearrowleft:ks,circlearrowright:xs,circledast:Cs,circledcirc:Ts,circleddash:Ms,CircleDot:Os,circledR:Ss,circledS:Es,CircleMinus:Ns,CirclePlus:Ds,CircleTimes:As,cir:Ls,cirE:Is,cire:Rs,cirfnint:js,cirmid:Bs,cirscir:Ps,ClockwiseContourIntegral:Vs,CloseCurlyDoubleQuote:Fs,CloseCurlyQuote:Hs,clubs:zs,clubsuit:_s,colon:qs,Colon:$s,Colone:Us,colone:Ws,coloneq:Js,comma:Ks,commat:Gs,comp:Xs,compfn:Zs,complement:Qs,complexes:Ys,cong:ed,congdot:td,Congruent:nd,conint:ad,Conint:ld,ContourIntegral:od,copf:rd,Copf:id,coprod:cd,Coproduct:ud,copy:sd,COPY:dd,copysr:pd,CounterClockwiseContourIntegral:hd,crarr:fd,cross:md,Cross:vd,Cscr:bd,cscr:gd,csub:yd,csube:wd,csup:kd,csupe:xd,ctdot:Cd,cudarrl:Td,cudarrr:Md,cuepr:Od,cuesc:Sd,cularr:Ed,cularrp:Nd,cupbrcap:Dd,cupcap:Ad,CupCap:Ld,cup:Id,Cup:Rd,cupcup:jd,cupdot:Bd,cupor:Pd,cups:Vd,curarr:Fd,curarrm:Hd,curlyeqprec:zd,curlyeqsucc:_d,curlyvee:qd,curlywedge:$d,curren:Ud,curvearrowleft:Wd,curvearrowright:Jd,cuvee:Kd,cuwed:Gd,cwconint:Xd,cwint:Zd,cylcty:Qd,dagger:Yd,Dagger:ep,daleth:tp,darr:np,Darr:ap,dArr:lp,dash:op,Dashv:rp,dashv:ip,dbkarow:cp,dblac:up,Dcaron:sp,dcaron:dp,Dcy:pp,dcy:hp,ddagger:fp,ddarr:mp,DD:vp,dd:bp,DDotrahd:gp,ddotseq:yp,deg:wp,Del:kp,Delta:xp,delta:Cp,demptyv:Tp,dfisht:Mp,Dfr:Op,dfr:Sp,dHar:Ep,dharl:Np,dharr:Dp,DiacriticalAcute:Ap,DiacriticalDot:Lp,DiacriticalDoubleAcute:Ip,DiacriticalGrave:Rp,DiacriticalTilde:jp,diam:Bp,diamond:Pp,Diamond:Vp,diamondsuit:Fp,diams:Hp,die:zp,DifferentialD:_p,digamma:qp,disin:$p,div:Up,divide:Wp,divideontimes:Jp,divonx:Kp,DJcy:Gp,djcy:Xp,dlcorn:Zp,dlcrop:Qp,dollar:Yp,Dopf:eh,dopf:th,Dot:nh,dot:ah,DotDot:lh,doteq:oh,doteqdot:rh,DotEqual:ih,dotminus:ch,dotplus:uh,dotsquare:sh,doublebarwedge:dh,DoubleContourIntegral:ph,DoubleDot:hh,DoubleDownArrow:fh,DoubleLeftArrow:mh,DoubleLeftRightArrow:vh,DoubleLeftTee:bh,DoubleLongLeftArrow:gh,DoubleLongLeftRightArrow:yh,DoubleLongRightArrow:wh,DoubleRightArrow:kh,DoubleRightTee:xh,DoubleUpArrow:Ch,DoubleUpDownArrow:Th,DoubleVerticalBar:Mh,DownArrowBar:Oh,downarrow:Sh,DownArrow:Eh,Downarrow:Nh,DownArrowUpArrow:Dh,DownBreve:Ah,downdownarrows:Lh,downharpoonleft:Ih,downharpoonright:Rh,DownLeftRightVector:jh,DownLeftTeeVector:Bh,DownLeftVectorBar:Ph,DownLeftVector:Vh,DownRightTeeVector:Fh,DownRightVectorBar:Hh,DownRightVector:zh,DownTeeArrow:_h,DownTee:qh,drbkarow:$h,drcorn:Uh,drcrop:Wh,Dscr:Jh,dscr:Kh,DScy:Gh,dscy:Xh,dsol:Zh,Dstrok:Qh,dstrok:Yh,dtdot:ef,dtri:tf,dtrif:nf,duarr:af,duhar:lf,dwangle:of,DZcy:rf,dzcy:cf,dzigrarr:uf,Eacute:sf,eacute:df,easter:pf,Ecaron:hf,ecaron:ff,Ecirc:mf,ecirc:vf,ecir:bf,ecolon:gf,Ecy:yf,ecy:wf,eDDot:kf,Edot:xf,edot:Cf,eDot:Tf,ee:Mf,efDot:Of,Efr:Sf,efr:Ef,eg:Nf,Egrave:Df,egrave:Af,egs:Lf,egsdot:If,el:Rf,Element:jf,elinters:Bf,ell:Pf,els:Vf,elsdot:Ff,Emacr:Hf,emacr:zf,empty:_f,emptyset:qf,EmptySmallSquare:$f,emptyv:Uf,EmptyVerySmallSquare:Wf,emsp13:Jf,emsp14:Kf,emsp:Gf,ENG:Xf,eng:Zf,ensp:Qf,Eogon:Yf,eogon:em,Eopf:tm,eopf:nm,epar:am,eparsl:lm,eplus:om,epsi:rm,Epsilon:im,epsilon:cm,epsiv:um,eqcirc:sm,eqcolon:dm,eqsim:pm,eqslantgtr:hm,eqslantless:fm,Equal:mm,equals:vm,EqualTilde:bm,equest:gm,Equilibrium:ym,equiv:wm,equivDD:km,eqvparsl:xm,erarr:Cm,erDot:Tm,escr:Mm,Escr:Om,esdot:Sm,Esim:Em,esim:Nm,Eta:Dm,eta:Am,ETH:Lm,eth:Im,Euml:Rm,euml:jm,euro:Bm,excl:Pm,exist:Vm,Exists:Fm,expectation:Hm,exponentiale:zm,ExponentialE:_m,fallingdotseq:qm,Fcy:$m,fcy:Um,female:Wm,ffilig:Jm,fflig:Km,ffllig:Gm,Ffr:Xm,ffr:Zm,filig:Qm,FilledSmallSquare:Ym,FilledVerySmallSquare:ev,fjlig:tv,flat:nv,fllig:av,fltns:lv,fnof:ov,Fopf:rv,fopf:iv,forall:cv,ForAll:uv,fork:sv,forkv:dv,Fouriertrf:pv,fpartint:hv,frac12:fv,frac13:mv,frac14:vv,frac15:bv,frac16:gv,frac18:yv,frac23:wv,frac25:kv,frac34:xv,frac35:Cv,frac38:Tv,frac45:Mv,frac56:Ov,frac58:Sv,frac78:Ev,frasl:Nv,frown:Dv,fscr:Av,Fscr:Lv,gacute:Iv,Gamma:Rv,gamma:jv,Gammad:Bv,gammad:Pv,gap:Vv,Gbreve:Fv,gbreve:Hv,Gcedil:zv,Gcirc:_v,gcirc:qv,Gcy:$v,gcy:Uv,Gdot:Wv,gdot:Jv,ge:Kv,gE:Gv,gEl:Xv,gel:Zv,geq:Qv,geqq:Yv,geqslant:eb,gescc:tb,ges:nb,gesdot:ab,gesdoto:lb,gesdotol:ob,gesl:rb,gesles:ib,Gfr:cb,gfr:ub,gg:sb,Gg:db,ggg:pb,gimel:hb,GJcy:fb,gjcy:mb,gla:vb,gl:bb,glE:gb,glj:yb,gnap:wb,gnapprox:kb,gne:xb,gnE:Cb,gneq:Tb,gneqq:Mb,gnsim:Ob,Gopf:Sb,gopf:Eb,grave:Nb,GreaterEqual:Db,GreaterEqualLess:Ab,GreaterFullEqual:Lb,GreaterGreater:Ib,GreaterLess:Rb,GreaterSlantEqual:jb,GreaterTilde:Bb,Gscr:Pb,gscr:Vb,gsim:Fb,gsime:Hb,gsiml:zb,gtcc:_b,gtcir:qb,gt:$b,GT:Ub,Gt:Wb,gtdot:Jb,gtlPar:Kb,gtquest:Gb,gtrapprox:Xb,gtrarr:Zb,gtrdot:Qb,gtreqless:Yb,gtreqqless:eg,gtrless:tg,gtrsim:ng,gvertneqq:ag,gvnE:lg,Hacek:og,hairsp:rg,half:ig,hamilt:cg,HARDcy:ug,hardcy:sg,harrcir:dg,harr:pg,hArr:hg,harrw:fg,Hat:mg,hbar:vg,Hcirc:bg,hcirc:gg,hearts:yg,heartsuit:wg,hellip:kg,hercon:xg,hfr:Cg,Hfr:Tg,HilbertSpace:Mg,hksearow:Og,hkswarow:Sg,hoarr:Eg,homtht:Ng,hookleftarrow:Dg,hookrightarrow:Ag,hopf:Lg,Hopf:Ig,horbar:Rg,HorizontalLine:jg,hscr:Bg,Hscr:Pg,hslash:Vg,Hstrok:Fg,hstrok:Hg,HumpDownHump:zg,HumpEqual:_g,hybull:qg,hyphen:$g,Iacute:Ug,iacute:Wg,ic:Jg,Icirc:Kg,icirc:Gg,Icy:Xg,icy:Zg,Idot:Qg,IEcy:Yg,iecy:ey,iexcl:ty,iff:ny,ifr:ay,Ifr:ly,Igrave:oy,igrave:ry,ii:iy,iiiint:cy,iiint:uy,iinfin:sy,iiota:dy,IJlig:py,ijlig:hy,Imacr:fy,imacr:my,image:vy,ImaginaryI:by,imagline:gy,imagpart:yy,imath:wy,Im:ky,imof:xy,imped:Cy,Implies:Ty,incare:My,in:"∈",infin:Oy,infintie:Sy,inodot:Ey,intcal:Ny,int:Dy,Int:Ay,integers:Ly,Integral:Iy,intercal:Ry,Intersection:jy,intlarhk:By,intprod:Py,InvisibleComma:Vy,InvisibleTimes:Fy,IOcy:Hy,iocy:zy,Iogon:_y,iogon:qy,Iopf:$y,iopf:Uy,Iota:Wy,iota:Jy,iprod:Ky,iquest:Gy,iscr:Xy,Iscr:Zy,isin:Qy,isindot:Yy,isinE:ew,isins:tw,isinsv:nw,isinv:aw,it:lw,Itilde:ow,itilde:rw,Iukcy:iw,iukcy:cw,Iuml:uw,iuml:sw,Jcirc:dw,jcirc:pw,Jcy:hw,jcy:fw,Jfr:mw,jfr:vw,jmath:bw,Jopf:gw,jopf:yw,Jscr:ww,jscr:kw,Jsercy:xw,jsercy:Cw,Jukcy:Tw,jukcy:Mw,Kappa:Ow,kappa:Sw,kappav:Ew,Kcedil:Nw,kcedil:Dw,Kcy:Aw,kcy:Lw,Kfr:Iw,kfr:Rw,kgreen:jw,KHcy:Bw,khcy:Pw,KJcy:Vw,kjcy:Fw,Kopf:Hw,kopf:zw,Kscr:_w,kscr:qw,lAarr:$w,Lacute:Uw,lacute:Ww,laemptyv:Jw,lagran:Kw,Lambda:Gw,lambda:Xw,lang:Zw,Lang:Qw,langd:Yw,langle:ek,lap:tk,Laplacetrf:nk,laquo:ak,larrb:lk,larrbfs:ok,larr:rk,Larr:ik,lArr:ck,larrfs:uk,larrhk:sk,larrlp:dk,larrpl:pk,larrsim:hk,larrtl:fk,latail:mk,lAtail:vk,lat:bk,late:gk,lates:yk,lbarr:wk,lBarr:kk,lbbrk:xk,lbrace:Ck,lbrack:Tk,lbrke:Mk,lbrksld:Ok,lbrkslu:Sk,Lcaron:Ek,lcaron:Nk,Lcedil:Dk,lcedil:Ak,lceil:Lk,lcub:Ik,Lcy:Rk,lcy:jk,ldca:Bk,ldquo:Pk,ldquor:Vk,ldrdhar:Fk,ldrushar:Hk,ldsh:zk,le:_k,lE:qk,LeftAngleBracket:$k,LeftArrowBar:Uk,leftarrow:Wk,LeftArrow:Jk,Leftarrow:Kk,LeftArrowRightArrow:Gk,leftarrowtail:Xk,LeftCeiling:Zk,LeftDoubleBracket:Qk,LeftDownTeeVector:Yk,LeftDownVectorBar:ex,LeftDownVector:tx,LeftFloor:nx,leftharpoondown:ax,leftharpoonup:lx,leftleftarrows:ox,leftrightarrow:rx,LeftRightArrow:ix,Leftrightarrow:cx,leftrightarrows:ux,leftrightharpoons:sx,leftrightsquigarrow:dx,LeftRightVector:px,LeftTeeArrow:hx,LeftTee:fx,LeftTeeVector:mx,leftthreetimes:vx,LeftTriangleBar:bx,LeftTriangle:gx,LeftTriangleEqual:yx,LeftUpDownVector:wx,LeftUpTeeVector:kx,LeftUpVectorBar:xx,LeftUpVector:Cx,LeftVectorBar:Tx,LeftVector:Mx,lEg:Ox,leg:Sx,leq:Ex,leqq:Nx,leqslant:Dx,lescc:Ax,les:Lx,lesdot:Ix,lesdoto:Rx,lesdotor:jx,lesg:Bx,lesges:Px,lessapprox:Vx,lessdot:Fx,lesseqgtr:Hx,lesseqqgtr:zx,LessEqualGreater:_x,LessFullEqual:qx,LessGreater:$x,lessgtr:Ux,LessLess:Wx,lesssim:Jx,LessSlantEqual:Kx,LessTilde:Gx,lfisht:Xx,lfloor:Zx,Lfr:Qx,lfr:Yx,lg:eC,lgE:tC,lHar:nC,lhard:aC,lharu:lC,lharul:oC,lhblk:rC,LJcy:iC,ljcy:cC,llarr:uC,ll:sC,Ll:dC,llcorner:pC,Lleftarrow:hC,llhard:fC,lltri:mC,Lmidot:vC,lmidot:bC,lmoustache:gC,lmoust:yC,lnap:wC,lnapprox:kC,lne:xC,lnE:CC,lneq:TC,lneqq:MC,lnsim:OC,loang:SC,loarr:EC,lobrk:NC,longleftarrow:DC,LongLeftArrow:AC,Longleftarrow:LC,longleftrightarrow:IC,LongLeftRightArrow:RC,Longleftrightarrow:jC,longmapsto:BC,longrightarrow:PC,LongRightArrow:VC,Longrightarrow:FC,looparrowleft:HC,looparrowright:zC,lopar:_C,Lopf:qC,lopf:$C,loplus:UC,lotimes:WC,lowast:JC,lowbar:KC,LowerLeftArrow:GC,LowerRightArrow:XC,loz:ZC,lozenge:QC,lozf:YC,lpar:eT,lparlt:tT,lrarr:nT,lrcorner:aT,lrhar:lT,lrhard:oT,lrm:rT,lrtri:iT,lsaquo:cT,lscr:uT,Lscr:sT,lsh:dT,Lsh:pT,lsim:hT,lsime:fT,lsimg:mT,lsqb:vT,lsquo:bT,lsquor:gT,Lstrok:yT,lstrok:wT,ltcc:kT,ltcir:xT,lt:CT,LT:TT,Lt:MT,ltdot:OT,lthree:ST,ltimes:ET,ltlarr:NT,ltquest:DT,ltri:AT,ltrie:LT,ltrif:IT,ltrPar:RT,lurdshar:jT,luruhar:BT,lvertneqq:PT,lvnE:VT,macr:FT,male:HT,malt:zT,maltese:_T,Map:"⤅",map:qT,mapsto:$T,mapstodown:UT,mapstoleft:WT,mapstoup:JT,marker:KT,mcomma:GT,Mcy:XT,mcy:ZT,mdash:QT,mDDot:YT,measuredangle:eM,MediumSpace:tM,Mellintrf:nM,Mfr:aM,mfr:lM,mho:oM,micro:rM,midast:iM,midcir:cM,mid:uM,middot:sM,minusb:dM,minus:pM,minusd:hM,minusdu:fM,MinusPlus:mM,mlcp:vM,mldr:bM,mnplus:gM,models:yM,Mopf:wM,mopf:kM,mp:xM,mscr:CM,Mscr:TM,mstpos:MM,Mu:OM,mu:SM,multimap:EM,mumap:NM,nabla:DM,Nacute:AM,nacute:LM,nang:IM,nap:RM,napE:jM,napid:BM,napos:PM,napprox:VM,natural:FM,naturals:HM,natur:zM,nbsp:_M,nbump:qM,nbumpe:$M,ncap:UM,Ncaron:WM,ncaron:JM,Ncedil:KM,ncedil:GM,ncong:XM,ncongdot:ZM,ncup:QM,Ncy:YM,ncy:eO,ndash:tO,nearhk:nO,nearr:aO,neArr:lO,nearrow:oO,ne:rO,nedot:iO,NegativeMediumSpace:cO,NegativeThickSpace:uO,NegativeThinSpace:sO,NegativeVeryThinSpace:dO,nequiv:pO,nesear:hO,nesim:fO,NestedGreaterGreater:mO,NestedLessLess:vO,NewLine:bO,nexist:gO,nexists:yO,Nfr:wO,nfr:kO,ngE:xO,nge:CO,ngeq:TO,ngeqq:MO,ngeqslant:OO,nges:SO,nGg:EO,ngsim:NO,nGt:DO,ngt:AO,ngtr:LO,nGtv:IO,nharr:RO,nhArr:jO,nhpar:BO,ni:PO,nis:VO,nisd:FO,niv:HO,NJcy:zO,njcy:_O,nlarr:qO,nlArr:$O,nldr:UO,nlE:WO,nle:JO,nleftarrow:KO,nLeftarrow:GO,nleftrightarrow:XO,nLeftrightarrow:ZO,nleq:QO,nleqq:YO,nleqslant:eS,nles:tS,nless:nS,nLl:aS,nlsim:lS,nLt:oS,nlt:rS,nltri:iS,nltrie:cS,nLtv:uS,nmid:sS,NoBreak:dS,NonBreakingSpace:pS,nopf:hS,Nopf:fS,Not:mS,not:vS,NotCongruent:bS,NotCupCap:gS,NotDoubleVerticalBar:yS,NotElement:wS,NotEqual:kS,NotEqualTilde:xS,NotExists:CS,NotGreater:TS,NotGreaterEqual:MS,NotGreaterFullEqual:OS,NotGreaterGreater:SS,NotGreaterLess:ES,NotGreaterSlantEqual:NS,NotGreaterTilde:DS,NotHumpDownHump:AS,NotHumpEqual:LS,notin:IS,notindot:RS,notinE:jS,notinva:BS,notinvb:PS,notinvc:VS,NotLeftTriangleBar:FS,NotLeftTriangle:HS,NotLeftTriangleEqual:zS,NotLess:_S,NotLessEqual:qS,NotLessGreater:$S,NotLessLess:US,NotLessSlantEqual:WS,NotLessTilde:JS,NotNestedGreaterGreater:KS,NotNestedLessLess:GS,notni:XS,notniva:ZS,notnivb:QS,notnivc:YS,NotPrecedes:eE,NotPrecedesEqual:tE,NotPrecedesSlantEqual:nE,NotReverseElement:aE,NotRightTriangleBar:lE,NotRightTriangle:oE,NotRightTriangleEqual:rE,NotSquareSubset:iE,NotSquareSubsetEqual:cE,NotSquareSuperset:uE,NotSquareSupersetEqual:sE,NotSubset:dE,NotSubsetEqual:pE,NotSucceeds:hE,NotSucceedsEqual:fE,NotSucceedsSlantEqual:mE,NotSucceedsTilde:vE,NotSuperset:bE,NotSupersetEqual:gE,NotTilde:yE,NotTildeEqual:wE,NotTildeFullEqual:kE,NotTildeTilde:xE,NotVerticalBar:CE,nparallel:TE,npar:ME,nparsl:OE,npart:SE,npolint:EE,npr:NE,nprcue:DE,nprec:AE,npreceq:LE,npre:IE,nrarrc:RE,nrarr:jE,nrArr:BE,nrarrw:PE,nrightarrow:VE,nRightarrow:FE,nrtri:HE,nrtrie:zE,nsc:_E,nsccue:qE,nsce:$E,Nscr:UE,nscr:WE,nshortmid:JE,nshortparallel:KE,nsim:GE,nsime:XE,nsimeq:ZE,nsmid:QE,nspar:YE,nsqsube:eN,nsqsupe:tN,nsub:nN,nsubE:aN,nsube:lN,nsubset:oN,nsubseteq:rN,nsubseteqq:iN,nsucc:cN,nsucceq:uN,nsup:sN,nsupE:dN,nsupe:pN,nsupset:hN,nsupseteq:fN,nsupseteqq:mN,ntgl:vN,Ntilde:bN,ntilde:gN,ntlg:yN,ntriangleleft:wN,ntrianglelefteq:kN,ntriangleright:xN,ntrianglerighteq:CN,Nu:TN,nu:MN,num:ON,numero:SN,numsp:EN,nvap:NN,nvdash:DN,nvDash:AN,nVdash:LN,nVDash:IN,nvge:RN,nvgt:jN,nvHarr:BN,nvinfin:PN,nvlArr:VN,nvle:FN,nvlt:HN,nvltrie:zN,nvrArr:_N,nvrtrie:qN,nvsim:$N,nwarhk:UN,nwarr:WN,nwArr:JN,nwarrow:KN,nwnear:GN,Oacute:XN,oacute:ZN,oast:QN,Ocirc:YN,ocirc:eD,ocir:tD,Ocy:nD,ocy:aD,odash:lD,Odblac:oD,odblac:rD,odiv:iD,odot:cD,odsold:uD,OElig:sD,oelig:dD,ofcir:pD,Ofr:hD,ofr:fD,ogon:mD,Ograve:vD,ograve:bD,ogt:gD,ohbar:yD,ohm:wD,oint:kD,olarr:xD,olcir:CD,olcross:TD,oline:MD,olt:OD,Omacr:SD,omacr:ED,Omega:ND,omega:DD,Omicron:AD,omicron:LD,omid:ID,ominus:RD,Oopf:jD,oopf:BD,opar:PD,OpenCurlyDoubleQuote:VD,OpenCurlyQuote:FD,operp:HD,oplus:zD,orarr:_D,Or:qD,or:$D,ord:UD,order:WD,orderof:JD,ordf:KD,ordm:GD,origof:XD,oror:ZD,orslope:QD,orv:YD,oS:eA,Oscr:tA,oscr:nA,Oslash:aA,oslash:lA,osol:oA,Otilde:rA,otilde:iA,otimesas:cA,Otimes:uA,otimes:sA,Ouml:dA,ouml:pA,ovbar:hA,OverBar:fA,OverBrace:mA,OverBracket:vA,OverParenthesis:bA,para:gA,parallel:yA,par:wA,parsim:kA,parsl:xA,part:CA,PartialD:TA,Pcy:MA,pcy:OA,percnt:SA,period:EA,permil:NA,perp:DA,pertenk:AA,Pfr:LA,pfr:IA,Phi:RA,phi:jA,phiv:BA,phmmat:PA,phone:VA,Pi:FA,pi:HA,pitchfork:zA,piv:_A,planck:qA,planckh:$A,plankv:UA,plusacir:WA,plusb:JA,pluscir:KA,plus:GA,plusdo:XA,plusdu:ZA,pluse:QA,PlusMinus:YA,plusmn:eL,plussim:tL,plustwo:nL,pm:aL,Poincareplane:lL,pointint:oL,popf:rL,Popf:iL,pound:cL,prap:uL,Pr:sL,pr:dL,prcue:pL,precapprox:hL,prec:fL,preccurlyeq:mL,Precedes:vL,PrecedesEqual:bL,PrecedesSlantEqual:gL,PrecedesTilde:yL,preceq:wL,precnapprox:kL,precneqq:xL,precnsim:CL,pre:TL,prE:ML,precsim:OL,prime:SL,Prime:EL,primes:NL,prnap:DL,prnE:AL,prnsim:LL,prod:IL,Product:RL,profalar:jL,profline:BL,profsurf:PL,prop:VL,Proportional:FL,Proportion:HL,propto:zL,prsim:_L,prurel:qL,Pscr:$L,pscr:UL,Psi:WL,psi:JL,puncsp:KL,Qfr:GL,qfr:XL,qint:ZL,qopf:QL,Qopf:YL,qprime:eI,Qscr:tI,qscr:nI,quaternions:aI,quatint:lI,quest:oI,questeq:rI,quot:iI,QUOT:cI,rAarr:uI,race:sI,Racute:dI,racute:pI,radic:hI,raemptyv:fI,rang:mI,Rang:vI,rangd:bI,range:gI,rangle:yI,raquo:wI,rarrap:kI,rarrb:xI,rarrbfs:CI,rarrc:TI,rarr:MI,Rarr:OI,rArr:SI,rarrfs:EI,rarrhk:NI,rarrlp:DI,rarrpl:AI,rarrsim:LI,Rarrtl:II,rarrtl:RI,rarrw:jI,ratail:BI,rAtail:PI,ratio:VI,rationals:FI,rbarr:HI,rBarr:zI,RBarr:_I,rbbrk:qI,rbrace:$I,rbrack:UI,rbrke:WI,rbrksld:JI,rbrkslu:KI,Rcaron:GI,rcaron:XI,Rcedil:ZI,rcedil:QI,rceil:YI,rcub:eR,Rcy:tR,rcy:nR,rdca:aR,rdldhar:lR,rdquo:oR,rdquor:rR,rdsh:iR,real:cR,realine:uR,realpart:sR,reals:dR,Re:pR,rect:hR,reg:fR,REG:mR,ReverseElement:vR,ReverseEquilibrium:bR,ReverseUpEquilibrium:gR,rfisht:yR,rfloor:wR,rfr:kR,Rfr:xR,rHar:CR,rhard:TR,rharu:MR,rharul:OR,Rho:SR,rho:ER,rhov:NR,RightAngleBracket:DR,RightArrowBar:AR,rightarrow:LR,RightArrow:IR,Rightarrow:RR,RightArrowLeftArrow:jR,rightarrowtail:BR,RightCeiling:PR,RightDoubleBracket:VR,RightDownTeeVector:FR,RightDownVectorBar:HR,RightDownVector:zR,RightFloor:_R,rightharpoondown:qR,rightharpoonup:$R,rightleftarrows:UR,rightleftharpoons:WR,rightrightarrows:JR,rightsquigarrow:KR,RightTeeArrow:GR,RightTee:XR,RightTeeVector:ZR,rightthreetimes:QR,RightTriangleBar:YR,RightTriangle:ej,RightTriangleEqual:tj,RightUpDownVector:nj,RightUpTeeVector:aj,RightUpVectorBar:lj,RightUpVector:oj,RightVectorBar:rj,RightVector:ij,ring:cj,risingdotseq:uj,rlarr:sj,rlhar:dj,rlm:pj,rmoustache:hj,rmoust:fj,rnmid:mj,roang:vj,roarr:bj,robrk:gj,ropar:yj,ropf:wj,Ropf:kj,roplus:xj,rotimes:Cj,RoundImplies:Tj,rpar:Mj,rpargt:Oj,rppolint:Sj,rrarr:Ej,Rrightarrow:Nj,rsaquo:Dj,rscr:Aj,Rscr:Lj,rsh:Ij,Rsh:Rj,rsqb:jj,rsquo:Bj,rsquor:Pj,rthree:Vj,rtimes:Fj,rtri:Hj,rtrie:zj,rtrif:_j,rtriltri:qj,RuleDelayed:$j,ruluhar:Uj,rx:Wj,Sacute:Jj,sacute:Kj,sbquo:Gj,scap:Xj,Scaron:Zj,scaron:Qj,Sc:Yj,sc:eB,sccue:tB,sce:nB,scE:aB,Scedil:lB,scedil:oB,Scirc:rB,scirc:iB,scnap:cB,scnE:uB,scnsim:sB,scpolint:dB,scsim:pB,Scy:hB,scy:fB,sdotb:mB,sdot:vB,sdote:bB,searhk:gB,searr:yB,seArr:wB,searrow:kB,sect:xB,semi:CB,seswar:TB,setminus:MB,setmn:OB,sext:SB,Sfr:EB,sfr:NB,sfrown:DB,sharp:AB,SHCHcy:LB,shchcy:IB,SHcy:RB,shcy:jB,ShortDownArrow:BB,ShortLeftArrow:PB,shortmid:VB,shortparallel:FB,ShortRightArrow:HB,ShortUpArrow:zB,shy:_B,Sigma:qB,sigma:$B,sigmaf:UB,sigmav:WB,sim:JB,simdot:KB,sime:GB,simeq:XB,simg:ZB,simgE:QB,siml:YB,simlE:eP,simne:tP,simplus:nP,simrarr:aP,slarr:lP,SmallCircle:oP,smallsetminus:rP,smashp:iP,smeparsl:cP,smid:uP,smile:sP,smt:dP,smte:pP,smtes:hP,SOFTcy:fP,softcy:mP,solbar:vP,solb:bP,sol:gP,Sopf:yP,sopf:wP,spades:kP,spadesuit:xP,spar:CP,sqcap:TP,sqcaps:MP,sqcup:OP,sqcups:SP,Sqrt:EP,sqsub:NP,sqsube:DP,sqsubset:AP,sqsubseteq:LP,sqsup:IP,sqsupe:RP,sqsupset:jP,sqsupseteq:BP,square:PP,Square:VP,SquareIntersection:FP,SquareSubset:HP,SquareSubsetEqual:zP,SquareSuperset:_P,SquareSupersetEqual:qP,SquareUnion:$P,squarf:UP,squ:WP,squf:JP,srarr:KP,Sscr:GP,sscr:XP,ssetmn:ZP,ssmile:QP,sstarf:YP,Star:eV,star:tV,starf:nV,straightepsilon:aV,straightphi:lV,strns:oV,sub:rV,Sub:iV,subdot:cV,subE:uV,sube:sV,subedot:dV,submult:pV,subnE:hV,subne:fV,subplus:mV,subrarr:vV,subset:bV,Subset:gV,subseteq:yV,subseteqq:wV,SubsetEqual:kV,subsetneq:xV,subsetneqq:CV,subsim:TV,subsub:MV,subsup:OV,succapprox:SV,succ:EV,succcurlyeq:NV,Succeeds:DV,SucceedsEqual:AV,SucceedsSlantEqual:LV,SucceedsTilde:IV,succeq:RV,succnapprox:jV,succneqq:BV,succnsim:PV,succsim:VV,SuchThat:FV,sum:HV,Sum:zV,sung:_V,sup1:qV,sup2:$V,sup3:UV,sup:WV,Sup:JV,supdot:KV,supdsub:GV,supE:XV,supe:ZV,supedot:QV,Superset:YV,SupersetEqual:eF,suphsol:tF,suphsub:nF,suplarr:aF,supmult:lF,supnE:oF,supne:rF,supplus:iF,supset:cF,Supset:uF,supseteq:sF,supseteqq:dF,supsetneq:pF,supsetneqq:hF,supsim:fF,supsub:mF,supsup:vF,swarhk:bF,swarr:gF,swArr:yF,swarrow:wF,swnwar:kF,szlig:xF,Tab:CF,target:TF,Tau:MF,tau:OF,tbrk:SF,Tcaron:EF,tcaron:NF,Tcedil:DF,tcedil:AF,Tcy:LF,tcy:IF,tdot:RF,telrec:jF,Tfr:BF,tfr:PF,there4:VF,therefore:FF,Therefore:HF,Theta:zF,theta:_F,thetasym:qF,thetav:$F,thickapprox:UF,thicksim:WF,ThickSpace:JF,ThinSpace:KF,thinsp:GF,thkap:XF,thksim:ZF,THORN:QF,thorn:YF,tilde:eH,Tilde:tH,TildeEqual:nH,TildeFullEqual:aH,TildeTilde:lH,timesbar:oH,timesb:rH,times:iH,timesd:cH,tint:uH,toea:sH,topbot:dH,topcir:pH,top:hH,Topf:fH,topf:mH,topfork:vH,tosa:bH,tprime:gH,trade:yH,TRADE:wH,triangle:kH,triangledown:xH,triangleleft:CH,trianglelefteq:TH,triangleq:MH,triangleright:OH,trianglerighteq:SH,tridot:EH,trie:NH,triminus:DH,TripleDot:AH,triplus:LH,trisb:IH,tritime:RH,trpezium:jH,Tscr:BH,tscr:PH,TScy:VH,tscy:FH,TSHcy:HH,tshcy:zH,Tstrok:_H,tstrok:qH,twixt:$H,twoheadleftarrow:UH,twoheadrightarrow:WH,Uacute:JH,uacute:KH,uarr:GH,Uarr:XH,uArr:ZH,Uarrocir:QH,Ubrcy:YH,ubrcy:ez,Ubreve:tz,ubreve:nz,Ucirc:az,ucirc:lz,Ucy:oz,ucy:rz,udarr:iz,Udblac:cz,udblac:uz,udhar:sz,ufisht:dz,Ufr:pz,ufr:hz,Ugrave:fz,ugrave:mz,uHar:vz,uharl:bz,uharr:gz,uhblk:yz,ulcorn:wz,ulcorner:kz,ulcrop:xz,ultri:Cz,Umacr:Tz,umacr:Mz,uml:Oz,UnderBar:Sz,UnderBrace:Ez,UnderBracket:Nz,UnderParenthesis:Dz,Union:Az,UnionPlus:Lz,Uogon:Iz,uogon:Rz,Uopf:jz,uopf:Bz,UpArrowBar:Pz,uparrow:Vz,UpArrow:Fz,Uparrow:Hz,UpArrowDownArrow:zz,updownarrow:_z,UpDownArrow:qz,Updownarrow:$z,UpEquilibrium:Uz,upharpoonleft:Wz,upharpoonright:Jz,uplus:Kz,UpperLeftArrow:Gz,UpperRightArrow:Xz,upsi:Zz,Upsi:Qz,upsih:Yz,Upsilon:e_,upsilon:t_,UpTeeArrow:n_,UpTee:a_,upuparrows:l_,urcorn:o_,urcorner:r_,urcrop:i_,Uring:c_,uring:u_,urtri:s_,Uscr:d_,uscr:p_,utdot:h_,Utilde:f_,utilde:m_,utri:v_,utrif:b_,uuarr:g_,Uuml:y_,uuml:w_,uwangle:k_,vangrt:x_,varepsilon:C_,varkappa:T_,varnothing:M_,varphi:O_,varpi:S_,varpropto:E_,varr:N_,vArr:D_,varrho:A_,varsigma:L_,varsubsetneq:I_,varsubsetneqq:R_,varsupsetneq:j_,varsupsetneqq:B_,vartheta:P_,vartriangleleft:V_,vartriangleright:F_,vBar:H_,Vbar:z_,vBarv:__,Vcy:q_,vcy:$_,vdash:U_,vDash:W_,Vdash:J_,VDash:K_,Vdashl:G_,veebar:X_,vee:Z_,Vee:Q_,veeeq:Y_,vellip:eq,verbar:tq,Verbar:nq,vert:aq,Vert:lq,VerticalBar:oq,VerticalLine:rq,VerticalSeparator:iq,VerticalTilde:cq,VeryThinSpace:uq,Vfr:sq,vfr:dq,vltri:pq,vnsub:hq,vnsup:fq,Vopf:mq,vopf:vq,vprop:bq,vrtri:gq,Vscr:yq,vscr:wq,vsubnE:kq,vsubne:xq,vsupnE:Cq,vsupne:Tq,Vvdash:Mq,vzigzag:Oq,Wcirc:Sq,wcirc:Eq,wedbar:Nq,wedge:Dq,Wedge:Aq,wedgeq:Lq,weierp:Iq,Wfr:Rq,wfr:jq,Wopf:Bq,wopf:Pq,wp:Vq,wr:Fq,wreath:Hq,Wscr:zq,wscr:_q,xcap:qq,xcirc:$q,xcup:Uq,xdtri:Wq,Xfr:Jq,xfr:Kq,xharr:Gq,xhArr:Xq,Xi:Zq,xi:Qq,xlarr:Yq,xlArr:e$,xmap:t$,xnis:n$,xodot:a$,Xopf:l$,xopf:o$,xoplus:r$,xotime:i$,xrarr:c$,xrArr:u$,Xscr:s$,xscr:d$,xsqcup:p$,xuplus:h$,xutri:f$,xvee:m$,xwedge:v$,Yacute:b$,yacute:g$,YAcy:y$,yacy:w$,Ycirc:k$,ycirc:x$,Ycy:C$,ycy:T$,yen:M$,Yfr:O$,yfr:S$,YIcy:E$,yicy:N$,Yopf:D$,yopf:A$,Yscr:L$,yscr:I$,YUcy:R$,yucy:j$,yuml:B$,Yuml:P$,Zacute:V$,zacute:F$,Zcaron:H$,zcaron:z$,Zcy:_$,zcy:q$,Zdot:$$,zdot:U$,zeetrf:W$,ZeroWidthSpace:J$,Zeta:K$,zeta:G$,zfr:X$,Zfr:Z$,ZHcy:Q$,zhcy:Y$,zigrarr:eU,zopf:tU,Zopf:nU,Zscr:aU,zscr:lU,zwj:oU,zwnj:rU},cU="Á",uU="á",sU="Â",dU="â",pU="´",hU="Æ",fU="æ",mU="À",vU="à",bU="&",gU="&",yU="Å",wU="å",kU="Ã",xU="ã",CU="Ä",TU="ä",MU="¦",OU="Ç",SU="ç",EU="¸",NU="¢",DU="©",AU="©",LU="¤",IU="°",RU="÷",jU="É",BU="é",PU="Ê",VU="ê",FU="È",HU="è",zU="Ð",_U="ð",qU="Ë",$U="ë",UU="½",WU="¼",JU="¾",KU=">",GU=">",XU="Í",ZU="í",QU="Î",YU="î",eW="¡",tW="Ì",nW="ì",aW="¿",lW="Ï",oW="ï",rW="«",iW="<",cW="<",uW="¯",sW="µ",dW="·",pW=" ",hW="¬",fW="Ñ",mW="ñ",vW="Ó",bW="ó",gW="Ô",yW="ô",wW="Ò",kW="ò",xW="ª",CW="º",TW="Ø",MW="ø",OW="Õ",SW="õ",EW="Ö",NW="ö",DW="¶",AW="±",LW="£",IW='"',RW='"',jW="»",BW="®",PW="®",VW="§",FW="",HW="¹",zW="²",_W="³",qW="ß",$W="Þ",UW="þ",WW="×",JW="Ú",KW="ú",GW="Û",XW="û",ZW="Ù",QW="ù",YW="¨",eJ="Ü",tJ="ü",nJ="Ý",aJ="ý",lJ="¥",oJ="ÿ",rJ={Aacute:cU,aacute:uU,Acirc:sU,acirc:dU,acute:pU,AElig:hU,aelig:fU,Agrave:mU,agrave:vU,amp:bU,AMP:gU,Aring:yU,aring:wU,Atilde:kU,atilde:xU,Auml:CU,auml:TU,brvbar:MU,Ccedil:OU,ccedil:SU,cedil:EU,cent:NU,copy:DU,COPY:AU,curren:LU,deg:IU,divide:RU,Eacute:jU,eacute:BU,Ecirc:PU,ecirc:VU,Egrave:FU,egrave:HU,ETH:zU,eth:_U,Euml:qU,euml:$U,frac12:UU,frac14:WU,frac34:JU,gt:KU,GT:GU,Iacute:XU,iacute:ZU,Icirc:QU,icirc:YU,iexcl:eW,Igrave:tW,igrave:nW,iquest:aW,Iuml:lW,iuml:oW,laquo:rW,lt:iW,LT:cW,macr:uW,micro:sW,middot:dW,nbsp:pW,not:hW,Ntilde:fW,ntilde:mW,Oacute:vW,oacute:bW,Ocirc:gW,ocirc:yW,Ograve:wW,ograve:kW,ordf:xW,ordm:CW,Oslash:TW,oslash:MW,Otilde:OW,otilde:SW,Ouml:EW,ouml:NW,para:DW,plusmn:AW,pound:LW,quot:IW,QUOT:RW,raquo:jW,reg:BW,REG:PW,sect:VW,shy:FW,sup1:HW,sup2:zW,sup3:_W,szlig:qW,THORN:$W,thorn:UW,times:WW,Uacute:JW,uacute:KW,Ucirc:GW,ucirc:XW,Ugrave:ZW,ugrave:QW,uml:YW,Uuml:eJ,uuml:tJ,Yacute:nJ,yacute:aJ,yen:lJ,yuml:oJ},iJ="&",cJ="'",uJ=">",sJ="<",dJ='"',pJ={amp:iJ,apos:cJ,gt:uJ,lt:sJ,quot:dJ},hJ={},fJ={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},mJ=Bo&&Bo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hJ,"__esModule",{value:!0});var vJ=mJ(fJ),bJ=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 gJ(e){return e>=55296&&e<=57343||e>1114111?"<22>":(e in vJ.default&&(e=vJ.default[e]),bJ(e))}hJ.default=gJ;var yJ=Bo&&Bo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_o,"__esModule",{value:!0}),_o.decodeHTML=_o.decodeHTMLStrict=_o.decodeXML=void 0;var wJ=yJ(iU),kJ=yJ(rJ),xJ=yJ(pJ),CJ=yJ(hJ),TJ=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function MJ(e){var t=SJ(e);return function(e){return String(e).replace(TJ,t)}}_o.decodeXML=MJ(xJ.default),_o.decodeHTMLStrict=MJ(wJ.default);var OJ=function(e,t){return e<t?1:-1};function SJ(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?CJ.default(parseInt(t.substr(3),16)):CJ.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}_o.decodeHTML=function(){for(var e=Object.keys(kJ.default).sort(OJ),t=Object.keys(wJ.default).sort(OJ),n=0,a=0;n<t.length;n++)e[a]===t[n]?(t[n]+=";?",a++):t[n]+=";";var l=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),o=SJ(wJ.default);function r(e){return";"!==e.substr(-1)&&(e+=";"),o(e)}return function(e){return String(e).replace(l,r)}}();var EJ={},NJ=Bo&&Bo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(EJ,"__esModule",{value:!0}),EJ.escapeUTF8=EJ.escape=EJ.encodeNonAsciiHTML=EJ.encodeHTML=EJ.encodeXML=void 0;var DJ=NJ(pJ),AJ=BJ(DJ.default),LJ=PJ(AJ);EJ.encodeXML=UJ(AJ);var IJ=NJ(iU),RJ=BJ(IJ.default),jJ=PJ(RJ);function BJ(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function PJ(e){for(var t=[],n=[],a=0,l=Object.keys(e);a<l.length;a++){var o=l[a];1===o.length?t.push("\\"+o):n.push(o)}t.sort();for(var r=0;r<t.length-1;r++){var i=r;while(i<t.length-1&&t[i].charCodeAt(1)+1===t[i+1].charCodeAt(1))i+=1;var c=1+i-r;c<3||t.splice(r,c,t[r]+"-"+t[i])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}EJ.encodeHTML=zJ(RJ,jJ),EJ.encodeNonAsciiHTML=UJ(RJ);var VJ=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,FJ=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function HJ(e){return"&#x"+(e.length>1?FJ(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function zJ(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(VJ,HJ)}}var _J=new RegExp(LJ.source+"|"+VJ.source,"g");function qJ(e){return e.replace(_J,HJ)}function $J(e){return e.replace(LJ,HJ)}function UJ(e){return function(t){return t.replace(_J,(function(t){return e[t]||HJ(t)}))}}EJ.escape=qJ,EJ.escapeUTF8=$J,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=_o,n=EJ;function a(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}function l(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=a,e.decodeStrict=l,e.encode=o;var r=EJ;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return r.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return r.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return r.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return r.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return r.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return r.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return r.encodeHTML}});var i=_o;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return i.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return i.decodeXML}})}(zo);var WJ="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",JJ=92,KJ=/[\\&]/,GJ="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",XJ=new RegExp("\\\\"+GJ+"|"+WJ,"gi"),ZJ='[&<>"]',QJ=new RegExp(ZJ,"g"),YJ=function(e){return e.charCodeAt(0)===JJ?e.charAt(1):zo.decodeHTML(e)};function eK(e){return KJ.test(e)?e.replace(XJ,YJ):e}function tK(e){try{return Ho(e)}catch(t){return e}}function nK(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function aK(e){return QJ.test(e)?e.replace(QJ,nK):e}function lK(e,t){for(var n=[],a=0;a<t;a++)n.push(e);return n.join("")}function oK(e){return!e||!/[^ \t]+/.test(e)}var rK=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=iK(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 iK(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 cK=1,uK={};function sK(e){return uK[e]}function dK(e){delete uK[e]}function pK(){uK={}}var hK=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:cK++,this.type=e,this.sourcepos=t,uK[this.id]=this}return e.prototype.isContainer=function(){return iK(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 rK(this)},e}(),fK=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a.open=!0,a.lineOffsets=null,a.stringContent=null,a.lastLineBlank=!1,a.lastLineChecked=!1,a.type=t,a}return Io(t,e),t}(hK),mK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.listData=null,t}return Io(t,e),t}(fK),vK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.level=0,t.headingType="atx",t}return Io(t,e),t}(fK),bK=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 Io(t,e),t}(fK),gK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.columns=[],t}return Io(t,e),t}(fK),yK=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 Io(t,e),t}(fK),wK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="",t.dest="",t.label="",t}return Io(t,e),t}(fK),kK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.syntaxLength=0,t.offset=-1,t.info="",t}return Io(t,e),t}(fK),xK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.htmlBlockType=-1,t}return Io(t,e),t}(fK),CK=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 Io(t,e),t}(hK),TK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tickCount=0,t}return Io(t,e),t}(hK),MK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.info="",t}return Io(t,e),t}(hK);function OK(e,t){switch(e){case"heading":return new vK(e,t);case"list":case"item":return new mK(e,t);case"link":case"image":return new CK(e,t);case"codeBlock":return new bK(e,t);case"htmlBlock":return new xK(e,t);case"table":return new gK(e,t);case"tableCell":return new yK(e,t);case"document":case"paragraph":case"blockQuote":case"thematicBreak":case"tableRow":case"tableBody":case"tableHead":case"frontMatter":return new fK(e,t);case"code":return new TK(e,t);case"refDef":return new wK(e,t);case"customBlock":return new kK(e,t);case"customInline":return new MK(e,t);default:return new hK(e,t)}}function SK(e){return"codeBlock"===e.type}function EK(e){return"htmlBlock"===e.type}function NK(e){return"heading"===e.type}function DK(e){return"list"===e.type}function AK(e){return"table"===e.type}function LK(e){return"refDef"===e.type}function IK(e){return"customBlock"===e.type}function RK(e){return"customInline"===e.type}function jK(e,t){var n=OK("text",t);return n.literal=e,n}var BK,PK="[A-Za-z][A-Za-z0-9-]*",VK="[a-zA-Z_:][a-zA-Z0-9:._-]*",FK="[^\"'=<>`\\x00-\\x20]+",HK="'[^']*'",zK='"[^"]*"',_K="(?:"+FK+"|"+HK+"|"+zK+")",qK="(?:\\s*=\\s*"+_K+")",$K="(?:\\s+"+VK+qK+"?)",UK="<"+PK+$K+"*\\s*/?>",WK="</"+PK+"\\s*[>]",JK="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",KK="[<][?].*?[?][>]",GK="<![A-Z]+\\s+[^>]*>",XK="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ZK="(?:"+UK+"|"+WK+"|"+JK+"|"+KK+"|"+GK+"|"+XK+")",QK=new RegExp("^"+ZK,"i");if(String.fromCodePoint)BK=function(e){try{return String.fromCodePoint(e)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t}};else{var YK=String.fromCharCode,eG=Math.floor;BK=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,a,l=16384,o=[],r=-1,i=e.length;if(!i)return"";var c="";while(++r<i){var u=Number(e[r]);if(!isFinite(u)||u<0||u>1114111||eG(u)!==u)return String.fromCharCode(65533);u<=65535?o.push(u):(u-=65536,n=55296+(u>>10),a=u%1024+56320,o.push(n,a)),(r+1===i||o.length>l)&&(c+=YK.apply(void 0,o),o.length=0)}return c}}var tG=BK,nG="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",aG="[^<\\s]*[^<?!.,:*_?~\\s]",lG="[\\w.+-]+@(?:[\\w-]+\\.)+[\\w-]+";function oG(e){var t=/\)+$/.exec(e);if(t){for(var n=0,a=0,l=e;a<l.length;a++){var o=l[a];"("===o?n<0?n=1:n+=1:")"===o&&(n-=1)}if(n<0){var r=Math.min(-n,t[0].length);return e.substring(0,e.length-r)}}return e}function rG(e){return e.replace(/&[A-Za-z0-9]+;$/,"")}function iG(e){var t,n=new RegExp(lG,"g"),a=[];while(t=n.exec(e)){var l=t[0];/[_-]+$/.test(l)||a.push({text:l,range:[t.index,t.index+l.length-1],url:"mailto:"+l})}return a}function cG(e){var t,n=new RegExp("(www|https?://)."+nG+aG,"g"),a=[];while(t=n.exec(e)){var l=rG(oG(t[0])),o="www"===t[1]?"http://":"";a.push({text:l,range:[t.index,t.index+l.length-1],url:""+o+l})}return a}function uG(e){return jo(jo([],cG(e)),iG(e)).sort((function(e,t){return e.range[0]-t.range[0]}))}function sG(e,t){var n;"boolean"===typeof t&&(t=uG);var a=function(){var e=n.entering,a=n.node;if(e&&"text"===a.type&&"link"!==a.parent.type){var l=a.literal,o=t(l);if(!o||!o.length)return"continue";for(var r=0,i=a.sourcepos[0],c=i[0],u=i[1],s=function(e,t){return[[c,u+e],[c,u+t]]},d=[],p=0,h=o;p<h.length;p++){var f=h[p],m=f.range,v=f.url,b=f.text;m[0]>r&&d.push(jK(l.substring(r,m[0]),s(r,m[0]-1)));var g=OK("link",s.apply(void 0,m));g.appendChild(jK(b,s.apply(void 0,m))),g.destination=v,g.extendedAutolink=!0,d.push(g),r=m[1]+1}r<l.length&&d.push(jK(l.substring(r),s(r,l.length-1)));for(var y=0,w=d;y<w.length;y++){var k=w[y];a.insertBefore(k)}a.unlink()}};while(n=e.next())a()}function dG(e){return e[e.length-1]}function pG(e){return e.slice(1,e.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()}function hG(e,t){Object.keys(e).forEach((function(n){t(n,e[n])}))}function fG(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=Ro({},e);return t.forEach((function(e){delete a[e]})),a}function mG(e){return!Object.keys(e).length}function vG(e){Object.keys(e).forEach((function(t){delete e[t]}))}var bG=10,gG=42,yG=95,wG=96,kG=91,xG=93,CG=126,TG=60,MG=33,OG=92,SG=38,EG=40,NG=41,DG=58,AG=39,LG=34,IG=36,RG="\\\\"+GJ,jG=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]/),BG=new RegExp('^(?:"('+RG+'|[^"\\x00])*"|\'('+RG+"|[^'\\x00])*'|\\(("+RG+"|[^()\\x00])*\\))"),PG=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,VG=new RegExp("^"+GJ),FG=new RegExp("^"+WJ,"i"),HG=/`+/,zG=/^`+/,_G=/\.\.\./g,qG=/--+/g,$G=/^<([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])?)*)>/,UG=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,WG=/^ *(?:\n *)?/,JG=/^[ \t\n\x0b\x0c\x0d]/,KG=/^\s/,GG=/ *$/,XG=/^ */,ZG=/^ *(?:\n|$)/,QG=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,YG=/^[^\n`\[\]\\!<&*_'"~$]+/m,eX=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],a=this.lineStartNum+this.lineIdx,l=[a,e+n];return"number"===typeof t?[l,[a,t+n]]:l},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(WG),!0},e.prototype.parseBackticks=function(e){var t=this.pos+1,n=this.match(zG);if(null===n)return!1;var a,l=this.pos;while(null!==(a=this.match(HG)))if(a===n){var o=this.subject.slice(l,this.pos-n.length),r=this.sourcepos(t,this.pos),i=o.split("\n");if(i.length>1){var c=dG(i);this.lineIdx+=i.length-1,this.linePosOffset=-(this.pos-c.length-n.length),r[1]=this.sourcepos(this.pos),o=i.join(" ")}var u=OK("code",r);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?u.literal=o.slice(1,o.length-1):u.literal=o,u.tickCount=n.length,e.appendChild(u),!0}return this.pos=l,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 a=this.pos;return this.peek()===bG?(this.pos+=1,t=OK("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(t),this.nextLine()):VG.test(n.charAt(this.pos))?(e.appendChild(jK(n.charAt(this.pos),this.sourcepos(a,this.pos))),this.pos+=1):e.appendChild(jK("\\",this.sourcepos(a,a))),!0},e.prototype.parseAutolink=function(e){var t,n,a,l=this.pos+1;return(t=this.match($G))?(n=t.slice(1,t.length-1),a=OK("link",this.sourcepos(l,this.pos)),a.destination=tK("mailto:"+n),a.title="",a.appendChild(jK(n,this.sourcepos(l+1,this.pos-1))),e.appendChild(a),!0):!!(t=this.match(UG))&&(n=t.slice(1,t.length-1),a=OK("link",this.sourcepos(l,this.pos)),a.destination=tK(n),a.title="",a.appendChild(jK(n,this.sourcepos(l+1,this.pos-1))),e.appendChild(a),!0)},e.prototype.parseHtmlTag=function(e){var t=this.pos+1,n=this.match(QK);if(null===n)return!1;var a=OK("htmlInline",this.sourcepos(t,this.pos));return a.literal=n,e.appendChild(a),!0},e.prototype.scanDelims=function(e){var t=0,n=this.pos;if(e===AG||e===LG)t++,this.pos++;else while(this.peek()===e)t++,this.pos++;if(0===t||t<2&&(e===CG||e===IG))return this.pos=n,null;var a,l=0===n?"\n":this.subject.charAt(n-1),o=this.peek();a=-1===o?"\n":tG(o);var r,i,c=KG.test(a),u=jG.test(a),s=KG.test(l),d=jG.test(l),p=!c&&(!u||s||d),h=!s&&(!d||c||u);return e===yG?(r=p&&(!h||d),i=h&&(!p||u)):e===AG||e===LG?(r=p&&!h,i=h):e===IG?(r=!c,i=!s):(r=p,i=h),this.pos=n,{numdelims:t,canOpen:r,canClose:i}},e.prototype.handleDelim=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var a,l=n.numdelims,o=this.pos+1;this.pos+=l,a=e===AG?"’":e===LG?"“":this.subject.slice(o-1,this.pos);var r=jK(a,this.sourcepos(o,this.pos));return t.appendChild(r),(n.canOpen||n.canClose)&&(this.options.smart||e!==AG&&e!==LG)&&(this.delimiters={cc:e,numdelims:l,origdelims:l,node:r,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,a,l,o,r,i,c=!1,u=(t={},t[yG]=[e,e,e],t[gG]=[e,e,e],t[AG]=[e],t[LG]=[e],t[CG]=[e],t[IG]=[e],t);a=this.delimiters;while(null!==a&&a.previous!==e)a=a.previous;while(null!==a){var s=a.cc,d=s===yG||s===gG;if(a.canClose){n=a.previous,i=!1;while(null!==n&&n!==e&&n!==u[s][d?a.origdelims%3:0]){if(c=d&&(a.canOpen||n.canClose)&&a.origdelims%3!==0&&(n.origdelims+a.origdelims)%3===0,n.cc===a.cc&&n.canOpen&&!c){i=!0;break}n=n.previous}if(l=a,d||s===CG||s===IG)if(i){if(n){var p=a.numdelims>=2&&n.numdelims>=2?2:1,h=d?0:1;o=n.node,r=a.node;var f=d?1===p?"emph":"strong":"strike";s===IG&&(f="customInline");var m=OK(f),v=o.sourcepos[1],b=r.sourcepos[0];m.sourcepos=[[v[0],v[1]-p+1],[b[0],b[1]+p-1]],o.sourcepos[1][1]-=p,r.sourcepos[0][1]+=p,o.literal=o.literal.slice(p),r.literal=r.literal.slice(p),n.numdelims-=p,a.numdelims-=p;var g=o.next,y=void 0;while(g&&g!==r)y=g.next,g.unlink(),m.appendChild(g),g=y;if(s===IG){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,a),n.numdelims<=h&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),a.numdelims<=h){0===a.numdelims&&r.unlink();var C=a.next;this.removeDelimiter(a),a=C}}}else a=a.next;else s===AG?(a.node.literal="’",i&&(n.node.literal="‘"),a=a.next):s===LG&&(a.node.literal="”",i&&(n.node.literal="“"),a=a.next);i||(u[s][d?l.origdelims%3:0]=l.previous,l.canOpen||this.removeDelimiter(l))}else a=a.next}while(null!==this.delimiters&&this.delimiters!==e)this.removeDelimiter(this.delimiters)},e.prototype.parseLinkTitle=function(){var e=this.match(BG);return null===e?null:eK(e.substr(1,e.length-2))},e.prototype.parseLinkDestination=function(){var e=this.match(PG);if(null===e){if(this.peek()===TG)return null;var t=this.pos,n=0,a=void 0;while(-1!==(a=this.peek()))if(a===OG&&VG.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(a===EG)this.pos+=1,n+=1;else if(a===NG){if(n<1)break;this.pos+=1,n-=1}else{if(null!==JG.exec(tG(a)))break;this.pos+=1}return this.pos===t&&a!==NG||0!==n?null:(e=this.subject.substr(t,this.pos-t),tK(eK(e)))}return tK(eK(e.substr(1,e.length-2)))},e.prototype.parseLinkLabel=function(){var e=this.match(QG);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()===kG){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,a=!1;this.pos+=1;var l=this.pos,o=this.brackets;if(null===o)return e.appendChild(jK("]",this.sourcepos(l,l))),!0;if(!o.active)return e.appendChild(jK("]",this.sourcepos(l,l))),this.removeBracket(),!0;var r=o.image,i=this.pos;this.peek()===EG&&(this.pos++,this.spnl()&&null!==(t=this.parseLinkDestination())&&this.spnl()&&(JG.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&this.peek()===NG?(this.pos+=1,a=!0):this.pos=i);var c="";if(!a){var u=this.pos,s=this.parseLinkLabel();if(s>2?c=this.subject.slice(u,u+s):o.bracketAfter||(c=this.subject.slice(o.index,l)),0===s&&(this.pos=i),c){c=pG(c);var d=this.refMap[c];d&&(t=d.destination,n=d.title,a=!0)}}if(a){var p=OK(r?"image":"link");p.destination=t,p.title=n||"",p.sourcepos=[o.startpos,this.sourcepos(this.pos)];var h=o.node.next,f=void 0;while(h)f=h.next,h.unlink(),p.appendChild(h),h=f;if(e.appendChild(p),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!r){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=l,e.appendChild(jK("]",this.sourcepos(l,l))),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(FG))&&(e.appendChild(jK(zo.decodeHTML(t),this.sourcepos(n,this.pos))),!0)},e.prototype.parseString=function(e){var t,n=this.pos+1;if(t=this.match(YG)){if(this.options.smart){var a=t.replace(_G,"…").replace(qG,(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),lK("—",n)+lK("–",t)}));e.appendChild(jK(a,this.sourcepos(n,this.pos)))}else{var l=jK(t,this.sourcepos(n,this.pos));e.appendChild(l)}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],a=t.literal.length;t.literal=t.literal.replace(GG,"");var l=a-t.literal.length;t.sourcepos[1][1]-=l,e.appendChild(OK(n?"linebreak":"softbreak",this.sourcepos(this.pos-l,this.pos)))}else e.appendChild(OK("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(XG),!0},e.prototype.parseReference=function(e,t){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,a=this.pos,l=this.parseLinkLabel();if(0===l)return 0;var o=this.subject.substr(0,l);if(this.peek()!==DG)return this.pos=a,0;this.pos++,this.spnl();var r=this.parseLinkDestination();if(null===r)return this.pos=a,0;var i=this.pos;this.spnl(),this.pos!==i&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=i);var c=!0;if(null===this.match(ZG)&&(""===n?c=!1:(n="",this.pos=i,c=null!==this.match(ZG))),!c)return this.pos=a,0;var u=pG(o);if(""===u)return this.pos=a,0;var s=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=s[1][0]+1;var d=OK("refDef",s);return d.title=n,d.dest=r,d.label=u,e.insertBefore(d),t[u]?this.refDefCandidateMap[d.id]=d:t[u]=VZ(d),this.pos-a},e.prototype.mergeTextNodes=function(e){var t,n=[];while(t=e.next()){var a=t.entering,l=t.node;if(a&&"text"===l.type)n.push(l);else if(1===n.length)n=[];else if(n.length>1){var o=n[0],r=n[n.length-1];o.sourcepos&&r.sourcepos&&(o.sourcepos[1]=r.sourcepos[1]),o.next=r.next,o.next&&(o.next.prev=o);for(var i=1;i<n.length;i+=1)o.literal+=n[i].literal,n[i].unlink();n=[]}}},e.prototype.getReferenceDefSourcepos=function(e){for(var t=e.stringContent.split(/\n|\r\n/),n=!1,a=0,l={line:0,ch:0},o=0;o<t.length;o+=1){var r=t[o];if(JG.test(r))break;if(/\:/.test(r)&&0===a){if(n)break;var i=r.indexOf(":")===r.length-1?o+1:o;l={line:i,ch:t[i].length},n=!0}var c=r.match(/'|"/g);if(c&&(a+=c.length),2===a){l={line:o,ch:r.length};break}}return[[e.sourcepos[0][0],e.sourcepos[0][1]],[e.sourcepos[0][0]+l.line,l.ch]]},e.prototype.parseInline=function(e){var t,n=!1,a=this.peek();if(-1===a)return!1;switch(a){case bG:n=this.parseNewline(e);break;case OG:n=this.parseBackslash(e);break;case wG:n=this.parseBackticks(e);break;case gG:case yG:case CG:case IG:n=this.handleDelim(a,e);break;case AG:case LG:n=!!(null===(t=this.options)||void 0===t?void 0:t.smart)&&this.handleDelim(a,e);break;case kG:n=this.parseOpenBracket(e);break;case MG:n=this.parseBang(e);break;case xG:n=this.parseCloseBracket(e);break;case TG:n=this.parseAutolink(e)||this.parseHtmlTag(e);break;case SG:e.disabledEntityParse||(n=this.parseEntity(e));break;default:n=this.parseString(e);break}return n||(this.pos+=1,e.appendChild(jK(tG(a),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],NK(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,a=t.customParser;if(n&&sG(e.walker(),n),a&&e.firstChild){var l,o=e.firstChild.walker();while(l=o.next()){var r=l.node,i=l.entering;a[r.type]&&a[r.type](r,{entering:i,options:this.options})}}},e}(),tX=/^\[([ \txX])\][ \t]+/;function nX(e,t){if(t.firstChild&&"paragraph"===t.firstChild.type){var n=t.firstChild,a=n.stringContent.match(tX);if(a){var l=a[0].length;n.stringContent=n.stringContent.substring(l-1),n.sourcepos[0][1]+=l,n.lineOffsets[0]+=l,t.listData.task=!0,t.listData.checked=/[xX]/.test(a[1])}}}var aX={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableHead"===e||"tableBody"===e},acceptsLines:!1},lX={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableRow"===e},acceptsLines:!1},oX={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableRow"===e||"tableDelimRow"===e},acceptsLines:!1},rX={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableDelimCell"===e},acceptsLines:!1},iX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},cX={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableCell"===e},acceptsLines:!1},uX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},sX=4,dX=9,pX=62,hX=60,fX=32,mX=91,vX=/[^ \t\f\v\r\n]/,bX=/^(?:`{3,}|~{3,})(?= *$)/;function gX(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 yX(e,t){return t<e.length?e.charCodeAt(t):-1}function wX(e){return!vX.test(e)}function kX(e){return e===fX||e===dX}var xX=/^\$\$$/,CX={continue:function(e,t){var n=e.currentLine,a=n.match(xX);if(a)return e.lastLineLength=a[0].length,e.finalize(t,e.lineNumber),2;var l=t.offset;while(l>0&&kX(yX(n,e.offset)))e.advanceOffset(1,!0),l--;return 0},finalize:function(e,t){if(null!==t.stringContent){var n=t.stringContent,a=n.indexOf("\n"),l=n.slice(0,a),o=n.slice(a+1),r=l.match(/^(\s*)(.*)/);t.info=eK(r[2].trim()),t.literal=o,t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},TX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},MX={continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},OX={continue:function(){return 0},finalize:function(e,t){var n=t.firstChild;while(n){if(gX(n)&&n.next){t.listData.tight=!1;break}var a=n.firstChild;while(a){if(gX(a)&&(n.next||a.next)){t.listData.tight=!1;break}a=a.next}n=n.next}},canContain:function(e){return"item"===e},acceptsLines:!1},SX={continue:function(e){var t=e.currentLine;return e.indented||yX(t,e.nextNonspace)!==pX?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),kX(yX(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},EX={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:nX,canContain:function(e){return"item"!==e},acceptsLines:!1},NX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},DX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},AX={continue:function(e,t){var n=e.currentLine,a=e.indent;if(t.isFenced){var l=a<=3&&n.charAt(e.nextNonspace)===t.fenceChar&&n.slice(e.nextNonspace).match(bX);if(l&&l[0].length>=t.fenceLength)return e.lastLineLength=e.offset+a+l[0].length,e.finalize(t,e.lineNumber),2;var o=t.fenceOffset;while(o>0&&kX(yX(n,e.offset)))e.advanceOffset(1,!0),o--}else if(a>=sX)e.advanceOffset(sX,!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 a=t.stringContent,l=a.indexOf("\n"),o=a.slice(0,l),r=a.slice(l+1),i=o.match(/^(\s*)(.*)/);t.infoPadding=i[1].length,t.info=eK(i[2].trim()),t.literal=r}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},LX={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},IX={continue:function(e){return e.blank?1:0},finalize:function(e,t){if(null!==t.stringContent){var n,a=!1;while(yX(t.stringContent,0)===mX&&(n=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(n),a=!0;a&&wX(t.stringContent)&&t.unlink()}},canContain:function(){return!1},acceptsLines:!0},RX=TX,jX=TX,BX={document:MX,list:OX,blockQuote:SX,item:EX,heading:NX,thematicBreak:DX,codeBlock:AX,htmlBlock:LX,paragraph:IX,table:aX,tableBody:lX,tableHead:oX,tableRow:cX,tableCell:uX,tableDelimRow:rX,tableDelimCell:iX,refDef:RX,customBlock:CX,frontMatter:jX};function PX(e){for(var t=0,n=0,a=[],l=0;l<e.length;l+=1)if("|"===e[l]&&"\\"!==e[l-1]){var o=e.substring(t,l);0===t&&oK(o)?n=l+1:a.push(o),t=l+1}if(t<e.length){o=e.substring(t,e.length);oK(o)||a.push(o)}return[n,a]}function VX(e,t,n,a){for(var l=[],o=0,r=t;o<r.length;o++){var i=r[o],c=i.match(/^[ \t]+/),u=c?c[0].length:0,s=void 0,d=void 0;if(u===i.length)u=0,s=0,d="";else{var p=i.match(/[ \t]+$/);s=p?p[0].length:0,d=i.slice(u,i.length-s)}var h=a+u,f=OK(e,[[n,a],[n,a+i.length-1]]);f.stringContent=d.replace(/\\\|/g,"|"),f.startIdx=l.length,f.endIdx=l.length,f.lineOffsets=[h-1],f.paddingLeft=u,f.paddingRight=s,l.push(f),a+=i.length+1}return l}function FX(e){var t=null,n=e.stringContent,a=n[0],l=n[n.length-1];return":"===l?t=":"===a?"center":"right":":"===a&&(t="left"),{align:t}}var HX=function(e,t){var n=t.stringContent;if("paragraph"===t.type&&!e.indented&&!e.blank){var a=n.length-1,l=n.lastIndexOf("\n",a-1)+1,o=n.slice(l,a),r=e.currentLine.slice(e.nextNonspace),i=PX(o),c=i[0],u=i[1],s=PX(r),d=s[0],p=s[1],h=/^[ \t]*:?-+:?[ \t]*$/;if(!u.length||!p.length||p.some((function(e){return!h.test(e)}))||1===p.length&&0!==r.indexOf("|"))return 0;var f=t.lineOffsets,m=e.lineNumber-1,v=dG(f)+1,b=OK("table",[[m,v],[e.lineNumber,e.offset]]);if(b.columns=p.map((function(){return{align:null}})),t.insertAfter(b),1===f.length)t.unlink();else{t.stringContent=n.slice(0,l);var g=n.lastIndexOf("\n",l-2)+1,y=l-g-1;e.lastLineLength=f[f.length-2]+y,e.finalize(t,m-1)}e.advanceOffset(e.currentLine.length-e.offset,!1);var w=OK("tableHead",[[m,v],[e.lineNumber,e.offset]]);b.appendChild(w);var k=OK("tableRow",[[m,v],[m,v+o.length-1]]),x=OK("tableDelimRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.offset]]);w.appendChild(k),w.appendChild(x),VX("tableCell",u,m,v+c).forEach((function(e){k.appendChild(e)}));var C=VX("tableDelimCell",p,e.lineNumber,e.nextNonspace+1+d);return C.forEach((function(e){x.appendChild(e)})),b.columns=C.map(FX),e.tip=b,2}return 0},zX=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 a=t;"table"===t.type&&(a=e.addChild("tableBody",e.nextNonspace),a.stringContent=null);var l=OK("tableRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.currentLine.length]]);a.appendChild(l);var o=a.parent,r=e.currentLine.slice(e.nextNonspace),i=PX(r),c=i[0],u=i[1];return VX("tableCell",u,e.lineNumber,e.nextNonspace+1+c).forEach((function(e,t){t>=o.columns.length&&(e.ignored=!0),l.appendChild(e)})),2},_X=/^(\$\$)(\s*[a-zA-Z])+/,qX=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,$X=function(e){var t;if(!e.indented&&!qX.test(e.currentLine)&&(t=e.currentLine.match(_X))){var n=t[1].length;e.closeUnmatchedBlocks();var a=e.addChild("customBlock",e.nextNonspace);return a.syntaxLength=n,a.offset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},UX=/^`{3,}(?!.*`)|^~{3,}/,WX=[/./,/^<(?: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("^(?:"+UK+"|"+WK+")\\s*$","i")],JX=/^(?:=+|-+)[ \t]*$/,KX=/^#{1,6}(?:[ \t]+|$)/,GX=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,XX=/^[*+-]/,ZX=/^(\d{1,9})([.)])/;function QX(e,t){var n,a,l=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=l.match(XX))o.type="bullet",o.bulletChar=n[0][0];else{if(!(n=l.match(ZX))||"paragraph"===t.type&&"1"!==n[1])return null;o.type="ordered",o.start=parseInt(n[1],10),o.delimiter=n[2]}if(a=yX(e.currentLine,e.nextNonspace+n[0].length),-1!==a&&a!==dX&&a!==fX)return null;if("paragraph"===t.type&&!e.currentLine.slice(e.nextNonspace+n[0].length).match(vX))return null;e.advanceNextNonspace(),e.advanceOffset(n[0].length,!0);var r=e.column,i=e.offset;do{e.advanceOffset(1,!0),a=yX(e.currentLine,e.offset)}while(e.column-r<5&&kX(a));var c=-1===yX(e.currentLine,e.offset),u=e.column-r;return u>=5||u<1||c?(o.padding=n[0].length+1,e.column=r,e.offset=i,kX(yX(e.currentLine,e.offset))&&e.advanceOffset(1,!0)):o.padding=n[0].length+u,o}function YX(e,t){return e.type===t.type&&e.delimiter===t.delimiter&&e.bulletChar===t.bulletChar}function eZ(e,t){return e.options.disallowDeepHeading&&("blockQuote"===t.type||"item"===t.type)}var tZ=function(e){return e.indented||yX(e.currentLine,e.nextNonspace)!==pX?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),kX(yX(e.currentLine,e.offset))&&e.advanceOffset(1,!0),e.closeUnmatchedBlocks(),e.addChild("blockQuote",e.nextNonspace),1)},nZ=function(e,t){var n;if(!e.indented&&!eZ(e,t)&&(n=e.currentLine.slice(e.nextNonspace).match(KX))){e.advanceNextNonspace(),e.advanceOffset(n[0].length,!1),e.closeUnmatchedBlocks();var a=e.addChild("heading",e.nextNonspace);return a.level=n[0].trim().length,a.headingType="atx",a.stringContent=e.currentLine.slice(e.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},aZ=function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(UX))){var n=t[0].length;e.closeUnmatchedBlocks();var a=e.addChild("codeBlock",e.nextNonspace);return a.isFenced=!0,a.fenceLength=n,a.fenceChar=t[0][0],a.fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},lZ=function(e,t){if(!e.indented&&yX(e.currentLine,e.nextNonspace)===hX){var n=e.currentLine.slice(e.nextNonspace),a=e.options.disallowedHtmlBlockTags,l=void 0;for(l=1;l<=7;l++){var o=n.match(WX[l]);if(o){if(7===l){if("paragraph"===t.type)return 0;if(a.length>0){var r=new RegExp("</?(?:"+a.join("|")+")","i");if(r.test(o[0]))return 0}}e.closeUnmatchedBlocks();var i=e.addChild("htmlBlock",e.offset);return i.htmlBlockType=l,2}}}return 0},oZ=function(e,t){var n;if(null!==t.stringContent&&!e.indented&&"paragraph"===t.type&&!eZ(e,t.parent)&&(n=e.currentLine.slice(e.nextNonspace).match(JX))){e.closeUnmatchedBlocks();var a=void 0;while(yX(t.stringContent,0)===mX&&(a=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(a);if(t.stringContent.length>0){var l=OK("heading",t.sourcepos);return l.level="="===n[0][0]?1:2,l.headingType="setext",l.stringContent=t.stringContent,t.insertAfter(l),t.unlink(),e.tip=l,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0}return 0},rZ=function(e){return!e.indented&&GX.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("thematicBreak",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},iZ=function(e,t){var n,a=t;return e.indented&&"list"!==t.type||!(n=QX(e,a))?0:(e.closeUnmatchedBlocks(),"list"===e.tip.type&&YX(a.listData,n)||(a=e.addChild("list",e.nextNonspace),a.listData=n),a=e.addChild("item",e.nextNonspace),a.listData=n,1)},cZ=function(e){return e.indented&&"paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(sX,!0),e.closeUnmatchedBlocks(),e.addChild("codeBlock",e.offset),2):0},uZ=[tZ,nZ,aZ,lZ,oZ,rZ,iZ,cZ,HX,zX,$X],sZ=/^(-{3}|\+{3}|;{3})$/,dZ=function(e,t){var n=e.currentLine,a=e.lineNumber,l=e.indented;if(1===a&&!l&&"document"===t.type&&sZ.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},pZ={continue:function(e,t){var n=e.currentLine,a=n.match(sZ);return"frontMatter"===t.type&&a?(t.stringContent+=n,e.lastLineLength=a[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,/-->/,/\?>/,/>/,/\]\]>/],fZ=/^[#`~*+_=<>0-9-;$]/,mZ=/\r\n|\n|\r/;function vZ(){return OK("document",[[1,1],[0,0]])}var bZ={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},gZ=function(){function e(e){this.options=Ro(Ro({},bZ),e),this.doc=vZ(),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&&(BX.frontMatter=pZ,uZ.unshift(dZ)),this.inlineParser=new eX(this.options)}return e.prototype.advanceOffset=function(e,t){void 0===t&&(t=!1);var n,a,l,o=this.currentLine;while(e>0&&(l=o[this.offset]))"\t"===l?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,a=n>e?e:n,this.column+=a,this.offset+=this.partiallyConsumedTab?0:1,e-=a):(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,a=this.column;while(""!==(e=t.charAt(n)))if(" "===e)n++,a++;else{if("\t"!==e)break;n++,a+=4-a%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=a,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=sX},e.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=lK(" ",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(!BX[this.tip.type].canContain(e))this.finalize(this.tip,this.lineNumber-1);var n=t+1,a=OK(e,[[this.lineNumber,n],[0,0]]);return a.stringContent="",this.tip.appendChild(a),this.tip=a,a},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],BX[e.type].finalize(this,e),this.tip=n},e.prototype.processInlines=function(e){var t,n=this.options.customParser,a=e.walker();this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;while(t=a.next()){var l=t.node,o=t.entering,r=l.type;n&&n[r]&&n[r](l,{entering:o,options:this.options}),o||"paragraph"!==r&&"heading"!==r&&("tableCell"!==r||l.ignored)||this.inlineParser.parse(l)}},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,"<22>")),this.currentLine=e;var n,a=!0;while((n=t.lastChild)&&n.open){switch(t=n,this.findNextNonspace(),BX[t.type]["continue"](this,t)){case 0:break;case 1:a=!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(!a){t=t.parent;break}}this.allClosed=t===this.oldtip,this.lastMatchedContainer=t;var l="paragraph"!==t.type&&BX[t.type].acceptsLines,o=uZ.length;while(!l){if(this.findNextNonspace(),"table"!==t.type&&"tableBody"!==t.type&&"paragraph"!==t.type&&!this.indented&&!fZ.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}var r=0;while(r<o){var i=uZ[r](this,t);if(1===i){t=this.tip;break}if(2===i){t=this.tip,l=!0;break}r++}if(r===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,u=this.blank&&!("blockQuote"===c||SK(t)&&t.isFenced||"item"===c&&!t.firstChild&&t.sourcepos[0][0]===this.lineNumber),s=t;while(s)s.lastLineBlank=u,s=s.parent;BX[c].acceptsLines?(this.addLine(),EK(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=vZ(),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(mZ),a=n.length;this.lines=t||n,this.options.referenceDefinition&&this.clearRefMaps(),e.charCodeAt(e.length-1)===bG&&(a-=1);for(var l=0;l<a;l++)this.incorporateLine(n[l]);while(this.tip)this.finalize(this.tip,a);return this.processInlines(this.doc),this.doc},e.prototype.partialParseStart=function(e,t){this.doc=vZ(),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,a=0;a<n;a++)this.incorporateLine(t[a]);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){vG(e)}))},e}();function yZ(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 wZ(e,t){var n=e[0],a=e[1];return 1===yZ(a,t)?1:-1===yZ(n,t)?-1:0}function kZ(e,t){if(e.parent===t.parent&&e!==t){var n=e.next;while(n&&n!==t){for(var a=n.next,l=0,o=["parent","prev","next"];l<o.length;l++){var r=o[l];n[r]&&(dK(n[r].id),n[r]=null)}n=a}e.next=t.next,t.next?t.next.prev=e:e.parent.lastChild=e}}function xZ(e){var t=[],n=e.firstChild;while(n)t.push(n),n=n.next;return t}function CZ(e,t){for(var n=0,a=t;n<a.length;n++){var l=a[n];e.insertBefore(l)}}function TZ(e,t){for(var n=t.length-1;n>=0;n-=1)e.prependChild(t[n])}function MZ(e,t){if(e&&e.parent&&0!==t){var n,a=e.parent.walker();a.resumeAt(e,!0);while(n=a.next()){var l=n.node,o=n.entering;o&&(l.sourcepos[0][0]+=t,l.sourcepos[1][0]+=t)}}}function OZ(e,t){var n=e[0],a=e[1];return a[0]<t?1:n[0]>t?-1:0}function SZ(e,t){var n=e.firstChild;while(n){var a=OZ(n.sourcepos,t);if(0===a)return n;if(-1===a)return n.prev||n;n=n.next}return e.lastChild}function EZ(e){while(e.lastChild)e=e.lastChild;return e}function NZ(e){while(e.parent&&"document"!==e.parent.type&&e.parent.sourcepos[0][0]===e.sourcepos[0][0])e=e.parent;return e}function DZ(e,t){var n=e.firstChild,a=null;while(n){var l=OZ(n.sourcepos,t);if(0===l){if(n.sourcepos[0][0]===t||!n.firstChild)return n;a=n,n=n.firstChild}else{if(-1===l)break;a=n,n=n.next}}return a?NZ(EZ(a)):null}function AZ(e,t){var n=e,a=null;while(n){var l=wZ(n.sourcepos,t);if(0===l){if(!n.firstChild)return n;a=n,n=n.firstChild}else{if(-1===l)return a;if(!n.next)return a;n=n.next}}return n}function LZ(e){return sK(e)||null}function IZ(e,t,n){if(void 0===n&&(n=null),t){var a=t.walker();while(t&&t!==n){e(t);var l=a.next();if(!l)break;t=l.node}}}function RZ(e){var t=LZ(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 jZ=/\r\n|\n|\r/;function BZ(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 XX.test(n)||ZX.test(n)}function PZ(e){return!wX(e)&&-1!==e.indexOf("|")}function VZ(e){var t=e.id,n=e.title,a=e.sourcepos,l=e.dest;return{id:t,title:n,sourcepos:a,unlinked:!1,destination:l}}var FZ=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 gZ(t),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(jZ),this.root=this.parser.parse(e,this.lineTexts)}return e.prototype.updateLineTexts=function(e,t,n){var a,l=e[0],o=e[1],r=t[0],i=t[1],c=n.split(jZ),u=c.length,s=this.lineTexts[l-1],d=this.lineTexts[r-1];c[0]=s.slice(0,o-1)+c[0],c[u-1]=c[u-1]+d.slice(i-1);var p=r-l+1;return(a=this.lineTexts).splice.apply(a,jo([l-1,p],c)),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?(CZ(e,n),kZ(e,t),[e.id,t.id].forEach((function(e){return dK(e)})),e.unlink()):t?(CZ(t,n),dK(t.id),t.unlink()):TZ(this.root,n)},e.prototype.getNodeRange=function(e,t){var n=SZ(this.root,e[0]),a=SZ(this.root,t[0]);return a&&a.next&&t[0]+1===a.next.sourcepos[0][0]&&(a=a.next),[n,a]},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,a){e&&e.prev&&(DK(e.prev)&&BZ(this.lineTexts[n-1])||AK(e.prev)&&PZ(this.lineTexts[n-1]))&&(e=e.prev,n=e.sourcepos[0][0]);var l=this.lineTexts.slice(n-1,a),o=this.parser.partialParseStart(n,l),r=t?t.next:this.root.firstChild,i=o.lastChild,c=i&&SK(i)&&i.open,u=i&&IK(i)&&i.open,s=i&&DK(i);while((c||u)&&r||s&&r&&("list"===r.type||r.sourcepos[0][1]>=2)){var d=this.extendEndLine(r.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(a,d)),e||(e=t),t=r,a=d,r=r.next}this.parser.partialParseFinish();var p=xZ(o);return{newNodes:p,extStartNode:e,extEndNode:t}},e.prototype.getRemovedNodeRange=function(e,t){return!e||e&&LK(e)||t&&LK(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(!mG(this.refMap)){var a=function(e){if(LK(e)){var t=n.refMap[e.label];t&&e.id===t.id&&(t.unlinked=!0)}};e&&IZ(a,e.parent,t),t&&IZ(a,t)}},e.prototype.replaceWithNewRefDefState=function(e){var t=this;if(!mG(this.refMap)){var n=function(e){if(LK(e)){var n=e.label,a=t.refMap[n];a&&!a.unlinked||(t.refMap[n]=VZ(e))}};e.forEach((function(e){IZ(n,e)}))}},e.prototype.replaceWithRefDefCandidate=function(){var e=this;mG(this.refDefCandidateMap)||hG(this.refDefCandidateMap,(function(t,n){var a=n.label,l=n.sourcepos,o=e.refMap[a];(!o||o.unlinked||o.sourcepos[0][0]>l[0][0])&&(e.refMap[a]=VZ(n))}))},e.prototype.getRangeWithRefDef=function(e,t,n,a,l){if(this.referenceDefinition&&!mG(this.refMap)){var o=SZ(this.root,e-1),r=SZ(this.root,t+1);o&&LK(o)&&o!==n&&o!==a&&(n=o,e=n.sourcepos[0][0]),r&&LK(r)&&r!==n&&r!==a&&(a=r,t=this.extendEndLine(a.sourcepos[1][0]+l))}return[n,a,e,t]},e.prototype.parse=function(e,t,n){void 0===n&&(n=0);var a=this.getNodeRange(e,t),l=a[0],o=a[1],r=l?Math.min(l.sourcepos[0][0],e[0]):e[0],i=this.extendEndLine((o?Math.max(o.sourcepos[1][0],t[0]):t[0])+n),c=this.parseRange.apply(this,this.getRangeWithRefDef(r,i,l,o,n)),u=c.newNodes,s=c.extStartNode,d=c.extEndNode,p=this.getRemovedNodeRange(s,d),h=d?d.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(s,d),this.replaceRangeNodes(s,d,u),this.replaceWithNewRefDefState(u)):this.replaceRangeNodes(s,d,u),{nodes:u,removedNodeRange:p,nextNode:h}},e.prototype.parseRefLink=function(){var e=this,t=[];return mG(this.refMap)||hG(this.refMap,(function(n,a){a.unlinked&&delete e.refMap[n],hG(e.refLinkCandidateMap,(function(a,l){var o=l.node,r=l.refLabel;r===n&&t.push(e.parse(o.sourcepos[0],o.sourcepos[1]))}))})),t},e.prototype.removeUnlinkedCandidate=function(){mG(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){hG(e,(function(t){RZ(t)&&delete e[t]}))}))},e.prototype.editMarkdown=function(e,t,n){var a=this.updateLineTexts(e,t,n),l=this.parse(e,t,a),o=fG(l,"nextNode");MZ(l.nextNode,a),this.updateRootNodeState();var r=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),r=r.concat(this.parseRefLink())),this.trigger("change",r),r},e.prototype.getLineTexts=function(){return this.lineTexts},e.prototype.getRootNode=function(){return this.root},e.prototype.findNodeAtPosition=function(e){var t=AZ(this.root,e);return t&&t!==this.root?t:null},e.prototype.findFirstNodeAtLine=function(e){return DZ(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],a=n.indexOf(t);n.splice(a,1)},e.prototype.findNodeById=function(e){return LZ(e)},e.prototype.removeAllNode=function(){pK()},e}(),HZ=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],zZ=new RegExp("<(/?(?:"+HZ.join("|")+")[^>]*>)","ig");function _Z(e){return zZ.test(e)?e.replace(zZ,(function(e,t){return"<"+t})):e}var qZ={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,a=t.entering,l=null===(n=e.parent)||void 0===n?void 0:n.parent;return l&&"list"===l.type&&l.listData.tight?null:{type:a?"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,a=e.listData,l=a.type,o=a.start,r="bullet"===l?"ul":"ol",i={};return"ol"===r&&null!==o&&1!==o&&(i.start=o.toString()),{type:n?"openTag":"closeTag",tagName:r,attributes:i,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,a=n.tagFilter?_Z(e.literal):e.literal;return{type:"html",content:a}},htmlBlock:function(e,t){var n=t.options,a=n.tagFilter?_Z(e.literal):e.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:a},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:a,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+/):[],a=[];return n.length>0&&n[0].length>0&&a.push("language-"+aK(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:a},{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 a=e,l=a.title,o=a.destination;return{type:"openTag",tagName:"a",attributes:Ro({href:aK(o)},l&&{title:aK(l)})}}return{type:"closeTag",tagName:"a"}},image:function(e,t){var n=t.getChildrenText,a=t.skipChildren,l=e,o=l.title,r=l.destination;return a(),{type:"openTag",tagName:"img",selfClose:!0,attributes:Ro({src:aK(r),alt:n(e)},o&&{title:aK(o)})}},customBlock:function(e,t,n){var a=e.info.trim().toLowerCase(),l=n[a];if(l)try{return l(e,t)}catch(o){console.warn("[@toast-ui/editor] - The error occurred when "+a+" 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 a=e,l=a.info,o=a.firstChild,r=l.trim().toLowerCase(),i=n[r],c=t.entering;if(i)try{return i(e,t)}catch(u){console.warn("[@toast-ui/editor] - The error occurred when "+r+" inline node was parsed in markdown renderer: "+u)}return c?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+l+(o?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},$Z={strike:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"del"}},item:function(e,t){var n=t.entering,a=e.listData,l=a.checked,o=a.task;if(n){var r={type:"openTag",tagName:"li",outerNewLine:!0};return o?[r,{type:"openTag",tagName:"input",selfClose:!0,attributes:Ro(Ro({},l&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:r}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 a=[];if(e.lastChild)for(var l=e.parent.parent.columns.length,o=e.lastChild.endIdx,r=o+1;r<l;r+=1)a.push({type:"openTag",tagName:"td",outerNewLine:!0},{type:"closeTag",tagName:"td",outerNewLine:!0});return a.push({type:"closeTag",tagName:"tr",outerNewLine:!0}),a},tableCell:function(e,t){var n=t.entering;if(e.ignored)return{type:"text",content:""};var a=e.parent.parent,l="tableHead"===a.type?"th":"td",o=a.parent,r=o.columns[e.startIdx],i=(null===r||void 0===r?void 0:r.align)?{align:r.align}:null;return n?Ro({type:"openTag",tagName:l,outerNewLine:!0},i&&{attributes:i}):{type:"closeTag",tagName:l,outerNewLine:!0}}},UZ={softbreak:"\n",gfm:!1,tagFilter:!1,nodeId:!1};function WZ(e){var t=[],n=e.walker(),a=null;while(a=n.next()){var l=a.node;"text"===l.type&&t.push(l.literal)}return t.join("")}var JZ=function(){function e(e){this.buffer=[],this.options=Ro(Ro({},UZ),e),this.convertors=this.createConvertors(),delete this.options.convertors}return e.prototype.createConvertors=function(){var e=Ro({},qZ);if(this.options.gfm&&(e=Ro(Ro({},e),$Z)),this.options.convertors){var t=this.options.convertors,n=Object.keys(t),a=Ro(Ro({},qZ),$Z);n.forEach((function(n){var l=e[n],o=t[n],r=-1===Object.keys(a).indexOf(n)?n.toLowerCase():n;e[r]=l?function(e,t,n){return t.origin=function(){return l(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(),a=null,l=function(){var e=a.node,l=a.entering,r=o.convertors[e.type];if(!r)return"continue";var i=!1,c={entering:l,leaf:!iK(e),options:o.options,getChildrenText:WZ,skipChildren:function(){i=!0}},u=IK(e)||RK(e)?r(e,c,o.convertors):r(e,c);if(u){var s=Array.isArray(u)?u:[u];s.forEach((function(n,a){"openTag"===n.type&&t.options.nodeId&&0===a&&(n.attributes||(n.attributes={}),n.attributes["data-nodeid"]=String(e.id)),t.renderHTMLNode(n)})),i&&(n.resumeAt(e,!1),n.next())}},o=this;while(a=n.next())l();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,a=e.classNames,l=e.attributes;this.buffer.push("<"+n),a&&a.length>0&&this.buffer.push(' class="'+a.join(" ")+'"'),l&&Object.keys(l).forEach((function(e){var n=l[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"!==dG(dG(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(aK(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 KZ(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 GZ=Object.hasOwnProperty,XZ=Object.setPrototypeOf,ZZ=Object.isFrozen,QZ=Object.getPrototypeOf,YZ=Object.getOwnPropertyDescriptor,eQ=Object.freeze,tQ=Object.seal,nQ=Object.create,aQ="undefined"!==typeof Reflect&&Reflect,lQ=aQ.apply,oQ=aQ.construct;lQ||(lQ=function(e,t,n){return e.apply(t,n)}),eQ||(eQ=function(e){return e}),tQ||(tQ=function(e){return e}),oQ||(oQ=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(KZ(t))))});var rQ=vQ(Array.prototype.forEach),iQ=vQ(Array.prototype.pop),cQ=vQ(Array.prototype.push),uQ=vQ(String.prototype.toLowerCase),sQ=vQ(String.prototype.match),dQ=vQ(String.prototype.replace),pQ=vQ(String.prototype.indexOf),hQ=vQ(String.prototype.trim),fQ=vQ(RegExp.prototype.test),mQ=bQ(TypeError);function vQ(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];return lQ(e,t,a)}}function bQ(e){return function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];return oQ(e,n)}}function gQ(e,t){XZ&&XZ(e,null);var n=t.length;while(n--){var a=t[n];if("string"===typeof a){var l=uQ(a);l!==a&&(ZZ(t)||(t[n]=l),a=l)}e[a]=!0}return e}function yQ(e){var t=nQ(null),n=void 0;for(n in e)lQ(GZ,e,[n])&&(t[n]=e[n]);return t}function wQ(e,t){while(null!==e){var n=YZ(e,t);if(n){if(n.get)return vQ(n.get);if("function"===typeof n.value)return vQ(n.value)}e=QZ(e)}function a(e){return console.warn("fallback value for",e),null}return a}var kQ=eQ(["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"]),xQ=eQ(["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"]),CQ=eQ(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),TQ=eQ(["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"]),MQ=eQ(["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"]),OQ=eQ(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),SQ=eQ(["#text"]),EQ=eQ(["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"]),NQ=eQ(["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"]),DQ=eQ(["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"]),AQ=eQ(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),LQ=tQ(/\{\{[\s\S]*|[\s\S]*\}\}/gm),IQ=tQ(/<%[\s\S]*|[\s\S]*%>/gm),RQ=tQ(/^data-[\-\w.\u00B7-\uFFFF]/),jQ=tQ(/^aria-[\-\w]+$/),BQ=tQ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PQ=tQ(/^(?:\w+script|data):/i),VQ=tQ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),FQ="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 HQ(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 zQ=function(){return"undefined"===typeof window?null:window},_Q=function(e,t){if("object"!==("undefined"===typeof e?"undefined":FQ(e))||"function"!==typeof e.createPolicy)return null;var n=null,a="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(a)&&(n=t.currentScript.getAttribute(a));var l="dompurify"+(n?"#"+n:"");try{return e.createPolicy(l,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+l+" could not be created."),null}};function qQ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zQ(),t=function(e){return qQ(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,a=e.document,l=e.DocumentFragment,o=e.HTMLTemplateElement,r=e.Node,i=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,s=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,d=e.Text,p=e.Comment,h=e.DOMParser,f=e.trustedTypes,m=i.prototype,v=wQ(m,"cloneNode"),b=wQ(m,"nextSibling"),g=wQ(m,"childNodes"),y=wQ(m,"parentNode");if("function"===typeof o){var w=a.createElement("template");w.content&&w.content.ownerDocument&&(a=w.content.ownerDocument)}var k=_Q(f,n),x=k&&ee?k.createHTML(""):"",C=a,T=C.implementation,M=C.createNodeIterator,O=C.createDocumentFragment,S=C.getElementsByTagName,E=n.importNode,N={};try{N=yQ(a).documentMode?a.documentMode:{}}catch(Fe){}var D={};t.isSupported="function"===typeof y&&T&&"undefined"!==typeof T.createHTMLDocument&&9!==N;var A=LQ,L=IQ,I=RQ,R=jQ,j=PQ,B=VQ,P=BQ,V=null,F=gQ({},[].concat(HQ(kQ),HQ(xQ),HQ(CQ),HQ(MQ),HQ(SQ))),H=null,z=gQ({},[].concat(HQ(EQ),HQ(NQ),HQ(DQ),HQ(AQ))),_=null,q=null,$=!0,U=!0,W=!1,J=!1,K=!1,G=!1,X=!1,Z=!1,Q=!1,Y=!0,ee=!1,te=!0,ne=!0,ae=!1,le={},oe=null,re=gQ({},["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"]),ie=null,ce=gQ({},["audio","video","img","source","image","track"]),ue=null,se=gQ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml",fe=he,me=!1,ve=void 0,be=["application/xhtml+xml","text/html"],ge="text/html",ye=void 0,we=null,ke=a.createElement("form"),xe=function(e){we&&we===e||(e&&"object"===("undefined"===typeof e?"undefined":FQ(e))||(e={}),e=yQ(e),V="ALLOWED_TAGS"in e?gQ({},e.ALLOWED_TAGS):F,H="ALLOWED_ATTR"in e?gQ({},e.ALLOWED_ATTR):z,ue="ADD_URI_SAFE_ATTR"in e?gQ(yQ(se),e.ADD_URI_SAFE_ATTR):se,ie="ADD_DATA_URI_TAGS"in e?gQ(yQ(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?gQ({},e.FORBID_CONTENTS):re,_="FORBID_TAGS"in e?gQ({},e.FORBID_TAGS):{},q="FORBID_ATTR"in e?gQ({},e.FORBID_ATTR):{},le="USE_PROFILES"in e&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,U=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,J=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,Y=!1!==e.RETURN_DOM_IMPORT,ee=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||P,fe=e.NAMESPACE||he,ve=ve=-1===be.indexOf(e.PARSER_MEDIA_TYPE)?ge:e.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ve?function(e){return e}:uQ,J&&(U=!1),Q&&(Z=!0),le&&(V=gQ({},[].concat(HQ(SQ))),H=[],!0===le.html&&(gQ(V,kQ),gQ(H,EQ)),!0===le.svg&&(gQ(V,xQ),gQ(H,NQ),gQ(H,AQ)),!0===le.svgFilters&&(gQ(V,CQ),gQ(H,NQ),gQ(H,AQ)),!0===le.mathMl&&(gQ(V,MQ),gQ(H,DQ),gQ(H,AQ))),e.ADD_TAGS&&(V===F&&(V=yQ(V)),gQ(V,e.ADD_TAGS)),e.ADD_ATTR&&(H===z&&(H=yQ(H)),gQ(H,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&gQ(ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===re&&(oe=yQ(oe)),gQ(oe,e.FORBID_CONTENTS)),ne&&(V["#text"]=!0),K&&gQ(V,["html","head","body"]),V.table&&(gQ(V,["tbody"]),delete _.tbody),eQ&&eQ(e),we=e)},Ce=gQ({},["mi","mo","mn","ms","mtext"]),Te=gQ({},["foreignobject","desc","title","annotation-xml"]),Me=gQ({},xQ);gQ(Me,CQ),gQ(Me,TQ);var Oe=gQ({},MQ);gQ(Oe,OQ);var Se=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:he,tagName:"template"});var n=uQ(e.tagName),a=uQ(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===he?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===a||Ce[a]):Boolean(Me[n]);if(e.namespaceURI===de)return t.namespaceURI===he?"math"===n:t.namespaceURI===pe?"math"===n&&Te[a]:Boolean(Oe[n]);if(e.namespaceURI===he){if(t.namespaceURI===pe&&!Te[a])return!1;if(t.namespaceURI===de&&!Ce[a])return!1;var l=gQ({},["title","style","font","a","script"]);return!Oe[n]&&(l[n]||!Me[n])}return!1},Ee=function(e){cQ(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Fe){try{e.outerHTML=x}catch(Fe){e.remove()}}},Ne=function(e,n){try{cQ(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(Fe){cQ(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!H[e])if(Z||Q)try{Ee(n)}catch(Fe){}else try{n.setAttribute(e,"")}catch(Fe){}},De=function(e){var t=void 0,n=void 0;if(X)e="<remove></remove>"+e;else{var l=sQ(e,/^[\r\n\t ]+/);n=l&&l[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(fe===he)try{t=(new h).parseFromString(o,ve)}catch(Fe){}if(!t||!t.documentElement){t=T.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(Fe){}}var r=t.body||t.documentElement;return e&&n&&r.insertBefore(a.createTextNode(n),r.childNodes[0]||null),fe===he?S.call(t,K?"html":"body")[0]:K?t.documentElement:r},Ae=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Le=function(e){return!(e instanceof d||e instanceof p)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof s&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},Ie=function(e){return"object"===("undefined"===typeof r?"undefined":FQ(r))?e instanceof r:e&&"object"===("undefined"===typeof e?"undefined":FQ(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Re=function(e,n,a){D[e]&&rQ(D[e],(function(e){e.call(t,n,a,we)}))},je=function(e){var n=void 0;if(Re("beforeSanitizeElements",e,null),Le(e))return Ee(e),!0;if(sQ(e.nodeName,/[\u0080-\uFFFF]/))return Ee(e),!0;var a=ye(e.nodeName);if(Re("uponSanitizeElement",e,{tagName:a,allowedTags:V}),!Ie(e.firstElementChild)&&(!Ie(e.content)||!Ie(e.content.firstElementChild))&&fQ(/<[/\w]/g,e.innerHTML)&&fQ(/<[/\w]/g,e.textContent))return Ee(e),!0;if("select"===a&&fQ(/<template/i,e.innerHTML))return Ee(e),!0;if(!V[a]||_[a]){if(ne&&!oe[a]){var l=y(e)||e.parentNode,o=g(e)||e.childNodes;if(o&&l)for(var r=o.length,c=r-1;c>=0;--c)l.insertBefore(v(o[c],!0),b(e))}return Ee(e),!0}return e instanceof i&&!Se(e)?(Ee(e),!0):"noscript"!==a&&"noembed"!==a||!fQ(/<\/no(script|embed)/i,e.innerHTML)?(J&&3===e.nodeType&&(n=e.textContent,n=dQ(n,A," "),n=dQ(n,L," "),e.textContent!==n&&(cQ(t.removed,{element:e.cloneNode()}),e.textContent=n)),Re("afterSanitizeElements",e,null),!1):(Ee(e),!0)},Be=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in a||n in ke))return!1;if(U&&!q[t]&&fQ(I,t));else if($&&fQ(R,t));else{if(!H[t]||q[t])return!1;if(ue[t]);else if(fQ(P,dQ(n,B,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==pQ(n,"data:")||!ie[e]){if(W&&!fQ(j,dQ(n,B,"")));else if(n)return!1}else;}return!0},Pe=function(e){var n=void 0,a=void 0,l=void 0,o=void 0;Re("beforeSanitizeAttributes",e,null);var r=e.attributes;if(r){var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};o=r.length;while(o--){n=r[o];var c=n,u=c.name,s=c.namespaceURI;if(a=hQ(n.value),l=ye(u),i.attrName=l,i.attrValue=a,i.keepAttr=!0,i.forceKeepAttr=void 0,Re("uponSanitizeAttribute",e,i),a=i.attrValue,!i.forceKeepAttr&&(Ne(u,e),i.keepAttr))if(fQ(/\/>/i,a))Ne(u,e);else{J&&(a=dQ(a,A," "),a=dQ(a,L," "));var d=ye(e.nodeName);if(Be(d,l,a))try{s?e.setAttributeNS(s,u,a):e.setAttribute(u,a),iQ(t.removed)}catch(Fe){}}}Re("afterSanitizeAttributes",e,null)}},Ve=function e(t){var n=void 0,a=Ae(t);Re("beforeSanitizeShadowDOM",t,null);while(n=a.nextNode())Re("uponSanitizeShadowNode",n,null),je(n)||(n.content instanceof l&&e(n.content),Pe(n));Re("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(a,o){var i=void 0,c=void 0,u=void 0,s=void 0,d=void 0;if(me=!a,me&&(a="\x3c!--\x3e"),"string"!==typeof a&&!Ie(a)){if("function"!==typeof a.toString)throw mQ("toString is not a function");if(a=a.toString(),"string"!==typeof a)throw mQ("dirty is not a string, aborting")}if(!t.isSupported){if("object"===FQ(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof a)return e.toStaticHTML(a);if(Ie(a))return e.toStaticHTML(a.outerHTML)}return a}if(G||xe(o),t.removed=[],"string"===typeof a&&(ae=!1),ae);else if(a instanceof r)i=De("\x3c!----\x3e"),c=i.ownerDocument.importNode(a,!0),1===c.nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?i=c:i.appendChild(c);else{if(!Z&&!J&&!K&&-1===a.indexOf("<"))return k&&ee?k.createHTML(a):a;if(i=De(a),!i)return Z?null:x}i&&X&&Ee(i.firstChild);var p=Ae(ae?a:i);while(u=p.nextNode())3===u.nodeType&&u===s||je(u)||(u.content instanceof l&&Ve(u.content),Pe(u),s=u);if(s=null,ae)return a;if(Z){if(Q){d=O.call(i.ownerDocument);while(i.firstChild)d.appendChild(i.firstChild)}else d=i;return Y&&(d=E.call(n,d,!0)),d}var h=K?i.outerHTML:i.innerHTML;return J&&(h=dQ(h,A," "),h=dQ(h,L," ")),k&&ee?k.createHTML(h):h},t.setConfig=function(e){xe(e),G=!0},t.clearConfig=function(){we=null,G=!1},t.isValidAttribute=function(e,t,n){we||xe({});var a=ye(e),l=ye(t);return Be(a,l,n)},t.addHook=function(e,t){"function"===typeof t&&(D[e]=D[e]||[],cQ(D[e],t))},t.removeHook=function(e){D[e]&&iQ(D[e])},t.removeHooks=function(e){D[e]&&(D[e]=[])},t.removeAllHooks=function(){D={}},t}var $Q=qQ(),UQ=["iframe","embed"],WQ=[];function JQ(e){Ae(UQ,e)&&WQ.push(e.toLowerCase())}function KQ(e,t){return $Q.sanitize(e,h({ADD_TAGS:WQ,ADD_ATTR:["rel","target","hreflang","type"],FORBID_TAGS:["input","script","textarea","form","button","select","meta","style","link","title","object","base"]},t))}function GQ(e,t){return e.literal.replace(new RegExp("(<\\s*"+t+"[^>]*>)|(</"+t+"\\s*[>])","ig"),"").trim()}function XQ(e){e=e.match(rn)[0];var t=e.match(new RegExp(nn,"g"));return t?t.reduce((function(e,t){var n=t.trim().split("="),a=n[0],l=n.slice(1);return l.length&&(e[a]=l.join("=").replace(/'|"/g,"").trim()),e}),{}):{}}function ZQ(e){return et(e.attributes).reduce((function(e,t){return e[t.nodeName]=t.nodeValue,e}),{})}function QQ(e,t,n,a){var l=a.getToDOMNode(t)(e),o=n(l.outerHTML),r=document.createElement("div");r.innerHTML=o,l=r.firstChild;var i=ZQ(l);return{dom:l,htmlAttrs:i}}var YQ={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:ZQ(e),childrenHTML:e.innerHTML}}}],toDOM:function(a){var l=QQ(a,e,t,n),o=l.dom,r=l.htmlAttrs;return r.class=r.class?r.class+" html-block":"html-block",f([e,r],et(o.childNodes))}}},htmlInline:function(e,t,n){return{attrs:{htmlAttrs:{default:{}},htmlInline:{default:!0}},parseDOM:[{tag:e,getAttrs:function(e){return{htmlAttrs:ZQ(e)}}}],toDOM:function(a){var l=QQ(a,e,t,n).htmlAttrs;return[e,l,0]}}}};function eY(e,t,n){var a={nodes:{},marks:{}};return["htmlBlock","htmlInline"].forEach((function(l){e[l]&&Object.keys(e[l]).forEach((function(e){var o="htmlBlock"===l?"nodes":"marks";JQ(e),a[o][e]=YQ[l](e,t,n)}))})),a}var tY=/^\s*<\s*\//,nY={paragraph:function(e,t){var n=t.entering,a=t.origin,l=t.options;return l.nodeId?{type:n?"openTag":"closeTag",outerNewLine:!0,tagName:"p"}:a()},softbreak:function(e){var t=e.prev&&"htmlInline"===e.prev.type,n=t&&/<br ?\/?>/.test(e.prev.literal),a=n?"\n":"<br>\n";return{type:"html",content:a}},item:function(e,t){var n=t.entering;if(n){var a={},l=[];return e.listData.task&&(a["data-task"]="",l.push("task-list-item"),e.listData.checked&&(l.push("checked"),a["data-task-checked"]="")),{type:"openTag",tagName:"li",classNames:l,attributes:a,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,a=t.info,l=a?a.split(/\s+/):[],o=[],r={};if(n>3&&(r["data-backticks"]=n),l.length>0&&l[0].length>0){var i=l[0];o.push("lang-"+i),r["data-language"]=i}return[{type:"openTag",tagName:"pre",classNames:o},{type:"openTag",tagName:"code",attributes:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre"}]},customInline:function(e,t){var n=t.origin,a=t.entering,l=t.skipChildren,o=e.info;if(-1!==o.indexOf("widget")&&a){l();var r=Bt(e),i=At(o,r).outerHTML;return[{type:"openTag",tagName:"span",classNames:["tui-widget"]},{type:"html",content:i},{type:"closeTag",tagName:"span"}]}return n()}};function aY(e,t){var n=h({},nY);return e&&(n.link=function(t,n){var a=n.entering,l=n.origin,o=l();return a&&(o.attributes=h(h({},o.attributes),e)),o}),t&&Object.keys(t).forEach((function(e){var a=n[e],l=t[e];a&&$n(l)?n[e]=function(e,t){var n=h({},t);return n.origin=function(){return a(e,t)},l(e,n)}:Ae(["htmlBlock","htmlInline"],e)&&!$n(l)?n[e]=function(e,t){var n=e.literal.match(rn);if(n){var a=n[0],o=n[1],r=n[3],i=(o||r).toLowerCase(),c=l[i],u=GQ(e,i);if(c){var s=h({},e);return s.attrs=XQ(a),s.childrenHTML=u,s.type=i,t.entering=!tY.test(e.literal),c(s,t)}}return t.origin()}:n[e]=l})),n}var lY=["list","item","blockQuote"],oY=["UL","OL","BLOCKQUOTE"];function rY(e,t){var n,a=e.child(t);return!a.childCount||1===a.childCount&&!(null===(n=a.firstChild.text)||void 0===n?void 0:n.trim())}function iY(e,t,n){var a=it(t)-1,l=ct(t)-1,o=n[a].getBoundingClientRect(),r=n[l].offsetTop-n[a].offsetTop+n[l].clientHeight;return{height:r<=0?n[a].clientHeight:r+cY(e,n,Math.min(l+1,e.childCount-1)),rect:o}}function cY(e,t,n){var a=e.childCount-1,l=0;while(n<=a&&rY(e,n))l+=t[n].clientHeight,n+=1;return l}function uY(e,t){while(!e.getAttribute("data-nodeid")&&e.parentElement!==t)e=e.parentElement;return e}function sY(e,t){var n=0;while(e&&e!==t){if(Ae(oY,e.tagName)||(n+=e.offsetTop),e.offsetParent===t.offsetParent)break;e=e.parentElement}return n}function dY(e,t){var n=t,a=null;while(n){var l=n.firstElementChild;if(!l)break;var o=pY(l,e,sY(n,t));a=n,n=o}var r=n||a;return r===t?null:r}function pY(e,t,n){return e&&t>n+e.offsetTop?pY(e.nextElementSibling,t,n)||e:null}function hY(e,t,n,a){var l=Math.min((e-t)/n,1);return l*a}function fY(e,t){var n=e.querySelector('[data-nodeid="'+t.id+'"]');while(!n||pt(t))t=t.parent,n=e.querySelector('[data-nodeid="'+t.id+'"]');return mY({mdNode:t,el:n})}function mY(e){var t=e.mdNode,n=e.el;while((Ae(lY,t.type)||"table"===t.type)&&t.firstChild)t=t.firstChild,n=n.firstElementChild;return{mdNode:t,el:n}}var vY={};function bY(e,t){vY[e]=vY[e]||{},vY[e].height=t}function gY(e,t){vY[e]=vY[e]||{},vY[e].offsetTop=t}function yY(e){return vY[e]&&vY[e].height}function wY(e){return vY[e]&&vY[e].offsetTop}function kY(e){e&&(delete vY[Number(e.getAttribute("data-nodeid"))],et(e.children).forEach((function(e){kY(e)})))}function xY(e,t,n){var a=yY(n),l=wY(n),o=a||e.clientHeight,r=l||sY(e,t)||e.offsetTop;return a||bY(n,o),l||gY(n,r),{nodeHeight:o,offsetTop:r}}var CY=fn("md-preview-highlight");function TY(e,t){var n=e.firstChild;while(n&&n.next){if(ut(n.next)>t+1)break;n=n.next}return n}var MY=function(){function e(e,t){var n=document.createElement("div");this.el=n,this.eventEmitter=e,this.isViewer=!!t.isViewer,this.el.className=fn("md-preview");var a=t.linkAttributes,l=t.customHTMLRenderer,o=t.sanitizer,r=t.highlight,i=void 0!==r&&r;this.renderer=new JZ({gfm:!0,nodeId:!0,convertors:aY(a,l)}),this.cursorNodeId=null,this.sanitizer=o,this.initEvent(i),this.initContentSection(),this.isViewer&&(this.previewContent.style.overflowWrap="break-word")}return e.prototype.initContentSection=function(){this.previewContent=Tn('<div class="'+fn("contents")+'"></div>'),this.isViewer||this.el.appendChild(this.previewContent)},e.prototype.toggleActive=function(e){Cn(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,a=e.cursorPos;t.updateCursorNode(n,a)})),this.eventEmitter.listen("blur",(function(){t.removeHighlight()}))),Ao(this.el,"scroll",(function(e){t.eventEmitter.emit("scroll","preview",dY(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&&le(e,CY)}},e.prototype.updateCursorNode=function(e,t){e&&(e=yt(e,(function(e){return!gt(e)})),"tableRow"===e.type?e=TY(e,t[1]):"tableBody"===e.type&&(e=null));var n=e?e.id:null;if(this.cursorNodeId!==n){var a=this.getElementByNodeId(this.cursorNodeId),l=this.getElementByNodeId(n);a&&le(a,CY),l&&Q(l,CY),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,a=e.removedNodeRange,l=this.previewContent,o=this.eventEmitter.emitReduce("beforePreviewRender",this.sanitizer(n.map((function(e){return t.renderer.render(e)})).join("")));if(a){var r=a.id,i=r[0],c=r[1],u=this.getElementByNodeId(i),s=this.getElementByNodeId(c);if(u){u.insertAdjacentHTML("beforebegin",o);var d=u;while(d&&d!==s){var p=d.nextElementSibling;kn(d),kY(d),d=p}(null===d||void 0===d?void 0:d.parentNode)&&(kn(d),kY(d))}}else l.insertAdjacentHTML("afterbegin",o)},e.prototype.getRenderer=function(){return this.renderer},e.prototype.destroy=function(){To(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){R(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){R(this.el,{minHeight:e+"px"})},e}();function OY(e,t){var n=e.depth;while(n){var a=e.node(n);if(t(a,n))return{node:a,depth:n,offset:n>0?e.before(n):0};n-=1}return null}function SY(e){return!!OY(e,(function(e){var t=e.type;return"listItem"===t.name||"bulletList"===t.name||"orderedList"===t.name}))}function EY(e){return!!OY(e,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}))}function NY(e){return OY(e,(function(e){var t=e.type;return"listItem"===t.name}))}function DY(e){return{tag:e,getAttrs:function(e){var t=e.getAttribute("data-raw-html");return h({},t&&{rawHTML:t})}}}function AY(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 LY(e){return{tag:e,getAttrs:function(e){return["rawHTML","colspan","rowspan","extended"].reduce((function(t,n){var a="rawHTML"===n?"data-raw-html":n,l=e.getAttribute(a);return l&&(t[n]=Ae(["rawHTML","extended"],n)?l:Number(l)),t}),{})}}}function IY(){return{htmlAttrs:{default:null},classNames:{default:null}}}function RY(e){var t=e.htmlAttrs,n=e.classNames;return h(h({},t),{class:n?n.join(" "):null})}function jY(e,t){var n=e.parent,a=e.startIndex,l=e.endIndex,o=n.contentMatchAt(a).findWrapping(t);if(o){var r=o.length?o[0]:t;return n.canReplaceWith(a,l,r)?o:null}return null}function BY(e,t){var n=e.parent,a=e.startIndex,l=e.endIndex,o=n.child(a),r=t.contentMatch.findWrapping(o.type);if(r){for(var i=r.length?r[r.length-1]:t,c=i.contentMatch,u=a;c&&u<l;u+=1)c=c.matchType(n.child(u).type);if(c&&c.validEnd)return r}return null}function PY(e,t,n,a){var l=jY(e,n),o=BY(t,n);if(l&&o){var r=l.map((function(e){return{type:e}})),i=o.map((function(e){return{type:e,attrs:a}}));return r.concat({type:n}).concat(i)}return null}function VY(e,t,n,l,r){for(var i=t.start,c=t.end,u=t.startIndex,s=t.endIndex,d=t.parent,p=a["c"].empty,h=n.length-1;h>=0;h-=1)p=a["c"].from(n[h].type.create(n[h].attrs,p));e.step(new o["b"](i-(l?2:0),c,i,c,new a["j"](p,0,0),n.length,!0));var f=0;for(h=0;h<n.length;h+=1)if(n[h].type===r){f=h+1;break}for(var m=n.length-f,v=i+n.length-(l?2:0),b=(h=u,s);h<b;h+=1){var g=h===u;!g&&Object(o["g"])(e.doc,v,m)&&(e.split(v,m),v+=2*m),v+=d.child(h).nodeSize}return e}function FY(e,t,n,l){var o=t.$from,r=t.$to,i=t.depth,c=t,u=!1;if(i>=2&&o.node(i-1).type.compatibleContent(n)&&0===t.startIndex&&o.index(i-1)){var s=e.doc.resolve(t.start-2);c=new a["g"](s,s,i),t.endIndex<t.parent.childCount&&(t=new a["g"](o,e.doc.resolve(r.end(i)),i)),u=!0}var d=PY(c,t,n,l);return d?VY(e,t,d,u,n):e}function HY(e,t){var n=e.resolve(t);while("paragraph"!==n.node().type.name)t-=2,n=e.resolve(t);return NY(n)}function zY(e,t){var n=t.$from,a=t.$to,l=NY(n),o=NY(a);if(l&&o)while(o){var r=o.offset,i=o.node,c={task:!i.attrs.task,checked:!1};if(e.setNodeMarkup(r,null,c),r===l.offset)break;o=HY(e.doc,r)}return e}function _Y(e,t,n){var a=t.$from,l=t.$to,o=NY(a),r=NY(l);if(o&&r)while(r){var i=r.offset,c=r.node,u=r.depth;c.attrs.task&&e.setNodeMarkup(i,null,{task:!1,checked:!1});var s=e.doc.resolve(i);if(s.parent.type!==n){var d=s.before(u-1);e.setNodeMarkup(d,n)}if(i===o.offset)break;r=HY(e.doc,i)}return e}function qY(e){return function(t,n){var a=t.selection,l=t.tr,o=a.$from,r=a.$to,i=o.blockRange(r);if(i){var c=SY(o)?_Y(l,i,e):FY(l,i,e);return n(c),!0}return!1}}function $Y(){return function(e,t){var n=e.selection,a=e.tr,l=e.schema,o=n.$from,r=n.$to,i=o.blockRange(r);if(i){var c=SY(o)?zY(a,i):FY(a,i,l.nodes.bulletList,{task:!0});return t(c),!0}return!1}}function UY(e){return function(t,n){var l=t.tr,r=t.selection,i=r.$from,c=r.$to,u=i.blockRange(c,(function(t){var n=t.childCount,a=t.firstChild;return!!n&&a.type===e}));if(u&&u.startIndex>0){var s=u.parent,d=s.child(u.startIndex-1);if(d.type!==e)return!1;var p=d.lastChild&&d.lastChild.type===s.type,h=p?a["c"].from(e.create()):null,f=new a["j"](a["c"].from(e.create(null,a["c"].from(s.type.create(null,h)))),p?3:1,0),m=u.start,v=u.end;return l.step(new o["b"](m-(p?3:1),v,m,v,f,1,!0)),n(l),!0}return!1}}function WY(e,t,n){var l=t.$from,r=t.$to,i=t.end,c=t.depth,u=t.parent,s=r.end(c);return i<s&&(e.step(new o["b"](i-1,s,i,s,new a["j"](a["c"].from(n.create(null,u.copy())),1,0),1,!0)),t=new a["g"](e.doc.resolve(l.pos),e.doc.resolve(s),c)),e.lift(t,Object(o["k"])(t)),e}function JY(e,t){for(var n=t.parent,l=t.end,r=t.endIndex-1,i=t.startIndex;r>i;r-=1)l-=n.child(r).nodeSize,e.delete(l-1,l+1);var c=e.doc.resolve(t.start),u=c.nodeAfter,s=0===t.startIndex,d=t.endIndex===n.childCount,p=c.node(-1),h=c.index(-1),f=p.canReplace(h+(s?0:1),h+1,null===u||void 0===u?void 0:u.content.append(d?a["c"].empty:a["c"].from(n)));if(u&&f){var m=c.pos,v=m+u.nodeSize;e.step(new o["b"](m-(s?1:0),v+(d?1:0),m+1,v-1,new a["j"]((s?a["c"].empty:a["c"].from(n.copy(a["c"].empty))).append(d?a["c"].empty:a["c"].from(n.copy(a["c"].empty))),s?0:1,d?0:1),s?0:1))}return e}function KY(e){return function(t,n){var a=t.tr,l=t.selection,o=l.$from,r=l.$to,i=o.blockRange(r,(function(t){var n=t.childCount,a=t.firstChild;return!!n&&a.type===e}));if(i){var c=o.node(i.depth-1).type===e,u=c?WY(a,i,e):JY(a,i);return n(u),!0}return!1}}function GY(e){return function(t,n){var l=t.tr,i=t.selection,c=i.$from,u=i.$to;if(c.depth<2||!c.sameParent(u))return!1;var s=c.node(-1);if(s.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,p=a["c"].empty,h=c.depth-(d?1:2);h>=c.depth-3;h-=1)p=a["c"].from(c.node(h).copy(p));return p=p.append(a["c"].from(e.createAndFill())),l.replace(d?c.before():c.before(-1),c.after(-3),new a["j"](p,d?3:2,2)),l.setSelection(r["f"].near(l.doc.resolve(c.pos+(d?3:2)))),n(l),!0}var f=u.pos===c.end()?s.contentMatchAt(0).defaultType:null,m=f&&[null,{type:f}];return l.delete(c.pos,u.pos),!!Object(o["g"])(l.doc,c.pos,2,m)&&(l.split(c.pos,2,m),n(l),!0)}}function XY(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=n.$from,o=n.$to,r=l.blockRange(o);return!(!r||!SY(l))&&UY(a.nodes.listItem)(e,t)}}}function ZY(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=n.$from,o=n.$to,r=l.blockRange(o);return!(!r||!SY(l))&&KY(a.nodes.listItem)(e,t)}}}function QY(){return{indent:XY(),outdent:ZY()}}var YY=new Map,e0=function(){function e(e,t,n,a){this.table=e,this.tableRows=t,this.tableStartPos=n,this.rowInfo=a}return e.create=function(t){var n=OY(t,(function(e){var t=e.type;return"table"===t.name}));if(n){var a=n.node,l=n.depth,o=n.offset,r=YY.get(a);if((null===r||void 0===r?void 0:r.tableStartPos)===o+1)return r;var i=[],c=t.start(l),u=a.child(0),s=a.child(1),d=t0(u,c),p=t0(s,c+u.nodeSize);u.forEach((function(e){return i.push(e)})),s.forEach((function(e){return i.push(e)}));var h=new e(a,i,c,d.concat(p));return YY.set(a,h),h}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,a=this.tableStartPos;;n+=1){var l=a+this.tableRows[n].nodeSize;if(n===e){var o=t;while(o<this.totalColumnCount&&this.rowInfo[n][o].offset<a)o+=1;return o===this.totalColumnCount?l:this.rowInfo[n][o].offset}a=l}},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],a=n.offset,l=n.nodeSize;return this.extendedRowspan(e,t)?this.posAt(e,t):a+l},e.prototype.getCellIndex=function(e){for(var t=0;t<this.totalRowCount;t+=1)for(var n=this.rowInfo[t],a=0;a<this.totalColumnCount;a+=1)if(n[a].offset+1>e.pos)return[t,a];return[0,0]},e.prototype.getRectOffsets=function(e,t){var n,a,l;void 0===t&&(t=e),e.pos>t.pos&&(n=[t,e],e=n[0],t=n[1]);var o=this.getCellIndex(e),r=o[0],i=o[1],c=this.getCellIndex(t),u=c[0],s=c[1];return a=Ge(r,u),r=a[0],u=a[1],l=Ge(i,s),i=l[0],s=l[1],this.getSpannedOffsets({startRowIdx:r,startColIdx:i,endRowIdx:u,endColIdx:s})},e.prototype.getSpannedOffsets=function(e){return e},e}(),t0=function(e,t){var n=[];return e.forEach((function(e,a){var l={rowspanMap:{},colspanMap:{},length:0};e.forEach((function(e,n){var o=e.nodeSize,r=0;while(l[r])r+=1;l[r]={offset:t+a+n+2,nodeSize:o},l.length+=1})),n.push(l)})),n};function n0(e,t){return Ke(e0.prototype,e),t0=t,e0}function a0(e,t,n){for(var a=n.startRowIdx,l=n.startColIdx,o=n.endRowIdx,i=n.endColIdx,c=[],u=a;u<=o;u+=1)for(var s=l;s<=i;s+=1){var d=t.getCellInfo(u,s),p=d.offset,h=d.nodeSize;c.push(new r["g"](e.resolve(p+1),e.resolve(p+h-1)))}return c}function l0(e,t){var n=[];return e.childCount&&n.push(e),t.childCount&&n.push(t),a["c"].from(n)}var o0=function(e){function t(t,n){void 0===n&&(n=t);var a=this,l=t.node(0),o=e0.create(t),r=o.getRectOffsets(t,n),i=a0(l,o,r);return a=e.call(this,i[0].$from,i[0].$to,i)||this,a.startCell=t,a.endCell=n,a.offsetMap=o,a.isCellSelection=!0,a.visible=!1,a}return p(t,e),t.prototype.map=function(e,n){var a=this.startCell.pos,l=this.endCell.pos,o=e.resolve(n.map(a)),i=e.resolve(n.map(l)),c=e0.create(o);if(this.offsetMap.totalColumnCount>c.totalColumnCount||this.offsetMap.totalRowCount>c.totalRowCount){var u={tableBody:1,tableRow:2,tableCell:3,paragraph:4},s=u[i.parent.type.name],d=i.end(i.depth-s),p=Math.min(d-4,i.pos);return r["h"].create(e,p)}return new t(o,i)},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,l=e.child(0).type.create(),o=e.child(1).type.create(),r=e0.create(this.startCell),i=r.getRectOffsets(this.startCell,this.endCell),c=i.startRowIdx,u=i.startColIdx,s=i.endRowIdx,d=i.endColIdx,p=!1,h=c;h<=s;h+=1){for(var f=[],m=u;m<=d;m+=1){var v=r.getCellInfo(h,m).offset,b=e.nodeAt(v-t);b&&(p="tableHeadCell"===b.type.name,r.extendedRowspan(h,m)||r.extendedColspan(h,m)?f.push(b.type.create({extended:!0})):f.push(b.copy(b.content)))}var g=n.copy(a["c"].from(f)),y=p?l:o;y.content=y.content.append(a["c"].from(g))}return new a["j"](l0(l,o),1,1)},t}(r["f"]);function r0(e,t,n){for(var a=t.nodes,l=a.tableRow,o=a.tableHeadCell,r=a.paragraph,i=[],c=0;c<e;c+=1){var u=n&&n[c],s=r.create(null,u?t.text(u):[]);i.push(o.create(null,s))}return[l.create(null,i)]}function i0(e,t,n,a){for(var l=n.nodes,o=l.tableRow,r=l.tableBodyCell,i=l.paragraph,c=[],u=0;u<e;u+=1){for(var s=[],d=0;d<t;d+=1){var p=a&&a[u*t+d],h=i.create(null,p?n.text(p):[]);s.push(r.create(null,h))}c.push(o.create(null,s))}return c}function c0(e,t,n,a){void 0===a&&(a=null);for(var l=n.nodes,o=l.tableHeadCell,r=l.tableBodyCell,i=l.paragraph,c=0===t?o:r,u=[],s=0;s<e;s+=1)u.push(c.create(a,i.create()));return u}function u0(e,t){while(e&&e!==t){if("TD"===e.nodeName||"TH"===e.nodeName)return e;e=e.parentNode}return null}function s0(e){return OY(e,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}))}function d0(e){if(e instanceof r["h"]){var t=e.$anchor,n=s0(t);if(n){var a=t.node(0).resolve(t.before(n.depth));return{anchor:a,head:a}}}var l=e,o=l.startCell,i=l.endCell;return{anchor:o,head:i}}function p0(e){var t;if(e.size){var n=e.content,a=e.openStart,l=e.openEnd;if(1!==n.childCount)return null;while(1===n.childCount&&(a>0&&l>0||"table"===(null===(t=n.firstChild)||void 0===t?void 0:t.type.name)))a-=1,l-=1,n=n.firstChild.content;if("tableHead"===n.firstChild.type.name||"tableBody"===n.firstChild.type.name)return n}return null}function h0(e){var t=e.startRowIdx,n=e.startColIdx,a=e.endRowIdx,l=e.endColIdx,o=a-t+1,r=l-n+1;return{rowCount:o,columnCount:r}}function f0(e,t){return h(h({},e.attrs),t)}var m0=new r["e"]("cellSelection"),v0=2,b0=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=u0(e.target,this.view.dom);if(e.button!==v0){if(t){var n=this.getCellPos(e);n&&(this.startCellPos=n),this.bindEvent()}}else e.preventDefault()},e.prototype.handleMousemove=function(e){var t,n=m0.getState(this.view.state),a=this.getCellPos(e),l=this.startCellPos;n?t=this.view.state.doc.resolve(n):l!==a&&(t=l),t&&l&&a&&this.setCellSelection(l,a)},e.prototype.handleMouseup=function(){this.startCellPos=null,this.unbindEvent(),null!==m0.getState(this.view.state)&&this.view.dispatch(this.view.state.tr.setMeta(m0,-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,a=this.view.posAtCoords({left:t,top:n});if(a){var l=this.view.state.doc,o=l.resolve(a.pos),r=s0(o);if(r){var i=o.before(r.depth);return l.resolve(i)}}return null},e.prototype.setCellSelection=function(e,t){var n=this.view.state,a=n.selection,l=n.tr,o=null===m0.getState(this.view.state),r=new o0(e,t);if(o||!a.eq(r)){var i=l.setSelection(r);o&&i.setMeta(m0,t.pos),this.view.dispatch(i)}},e.prototype.destroy=function(){this.view.dom.removeEventListener("mousedown",this.handlers.mousedown)},e}(),g0=fn("cell-selected");function y0(e){var t=e.selection,n=e.doc;if(t instanceof o0){var a=[],o=t.ranges;return o.forEach((function(e){var t=e.$from,n=e.$to;a.push(l["a"].node(t.pos-1,n.pos+1,{class:g0}))})),l["b"].create(n,a)}return null}function w0(){return new r["d"]({key:m0,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(m0);if(n)return-1===n?null:n;if(ce(t)||!e.docChanged)return t;var a=e.mapping.mapResult(t),l=a.deleted,o=a.pos;return l?null:o}},props:{decorations:y0,createSelectionBetween:function(e){var t=e.state;return ce(m0.getState(t))?null:t.selection}},view:function(e){return new b0(e)}})}var k0=function(){function e(){this.keys=[],this.values=[]}return e.prototype.getKeyIndex=function(e){return P(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(a,l){a&&n.keys[l]&&e.call(t,a,n.keys[l],n)}))},e.prototype.clear=function(){this.keys=[],this.values=[]},e}(),x0="en-US",C0=function(){function e(){this.code=x0,this.langs=new k0}return e.prototype.setCode=function(e){this.code=e||x0},e.prototype.setLanguage=function(e,t){var n=this;e=[].concat(e),e.forEach((function(e){if(n.langs.has(e)){var a=n.langs.get(e);n.langs.set(e,y(a,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(x0));var a=n[e];if(!a)throw new Error('There is no text key "'+e+'" in '+t);return a},e}(),T0=new C0,M0=[[{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 O0(e,t){return M0.map((function(n){return n.map((function(n){var a=n.action,l=n.command,o=n.payload,r=n.disableInThead,i=n.className;return{label:T0.get(a),onClick:function(){e.emit("command",l,o)},disabled:t&&!!r,className:i}}))})).concat()}function S0(e){return new r["d"]({props:{handleDOMEvents:{contextmenu:function(t,n){var a=u0(n.target,t.dom);if(a){n.preventDefault();var l=n,o=l.clientX,r=l.clientY,i=t.dom.parentNode.getBoundingClientRect(),c=i.left,u=i.top,s="TH"===a.nodeName;return e.emit("contextmenu",{pos:{left:o-c+10+"px",top:r-u+30+"px"},menuGroups:O0(e,s),tableCell:a}),!0}return!1}}}})}function E0(){return new r["d"]({props:{handleDOMEvents:{mousedown:function(e,t){var n=t,a=n.clientX,l=n.clientY,o=e.posAtCoords({left:a,top:l});if(o){var r=e.state,i=r.doc,c=r.tr,u=i.resolve(o.pos),s=NY(u),d=t.target,p=getComputedStyle(d,":before"),f=t,m=f.offsetX,v=f.offsetY;if(!s||!pn(p,m,v))return!1;t.preventDefault();var b=u.before(s.depth),g=s.node.attrs;return c.setNodeMarkup(b,null,h(h({},g),{checked:!g.checked})),e.dispatch(c),!0}return!1}}}})}var N0=["image","link","customBlock","frontMatter"],D0=["strong","strike","emph","code"],A0=["bulletList","orderedList","taskList"];function L0(e,t){var n=e.type.name;return"listItem"===n?e.attrs.task?"taskList":t.type.name:-1!==n.indexOf("table")?"table":n}function I0(e,t){t[e]={active:!0},A0.filter((function(t){return t!==e})).forEach((function(e){t[e]&&delete t[e]}))}function R0(e,t,n,a){D0.forEach((function(l){var o=n.marks[l],r=e.marksAcross(t)||[],i=!!o.isInSet(r);i&&(a[l]={active:!0})}))}function j0(e,t,n){var a=e.$from,l=e.$to,o=e.from,r=e.to,i={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}};return t.nodesBetween(o,r,(function(e,t,o){var r=L0(e,o);Ae(N0,r)||(Ae(A0,r)?(I0(r,i),i.indent.disabled=!1,i.outdent.disabled=!1):"paragraph"===r||"text"===r?R0(a,l,n,i):i[r]={active:!0})})),i}function B0(e){return new r["d"]({view:function(){return{update:function(t){var n=t.state,a=n.selection,l=n.doc,o=n.schema;e.emit("changeToolbarState",{toolbarState:j0(a,l,o)})}}}})}var P0=function(){function e(e,t,n,a){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 l["c"](o.innerViewContainer,{state:r["b"].create({doc:o.node,plugins:[Object(i["a"])({"Mod-z":function(){return Object(s["c"])(o.innerEditorView.state,o.innerEditorView.dispatch)},"Shift-Mod-z":function(){return Object(s["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(s["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=a,this.innerEditorView=null,this.canceled=!1,this.dom=document.createElement("div"),this.dom.className=fn("custom-block"),this.wrapper=document.createElement("div"),this.wrapper.className=fn("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"),a=document.createElement("button");t.className="tool",n.textContent=this.node.attrs.info,n.className="info",a.type="button",a.addEventListener("click",(function(){return e.openEditor()})),t.appendChild(n),t.appendChild(a),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=fn("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(at(t.tr,e))),this.editorView.focus(),this.renderCustomBlock(),this.closeEditor()},e.prototype.cancelEditing=function(){var e=Object(s["d"])(this.innerEditorView.state);this.canceled=!0;while(e--)Object(s["c"])(this.innerEditorView.state,this.innerEditorView.dispatch),Object(s["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(r["h"].create(n.doc,t))),this.editorView.focus(),this.closeEditor()},e.prototype.dispatchInner=function(e){var t=this.innerEditorView.state.applyTransaction(e),n=t.state,a=t.transactions;if(this.innerEditorView.updateState(n),!this.canceled&&$n(this.getPos)){for(var l=this.editorView.state.tr,r=o["d"].offset(this.getPos()+1),i=0;i<a.length;i+=1)for(var c=a[i].steps,u=0;u<c.length;u+=1)l.step(c[u].map(r));l.docChanged&&this.editorView.dispatch(l)}},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}(),V0="image-link",F0=function(){function e(e,t,n,a){var l,o=this;this.handleMousedown=function(e){e.preventDefault();var t=e.target,n=e.offsetX,a=e.offsetY;if(o.imageLink&&$n(o.getPos)&&_t(t,V0)){var l=getComputedStyle(t,":before");if(e.stopPropagation(),pn(l,n,a)){var r=o.view.state.tr,i=o.getPos();r.setSelection(at(r,i,i+1)),o.view.dispatch(r),o.eventEmitter.emit("openPopup","link",o.imageLink.attrs)}}},this.node=e,this.view=t,this.getPos=n,this.eventEmitter=a,this.imageLink=null!==(l=e.marks.filter((function(e){var t=e.type;return"link"===t.name}))[0])&&void 0!==l?l: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=V0,t.appendChild(e),t}return e},e.prototype.createImageElement=function(e){var t=document.createElement("img"),n=e.attrs,a=n.imageUrl,l=n.altText,o=RY(e.attrs);return t.src=a,l&&(t.alt=l),En(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}(),H0="toastui-editor-ww-code-block",z0="toastui-editor-ww-code-block-language",_0=function(){function e(e,t,n,a){var l=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&&$n(l.getPos)){var a=l.view.coordsAtPos(l.getPos()),o=a.top,r=a.right;l.createLanguageEditor({top:o,right:r})}},this.handleKeydown=function(e){"Enter"===e.key&&l.input&&(e.preventDefault(),l.changeLanguage())},this.node=e,this.view=t,this.getPos=n,this.eventEmitter=a,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=H0;var n=this.createCodeBlockElement(),a=n.firstChild;t.appendChild(n),this.dom=t,this.contentDOM=a},e.prototype.createCodeBlockElement=function(){var e=document.createElement("pre"),t=document.createElement("code"),n=this.node.attrs.language,a=RY(this.node.attrs);return n&&t.setAttribute("data-language",n),En(a,e),e.appendChild(t),e},e.prototype.createLanguageEditor=function(e){var t=this,n=e.top,a=e.right,l=document.createElement("span");l.className=z0;var o=document.createElement("input");o.type="text",o.value=this.node.attrs.language,l.appendChild(o),this.view.dom.parentElement.appendChild(l);var r=l.clientWidth;R(l,{top:n+10+"px",left:a-r-10+"px",width:r+"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&&$n(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,kn(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}(),q0=/MsoListParagraph/,$0=/style=(.|\n)*mso-/,U0=/mso-list:(.*)/,W0=/O:P/,J0=/^(n|u|l)/,K0="p.MsoListParagraph";function G0(e){return $0.test(e)}function X0(e){var t=[],n=document.createTreeWalker(e,1,null,!1);while(n.nextNode()){var a=n.currentNode;if(bn(a)){var l=a,o=l.outerHTML,r=l.textContent,i=$0.test(o),c=U0.test(o);i&&!c&&r?t.push([a,!0]):(W0.test(a.nodeName)||i&&!r||c)&&t.push([a,!1])}}return t.forEach((function(e){var t=e[0],n=e[1];n?xn(t):kn(t)})),e.innerHTML.trim()}function Z0(e,t){var n=e.getAttribute("style");if(n){var a=n.match(U0),l=a[1],o=l.trim().split(" "),r=o[1],i=parseInt(r.replace("level",""),10),c=J0.test(e.textContent||"");return{id:t,level:i,prev:null,parent:null,children:[],unordered:c,contents:X0(e)}}return null}function Q0(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 Y0(e){var t=[];return e.forEach((function(e,n){var a=t[n-1],l=Z0(e,n);l&&(a&&Q0(l,a),t.push(l))})),t}function e1(e){var t=e[0].unordered?"ul":"ol",n=document.createElement(t);return e.forEach((function(e){var t=e.children,a=e.contents,l=document.createElement("li");l.innerHTML=a,n.appendChild(l),t.length&&n.appendChild(e1(t))})),n}function t1(e){var t=Y0(e),n=t.filter((function(e){var t=e.parent;return!t}));return e1(n)}function n1(e){while(e){if(bn(e))break;e=e.nextSibling}return!e||!q0.test(e.className)}function a1(e){var t=document.createElement("div");t.innerHTML=e;var n=[],a=gn(t,K0);a.forEach((function(e){var a=n1(e.nextSibling);if(n.push(e),a){var l=t1(n),o=e.nextSibling;o?wn(l,o):yn(t,l),n=[]}kn(e)}));var l=a.length?"<p></p>":"";return""+l+t.innerHTML}var l1="\x3c!--StartFragment--\x3e",o1="\x3c!--EndFragment--\x3e";function r1(e){var t=e.indexOf(l1),n=e.lastIndexOf(o1);return t>-1&&n>-1&&(e=e.slice(t+l1.length,n)),e.replace(/<br[^>]*>/g,sn)}function i1(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 c1(e){return e=r1(e),e=i1(e),G0(e)&&(e=a1(e)),e}function u1(e){var t=e.reduce((function(e,t){return e.childCount>t.childCount?e:t}));return t.childCount}function s1(e,t,n){for(var a=[],l=e.childCount,o=0;o<l;o+=1)if(!e.child(o).attrs.extended){var r=o<l?n.create(e.child(o).attrs,e.child(o).content):n.createAndFill();a.push(r)}return a}function d1(e,t,n){var a=n.nodes,l=a.tableRow,o=a.tableHeadCell,r=s1(e,t,o);return l.create(null,r)}function p1(e,t,n){var a=n.nodes,l=a.tableRow,o=a.tableBodyCell,r=s1(e,t,o);return l.create(null,r)}function h1(e,t){for(var n=t.nodes,a=n.tableRow,l=n.tableBodyCell,o=[],r=0;r<e;r+=1){var i=l.createAndFill();o.push(i)}return a.create({dummyRowForPasting:!0},o)}function f1(e){var t=[],n=[];if("tableHead"===e.firstChild.type.name){var a=e.firstChild;a.forEach((function(e){return t.push(e)}))}if("tableBody"===e.lastChild.type.name){var l=e.lastChild;l.forEach((function(e){return n.push(e)}))}return f(f([],t),n)}function m1(e,t,n){var a=d1(e,t,n);return n.nodes.tableHead.create(null,a)}function v1(e,t,n){var a=e.map((function(e){return p1(e,t,n)}));if(!e.length){var l=h1(t,n);a.push(l)}return n.nodes.tableBody.create(null,a)}function b1(e,t,n,a){var l=u1(e);if(n&&a)return t.nodes.table.create(null,[v1(e,l,t)]);var o=e[0],r=e.slice(1),i=[m1(o,l,t)];return r.length&&i.push(v1(r,l,t)),t.nodes.table.create(null,i)}function g1(e,t,n){var l=[],o=e.content,r=e.openStart,i=e.openEnd;return o.forEach((function(e){if("table"===e.type.name){var o=p0(new a["j"](a["c"].from(e),0,0));if(o){var r=f1(o),i="tableBody"===o.firstChild.type.name,c=b1(r,t,i,n);l.push(c)}}else l.push(e)})),new a["j"](a["c"].from(l),r,i)}var y1=4,w1=2;function k1(e){return e*y1}function x1(e,t,n){var a=[],l=f1(e),o=l[0].childCount,r=l.length,i=0===t.startRowIdx,c=l.slice(0,r);if(i){var u=c.shift();if(u){var s=d1(u,o,n).content;a.push(s)}}return c.forEach((function(e){if(!e.attrs.dummyRowForPasting){var t=p1(e,o,n).content;a.push(t)}})),a}function C1(e,t,n){for(var a=t.startRowIdx,l=t.startColIdx,o=n.length,r=0,i=function(e){var t=n[e].childCount;n[e].forEach((function(e){var n=e.attrs,a=n.colspan;a>1&&(t+=a-1)})),r=Math.max(r,t)},c=0;c<o;c+=1)i(c);var u=a+o-1,s=l+r-1,d=Math.max(u+1-e.totalRowCount,0),p=Math.max(s+1-e.totalColumnCount,0);return{startRowIdx:a,startColIdx:l,endRowIdx:u,endColIdx:s,addedRowCount:d,addedColumnCount:p}}function T1(e,t){for(var n=e.startRowIdx,a=e.startColIdx,l=e.endRowIdx,o=e.endColIdx,r=e.addedRowCount,i=e.addedColumnCount,c=n;c<=l-r;c+=1)t.push({rowIdx:c,startColIdx:a,endColIdx:o-i})}function M1(e,t,n,a,l){for(var o=a.startRowIdx,r=a.startColIdx,i=a.endRowIdx,c=a.endColIdx,u=a.addedRowCount,s=a.addedColumnCount,d=n.totalRowCount,p=0,h=0;h<d;h+=1){var f=n.getCellInfo(h,c-s),m=f.offset,v=f.nodeSize,b=e.mapping.map(m+v),g=c0(s,h,t);if(e.insert(b,g),h>=o&&h<=i-u){var y=n.getCellInfo(h,c-s),w=e.mapping.map(y.offset),k=b+k1(s);l[p]={rowIdx:h,startColIdx:r,endColIdx:c,dummyOffsets:[w,k]},p+=1}}}function O1(e,t,n,a,l){var o=a.addedRowCount,r=a.addedColumnCount,i=a.startColIdx,c=a.endColIdx,u=e.mapping.maps.length,s=n.tableEndOffset-2,d=i0(o,n.totalColumnCount+r,t),p=s;e.insert(e.mapping.slice(u).map(p),d);for(var h=0;h<o;h+=1){var f=p+k1(i)+1,m=p+k1(c+1)+1,v=p+k1(n.totalColumnCount+r)+w1;l.push({rowIdx:h+n.totalRowCount,startColIdx:i,endColIdx:c,dummyOffsets:[f,m]}),p=v}}function S1(e,t,n,l){var o=e.mapping.maps.length;n.forEach((function(n,r){var i=n.rowIdx,c=n.startColIdx,u=n.endColIdx,s=n.dummyOffsets,d=e.mapping.slice(o),p=new a["j"](t[r],0,0),h=s?s[0]:l.getCellStartOffset(i,c),f=s?s[1]:l.getCellEndOffset(i,u);e.replace(d.map(h),d.map(f),p)}))}function E1(e,t){var n=e.state,a=n.selection,l=n.schema,o=n.tr,r=d0(a),i=r.anchor,c=r.head;if(i&&c){var u=p0(t);if(!u)return!1;var s=e0.create(i),d=s.getRectOffsets(i,c),p=x1(u,d,l),h=C1(s,d,p),f=[];return D1(s,h)&&(T1(h,f),h.addedColumnCount&&M1(o,l,s,h,f),h.addedRowCount&&O1(o,l,s,h,f),S1(o,p,f,s),e.dispatch(o),N1(e,f,s.getCellInfo(0,0).offset)),!0}return!1}function N1(e,t,n){var a=e.state,l=a.tr,o=a.doc,r=e0.create(o.resolve(n)),i=t[0],c=i.rowIdx,u=i.startColIdx,s=_e(t),d=s.rowIdx,p=s.endColIdx,h=r.getCellInfo(c,u).offset,f=r.getCellInfo(d,p).offset;e.dispatch(l.setSelection(new o0(o.resolve(h),o.resolve(f))))}function D1(e,t){var n=e.getSpannedOffsets(t),a=h0(n),l=a.rowCount,o=a.columnCount,r=h0(t),i=r.rowCount,c=r.columnCount;return l===i&&o===c}var A1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}(Vn),L1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({},IY()),parseDOM:[{tag:"p"}],toDOM:function(e){var t=e.attrs;return["p",RY(t),0]}}},enumerable:!1,configurable:!0}),t}(Vn),I1=/\s{1,4}$/,R1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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,a=e.tr,l=n.$from,o=n.$to,r=l.blockRange(o);return!(!r||SY(l)||EY(l))&&(t(a.insertText(" ",l.pos,o.pos)),!0)}},t.prototype.removeSpaces=function(){return function(e,t){var n=e.selection,a=e.tr,l=n.$from,o=n.$to,r=n.from,i=l.blockRange(o);if(i&&!SY(l)&&!EY(l)){var c=l.nodeBefore;if(c&&c.isText){var u=c.text,s=u.replace(I1,""),d=u.length-s.length;return t(a.delete(r-d,r)),!0}}return!1}},t.prototype.keymaps=function(){return{Tab:this.addSpaces(),"Shift-Tab":this.removeSpaces()}},t}(Vn),j1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 h({level:e},n&&{rawHTML:n})}}}));return{attrs:h({level:{default:1},headingType:{default:"atx"},rawHTML:{default:null}},IY()),content:"inline*",group:"block",defining:!0,parseDOM:e,toDOM:function(e){var t=e.attrs;return["h"+t.level,RY(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(e){return function(t,n){var a=t.schema.nodes[e.level?"heading":"paragraph"];return Object(c["h"])(a,e)(t,n)}}},t}(Vn),B1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({language:{default:null},rawHTML:{default:null}},IY()),code:!0,defining:!0,marks:"",parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:function(e){var t=e.getAttribute("data-raw-html"),n=e.firstElementChild;return h({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",h({"data-language":t.language},RY(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,a){var l=n.tr,o=n.doc,r=n.schema,i=n.selection.$from,c=t.context.view;if(c.endOfTextblock(e)&&"codeBlock"===i.node().type.name){var u=i.parent.textContent.split("\n"),s="up"===e?i.start():i.end(),d="up"===e?[s,u[0].length+s]:[s-_e(u).length,s],p=o.resolve("up"===e?i.before():i.after()),h="up"===e?p.nodeBefore:p.nodeAfter;if(qe(i.pos,d[0],d[1])&&!h){var f=lt(l,p,r);if(f)return a(f),!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}(Vn),P1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({rawHTML:{default:null}},IY()),parseDOM:[DY("ul")],toDOM:function(e){var t=e.attrs;return["ul",RY(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.changeList=function(){return function(e,t){return qY(e.schema.nodes.bulletList)(e,t)}},t.prototype.commands=function(){return{bulletList:this.changeList,taskList:$Y}},t.prototype.keymaps=function(){var e=this.changeList(),t=QY(),n=t.indent,a=t.outdent;return{"Mod-u":e,"Mod-U":e,Tab:n(),"Shift-Tab":a()}},t}(Vn),V1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({order:{default:1},rawHTML:{default:null}},IY()),parseDOM:[{tag:"ol",getAttrs:function(e){var t=e.getAttribute("start"),n=e.getAttribute("data-raw-html");return h({order:e.hasAttribute("start")?Number(t):1},n&&{rawHTML:n})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"ol",h({start:1===t.order?null:t.order},RY(t)),0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return qY(e.schema.nodes.orderedList)(e,t)}}},t.prototype.keymaps=function(){var e=this.commands()(),t=QY(),n=t.indent,a=t.outdent;return{"Mod-o":e,"Mod-O":e,Tab:n(),"Shift-Tab":a()}},t}(Vn),F1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 h({task:e.hasAttribute("data-task"),checked:e.hasAttribute("data-task-checked")},t&&{rawHTML:t})}}],toDOM:function(e){var t=e.attrs,n=t.task,a=t.checked;if(!n)return[t.rawHTML||"li",0];var l=["task-list-item"];return a&&l.push("checked"),[t.rawHTML||"li",h({class:l.join(" "),"data-task":n},a&&{"data-task-checked":a}),0]}}},enumerable:!1,configurable:!0}),t.prototype.liftToPrevListItem=function(){return function(e,t){var n=e.selection,a=e.tr,l=e.schema,o=n.$from,r=n.empty,i=l.nodes.listItem,c=o.parent,u=o.node(-1);if(r&&!c.childCount&&u.type===i){if(o.index(-2)>=1)return a.delete(o.start(-1)-1,o.end(-1)),t(a),!0;var s=o.node(-3);if(s.type===i)return a.delete(o.start(-2)-1,o.end(-1)),t(a),!0}return!1}},t.prototype.keymaps=function(){var e=function(e,t){return GY(e.schema.nodes.listItem)(e,t)};return{Backspace:this.liftToPrevListItem(),Enter:e}},t}(Vn),H1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:h({rawHTML:{default:null}},IY()),content:"block+",group:"block",parseDOM:[DY("blockquote")],toDOM:function(e){var t=e.attrs;return["blockquote",RY(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}(Vn),z1={left:Z1,right:X1,up:Q1,down:Y1};function _1(e,t,n){var a=n[0],l=n[1],o=t.resolve(e.before(a-1));return l===a&&!o.nodeBefore}function q1(e){var t,n,a=e.depth;while(a){if(n=e.node(a),"tableBodyCell"===n.type.name)break;if("listItem"===n.type.name){var l=e.node(a-1),o=l.lastChild===n,r="paragraph"!==(null===(t=n.lastChild)||void 0===t?void 0:t.type.name);return!!o&&!r}a-=1}return!1}function $1(e,t,n,a,l){var o=t[0],r=t[1],i=t[2];if("left"===e||"up"===e){if(l&&!_1(n,a,[o,r]))return!1;var c=n.before(i),u=a.resolve(c).nodeBefore;if(u)return!1}return!0}function U1(e,t,n,a,l){if("right"===e||"down"===e){if(l&&!q1(n))return!1;var o=n.after(t),r=a.resolve(o).nodeAfter;if(r)return!1}return!0}function W1(e,t,n,a){var l=t[0],o=t[1],r=l+3,i=o>=r,c=i?l+1:o,u=$1(e,[o,r,c],n,a,i),s=U1(e,c,n,a,i);return u&&s}function J1(e,t,n){var a=n[0],l=n[1],o=t.getRowspanStartInfo(a,l),r="up"===e&&0===a,i="down"===e&&((null===o||void 0===o?void 0:o.count)>1?a+o.count-1:a)===t.totalRowCount-1;return r||i}function K1(e,t,n){var a=e.doc.resolve(t.tableStartOffset-1);return a.nodeBefore?e.setSelection(r["f"].near(a,-1)):lt(e,a,n)}function G1(e,t,n,a){void 0===a&&(a=!1);var l=e.doc.resolve(t.tableEndOffset);return a||!l.nodeAfter?lt(e,l,n):e.setSelection(r["f"].near(l,1))}function X1(e,t){var n=e[0],a=e[1],l=t.totalRowCount,o=t.totalColumnCount,r=a===o-1,i=n===l-1&&r;if(!i){var c=a+1,u=t.getColspanStartInfo(n,a);(null===u||void 0===u?void 0:u.count)>1&&(c+=u.count-1),(r||c===o)&&(n+=1,c=0);var s=t.getCellInfo(n,c).offset;return s+2}return null}function Z1(e,t){var n=e[0],a=e[1],l=t.totalColumnCount,o=0===a,r=0===n&&o;if(!r){a-=1,o&&(n-=1,a=l-1);var i=t.getCellInfo(n,a),c=i.offset,u=i.nodeSize;return c+u-2}return null}function Q1(e,t){var n=e[0],a=e[1];if(n>0){var l=t.getCellInfo(n-1,a),o=l.offset,r=l.nodeSize;return o+r-2}return null}function Y1(e,t){var n=e[0],a=e[1],l=t.totalRowCount;if(n<l-1){var o=n+1,r=t.getRowspanStartInfo(n,a);(null===r||void 0===r?void 0:r.count)>1&&(o+=r.count-1);var i=t.getCellInfo(o,a).offset;return i+2}return null}function e2(e,t,n,a){var l=z1[e],o=l(n,a);if(o){var i="right"===e||"down"===e?1:-1;return t.setSelection(r["f"].near(t.doc.resolve(o),i))}return null}function t2(e,t,n){var a=n[0],l=n[1];if("up"===e||"down"===e)return!1;var o=t.tableStartOffset,r=t.tableEndOffset,i=t.getCellInfo(a,l),c=i.offset,u=i.nodeSize,s="left"===e?o:r,d="left"===e?c-2:c+u+3;return s===d}function n2(e,t,n){var a=e.doc.resolve(t.before(n-3));return e.setSelection(new r["c"](a))}function a2(e,t,n){var a,l,o;return"up"===e?(a=n.startRowIdx,l=0,o=-1):(a=n.endRowIdx,l=t.totalColumnCount-1,o=t.getCellInfo(a,l).nodeSize+1),{targetRowIdx:a,insertColIdx:l,nodeSize:o}}function l2(e,t,n){var a=e.getCellInfo(t,0).offset,l=e.getCellInfo(t,n-1),o=l.offset,r=l.nodeSize;return{from:a,to:o+r}}var o2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({rawHTML:{default:null}},IY()),parseDOM:[DY("table")],toDOM:function(e){var t=e.attrs;return["table",RY(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 a=e.rowCount,l=e.columnCount,o=e.data,r=t.schema,i=t.selection,c=t.tr,u=i.from,s=i.to,d=i.$from,p=u===s;if(p&&!EY(d)){var h=r.nodes,f=h.tableHead,m=h.tableBody,v=null===o||void 0===o?void 0:o.slice(0,l),b=null===o||void 0===o?void 0:o.slice(l,o.length),g=r0(l,r,v),y=i0(a-1,l,r,b),w=r.nodes.table.create(null,[f.create(null,g),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,a=e.tr,l=e0.create(n.$anchor);if(l){var o=l.tableStartOffset,r=l.tableEndOffset,i=o-1,c=at(a.delete(i,r),i);return t(a.setSelection(c)),!0}return!1}}},t.prototype.addColumn=function(e){return function(){return function(t,n){var a=t.selection,l=t.tr,o=t.schema,r=d0(a),i=r.anchor,c=r.head;if(i&&c){for(var u=e0.create(i),s=u.getRectOffsets(i,c),d="left"===e?s.startColIdx:s.endColIdx+1,p=h0(s).columnCount,h=u.totalRowCount,f=0;f<h;f+=1){var m=c0(p,f,o);l.insert(l.mapping.map(u.posAt(f,d)),m)}return n(l),!0}return!1}}},t.prototype.removeColumn=function(){return function(){return function(e,t){var n=e.selection,a=e.tr,l=d0(n),o=l.anchor,r=l.head;if(o&&r){var i=e0.create(o),c=i.getRectOffsets(o,r),u=i.totalColumnCount,s=i.totalRowCount,d=h0(c).columnCount,p=d===u;if(p)return!1;for(var h=c.startColIdx,f=c.endColIdx,m=a.mapping.maps.length,v=0;v<s;v+=1)for(var b=f;b>=h;b-=1){var g=i.getCellInfo(v,b),y=g.offset,w=g.nodeSize,k=a.mapping.slice(m).map(y),x=k+w;a.delete(k,x)}return t(a),!0}return!1}}},t.prototype.addRow=function(e){return function(){return function(t,n){var a=t.selection,l=t.schema,o=t.tr,r=d0(a),i=r.anchor,c=r.head;if(i&&c){var u=e0.create(i),s=u.totalColumnCount,d=u.getRectOffsets(i,c),p=h0(d).rowCount,h=a2(e,u,d),f=h.targetRowIdx,m=h.insertColIdx,v=h.nodeSize,b=0===f;if(!b){for(var g=[],y=o.mapping.map(u.posAt(f,m))+v,w=[],k=0;k<s;k+=1)w=w.concat(c0(1,f,l));for(var x=0;x<p;x+=1)g.push(l.nodes.tableRow.create(null,w));return n(o.insert(y,g)),!0}}return!1}}},t.prototype.removeRow=function(){return function(){return function(e,t){var n=e.selection,a=e.tr,l=d0(n),o=l.anchor,r=l.head;if(o&&r){var i=e0.create(o),c=i.totalRowCount,u=i.totalColumnCount,s=i.getRectOffsets(o,r),d=h0(s).rowCount,p=s.startRowIdx,h=s.endRowIdx,f=0===p,m=d===c-1;if(m||f)return!1;for(var v=h;v>=p;v-=1){var b=l2(i,v,u),g=b.from,y=b.to;a.delete(g-1,y+1)}return t(a),!0}return!1}}},t.prototype.alignColumn=function(){return function(e){return void 0===e&&(e={align:"center"}),function(t,n){var a=e.align,l=t.selection,o=t.tr,r=d0(l),i=r.anchor,c=r.head;if(i&&c){for(var u=e0.create(i),s=u.totalRowCount,d=u.getRectOffsets(i,c),p=d.startColIdx,h=d.endColIdx,f=0;f<s;f+=1)for(var m=p;m<=h;m+=1)if(!u.extendedRowspan(f,m)&&!u.extendedColspan(f,m)){var v=u.getNodeAndPos(f,m),b=v.node,g=v.pos,y=f0(b,{align:a});o.setNodeMarkup(g,null,y)}return n(o),!0}return!1}}},t.prototype.moveToCell=function(e){return function(t,n){var a=t.selection,l=t.tr,o=t.schema,r=d0(a),i=r.anchor,c=r.head;if(i&&c){var u=e0.create(i),s=u.getCellIndex(i),d=void 0;if(d=J1(e,u,s)?G1(l,u,o):e2(e,l,s,u),d)return n(d),!0}return!1}},t.prototype.moveInCell=function(e){var t=this;return function(n,a){var l=n.selection,o=n.tr,r=n.doc,i=n.schema,c=l.$from,u=t.context.view;if(!u.endOfTextblock(e))return!1;var s=OY(c,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}));if(s){var d=OY(c,(function(e){var t=e.type;return"paragraph"===t.name})),p=s.depth;if(d&&W1(e,[p,d.depth],c,r)){var h=d0(l).anchor,f=e0.create(h),m=f.getCellIndex(h),v=void 0;if(t2(e,f,m)?v=n2(o,c,p):J1(e,f,m)?"up"===e?v=K1(o,f,i):"down"===e&&(v=G1(o,f,i)):v=e2(e,o,m,f),v)return a(v),!0}}return!1}},t.prototype.deleteCells=function(){return function(e,t){var n=e.schema,a=e.selection,l=e.tr,o=d0(a),i=o.anchor,c=o.head,u=a instanceof r["h"];if(i&&c&&!u){for(var s=e0.create(i),d=s.getRectOffsets(i,c),p=d.startRowIdx,h=d.startColIdx,f=d.endRowIdx,m=d.endColIdx,v=p;v<=f;v+=1)for(var b=h;b<=m;b+=1)if(!s.extendedRowspan(v,b)&&!s.extendedColspan(v,b)){var g=s.getNodeAndPos(v,b),y=g.node,w=g.pos,k=c0(1,v,n,y.attrs);l.replaceWith(l.mapping.map(w),l.mapping.map(w+y.nodeSize),k)}return t(l),!0}return!1}},t.prototype.exitTable=function(){return function(e,t){var n=e.selection,a=e.tr,l=e.schema,o=n.$from,r=OY(o,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}));if(r){var i=OY(o,(function(e){var t=e.type;return"paragraph"===t.name}));if(i){var c=d0(n).anchor,u=e0.create(c);return t(G1(a,u,l,!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}(Vn),r2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({rawHTML:{default:null}},IY()),parseDOM:[DY("thead")],toDOM:function(e){var t=e.attrs;return["thead",RY(t),0]}}},enumerable:!1,configurable:!0}),t}(Vn),i2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({rawHTML:{default:null}},IY()),parseDOM:[{tag:"tbody",getAttrs:function(e){var t=e.querySelectorAll("tr"),n=t[0].children.length,a=e.getAttribute("data-raw-html");return!!n&&h({},a&&{rawHTML:a})}}],toDOM:function(e){var t=e.attrs;return["tbody",RY(t),0]}}},enumerable:!1,configurable:!0}),t}(Vn),c2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({rawHTML:{default:null}},IY()),parseDOM:[{tag:"tr",getAttrs:function(e){var t=e.children.length,n=e.getAttribute("data-raw-html");return!!t&&h({},n&&{rawHTML:n})}}],toDOM:function(e){var t=e.attrs;return["tr",RY(t),0]}}},enumerable:!1,configurable:!0}),t}(Vn),u2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({align:{default:null},className:{default:null},rawHTML:{default:null},colspan:{default:null},extended:{default:null}},IY()),isolating:!0,parseDOM:[LY("th")],toDOM:function(e){var t=e.attrs,n=AY(t);return["th",h(h({},n),RY(t)),0]}}},enumerable:!1,configurable:!0}),t}(Vn),s2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:[LY("td")],toDOM:function(e){var t=e.attrs,n=AY(t);return["td",n,0]}}},enumerable:!1,configurable:!0}),t}(Vn),d2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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:h({imageUrl:{default:""},altText:{default:null},rawHTML:{default:null}},IY()),group:"inline",selectable:!1,parseDOM:[{tag:"img[src]",getAttrs:function(e){var t=KQ(e,{RETURN_DOM_FRAGMENT:!0}).firstChild,n=t.getAttribute("src")||"",a=t.getAttribute("data-raw-html"),l=t.getAttribute("alt");return h({imageUrl:n,altText:l},a&&{rawHTML:a})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"img",h(h({src:Ne(t.imageUrl)},t.altText&&{alt:t.altText}),RY(t))]}}},enumerable:!1,configurable:!0}),t.prototype.addImage=function(){return function(e){return function(t,n){var a=t.schema,l=t.tr,o=e,r=o.imageUrl,i=o.altText;if(!r)return!1;var c=a.nodes.image.createAndFill(h({imageUrl:r},i&&{altText:i}));return n(l.replaceSelectionWith(c).scrollIntoView()),!0}}},t.prototype.commands=function(){return{addImage:this.addImage()}},t}(Vn),p2=1,h2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"thematicBreak"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:h({rawHTML:{default:null}},IY()),group:"block",parseDOM:[{tag:"hr"}],selectable:!1,toDOM:function(e){var t=e.attrs;return["div",RY(t),[t.rawHTML||"hr"]]}}},enumerable:!1,configurable:!0}),t.prototype.hr=function(){var e=this;return function(){return function(t,n){var a,l=t.selection,o=l.$from,r=l.$to;if(o===r){var i=t.doc,c=t.schema.nodes,u=c.thematicBreak,s=c.paragraph,d=[u.create()],p=o.node(p2),h=i.child(i.childCount-1)===p,f=i.resolve(o.after(p2)),m=(null===(a=o.nodeAfter)||void 0===a?void 0:a.type.name)===e.name;return(h||m)&&d.push(s.create()),n(t.tr.insert(f.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}(Vn),f2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 h({},t&&{rawHTML:t})}}}));return{attrs:h({rawHTML:{default:null}},IY()),parseDOM:e,toDOM:function(e){var t=e.attrs;return[t.rawHTML||"strong",RY(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}(Xa),m2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 h({},t&&{rawHTML:t})}}}));return{attrs:h({rawHTML:{default:null}},IY()),parseDOM:e,toDOM:function(e){var t=e.attrs;return[t.rawHTML||"em",RY(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}(Xa),v2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 h({},t&&{rawHTML:t})}}}));return{attrs:h({rawHTML:{default:null}},IY()),parseDOM:e,toDOM:function(e){var t=e.attrs;return[t.rawHTML||"del",RY(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}(Xa),b2=function(e){function t(t){var n=e.call(this)||this;return n.linkAttributes=t,n}return p(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:h({linkUrl:{default:""},title:{default:null},rawHTML:{default:null}},IY()),inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(e){var t=KQ(e,{RETURN_DOM_FRAGMENT:!0}).firstChild,n=t.getAttribute("href")||"",a=t.getAttribute("title")||"",l=t.getAttribute("data-raw-html");return h({linkUrl:n,title:a},l&&{rawHTML:l})}}],toDOM:function(t){var n=t.attrs;return[n.rawHTML||"a",h(h({href:Ne(n.linkUrl)},e.linkAttributes),RY(n))]}}},enumerable:!1,configurable:!0}),t.prototype.addLink=function(){return function(e){return function(t,n){var a=e,l=a.linkUrl,o=a.linkText,r=void 0===o?"":o,i=t.schema,c=t.tr,u=t.selection,s=u.empty,d=u.from,p=u.to;if(d&&p&&l){var h={linkUrl:l},f=i.mark("link",h);if(s&&r){var m=nt(i,r,f);c.replaceRangeWith(d,p,m)}else c.addMark(d,p,f);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}(Xa),g2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"code"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:h({rawHTML:{default:null}},IY()),parseDOM:[{tag:"code",getAttrs:function(e){var t=e.getAttribute("data-raw-html");return h({},t&&{rawHTML:t})}}],toDOM:function(e){var t=e.attrs;return[t.rawHTML||"code",RY(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}(Xa),y2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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?void 0:e.info)&&Object(c["h"])(t.schema.nodes.customBlock,e)(t,n)}}},t}(Vn),w2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 a=e.selection.$from;return!(!n.endOfTextblock("down")||"frontMatter"!==a.node().type.name)&&Object(c["d"])(e,t)}}},t.prototype.keymaps=function(){return{Enter:this.commands()()}},t}(Vn),k2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 a=e.selection.$from;return!(!n.endOfTextblock("down")||"htmlComment"!==a.node().type.name)&&Object(c["d"])(e,t)}}},t.prototype.keymaps=function(){return{Enter:this.commands()()}},t}(Vn);function x2(e){return new Jn([new A1,new L1,new R1,new j1,new B1,new P1,new V1,new F1,new H1,new o2,new r2,new i2,new c2,new u2,new s2,new d2,new h2,new f2,new m2,new v2,new b2(e),new g2,new y2,new w2,new zn,new k2])}var C2=fn("contents"),T2=function(e){function t(t,n){var a=e.call(this,t)||this,l=n.toDOMAdaptor,o=n.htmlSchemaMap,r=void 0===o?{}:o,i=n.linkAttributes,c=void 0===i?{}:i,u=n.useCommandShortcut,s=void 0===u||u,d=n.wwPlugins,p=void 0===d?[]:d,f=n.wwNodeViews,m=void 0===f?{}:f;return a.editorType="wysiwyg",a.el.classList.add("ww-mode"),a.toDOMAdaptor=l,a.linkAttributes=c,a.extraPlugins=p,a.pluginNodeViews=m,a.specs=a.createSpecs(),a.schema=a.createSchema(r),a.context=a.createContext(),a.keymaps=a.createKeymaps(s),a.view=a.createView(),a.commands=a.createCommands(),a.specs.setContext(h(h({},a.context),{view:a.view})),a.initEvent(),a}return p(t,e),t.prototype.createSpecs=function(){return x2(this.linkAttributes)},t.prototype.createContext=function(){return{schema:this.schema,eventEmitter:this.eventEmitter}},t.prototype.createSchema=function(e){return new a["i"]({nodes:h(h({},this.specs.nodes),e.nodes),marks:h(h({},this.specs.marks),e.marks)})},t.prototype.createPlugins=function(){return f([w0(),S0(this.eventEmitter),E0(),B0(this.eventEmitter)],this.createPluginProps()).concat(this.defaultPlugins)},t.prototype.createPluginNodeViews=function(){var e=this,t=e.eventEmitter,n=e.pluginNodeViews,a={};return n&&Object.keys(n).forEach((function(e){a[e]=function(a,l,o){return n[e](a,l,o,t)}})),a},t.prototype.createView=function(){var e=this,t=this,n=t.toDOMAdaptor,a=t.eventEmitter;return new l["c"](this.el,{state:this.createState(),attributes:{class:C2},nodeViews:h({customBlock:function(e,t,a){return new P0(e,t,a,n)},image:function(e,t,n){return new F0(e,t,n,a)},codeBlock:function(e,t,n){return new _0(e,t,n,a)},widget:Fn},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:c1,transformPasted:function(t){return g1(t,e.schema,EY(e.view.state.selection.$from))},handlePaste:function(e,t,n){return E1(e,n)},handleKeyDown:function(t,n){return e.eventEmitter.emit("keydown",e.editorType,n),!1},handleDOMEvents:{paste:function(t,n){var a=n.clipboardData||window.clipboardData,l=null===a||void 0===a?void 0:a.items;if(l){var o=et(l).some((function(e){return"string"===e.kind&&"text/rtf"===e.type}));if(!o){var r=Bn(l);r&&(n.preventDefault(),jn(e.eventEmitter,r,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,QY())},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 l=this.view.state,o=l.schema,r=l.tr,i=e.split("\n"),c=i.map((function(e){return tt(o,jt(e,o))})),u=new a["j"](a["c"].from(c),1,1),s=re(t)&&re(n)?r.replaceRange(t,n,u):r.replaceSelection(u);this.view.dispatch(s),this.focus()},t.prototype.deleteSelection=function(e,t){var n=this.view.state.tr,a=re(e)&&re(t)?n.deleteRange(e,t):n.deleteSelection();this.view.dispatch(a.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,a=n.doc,l=n.selection,o=l.from,r=l.to;return re(e)&&re(t)&&(o=e,r=t),a.textBetween(o,r,"\n")},t.prototype.setModel=function(e,t){void 0===t&&(t=!1);var n=this.view.state,a=n.tr,l=n.doc;this.view.dispatch(a.replaceWith(0,l.content.size,e)),t&&this.moveCursorToEnd(!0)},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,a=at(n,e,t);this.view.dispatch(n.setSelection(a).scrollIntoView())},t.prototype.addWidget=function(e,t,n){var a=this.view,l=a.dispatch,o=a.state;l(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 a=this.view.state,l=a.tr,o=a.schema,r=jt(n,o);this.view.dispatch(l.replaceWith(e,t,r))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,a=t.selection,l=e?n.resolve(e):a.$from,o=l.marks(),r=l.node(),i=l.start(),c=l.end(),u=r.type.name;if(o.length||"paragraph"===u){var s=o[o.length-1],d=function(e){return!e.length||Ae(e,s)};u=s?s.type.name:"text",r.forEach((function(e,t){var n=e.isText,a=e.nodeSize,o=e.marks,r=l.pos-i;n&&t<=r&&t+a>=r&&d(o)&&(i+=t,c=i+a)}))}return{range:[i,c],type:u}},t}(_n),M2=F,O2=ce;function S2(e){return!M2(e)&&!O2(e)}var E2=S2,N2=E2;function D2(e){return N2(e)&&!1!==e}var A2=D2,L2=A2;function I2(e){return!L2(e)}var R2=I2,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"],B2=function(){function e(){var e=this;this.events=new k0,this.eventTypes=j2.reduce((function(e,t){return h(h({},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),a=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),a.push(t),this.events.set(n.type,a)},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=this.getTypeInfo(e),l=this.events.get(a.type),o=[];return!this.hold&&l&&l.forEach((function(e){var n=e.apply(void 0,t);F(n)||o.push(n)})),o},e.prototype.emitReduce=function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var l=this.events.get(e);return!this.hold&&l&&l.forEach((function(e){var a=e.apply(void 0,f([t],n));R2(a)||(t=a)})),t},e.prototype.getTypeInfo=function(e){var t=e.split(".");return{type:t[0],namespace:t[1]}},e.prototype.hasEventType=function(e){return!F(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,a=this.getTypeInfo(e),l=a.type,o=a.namespace;l&&t?this.removeEventHandlerWithHandler(l,t):l&&!o?this.events.delete(l):!l&&o?this.events.forEach((function(e,t){n.removeEventHandlerWithTypeInfo(t,o)})):l&&o&&this.removeEventHandlerWithTypeInfo(l,o)},e.prototype.removeEventHandlerWithHandler=function(e,t){var n=this.events.get(e);if(n){var a=n.indexOf(t);n.indexOf(t)>=0&&n.splice(a,1)}},e.prototype.removeEventHandlerWithTypeInfo=function(e,t){var n=[],a=this.events.get(e);a&&(a.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}(),P2=function(){function e(e,t,n,a){this.eventEmitter=e,this.mdCommands=t,this.wwCommands=n,this.getEditorType=a,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 V2(e){return"\n"===e[e.length-1]?e.slice(0,e.length-1):e}function F2(e,t){var n=e.schema,a=t.literal,l=a.match(rn);if(l){var o=l[1],r=l[3],i=(o||r).toLowerCase();return"htmlInline"===t.type&&!(!n.marks[i]&&!n.nodes[i])}return!1}function H2(e){var t=e.type;return Ae(["text","strong","emph","strike","image","link","code"],t)}function z2(e){return"softbreak"===(null===e||void 0===e?void 0:e.type)}function _2(e){var t=e.type,n=e.literal,a="htmlInline"===t&&n.match(rn);if(a){var l=a[1],o=a[3],r=l||o;if(r)return Ae(["ul","ol","li"],r.toLowerCase())}return!1}function q2(e){var t=e.literal,n=/data-task/.test(t),a=/data-task-checked/.test(t);return{task:n,checked:a}}function $2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=document.createElement("div");a.innerHTML=KQ(e);var l=a.firstChild;return t.map((function(e){return l.getAttribute(e)||""}))}function U2(e){var t={};return Object.keys(e).forEach((function(n){var a=n.split(", ");a.forEach((function(a){var l=a.toLowerCase();t[l]=e[n]}))})),t}var W2={"b, strong":function(e,t,n){var a=e.schema.marks.strong;n?e.openMark(a.create({rawHTML:n})):e.closeMark(a)},"i, em":function(e,t,n){var a=e.schema.marks.emph;n?e.openMark(a.create({rawHTML:n})):e.closeMark(a)},"s, del":function(e,t,n){var a=e.schema.marks.strike;n?e.openMark(a.create({rawHTML:n})):e.closeMark(a)},code:function(e,t,n){var a=e.schema.marks.code;n?e.openMark(a.create({rawHTML:n})):e.closeMark(a)},a:function(e,t,n){var a=t.literal,l=e.schema.marks.link;if(n){var o=$2(a,"href")[0];e.openMark(l.create({linkUrl:o,rawHTML:n}))}else e.closeMark(l)},img:function(e,t,n){var a=t.literal;if(n){var l=$2(a,"src","alt"),o=l[0],r=l[1],i=e.schema.nodes.image;e.addNode(i,h({rawHTML:n,imageUrl:o},r&&{altText:r}))}},hr:function(e,t,n){e.addNode(e.schema.nodes.thematicBreak,{rawHTML:n})},br:function(e,t){var n=e.schema.nodes.paragraph,a=t.parent,l=t.prev,o=t.next;"paragraph"===(null===a||void 0===a?void 0:a.type)?(z2(l)&&e.openNode(n),z2(o)?e.closeNode():o&&(e.closeNode(),e.openNode(n))):"tableCell"===(null===a||void 0===a?void 0:a.type)&&(l&&(H2(l)||F2(e,l))&&e.closeNode(),o&&(H2(o)||F2(e,o))&&e.openNode(n))},pre:function(e,t,n){var a,l,o=document.createElement("div");o.innerHTML=t.literal;var r=null===(l=null===(a=o.firstChild)||void 0===a?void 0:a.firstChild)||void 0===l?void 0:l.textContent;e.openNode(e.schema.nodes.codeBlock,{rawHTML:n}),e.addText(V2(r)),e.closeNode()},"ul, ol":function(e,t,n){if("tableCell"===t.parent.type){var a=e.schema.nodes,l=a.bulletList,o=a.orderedList,r=a.paragraph,i="ul"===n?l:o;n?(t.prev&&!_2(t.prev)&&e.closeNode(),e.openNode(i,{rawHTML:n})):(e.closeNode(),t.next&&!_2(t.next)&&e.openNode(r))}},li:function(e,t,n){var a;if("tableCell"===(null===(a=t.parent)||void 0===a?void 0:a.type)){var l=e.schema.nodes,o=l.listItem,r=l.paragraph;if(n){var i=q2(t);t.prev&&!_2(t.prev)&&e.closeNode(),e.openNode(o,h({rawHTML:n},i)),t.next&&!_2(t.next)&&e.openNode(r)}else t.prev&&!_2(t.prev)&&e.closeNode(),e.closeNode()}}},J2=U2(W2);function K2(e){return"htmlInline"===e.type&&cn.test(e.literal)}function G2(e){et(e.childNodes).forEach((function(e){if(bn(e)){var t=e.nodeName.toLowerCase();e.setAttribute("data-raw-html",t),e.childNodes&&G2(e)}}))}var X2={text:function(e,t){e.addText(t.literal||"")},paragraph:function(e,t,n,a){var l,o=n.entering;if(o){var r=e.schema.nodes.paragraph;"paragraph"===(null===(l=t.prev)||void 0===l?void 0:l.type)&&(e.openNode(r,a),e.closeNode()),e.openNode(r,a)}else e.closeNode()},heading:function(e,t,n,a){var l=n.entering;if(l){var o=t,r=o.level,i=o.headingType;e.openNode(e.schema.nodes.heading,h({level:r,headingType:i},a))}else e.closeNode()},codeBlock:function(e,t,n){var a=e.schema.nodes.codeBlock,l=t,o=l.info,r=l.literal;e.openNode(a,h({language:o},n)),e.addText(V2(r||"")),e.closeNode()},list:function(e,t,n,a){var l=n.entering;if(l){var o=e.schema.nodes,r=o.bulletList,i=o.orderedList,c=t.listData,u=c.type,s=c.start;"bullet"===u?e.openNode(r,a):e.openNode(i,h({order:s},a))}else e.closeNode()},item:function(e,t,n,a){var l=n.entering,o=e.schema.nodes.listItem,r=t.listData,i=r.task,c=r.checked;if(l){var u=h(h(h({},i&&{task:i}),c&&{checked:c}),a);e.openNode(o,u)}else e.closeNode()},blockQuote:function(e,t,n,a){var l=n.entering;l?e.openNode(e.schema.nodes.blockQuote,a):e.closeNode()},image:function(e,t,n,a){var l=n.entering,o=n.skipChildren,r=e.schema.nodes.image,i=t,c=i.destination,u=i.firstChild;l&&o&&o(),e.addNode(r,h(h({imageUrl:c},u&&{altText:u.literal}),a))},thematicBreak:function(e,t,n,a){e.addNode(e.schema.nodes.thematicBreak,a)},strong:function(e,t,n,a){var l=n.entering,o=e.schema.marks.strong;l?e.openMark(o.create(a)):e.closeMark(o)},emph:function(e,t,n,a){var l=n.entering,o=e.schema.marks.emph;l?e.openMark(o.create(a)):e.closeMark(o)},link:function(e,t,n,a){var l=n.entering,o=e.schema.marks.link,r=t,i=r.destination,c=r.title;if(l){var u=h({linkUrl:i,title:c},a);e.openMark(o.create(u))}else e.closeMark(o)},softbreak:function(e,t){if("paragraph"===t.parent.type){var n=t.prev,a=t.next;n&&!K2(n)&&e.closeNode(),a&&!K2(a)&&e.openNode(e.schema.nodes.paragraph)}},table:function(e,t,n,a){var l=n.entering;l?e.openNode(e.schema.nodes.table,a):e.closeNode()},tableHead:function(e,t,n,a){var l=n.entering;l?e.openNode(e.schema.nodes.tableHead,a):e.closeNode()},tableBody:function(e,t,n,a){var l=n.entering;l?e.openNode(e.schema.nodes.tableBody,a):e.closeNode()},tableRow:function(e,t,n,a){var l=n.entering;l?e.openNode(e.schema.nodes.tableRow,a):e.closeNode()},tableCell:function(e,t,n){var a=n.entering;if(!t.ignored){var l=function(t){return t&&(H2(t)||F2(e,t))};if(a){var o=e.schema.nodes,r=o.tableHeadCell,i=o.tableBodyCell,c=o.paragraph,u=t.parent.parent,s="tableHead"===u.type?r:i,d=u.parent,p=(d.columns[t.startIdx]||{}).align,f=h({},t.attrs);p&&(f.align=p),e.openNode(s,f),l(t.firstChild)&&e.openNode(c)}else l(t.lastChild)&&e.closeNode(),e.closeNode()}},strike:function(e,t,n,a){var l=n.entering,o=e.schema.marks.strike;l?e.openMark(o.create(a)):e.closeMark(o)},code:function(e,t,n,a){var l=e.schema.marks.code;e.openMark(l.create(a)),e.addText(V2(t.literal||"")),e.closeMark(l)},customBlock:function(e,t){var n=e.schema.nodes,a=n.customBlock,l=n.paragraph,o=t,r=o.info,i=o.literal;e.openNode(a,{info:r}),e.addText(V2(i||"")),e.closeNode(),t.next||(e.openNode(l),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,a=n.match(rn),l=a[1],o=a[3],r=(l||o).toLowerCase(),i=e.schema.marks[r],c=KQ(n);if(null===i||void 0===i?void 0:i.spec.attrs.htmlInline)if(l){var u=XQ(c);e.openMark(i.create({htmlAttrs:u}))}else e.closeMark(i);else{var s=J2[r];s&&s(e,t,l)}},htmlBlock:function(e,t){var n=t.literal,a=document.createElement("div"),l=un.test(n);if(l)e.openNode(e.schema.nodes.htmlComment),e.addText(t.literal),e.closeNode();else{var o=n.match(rn),r=o[1],i=o[3],c=(r||i).toLowerCase(),u=e.schema.nodes[c],s=KQ(n);if(null===u||void 0===u?void 0:u.spec.attrs.htmlBlock){var d=XQ(s),p=GQ(t,c);e.addNode(u,{htmlAttrs:d,childrenHTML:p})}else a.innerHTML=s,G2(a),e.convertByDOMParser(a)}},customInline:function(e,t,n){var a=n.entering,l=n.skipChildren,o=t,r=o.info,i=o.firstChild,c=e.schema;if(-1!==r.indexOf("widget")&&a){var u=Bt(t);l(),e.addNode(c.nodes.widget,{info:r},[c.text(Dt(r,u))])}else{var s="$$";a&&(s+=i?r+" ":r),e.addText(s)}}};function Z2(e){var t=Object.keys(e),n=h({},X2),a=new JZ({gfm:!0,nodeId:!0,convertors:e}),l=a.getConvertors();return t.forEach((function(t){var a=X2[t];a&&!Ae(["htmlBlock","htmlInline"],t)&&(n[t]=function(n,o,r){r.origin=function(){return l[t](o,r,l)};var i,c=e[t](o,r);if(c){var u=Array.isArray(c)?c[0]:c,s=u.attributes,d=u.classNames;i={htmlAttrs:s,classNames:d}}a(n,o,r,i)})})),n}function Q2(e,t){return!!(e.isText&&t.isText&&a["d"].sameSet(e.marks,t.marks))&&e.withText(e.text+t.text)}var Y2=function(){function e(e,t){this.schema=e,this.convertors=t,this.stack=[{type:this.schema.topNodeType,attrs:null,content:[]}],this.marks=a["d"].none}return e.prototype.top=function(){return _e(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=_e(t),a=this.schema.text(e,this.marks),l=n&&Q2(n,a);l?t[t.length-1]=l:t.push(a)}},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 a=e.createAndFill(t,n,this.marks);return a?(this.push(a),a):null},e.prototype.openNode=function(e,t){this.stack.push({type:e,attrs:t,content:[]})},e.prototype.closeNode=function(){this.marks.length&&(this.marks=a["d"].none);var e=this.stack.pop(),t=e.type,n=e.attrs,l=e.content;return this.addNode(t,n,l)},e.prototype.convertByDOMParser=function(e){var t=this,n=a["a"].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 a=this.stack.length-1,l=a;l>=0;l-=1){var o=this.stack[l];if(!(null===(n=o.attrs)||void 0===n?void 0:n.rawHTML))break;o.content.length?this.closeNode():this.stack.pop()}},e.prototype.convert=function(e,t){var n=e.walker(),a=n.next(),l=function(){var e=a.node,l=a.entering,r=o.convertors[e.type],i=!1;if(r){var c={entering:l,leaf:!Tt(e),getChildrenText:Mt,options:{gfm:!0,nodeId:!1,tagFilter:!1,softbreak:"\n"},skipChildren:function(){i=!0}};if(o.closeUnmatchedHTMLInline(e,l),r(o,e,c),(null===t||void 0===t?void 0:t.node)===e){var u=o.stack.reduce((function(e,t){return e+t.content.reduce((function(e,t){return e+t.nodeSize}),0)}),0)+1;t.setMappedPos(u)}}i&&(n.resumeAt(e,!1),n.next()),a=n.next()},o=this;while(a)l()},e.prototype.convertNode=function(e,t){return this.convert(e,t),this.stack.length?this.closeNode():null},e}();function e3(e,t,n){var a=n[0],l=n[1];e.write(a),e.convertInline(t),e.write(l)}function t3(e,t,n){var a=t.node,l=t.parent,o=n[0],r=n[1];e.stopNewline=!0,e.write(o),e.convertNode(a),e.write(r),"doc"===(null===l||void 0===l?void 0:l.type.name)&&(e.closeBlock(a),e.stopNewline=!1)}function n3(e,t){var n=e.length,a="",l="";return"left"===t?(a=":",n-=1):"right"===t?(l=":",n-=1):"center"===t&&(a=":",l=":",n-=2),""+a+je("-",Math.max(n,3))+l}var a3={text:function(e,t){var n,a=t.node,l=null!==(n=a.text)&&void 0!==n?n:"";(a.marks||[]).some((function(e){return"link"===e.type.name}))?e.text(Pe(l),!1):e.text(l)},paragraph:function(e,t){var n=t.node,a=t.parent,l=t.index,o=void 0===l?0:l;if(e.stopNewline)e.convertInline(n);else{var r=0===o,i=!r&&a.child(o-1),c=i&&0===i.childCount,u=o<a.childCount-1&&a.child(o+1),s=u&&"paragraph"===u.type.name,d=0===n.childCount;if(d&&c)e.write("<br>\n");else if(!d||c||r)e.convertInline(n),s?e.write("\n"):e.closeBlock(n);else{if("listItem"===(null===a||void 0===a?void 0:a.type.name)){var p=e.getDelim();e.setDelim(""),e.write("<br>"),e.setDelim(p)}e.write("\n")}}},heading:function(e,t,n){var a=t.node,l=n.delim,o=a.attrs.headingType;"atx"===o?(e.write(l+" "),e.convertInline(a),e.closeBlock(a)):(e.convertInline(a),e.ensureNewLine(),e.write(l),e.closeBlock(a))},codeBlock:function(e,t,n){var a=t.node,l=n.delim,o=n.text,r=l,i=r[0],c=r[1];e.write(i),e.ensureNewLine(),e.text(o,!1),e.ensureNewLine(),e.write(c),e.closeBlock(a)},blockQuote:function(e,t,n){var a=t.node,l=t.parent,o=n.delim;(null===l||void 0===l?void 0:l.type.name)===a.type.name&&e.flushClose(1),e.wrapBlock(o,null,a,(function(){return e.convertNode(a)}))},bulletList:function(e,t,n){var a=t.node,l=n.delim;e.convertList(a,je(" ",4),(function(){return l+" "}))},orderedList:function(e,t){var n=t.node,a=n.attrs.order||1;e.convertList(n,je(" ",4),(function(e){var t=String(a+e);return t+". "}))},listItem:function(e,t){var n=t.node,a=n.attrs,l=a.task,o=a.checked;l&&e.write("["+(o?"x":" ")+"] "),e.convertNode(n)},image:function(e,t,n){var a=n.attrs;e.write("+")")},thematicBreak:function(e,t,n){var a=t.node,l=n.delim;e.write(l),e.closeBlock(a)},table:function(e,t){var n=t.node;e.convertNode(n),e.closeBlock(n)},tableHead:function(e,t,n){var a=t.node,l=n.delim,o=a.firstChild;e.convertNode(a);var r=null!==l&&void 0!==l?l:"";!l&&o&&o.forEach((function(e){var t=e.textContent,n=e.attrs,a=n3(t,n.align);r+="| "+a+" "})),e.write(r+"|"),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 a=t.node,l=n.delim,o=void 0===l?"| ":l;e.write(o),e.convertTableCell(a),e.write(" ")},tableBodyCell:function(e,t,n){var a=t.node,l=n.delim,o=void 0===l?"| ":l;e.write(o),e.convertTableCell(a),e.write(" ")},customBlock:function(e,t,n){var a=t.node,l=n.delim,o=n.text,r=l,i=r[0],c=r[1];e.write(i),e.ensureNewLine(),e.text(o,!1),e.ensureNewLine(),e.write(c),e.closeBlock(a)},frontMatter:function(e,t,n){var a=t.node,l=n.text;e.text(l,!1),e.closeBlock(a)},widget:function(e,t,n){var a=n.text;e.write(a)},html:function(e,t,n){var a=t.node,l=n.text;e.write(l),a.attrs.htmlBlock&&e.closeBlock(a)},htmlComment:function(e,t,n){var a=t.node,l=n.text;e.write(l),e.closeBlock(a)}};function l3(e,t){var n=t.state,a=t.nodeInfo,l=t.params,o=l.rawHTML;o?P(e,["heading","codeBlock"])>-1?e3(n,a.node,o):P(e,["image","thematicBreak"])>-1?n.write(o):t3(n,a,o):a3[e](n,a,l)}function o3(e,t){var n=e.text,a=/`+/g,l=0;if(e.isText&&n){var o=a.exec(n);while(o)l=Math.max(l,o[0].length),o=a.exec(n)}for(var r=l>0&&t>0?" `":"`",i=0;i<l;i+=1)r+="`";return l>0&&t<0&&(r+=" "),r}function r3(e){return e?["<"+e+">","</"+e+">"]:null}function i3(e){return e?"<"+e+">":null}function c3(e){return e?"</"+e+">":null}var u3={heading:function(e){var t=e.node,n=t.attrs,a=n.level,l=je("#",a);return"setext"===n.headingType&&(l=1===a?"===":"---"),{delim:l,rawHTML:r3(n.rawHTML)}},codeBlock:function(e){var t=e.node,n=t,a=n.attrs,l=n.textContent;return{delim:["```"+(a.language||""),"```"],rawHTML:r3(a.rawHTML),text:l}},blockQuote:function(e){var t=e.node;return{delim:"> ",rawHTML:r3(t.attrs.rawHTML)}},bulletList:function(e,t){var n=e.node,a=t.inTable,l=n.attrs.rawHTML;return a&&(l=l||"ul"),{delim:"*",rawHTML:r3(l)}},orderedList:function(e,t){var n=e.node,a=t.inTable,l=n.attrs.rawHTML;return a&&(l=l||"ol"),{rawHTML:r3(l)}},listItem:function(e,t){var n=e.node,a=t.inTable,l=n.attrs,o=l.task,r=l.checked,i=n.attrs.rawHTML;a&&(i=i||"li");var c=o?' class="task-list-item'+(r?" checked":"")+'"':"",u=o?" data-task"+(r?" data-task-checked":""):"";return{rawHTML:i?["<"+i+c+u+">","</"+i+">"]:null}},table:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableHead:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableBody:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableRow:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableHeadCell:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableBodyCell:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},image:function(e){var t=e.node,n=t.attrs,a=n.rawHTML,l=n.altText,o=n.imageUrl.replace(/&/g,"&"),r=l?' alt="'+Ne(l)+'"':"";return{rawHTML:a?"<"+a+' src="'+Ne(o)+'"'+r+">":null,attrs:{altText:Pe(l||""),imageUrl:o}}},thematicBreak:function(e){var t=e.node;return{delim:"***",rawHTML:i3(t.attrs.rawHTML)}},customBlock:function(e){var t=e.node,n=t,a=n.attrs,l=n.textContent;return{delim:["$$"+a.info,"$$"],text:l}},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,n){var a=e.node,l=t.entering,o=a.attrs.rawHTML,r="**";return n||(r=l?"<strong>":"</strong>"),{delim:r,rawHTML:l?i3(o):c3(o)}},emph:function(e,t,n){var a=e.node,l=t.entering,o=a.attrs.rawHTML,r="*";return n||(r=l?"<em>":"</em>"),{delim:r,rawHTML:l?i3(o):c3(o)}},strike:function(e,t,n){var a=e.node,l=t.entering,o=a.attrs.rawHTML,r="~~";return n||(r=l?"<del>":"</del>"),{delim:r,rawHTML:l?i3(o):c3(o)}},link:function(e,t){var n=e.node,a=t.entering,l=n.attrs,o=l.title,r=l.rawHTML,i=l.linkUrl.replace(/&/g,"&"),c=o?' title="'+Ne(o)+'"':"";return a?{delim:"[",rawHTML:r?"<"+r+' href="'+Ne(i)+'"'+c+">":null}:{delim:"]("+i+(o?" "+Fe(Pe(o)):"")+")",rawHTML:c3(r)}},code:function(e,t){var n=e.node,a=e.parent,l=e.index,o=void 0===l?0:l,r=t.entering,i=r?o3(a.child(o),-1):o3(a.child(o-1),1),c=r?i3(n.attrs.rawHTML):c3(n.attrs.rawHTML);return{delim:i,rawHTML:c}},htmlComment:function(e){var t=e.node;return{text:t.textContent}},html:function(e,t){var n=e.node,a=t.entering,l=n.type.name,o=n.attrs.htmlAttrs,r="<"+l,i="</"+l+">";return Object.keys(o).forEach((function(e){r+=" "+e+'="'+o[e].replace(/"/g,"'")+'"'})),r+=">",n.attrs.htmlInline?{rawHTML:a?r:i}:{text:""+r+n.attrs.childrenHTML+i}}},s3={strong:{mixable:!0,removedEnclosingWhitespace:!0},emph:{mixable:!0,removedEnclosingWhitespace:!0},strike:{mixable:!0,removedEnclosingWhitespace:!0},code:{escape:!1},link:null,html:null};function d3(e){var t={},n=Object.keys(a3);return n.forEach((function(n){t[n]=function(t,a){var l=a3[n];if(l){var o=e[n],r=o?o(a,{inTable:t.inTable}):{};l3(n,{state:t,nodeInfo:a,params:r})}}})),t}function p3(e){var t={},n=Object.keys(s3);return n.forEach((function(n){t[n]=function(t,a,l){var o=s3[n],r=e[n],i=r&&t&&!F(a),c=i?r(t,{entering:a},l):{};return h(h({},c),o)}})),t}function h3(e){var t=Object.keys(e);t.forEach((function(t){var n=u3[t],a=e[t];u3[t]=n?function(e,t){return t.origin=function(){return n(e,t)},a(e,t)}:a,delete e[t]}));var n=d3(u3),a=p3(u3);return{nodeTypeConvertors:n,markTypeConvertors:a}}var f3=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.isBetweenSpaces=function(e,t){var n,a,l=e.content,o=0===t||Ze(null!==(n=l.child(t-1).text)&&void 0!==n?n:dn),r=t>=l.childCount-1||Xe(null!==(a=l.child(t+1).text)&&void 0!==a?a:dn);return o&&r},e.prototype.markText=function(e,t,n,a){var l=this.getMarkConvertor(e);if(l){var o=this.isBetweenSpaces(n,t?a:a-1),r=l({node:e,parent:n,index:a},t,o),i=r.delim,c=r.rawHTML;return c||i}return""},e.prototype.setDelim=function(e){this.delim=e},e.prototype.getDelim=function(){return this.delim},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 a=1;a<e;a+=1)this.result+=t+"\n"}this.closed=!1}},e.prototype.wrapBlock=function(e,t,n,a){var l=this.getDelim();this.write(t||e),this.setDelim(this.getDelim()+e),a(),this.setDelim(l),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"),a=0;a<n.length;a+=1)this.write(),this.result+=t?Ve(n[a]):n[a],a!==n.length-1&&(this.result+="\n")},e.prototype.convertBlock=function(e,t,n){var a=e.type.name,l=this.nodeTypeConvertors[a],o={node:e,parent:t,index:n};e.attrs.htmlBlock?this.nodeTypeConvertors.html(this,o):l&&l(this,o)},e.prototype.convertInline=function(e){var t=this,n=[],a="",l=function(l,o,r){var i=l?l.marks:[],c=a;a="";var u=l&&l.isText&&i.some((function(e){var n=t.getMarkConvertor(e),a=n&&n();return a&&a.removedEnclosingWhitespace}));if(u&&l&&l.text){var s=/^(\s*)(.*?)(\s*)$/m.exec(l.text),d=s[1],p=s[2],h=s[3];c+=d,a=h,(d||h)&&(l=p?l.withText(p):null,l||(i=n))}for(var f=i.length&&_e(i),m=f&&t.getMarkConvertor(f),v=m&&m(),b=v&&!1===v.escape,g=i.length-(b?1:0),y=0;y<g;y+=1){p=i[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(p.eq(k)){y>w?i=i.slice(0,w).concat(p).concat(i.slice(w,y)).concat(i.slice(y+1,g)):w>y&&(i=i.slice(0,y).concat(i.slice(y+1,w)).concat(p).concat(i.slice(w,g)));break}}}var x=0;while(x<Math.min(n.length,g)&&i[x].eq(n[x]))x+=1;while(x<n.length){var C=n.pop();C&&t.text(t.markText(C,!1,e,r),!1)}if(c&&t.text(c),l){while(n.length<g){p=i[n.length];n.push(p),t.text(t.markText(p,!0,e,r),!1)}b&&l.isText?t.text(t.markText(f,!0,e,r)+l.text+t.markText(f,!1,e,r+1),!1):t.convertBlock(l,e,r)}};e.forEach(l),l(null,null,e.childCount)},e.prototype.convertList=function(e,t,n){var a,l=this;this.closed&&this.closed.type===e.type?this.flushClose(3):this.tightList&&this.flushClose(1);var o=null===(a=e.attrs.tight)||void 0===a||a,r=this.tightList;this.tightList=o,e.forEach((function(a,r,i){i&&o&&l.flushClose(1),l.wrapBlock(t,n(i),e,(function(){return l.convertBlock(a,e,i)}))})),this.tightList=r},e.prototype.convertTableCell=function(e){var t=this;this.stopNewline=!0,this.inTable=!0,e.forEach((function(n,a,l){if(Ae(["bulletList","orderedList"],n.type.name))t.convertBlock(n,e,l),t.closed=!1;else if(t.convertInline(n),l<e.childCount-1){var o=e.child(l+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(a,l,o){if(n.convertBlock(a,e,o),(null===t||void 0===t?void 0:t.node)===a){var r=n.result.split("\n");t.setMappedPos([r.length,_e(r).length+1])}})),this.result},e}(),m3=function(){function e(e,t,n,a){var l=this;this.setMappedPos=function(e){l.mappedPosWhenConverting=e},this.schema=e,this.eventEmitter=a,this.focusedNode=null,this.mappedPosWhenConverting=null,this.toWwConvertors=Z2(n),this.toMdConvertors=h3(t||{}),this.eventEmitter.listen("setFocusedNode",(function(e){return l.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 Y2(this.schema,this.toWwConvertors);return t.convertNode(e,this.getInfoForPosSync())},e.prototype.toMarkdownText=function(e){var t=new f3(this.toMdConvertors),n=t.convertNode(e,this.getInfoForPosSync());return n=this.eventEmitter.emitReduce("beforeConvertWysiwygToMarkdown",n),n},e}();function v3(e,t,n){var o={Plugin:r["d"],PluginKey:r["e"],Selection:r["f"],TextSelection:r["h"]},i={Decoration:l["a"],DecorationSet:l["b"]},c={Fragment:a["c"]},s={InputRule:u["a"],inputRules:u["b"],undoInputRule:u["c"]},d={eventEmitter:t,usageStatistics:n,pmState:o,pmView:i,pmModel:c,pmRules:s,i18n:T0};if(C(e)){var p=e[0],h=e[1],f=void 0===h?{}:h;return p(d,f)}return e(d)}function b3(e,t,n){return t.listen("mixinTableOffsetMapPrototype",n0),(null!==e&&void 0!==e?e:[]).reduce((function(e,a){var l=v3(a,t,n);if(!l)throw new Error("The return value of the executed plugin is empty.");var o=l.markdownParsers,r=l.toHTMLRenderers,i=l.toMarkdownRenderers,c=l.markdownPlugins,u=l.wysiwygPlugins,s=l.wysiwygNodeViews,d=l.markdownCommands,p=l.wysiwygCommands,f=l.toolbarItems;return r&&(e.toHTMLRenderers=Ue(e.toHTMLRenderers,r)),i&&(e.toMarkdownRenderers=Ue(e.toMarkdownRenderers,i)),c&&(e.mdPlugins=e.mdPlugins.concat(c)),u&&(e.wwPlugins=e.wwPlugins.concat(u)),s&&(e.wwNodeViews=h(h({},e.wwNodeViews),s)),d&&(e.mdCommands=h(h({},e.mdCommands),d)),p&&(e.wwCommands=h(h({},e.wwCommands),p)),f&&(e.toolbarItems=e.toolbarItems.concat(f)),o&&(e.markdownParsers=h(h({},e.markdownParsers),o)),e}),{toHTMLRenderers:{},toMarkdownRenderers:{},mdPlugins:[],wwPlugins:[],wwNodeViews:{},mdCommands:{},wwCommands:{},toolbarItems:[],markdownParsers:{}})}var g3="data-task",y3="data-task-disabled",w3="checked";function k3(e){["htmlBlock","htmlInline"].forEach((function(t){e[t]&&Object.keys(e[t]).forEach((function(e){return JQ(e)}))}))}var x3=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 B2;var n=Re(this.options.linkAttributes),a=b3(this.options.plugins,this.eventEmitter,this.options.usageStatistics)||{},l=a.toHTMLRenderers,o=a.markdownParsers,r=this.options,i=r.customHTMLRenderer,c=r.extendedAutolinks,u=r.referenceDefinition,s=r.frontMatter,d=r.customHTMLSanitizer,p={linkAttributes:n,customHTMLRenderer:h(h({},l),i),extendedAutolinks:c,referenceDefinition:u,frontMatter:s,sanitizer:d||KQ};k3(p.customHTMLRenderer),this.options.events&&b(this.options.events,(function(e,n){t.on(n,e)}));var f=this.options,m=f.el,v=f.initialValue,g=f.theme,w=m.innerHTML;"light"!==g&&m.classList.add(fn(g)),m.innerHTML="",this.toastMark=new FZ("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:c,referenceDefinition:u,disallowDeepHeading:!0,frontMatter:s,customParser:o}),this.preview=new MY(this.eventEmitter,h(h({},p),{isViewer:!0})),Ao(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(y3)&&t.hasAttribute(g3)&&pn(n,e.offsetX,e.offsetY)&&(Cn(t,w3),this.eventEmitter.emit("change",{source:"viewer",date:e}))},e.prototype.setMarkdown=function(e){var t=this.toastMark.getLineTexts(),n=t.length,a=_e(t),l=[n,a.length+1],o=this.toastMark.editMarkdown([1,1],l,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(){To(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 C3(e){return e instanceof a["f"]}function T3(e){var t=["document","blockQuote","bulletList","orderedList","listItem","paragraph","heading","emph","strong","strike","link","image","table","tableHead","tableBody","tableRow","tableHeadCell","tableBodyCell"];return Ae(t,e)}function M3(e){var t=e.attrs,n=e.type,a=n.name,l={type:a,wysiwygNode:!0,literal:!T3(a)&&C3(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}},r=o[a],i=h(h({},l),r),c=e.attrs,u=c.htmlAttrs,s=c.childrenHTML;return u?h(h({},i),{attrs:u,childrenHTML:s}):i}var O3={openTag:function(e,t){var n=e,a=n.tagName,l=n.classNames,o=n.attributes,r=document.createElement(a),i={};l&&(r.className=l.join(" ")),o&&(i=h(h({},i),o)),En(i,r),t.push(r)},closeTag:function(e,t){if(t.length>1){var n=t.pop();_e(t).appendChild(n)}},html:function(e,t){_e(t).insertAdjacentHTML("beforeend",e.content)},text:function(e,t){var n=document.createTextNode(e.content);_e(t).appendChild(n)}},S3=function(){function e(e,t){var n=aY(e,t),a=h(h({},t.htmlBlock),t.htmlInline);this.customConvertorKeys=Object.keys(t).concat(Object.keys(a)),this.renderer=new JZ({gfm:!0,convertors:h(h({},n),a)}),this.convertors=this.renderer.getConvertors()}return e.prototype.generateTokens=function(e){var t=M3(e),n={entering:!0,leaf:!!C3(e)&&e.isLeaf,options:this.renderer.getOptions(),getChildrenText:function(){return C3(e)?e.textContent:""},skipChildren:function(){return!1}},a=this.convertors[e.type.name],l=a(t,n,this.convertors),o=C(l)?l:[l];return(T3(e.type.name)||e.attrs.htmlInline)&&(n.entering=!1,o.push({type:"text",content:C3(e)?e.textContent:""}),o=o.concat(a(t,n,this.convertors))),o},e.prototype.toDOMNode=function(e){var t=this.generateTokens(e),n=[];return t.forEach((function(e){return O3[e.type](e,n)})),n[0]},e.prototype.getToDOMNode=function(e){return Ae(this.customConvertorKeys,e)?this.toDOMNode.bind(this):null},e}(),E3=100,N3=15,D3=null,A3=null;function L3(e,t){var n=t.syncScrollTop,a=t.releaseEventBlock;A3&&clearTimeout(A3),n(e),A3=setTimeout((function(){a()}),N3)}function I3(e,t,n){var a=t-e,l=Date.now(),o=function(){var r,i=Date.now(),c=(i-l)/E3;D3&&clearTimeout(D3),c<1?(r=e+a*Math.cos((1-c)*Math.PI/2),L3(Math.ceil(r),n),D3=setTimeout(o,1)):(L3(t,n),D3=null)};o()}var R3=18,j3=function(){function e(e,t,n){this.latestEditorScrollTop=null,this.latestPreviewScrollTop=null,this.blockedScroll=null,this.active=!0,this.timer=null;var a=t.previewContent,l=t.el;this.previewRoot=a,this.previewEl=l,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),a=n.index;return this.toastMark.findFirstNodeAtLine(a+1)},e.prototype.getScrollTopByCaretPos=function(){var e=this.mdEditor.getSelection(),t=this.toastMark.findFirstNodeAtLine(e[0][0]),n=this.previewEl.clientHeight,a=fY(this.previewRoot,t).el,l=sY(a,this.previewRoot)||a.offsetTop,o=a.clientHeight,r=l+o-.5*n;this.latestEditorScrollTop=null;var i=a.getBoundingClientRect().top-this.previewEl.getBoundingClientRect().top;return i<n?null:r},e.prototype.syncPreviewScrollTop=function(e){void 0===e&&(e=!1);var t=this,n=t.editorView,a=t.previewEl,l=t.previewRoot,o=n.dom.getBoundingClientRect(),r=o.left,i=o.top,c=n.posAtCoords({left:r,top:i}),u=n.state.doc,s=this.getMdNodeAtPos(u,c);if(s&&!dt(s)){var d=a.scrollTop,p=n.dom,h=p.scrollTop,f=p.scrollHeight,m=p.clientHeight,v=p.children,b=f-h<=m+R3,g=b?a.scrollHeight:0;if(h&&!b){if(e){var y=this.getScrollTopByCaretPos();if(!y)return;g=y}else{var w=fY(this.previewRoot,s),k=w.el,x=w.mdNode,C=iY(u,x,v),T=C.height,M=C.rect,O=sY(k,l)||k.offsetTop,S=k.clientHeight,E=i>M.top?Math.min((i-M.top)/T,1):0;g=O+S*E}g=this.getResolvedScrollTop("editor",h,g,d),this.latestEditorScrollTop=h}g!==d&&this.run("editor",g,d)}},e.prototype.syncEditorScrollTop=function(e){var t=this,n=t.toastMark,a=t.editorView,l=t.previewRoot,o=t.previewEl,r=a.dom,i=a.state,c=o.scrollTop,u=o.clientHeight,s=o.scrollHeight,d=s-c<=u,p=r.scrollTop,h=d?r.scrollHeight:0;if(c&&e&&!d){if(e=uY(e,l),!e.getAttribute("data-nodeid"))return;var f=r.children,m=Number(e.getAttribute("data-nodeid")),v=fY(this.previewRoot,n.findNodeById(m)),b=v.mdNode,g=v.el,y=it(b);h=f[y-1].offsetTop;var w=iY(i.doc,b,f).height,k=xY(g,l,m),x=k.nodeHeight,C=k.offsetTop;h+=hY(c,C,x,w),h=this.getResolvedScrollTop("preview",c,h,p),this.latestPreviewScrollTop=c}h!==p&&this.run("preview",h,p)},e.prototype.getResolvedScrollTop=function(e,t,n,a){var l="editor"===e?this.latestEditorScrollTop:this.latestPreviewScrollTop;return null===l?n:l<t?Math.max(n,a):Math.min(n,a)},e.prototype.run=function(e,t,n){var a,l=this;"editor"===e?(a=this.previewEl,this.blockedScroll="preview"):(a=this.editorView.dom,this.blockedScroll="editor");var o={syncScrollTop:function(e){return a.scrollTop=e},releaseEventBlock:function(){return l.blockedScroll=null}};I3(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}(),B3={getPopupInitialValues:function(e,t){var n=t.popupName;return"link"===n?{linkText:e.getSelectedText()}:{}}};function P3(e){e.eventEmitter.listen("query",(function(t,n){return B3[t](e,n)}))}var V3=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,a=n.customHTMLRenderer,l=n.extendedAutolinks,o=n.referenceDefinition,r=n.frontMatter,i=n.customMarkdownRenderer,c=n.useCommandShortcut,u=n.initialEditType,s=n.widgetRules,d=n.customHTMLSanitizer;this.mode=u||"markdown",this.mdPreviewStyle=this.options.previewStyle,this.i18n=T0,this.i18n.setCode(this.options.language),this.eventEmitter=new B2,It(s);var p=Re(this.options.linkAttributes);this.pluginInfo=b3(this.options.plugins,this.eventEmitter,this.options.usageStatistics);var f=this.pluginInfo,m=f.toHTMLRenderers,v=f.toMarkdownRenderers,g=f.mdPlugins,w=f.wwPlugins,k=f.wwNodeViews,x=f.mdCommands,C=f.wwCommands,T=f.markdownParsers,M={linkAttributes:p,customHTMLRenderer:Ue(m,a),extendedAutolinks:l,referenceDefinition:o,frontMatter:r,sanitizer:d||KQ},O=new S3(p,M.customHTMLRenderer),S=eY(M.customHTMLRenderer,M.sanitizer,O);this.toastMark=new FZ("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:l,referenceDefinition:o,disallowDeepHeading:!0,frontMatter:r,customParser:T}),this.mdEditor=new fo(this.eventEmitter,{toastMark:this.toastMark,useCommandShortcut:c,mdPlugins:g}),this.preview=new MY(this.eventEmitter,h(h({},M),{isViewer:!1,highlight:this.options.previewHighlight})),this.wwEditor=new T2(this.eventEmitter,{toDOMAdaptor:O,useCommandShortcut:c,htmlSchemaMap:S,linkAttributes:p,wwPlugins:w,wwNodeViews:k}),this.convertor=new m3(this.wwEditor.getSchema(),h(h({},v),i),aY(p,M.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 P2(this.eventEmitter,this.mdEditor.commands,this.wwEditor.commands,(function(){return t.mode})),this.options.usageStatistics&&De(),this.scrollSync=new j3(this.mdEditor,this.preview,this.eventEmitter),this.addInitEvent(),this.addInitCommand(x,C),P3(this),this.options.hooks&&b(this.options.hooks,(function(e,n){return t.addHook(n,e)})),this.options.events&&b(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)}})),Rn(this.eventEmitter)},e.prototype.addInitCommand=function(e,t){var n=this,a=function(e,t){Object.keys(t).forEach((function(a){n.addCommand(e,a,t[a])}))};this.addCommand("markdown","toggleScrollSync",(function(e){return n.eventEmitter.emit("toggleScrollSync",e.active),!0})),a("markdown",e),a("wysiwyg",t)},e.prototype.getCurrentModeEditor=function(){return this.isMarkdownMode()?this.mdEditor:this.wwEditor},e.factory=function(t){return t.viewer?new x3(t):new e(t)},e.setLanguage=function(e,t){T0.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 a=this,l=function(t){void 0===t&&(t={});var l=("markdown"===e?a.mdEditor:a.wwEditor).view;n(t,l.state,l.dispatch,l)};this.commandManager.addCommand(e,t,l)},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(),a=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(a,t)}},e.prototype.setHTML=function(e,t){void 0===e&&(e=""),void 0===t&&(t=!0);var n=document.createElement("div");n.innerHTML=Nn(e);var l=a["a"].fromSchema(this.wwEditor.schema).parse(n);this.isMarkdownMode()?this.mdEditor.setMarkdown(this.convertor.toMarkdownText(l),t):this.wwEditor.setModel(l,t)},e.prototype.getMarkdown=function(){return this.isMarkdownMode()?this.mdEditor.getMarkdown():this.convertor.toMarkdownText(this.wwEditor.getModel())},e.prototype.getHTML=function(){var e=this;this.eventEmitter.holdEventInvoke((function(){if(e.isMarkdownMode()){var t=e.toastMark.getRootNode(),n=e.convertor.toWysiwygModel(t);e.wwEditor.setModel(n)}}));var t=this.wwEditor.view.dom.innerHTML;if(this.placeholder){var n=new RegExp('<span class="placeholder[^>]+>'+this.placeholder+"</span>","i");return t.replace(n,"")}return t},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"):le(t,"auto-height"),this.setMinHeight(this.getMinHeight())),R(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("."+fn("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(),a=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(a)}else{a=this.wwEditor.getModel();this.mdEditor.setMarkdown(this.convertor.toMarkdownText(a),!t)}if(this.eventEmitter.emit("removePopupWidget"),this.eventEmitter.emit("changeMode",e),!t){var l=this.convertor.getMappedPos();this.focus(),this.isWysiwygMode()&&re(l)?this.wwEditor.setSelection(l):Array.isArray(l)&&this.mdEditor.setSelection(l)}}},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.placeholder=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.prototype.convertPosToMatchEditorMode=function(e,t,n){var a,l;void 0===t&&(t=e),void 0===n&&(n=this.mode);var o=this.mdEditor.view.state.doc,r=Array.isArray(e),i=Array.isArray(t),c=e,u=t;if(r!==i)throw new Error("Types of arguments must be same");return"markdown"!==n||r||i?"wysiwyg"===n&&r&&i&&(l=Yn(o,e,t),c=l[0],u=l[1]):(a=Zn(o,e,t),c=a[0],u=a[1]),[c,u]},e}();function F3(e){for(var t,n,a=arguments,l=1,o="",r="",i=[0],c=function(e){1===l&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?i.push(e?a[e]:o):3===l&&(e||o)?(i[1]=e?a[e]:o,l=2):2===l&&"..."===o&&e?i[2]=Ke(i[2]||{},a[e]):2===l&&o&&!e?(i[2]=i[2]||{})[o]=!0:l>=5&&(5===l?((i[2]=i[2]||{})[n]=e?o?o+a[e]:a[e]:o,l=6):(e||o)&&(i[2][n]+=e?o+a[e]:o)),o=""},u=0;u<e.length;u++){u&&(1===l&&c(),c(u));for(let a=0;a<e[u].length;a++)t=e[u][a],1===l?"<"===t?(c(),i=[i,"",null],l=3):o+=t:4===l?"--"===o&&">"===t?(l=1,o=""):o=t+o[0]:r?t===r?r="":o+=t:'"'===t||"'"===t?r=t:">"===t?(c(),l=1):l&&("="===t?(l=5,n=o,o=""):"/"===t&&(l<5||">"===e[u][a+1])?(c(),3===l&&(i=i[0]),l=i,(i=i[0]).push(this.apply(null,l.slice(1))),l=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(c(),l=2):o+=t),3===l&&"!--"===o&&(l=4,i=i[0])}return c(),i.length>2?i.slice(1):i[1]}function H3(e){return"boolean"===typeof e||e instanceof Boolean}var z3=H3,_3=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}(),q3=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 _3(this)},e.removalNodes=[],e}();function $3(e){return new q3("TEXT_NODE",{nodeValue:e},[])}function U3(e,t){var n=e;z3(e)||null==e?n=null:(k(e)||re(e))&&(n=$3(String(e))),n&&t.push(n)}function W3(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var l=[];return n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){U3(e,l)})):U3(e,l)})),new q3(e,t||{},l)}var J3=F3.bind(W3);function K3(e){return e===Object(e)}var G3=K3;function X3(e){var t;return"TEXT_NODE"===e.type?t=document.createTextNode(e.props.nodeValue):(t=document.createElement(e.type),e4(t,{},e.props)),t}function Z3(e,t){e.node?t.removeChild(e.node):Z3(e.firstChild,t)}function Q3(e,t,n){Object.keys(t).forEach((function(a){if(/^on/.test(a)){if(!n[a]||t[a]!==n[a]){var l=a.slice(2).toLowerCase();e.removeEventListener(l,t[a])}}else"children"===a||n[a]||vn(e)||e.removeAttribute(a)})),e4(e,t,n,(function(e){return!ze(t[e],n[e])}))}var Y3=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function e4(e,t,n,a){Object.keys(n).forEach((function(l){if(!a||a(l))if(/^on/.test(l)){var o=l.slice(2).toLowerCase();e.addEventListener(o,n[l])}else"nodeValue"===l?e[l]=n[l]:"style"===l&&G3(n[l])?t4(e,t[l],n[l]):"children"!==l&&(!1===n[l]?e.removeAttribute(l):e.setAttribute(l,n[l]))}))}function t4(e,t,n){t&&Object.keys(t).forEach((function(t){e.style[t]=""})),Object.keys(n).forEach((function(t){var a=n[t];e.style[t]=re(a)&&!Y3.test(t)?a+"px":a}))}function n4(e){if(q3.removalNodes.forEach((function(e){return l4(e)})),e){var t=void 0,n=e.walker();while(t=n.walk())if(e=t.vnode,t.entering)l4(e);else if($n(e.type)){var a=e.component;if(!e.old&&a.mounted&&a.mounted(),e.old&&a.updated){var l=a.prevProps||{};a.updated(l)}}}}function a4(e){var t=e.parent;while(!t.node)t=t.parent;return t.node}function l4(e){if(e&&e.parent){if(e.node){var t=a4(e);"A"===e.effect?t.appendChild(e.node):"U"===e.effect&&Q3(e.node,e.old.props,e.props)}if("D"===e.effect){var n=void 0,a=e.walker();while(n=a.walk())if(e=n.vnode,!n.entering)if($n(e.type)){var l=e.component;l.beforeDestroy&&l.beforeDestroy()}else{t=a4(e);Z3(e,t)}}e.ref&&(e.component?e.ref(e.component):e.node&&e.ref(e.node))}}function o4(e,t){var n=t.props,a=t.component;return a?(a.prevProps=a.props,a.props=t.props,a):new e(n)}function r4(e){var t=e;while(e&&!e.skip){if($n(e.type)){var n=o4(e.type,e);n.vnode=e,e.component=n,e.props.children=e.children=[n.render()],c4(e)}else e.node||(e.node=X3(e)),c4(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 i4(e,t){return e&&t&&t.type===e.type&&(!t.key||t.key===e.key)}function c4(e){var t=e.children,n=e.old?e.old.firstChild:null,a=null;t.forEach((function(t,l){var o=i4(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&&(q3.removalNodes.push(n),n.effect="D"),n&&(n=n.next),0===l?e.firstChild=t:t&&(a.next=t),a=t}));var l=_e(t);if(!t.length)while(n)q3.removalNodes.push(n),n.effect="D",n=n.next;while(n&&l)n&&l.old!==n&&(q3.removalNodes.push(n),n.effect="D",n=n.next)}function u4(e){e.effect="D",q3.removalNodes=[e],n4(),q3.removalNodes=[]}function s4(e){var t=e.vnode;t.effect="U",t.old=t,t.next&&(t.next.skip=!0),q3.removalNodes=[],r4(t),n4(t),t.next&&(t.next.skip=!1)}function d4(e,t){var n=new q3(e.tagName.toLowerCase(),{},[t]);return n.node=e,q3.removalNodes=[],r4(n),n4(n),function(){return u4(n.firstChild)}}var p4,h4=function(){function e(e){this.props=e,this.state={},this.refs={}}return e.prototype.setState=function(e){var t=h(h({},this.state),e);ze(this.state,t)||(this.state=t,s4(this))},e}(),f4=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hide:!1},n}return p(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 J3(p4||(p4=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 "])),fn("mode-switch"),this.state.hide?"none":"block","markdown"===t?" active":"",(function(){n.emit("needChangeMode","markdown")}),T0.get("Markdown"),"wysiwyg"===t?" active":"",(function(){n.emit("needChangeMode","wysiwyg")}),T0.get("WYSIWYG"))},t}(h4);function m4(e,t){var n,a;function l(){a=Array.prototype.slice.call(arguments),window.clearTimeout(n),n=window.setTimeout((function(){e.apply(null,a)}),t)}return t=t||0,l}var v4=m4,b4=v4;function g4(e,t){var n,a,l,o,r=!0,i=function(t){e.apply(null,t),n=null};function c(){if(o=Array.prototype.slice.call(arguments),r)return i(o),void(r=!1);l=Number(new Date),n=n||l,a(o),l-n>=t&&i(o)}function u(){r=!0,n=null}return t=t||0,a=b4(i,t),c.reset=u,c}var y4=g4,w4=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,a){return e[0]===t&&(n=a,!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),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(t,n){var a=e(this.__entries__,t);~a?this.__entries__[a][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,a=e(n,t);~a&&n.splice(a,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,a=this.__entries__;n<a.length;n++){var l=a[n];e.call(t,l[1],l[0])}},t}()}(),k4="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,x4=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")()}(),C4=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(x4):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),T4=2;function M4(e,t){var n=!1,a=!1,l=0;function o(){n&&(n=!1,e()),a&&i()}function r(){C4(o)}function i(){var e=Date.now();if(n){if(e-l<T4)return;a=!0}else n=!0,a=!1,setTimeout(r,t);l=e}return i}var O4=20,S4=["top","right","bottom","left","width","height","size","weight"],E4="undefined"!==typeof MutationObserver,N4=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=M4(this.refresh.bind(this),O4)}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(){k4&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),E4?(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(){k4&&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,a=S4.some((function(e){return!!~n.indexOf(e)}));a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),D4=function(e,t){for(var n=0,a=Object.keys(t);n<a.length;n++){var l=a[n];Object.defineProperty(e,l,{value:t[l],enumerable:!1,writable:!1,configurable:!0})}return e},A4=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||x4},L4=_4(0,0,0,0);function I4(e){return parseFloat(e)||0}function R4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var a=e["border-"+n+"-width"];return t+I4(a)}),0)}function j4(e){for(var t=["top","right","bottom","left"],n={},a=0,l=t;a<l.length;a++){var o=l[a],r=e["padding-"+o];n[o]=I4(r)}return n}function B4(e){var t=e.getBBox();return _4(0,0,t.width,t.height)}function P4(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return L4;var a=A4(e).getComputedStyle(e),l=j4(a),o=l.left+l.right,r=l.top+l.bottom,i=I4(a.width),c=I4(a.height);if("border-box"===a.boxSizing&&(Math.round(i+o)!==t&&(i-=R4(a,"left","right")+o),Math.round(c+r)!==n&&(c-=R4(a,"top","bottom")+r)),!F4(e)){var u=Math.round(i+o)-t,s=Math.round(c+r)-n;1!==Math.abs(u)&&(i-=u),1!==Math.abs(s)&&(c-=s)}return _4(l.left,l.top,i,c)}var V4=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof A4(e).SVGGraphicsElement}:function(e){return e instanceof A4(e).SVGElement&&"function"===typeof e.getBBox}}();function F4(e){return e===A4(e).document.documentElement}function H4(e){return k4?V4(e)?B4(e):P4(e):L4}function z4(e){var t=e.x,n=e.y,a=e.width,l=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(o.prototype);return D4(r,{x:t,y:n,width:a,height:l,top:n,right:t+a,bottom:l+n,left:t}),r}function _4(e,t,n,a){return{x:e,y:t,width:n,height:a}}var q4=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_4(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=H4(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}(),$4=function(){function e(e,t){var n=z4(t);D4(this,{target:e,contentRect:n})}return e}(),U4=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new w4,"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 A4(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new q4(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 A4(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 $4(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}(),W4="undefined"!==typeof WeakMap?new WeakMap:new w4,J4=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=N4.getInstance(),a=new U4(t,n,this);W4.set(this,a)}return e}();["observe","unobserve","disconnect"].forEach((function(e){J4.prototype[e]=function(){var t;return(t=W4.get(this))[e].apply(t,arguments)}}));var K4,G4,X4,Z4,Q4,Y4,e5,t5,n5,a5,l5,o5,r5,i5,c5,u5,s5=function(){return"undefined"!==typeof x4.ResizeObserver?x4.ResizeObserver:J4}(),d5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.execCommand=function(e){var t=On(e.target,"li");this.props.execCommand("heading",{level:Number(t.getAttribute("data-level"))})},t.prototype.render=function(){var e=this;return J3(G4||(G4=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)}),T0.get("Headings"),[1,2,3,4,5,6].map((function(e){return J3(K4||(K4=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,T0.get("Heading"),e)})),T0.get("Paragraph"))},t}(h4),p5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.toggleTab=function(e,t){this.props.onClick(e,t)},t.prototype.render=function(){var e=this;return J3(Z4||(Z4=m(['\n <div class="','" aria-role="tabpanel">\n ',"\n </div>\n "],['\n <div class="','" aria-role="tabpanel">\n ',"\n </div>\n "])),fn("tabs"),this.props.tabs.map((function(t){var n=t.name,a=t.text,l=e.props.activeTab===n;return J3(X4||(X4=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 "])),l?" active":"",(function(t){return e.toggleTab(t,n)}),T0.get(a),l?"true":"false",l?"0":"-1",T0.get(a))})))},t}(h4),h5="ui",f5=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="",le(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 p(t,e),t.prototype.emitAddImageBlob=function(){var e=this,t=this.refs.file.files,n=this.refs.altText,a=" wrong";if(null===t||void 0===t?void 0:t.length){a="";var l=t.item(0),o=function(t,a){return e.props.execCommand("addImage",{imageUrl:t,altText:a||n.value})};this.props.eventEmitter.emit("addImageBlobHook",l,o,h5)}this.setState({fileNameElClassName:a})},t.prototype.emitAddImage=function(){var e=this.refs.url,t=this.refs.altText,n=e.value,a=t.value||"image";le(e,"wrong"),n.length?n&&this.props.execCommand("addImage",{imageUrl:n,altText:a}):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,a=t.file,l=t.fileNameElClassName;return J3(Q4||(Q4=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 "])),T0.get("Insert image"),p5,this.tabs,n,this.toggleTab,"url"===n?"block":"none",T0.get("Image URL"),(function(t){return e.refs.url=t}),"file"===n?"block":"none",T0.get("Select image file"),fn("file-name"),a?" has-file":l,this.showFileSelectBox,this.preventSelectStart,a?a.name:T0.get("No file"),fn("file-select-button"),this.showFileSelectBox,T0.get("Choose a file"),this.changeFile,(function(t){return e.refs.file=t}),T0.get("Description"),(function(t){return e.refs.altText=t}),fn("button-container"),fn("close-button"),this.props.hidePopup,T0.get("Cancel"),fn("ok-button"),this.execCommand,T0.get("OK"))},t}(h4),m5=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(le(e,"wrong"),le(n,"wrong"),e.value.length<1)Q(e,"wrong");else{var a=F(t.props.initialValues.linkUrl);a&&n.value.length<1?Q(n,"wrong"):t.props.execCommand("addLink",{linkUrl:e.value,linkText:n.value})}},t}return p(t,e),t.prototype.initialize=function(){var e=this.props.initialValues,t=e.linkUrl,n=e.linkText,a=this.refs.url,l=this.refs.text;le(a,"wrong"),le(l,"wrong","disabled"),l.removeAttribute("disabled"),t&&(Q(l,"disabled"),l.setAttribute("disabled","disabled")),a.value=t||"",l.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 J3(Y4||(Y4=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 "])),T0.get("Insert link"),T0.get("URL"),(function(t){return e.refs.url=t}),T0.get("Link text"),(function(t){return e.refs.text=t}),fn("button-container"),fn("close-button"),this.props.hidePopup,T0.get("Cancel"),fn("ok-button"),this.execCommand,T0.get("OK"))},t}(h4),v5=20,b5=20,g5=5,y5=14,w5=5,k5=9,x5=1,C5=1,T5=1,M5=function(e){function t(t){var n=e.call(this,t)||this;return n.extendSelectionRange=function(e){var t=e.pageX,a=e.pageY,l=t-n.offsetRect.left,o=a-n.offsetRect.top,r=n.getSelectionRangeByOffset(l,o);n.setState(h({},r))},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 p(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)*v5,height:(t+1)*b5}},t.prototype.getRangeByOffset=function(e,t){return{colIdx:Math.floor(e/v5),rowIdx:Math.floor(t/b5)}},t.prototype.getTableRange=function(){var e=this.state,t=e.colIdx,n=e.rowIdx,a=Math.max(t,w5),l=Math.max(n,g5);return t>=w5&&a<k5&&(a+=1),n>=g5&&l<y5&&(l+=1),{colIdx:a+1,rowIdx:l+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-T5,height:n-T5,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,x5),y5),n.colIdx=Math.min(Math.max(n.colIdx,C5),k5),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,a=[],l=0;l<n;l+=1){for(var o=[],r=0;r<t;r+=1){var i=fn("table-cell")+(l>0?"":" header");o.push(J3(e5||(e5=m(['<div class="','"></div>'],['<div class="','"></div>'])),i))}a.push(J3(t5||(t5=m(['<div class="','">',"</div>"],['<div class="','">',"</div>"])),fn("table-row"),o))}return J3(n5||(n5=m(['<div class="','">',"</div>"],['<div class="','">',"</div>"])),fn("table"),a)},t.prototype.render=function(){var e=this,t=this.getTableRange(),n=this.getSelectionAreaBound();return J3(a5||(a5=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 "])),T0.get("Insert table"),fn("table-selection"),(function(t){return e.refs.tableEl=t}),this.extendSelectionRange,this.execCommand,this.createTableArea(t),fn("table-selection-layer"),n,fn("table-description"),this.getDescription())},t}(h4),O5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 J3(l5||(l5=m(["<div ref=","></div>"],["<div ref=","></div>"])),(function(t){return e.refs.el=t}))},t}(h4);function S5(e){return k(e)?N5(e):e}function E5(){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 a=function(n){return t.addEventListener("change",(function(t){var a=t.target.checked;a?Q(e,"active"):le(e,"active"),n("toggleScrollSync",{active:a})}))};return e.appendChild(t),e.appendChild(n),{name:"scrollSync",el:e,onMounted:a}}function N5(e){var t;switch(e){case"heading":t={name:"heading",className:"heading",tooltip:T0.get("Headings"),state:"heading"};break;case"bold":t={name:"bold",className:"bold",command:"bold",tooltip:T0.get("Bold"),state:"strong"};break;case"italic":t={name:"italic",className:"italic",command:"italic",tooltip:T0.get("Italic"),state:"emph"};break;case"strike":t={name:"strike",className:"strike",command:"strike",tooltip:T0.get("Strike"),state:"strike"};break;case"hr":t={name:"hr",className:"hrline",command:"hr",tooltip:T0.get("Line"),state:"thematicBreak"};break;case"quote":t={name:"quote",className:"quote",command:"blockQuote",tooltip:T0.get("Blockquote"),state:"blockQuote"};break;case"ul":t={name:"ul",className:"bullet-list",command:"bulletList",tooltip:T0.get("Unordered list"),state:"bulletList"};break;case"ol":t={name:"ol",className:"ordered-list",command:"orderedList",tooltip:T0.get("Ordered list"),state:"orderedList"};break;case"task":t={name:"task",className:"task-list",command:"taskList",tooltip:T0.get("Task"),state:"taskList"};break;case"table":t={name:"table",className:"table",tooltip:T0.get("Insert table"),state:"table"};break;case"image":t={name:"image",className:"image",tooltip:T0.get("Insert image")};break;case"link":t={name:"link",className:"link",tooltip:T0.get("Insert link")};break;case"code":t={name:"code",className:"code",command:"code",tooltip:T0.get("Code"),state:"code"};break;case"codeblock":t={name:"codeblock",className:"codeblock",command:"codeBlock",tooltip:T0.get("Insert CodeBlock"),state:"codeBlock"};break;case"indent":t={name:"indent",className:"indent",command:"indent",tooltip:T0.get("Indent"),state:"indent"};break;case"outdent":t={name:"outdent",className:"outdent",command:"outdent",tooltip:T0.get("Outdent"),state:"outdent"};break;case"scrollSync":t=E5();break;case"more":t={name:"more",className:"more",tooltip:T0.get("More")};break}return"scrollSync"!==t.name&&(t.className+=" "+fn("toolbar-icons")),t}function D5(e,t){var n=t.el,a=t.pos,l=t.popup,o=t.initialValues;switch(e){case"heading":return{render:function(e){return J3(o5||(o5=m(["<"," ..."," />"],["<"," ..."," />"])),d5,e)},className:fn("popup-add-heading"),fromEl:n,pos:a};case"link":return{render:function(e){return J3(r5||(r5=m(["<"," ..."," />"],["<"," ..."," />"])),m5,e)},className:fn("popup-add-link"),fromEl:n,pos:a,initialValues:o};case"image":return{render:function(e){return J3(i5||(i5=m(["<"," ..."," />"],["<"," ..."," />"])),f5,e)},className:fn("popup-add-image"),fromEl:n,pos:a};case"table":return{render:function(e){return J3(c5||(c5=m(["<"," ..."," />"],["<"," ..."," />"])),M5,e)},className:fn("popup-add-table"),fromEl:n,pos:a};case"customPopupBody":return l?h({render:function(e){return J3(u5||(u5=m(["<"," ..."," body="," />"],["<"," ..."," body="," />"])),O5,e,l.body)},fromEl:n,pos:a},l):null;default:return null}}function A5(e){e.hidden=e.length===e.filter((function(e){return e.hidden})).length}function L5(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(S5(e))})));var a=e[(e.length||1)-1];return a&&A5(a),e}),[])}function I5(e,t){e.forEach((function(e){e.forEach((function(e){return e.hidden="scrollSync"===e.name&&t})),A5(e)}))}var R5,j5,B5=20,P5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleMousedown=function(e){On(e.target,"."+fn("popup"))||On(e.target,t.props.info.fromEl)||t.props.hidePopup()},t}return p(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,a=t.info;if(n&&a.pos&&e.show!==n){var l=h({},a.pos),o=this.refs.el.offsetWidth,r=On(this.refs.el,"."+fn("toolbar")),i=r.offsetWidth;l.left+o>=i&&(l.left=i-o-B5),ze(this.state.popupPos,l)||this.setState({popupPos:l})}},t.prototype.render=function(){var e=this,t=this.props,n=t.info,a=t.show,l=t.hidePopup,o=t.eventEmitter,r=t.execCommand,i=n||{},c=i.className,u=void 0===c?"":c,s=i.style,d=i.render,p=i.initialValues,f=void 0===p?{}:p,v=h(h({display:a?"block":"none"},s),this.state.popupPos);return J3(R5||(R5=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 "])),fn("popup"),u,v,(function(t){return e.refs.el=t}),fn("popup-body"),d&&d({eventEmitter:o,show:a,hidePopup:l,execCommand:r,initialValues:f}))},t}(h4),V5=6;function F5(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 a=n.getBound(e),l=a.left+V5+"px",o=a.top+V5+"px";R(n.props.tooltipRef.current,{display:"block",left:l,top:o}),n.props.tooltipRef.current.querySelector(".text").textContent=t}},n.hideTooltip=function(){R(n.props.tooltipRef.current,"display","none")},n.state={active:!1,disabled:e.disabled},n.addEvent(),n}return p(n,t),n.prototype.addEvent=function(){var e=this,t=this.props,n=t.item,a=t.eventEmitter;n.state&&a.listen("changeToolbarState",(function(t){var a,l=t.toolbarState,o=null!==(a=l[n.state])&&void 0!==a?a:{},r=o.active,i=o.disabled;e.setState({active:!!r,disabled:null!==i&&void 0!==i?i:e.props.disabled})}))},n.prototype.getBound=function(e){var t=Sn(e,On(e,"."+fn("toolbar"))),n=t.offsetLeft,a=t.offsetTop;return{left:n,top:e.offsetHeight+a}},n.prototype.render=function(){return J3(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}(h4)}var H5,z5,_5,q5,$5,U5,W5,J5,K5,G5,X5,Z5,Q5,Y5,e6=80,t6=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,a=e.execCommand,l=e.setPopupInfo,o=e.getBound,r=e.eventEmitter,i=n.command,c=n.name,u=n.popup;if(i)a(i);else{var s=u?"customPopupBody":c,d=r.emit("query","getPopupInitialValues",{popupName:s})[0],p=D5(s,{el:t.refs.el,pos:o(t.refs.el),popup:u,initialValues:d});p&&l(p)}},t}return p(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,Mn(this.refs.el)+(n.hidden?e6:0))},t.prototype.render=function(){var e=this,t=this.props,n=t.hideTooltip,a=t.disabled,l=t.item,o=t.active,r=h({display:l.hidden?"none":null},l.style),i=(l.className||"")+(o?" active":"");return J3(H5||(H5=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}),r,i,this.execCommand,this.showTooltip,n,!!a,l.text||l.tooltip||"",l.text||"")},t}(h4),n6=F5(t6),a6=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=D5("customPopupBody",{el:t.refs.el,pos:t.props.getBound(t.refs.el),popup:t.props.item.popup});e&&t.props.setPopupInfo(e)},t}return p(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,Mn(this.refs.el)),n.onMounted&&n.onMounted(this.props.execCommand)},t.prototype.updated=function(e){var t,n=this.props,a=n.item,l=n.active,o=n.disabled;e.active===l&&e.disabled===o||null===(t=a.onUpdated)||void 0===t||t.call(a,{active:l,disabled:o})},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,a=t.item,l={display:a.hidden?"none":"inline-block"},o=function(e){return n?null:e};return J3(z5||(z5=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}),l,fn("toolbar-item-wrapper"),o(this.showPopup),o(this.showTooltip),o(this.props.hideTooltip))},t}(h4),l6=F5(a6),o6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.group,a=t.hiddenDivider,l=n.hidden?{display:"none"}:null,o=a?{display:"none"}:null;return J3(q5||(q5=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 "])),fn("toolbar-group"),l,n.map((function(t){var n=t.el?l6:n6;return J3(_5||(_5=m(["<"," key="," ..."," item="," />"],["<"," key="," ..."," item="," />"])),n,t.name,e.props,t)})),fn("toolbar-divider"),o)},t}(h4),r6=4,i6=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClickDocument=function(e){var t=e.target;On(t,"."+fn("dropdown-toolbar"))||On(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 p(t,e),t.prototype.getBound=function(){var e=this.props.getBound(this.refs.el);return e.top+=r6,h(h({},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,a=t.dropdownPos,l=this.props,o=l.disabled,r=l.item,i=l.items,c=l.hideTooltip,u=i.filter((function(e){return!e.hidden})),s=u.length?null:{display:"none"},d=n?null:{display:"none"};return J3(U5||(U5=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 "])),fn("toolbar-group"),s,(function(t){return e.refs.el=t}),r.className,(function(){return e.setState({showDropdown:!0})}),this.showTooltip,c,o,fn("dropdown-toolbar"),h(h({},d),a),(function(t){return e.refs.dropdownEl=t}),u.length?u.map((function(t,n){var a;return J3($5||($5=m(["\n <","\n group=","\n hiddenDivider=","\n ...","\n />\n "],["\n <","\n group=","\n hiddenDivider=","\n ...","\n />\n "])),o6,t,n===u.length-1||(null===(a=u[n+1])||void 0===a?void 0:a.hidden),e.props)})):null)},t}(h4),c6=F5(i6),u6=50,s6=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleTab=function(e,t){var a=n.props.eventEmitter;if(n.state.activeTab!==t){var l="write"===t?"changePreviewTabWrite":"changePreviewTabPreview";a.emit(l),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 a=n.refs.el.querySelector("."+fn("toolbar-group")+" ."+e);if(a){var l=Sn(a,On(a,"."+fn("toolbar"))),o=l.offsetLeft,r=l.offsetTop,i=D5(e,{el:a,pos:{left:o,top:a.offsetHeight+r},initialValues:t});i&&n.setPopupInfo(i)}},n.hidePopup=function(){n.state.showPopup&&n.setState({showPopup:!1})},n.execCommand=function(e,t){var a=n.props.eventEmitter;a.emit("command",e,t),n.hidePopup()},n.tabs=[{name:"write",text:"Write"},{name:"preview",text:"Preview"}],n.itemWidthMap={},n.initialItems=L5(t.toolbarItems||[],n.hiddenScrollSync()),n.state={items:n.initialItems,dropdownItems:[],showPopup:!1,popupInfo:{},activeTab:"write"},n.tooltipRef={current:null},n.resizeObserver=new s5((function(){return n.handleResize()})),n.addEvent(),n}return p(t,e),t.prototype.insertToolbarItem=function(e,t){var n=e.groupIndex,a=e.itemIndex,l=this.initialItems[n];t=S5(t),l?l.splice(a,0,t):this.initialItems.push([t]),this.setState(this.classifyToolbarItems())},t.prototype.removeToolbarItem=function(e){var t=this;M(this.initialItems,(function(n){var a=!1;return M(n,(function(l,o){return l.name!==e||(a=!0,n.splice(o,1),t.setState(t.classifyToolbarItems()),!1)})),!a}))},t.prototype.addEvent=function(){var e=this,t=this.props.eventEmitter;this.handleResize=y4((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="'+fn("tooltip")+'" style="display:none">\n <div class="arrow"></div>\n <span class="text"></span>\n </div>';this.tooltipRef.current=Tn(e,this.refs.el)},t.prototype.hiddenScrollSync=function(){return"wysiwyg"===this.props.editorType||"tab"===this.props.previewStyle},t.prototype.movePrevItemToDropdownToolbar=function(e,t,n,a){var l=function(e){var t=e.pop();t&&a.push(t)};if(e>1)l(n);else{var o=_e(t);o&&l(o)}},t.prototype.classifyToolbarItems=function(){var e=this,t=0,n=this.refs.el.clientWidth,a=this.refs.el.querySelector("."+fn("toolbar-divider")),l=a?Mn(a):0,o=[],r=[],i=!1;return this.initialItems.forEach((function(a,c){var u=[],s=[];a.forEach((function(a,l){a.hidden||(t+=e.itemWidthMap[a.name],t>n-u6?(i||(e.movePrevItemToDropdownToolbar(l,o,u,s),i=!0),s.push(a)):u.push(a))})),u.length&&(A5(u),o.push(u)),s.length&&(A5(s),r.push(s)),c<e.state.items.length-1&&(t+=l)})),{items:o,dropdownItems:r}},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,a=t.previewStyle,l=t.eventEmitter,o=a!==e.previewStyle,r=n!==e.editorType;if(o||r){I5(this.initialItems,this.hiddenScrollSync());var i=this.classifyToolbarItems();(o||"tab"===a&&"markdown"===n)&&(l.emit("changePreviewTabWrite"),i.activeTab="write"),this.setState(i)}},t.prototype.beforeDestroy=function(){window.removeEventListener("resize",this.handleResize),this.resizeObserver.disconnect(),kn(this.tooltipRef.current)},t.prototype.render=function(){var e=this,t=this.props,n=t.previewStyle,a=t.eventEmitter,l=t.editorType,o=this.state,r=o.popupInfo,i=o.showPopup,c=o.activeTab,u=o.items,s=o.dropdownItems,d={eventEmitter:a,tooltipRef:this.tooltipRef,disabled:"markdown"===l&&"tab"===n&&"preview"===c,execCommand:this.execCommand,setPopupInfo:this.setPopupInfo},p="tab"===n?{borderTopLeftRadius:0}:null;return J3(J5||(J5=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 "])),fn("toolbar"),fn("md-tab-container"),"wysiwyg"===l||"vertical"===n?"none":"block",p5,this.tabs,c,this.toggleTab,fn("defaultUI-toolbar"),(function(t){return e.refs.el=t}),p,u.map((function(t,n){var a;return J3(W5||(W5=m(["\n <","\n group=","\n hiddenDivider=","\n setItemWidth=","\n ...","\n />\n "],["\n <","\n group=","\n hiddenDivider=","\n setItemWidth=","\n ...","\n />\n "])),o6,t,n===u.length-1||(null===(a=u[n+1])||void 0===a?void 0:a.hidden),e.setItemWidth,d)})),c6,S5("more"),s,d,P5,r,i,a,this.hidePopup,this.execCommand)},t}(h4),d6=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClickDocument=function(e){On(e.target,"."+fn("context-menu"))||n.setState({pos:null})},n.state={pos:null,menuGroups:[]},n.addEvent(),n}return p(t,e),t.prototype.addEvent=function(){var e=this;this.props.eventEmitter.listen("contextmenu",(function(t){var n=t.pos,a=t.menuGroups;e.setState({pos:n,menuGroups:a})}))},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,a=t.menuGroups;return n?a.reduce((function(t,n){var a=[];return n.forEach((function(t){var n=t.label,l=t.className,o=void 0!==l&&l,r=t.disabled,i=t.onClick,c=function(){r||(i(),e.setState({pos:null}))};a.push(J3(K5||(K5=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,r?" disabled":"",o,n))})),t.push(J3(G5||(G5=m(['<ul class="menu-group">\n ',"\n </ul>"],['<ul class="menu-group">\n ',"\n </ul>"])),a)),t}),[]):[]},t.prototype.render=function(){var e=h({display:this.state.pos?"block":"none"},this.state.pos);return J3(X5||(X5=m(['<div class="','" style=',' aria-role="menu">\n ',"\n </div>"],['<div class="','" style=',' aria-role="menu">\n ',"\n </div>"])),fn("context-menu"),e,this.getMenuGroupElements())},t}(h4),p6=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 a=t.editorType,l=t.previewStyle;return n.state={editorType:a,previewStyle:l,hide:!1},n.addEvent(),n}return p(t,e),t.prototype.mounted=function(){var e=this.props.slots,t=e.wwEditor,n=e.mdEditor,a=e.mdPreview;this.refs.wwContainer.appendChild(t),this.refs.mdContainer.insertAdjacentElement("afterbegin",n),this.refs.mdContainer.appendChild(a)},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,a=t.hideModeSwitch,l=t.toolbarItems,o=t.theme,r=this.state,i=r.hide,c=r.previewStyle,u=r.editorType,s=i?" hidden":"",d=fn("markdown"===u?"md-mode":"ww-mode"),p=fn("md")+"-"+c+"-style",h=fn(["light"!==o,o+" "]);return J3(Q5||(Q5=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 "])),h,fn("defaultUI"),s,(function(t){return e.refs.el=t}),s6,(function(t){return e.toolbar=t}),n,c,l,u,fn("main"),d,(function(t){return e.refs.editorSection=t}),fn("main-container"),fn("md-container"),p,(function(t){return e.refs.mdContainer=t}),fn("md-splitter"),fn("ww-container"),(function(t){return e.refs.wwContainer=t}),!a&&J3(Z5||(Z5=m(["<"," eventEmitter="," editorType="," />"],["<"," eventEmitter="," editorType="," />"])),f4,n,u),d6,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}(h4),h6=function(e){function t(t){var n,a,l=e.call(this,t)||this,o=d4(l.options.el,J3(Y5||(Y5=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 "])),p6,(function(e){return a=e}),l.eventEmitter,l.getEditorElements(),l.options.hideModeSwitch,l.options.toolbarItems,l.options.previewStyle,l.options.initialEditType,l.options.theme));return l.setMinHeight(l.options.minHeight),l.setHeight(l.options.height),l.defaultUI={insertToolbarItem:a.insertToolbarItem.bind(a),removeToolbarItem:a.removeToolbarItem.bind(a),destroy:o},null===(n=l.pluginInfo.toolbarItems)||void 0===n||n.forEach((function(e){var t=e.groupIndex,n=e.itemIndex,a=e.item;l.defaultUI.insertToolbarItem({groupIndex:t,itemIndex:n},a)})),l.eventEmitter.emit("loadUI",l),l}return p(t,e),t.factory=function(e){return e.viewer?new x3(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}(V3);V3.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"))},5979:function(e,t,n){},"5aa5":function(e,t,n){"use strict";n("70c6")},"5b81":function(e,t,n){"use strict";var a=n("23e7"),l=n("c65b"),o=n("e330"),r=n("1d80"),i=n("1626"),c=n("44e7"),u=n("577e"),s=n("dc4a"),d=n("90d8"),p=n("0cb2"),h=n("b622"),f=n("c430"),m=h("replace"),v=TypeError,b=o("".indexOf),g=o("".replace),y=o("".slice),w=Math.max,k=function(e,t,n){return n>e.length?-1:""===t?n:b(e,t,n)};a({target:"String",proto:!0},{replaceAll:function(e,t){var n,a,o,h,x,C,T,M,O,S=r(this),E=0,N=0,D="";if(null!=e){if(n=c(e),n&&(a=u(r(d(e))),!~b(a,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(o=s(e,m),o)return l(o,e,S,t);if(f&&n)return g(u(S),e,t)}h=u(S),x=u(e),C=i(t),C||(t=u(t)),T=x.length,M=w(1,T),E=k(h,x,0);while(-1!==E)O=C?u(t(x,E,h)):p(x,h,E,[],void 0,t),D+=y(h,N,E)+O,N=E+T,E=k(h,x,E+M);return N<h.length&&(D+=y(h,N)),D}})},"5d09":function(e,t,n){"use strict";n("44fe")},"6ef4":function(e,t,n){"use strict";n("9fff")},"70c6":function(e,t,n){},7902:function(e,t,n){"use strict";n.d(t,"i",(function(){return w})),n.d(t,"f",(function(){return C})),n.d(t,"d",(function(){return O})),n.d(t,"g",(function(){return N})),n.d(t,"k",(function(){return L})),n.d(t,"j",(function(){return j})),n.d(t,"a",(function(){return V})),n.d(t,"m",(function(){return te})),n.d(t,"b",(function(){return oe})),n.d(t,"c",(function(){return de})),n.d(t,"l",(function(){return fe})),n.d(t,"e",(function(){return De}));var a=n("7a23"),l=n("267e"),o=n("58f4");const r={class:"citylist"},i=["onClick"],c={class:"citylist"},u=["onClick"],s={class:"citylist"},d=["onClick"],p={class:"citylist"},h=["onClick"];Boolean,l["a"],n("3d78");var f=n("6b0d"),m=n.n(f);const v={class:"alllist"};Boolean,Boolean,Boolean,l["a"],n("2fc6");var b=n("92c2");Boolean,Boolean,l["a"],n("6ef4");var g={__name:"index",props:{placeholder:{default:"请填写手机号",type:String},modelValue:{default:"",type:String},width:{default:l["a"],type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e=>{t("update:modelValue",e)};return(t,l)=>{const o=Object(a["resolveComponent"])("el-input");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(o,Object(a["mergeProps"])({placeholder:e.placeholder},t.$attrs,{modelValue:e.modelValue,"onUpdate:modelValue":l[0]||(l[0]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),onInput:n}),null,16,["placeholder","modelValue"])],4)}}};const y=g;var w=y,k={__name:"index",props:{placeholder:{default:"请输入身份证号",type:String},modelValue:{default:"",type:String},width:{default:l["a"],type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e=>{t("update:modelValue",e)};return(t,l)=>{const o=Object(a["resolveComponent"])("el-input");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(o,Object(a["mergeProps"])({placeholder:e.placeholder},t.$attrs,{modelValue:e.modelValue,"onUpdate:modelValue":l[0]||(l[0]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),onInput:n}),null,16,["placeholder","modelValue"])],4)}}};const x=k;var C=x,T={__name:"index",props:{placeholder:{default:"请填写邮箱",type:String},email:{default:"",type:String},width:{default:l["a"],type:String}},emits:["update:email"],setup(e,{emit:t}){const n=e=>{t("update:email",e)},l=Object(a["ref"])([]),o=(e,t)=>{let n=JSON.parse(JSON.stringify(l.value));if(e.indexOf("@")>-1)return n.length=0,t(n),!1;for(let a in n)n[a].value=e+""+l.value[a].value;t(n)},r=()=>[{value:"@qq.com"},{value:"@mosty.com"},{value:"@163.com"},{value:"@outlook.com"},{value:"@sohu.com"}],i=e=>{t("update:email",e.value)};return Object(a["onMounted"])(()=>{l.value=r()}),(t,l)=>{const r=Object(a["resolveComponent"])("el-autocomplete");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box zj-email-wrap",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(r,Object(a["mergeProps"])({modelValue:e.email,"onUpdate:modelValue":l[0]||(l[0]=e=>Object(a["isRef"])(email)?email.value=e:null)},t.$attrs,{placeholder:e.placeholder,"fetch-suggestions":o,"trigger-on-focus":!1,class:"inline-input",onSelect:i,onInput:n}),null,16,["modelValue","placeholder"])],4)}}};n("d2bf");const M=m()(T,[["__scopeId","data-v-6f0b0c6b"]]);var O=M,S={__name:"index",props:{placeholder:{default:"请填写手机号",type:String},modelValue:{default:"",type:String},width:{default:l["a"],type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e=>{t("update:modelValue",e)};return(t,l)=>{const o=Object(a["resolveComponent"])("el-input");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(o,Object(a["mergeProps"])({placeholder:e.placeholder},t.$attrs,{modelValue:e.modelValue,"onUpdate:modelValue":l[0]||(l[0]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),onInput:n}),null,16,["placeholder","modelValue"])],4)}}};const E=S;var N=E,D={__name:"index",props:{sex:{type:String},disabled:{type:Boolean,default:!1},width:{default:l["a"],type:String}},emits:["update:sex"],setup(e,{emit:t}){const{proxy:n}=Object(a["getCurrentInstance"])(),{D_BZ_XB:l}=n.$dict("D_BZ_XB"),o=e=>{t("update:sex",e)};return(t,n)=>{const r=Object(a["resolveComponent"])("el-option"),i=Object(a["resolveComponent"])("el-select");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(i,{disabled:e.disabled,modelValue:e.sex,"onUpdate:modelValue":n[0]||(n[0]=e=>Object(a["isRef"])(sex)?sex.value=e:null),placeholder:"请选择性别",onChange:o},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(Object(a["unref"])(l),e=>(Object(a["openBlock"])(),Object(a["createBlock"])(r,{key:e,label:e.zdmc,value:e.dm},null,8,["label","value"]))),128))]),_:1},8,["disabled","modelValue"])],4)}}};n("383f6");const A=m()(D,[["__scopeId","data-v-6eb4a0c9"]]);var L=A,I={__name:"index",props:{placeholder:{default:"请选择",type:String},disabled:{default:!1,type:Boolean},modelValue:{default:"",type:String},dictEnum:{default:Array,type:String},width:{default:"100%",type:String}},emits:["change"],setup(e,{emit:t}){const n=e,l=Object(a["ref"])([]),o=e=>{t("change",e)};return(t,r)=>{const i=Object(a["resolveComponent"])("el-option"),c=Object(a["resolveComponent"])("el-select");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"Select-wrap",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(c,Object(a["mergeProps"])({disabled:n.disabled},t.$attrs,{modelValue:e.modelValue,"onUpdate:modelValue":r[0]||(r[0]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),onChange:o,"popper-class":l.value.length>20?"nation-select":"",placeholder:e.placeholder}),{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dictEnum,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:e.value,label:e.zdmc||e.label,value:e.dm||e.value},null,8,["label","value"]))),128))]),_:1},16,["disabled","modelValue","popper-class","placeholder"])],4)}}};n("2a03");const R=m()(I,[["__scopeId","data-v-57efec7d"]]);var j=R,B={__name:"index",props:{placeholder:{default:"请填写手机号",type:String},modelValue:{default:[],type:Array},width:{default:l["a"],type:String},checkList:{default:"",type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Object(a["watch"])(()=>n.modelValue,e=>{console.log(e,"val")},{deep:!0});const l=e=>{t("update:modelValue",e)};return(t,n)=>{const o=Object(a["resolveComponent"])("el-checkbox"),r=Object(a["resolveComponent"])("el-checkbox-group");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(r,{modelValue:e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),onChange:l},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.checkList,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(o,{key:e.value,label:e.value},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])],4)}}};const P=B;var V=P,F=(n("caad"),n("3ef4")),H=n("5502");const z={key:0},_=["src"],q={class:"el-upload-list__item-actions"},$=["onClick"],U=["onClick"],W={key:1},J={class:"file-wrap"},K={class:"file-name"},G={class:"el-upload-list__item-actions"},X=["onClick"],Z=["onClick"],Q=["src"];var Y={__name:"index",props:{modelValue:{type:Array,default:[]},limit:{type:Number,default:1},isImg:{type:Boolean,default:!0},width:{default:l["a"],type:String}},emits:["update:modelValue","handleChange"],setup(e,{emit:t}){const n=e,l=Object(a["computed"])(()=>n.isImg?"/mosty-api/mosty-base/minio/image/upload/id":"/mosty-api/mosty-base/minio/file/upload"),o=e=>{let t="";try{t=e.substr(e.lastIndexOf(".")+1,4)}catch(u){return t="","OTHER"}if(!t)return"";var n=["png","jpg","jpeg","bmp","gif"];if(n.includes(t))return"IMG";if("txt"===t)return"TXT";const a=["xls","xlsx"];if(a.includes(t))return"XLS";var l=["doc","docx"];if(l.includes(t))return"DOC";if("pdf"===t)return"PDF";var o=["mp4","m2v","mkv","rmvb","wmv","avi","flv","mov","m4v"];if(o.includes(t))return"VIDEO";var r=["mp3","wav","wmv"];if(r.includes(t))return"MUSIC";var i=["ppt","pptx"];if(i.includes(t))return"PPT";var c=["7z","rar","zip","apz","ar","hpk","hyp","hbc2"];return c.includes(t)?"YS":"OTHER"},r=(Object(a["ref"])(""),Object(H["b"])()),i=Object(a["ref"])(""),c=Object(a["ref"])(!1),u=Object(a["ref"])(!1),s=Object(a["ref"])({Authorization:r.getters.token});Object(a["onMounted"])(()=>{n.modelValue&&(d.value=n.modelValue.map(e=>({url:"/mosty-api/mosty-base/minio/image/download/"+e})))});const d=Object(a["ref"])([]),p=(e,a)=>{a.url="/mosty-api/mosty-base/minio/image/download/"+e.data,d.value.push(a),n.modelValue.push(e.data),t("handleChange",n.modelValue)},h=(e,t)=>{F["a"].warning(`限制,只能上传${n.limit}个文件或图片`)},f=e=>{if(n.isImg){let t=!1;"IMG"===o(e.name)&&(t=!0);const n=e.size/1024/1024<5;return t||F["a"].error("上传图片只能是jpg/png/jpeg/bmp/gif格式!"),n||F["a"].error("上传图片大小不能超过 5MB!"),t&&n}return!0},m=e=>{i.value=e.url,c.value=!0},v=e=>{window.open(e.response.data)},b=e=>{let a=d.value.findIndex((function(t){return t.url===e.url}));d.value.splice(a,1),n.modelValue.splice(a,1),t("handleChange",n.modelValue)};return(t,r)=>{const g=Object(a["resolveComponent"])("Plus"),y=Object(a["resolveComponent"])("el-icon"),w=Object(a["resolveComponent"])("zoom-in"),k=Object(a["resolveComponent"])("Delete"),x=Object(a["resolveComponent"])("svg-icon"),C=Object(a["resolveComponent"])("Download"),T=Object(a["resolveComponent"])("el-upload"),M=Object(a["resolveComponent"])("el-dialog");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(T,Object(a["mergeProps"])(t.$attrs,{headers:s.value,multiple:!1,class:"avatar-uploader",limit:n.limit,action:Object(a["unref"])(l),"list-type":"picture-card","file-list":d.value,"show-file-list":"","on-exceed":h,"on-success":p,"before-upload":f}),{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(y,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(g)]),_:1})]),file:Object(a["withCtx"])(({file:e})=>[n.isImg?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",z,[Object(a["createElementVNode"])("img",{class:"el-upload-list__item-thumbnail",src:e.url,alt:""},null,8,_),Object(a["createElementVNode"])("span",q,[Object(a["createElementVNode"])("span",{class:"el-upload-list__item-preview",onClick:t=>m(e)},[Object(a["createVNode"])(y,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(w)]),_:1})],8,$),u.value?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",{key:0,class:"el-upload-list__item-delete",onClick:t=>b(e,d.value)},[Object(a["createVNode"])(y,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(k)]),_:1})],8,U))])])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",W,[Object(a["createElementVNode"])("div",J,[Object(a["createElementVNode"])("span",null,[Object(a["createVNode"])(x,{icon:o(e.name)},null,8,["icon"])]),Object(a["createElementVNode"])("span",K,Object(a["toDisplayString"])(e.name),1)]),Object(a["createElementVNode"])("span",G,[u.value?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",{key:0,class:"el-upload-list__item-delete",onClick:t=>v(e)},[Object(a["createVNode"])(y,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(C)]),_:1})],8,X)),u.value?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",{key:1,class:"el-upload-list__item-delete",onClick:t=>b(e,d.value)},[Object(a["createVNode"])(y,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(k)]),_:1})],8,Z))])]))]),_:1},16,["headers","limit","action","file-list"]),Object(a["createVNode"])(M,{modelValue:c.value,"onUpdate:modelValue":r[0]||(r[0]=e=>c.value=e)},{default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("img",{style:{width:"100%"},src:i.value,alt:""},null,8,Q)]),_:1},8,["modelValue"])],4)}}};n("b312");const ee=m()(Y,[["__scopeId","data-v-2d86032d"]]);var te=ee,ne=n("c5cb"),ae={__name:"index",props:{placeholder:{default:"请选择",type:String},multiple:{default:!1,type:Boolean},isAll:{default:100,type:Number},modelValue:{type:Array||String,default:[]},width:{default:l["a"],type:String}},emits:["update:modelValue","getDepValue"],setup(e,{emit:t}){const n=e,l=(Object(a["ref"])(!1),Object(a["ref"])([])),o=Object(a["ref"])({deptname:"",deptcode:"",parentid:""}),r=Object(a["ref"])([]),i={children:"childDeptList",value:"orgCode",label:"orgName",checkStrictly:!0,multiple:n.multiple,lazy:!0,lazyLoad(e,t){o.value.parentid=e.data.id,Object(b["B"])(o.value).then(e=>{r.value=r.value.concat(e);for(let t=0;t<e.length;t++)e[t].leaf=!e[t].hasChildren;t(e)})}},c=Object(a["ref"])([]),u=async()=>{const e=await Object(b["B"])(o.value);c.value=e,r.value=e};Object(a["onMounted"])(()=>{u()}),Object(a["watch"])(()=>n.modelValue,e=>{console.log(e,"val"),l.value=e},{deep:!0,immediate:!0});const s=e=>{if(console.log(e,"e"),!0===n.multiple){const n=e.map(e=>e[e.length-1]);t("update:modelValue",n)}else{const n=e?e[e.length-1]:"";t("update:modelValue",n);let a=r.value.find(e=>e.orgCode==n);t("getDepValue",a)}};return(t,n)=>{const o=Object(a["resolveComponent"])("el-cascader");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(o,{style:{width:"100%"},class:"el-cascader-zj","show-all-levels":!1,clearable:"",filterable:"",placeholder:e.modelValue?e.placeholder:"请选择部门",options:c.value,modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),onChange:s,props:i},null,8,["placeholder","options","modelValue"])],4)}}};n("5aa5");const le=m()(ae,[["__scopeId","data-v-c87c67ba"]]);var oe=le,re=n("2ef0");n("5d2d");const ie={class:"depar_hear"},ce={class:"depar_foot"};var ue={__name:"index",props:{placeholder:{default:"请选择",type:String},multiple:{default:!1,type:Boolean},filterable:{default:!1,type:Boolean},modelValue:{type:Number},width:{default:l["a"],type:String},isBmId:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=Object(a["ref"])({deptname:"",deptcode:"",parentid:""}),o=Object(a["ref"])(null),r=Object(a["ref"])([]),i=Object(a["ref"])([]),c=Object(re["debounce"])(s,500);function u(){Object(b["B"])(l.value).then(e=>{for(let t=0;t<e.length;t++)e[t].leaf=!e[t].hasChildren;p.value=e})}function s(e){Object(b["B"])(l.value).then(e=>{p.value=e})}Object(a["onMounted"])(()=>{}),Object(a["watch"])(()=>l.value.deptname,e=>{o.value.filter("tree",e)});const d={children:"childDeptList",value:"id",label:"orgName",isLeaf:"leaf"},p=Object(a["ref"])([]);async function h(e,t){l.value.parentid=e.data.id,0===e.level&&(r.value=e,i.value=t,u()),e.level>=1&&Object(b["B"])(l.value).then(e=>{for(let t=0;t<e.length;t++)e[t].leaf=!e[t].hasChildren;t(e)})}const f=(e,t)=>!e||t.orgName.includes(e),m=e=>{n.isBmId?t("update:modelValue",e.id):t("update:modelValue",e.orgCode)};return(t,n)=>{const r=Object(a["resolveComponent"])("el-input"),i=Object(a["resolveComponent"])("el-tree");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"departmentTree-box",style:Object(a["normalizeStyle"])({width:e.width,height:"100%"})},[Object(a["createElementVNode"])("div",ie,[e.filterable?(Object(a["openBlock"])(),Object(a["createBlock"])(r,{key:0,modelValue:l.value.deptname,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value.deptname=e),clearable:"",debounce:500,onInput:Object(a["unref"])(c),placeholder:"请输入筛选条件"},null,8,["modelValue","onInput"])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",ce,[Object(a["createVNode"])(i,{ref_key:"treeRef",ref:o,class:"filter-tree",props:d,lazy:"",load:h,onNodeClick:m,"filter-node-method":f,data:p.value},null,8,["data"])])],4)}}};n("8905");const se=m()(ue,[["__scopeId","data-v-45fa6e86"]]);var de=se,pe=(n("8589"),{__name:"index",props:{placeholder:{default:"请选择",type:String},modelValue:{default:"",type:String},dictEnum:{default:"",type:String},width:{default:l["a"],type:String}},emits:["handleChange"],setup(e,{emit:t}){const n=Object(a["ref"])([]);Object(a["onBeforeMount"])(async()=>{const e=await Object(b["C"])({page:1,size:9999});n.value=[...e.records]});const l=e=>{t("handleChange",e)};return(t,o)=>{const r=Object(a["resolveComponent"])("el-option"),i=Object(a["resolveComponent"])("el-select");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box zj-packageSelect-wrap",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(i,Object(a["mergeProps"])(t.$attrs,{"model-value":e.modelValue,onChange:l,"popper-class":n.value.length>20?"nation-select":""}),{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(n.value,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(r,{key:e.id,label:e.postName,value:e.id},null,8,["label","value"]))),128))]),_:1},16,["model-value","popper-class"])],4)}}});n("39d3");const he=m()(pe,[["__scopeId","data-v-5a91d20f"]]);var fe=he;const me=[{children:[{children:[{value:"360101",label:"市辖区"},{value:"360102",label:"东湖区"},{value:"360103",label:"西湖区"},{value:"360104",label:"青云谱区"},{value:"360105",label:"湾里区"},{value:"360111",label:"青山湖区"},{value:"360121",label:"南昌县"},{value:"360122",label:"新建县"},{value:"360123",label:"安义县"},{value:"360124",label:"进贤县"}],value:"360100",label:"南昌市"},{children:[{value:"360201",label:"市辖区"},{value:"360202",label:"昌江区"},{value:"360203",label:"珠山区"},{value:"360222",label:"浮梁县"},{value:"360281",label:"乐平市"}],value:"360200",label:"景德镇市"},{children:[{value:"360301",label:"市辖区"},{value:"360302",label:"安源区"},{value:"360313",label:"湘东区"},{value:"360321",label:"莲花县"},{value:"360322",label:"上栗县"},{value:"360323",label:"芦溪县"}],value:"360300",label:"萍乡市"},{children:[{value:"360401",label:"市辖区"},{value:"360402",label:"庐山区"},{value:"360403",label:"浔阳区"},{value:"360421",label:"九江县"},{value:"360423",label:"武宁县"},{value:"360424",label:"修水县"},{value:"360425",label:"永修县"},{value:"360426",label:"德安县"},{value:"360427",label:"星子县"},{value:"360428",label:"都昌县"},{value:"360429",label:"湖口县"},{value:"360430",label:"彭泽县"},{value:"360481",label:"瑞昌市"},{value:"360482",label:"共青城市"}],value:"360400",label:"九江市"},{children:[{value:"360501",label:"市辖区"},{value:"360502",label:"渝水区"},{value:"360521",label:"分宜县"}],value:"360500",label:"新余市"},{children:[{value:"360601",label:"市辖区"},{value:"360602",label:"月湖区"},{value:"360622",label:"余江县"},{value:"360681",label:"贵溪市"}],value:"360600",label:"鹰潭市"},{children:[{value:"360701",label:"市辖区"},{value:"360702",label:"章贡区"},{value:"360721",label:"赣县"},{value:"360722",label:"信丰县"},{value:"360723",label:"大余县"},{value:"360724",label:"上犹县"},{value:"360725",label:"崇义县"},{value:"360726",label:"安远县"},{value:"360727",label:"龙南县"},{value:"360728",label:"定南县"},{value:"360729",label:"全南县"},{value:"360730",label:"宁都县"},{value:"360731",label:"于都县"},{value:"360732",label:"兴国县"},{value:"360733",label:"会昌县"},{value:"360734",label:"寻乌县"},{value:"360735",label:"石城县"},{value:"360781",label:"瑞金市"},{value:"360782",label:"南康市"}],value:"360700",label:"赣州市"},{children:[{value:"360801",label:"市辖区"},{value:"360802",label:"吉州区"},{value:"360803",label:"青原区"},{value:"360821",label:"吉安县"},{value:"360822",label:"吉水县"},{value:"360823",label:"峡江县"},{value:"360824",label:"新干县"},{value:"360825",label:"永丰县"},{value:"360826",label:"泰和县"},{value:"360827",label:"遂川县"},{value:"360828",label:"万安县"},{value:"360829",label:"安福县"},{value:"360830",label:"永新县"},{value:"360881",label:"井冈山市"}],value:"360800",label:"吉安市"},{children:[{value:"360901",label:"市辖区"},{value:"360902",label:"袁州区"},{value:"360921",label:"奉新县"},{value:"360922",label:"万载县"},{value:"360923",label:"上高县"},{value:"360924",label:"宜丰县"},{value:"360925",label:"靖安县"},{value:"360926",label:"铜鼓县"},{value:"360981",label:"丰城市"},{value:"360982",label:"樟树市"},{value:"360983",label:"高安市"}],value:"360900",label:"宜春市"},{children:[{value:"361001",label:"市辖区"},{value:"361002",label:"临川区"},{value:"361021",label:"南城县"},{value:"361022",label:"黎川县"},{value:"361023",label:"南丰县"},{value:"361024",label:"崇仁县"},{value:"361025",label:"乐安县"},{value:"361026",label:"宜黄县"},{value:"361027",label:"金溪县"},{value:"361028",label:"资溪县"},{value:"361029",label:"东乡县"},{value:"361030",label:"广昌县"}],value:"361000",label:"抚州市"},{children:[{value:"361101",label:"市辖区"},{value:"361102",label:"信州区"},{value:"361121",label:"上饶县"},{value:"361122",label:"广丰县"},{value:"361123",label:"玉山县"},{value:"361124",label:"铅山县"},{value:"361125",label:"横峰县"},{value:"361126",label:"弋阳县"},{value:"361127",label:"余干县"},{value:"361128",label:"鄱阳县"},{value:"361129",label:"万年县"},{value:"361130",label:"婺源县"},{value:"361181",label:"德兴市"}],value:"361100",label:"上饶市"}],value:"360000",label:"江西省"},{children:[{children:[{value:"330101",label:"市辖区"},{value:"330102",label:"上城区"},{value:"330103",label:"下城区"},{value:"330104",label:"江干区"},{value:"330105",label:"拱墅区"},{value:"330106",label:"西湖区"},{value:"330108",label:"滨江区"},{value:"330109",label:"萧山区"},{value:"330110",label:"余杭区"},{value:"330122",label:"桐庐县"},{value:"330127",label:"淳安县"},{value:"330182",label:"建德市"},{value:"330183",label:"富阳市"},{value:"330185",label:"临安市"}],value:"330100",label:"杭州市"},{children:[{value:"330201",label:"市辖区"},{value:"330203",label:"海曙区"},{value:"330204",label:"江东区"},{value:"330205",label:"江北区"},{value:"330206",label:"北仑区"},{value:"330211",label:"镇海区"},{value:"330212",label:"鄞州区"},{value:"330225",label:"象山县"},{value:"330226",label:"宁海县"},{value:"330281",label:"余姚市"},{value:"330282",label:"慈溪市"},{value:"330283",label:"奉化市"}],value:"330200",label:"宁波市"},{children:[{value:"330301",label:"市辖区"},{value:"330302",label:"鹿城区"},{value:"330303",label:"龙湾区"},{value:"330304",label:"瓯海区"},{value:"330322",label:"洞头县"},{value:"330324",label:"永嘉县"},{value:"330326",label:"平阳县"},{value:"330327",label:"苍南县"},{value:"330328",label:"文成县"},{value:"330329",label:"泰顺县"},{value:"330381",label:"瑞安市"},{value:"330382",label:"乐清市"}],value:"330300",label:"温州市"},{children:[{value:"330401",label:"市辖区"},{value:"330402",label:"南湖区"},{value:"330411",label:"秀洲区"},{value:"330421",label:"嘉善县"},{value:"330424",label:"海盐县"},{value:"330481",label:"海宁市"},{value:"330482",label:"平湖市"},{value:"330483",label:"桐乡市"}],value:"330400",label:"嘉兴市"},{children:[{value:"330501",label:"市辖区"},{value:"330502",label:"吴兴区"},{value:"330503",label:"南浔区"},{value:"330521",label:"德清县"},{value:"330522",label:"长兴县"},{value:"330523",label:"安吉县"}],value:"330500",label:"湖州市"},{children:[{value:"330601",label:"市辖区"},{value:"330602",label:"越城区"},{value:"330621",label:"绍兴县"},{value:"330624",label:"新昌县"},{value:"330681",label:"诸暨市"},{value:"330682",label:"上虞市"},{value:"330683",label:"嵊州市"}],value:"330600",label:"绍兴市"},{children:[{value:"330701",label:"市辖区"},{value:"330702",label:"婺城区"},{value:"330703",label:"金东区"},{value:"330723",label:"武义县"},{value:"330726",label:"浦江县"},{value:"330727",label:"磐安县"},{value:"330781",label:"兰溪市"},{value:"330782",label:"义乌市"},{value:"330783",label:"东阳市"},{value:"330784",label:"永康市"}],value:"330700",label:"金华市"},{children:[{value:"330801",label:"市辖区"},{value:"330802",label:"柯城区"},{value:"330803",label:"衢江区"},{value:"330822",label:"常山县"},{value:"330824",label:"开化县"},{value:"330825",label:"龙游县"},{value:"330881",label:"江山市"}],value:"330800",label:"衢州市"},{children:[{value:"330901",label:"市辖区"},{value:"330902",label:"定海区"},{value:"330903",label:"普陀区"},{value:"330921",label:"岱山县"},{value:"330922",label:"嵊泗县"}],value:"330900",label:"舟山市"},{children:[{value:"331001",label:"市辖区"},{value:"331002",label:"椒江区"},{value:"331003",label:"黄岩区"},{value:"331004",label:"路桥区"},{value:"331021",label:"玉环县"},{value:"331022",label:"三门县"},{value:"331023",label:"天台县"},{value:"331024",label:"仙居县"},{value:"331081",label:"温岭市"},{value:"331082",label:"临海市"}],value:"331000",label:"台州市"},{children:[{value:"331101",label:"市辖区"},{value:"331102",label:"莲都区"},{value:"331121",label:"青田县"},{value:"331122",label:"缙云县"},{value:"331123",label:"遂昌县"},{value:"331124",label:"松阳县"},{value:"331125",label:"云和县"},{value:"331126",label:"庆元县"},{value:"331127",label:"景宁畲族自治县"},{value:"331181",label:"龙泉市"}],value:"331100",label:"丽水市"}],value:"330000",label:"浙江省"},{children:[{children:[{value:"320101",label:"市辖区"},{value:"320102",label:"玄武区"},{value:"320104",label:"秦淮区"},{value:"320105",label:"建邺区"},{value:"320106",label:"鼓楼区"},{value:"320111",label:"浦口区"},{value:"320113",label:"栖霞区"},{value:"320114",label:"雨花台区"},{value:"320115",label:"江宁区"},{value:"320116",label:"六合区"},{value:"320117",label:"溧水区"},{value:"320118",label:"高淳区"}],value:"320100",label:"南京市"},{children:[{value:"320201",label:"市辖区"},{value:"320202",label:"崇安区"},{value:"320203",label:"南长区"},{value:"320204",label:"北塘区"},{value:"320205",label:"锡山区"},{value:"320206",label:"惠山区"},{value:"320211",label:"滨湖区"},{value:"320281",label:"江阴市"},{value:"320282",label:"宜兴市"}],value:"320200",label:"无锡市"},{children:[{value:"320301",label:"市辖区"},{value:"320302",label:"鼓楼区"},{value:"320303",label:"云龙区"},{value:"320305",label:"贾汪区"},{value:"320311",label:"泉山区"},{value:"320312",label:"铜山区"},{value:"320321",label:"丰县"},{value:"320322",label:"沛县"},{value:"320324",label:"睢宁县"},{value:"320381",label:"新沂市"},{value:"320382",label:"邳州市"}],value:"320300",label:"徐州市"},{children:[{value:"320401",label:"市辖区"},{value:"320402",label:"天宁区"},{value:"320404",label:"钟楼区"},{value:"320405",label:"戚墅堰区"},{value:"320411",label:"新北区"},{value:"320412",label:"武进区"},{value:"320481",label:"溧阳市"},{value:"320482",label:"金坛市"}],value:"320400",label:"常州市"},{children:[{value:"320501",label:"市辖区"},{value:"320505",label:"虎丘区"},{value:"320506",label:"吴中区"},{value:"320507",label:"相城区"},{value:"320508",label:"姑苏区"},{value:"320509",label:"吴江区"},{value:"320581",label:"常熟市"},{value:"320582",label:"张家港市"},{value:"320583",label:"昆山市"},{value:"320585",label:"太仓市"}],value:"320500",label:"苏州市"},{children:[{value:"320601",label:"市辖区"},{value:"320602",label:"崇川区"},{value:"320611",label:"港闸区"},{value:"320612",label:"通州区"},{value:"320621",label:"海安县"},{value:"320623",label:"如东县"},{value:"320681",label:"启东市"},{value:"320682",label:"如皋市"},{value:"320684",label:"海门市"}],value:"320600",label:"南通市"},{children:[{value:"320701",label:"市辖区"},{value:"320703",label:"连云区"},{value:"320705",label:"新浦区"},{value:"320706",label:"海州区"},{value:"320721",label:"赣榆县"},{value:"320722",label:"东海县"},{value:"320723",label:"灌云县"},{value:"320724",label:"灌南县"}],value:"320700",label:"连云港市"},{children:[{value:"320801",label:"市辖区"},{value:"320802",label:"清河区"},{value:"320803",label:"淮安区"},{value:"320804",label:"淮阴区"},{value:"320811",label:"清浦区"},{value:"320826",label:"涟水县"},{value:"320829",label:"洪泽县"},{value:"320830",label:"盱眙县"},{value:"320831",label:"金湖县"}],value:"320800",label:"淮安市"},{children:[{value:"320901",label:"市辖区"},{value:"320902",label:"亭湖区"},{value:"320903",label:"盐都区"},{value:"320921",label:"响水县"},{value:"320922",label:"滨海县"},{value:"320923",label:"阜宁县"},{value:"320924",label:"射阳县"},{value:"320925",label:"建湖县"},{value:"320981",label:"东台市"},{value:"320982",label:"大丰市"}],value:"320900",label:"盐城市"},{children:[{value:"321001",label:"市辖区"},{value:"321002",label:"广陵区"},{value:"321003",label:"邗江区"},{value:"321012",label:"江都区"},{value:"321023",label:"宝应县"},{value:"321081",label:"仪征市"},{value:"321084",label:"高邮市"}],value:"321000",label:"扬州市"},{children:[{value:"321101",label:"市辖区"},{value:"321102",label:"京口区"},{value:"321111",label:"润州区"},{value:"321112",label:"丹徒区"},{value:"321181",label:"丹阳市"},{value:"321182",label:"扬中市"},{value:"321183",label:"句容市"}],value:"321100",label:"镇江市"},{children:[{value:"321201",label:"市辖区"},{value:"321202",label:"海陵区"},{value:"321203",label:"高港区"},{value:"321204",label:"姜堰区"},{value:"321281",label:"兴化市"},{value:"321282",label:"靖江市"},{value:"321283",label:"泰兴市"}],value:"321200",label:"泰州市"},{children:[{value:"321301",label:"市辖区"},{value:"321302",label:"宿城区"},{value:"321311",label:"宿豫区"},{value:"321322",label:"沭阳县"},{value:"321323",label:"泗阳县"},{value:"321324",label:"泗洪县"}],value:"321300",label:"宿迁市"}],value:"320000",label:"江苏省"},{children:[{children:[{value:"140101",label:"市辖区"},{value:"140105",label:"小店区"},{value:"140106",label:"迎泽区"},{value:"140107",label:"杏花岭区"},{value:"140108",label:"尖草坪区"},{value:"140109",label:"万柏林区"},{value:"140110",label:"晋源区"},{value:"140121",label:"清徐县"},{value:"140122",label:"阳曲县"},{value:"140123",label:"娄烦县"},{value:"140181",label:"古交市"}],value:"140100",label:"太原市"},{children:[{value:"140201",label:"市辖区"},{value:"140202",label:"城区"},{value:"140203",label:"矿区"},{value:"140211",label:"南郊区"},{value:"140212",label:"新荣区"},{value:"140221",label:"阳高县"},{value:"140222",label:"天镇县"},{value:"140223",label:"广灵县"},{value:"140224",label:"灵丘县"},{value:"140225",label:"浑源县"},{value:"140226",label:"左云县"},{value:"140227",label:"大同县"}],value:"140200",label:"大同市"},{children:[{value:"140301",label:"市辖区"},{value:"140302",label:"城区"},{value:"140303",label:"矿区"},{value:"140311",label:"郊区"},{value:"140321",label:"平定县"},{value:"140322",label:"盂县"}],value:"140300",label:"阳泉市"},{children:[{value:"140401",label:"市辖区"},{value:"140402",label:"城区"},{value:"140411",label:"郊区"},{value:"140421",label:"长治县"},{value:"140423",label:"襄垣县"},{value:"140424",label:"屯留县"},{value:"140425",label:"平顺县"},{value:"140426",label:"黎城县"},{value:"140427",label:"壶关县"},{value:"140428",label:"长子县"},{value:"140429",label:"武乡县"},{value:"140430",label:"沁县"},{value:"140431",label:"沁源县"},{value:"140481",label:"潞城市"}],value:"140400",label:"长治市"},{children:[{value:"140501",label:"市辖区"},{value:"140502",label:"城区"},{value:"140521",label:"沁水县"},{value:"140522",label:"阳城县"},{value:"140524",label:"陵川县"},{value:"140525",label:"泽州县"},{value:"140581",label:"高平市"}],value:"140500",label:"晋城市"},{children:[{value:"140601",label:"市辖区"},{value:"140602",label:"朔城区"},{value:"140603",label:"平鲁区"},{value:"140621",label:"山阴县"},{value:"140622",label:"应县"},{value:"140623",label:"右玉县"},{value:"140624",label:"怀仁县"}],value:"140600",label:"朔州市"},{children:[{value:"140701",label:"市辖区"},{value:"140702",label:"榆次区"},{value:"140721",label:"榆社县"},{value:"140722",label:"左权县"},{value:"140723",label:"和顺县"},{value:"140724",label:"昔阳县"},{value:"140725",label:"寿阳县"},{value:"140726",label:"太谷县"},{value:"140727",label:"祁县"},{value:"140728",label:"平遥县"},{value:"140729",label:"灵石县"},{value:"140781",label:"介休市"}],value:"140700",label:"晋中市"},{children:[{value:"140801",label:"市辖区"},{value:"140802",label:"盐湖区"},{value:"140821",label:"临猗县"},{value:"140822",label:"万荣县"},{value:"140823",label:"闻喜县"},{value:"140824",label:"稷山县"},{value:"140825",label:"新绛县"},{value:"140826",label:"绛县"},{value:"140827",label:"垣曲县"},{value:"140828",label:"夏县"},{value:"140829",label:"平陆县"},{value:"140830",label:"芮城县"},{value:"140881",label:"永济市"},{value:"140882",label:"河津市"}],value:"140800",label:"运城市"},{children:[{value:"140901",label:"市辖区"},{value:"140902",label:"忻府区"},{value:"140921",label:"定襄县"},{value:"140922",label:"五台县"},{value:"140923",label:"代县"},{value:"140924",label:"繁峙县"},{value:"140925",label:"宁武县"},{value:"140926",label:"静乐县"},{value:"140927",label:"神池县"},{value:"140928",label:"五寨县"},{value:"140929",label:"岢岚县"},{value:"140930",label:"河曲县"},{value:"140931",label:"保德县"},{value:"140932",label:"偏关县"},{value:"140981",label:"原平市"}],value:"140900",label:"忻州市"},{children:[{value:"141001",label:"市辖区"},{value:"141002",label:"尧都区"},{value:"141021",label:"曲沃县"},{value:"141022",label:"翼城县"},{value:"141023",label:"襄汾县"},{value:"141024",label:"洪洞县"},{value:"141025",label:"古县"},{value:"141026",label:"安泽县"},{value:"141027",label:"浮山县"},{value:"141028",label:"吉县"},{value:"141029",label:"乡宁县"},{value:"141030",label:"大宁县"},{value:"141031",label:"隰县"},{value:"141032",label:"永和县"},{value:"141033",label:"蒲县"},{value:"141034",label:"汾西县"},{value:"141081",label:"侯马市"},{value:"141082",label:"霍州市"}],value:"141000",label:"临汾市"},{children:[{value:"141101",label:"市辖区"},{value:"141102",label:"离石区"},{value:"141121",label:"文水县"},{value:"141122",label:"交城县"},{value:"141123",label:"兴县"},{value:"141124",label:"临县"},{value:"141125",label:"柳林县"},{value:"141126",label:"石楼县"},{value:"141127",label:"岚县"},{value:"141128",label:"方山县"},{value:"141129",label:"中阳县"},{value:"141130",label:"交口县"},{value:"141181",label:"孝义市"},{value:"141182",label:"汾阳市"}],value:"141100",label:"吕梁市"}],value:"140000",label:"山西省"},{children:[{children:[{value:"110101",label:"东城区"},{value:"110102",label:"西城区"},{value:"110105",label:"朝阳区"},{value:"110106",label:"丰台区"},{value:"110107",label:"石景山区"},{value:"110108",label:"海淀区"},{value:"110109",label:"门头沟区"},{value:"110111",label:"房山区"},{value:"110112",label:"通州区"},{value:"110113",label:"顺义区"},{value:"110114",label:"昌平区"},{value:"110115",label:"大兴区"},{value:"110116",label:"怀柔区"},{value:"110117",label:"平谷区"}],value:"110100",label:"市辖区"},{children:[{value:"110228",label:"密云县"},{value:"110229",label:"延庆县"}],value:"110200",label:"县"}],value:"110000",label:"北京市"},{children:[{children:[{value:"120101",label:"和平区"},{value:"120102",label:"河东区"},{value:"120103",label:"河西区"},{value:"120104",label:"南开区"},{value:"120105",label:"河北区"},{value:"120106",label:"红桥区"},{value:"120110",label:"东丽区"},{value:"120111",label:"西青区"},{value:"120112",label:"津南区"},{value:"120113",label:"北辰区"},{value:"120114",label:"武清区"},{value:"120115",label:"宝坻区"},{value:"120116",label:"滨海新区"}],value:"120100",label:"市辖区"},{children:[{value:"120221",label:"宁河县"},{value:"120223",label:"静海县"},{value:"120225",label:"蓟县"}],value:"120200",label:"县"}],value:"120000",label:"天津市"},{children:[{children:[{value:"130101",label:"市辖区"},{value:"130102",label:"长安区"},{value:"130103",label:"桥东区"},{value:"130104",label:"桥西区"},{value:"130105",label:"新华区"},{value:"130107",label:"井陉矿区"},{value:"130108",label:"裕华区"},{value:"130121",label:"井陉县"},{value:"130123",label:"正定县"},{value:"130124",label:"栾城县"},{value:"130125",label:"行唐县"},{value:"130126",label:"灵寿县"},{value:"130127",label:"高邑县"},{value:"130128",label:"深泽县"},{value:"130129",label:"赞皇县"},{value:"130130",label:"无极县"},{value:"130131",label:"平山县"},{value:"130132",label:"元氏县"},{value:"130133",label:"赵县"},{value:"130181",label:"辛集市"},{value:"130182",label:"藁城市"},{value:"130183",label:"晋州市"},{value:"130184",label:"新乐市"},{value:"130185",label:"鹿泉市"}],value:"130100",label:"石家庄市"},{children:[{value:"130201",label:"市辖区"},{value:"130202",label:"路南区"},{value:"130203",label:"路北区"},{value:"130204",label:"古冶区"},{value:"130205",label:"开平区"},{value:"130207",label:"丰南区"},{value:"130208",label:"丰润区"},{value:"130209",label:"曹妃甸区"},{value:"130223",label:"滦县"},{value:"130224",label:"滦南县"},{value:"130225",label:"乐亭县"},{value:"130227",label:"迁西县"},{value:"130229",label:"玉田县"},{value:"130281",label:"遵化市"},{value:"130283",label:"迁安市"}],value:"130200",label:"唐山市"},{children:[{value:"130301",label:"市辖区"},{value:"130302",label:"海港区"},{value:"130303",label:"山海关区"},{value:"130304",label:"北戴河区"},{value:"130321",label:"青龙满族自治县"},{value:"130322",label:"昌黎县"},{value:"130323",label:"抚宁县"},{value:"130324",label:"卢龙县"}],value:"130300",label:"秦皇岛市"},{children:[{value:"130401",label:"市辖区"},{value:"130402",label:"邯山区"},{value:"130403",label:"丛台区"},{value:"130404",label:"复兴区"},{value:"130406",label:"峰峰矿区"},{value:"130421",label:"邯郸县"},{value:"130423",label:"临漳县"},{value:"130424",label:"成安县"},{value:"130425",label:"大名县"},{value:"130426",label:"涉县"},{value:"130427",label:"磁县"},{value:"130428",label:"肥乡县"},{value:"130429",label:"永年县"},{value:"130430",label:"邱县"},{value:"130431",label:"鸡泽县"},{value:"130432",label:"广平县"},{value:"130433",label:"馆陶县"},{value:"130434",label:"魏县"},{value:"130435",label:"曲周县"},{value:"130481",label:"武安市"}],value:"130400",label:"邯郸市"},{children:[{value:"130501",label:"市辖区"},{value:"130502",label:"桥东区"},{value:"130503",label:"桥西区"},{value:"130521",label:"邢台县"},{value:"130522",label:"临城县"},{value:"130523",label:"内丘县"},{value:"130524",label:"柏乡县"},{value:"130525",label:"隆尧县"},{value:"130526",label:"任县"},{value:"130527",label:"南和县"},{value:"130528",label:"宁晋县"},{value:"130529",label:"巨鹿县"},{value:"130530",label:"新河县"},{value:"130531",label:"广宗县"},{value:"130532",label:"平乡县"},{value:"130533",label:"威县"},{value:"130534",label:"清河县"},{value:"130535",label:"临西县"},{value:"130581",label:"南宫市"},{value:"130582",label:"沙河市"}],value:"130500",label:"邢台市"},{children:[{value:"130601",label:"市辖区"},{value:"130602",label:"新市区"},{value:"130603",label:"北市区"},{value:"130604",label:"南市区"},{value:"130621",label:"满城县"},{value:"130622",label:"清苑县"},{value:"130623",label:"涞水县"},{value:"130624",label:"阜平县"},{value:"130625",label:"徐水县"},{value:"130626",label:"定兴县"},{value:"130627",label:"唐县"},{value:"130628",label:"高阳县"},{value:"130629",label:"容城县"},{value:"130630",label:"涞源县"},{value:"130631",label:"望都县"},{value:"130632",label:"安新县"},{value:"130633",label:"易县"},{value:"130634",label:"曲阳县"},{value:"130635",label:"蠡县"},{value:"130636",label:"顺平县"},{value:"130637",label:"博野县"},{value:"130638",label:"雄县"},{value:"130681",label:"涿州市"},{value:"130682",label:"定州市"},{value:"130683",label:"安国市"},{value:"130684",label:"高碑店市"}],value:"130600",label:"保定市"},{children:[{value:"130701",label:"市辖区"},{value:"130702",label:"桥东区"},{value:"130703",label:"桥西区"},{value:"130705",label:"宣化区"},{value:"130706",label:"下花园区"},{value:"130721",label:"宣化县"},{value:"130722",label:"张北县"},{value:"130723",label:"康保县"},{value:"130724",label:"沽源县"},{value:"130725",label:"尚义县"},{value:"130726",label:"蔚县"},{value:"130727",label:"阳原县"},{value:"130728",label:"怀安县"},{value:"130729",label:"万全县"},{value:"130730",label:"怀来县"},{value:"130731",label:"涿鹿县"},{value:"130732",label:"赤城县"},{value:"130733",label:"崇礼县"}],value:"130700",label:"张家口市"},{children:[{value:"130801",label:"市辖区"},{value:"130802",label:"双桥区"},{value:"130803",label:"双滦区"},{value:"130804",label:"鹰手营子矿区"},{value:"130821",label:"承德县"},{value:"130822",label:"兴隆县"},{value:"130823",label:"平泉县"},{value:"130824",label:"滦平县"},{value:"130825",label:"隆化县"},{value:"130826",label:"丰宁满族自治县"},{value:"130827",label:"宽城满族自治县"},{value:"130828",label:"围场满族蒙古族自治县"}],value:"130800",label:"承德市"},{children:[{value:"130901",label:"市辖区"},{value:"130902",label:"新华区"},{value:"130903",label:"运河区"},{value:"130921",label:"沧县"},{value:"130922",label:"青县"},{value:"130923",label:"东光县"},{value:"130924",label:"海兴县"},{value:"130925",label:"盐山县"},{value:"130926",label:"肃宁县"},{value:"130927",label:"南皮县"},{value:"130928",label:"吴桥县"},{value:"130929",label:"献县"},{value:"130930",label:"孟村回族自治县"},{value:"130981",label:"泊头市"},{value:"130982",label:"任丘市"},{value:"130983",label:"黄骅市"},{value:"130984",label:"河间市"}],value:"130900",label:"沧州市"},{children:[{value:"131001",label:"市辖区"},{value:"131002",label:"安次区"},{value:"131003",label:"广阳区"},{value:"131022",label:"固安县"},{value:"131023",label:"永清县"},{value:"131024",label:"香河县"},{value:"131025",label:"大城县"},{value:"131026",label:"文安县"},{value:"131028",label:"大厂回族自治县"},{value:"131081",label:"霸州市"},{value:"131082",label:"三河市"}],value:"131000",label:"廊坊市"},{children:[{value:"131101",label:"市辖区"},{value:"131102",label:"桃城区"},{value:"131121",label:"枣强县"},{value:"131122",label:"武邑县"},{value:"131123",label:"武强县"},{value:"131124",label:"饶阳县"},{value:"131125",label:"安平县"},{value:"131126",label:"故城县"},{value:"131127",label:"景县"},{value:"131128",label:"阜城县"},{value:"131181",label:"冀州市"},{value:"131182",label:"深州市"}],value:"131100",label:"衡水市"}],value:"130000",label:"河北省"},{children:[{children:[{value:"140101",label:"市辖区"},{value:"140105",label:"小店区"},{value:"140106",label:"迎泽区"},{value:"140107",label:"杏花岭区"},{value:"140108",label:"尖草坪区"},{value:"140109",label:"万柏林区"},{value:"140110",label:"晋源区"},{value:"140121",label:"清徐县"},{value:"140122",label:"阳曲县"},{value:"140123",label:"娄烦县"},{value:"140181",label:"古交市"}],value:"140100",label:"太原市"},{children:[{value:"140201",label:"市辖区"},{value:"140202",label:"城区"},{value:"140203",label:"矿区"},{value:"140211",label:"南郊区"},{value:"140212",label:"新荣区"},{value:"140221",label:"阳高县"},{value:"140222",label:"天镇县"},{value:"140223",label:"广灵县"},{value:"140224",label:"灵丘县"},{value:"140225",label:"浑源县"},{value:"140226",label:"左云县"},{value:"140227",label:"大同县"}],value:"140200",label:"大同市"},{children:[{value:"140301",label:"市辖区"},{value:"140302",label:"城区"},{value:"140303",label:"矿区"},{value:"140311",label:"郊区"},{value:"140321",label:"平定县"},{value:"140322",label:"盂县"}],value:"140300",label:"阳泉市"},{children:[{value:"140401",label:"市辖区"},{value:"140402",label:"城区"},{value:"140411",label:"郊区"},{value:"140421",label:"长治县"},{value:"140423",label:"襄垣县"},{value:"140424",label:"屯留县"},{value:"140425",label:"平顺县"},{value:"140426",label:"黎城县"},{value:"140427",label:"壶关县"},{value:"140428",label:"长子县"},{value:"140429",label:"武乡县"},{value:"140430",label:"沁县"},{value:"140431",label:"沁源县"},{value:"140481",label:"潞城市"}],value:"140400",label:"长治市"},{children:[{value:"140501",label:"市辖区"},{value:"140502",label:"城区"},{value:"140521",label:"沁水县"},{value:"140522",label:"阳城县"},{value:"140524",label:"陵川县"},{value:"140525",label:"泽州县"},{value:"140581",label:"高平市"}],value:"140500",label:"晋城市"},{children:[{value:"140601",label:"市辖区"},{value:"140602",label:"朔城区"},{value:"140603",label:"平鲁区"},{value:"140621",label:"山阴县"},{value:"140622",label:"应县"},{value:"140623",label:"右玉县"},{value:"140624",label:"怀仁县"}],value:"140600",label:"朔州市"},{children:[{value:"140701",label:"市辖区"},{value:"140702",label:"榆次区"},{value:"140721",label:"榆社县"},{value:"140722",label:"左权县"},{value:"140723",label:"和顺县"},{value:"140724",label:"昔阳县"},{value:"140725",label:"寿阳县"},{value:"140726",label:"太谷县"},{value:"140727",label:"祁县"},{value:"140728",label:"平遥县"},{value:"140729",label:"灵石县"},{value:"140781",label:"介休市"}],value:"140700",label:"晋中市"},{children:[{value:"140801",label:"市辖区"},{value:"140802",label:"盐湖区"},{value:"140821",label:"临猗县"},{value:"140822",label:"万荣县"},{value:"140823",label:"闻喜县"},{value:"140824",label:"稷山县"},{value:"140825",label:"新绛县"},{value:"140826",label:"绛县"},{value:"140827",label:"垣曲县"},{value:"140828",label:"夏县"},{value:"140829",label:"平陆县"},{value:"140830",label:"芮城县"},{value:"140881",label:"永济市"},{value:"140882",label:"河津市"}],value:"140800",label:"运城市"},{children:[{value:"140901",label:"市辖区"},{value:"140902",label:"忻府区"},{value:"140921",label:"定襄县"},{value:"140922",label:"五台县"},{value:"140923",label:"代县"},{value:"140924",label:"繁峙县"},{value:"140925",label:"宁武县"},{value:"140926",label:"静乐县"},{value:"140927",label:"神池县"},{value:"140928",label:"五寨县"},{value:"140929",label:"岢岚县"},{value:"140930",label:"河曲县"},{value:"140931",label:"保德县"},{value:"140932",label:"偏关县"},{value:"140981",label:"原平市"}],value:"140900",label:"忻州市"},{children:[{value:"141001",label:"市辖区"},{value:"141002",label:"尧都区"},{value:"141021",label:"曲沃县"},{value:"141022",label:"翼城县"},{value:"141023",label:"襄汾县"},{value:"141024",label:"洪洞县"},{value:"141025",label:"古县"},{value:"141026",label:"安泽县"},{value:"141027",label:"浮山县"},{value:"141028",label:"吉县"},{value:"141029",label:"乡宁县"},{value:"141030",label:"大宁县"},{value:"141031",label:"隰县"},{value:"141032",label:"永和县"},{value:"141033",label:"蒲县"},{value:"141034",label:"汾西县"},{value:"141081",label:"侯马市"},{value:"141082",label:"霍州市"}],value:"141000",label:"临汾市"},{children:[{value:"141101",label:"市辖区"},{value:"141102",label:"离石区"},{value:"141121",label:"文水县"},{value:"141122",label:"交城县"},{value:"141123",label:"兴县"},{value:"141124",label:"临县"},{value:"141125",label:"柳林县"},{value:"141126",label:"石楼县"},{value:"141127",label:"岚县"},{value:"141128",label:"方山县"},{value:"141129",label:"中阳县"},{value:"141130",label:"交口县"},{value:"141181",label:"孝义市"},{value:"141182",label:"汾阳市"}],value:"141100",label:"吕梁市"}],value:"140000",label:"山西省"},{children:[{children:[{value:"150101",label:"市辖区"},{value:"150102",label:"新城区"},{value:"150103",label:"回民区"},{value:"150104",label:"玉泉区"},{value:"150105",label:"赛罕区"},{value:"150121",label:"土默特左旗"},{value:"150122",label:"托克托县"},{value:"150123",label:"和林格尔县"},{value:"150124",label:"清水河县"},{value:"150125",label:"武川县"}],value:"150100",label:"呼和浩特市"},{children:[{value:"150201",label:"市辖区"},{value:"150202",label:"东河区"},{value:"150203",label:"昆都仑区"},{value:"150204",label:"青山区"},{value:"150205",label:"石拐区"},{value:"150206",label:"白云鄂博矿区"},{value:"150207",label:"九原区"},{value:"150221",label:"土默特右旗"},{value:"150222",label:"固阳县"},{value:"150223",label:"达尔罕茂明安联合旗"}],value:"150200",label:"包头市"},{children:[{value:"150301",label:"市辖区"},{value:"150302",label:"海勃湾区"},{value:"150303",label:"海南区"},{value:"150304",label:"乌达区"}],value:"150300",label:"乌海市"},{children:[{value:"150401",label:"市辖区"},{value:"150402",label:"红山区"},{value:"150403",label:"元宝山区"},{value:"150404",label:"松山区"},{value:"150421",label:"阿鲁科尔沁旗"},{value:"150422",label:"巴林左旗"},{value:"150423",label:"巴林右旗"},{value:"150424",label:"林西县"},{value:"150425",label:"克什克腾旗"},{value:"150426",label:"翁牛特旗"},{value:"150428",label:"喀喇沁旗"},{value:"150429",label:"宁城县"},{value:"150430",label:"敖汉旗"}],value:"150400",label:"赤峰市"},{children:[{value:"150501",label:"市辖区"},{value:"150502",label:"科尔沁区"},{value:"150521",label:"科尔沁左翼中旗"},{value:"150522",label:"科尔沁左翼后旗"},{value:"150523",label:"开鲁县"},{value:"150524",label:"库伦旗"},{value:"150525",label:"奈曼旗"},{value:"150526",label:"扎鲁特旗"},{value:"150581",label:"霍林郭勒市"}],value:"150500",label:"通辽市"},{children:[{value:"150601",label:"市辖区"},{value:"150602",label:"东胜区"},{value:"150621",label:"达拉特旗"},{value:"150622",label:"准格尔旗"},{value:"150623",label:"鄂托克前旗"},{value:"150624",label:"鄂托克旗"},{value:"150625",label:"杭锦旗"},{value:"150626",label:"乌审旗"},{value:"150627",label:"伊金霍洛旗"}],value:"150600",label:"鄂尔多斯市"},{children:[{value:"150701",label:"市辖区"},{value:"150702",label:"海拉尔区"},{value:"150703",label:"扎赉诺尔区"},{value:"150721",label:"阿荣旗"},{value:"150722",label:"莫力达瓦达斡尔族自治旗"},{value:"150723",label:"鄂伦春自治旗"},{value:"150724",label:"鄂温克族自治旗"},{value:"150725",label:"陈巴尔虎旗"},{value:"150726",label:"新巴尔虎左旗"},{value:"150727",label:"新巴尔虎右旗"},{value:"150781",label:"满洲里市"},{value:"150782",label:"牙克石市"},{value:"150783",label:"扎兰屯市"},{value:"150784",label:"额尔古纳市"},{value:"150785",label:"根河市"}],value:"150700",label:"呼伦贝尔市"},{children:[{value:"150801",label:"市辖区"},{value:"150802",label:"临河区"},{value:"150821",label:"五原县"},{value:"150822",label:"磴口县"},{value:"150823",label:"乌拉特前旗"},{value:"150824",label:"乌拉特中旗"},{value:"150825",label:"乌拉特后旗"},{value:"150826",label:"杭锦后旗"}],value:"150800",label:"巴彦淖尔市"},{children:[{value:"150901",label:"市辖区"},{value:"150902",label:"集宁区"},{value:"150921",label:"卓资县"},{value:"150922",label:"化德县"},{value:"150923",label:"商都县"},{value:"150924",label:"兴和县"},{value:"150925",label:"凉城县"},{value:"150926",label:"察哈尔右翼前旗"},{value:"150927",label:"察哈尔右翼中旗"},{value:"150928",label:"察哈尔右翼后旗"},{value:"150929",label:"四子王旗"},{value:"150981",label:"丰镇市"}],value:"150900",label:"乌兰察布市"},{children:[{value:"152201",label:"乌兰浩特市"},{value:"152202",label:"阿尔山市"},{value:"152221",label:"科尔沁右翼前旗"},{value:"152222",label:"科尔沁右翼中旗"},{value:"152223",label:"扎赉特旗"},{value:"152224",label:"突泉县"}],value:"152200",label:"兴安盟"},{children:[{value:"152501",label:"二连浩特市"},{value:"152502",label:"锡林浩特市"},{value:"152522",label:"阿巴嘎旗"},{value:"152523",label:"苏尼特左旗"},{value:"152524",label:"苏尼特右旗"},{value:"152525",label:"东乌珠穆沁旗"},{value:"152526",label:"西乌珠穆沁旗"},{value:"152527",label:"太仆寺旗"},{value:"152528",label:"镶黄旗"},{value:"152529",label:"正镶白旗"},{value:"152530",label:"正蓝旗"},{value:"152531",label:"多伦县"}],value:"152500",label:"锡林郭勒盟"},{children:[{value:"152921",label:"阿拉善左旗"},{value:"152922",label:"阿拉善右旗"},{value:"152923",label:"额济纳旗"}],value:"152900",label:"阿拉善盟"}],value:"150000",label:"内蒙古自治区"},{children:[{children:[{value:"210101",label:"市辖区"},{value:"210102",label:"和平区"},{value:"210103",label:"沈河区"},{value:"210104",label:"大东区"},{value:"210105",label:"皇姑区"},{value:"210106",label:"铁西区"},{value:"210111",label:"苏家屯区"},{value:"210112",label:"东陵区"},{value:"210113",label:"沈北新区"},{value:"210114",label:"于洪区"},{value:"210122",label:"辽中县"},{value:"210123",label:"康平县"},{value:"210124",label:"法库县"},{value:"210181",label:"新民市"}],value:"210100",label:"沈阳市"},{children:[{value:"210201",label:"市辖区"},{value:"210202",label:"中山区"},{value:"210203",label:"西岗区"},{value:"210204",label:"沙河口区"},{value:"210211",label:"甘井子区"},{value:"210212",label:"旅顺口区"},{value:"210213",label:"金州区"},{value:"210224",label:"长海县"},{value:"210281",label:"瓦房店市"},{value:"210282",label:"普兰店市"},{value:"210283",label:"庄河市"}],value:"210200",label:"大连市"},{children:[{value:"210301",label:"市辖区"},{value:"210302",label:"铁东区"},{value:"210303",label:"铁西区"},{value:"210304",label:"立山区"},{value:"210311",label:"千山区"},{value:"210321",label:"台安县"},{value:"210323",label:"岫岩满族自治县"},{value:"210381",label:"海城市"}],value:"210300",label:"鞍山市"},{children:[{value:"210401",label:"市辖区"},{value:"210402",label:"新抚区"},{value:"210403",label:"东洲区"},{value:"210404",label:"望花区"},{value:"210411",label:"顺城区"},{value:"210421",label:"抚顺县"},{value:"210422",label:"新宾满族自治县"},{value:"210423",label:"清原满族自治县"}],value:"210400",label:"抚顺市"},{children:[{value:"210501",label:"市辖区"},{value:"210502",label:"平山区"},{value:"210503",label:"溪湖区"},{value:"210504",label:"明山区"},{value:"210505",label:"南芬区"},{value:"210521",label:"本溪满族自治县"},{value:"210522",label:"桓仁满族自治县"}],value:"210500",label:"本溪市"},{children:[{value:"210601",label:"市辖区"},{value:"210602",label:"元宝区"},{value:"210603",label:"振兴区"},{value:"210604",label:"振安区"},{value:"210624",label:"宽甸满族自治县"},{value:"210681",label:"东港市"},{value:"210682",label:"凤城市"}],value:"210600",label:"丹东市"},{children:[{value:"210701",label:"市辖区"},{value:"210702",label:"古塔区"},{value:"210703",label:"凌河区"},{value:"210711",label:"太和区"},{value:"210726",label:"黑山县"},{value:"210727",label:"义县"},{value:"210781",label:"凌海市"},{value:"210782",label:"北镇市"}],value:"210700",label:"锦州市"},{children:[{value:"210801",label:"市辖区"},{value:"210802",label:"站前区"},{value:"210803",label:"西市区"},{value:"210804",label:"鲅鱼圈区"},{value:"210811",label:"老边区"},{value:"210881",label:"盖州市"},{value:"210882",label:"大石桥市"}],value:"210800",label:"营口市"},{children:[{value:"210901",label:"市辖区"},{value:"210902",label:"海州区"},{value:"210903",label:"新邱区"},{value:"210904",label:"太平区"},{value:"210905",label:"清河门区"},{value:"210911",label:"细河区"},{value:"210921",label:"阜新蒙古族自治县"},{value:"210922",label:"彰武县"}],value:"210900",label:"阜新市"},{children:[{value:"211001",label:"市辖区"},{value:"211002",label:"白塔区"},{value:"211003",label:"文圣区"},{value:"211004",label:"宏伟区"},{value:"211005",label:"弓长岭区"},{value:"211011",label:"太子河区"},{value:"211021",label:"辽阳县"},{value:"211081",label:"灯塔市"}],value:"211000",label:"辽阳市"},{children:[{value:"211101",label:"市辖区"},{value:"211102",label:"双台子区"},{value:"211103",label:"兴隆台区"},{value:"211121",label:"大洼县"},{value:"211122",label:"盘山县"}],value:"211100",label:"盘锦市"},{children:[{value:"211201",label:"市辖区"},{value:"211202",label:"银州区"},{value:"211204",label:"清河区"},{value:"211221",label:"铁岭县"},{value:"211223",label:"西丰县"},{value:"211224",label:"昌图县"},{value:"211281",label:"调兵山市"},{value:"211282",label:"开原市"}],value:"211200",label:"铁岭市"},{children:[{value:"211301",label:"市辖区"},{value:"211302",label:"双塔区"},{value:"211303",label:"龙城区"},{value:"211321",label:"朝阳县"},{value:"211322",label:"建平县"},{value:"211324",label:"喀喇沁左翼蒙古族自治县"},{value:"211381",label:"北票市"},{value:"211382",label:"凌源市"}],value:"211300",label:"朝阳市"},{children:[{value:"211401",label:"市辖区"},{value:"211402",label:"连山区"},{value:"211403",label:"龙港区"},{value:"211404",label:"南票区"},{value:"211421",label:"绥中县"},{value:"211422",label:"建昌县"},{value:"211481",label:"兴城市"}],value:"211400",label:"葫芦岛市"}],value:"210000",label:"辽宁省"},{children:[{children:[{value:"220101",label:"市辖区"},{value:"220102",label:"南关区"},{value:"220103",label:"宽城区"},{value:"220104",label:"朝阳区"},{value:"220105",label:"二道区"},{value:"220106",label:"绿园区"},{value:"220112",label:"双阳区"},{value:"220122",label:"农安县"},{value:"220181",label:"九台市"},{value:"220182",label:"榆树市"},{value:"220183",label:"德惠市"}],value:"220100",label:"长春市"},{children:[{value:"220201",label:"市辖区"},{value:"220202",label:"昌邑区"},{value:"220203",label:"龙潭区"},{value:"220204",label:"船营区"},{value:"220211",label:"丰满区"},{value:"220221",label:"永吉县"},{value:"220281",label:"蛟河市"},{value:"220282",label:"桦甸市"},{value:"220283",label:"舒兰市"},{value:"220284",label:"磐石市"}],value:"220200",label:"吉林市"},{children:[{value:"220301",label:"市辖区"},{value:"220302",label:"铁西区"},{value:"220303",label:"铁东区"},{value:"220322",label:"梨树县"},{value:"220323",label:"伊通满族自治县"},{value:"220381",label:"公主岭市"},{value:"220382",label:"双辽市"}],value:"220300",label:"四平市"},{children:[{value:"220401",label:"市辖区"},{value:"220402",label:"龙山区"},{value:"220403",label:"西安区"},{value:"220421",label:"东丰县"},{value:"220422",label:"东辽县"}],value:"220400",label:"辽源市"},{children:[{value:"220501",label:"市辖区"},{value:"220502",label:"东昌区"},{value:"220503",label:"二道江区"},{value:"220521",label:"通化县"},{value:"220523",label:"辉南县"},{value:"220524",label:"柳河县"},{value:"220581",label:"梅河口市"},{value:"220582",label:"集安市"}],value:"220500",label:"通化市"},{children:[{value:"220601",label:"市辖区"},{value:"220602",label:"浑江区"},{value:"220605",label:"江源区"},{value:"220621",label:"抚松县"},{value:"220622",label:"靖宇县"},{value:"220623",label:"长白朝鲜族自治县"},{value:"220681",label:"临江市"}],value:"220600",label:"白山市"},{children:[{value:"220701",label:"市辖区"},{value:"220702",label:"宁江区"},{value:"220721",label:"前郭尔罗斯蒙古族自治县"},{value:"220722",label:"长岭县"},{value:"220723",label:"乾安县"},{value:"220781",label:"扶余市"}],value:"220700",label:"松原市"},{children:[{value:"220801",label:"市辖区"},{value:"220802",label:"洮北区"},{value:"220821",label:"镇赉县"},{value:"220822",label:"通榆县"},{value:"220881",label:"洮南市"},{value:"220882",label:"大安市"}],value:"220800",label:"白城市"},{children:[{value:"222401",label:"延吉市"},{value:"222402",label:"图们市"},{value:"222403",label:"敦化市"},{value:"222404",label:"珲春市"},{value:"222405",label:"龙井市"},{value:"222406",label:"和龙市"},{value:"222424",label:"汪清县"},{value:"222426",label:"安图县"}],value:"222400",label:"延边朝鲜族自治州"}],value:"220000",label:"吉林省"},{children:[{children:[{value:"230101",label:"市辖区"},{value:"230102",label:"道里区"},{value:"230103",label:"南岗区"},{value:"230104",label:"道外区"},{value:"230108",label:"平房区"},{value:"230109",label:"松北区"},{value:"230110",label:"香坊区"},{value:"230111",label:"呼兰区"},{value:"230112",label:"阿城区"},{value:"230123",label:"依兰县"},{value:"230124",label:"方正县"},{value:"230125",label:"宾县"},{value:"230126",label:"巴彦县"},{value:"230127",label:"木兰县"},{value:"230128",label:"通河县"},{value:"230129",label:"延寿县"},{value:"230182",label:"双城市"},{value:"230183",label:"尚志市"},{value:"230184",label:"五常市"}],value:"230100",label:"哈尔滨市"},{children:[{value:"230201",label:"市辖区"},{value:"230202",label:"龙沙区"},{value:"230203",label:"建华区"},{value:"230204",label:"铁锋区"},{value:"230205",label:"昂昂溪区"},{value:"230206",label:"富拉尔基区"},{value:"230207",label:"碾子山区"},{value:"230208",label:"梅里斯达斡尔族区"},{value:"230221",label:"龙江县"},{value:"230223",label:"依安县"},{value:"230224",label:"泰来县"},{value:"230225",label:"甘南县"},{value:"230227",label:"富裕县"},{value:"230229",label:"克山县"},{value:"230230",label:"克东县"},{value:"230231",label:"拜泉县"},{value:"230281",label:"讷河市"}],value:"230200",label:"齐齐哈尔市"},{children:[{value:"230301",label:"市辖区"},{value:"230302",label:"鸡冠区"},{value:"230303",label:"恒山区"},{value:"230304",label:"滴道区"},{value:"230305",label:"梨树区"},{value:"230306",label:"城子河区"},{value:"230307",label:"麻山区"},{value:"230321",label:"鸡东县"},{value:"230381",label:"虎林市"},{value:"230382",label:"密山市"}],value:"230300",label:"鸡西市"},{children:[{value:"230401",label:"市辖区"},{value:"230402",label:"向阳区"},{value:"230403",label:"工农区"},{value:"230404",label:"南山区"},{value:"230405",label:"兴安区"},{value:"230406",label:"东山区"},{value:"230407",label:"兴山区"},{value:"230421",label:"萝北县"},{value:"230422",label:"绥滨县"}],value:"230400",label:"鹤岗市"},{children:[{value:"230501",label:"市辖区"},{value:"230502",label:"尖山区"},{value:"230503",label:"岭东区"},{value:"230505",label:"四方台区"},{value:"230506",label:"宝山区"},{value:"230521",label:"集贤县"},{value:"230522",label:"友谊县"},{value:"230523",label:"宝清县"},{value:"230524",label:"饶河县"}],value:"230500",label:"双鸭山市"},{children:[{value:"230601",label:"市辖区"},{value:"230602",label:"萨尔图区"},{value:"230603",label:"龙凤区"},{value:"230604",label:"让胡路区"},{value:"230605",label:"红岗区"},{value:"230606",label:"大同区"},{value:"230621",label:"肇州县"},{value:"230622",label:"肇源县"},{value:"230623",label:"林甸县"},{value:"230624",label:"杜尔伯特蒙古族自治县"}],value:"230600",label:"大庆市"},{children:[{value:"230701",label:"市辖区"},{value:"230702",label:"伊春区"},{value:"230703",label:"南岔区"},{value:"230704",label:"友好区"},{value:"230705",label:"西林区"},{value:"230706",label:"翠峦区"},{value:"230707",label:"新青区"},{value:"230708",label:"美溪区"},{value:"230709",label:"金山屯区"},{value:"230710",label:"五营区"},{value:"230711",label:"乌马河区"},{value:"230712",label:"汤旺河区"},{value:"230713",label:"带岭区"},{value:"230714",label:"乌伊岭区"},{value:"230715",label:"红星区"},{value:"230716",label:"上甘岭区"},{value:"230722",label:"嘉荫县"},{value:"230781",label:"铁力市"}],value:"230700",label:"伊春市"},{children:[{value:"230801",label:"市辖区"},{value:"230803",label:"向阳区"},{value:"230804",label:"前进区"},{value:"230805",label:"东风区"},{value:"230811",label:"郊区"},{value:"230822",label:"桦南县"},{value:"230826",label:"桦川县"},{value:"230828",label:"汤原县"},{value:"230833",label:"抚远县"},{value:"230881",label:"同江市"},{value:"230882",label:"富锦市"}],value:"230800",label:"佳木斯市"},{children:[{value:"230901",label:"市辖区"},{value:"230902",label:"新兴区"},{value:"230903",label:"桃山区"},{value:"230904",label:"茄子河区"},{value:"230921",label:"勃利县"}],value:"230900",label:"七台河市"},{children:[{value:"231001",label:"市辖区"},{value:"231002",label:"东安区"},{value:"231003",label:"阳明区"},{value:"231004",label:"爱民区"},{value:"231005",label:"西安区"},{value:"231024",label:"东宁县"},{value:"231025",label:"林口县"},{value:"231081",label:"绥芬河市"},{value:"231083",label:"海林市"},{value:"231084",label:"宁安市"},{value:"231085",label:"穆棱市"}],value:"231000",label:"牡丹江市"},{children:[{value:"231101",label:"市辖区"},{value:"231102",label:"爱辉区"},{value:"231121",label:"嫩江县"},{value:"231123",label:"逊克县"},{value:"231124",label:"孙吴县"},{value:"231181",label:"北安市"},{value:"231182",label:"五大连池市"}],value:"231100",label:"黑河市"},{children:[{value:"231201",label:"市辖区"},{value:"231202",label:"北林区"},{value:"231221",label:"望奎县"},{value:"231222",label:"兰西县"},{value:"231223",label:"青冈县"},{value:"231224",label:"庆安县"},{value:"231225",label:"明水县"},{value:"231226",label:"绥棱县"},{value:"231281",label:"安达市"},{value:"231282",label:"肇东市"},{value:"231283",label:"海伦市"}],value:"231200",label:"绥化市"},{children:[{value:"232721",label:"呼玛县"},{value:"232722",label:"塔河县"},{value:"232723",label:"漠河县"}],value:"232700",label:"大兴安岭地区"}],value:"230000",label:"黑龙江省"},{children:[{children:[{value:"310101",label:"黄浦区"},{value:"310104",label:"徐汇区"},{value:"310105",label:"长宁区"},{value:"310106",label:"静安区"},{value:"310107",label:"普陀区"},{value:"310108",label:"闸北区"},{value:"310109",label:"虹口区"},{value:"310110",label:"杨浦区"},{value:"310112",label:"闵行区"},{value:"310113",label:"宝山区"},{value:"310114",label:"嘉定区"},{value:"310115",label:"浦东新区"},{value:"310116",label:"金山区"},{value:"310117",label:"松江区"},{value:"310118",label:"青浦区"},{value:"310120",label:"奉贤区"}],value:"310100",label:"市辖区"},{children:[{value:"310230",label:"崇明县"}],value:"310200",label:"县"}],value:"310000",label:"上海市"},{children:[{children:[{value:"320101",label:"市辖区"},{value:"320102",label:"玄武区"},{value:"320104",label:"秦淮区"},{value:"320105",label:"建邺区"},{value:"320106",label:"鼓楼区"},{value:"320111",label:"浦口区"},{value:"320113",label:"栖霞区"},{value:"320114",label:"雨花台区"},{value:"320115",label:"江宁区"},{value:"320116",label:"六合区"},{value:"320117",label:"溧水区"},{value:"320118",label:"高淳区"}],value:"320100",label:"南京市"},{children:[{value:"320201",label:"市辖区"},{value:"320202",label:"崇安区"},{value:"320203",label:"南长区"},{value:"320204",label:"北塘区"},{value:"320205",label:"锡山区"},{value:"320206",label:"惠山区"},{value:"320211",label:"滨湖区"},{value:"320281",label:"江阴市"},{value:"320282",label:"宜兴市"}],value:"320200",label:"无锡市"},{children:[{value:"320301",label:"市辖区"},{value:"320302",label:"鼓楼区"},{value:"320303",label:"云龙区"},{value:"320305",label:"贾汪区"},{value:"320311",label:"泉山区"},{value:"320312",label:"铜山区"},{value:"320321",label:"丰县"},{value:"320322",label:"沛县"},{value:"320324",label:"睢宁县"},{value:"320381",label:"新沂市"},{value:"320382",label:"邳州市"}],value:"320300",label:"徐州市"},{children:[{value:"320401",label:"市辖区"},{value:"320402",label:"天宁区"},{value:"320404",label:"钟楼区"},{value:"320405",label:"戚墅堰区"},{value:"320411",label:"新北区"},{value:"320412",label:"武进区"},{value:"320481",label:"溧阳市"},{value:"320482",label:"金坛市"}],value:"320400",label:"常州市"},{children:[{value:"320501",label:"市辖区"},{value:"320505",label:"虎丘区"},{value:"320506",label:"吴中区"},{value:"320507",label:"相城区"},{value:"320508",label:"姑苏区"},{value:"320509",label:"吴江区"},{value:"320581",label:"常熟市"},{value:"320582",label:"张家港市"},{value:"320583",label:"昆山市"},{value:"320585",label:"太仓市"}],value:"320500",label:"苏州市"},{children:[{value:"320601",label:"市辖区"},{value:"320602",label:"崇川区"},{value:"320611",label:"港闸区"},{value:"320612",label:"通州区"},{value:"320621",label:"海安县"},{value:"320623",label:"如东县"},{value:"320681",label:"启东市"},{value:"320682",label:"如皋市"},{value:"320684",label:"海门市"}],value:"320600",label:"南通市"},{children:[{value:"320701",label:"市辖区"},{value:"320703",label:"连云区"},{value:"320705",label:"新浦区"},{value:"320706",label:"海州区"},{value:"320721",label:"赣榆县"},{value:"320722",label:"东海县"},{value:"320723",label:"灌云县"},{value:"320724",label:"灌南县"}],value:"320700",label:"连云港市"},{children:[{value:"320801",label:"市辖区"},{value:"320802",label:"清河区"},{value:"320803",label:"淮安区"},{value:"320804",label:"淮阴区"},{value:"320811",label:"清浦区"},{value:"320826",label:"涟水县"},{value:"320829",label:"洪泽县"},{value:"320830",label:"盱眙县"},{value:"320831",label:"金湖县"}],value:"320800",label:"淮安市"},{children:[{value:"320901",label:"市辖区"},{value:"320902",label:"亭湖区"},{value:"320903",label:"盐都区"},{value:"320921",label:"响水县"},{value:"320922",label:"滨海县"},{value:"320923",label:"阜宁县"},{value:"320924",label:"射阳县"},{value:"320925",label:"建湖县"},{value:"320981",label:"东台市"},{value:"320982",label:"大丰市"}],value:"320900",label:"盐城市"},{children:[{value:"321001",label:"市辖区"},{value:"321002",label:"广陵区"},{value:"321003",label:"邗江区"},{value:"321012",label:"江都区"},{value:"321023",label:"宝应县"},{value:"321081",label:"仪征市"},{value:"321084",label:"高邮市"}],value:"321000",label:"扬州市"},{children:[{value:"321101",label:"市辖区"},{value:"321102",label:"京口区"},{value:"321111",label:"润州区"},{value:"321112",label:"丹徒区"},{value:"321181",label:"丹阳市"},{value:"321182",label:"扬中市"},{value:"321183",label:"句容市"}],value:"321100",label:"镇江市"},{children:[{value:"321201",label:"市辖区"},{value:"321202",label:"海陵区"},{value:"321203",label:"高港区"},{value:"321204",label:"姜堰区"},{value:"321281",label:"兴化市"},{value:"321282",label:"靖江市"},{value:"321283",label:"泰兴市"}],value:"321200",label:"泰州市"},{children:[{value:"321301",label:"市辖区"},{value:"321302",label:"宿城区"},{value:"321311",label:"宿豫区"},{value:"321322",label:"沭阳县"},{value:"321323",label:"泗阳县"},{value:"321324",label:"泗洪县"}],value:"321300",label:"宿迁市"}],value:"320000",label:"江苏省"},{children:[{children:[{value:"330101",label:"市辖区"},{value:"330102",label:"上城区"},{value:"330103",label:"下城区"},{value:"330104",label:"江干区"},{value:"330105",label:"拱墅区"},{value:"330106",label:"西湖区"},{value:"330108",label:"滨江区"},{value:"330109",label:"萧山区"},{value:"330110",label:"余杭区"},{value:"330122",label:"桐庐县"},{value:"330127",label:"淳安县"},{value:"330182",label:"建德市"},{value:"330183",label:"富阳市"},{value:"330185",label:"临安市"}],value:"330100",label:"杭州市"},{children:[{value:"330201",label:"市辖区"},{value:"330203",label:"海曙区"},{value:"330204",label:"江东区"},{value:"330205",label:"江北区"},{value:"330206",label:"北仑区"},{value:"330211",label:"镇海区"},{value:"330212",label:"鄞州区"},{value:"330225",label:"象山县"},{value:"330226",label:"宁海县"},{value:"330281",label:"余姚市"},{value:"330282",label:"慈溪市"},{value:"330283",label:"奉化市"}],value:"330200",label:"宁波市"},{children:[{value:"330301",label:"市辖区"},{value:"330302",label:"鹿城区"},{value:"330303",label:"龙湾区"},{value:"330304",label:"瓯海区"},{value:"330322",label:"洞头县"},{value:"330324",label:"永嘉县"},{value:"330326",label:"平阳县"},{value:"330327",label:"苍南县"},{value:"330328",label:"文成县"},{value:"330329",label:"泰顺县"},{value:"330381",label:"瑞安市"},{value:"330382",label:"乐清市"}],value:"330300",label:"温州市"},{children:[{value:"330401",label:"市辖区"},{value:"330402",label:"南湖区"},{value:"330411",label:"秀洲区"},{value:"330421",label:"嘉善县"},{value:"330424",label:"海盐县"},{value:"330481",label:"海宁市"},{value:"330482",label:"平湖市"},{value:"330483",label:"桐乡市"}],value:"330400",label:"嘉兴市"},{children:[{value:"330501",label:"市辖区"},{value:"330502",label:"吴兴区"},{value:"330503",label:"南浔区"},{value:"330521",label:"德清县"},{value:"330522",label:"长兴县"},{value:"330523",label:"安吉县"}],value:"330500",label:"湖州市"},{children:[{value:"330601",label:"市辖区"},{value:"330602",label:"越城区"},{value:"330621",label:"绍兴县"},{value:"330624",label:"新昌县"},{value:"330681",label:"诸暨市"},{value:"330682",label:"上虞市"},{value:"330683",label:"嵊州市"}],value:"330600",label:"绍兴市"},{children:[{value:"330701",label:"市辖区"},{value:"330702",label:"婺城区"},{value:"330703",label:"金东区"},{value:"330723",label:"武义县"},{value:"330726",label:"浦江县"},{value:"330727",label:"磐安县"},{value:"330781",label:"兰溪市"},{value:"330782",label:"义乌市"},{value:"330783",label:"东阳市"},{value:"330784",label:"永康市"}],value:"330700",label:"金华市"},{children:[{value:"330801",label:"市辖区"},{value:"330802",label:"柯城区"},{value:"330803",label:"衢江区"},{value:"330822",label:"常山县"},{value:"330824",label:"开化县"},{value:"330825",label:"龙游县"},{value:"330881",label:"江山市"}],value:"330800",label:"衢州市"},{children:[{value:"330901",label:"市辖区"},{value:"330902",label:"定海区"},{value:"330903",label:"普陀区"},{value:"330921",label:"岱山县"},{value:"330922",label:"嵊泗县"}],value:"330900",label:"舟山市"},{children:[{value:"331001",label:"市辖区"},{value:"331002",label:"椒江区"},{value:"331003",label:"黄岩区"},{value:"331004",label:"路桥区"},{value:"331021",label:"玉环县"},{value:"331022",label:"三门县"},{value:"331023",label:"天台县"},{value:"331024",label:"仙居县"},{value:"331081",label:"温岭市"},{value:"331082",label:"临海市"}],value:"331000",label:"台州市"},{children:[{value:"331101",label:"市辖区"},{value:"331102",label:"莲都区"},{value:"331121",label:"青田县"},{value:"331122",label:"缙云县"},{value:"331123",label:"遂昌县"},{value:"331124",label:"松阳县"},{value:"331125",label:"云和县"},{value:"331126",label:"庆元县"},{value:"331127",label:"景宁畲族自治县"},{value:"331181",label:"龙泉市"}],value:"331100",label:"丽水市"}],value:"330000",label:"浙江省"},{children:[{children:[{value:"340101",label:"市辖区"},{value:"340102",label:"瑶海区"},{value:"340103",label:"庐阳区"},{value:"340104",label:"蜀山区"},{value:"340111",label:"包河区"},{value:"340121",label:"长丰县"},{value:"340122",label:"肥东县"},{value:"340123",label:"肥西县"},{value:"340124",label:"庐江县"},{value:"340181",label:"巢湖市"}],value:"340100",label:"合肥市"},{children:[{value:"340201",label:"市辖区"},{value:"340202",label:"镜湖区"},{value:"340203",label:"弋江区"},{value:"340207",label:"鸠江区"},{value:"340208",label:"三山区"},{value:"340221",label:"芜湖县"},{value:"340222",label:"繁昌县"},{value:"340223",label:"南陵县"},{value:"340225",label:"无为县"}],value:"340200",label:"芜湖市"},{children:[{value:"340301",label:"市辖区"},{value:"340302",label:"龙子湖区"},{value:"340303",label:"蚌山区"},{value:"340304",label:"禹会区"},{value:"340311",label:"淮上区"},{value:"340321",label:"怀远县"},{value:"340322",label:"五河县"},{value:"340323",label:"固镇县"}],value:"340300",label:"蚌埠市"},{children:[{value:"340401",label:"市辖区"},{value:"340402",label:"大通区"},{value:"340403",label:"田家庵区"},{value:"340404",label:"谢家集区"},{value:"340405",label:"八公山区"},{value:"340406",label:"潘集区"},{value:"340421",label:"凤台县"}],value:"340400",label:"淮南市"},{children:[{value:"340501",label:"市辖区"},{value:"340503",label:"花山区"},{value:"340504",label:"雨山区"},{value:"340506",label:"博望区"},{value:"340521",label:"当涂县"},{value:"340522",label:"含山县"},{value:"340523",label:"和县"}],value:"340500",label:"马鞍山市"},{children:[{value:"340601",label:"市辖区"},{value:"340602",label:"杜集区"},{value:"340603",label:"相山区"},{value:"340604",label:"烈山区"},{value:"340621",label:"濉溪县"}],value:"340600",label:"淮北市"},{children:[{value:"340701",label:"市辖区"},{value:"340702",label:"铜官山区"},{value:"340703",label:"狮子山区"},{value:"340711",label:"郊区"},{value:"340721",label:"铜陵县"}],value:"340700",label:"铜陵市"},{children:[{value:"340801",label:"市辖区"},{value:"340802",label:"迎江区"},{value:"340803",label:"大观区"},{value:"340811",label:"宜秀区"},{value:"340822",label:"怀宁县"},{value:"340823",label:"枞阳县"},{value:"340824",label:"潜山县"},{value:"340825",label:"太湖县"},{value:"340826",label:"宿松县"},{value:"340827",label:"望江县"},{value:"340828",label:"岳西县"},{value:"340881",label:"桐城市"}],value:"340800",label:"安庆市"},{children:[{value:"341001",label:"市辖区"},{value:"341002",label:"屯溪区"},{value:"341003",label:"黄山区"},{value:"341004",label:"徽州区"},{value:"341021",label:"歙县"},{value:"341022",label:"休宁县"},{value:"341023",label:"黟县"},{value:"341024",label:"祁门县"}],value:"341000",label:"黄山市"},{children:[{value:"341101",label:"市辖区"},{value:"341102",label:"琅琊区"},{value:"341103",label:"南谯区"},{value:"341122",label:"来安县"},{value:"341124",label:"全椒县"},{value:"341125",label:"定远县"},{value:"341126",label:"凤阳县"},{value:"341181",label:"天长市"},{value:"341182",label:"明光市"}],value:"341100",label:"滁州市"},{children:[{value:"341201",label:"市辖区"},{value:"341202",label:"颍州区"},{value:"341203",label:"颍东区"},{value:"341204",label:"颍泉区"},{value:"341221",label:"临泉县"},{value:"341222",label:"太和县"},{value:"341225",label:"阜南县"},{value:"341226",label:"颍上县"},{value:"341282",label:"界首市"}],value:"341200",label:"阜阳市"},{children:[{value:"341301",label:"市辖区"},{value:"341302",label:"埇桥区"},{value:"341321",label:"砀山县"},{value:"341322",label:"萧县"},{value:"341323",label:"灵璧县"},{value:"341324",label:"泗县"}],value:"341300",label:"宿州市"},{children:[{value:"341501",label:"市辖区"},{value:"341502",label:"金安区"},{value:"341503",label:"裕安区"},{value:"341521",label:"寿县"},{value:"341522",label:"霍邱县"},{value:"341523",label:"舒城县"},{value:"341524",label:"金寨县"},{value:"341525",label:"霍山县"}],value:"341500",label:"六安市"},{children:[{value:"341601",label:"市辖区"},{value:"341602",label:"谯城区"},{value:"341621",label:"涡阳县"},{value:"341622",label:"蒙城县"},{value:"341623",label:"利辛县"}],value:"341600",label:"亳州市"},{children:[{value:"341701",label:"市辖区"},{value:"341702",label:"贵池区"},{value:"341721",label:"东至县"},{value:"341722",label:"石台县"},{value:"341723",label:"青阳县"}],value:"341700",label:"池州市"},{children:[{value:"341801",label:"市辖区"},{value:"341802",label:"宣州区"},{value:"341821",label:"郎溪县"},{value:"341822",label:"广德县"},{value:"341823",label:"泾县"},{value:"341824",label:"绩溪县"},{value:"341825",label:"旌德县"},{value:"341881",label:"宁国市"}],value:"341800",label:"宣城市"}],value:"340000",label:"安徽省"},{children:[{children:[{value:"350101",label:"市辖区"},{value:"350102",label:"鼓楼区"},{value:"350103",label:"台江区"},{value:"350104",label:"仓山区"},{value:"350105",label:"马尾区"},{value:"350111",label:"晋安区"},{value:"350121",label:"闽侯县"},{value:"350122",label:"连江县"},{value:"350123",label:"罗源县"},{value:"350124",label:"闽清县"},{value:"350125",label:"永泰县"},{value:"350128",label:"平潭县"},{value:"350181",label:"福清市"},{value:"350182",label:"长乐市"}],value:"350100",label:"福州市"},{children:[{value:"350201",label:"市辖区"},{value:"350203",label:"思明区"},{value:"350205",label:"海沧区"},{value:"350206",label:"湖里区"},{value:"350211",label:"集美区"},{value:"350212",label:"同安区"},{value:"350213",label:"翔安区"}],value:"350200",label:"厦门市"},{children:[{value:"350301",label:"市辖区"},{value:"350302",label:"城厢区"},{value:"350303",label:"涵江区"},{value:"350304",label:"荔城区"},{value:"350305",label:"秀屿区"},{value:"350322",label:"仙游县"}],value:"350300",label:"莆田市"},{children:[{value:"350401",label:"市辖区"},{value:"350402",label:"梅列区"},{value:"350403",label:"三元区"},{value:"350421",label:"明溪县"},{value:"350423",label:"清流县"},{value:"350424",label:"宁化县"},{value:"350425",label:"大田县"},{value:"350426",label:"尤溪县"},{value:"350427",label:"沙县"},{value:"350428",label:"将乐县"},{value:"350429",label:"泰宁县"},{value:"350430",label:"建宁县"},{value:"350481",label:"永安市"}],value:"350400",label:"三明市"},{children:[{value:"350501",label:"市辖区"},{value:"350502",label:"鲤城区"},{value:"350503",label:"丰泽区"},{value:"350504",label:"洛江区"},{value:"350505",label:"泉港区"},{value:"350521",label:"惠安县"},{value:"350524",label:"安溪县"},{value:"350525",label:"永春县"},{value:"350526",label:"德化县"},{value:"350527",label:"金门县"},{value:"350581",label:"石狮市"},{value:"350582",label:"晋江市"},{value:"350583",label:"南安市"}],value:"350500",label:"泉州市"},{children:[{value:"350601",label:"市辖区"},{value:"350602",label:"芗城区"},{value:"350603",label:"龙文区"},{value:"350622",label:"云霄县"},{value:"350623",label:"漳浦县"},{value:"350624",label:"诏安县"},{value:"350625",label:"长泰县"},{value:"350626",label:"东山县"},{value:"350627",label:"南靖县"},{value:"350628",label:"平和县"},{value:"350629",label:"华安县"},{value:"350681",label:"龙海市"}],value:"350600",label:"漳州市"},{children:[{value:"350701",label:"市辖区"},{value:"350702",label:"延平区"},{value:"350721",label:"顺昌县"},{value:"350722",label:"浦城县"},{value:"350723",label:"光泽县"},{value:"350724",label:"松溪县"},{value:"350725",label:"政和县"},{value:"350781",label:"邵武市"},{value:"350782",label:"武夷山市"},{value:"350783",label:"建瓯市"},{value:"350784",label:"建阳市"}],value:"350700",label:"南平市"},{children:[{value:"350801",label:"市辖区"},{value:"350802",label:"新罗区"},{value:"350821",label:"长汀县"},{value:"350822",label:"永定县"},{value:"350823",label:"上杭县"},{value:"350824",label:"武平县"},{value:"350825",label:"连城县"},{value:"350881",label:"漳平市"}],value:"350800",label:"龙岩市"},{children:[{value:"350901",label:"市辖区"},{value:"350902",label:"蕉城区"},{value:"350921",label:"霞浦县"},{value:"350922",label:"古田县"},{value:"350923",label:"屏南县"},{value:"350924",label:"寿宁县"},{value:"350925",label:"周宁县"},{value:"350926",label:"柘荣县"},{value:"350981",label:"福安市"},{value:"350982",label:"福鼎市"}],value:"350900",label:"宁德市"}],value:"350000",label:"福建省"},{children:[{children:[{value:"360101",label:"市辖区"},{value:"360102",label:"东湖区"},{value:"360103",label:"西湖区"},{value:"360104",label:"青云谱区"},{value:"360105",label:"湾里区"},{value:"360111",label:"青山湖区"},{value:"360121",label:"南昌县"},{value:"360122",label:"新建县"},{value:"360123",label:"安义县"},{value:"360124",label:"进贤县"}],value:"360100",label:"南昌市"},{children:[{value:"360201",label:"市辖区"},{value:"360202",label:"昌江区"},{value:"360203",label:"珠山区"},{value:"360222",label:"浮梁县"},{value:"360281",label:"乐平市"}],value:"360200",label:"景德镇市"},{children:[{value:"360301",label:"市辖区"},{value:"360302",label:"安源区"},{value:"360313",label:"湘东区"},{value:"360321",label:"莲花县"},{value:"360322",label:"上栗县"},{value:"360323",label:"芦溪县"}],value:"360300",label:"萍乡市"},{children:[{value:"360401",label:"市辖区"},{value:"360402",label:"庐山区"},{value:"360403",label:"浔阳区"},{value:"360421",label:"九江县"},{value:"360423",label:"武宁县"},{value:"360424",label:"修水县"},{value:"360425",label:"永修县"},{value:"360426",label:"德安县"},{value:"360427",label:"星子县"},{value:"360428",label:"都昌县"},{value:"360429",label:"湖口县"},{value:"360430",label:"彭泽县"},{value:"360481",label:"瑞昌市"},{value:"360482",label:"共青城市"}],value:"360400",label:"九江市"},{children:[{value:"360501",label:"市辖区"},{value:"360502",label:"渝水区"},{value:"360521",label:"分宜县"}],value:"360500",label:"新余市"},{children:[{value:"360601",label:"市辖区"},{value:"360602",label:"月湖区"},{value:"360622",label:"余江县"},{value:"360681",label:"贵溪市"}],value:"360600",label:"鹰潭市"},{children:[{value:"360701",label:"市辖区"},{value:"360702",label:"章贡区"},{value:"360721",label:"赣县"},{value:"360722",label:"信丰县"},{value:"360723",label:"大余县"},{value:"360724",label:"上犹县"},{value:"360725",label:"崇义县"},{value:"360726",label:"安远县"},{value:"360727",label:"龙南县"},{value:"360728",label:"定南县"},{value:"360729",label:"全南县"},{value:"360730",label:"宁都县"},{value:"360731",label:"于都县"},{value:"360732",label:"兴国县"},{value:"360733",label:"会昌县"},{value:"360734",label:"寻乌县"},{value:"360735",label:"石城县"},{value:"360781",label:"瑞金市"},{value:"360782",label:"南康市"}],value:"360700",label:"赣州市"},{children:[{value:"360801",label:"市辖区"},{value:"360802",label:"吉州区"},{value:"360803",label:"青原区"},{value:"360821",label:"吉安县"},{value:"360822",label:"吉水县"},{value:"360823",label:"峡江县"},{value:"360824",label:"新干县"},{value:"360825",label:"永丰县"},{value:"360826",label:"泰和县"},{value:"360827",label:"遂川县"},{value:"360828",label:"万安县"},{value:"360829",label:"安福县"},{value:"360830",label:"永新县"},{value:"360881",label:"井冈山市"}],value:"360800",label:"吉安市"},{children:[{value:"360901",label:"市辖区"},{value:"360902",label:"袁州区"},{value:"360921",label:"奉新县"},{value:"360922",label:"万载县"},{value:"360923",label:"上高县"},{value:"360924",label:"宜丰县"},{value:"360925",label:"靖安县"},{value:"360926",label:"铜鼓县"},{value:"360981",label:"丰城市"},{value:"360982",label:"樟树市"},{value:"360983",label:"高安市"}],value:"360900",label:"宜春市"},{children:[{value:"361001",label:"市辖区"},{value:"361002",label:"临川区"},{value:"361021",label:"南城县"},{value:"361022",label:"黎川县"},{value:"361023",label:"南丰县"},{value:"361024",label:"崇仁县"},{value:"361025",label:"乐安县"},{value:"361026",label:"宜黄县"},{value:"361027",label:"金溪县"},{value:"361028",label:"资溪县"},{value:"361029",label:"东乡县"},{value:"361030",label:"广昌县"}],value:"361000",label:"抚州市"},{children:[{value:"361101",label:"市辖区"},{value:"361102",label:"信州区"},{value:"361121",label:"上饶县"},{value:"361122",label:"广丰县"},{value:"361123",label:"玉山县"},{value:"361124",label:"铅山县"},{value:"361125",label:"横峰县"},{value:"361126",label:"弋阳县"},{value:"361127",label:"余干县"},{value:"361128",label:"鄱阳县"},{value:"361129",label:"万年县"},{value:"361130",label:"婺源县"},{value:"361181",label:"德兴市"}],value:"361100",label:"上饶市"}],value:"360000",label:"江西省"},{children:[{children:[{value:"370101",label:"市辖区"},{value:"370102",label:"历下区"},{value:"370103",label:"市中区"},{value:"370104",label:"槐荫区"},{value:"370105",label:"天桥区"},{value:"370112",label:"历城区"},{value:"370113",label:"长清区"},{value:"370124",label:"平阴县"},{value:"370125",label:"济阳县"},{value:"370126",label:"商河县"},{value:"370181",label:"章丘市"}],value:"370100",label:"济南市"},{children:[{value:"370201",label:"市辖区"},{value:"370202",label:"市南区"},{value:"370203",label:"市北区"},{value:"370211",label:"黄岛区"},{value:"370212",label:"崂山区"},{value:"370213",label:"李沧区"},{value:"370214",label:"城阳区"},{value:"370281",label:"胶州市"},{value:"370282",label:"即墨市"},{value:"370283",label:"平度市"},{value:"370285",label:"莱西市"}],value:"370200",label:"青岛市"},{children:[{value:"370301",label:"市辖区"},{value:"370302",label:"淄川区"},{value:"370303",label:"张店区"},{value:"370304",label:"博山区"},{value:"370305",label:"临淄区"},{value:"370306",label:"周村区"},{value:"370321",label:"桓台县"},{value:"370322",label:"高青县"},{value:"370323",label:"沂源县"}],value:"370300",label:"淄博市"},{children:[{value:"370401",label:"市辖区"},{value:"370402",label:"市中区"},{value:"370403",label:"薛城区"},{value:"370404",label:"峄城区"},{value:"370405",label:"台儿庄区"},{value:"370406",label:"山亭区"},{value:"370481",label:"滕州市"}],value:"370400",label:"枣庄市"},{children:[{value:"370501",label:"市辖区"},{value:"370502",label:"东营区"},{value:"370503",label:"河口区"},{value:"370521",label:"垦利县"},{value:"370522",label:"利津县"},{value:"370523",label:"广饶县"}],value:"370500",label:"东营市"},{children:[{value:"370601",label:"市辖区"},{value:"370602",label:"芝罘区"},{value:"370611",label:"福山区"},{value:"370612",label:"牟平区"},{value:"370613",label:"莱山区"},{value:"370634",label:"长岛县"},{value:"370681",label:"龙口市"},{value:"370682",label:"莱阳市"},{value:"370683",label:"莱州市"},{value:"370684",label:"蓬莱市"},{value:"370685",label:"招远市"},{value:"370686",label:"栖霞市"},{value:"370687",label:"海阳市"}],value:"370600",label:"烟台市"},{children:[{value:"370701",label:"市辖区"},{value:"370702",label:"潍城区"},{value:"370703",label:"寒亭区"},{value:"370704",label:"坊子区"},{value:"370705",label:"奎文区"},{value:"370724",label:"临朐县"},{value:"370725",label:"昌乐县"},{value:"370781",label:"青州市"},{value:"370782",label:"诸城市"},{value:"370783",label:"寿光市"},{value:"370784",label:"安丘市"},{value:"370785",label:"高密市"},{value:"370786",label:"昌邑市"}],value:"370700",label:"潍坊市"},{children:[{value:"370801",label:"市辖区"},{value:"370802",label:"市中区"},{value:"370811",label:"任城区"},{value:"370826",label:"微山县"},{value:"370827",label:"鱼台县"},{value:"370828",label:"金乡县"},{value:"370829",label:"嘉祥县"},{value:"370830",label:"汶上县"},{value:"370831",label:"泗水县"},{value:"370832",label:"梁山县"},{value:"370881",label:"曲阜市"},{value:"370882",label:"兖州市"},{value:"370883",label:"邹城市"}],value:"370800",label:"济宁市"},{children:[{value:"370901",label:"市辖区"},{value:"370902",label:"泰山区"},{value:"370911",label:"岱岳区"},{value:"370921",label:"宁阳县"},{value:"370923",label:"东平县"},{value:"370982",label:"新泰市"},{value:"370983",label:"肥城市"}],value:"370900",label:"泰安市"},{children:[{value:"371001",label:"市辖区"},{value:"371002",label:"环翠区"},{value:"371081",label:"文登市"},{value:"371082",label:"荣成市"},{value:"371083",label:"乳山市"}],value:"371000",label:"威海市"},{children:[{value:"371101",label:"市辖区"},{value:"371102",label:"东港区"},{value:"371103",label:"岚山区"},{value:"371121",label:"五莲县"},{value:"371122",label:"莒县"}],value:"371100",label:"日照市"},{children:[{value:"371201",label:"市辖区"},{value:"371202",label:"莱城区"},{value:"371203",label:"钢城区"}],value:"371200",label:"莱芜市"},{children:[{value:"371301",label:"市辖区"},{value:"371302",label:"兰山区"},{value:"371311",label:"罗庄区"},{value:"371312",label:"河东区"},{value:"371321",label:"沂南县"},{value:"371322",label:"郯城县"},{value:"371323",label:"沂水县"},{value:"371324",label:"苍山县"},{value:"371325",label:"费县"},{value:"371326",label:"平邑县"},{value:"371327",label:"莒南县"},{value:"371328",label:"蒙阴县"},{value:"371329",label:"临沭县"}],value:"371300",label:"临沂市"},{children:[{value:"371401",label:"市辖区"},{value:"371402",label:"德城区"},{value:"371421",label:"陵县"},{value:"371422",label:"宁津县"},{value:"371423",label:"庆云县"},{value:"371424",label:"临邑县"},{value:"371425",label:"齐河县"},{value:"371426",label:"平原县"},{value:"371427",label:"夏津县"},{value:"371428",label:"武城县"},{value:"371481",label:"乐陵市"},{value:"371482",label:"禹城市"}],value:"371400",label:"德州市"},{children:[{value:"371501",label:"市辖区"},{value:"371502",label:"东昌府区"},{value:"371521",label:"阳谷县"},{value:"371522",label:"莘县"},{value:"371523",label:"茌平县"},{value:"371524",label:"东阿县"},{value:"371525",label:"冠县"},{value:"371526",label:"高唐县"},{value:"371581",label:"临清市"}],value:"371500",label:"聊城市"},{children:[{value:"371601",label:"市辖区"},{value:"371602",label:"滨城区"},{value:"371621",label:"惠民县"},{value:"371622",label:"阳信县"},{value:"371623",label:"无棣县"},{value:"371624",label:"沾化县"},{value:"371625",label:"博兴县"},{value:"371626",label:"邹平县"}],value:"371600",label:"滨州市"},{children:[{value:"371701",label:"市辖区"},{value:"371702",label:"牡丹区"},{value:"371721",label:"曹县"},{value:"371722",label:"单县"},{value:"371723",label:"成武县"},{value:"371724",label:"巨野县"},{value:"371725",label:"郓城县"},{value:"371726",label:"鄄城县"},{value:"371727",label:"定陶县"},{value:"371728",label:"东明县"}],value:"371700",label:"菏泽市"}],value:"370000",label:"山东省"},{children:[{children:[{value:"410101",label:"市辖区"},{value:"410102",label:"中原区"},{value:"410103",label:"二七区"},{value:"410104",label:"管城回族区"},{value:"410105",label:"金水区"},{value:"410106",label:"上街区"},{value:"410108",label:"惠济区"},{value:"410122",label:"中牟县"},{value:"410181",label:"巩义市"},{value:"410182",label:"荥阳市"},{value:"410183",label:"新密市"},{value:"410184",label:"新郑市"},{value:"410185",label:"登封市"}],value:"410100",label:"郑州市"},{children:[{value:"410201",label:"市辖区"},{value:"410202",label:"龙亭区"},{value:"410203",label:"顺河回族区"},{value:"410204",label:"鼓楼区"},{value:"410205",label:"禹王台区"},{value:"410211",label:"金明区"},{value:"410221",label:"杞县"},{value:"410222",label:"通许县"},{value:"410223",label:"尉氏县"},{value:"410224",label:"开封县"},{value:"410225",label:"兰考县"}],value:"410200",label:"开封市"},{children:[{value:"410301",label:"市辖区"},{value:"410302",label:"老城区"},{value:"410303",label:"西工区"},{value:"410304",label:"瀍河回族区"},{value:"410305",label:"涧西区"},{value:"410306",label:"吉利区"},{value:"410311",label:"洛龙区"},{value:"410322",label:"孟津县"},{value:"410323",label:"新安县"},{value:"410324",label:"栾川县"},{value:"410325",label:"嵩县"},{value:"410326",label:"汝阳县"},{value:"410327",label:"宜阳县"},{value:"410328",label:"洛宁县"},{value:"410329",label:"伊川县"},{value:"410381",label:"偃师市"}],value:"410300",label:"洛阳市"},{children:[{value:"410401",label:"市辖区"},{value:"410402",label:"新华区"},{value:"410403",label:"卫东区"},{value:"410404",label:"石龙区"},{value:"410411",label:"湛河区"},{value:"410421",label:"宝丰县"},{value:"410422",label:"叶县"},{value:"410423",label:"鲁山县"},{value:"410425",label:"郏县"},{value:"410481",label:"舞钢市"},{value:"410482",label:"汝州市"}],value:"410400",label:"平顶山市"},{children:[{value:"410501",label:"市辖区"},{value:"410502",label:"文峰区"},{value:"410503",label:"北关区"},{value:"410505",label:"殷都区"},{value:"410506",label:"龙安区"},{value:"410522",label:"安阳县"},{value:"410523",label:"汤阴县"},{value:"410526",label:"滑县"},{value:"410527",label:"内黄县"},{value:"410581",label:"林州市"}],value:"410500",label:"安阳市"},{children:[{value:"410601",label:"市辖区"},{value:"410602",label:"鹤山区"},{value:"410603",label:"山城区"},{value:"410611",label:"淇滨区"},{value:"410621",label:"浚县"},{value:"410622",label:"淇县"}],value:"410600",label:"鹤壁市"},{children:[{value:"410701",label:"市辖区"},{value:"410702",label:"红旗区"},{value:"410703",label:"卫滨区"},{value:"410704",label:"凤泉区"},{value:"410711",label:"牧野区"},{value:"410721",label:"新乡县"},{value:"410724",label:"获嘉县"},{value:"410725",label:"原阳县"},{value:"410726",label:"延津县"},{value:"410727",label:"封丘县"},{value:"410728",label:"长垣县"},{value:"410781",label:"卫辉市"},{value:"410782",label:"辉县市"}],value:"410700",label:"新乡市"},{children:[{value:"410801",label:"市辖区"},{value:"410802",label:"解放区"},{value:"410803",label:"中站区"},{value:"410804",label:"马村区"},{value:"410811",label:"山阳区"},{value:"410821",label:"修武县"},{value:"410822",label:"博爱县"},{value:"410823",label:"武陟县"},{value:"410825",label:"温县"},{value:"410882",label:"沁阳市"},{value:"410883",label:"孟州市"}],value:"410800",label:"焦作市"},{children:[{value:"410901",label:"市辖区"},{value:"410902",label:"华龙区"},{value:"410922",label:"清丰县"},{value:"410923",label:"南乐县"},{value:"410926",label:"范县"},{value:"410927",label:"台前县"},{value:"410928",label:"濮阳县"}],value:"410900",label:"濮阳市"},{children:[{value:"411001",label:"市辖区"},{value:"411002",label:"魏都区"},{value:"411023",label:"许昌县"},{value:"411024",label:"鄢陵县"},{value:"411025",label:"襄城县"},{value:"411081",label:"禹州市"},{value:"411082",label:"长葛市"}],value:"411000",label:"许昌市"},{children:[{value:"411101",label:"市辖区"},{value:"411102",label:"源汇区"},{value:"411103",label:"郾城区"},{value:"411104",label:"召陵区"},{value:"411121",label:"舞阳县"},{value:"411122",label:"临颍县"}],value:"411100",label:"漯河市"},{children:[{value:"411201",label:"市辖区"},{value:"411202",label:"湖滨区"},{value:"411221",label:"渑池县"},{value:"411222",label:"陕县"},{value:"411224",label:"卢氏县"},{value:"411281",label:"义马市"},{value:"411282",label:"灵宝市"}],value:"411200",label:"三门峡市"},{children:[{value:"411301",label:"市辖区"},{value:"411302",label:"宛城区"},{value:"411303",label:"卧龙区"},{value:"411321",label:"南召县"},{value:"411322",label:"方城县"},{value:"411323",label:"西峡县"},{value:"411324",label:"镇平县"},{value:"411325",label:"内乡县"},{value:"411326",label:"淅川县"},{value:"411327",label:"社旗县"},{value:"411328",label:"唐河县"},{value:"411329",label:"新野县"},{value:"411330",label:"桐柏县"},{value:"411381",label:"邓州市"}],value:"411300",label:"南阳市"},{children:[{value:"411401",label:"市辖区"},{value:"411402",label:"梁园区"},{value:"411403",label:"睢阳区"},{value:"411421",label:"民权县"},{value:"411422",label:"睢县"},{value:"411423",label:"宁陵县"},{value:"411424",label:"柘城县"},{value:"411425",label:"虞城县"},{value:"411426",label:"夏邑县"},{value:"411481",label:"永城市"}],value:"411400",label:"商丘市"},{children:[{value:"411501",label:"市辖区"},{value:"411502",label:"浉河区"},{value:"411503",label:"平桥区"},{value:"411521",label:"罗山县"},{value:"411522",label:"光山县"},{value:"411523",label:"新县"},{value:"411524",label:"商城县"},{value:"411525",label:"固始县"},{value:"411526",label:"潢川县"},{value:"411527",label:"淮滨县"},{value:"411528",label:"息县"}],value:"411500",label:"信阳市"},{children:[{value:"411601",label:"市辖区"},{value:"411602",label:"川汇区"},{value:"411621",label:"扶沟县"},{value:"411622",label:"西华县"},{value:"411623",label:"商水县"},{value:"411624",label:"沈丘县"},{value:"411625",label:"郸城县"},{value:"411626",label:"淮阳县"},{value:"411627",label:"太康县"},{value:"411628",label:"鹿邑县"},{value:"411681",label:"项城市"}],value:"411600",label:"周口市"},{children:[{value:"411701",label:"市辖区"},{value:"411702",label:"驿城区"},{value:"411721",label:"西平县"},{value:"411722",label:"上蔡县"},{value:"411723",label:"平舆县"},{value:"411724",label:"正阳县"},{value:"411725",label:"确山县"},{value:"411726",label:"泌阳县"},{value:"411727",label:"汝南县"},{value:"411728",label:"遂平县"},{value:"411729",label:"新蔡县"}],value:"411700",label:"驻马店市"},{children:[{value:"419001",label:"济源市"}],value:"419000",label:"省直辖县级行政区划"}],value:"410000",label:"河南省"},{children:[{children:[{value:"420101",label:"市辖区"},{value:"420102",label:"江岸区"},{value:"420103",label:"江汉区"},{value:"420104",label:"硚口区"},{value:"420105",label:"汉阳区"},{value:"420106",label:"武昌区"},{value:"420107",label:"青山区"},{value:"420111",label:"洪山区"},{value:"420112",label:"东西湖区"},{value:"420113",label:"汉南区"},{value:"420114",label:"蔡甸区"},{value:"420115",label:"江夏区"},{value:"420116",label:"黄陂区"},{value:"420117",label:"新洲区"}],value:"420100",label:"武汉市"},{children:[{value:"420201",label:"市辖区"},{value:"420202",label:"黄石港区"},{value:"420203",label:"西塞山区"},{value:"420204",label:"下陆区"},{value:"420205",label:"铁山区"},{value:"420222",label:"阳新县"},{value:"420281",label:"大冶市"}],value:"420200",label:"黄石市"},{children:[{value:"420301",label:"市辖区"},{value:"420302",label:"茅箭区"},{value:"420303",label:"张湾区"},{value:"420321",label:"郧县"},{value:"420322",label:"郧西县"},{value:"420323",label:"竹山县"},{value:"420324",label:"竹溪县"},{value:"420325",label:"房县"},{value:"420381",label:"丹江口市"}],value:"420300",label:"十堰市"},{children:[{value:"420501",label:"市辖区"},{value:"420502",label:"西陵区"},{value:"420503",label:"伍家岗区"},{value:"420504",label:"点军区"},{value:"420505",label:"猇亭区"},{value:"420506",label:"夷陵区"},{value:"420525",label:"远安县"},{value:"420526",label:"兴山县"},{value:"420527",label:"秭归县"},{value:"420528",label:"长阳土家族自治县"},{value:"420529",label:"五峰土家族自治县"},{value:"420581",label:"宜都市"},{value:"420582",label:"当阳市"},{value:"420583",label:"枝江市"}],value:"420500",label:"宜昌市"},{children:[{value:"420601",label:"市辖区"},{value:"420602",label:"襄城区"},{value:"420606",label:"樊城区"},{value:"420607",label:"襄州区"},{value:"420624",label:"南漳县"},{value:"420625",label:"谷城县"},{value:"420626",label:"保康县"},{value:"420682",label:"老河口市"},{value:"420683",label:"枣阳市"},{value:"420684",label:"宜城市"}],value:"420600",label:"襄阳市"},{children:[{value:"420701",label:"市辖区"},{value:"420702",label:"梁子湖区"},{value:"420703",label:"华容区"},{value:"420704",label:"鄂城区"}],value:"420700",label:"鄂州市"},{children:[{value:"420801",label:"市辖区"},{value:"420802",label:"东宝区"},{value:"420804",label:"掇刀区"},{value:"420821",label:"京山县"},{value:"420822",label:"沙洋县"},{value:"420881",label:"钟祥市"}],value:"420800",label:"荆门市"},{children:[{value:"420901",label:"市辖区"},{value:"420902",label:"孝南区"},{value:"420921",label:"孝昌县"},{value:"420922",label:"大悟县"},{value:"420923",label:"云梦县"},{value:"420981",label:"应城市"},{value:"420982",label:"安陆市"},{value:"420984",label:"汉川市"}],value:"420900",label:"孝感市"},{children:[{value:"421001",label:"市辖区"},{value:"421002",label:"沙市区"},{value:"421003",label:"荆州区"},{value:"421022",label:"公安县"},{value:"421023",label:"监利县"},{value:"421024",label:"江陵县"},{value:"421081",label:"石首市"},{value:"421083",label:"洪湖市"},{value:"421087",label:"松滋市"}],value:"421000",label:"荆州市"},{children:[{value:"421101",label:"市辖区"},{value:"421102",label:"黄州区"},{value:"421121",label:"团风县"},{value:"421122",label:"红安县"},{value:"421123",label:"罗田县"},{value:"421124",label:"英山县"},{value:"421125",label:"浠水县"},{value:"421126",label:"蕲春县"},{value:"421127",label:"黄梅县"},{value:"421181",label:"麻城市"},{value:"421182",label:"武穴市"}],value:"421100",label:"黄冈市"},{children:[{value:"421201",label:"市辖区"},{value:"421202",label:"咸安区"},{value:"421221",label:"嘉鱼县"},{value:"421222",label:"通城县"},{value:"421223",label:"崇阳县"},{value:"421224",label:"通山县"},{value:"421281",label:"赤壁市"}],value:"421200",label:"咸宁市"},{children:[{value:"421301",label:"市辖区"},{value:"421303",label:"曾都区"},{value:"421321",label:"随县"},{value:"421381",label:"广水市"}],value:"421300",label:"随州市"},{children:[{value:"422801",label:"恩施市"},{value:"422802",label:"利川市"},{value:"422822",label:"建始县"},{value:"422823",label:"巴东县"},{value:"422825",label:"宣恩县"},{value:"422826",label:"咸丰县"},{value:"422827",label:"来凤县"},{value:"422828",label:"鹤峰县"}],value:"422800",label:"恩施土家族苗族自治州"},{children:[{value:"429004",label:"仙桃市"},{value:"429005",label:"潜江市"},{value:"429006",label:"天门市"},{value:"429021",label:"神农架林区"}],value:"429000",label:"省直辖县级行政区划"}],value:"420000",label:"湖北省"},{children:[{children:[{value:"430101",label:"市辖区"},{value:"430102",label:"芙蓉区"},{value:"430103",label:"天心区"},{value:"430104",label:"岳麓区"},{value:"430105",label:"开福区"},{value:"430111",label:"雨花区"},{value:"430112",label:"望城区"},{value:"430121",label:"长沙县"},{value:"430124",label:"宁乡县"},{value:"430181",label:"浏阳市"}],value:"430100",label:"长沙市"},{children:[{value:"430201",label:"市辖区"},{value:"430202",label:"荷塘区"},{value:"430203",label:"芦淞区"},{value:"430204",label:"石峰区"},{value:"430211",label:"天元区"},{value:"430221",label:"株洲县"},{value:"430223",label:"攸县"},{value:"430224",label:"茶陵县"},{value:"430225",label:"炎陵县"},{value:"430281",label:"醴陵市"}],value:"430200",label:"株洲市"},{children:[{value:"430301",label:"市辖区"},{value:"430302",label:"雨湖区"},{value:"430304",label:"岳塘区"},{value:"430321",label:"湘潭县"},{value:"430381",label:"湘乡市"},{value:"430382",label:"韶山市"}],value:"430300",label:"湘潭市"},{children:[{value:"430401",label:"市辖区"},{value:"430405",label:"珠晖区"},{value:"430406",label:"雁峰区"},{value:"430407",label:"石鼓区"},{value:"430408",label:"蒸湘区"},{value:"430412",label:"南岳区"},{value:"430421",label:"衡阳县"},{value:"430422",label:"衡南县"},{value:"430423",label:"衡山县"},{value:"430424",label:"衡东县"},{value:"430426",label:"祁东县"},{value:"430481",label:"耒阳市"},{value:"430482",label:"常宁市"}],value:"430400",label:"衡阳市"},{children:[{value:"430501",label:"市辖区"},{value:"430502",label:"双清区"},{value:"430503",label:"大祥区"},{value:"430511",label:"北塔区"},{value:"430521",label:"邵东县"},{value:"430522",label:"新邵县"},{value:"430523",label:"邵阳县"},{value:"430524",label:"隆回县"},{value:"430525",label:"洞口县"},{value:"430527",label:"绥宁县"},{value:"430528",label:"新宁县"},{value:"430529",label:"城步苗族自治县"},{value:"430581",label:"武冈市"}],value:"430500",label:"邵阳市"},{children:[{value:"430601",label:"市辖区"},{value:"430602",label:"岳阳楼区"},{value:"430603",label:"云溪区"},{value:"430611",label:"君山区"},{value:"430621",label:"岳阳县"},{value:"430623",label:"华容县"},{value:"430624",label:"湘阴县"},{value:"430626",label:"平江县"},{value:"430681",label:"汨罗市"},{value:"430682",label:"临湘市"}],value:"430600",label:"岳阳市"},{children:[{value:"430701",label:"市辖区"},{value:"430702",label:"武陵区"},{value:"430703",label:"鼎城区"},{value:"430721",label:"安乡县"},{value:"430722",label:"汉寿县"},{value:"430723",label:"澧县"},{value:"430724",label:"临澧县"},{value:"430725",label:"桃源县"},{value:"430726",label:"石门县"},{value:"430781",label:"津市市"}],value:"430700",label:"常德市"},{children:[{value:"430801",label:"市辖区"},{value:"430802",label:"永定区"},{value:"430811",label:"武陵源区"},{value:"430821",label:"慈利县"},{value:"430822",label:"桑植县"}],value:"430800",label:"张家界市"},{children:[{value:"430901",label:"市辖区"},{value:"430902",label:"资阳区"},{value:"430903",label:"赫山区"},{value:"430921",label:"南县"},{value:"430922",label:"桃江县"},{value:"430923",label:"安化县"},{value:"430981",label:"沅江市"}],value:"430900",label:"益阳市"},{children:[{value:"431001",label:"市辖区"},{value:"431002",label:"北湖区"},{value:"431003",label:"苏仙区"},{value:"431021",label:"桂阳县"},{value:"431022",label:"宜章县"},{value:"431023",label:"永兴县"},{value:"431024",label:"嘉禾县"},{value:"431025",label:"临武县"},{value:"431026",label:"汝城县"},{value:"431027",label:"桂东县"},{value:"431028",label:"安仁县"},{value:"431081",label:"资兴市"}],value:"431000",label:"郴州市"},{children:[{value:"431101",label:"市辖区"},{value:"431102",label:"零陵区"},{value:"431103",label:"冷水滩区"},{value:"431121",label:"祁阳县"},{value:"431122",label:"东安县"},{value:"431123",label:"双牌县"},{value:"431124",label:"道县"},{value:"431125",label:"江永县"},{value:"431126",label:"宁远县"},{value:"431127",label:"蓝山县"},{value:"431128",label:"新田县"},{value:"431129",label:"江华瑶族自治县"}],value:"431100",label:"永州市"},{children:[{value:"431201",label:"市辖区"},{value:"431202",label:"鹤城区"},{value:"431221",label:"中方县"},{value:"431222",label:"沅陵县"},{value:"431223",label:"辰溪县"},{value:"431224",label:"溆浦县"},{value:"431225",label:"会同县"},{value:"431226",label:"麻阳苗族自治县"},{value:"431227",label:"新晃侗族自治县"},{value:"431228",label:"芷江侗族自治县"},{value:"431229",label:"靖州苗族侗族自治县"},{value:"431230",label:"通道侗族自治县"},{value:"431281",label:"洪江市"}],value:"431200",label:"怀化市"},{children:[{value:"431301",label:"市辖区"},{value:"431302",label:"娄星区"},{value:"431321",label:"双峰县"},{value:"431322",label:"新化县"},{value:"431381",label:"冷水江市"},{value:"431382",label:"涟源市"}],value:"431300",label:"娄底市"},{children:[{value:"433101",label:"吉首市"},{value:"433122",label:"泸溪县"},{value:"433123",label:"凤凰县"},{value:"433124",label:"花垣县"},{value:"433125",label:"保靖县"},{value:"433126",label:"古丈县"},{value:"433127",label:"永顺县"},{value:"433130",label:"龙山县"}],value:"433100",label:"湘西土家族苗族自治州"}],value:"430000",label:"湖南省"},{children:[{children:[{value:"440101",label:"市辖区"},{value:"440103",label:"荔湾区"},{value:"440104",label:"越秀区"},{value:"440105",label:"海珠区"},{value:"440106",label:"天河区"},{value:"440111",label:"白云区"},{value:"440112",label:"黄埔区"},{value:"440113",label:"番禺区"},{value:"440114",label:"花都区"},{value:"440115",label:"南沙区"},{value:"440116",label:"萝岗区"},{value:"440183",label:"增城市"},{value:"440184",label:"从化市"}],value:"440100",label:"广州市"},{children:[{value:"440201",label:"市辖区"},{value:"440203",label:"武江区"},{value:"440204",label:"浈江区"},{value:"440205",label:"曲江区"},{value:"440222",label:"始兴县"},{value:"440224",label:"仁化县"},{value:"440229",label:"翁源县"},{value:"440232",label:"乳源瑶族自治县"},{value:"440233",label:"新丰县"},{value:"440281",label:"乐昌市"},{value:"440282",label:"南雄市"}],value:"440200",label:"韶关市"},{children:[{value:"440301",label:"市辖区"},{value:"440303",label:"罗湖区"},{value:"440304",label:"福田区"},{value:"440305",label:"南山区"},{value:"440306",label:"宝安区"},{value:"440307",label:"龙岗区"},{value:"440308",label:"盐田区"}],value:"440300",label:"深圳市"},{children:[{value:"440401",label:"市辖区"},{value:"440402",label:"香洲区"},{value:"440403",label:"斗门区"},{value:"440404",label:"金湾区"}],value:"440400",label:"珠海市"},{children:[{value:"440501",label:"市辖区"},{value:"440507",label:"龙湖区"},{value:"440511",label:"金平区"},{value:"440512",label:"濠江区"},{value:"440513",label:"潮阳区"},{value:"440514",label:"潮南区"},{value:"440515",label:"澄海区"},{value:"440523",label:"南澳县"}],value:"440500",label:"汕头市"},{children:[{value:"440601",label:"市辖区"},{value:"440604",label:"禅城区"},{value:"440605",label:"南海区"},{value:"440606",label:"顺德区"},{value:"440607",label:"三水区"},{value:"440608",label:"高明区"}],value:"440600",label:"佛山市"},{children:[{value:"440701",label:"市辖区"},{value:"440703",label:"蓬江区"},{value:"440704",label:"江海区"},{value:"440705",label:"新会区"},{value:"440781",label:"台山市"},{value:"440783",label:"开平市"},{value:"440784",label:"鹤山市"},{value:"440785",label:"恩平市"}],value:"440700",label:"江门市"},{children:[{value:"440801",label:"市辖区"},{value:"440802",label:"赤坎区"},{value:"440803",label:"霞山区"},{value:"440804",label:"坡头区"},{value:"440811",label:"麻章区"},{value:"440823",label:"遂溪县"},{value:"440825",label:"徐闻县"},{value:"440881",label:"廉江市"},{value:"440882",label:"雷州市"},{value:"440883",label:"吴川市"}],value:"440800",label:"湛江市"},{children:[{value:"440901",label:"市辖区"},{value:"440902",label:"茂南区"},{value:"440903",label:"茂港区"},{value:"440923",label:"电白县"},{value:"440981",label:"高州市"},{value:"440982",label:"化州市"},{value:"440983",label:"信宜市"}],value:"440900",label:"茂名市"},{children:[{value:"441201",label:"市辖区"},{value:"441202",label:"端州区"},{value:"441203",label:"鼎湖区"},{value:"441223",label:"广宁县"},{value:"441224",label:"怀集县"},{value:"441225",label:"封开县"},{value:"441226",label:"德庆县"},{value:"441283",label:"高要市"},{value:"441284",label:"四会市"}],value:"441200",label:"肇庆市"},{children:[{value:"441301",label:"市辖区"},{value:"441302",label:"惠城区"},{value:"441303",label:"惠阳区"},{value:"441322",label:"博罗县"},{value:"441323",label:"惠东县"},{value:"441324",label:"龙门县"}],value:"441300",label:"惠州市"},{children:[{value:"441401",label:"市辖区"},{value:"441402",label:"梅江区"},{value:"441421",label:"梅县"},{value:"441422",label:"大埔县"},{value:"441423",label:"丰顺县"},{value:"441424",label:"五华县"},{value:"441426",label:"平远县"},{value:"441427",label:"蕉岭县"},{value:"441481",label:"兴宁市"}],value:"441400",label:"梅州市"},{children:[{value:"441501",label:"市辖区"},{value:"441502",label:"城区"},{value:"441521",label:"海丰县"},{value:"441523",label:"陆河县"},{value:"441581",label:"陆丰市"}],value:"441500",label:"汕尾市"},{children:[{value:"441601",label:"市辖区"},{value:"441602",label:"源城区"},{value:"441621",label:"紫金县"},{value:"441622",label:"龙川县"},{value:"441623",label:"连平县"},{value:"441624",label:"和平县"},{value:"441625",label:"东源县"}],value:"441600",label:"河源市"},{children:[{value:"441701",label:"市辖区"},{value:"441702",label:"江城区"},{value:"441721",label:"阳西县"},{value:"441723",label:"阳东县"},{value:"441781",label:"阳春市"}],value:"441700",label:"阳江市"},{children:[{value:"441801",label:"市辖区"},{value:"441802",label:"清城区"},{value:"441803",label:"清新区"},{value:"441821",label:"佛冈县"},{value:"441823",label:"阳山县"},{value:"441825",label:"连山壮族瑶族自治县"},{value:"441826",label:"连南瑶族自治县"},{value:"441881",label:"英德市"},{value:"441882",label:"连州市"}],value:"441800",label:"清远市"},{value:"441900",label:"东莞市"},{value:"442000",label:"中山市"},{children:[{value:"445101",label:"市辖区"},{value:"445102",label:"湘桥区"},{value:"445103",label:"潮安区"},{value:"445122",label:"饶平县"}],value:"445100",label:"潮州市"},{children:[{value:"445201",label:"市辖区"},{value:"445202",label:"榕城区"},{value:"445203",label:"揭东区"},{value:"445222",label:"揭西县"},{value:"445224",label:"惠来县"},{value:"445281",label:"普宁市"}],value:"445200",label:"揭阳市"},{children:[{value:"445301",label:"市辖区"},{value:"445302",label:"云城区"},{value:"445321",label:"新兴县"},{value:"445322",label:"郁南县"},{value:"445323",label:"云安县"},{value:"445381",label:"罗定市"}],value:"445300",label:"云浮市"}],value:"440000",label:"广东省"},{children:[{children:[{value:"450101",label:"市辖区"},{value:"450102",label:"兴宁区"},{value:"450103",label:"青秀区"},{value:"450105",label:"江南区"},{value:"450107",label:"西乡塘区"},{value:"450108",label:"良庆区"},{value:"450109",label:"邕宁区"},{value:"450122",label:"武鸣县"},{value:"450123",label:"隆安县"},{value:"450124",label:"马山县"},{value:"450125",label:"上林县"},{value:"450126",label:"宾阳县"},{value:"450127",label:"横县"}],value:"450100",label:"南宁市"},{children:[{value:"450201",label:"市辖区"},{value:"450202",label:"城中区"},{value:"450203",label:"鱼峰区"},{value:"450204",label:"柳南区"},{value:"450205",label:"柳北区"},{value:"450221",label:"柳江县"},{value:"450222",label:"柳城县"},{value:"450223",label:"鹿寨县"},{value:"450224",label:"融安县"},{value:"450225",label:"融水苗族自治县"},{value:"450226",label:"三江侗族自治县"}],value:"450200",label:"柳州市"},{children:[{value:"450301",label:"市辖区"},{value:"450302",label:"秀峰区"},{value:"450303",label:"叠彩区"},{value:"450304",label:"象山区"},{value:"450305",label:"七星区"},{value:"450311",label:"雁山区"},{value:"450312",label:"临桂区"},{value:"450321",label:"阳朔县"},{value:"450323",label:"灵川县"},{value:"450324",label:"全州县"},{value:"450325",label:"兴安县"},{value:"450326",label:"永福县"},{value:"450327",label:"灌阳县"},{value:"450328",label:"龙胜各族自治县"},{value:"450329",label:"资源县"},{value:"450330",label:"平乐县"},{value:"450331",label:"荔浦县"},{value:"450332",label:"恭城瑶族自治县"}],value:"450300",label:"桂林市"},{children:[{value:"450401",label:"市辖区"},{value:"450403",label:"万秀区"},{value:"450405",label:"长洲区"},{value:"450406",label:"龙圩区"},{value:"450421",label:"苍梧县"},{value:"450422",label:"藤县"},{value:"450423",label:"蒙山县"},{value:"450481",label:"岑溪市"}],value:"450400",label:"梧州市"},{children:[{value:"450501",label:"市辖区"},{value:"450502",label:"海城区"},{value:"450503",label:"银海区"},{value:"450512",label:"铁山港区"},{value:"450521",label:"合浦县"}],value:"450500",label:"北海市"},{children:[{value:"450601",label:"市辖区"},{value:"450602",label:"港口区"},{value:"450603",label:"防城区"},{value:"450621",label:"上思县"},{value:"450681",label:"东兴市"}],value:"450600",label:"防城港市"},{children:[{value:"450701",label:"市辖区"},{value:"450702",label:"钦南区"},{value:"450703",label:"钦北区"},{value:"450721",label:"灵山县"},{value:"450722",label:"浦北县"}],value:"450700",label:"钦州市"},{children:[{value:"450801",label:"市辖区"},{value:"450802",label:"港北区"},{value:"450803",label:"港南区"},{value:"450804",label:"覃塘区"},{value:"450821",label:"平南县"},{value:"450881",label:"桂平市"}],value:"450800",label:"贵港市"},{children:[{value:"450901",label:"市辖区"},{value:"450902",label:"玉州区"},{value:"450903",label:"福绵区"},{value:"450921",label:"容县"},{value:"450922",label:"陆川县"},{value:"450923",label:"博白县"},{value:"450924",label:"兴业县"},{value:"450981",label:"北流市"}],value:"450900",label:"玉林市"},{children:[{value:"451001",label:"市辖区"},{value:"451002",label:"右江区"},{value:"451021",label:"田阳县"},{value:"451022",label:"田东县"},{value:"451023",label:"平果县"},{value:"451024",label:"德保县"},{value:"451025",label:"靖西县"},{value:"451026",label:"那坡县"},{value:"451027",label:"凌云县"},{value:"451028",label:"乐业县"},{value:"451029",label:"田林县"},{value:"451030",label:"西林县"},{value:"451031",label:"隆林各族自治县"}],value:"451000",label:"百色市"},{children:[{value:"451101",label:"市辖区"},{value:"451102",label:"八步区"},{value:"451121",label:"昭平县"},{value:"451122",label:"钟山县"},{value:"451123",label:"富川瑶族自治县"}],value:"451100",label:"贺州市"},{children:[{value:"451201",label:"市辖区"},{value:"451202",label:"金城江区"},{value:"451221",label:"南丹县"},{value:"451222",label:"天峨县"},{value:"451223",label:"凤山县"},{value:"451224",label:"东兰县"},{value:"451225",label:"罗城仫佬族自治县"},{value:"451226",label:"环江毛南族自治县"},{value:"451227",label:"巴马瑶族自治县"},{value:"451228",label:"都安瑶族自治县"},{value:"451229",label:"大化瑶族自治县"},{value:"451281",label:"宜州市"}],value:"451200",label:"河池市"},{children:[{value:"451301",label:"市辖区"},{value:"451302",label:"兴宾区"},{value:"451321",label:"忻城县"},{value:"451322",label:"象州县"},{value:"451323",label:"武宣县"},{value:"451324",label:"金秀瑶族自治县"},{value:"451381",label:"合山市"}],value:"451300",label:"来宾市"},{children:[{value:"451401",label:"市辖区"},{value:"451402",label:"江州区"},{value:"451421",label:"扶绥县"},{value:"451422",label:"宁明县"},{value:"451423",label:"龙州县"},{value:"451424",label:"大新县"},{value:"451425",label:"天等县"},{value:"451481",label:"凭祥市"}],value:"451400",label:"崇左市"}],value:"450000",label:"广西壮族自治区"},{children:[{children:[{value:"460101",label:"市辖区"},{value:"460105",label:"秀英区"},{value:"460106",label:"龙华区"},{value:"460107",label:"琼山区"},{value:"460108",label:"美兰区"}],value:"460100",label:"海口市"},{children:[{value:"460201",label:"市辖区"}],value:"460200",label:"三亚市"},{children:[{value:"460321",label:"西沙群岛"},{value:"460322",label:"南沙群岛"},{value:"460323",label:"中沙群岛的岛礁及其海域"}],value:"460300",label:"三沙市"},{children:[{value:"469001",label:"五指山市"},{value:"469002",label:"琼海市"},{value:"469003",label:"儋州市"},{value:"469005",label:"文昌市"},{value:"469006",label:"万宁市"},{value:"469007",label:"东方市"},{value:"469021",label:"定安县"},{value:"469022",label:"屯昌县"},{value:"469023",label:"澄迈县"},{value:"469024",label:"临高县"},{value:"469025",label:"白沙黎族自治县"},{value:"469026",label:"昌江黎族自治县"},{value:"469027",label:"乐东黎族自治县"},{value:"469028",label:"陵水黎族自治县"},{value:"469029",label:"保亭黎族苗族自治县"},{value:"469030",label:"琼中黎族苗族自治县"}],value:"469000",label:"省直辖县级行政区划"}],value:"460000",label:"海南省"},{children:[{children:[{value:"500101",label:"万州区"},{value:"500102",label:"涪陵区"},{value:"500103",label:"渝中区"},{value:"500104",label:"大渡口区"},{value:"500105",label:"江北区"},{value:"500106",label:"沙坪坝区"},{value:"500107",label:"九龙坡区"},{value:"500108",label:"南岸区"},{value:"500109",label:"北碚区"},{value:"500110",label:"綦江区"},{value:"500111",label:"大足区"},{value:"500112",label:"渝北区"},{value:"500113",label:"巴南区"},{value:"500114",label:"黔江区"},{value:"500115",label:"长寿区"},{value:"500116",label:"江津区"},{value:"500117",label:"合川区"},{value:"500118",label:"永川区"},{value:"500119",label:"南川区"}],value:"500100",label:"市辖区"},{children:[{value:"500223",label:"潼南县"},{value:"500224",label:"铜梁县"},{value:"500226",label:"荣昌县"},{value:"500227",label:"璧山县"},{value:"500228",label:"梁平县"},{value:"500229",label:"城口县"},{value:"500230",label:"丰都县"},{value:"500231",label:"垫江县"},{value:"500232",label:"武隆县"},{value:"500233",label:"忠县"},{value:"500234",label:"开县"},{value:"500235",label:"云阳县"},{value:"500236",label:"奉节县"},{value:"500237",label:"巫山县"},{value:"500238",label:"巫溪县"},{value:"500240",label:"石柱土家族自治县"},{value:"500241",label:"秀山土家族苗族自治县"},{value:"500242",label:"酉阳土家族苗族自治县"},{value:"500243",label:"彭水苗族土家族自治县"}],value:"500200",label:"县"}],value:"500000",label:"重庆市"},{children:[{children:[{value:"510101",label:"市辖区"},{value:"510104",label:"锦江区"},{value:"510105",label:"青羊区"},{value:"510106",label:"金牛区"},{value:"510107",label:"武侯区"},{value:"510108",label:"成华区"},{value:"510112",label:"龙泉驿区"},{value:"510113",label:"青白江区"},{value:"510114",label:"新都区"},{value:"510115",label:"温江区"},{value:"510121",label:"金堂县"},{value:"510122",label:"双流县"},{value:"510124",label:"郫县"},{value:"510129",label:"大邑县"},{value:"510131",label:"蒲江县"},{value:"510132",label:"新津县"},{value:"510181",label:"都江堰市"},{value:"510182",label:"彭州市"},{value:"510183",label:"邛崃市"},{value:"510184",label:"崇州市"}],value:"510100",label:"成都市"},{children:[{value:"510301",label:"市辖区"},{value:"510302",label:"自流井区"},{value:"510303",label:"贡井区"},{value:"510304",label:"大安区"},{value:"510311",label:"沿滩区"},{value:"510321",label:"荣县"},{value:"510322",label:"富顺县"}],value:"510300",label:"自贡市"},{children:[{value:"510401",label:"市辖区"},{value:"510402",label:"东区"},{value:"510403",label:"西区"},{value:"510411",label:"仁和区"},{value:"510421",label:"米易县"},{value:"510422",label:"盐边县"}],value:"510400",label:"攀枝花市"},{children:[{value:"510501",label:"市辖区"},{value:"510502",label:"江阳区"},{value:"510503",label:"纳溪区"},{value:"510504",label:"龙马潭区"},{value:"510521",label:"泸县"},{value:"510522",label:"合江县"},{value:"510524",label:"叙永县"},{value:"510525",label:"古蔺县"}],value:"510500",label:"泸州市"},{children:[{value:"510601",label:"市辖区"},{value:"510603",label:"旌阳区"},{value:"510623",label:"中江县"},{value:"510626",label:"罗江县"},{value:"510681",label:"广汉市"},{value:"510682",label:"什邡市"},{value:"510683",label:"绵竹市"}],value:"510600",label:"德阳市"},{children:[{value:"510701",label:"市辖区"},{value:"510703",label:"涪城区"},{value:"510704",label:"游仙区"},{value:"510722",label:"三台县"},{value:"510723",label:"盐亭县"},{value:"510724",label:"安县"},{value:"510725",label:"梓潼县"},{value:"510726",label:"北川羌族自治县"},{value:"510727",label:"平武县"},{value:"510781",label:"江油市"}],value:"510700",label:"绵阳市"},{children:[{value:"510801",label:"市辖区"},{value:"510802",label:"利州区"},{value:"510811",label:"元坝区"},{value:"510812",label:"朝天区"},{value:"510821",label:"旺苍县"},{value:"510822",label:"青川县"},{value:"510823",label:"剑阁县"},{value:"510824",label:"苍溪县"}],value:"510800",label:"广元市"},{children:[{value:"510901",label:"市辖区"},{value:"510903",label:"船山区"},{value:"510904",label:"安居区"},{value:"510921",label:"蓬溪县"},{value:"510922",label:"射洪县"},{value:"510923",label:"大英县"}],value:"510900",label:"遂宁市"},{children:[{value:"511001",label:"市辖区"},{value:"511002",label:"市中区"},{value:"511011",label:"东兴区"},{value:"511024",label:"威远县"},{value:"511025",label:"资中县"},{value:"511028",label:"隆昌县"}],value:"511000",label:"内江市"},{children:[{value:"511101",label:"市辖区"},{value:"511102",label:"市中区"},{value:"511111",label:"沙湾区"},{value:"511112",label:"五通桥区"},{value:"511113",label:"金口河区"},{value:"511123",label:"犍为县"},{value:"511124",label:"井研县"},{value:"511126",label:"夹江县"},{value:"511129",label:"沐川县"},{value:"511132",label:"峨边彝族自治县"},{value:"511133",label:"马边彝族自治县"},{value:"511181",label:"峨眉山市"}],value:"511100",label:"乐山市"},{children:[{value:"511301",label:"市辖区"},{value:"511302",label:"顺庆区"},{value:"511303",label:"高坪区"},{value:"511304",label:"嘉陵区"},{value:"511321",label:"南部县"},{value:"511322",label:"营山县"},{value:"511323",label:"蓬安县"},{value:"511324",label:"仪陇县"},{value:"511325",label:"西充县"},{value:"511381",label:"阆中市"}],value:"511300",label:"南充市"},{children:[{value:"511401",label:"市辖区"},{value:"511402",label:"东坡区"},{value:"511421",label:"仁寿县"},{value:"511422",label:"彭山县"},{value:"511423",label:"洪雅县"},{value:"511424",label:"丹棱县"},{value:"511425",label:"青神县"}],value:"511400",label:"眉山市"},{children:[{value:"511501",label:"市辖区"},{value:"511502",label:"翠屏区"},{value:"511503",label:"南溪区"},{value:"511521",label:"宜宾县"},{value:"511523",label:"江安县"},{value:"511524",label:"长宁县"},{value:"511525",label:"高县"},{value:"511526",label:"珙县"},{value:"511527",label:"筠连县"},{value:"511528",label:"兴文县"},{value:"511529",label:"屏山县"}],value:"511500",label:"宜宾市"},{children:[{value:"511601",label:"市辖区"},{value:"511602",label:"广安区"},{value:"511603",label:"前锋区"},{value:"511621",label:"岳池县"},{value:"511622",label:"武胜县"},{value:"511623",label:"邻水县"},{value:"511681",label:"华蓥市"}],value:"511600",label:"广安市"},{children:[{value:"511701",label:"市辖区"},{value:"511702",label:"通川区"},{value:"511703",label:"达川区"},{value:"511722",label:"宣汉县"},{value:"511723",label:"开江县"},{value:"511724",label:"大竹县"},{value:"511725",label:"渠县"},{value:"511781",label:"万源市"}],value:"511700",label:"达州市"},{children:[{value:"511801",label:"市辖区"},{value:"511802",label:"雨城区"},{value:"511803",label:"名山区"},{value:"511822",label:"荥经县"},{value:"511823",label:"汉源县"},{value:"511824",label:"石棉县"},{value:"511825",label:"天全县"},{value:"511826",label:"芦山县"},{value:"511827",label:"宝兴县"}],value:"511800",label:"雅安市"},{children:[{value:"511901",label:"市辖区"},{value:"511902",label:"巴州区"},{value:"511903",label:"恩阳区"},{value:"511921",label:"通江县"},{value:"511922",label:"南江县"},{value:"511923",label:"平昌县"}],value:"511900",label:"巴中市"},{children:[{value:"512001",label:"市辖区"},{value:"512002",label:"雁江区"},{value:"512021",label:"安岳县"},{value:"512022",label:"乐至县"},{value:"512081",label:"简阳市"}],value:"512000",label:"资阳市"},{children:[{value:"513221",label:"汶川县"},{value:"513222",label:"理县"},{value:"513223",label:"茂县"},{value:"513224",label:"松潘县"},{value:"513225",label:"九寨沟县"},{value:"513226",label:"金川县"},{value:"513227",label:"小金县"},{value:"513228",label:"黑水县"},{value:"513229",label:"马尔康县"},{value:"513230",label:"壤塘县"},{value:"513231",label:"阿坝县"},{value:"513232",label:"若尔盖县"},{value:"513233",label:"红原县"}],value:"513200",label:"阿坝藏族羌族自治州"},{children:[{value:"513321",label:"康定县"},{value:"513322",label:"泸定县"},{value:"513323",label:"丹巴县"},{value:"513324",label:"九龙县"},{value:"513325",label:"雅江县"},{value:"513326",label:"道孚县"},{value:"513327",label:"炉霍县"},{value:"513328",label:"甘孜县"},{value:"513329",label:"新龙县"},{value:"513330",label:"德格县"},{value:"513331",label:"白玉县"},{value:"513332",label:"石渠县"},{value:"513333",label:"色达县"},{value:"513334",label:"理塘县"},{value:"513335",label:"巴塘县"},{value:"513336",label:"乡城县"},{value:"513337",label:"稻城县"},{value:"513338",label:"得荣县"}],value:"513300",label:"甘孜藏族自治州"},{children:[{value:"513401",label:"西昌市"},{value:"513422",label:"木里藏族自治县"},{value:"513423",label:"盐源县"},{value:"513424",label:"德昌县"},{value:"513425",label:"会理县"},{value:"513426",label:"会东县"},{value:"513427",label:"宁南县"},{value:"513428",label:"普格县"},{value:"513429",label:"布拖县"},{value:"513430",label:"金阳县"},{value:"513431",label:"昭觉县"},{value:"513432",label:"喜德县"},{value:"513433",label:"冕宁县"},{value:"513434",label:"越西县"},{value:"513435",label:"甘洛县"},{value:"513436",label:"美姑县"},{value:"513437",label:"雷波县"}],value:"513400",label:"凉山彝族自治州"}],value:"510000",label:"四川省"},{children:[{children:[{value:"520101",label:"市辖区"},{value:"520102",label:"南明区"},{value:"520103",label:"云岩区"},{value:"520111",label:"花溪区"},{value:"520112",label:"乌当区"},{value:"520113",label:"白云区"},{value:"520115",label:"观山湖区"},{value:"520121",label:"开阳县"},{value:"520122",label:"息烽县"},{value:"520123",label:"修文县"},{value:"520181",label:"清镇市"}],value:"520100",label:"贵阳市"},{children:[{value:"520201",label:"钟山区"},{value:"520203",label:"六枝特区"},{value:"520221",label:"水城县"},{value:"520222",label:"盘县"}],value:"520200",label:"六盘水市"},{children:[{value:"520301",label:"市辖区"},{value:"520302",label:"红花岗区"},{value:"520303",label:"汇川区"},{value:"520321",label:"遵义县"},{value:"520322",label:"桐梓县"},{value:"520323",label:"绥阳县"},{value:"520324",label:"正安县"},{value:"520325",label:"道真仡佬族苗族自治县"},{value:"520326",label:"务川仡佬族苗族自治县"},{value:"520327",label:"凤冈县"},{value:"520328",label:"湄潭县"},{value:"520329",label:"余庆县"},{value:"520330",label:"习水县"},{value:"520381",label:"赤水市"},{value:"520382",label:"仁怀市"}],value:"520300",label:"遵义市"},{children:[{value:"520401",label:"市辖区"},{value:"520402",label:"西秀区"},{value:"520421",label:"平坝县"},{value:"520422",label:"普定县"},{value:"520423",label:"镇宁布依族苗族自治县"},{value:"520424",label:"关岭布依族苗族自治县"},{value:"520425",label:"紫云苗族布依族自治县"}],value:"520400",label:"安顺市"},{children:[{value:"520501",label:"市辖区"},{value:"520502",label:"七星关区"},{value:"520521",label:"大方县"},{value:"520522",label:"黔西县"},{value:"520523",label:"金沙县"},{value:"520524",label:"织金县"},{value:"520525",label:"纳雍县"},{value:"520526",label:"威宁彝族回族苗族自治县"},{value:"520527",label:"赫章县"}],value:"520500",label:"毕节市"},{children:[{value:"520601",label:"市辖区"},{value:"520602",label:"碧江区"},{value:"520603",label:"万山区"},{value:"520621",label:"江口县"},{value:"520622",label:"玉屏侗族自治县"},{value:"520623",label:"石阡县"},{value:"520624",label:"思南县"},{value:"520625",label:"印江土家族苗族自治县"},{value:"520626",label:"德江县"},{value:"520627",label:"沿河土家族自治县"},{value:"520628",label:"松桃苗族自治县"}],value:"520600",label:"铜仁市"},{children:[{value:"522301",label:"兴义市"},{value:"522322",label:"兴仁县"},{value:"522323",label:"普安县"},{value:"522324",label:"晴隆县"},{value:"522325",label:"贞丰县"},{value:"522326",label:"望谟县"},{value:"522327",label:"册亨县"},{value:"522328",label:"安龙县"}],value:"522300",label:"黔西南布依族苗族自治州"},{children:[{value:"522601",label:"凯里市"},{value:"522622",label:"黄平县"},{value:"522623",label:"施秉县"},{value:"522624",label:"三穗县"},{value:"522625",label:"镇远县"},{value:"522626",label:"岑巩县"},{value:"522627",label:"天柱县"},{value:"522628",label:"锦屏县"},{value:"522629",label:"剑河县"},{value:"522630",label:"台江县"},{value:"522631",label:"黎平县"},{value:"522632",label:"榕江县"},{value:"522633",label:"从江县"},{value:"522634",label:"雷山县"},{value:"522635",label:"麻江县"},{value:"522636",label:"丹寨县"}],value:"522600",label:"黔东南苗族侗族自治州"},{children:[{value:"522701",label:"都匀市"},{value:"522702",label:"福泉市"},{value:"522722",label:"荔波县"},{value:"522723",label:"贵定县"},{value:"522725",label:"瓮安县"},{value:"522726",label:"独山县"},{value:"522727",label:"平塘县"},{value:"522728",label:"罗甸县"},{value:"522729",label:"长顺县"},{value:"522730",label:"龙里县"},{value:"522731",label:"惠水县"},{value:"522732",label:"三都水族自治县"}],value:"522700",label:"黔南布依族苗族自治州"}],value:"520000",label:"贵州省"},{children:[{children:[{value:"530101",label:"市辖区"},{value:"530102",label:"五华区"},{value:"530103",label:"盘龙区"},{value:"530111",label:"官渡区"},{value:"530112",label:"西山区"},{value:"530113",label:"东川区"},{value:"530114",label:"呈贡区"},{value:"530122",label:"晋宁县"},{value:"530124",label:"富民县"},{value:"530125",label:"宜良县"},{value:"530126",label:"石林彝族自治县"},{value:"530127",label:"嵩明县"},{value:"530128",label:"禄劝彝族苗族自治县"},{value:"530129",label:"寻甸回族彝族自治县"},{value:"530181",label:"安宁市"}],value:"530100",label:"昆明市"},{children:[{value:"530301",label:"市辖区"},{value:"530302",label:"麒麟区"},{value:"530321",label:"马龙县"},{value:"530322",label:"陆良县"},{value:"530323",label:"师宗县"},{value:"530324",label:"罗平县"},{value:"530325",label:"富源县"},{value:"530326",label:"会泽县"},{value:"530328",label:"沾益县"},{value:"530381",label:"宣威市"}],value:"530300",label:"曲靖市"},{children:[{value:"530401",label:"市辖区"},{value:"530402",label:"红塔区"},{value:"530421",label:"江川县"},{value:"530422",label:"澄江县"},{value:"530423",label:"通海县"},{value:"530424",label:"华宁县"},{value:"530425",label:"易门县"},{value:"530426",label:"峨山彝族自治县"},{value:"530427",label:"新平彝族傣族自治县"},{value:"530428",label:"元江哈尼族彝族傣族自治县"}],value:"530400",label:"玉溪市"},{children:[{value:"530501",label:"市辖区"},{value:"530502",label:"隆阳区"},{value:"530521",label:"施甸县"},{value:"530522",label:"腾冲县"},{value:"530523",label:"龙陵县"},{value:"530524",label:"昌宁县"}],value:"530500",label:"保山市"},{children:[{value:"530601",label:"市辖区"},{value:"530602",label:"昭阳区"},{value:"530621",label:"鲁甸县"},{value:"530622",label:"巧家县"},{value:"530623",label:"盐津县"},{value:"530624",label:"大关县"},{value:"530625",label:"永善县"},{value:"530626",label:"绥江县"},{value:"530627",label:"镇雄县"},{value:"530628",label:"彝良县"},{value:"530629",label:"威信县"},{value:"530630",label:"水富县"}],value:"530600",label:"昭通市"},{children:[{value:"530701",label:"市辖区"},{value:"530702",label:"古城区"},{value:"530721",label:"玉龙纳西族自治县"},{value:"530722",label:"永胜县"},{value:"530723",label:"华坪县"},{value:"530724",label:"宁蒗彝族自治县"}],value:"530700",label:"丽江市"},{children:[{value:"530801",label:"市辖区"},{value:"530802",label:"思茅区"},{value:"530821",label:"宁洱哈尼族彝族自治县"},{value:"530822",label:"墨江哈尼族自治县"},{value:"530823",label:"景东彝族自治县"},{value:"530824",label:"景谷傣族彝族自治县"},{value:"530825",label:"镇沅彝族哈尼族拉祜族自治县"},{value:"530826",label:"江城哈尼族彝族自治县"},{value:"530827",label:"孟连傣族拉祜族佤族自治县"},{value:"530828",label:"澜沧拉祜族自治县"},{value:"530829",label:"西盟佤族自治县"}],value:"530800",label:"普洱市"},{children:[{value:"530901",label:"市辖区"},{value:"530902",label:"临翔区"},{value:"530921",label:"凤庆县"},{value:"530922",label:"云县"},{value:"530923",label:"永德县"},{value:"530924",label:"镇康县"},{value:"530925",label:"双江拉祜族佤族布朗族傣族自治县"},{value:"530926",label:"耿马傣族佤族自治县"},{value:"530927",label:"沧源佤族自治县"}],value:"530900",label:"临沧市"},{children:[{value:"532301",label:"楚雄市"},{value:"532322",label:"双柏县"},{value:"532323",label:"牟定县"},{value:"532324",label:"南华县"},{value:"532325",label:"姚安县"},{value:"532326",label:"大姚县"},{value:"532327",label:"永仁县"},{value:"532328",label:"元谋县"},{value:"532329",label:"武定县"},{value:"532331",label:"禄丰县"}],value:"532300",label:"楚雄彝族自治州"},{children:[{value:"532501",label:"个旧市"},{value:"532502",label:"开远市"},{value:"532503",label:"蒙自市"},{value:"532504",label:"弥勒市"},{value:"532523",label:"屏边苗族自治县"},{value:"532524",label:"建水县"},{value:"532525",label:"石屏县"},{value:"532527",label:"泸西县"},{value:"532528",label:"元阳县"},{value:"532529",label:"红河县"},{value:"532530",label:"金平苗族瑶族傣族自治县"},{value:"532531",label:"绿春县"},{value:"532532",label:"河口瑶族自治县"}],value:"532500",label:"红河哈尼族彝族自治州"},{children:[{value:"532601",label:"文山市"},{value:"532622",label:"砚山县"},{value:"532623",label:"西畴县"},{value:"532624",label:"麻栗坡县"},{value:"532625",label:"马关县"},{value:"532626",label:"丘北县"},{value:"532627",label:"广南县"},{value:"532628",label:"富宁县"}],value:"532600",label:"文山壮族苗族自治州"},{children:[{value:"532801",label:"景洪市"},{value:"532822",label:"勐海县"},{value:"532823",label:"勐腊县"}],value:"532800",label:"西双版纳傣族自治州"},{children:[{value:"532901",label:"大理市"},{value:"532922",label:"漾濞彝族自治县"},{value:"532923",label:"祥云县"},{value:"532924",label:"宾川县"},{value:"532925",label:"弥渡县"},{value:"532926",label:"南涧彝族自治县"},{value:"532927",label:"巍山彝族回族自治县"},{value:"532928",label:"永平县"},{value:"532929",label:"云龙县"},{value:"532930",label:"洱源县"},{value:"532931",label:"剑川县"},{value:"532932",label:"鹤庆县"}],value:"532900",label:"大理白族自治州"},{children:[{value:"533102",label:"瑞丽市"},{value:"533103",label:"芒市"},{value:"533122",label:"梁河县"},{value:"533123",label:"盈江县"},{value:"533124",label:"陇川县"}],value:"533100",label:"德宏傣族景颇族自治州"},{children:[{value:"533321",label:"泸水县"},{value:"533323",label:"福贡县"},{value:"533324",label:"贡山独龙族怒族自治县"},{value:"533325",label:"兰坪白族普米族自治县"}],value:"533300",label:"怒江傈僳族自治州"},{children:[{value:"533421",label:"香格里拉县"},{value:"533422",label:"德钦县"},{value:"533423",label:"维西傈僳族自治县"}],value:"533400",label:"迪庆藏族自治州"}],value:"530000",label:"云南省"},{children:[{children:[{value:"540101",label:"市辖区"},{value:"540102",label:"城关区"},{value:"540121",label:"林周县"},{value:"540122",label:"当雄县"},{value:"540123",label:"尼木县"},{value:"540124",label:"曲水县"},{value:"540125",label:"堆龙德庆县"},{value:"540126",label:"达孜县"},{value:"540127",label:"墨竹工卡县"}],value:"540100",label:"拉萨市"},{children:[{value:"542121",label:"昌都县"},{value:"542122",label:"江达县"},{value:"542123",label:"贡觉县"},{value:"542124",label:"类乌齐县"},{value:"542125",label:"丁青县"},{value:"542126",label:"察雅县"},{value:"542127",label:"八宿县"},{value:"542128",label:"左贡县"},{value:"542129",label:"芒康县"},{value:"542132",label:"洛隆县"},{value:"542133",label:"边坝县"}],value:"542100",label:"昌都地区"},{children:[{value:"542221",label:"乃东县"},{value:"542222",label:"扎囊县"},{value:"542223",label:"贡嘎县"},{value:"542224",label:"桑日县"},{value:"542225",label:"琼结县"},{value:"542226",label:"曲松县"},{value:"542227",label:"措美县"},{value:"542228",label:"洛扎县"},{value:"542229",label:"加查县"},{value:"542231",label:"隆子县"},{value:"542232",label:"错那县"},{value:"542233",label:"浪卡子县"}],value:"542200",label:"山南地区"},{children:[{value:"542301",label:"日喀则市"},{value:"542322",label:"南木林县"},{value:"542323",label:"江孜县"},{value:"542324",label:"定日县"},{value:"542325",label:"萨迦县"},{value:"542326",label:"拉孜县"},{value:"542327",label:"昂仁县"},{value:"542328",label:"谢通门县"},{value:"542329",label:"白朗县"},{value:"542330",label:"仁布县"},{value:"542331",label:"康马县"},{value:"542332",label:"定结县"},{value:"542333",label:"仲巴县"},{value:"542334",label:"亚东县"},{value:"542335",label:"吉隆县"},{value:"542336",label:"聂拉木县"},{value:"542337",label:"萨嘎县"},{value:"542338",label:"岗巴县"}],value:"542300",label:"日喀则地区"},{children:[{value:"542421",label:"那曲县"},{value:"542422",label:"嘉黎县"},{value:"542423",label:"比如县"},{value:"542424",label:"聂荣县"},{value:"542425",label:"安多县"},{value:"542426",label:"申扎县"},{value:"542427",label:"索县"},{value:"542428",label:"班戈县"},{value:"542429",label:"巴青县"},{value:"542430",label:"尼玛县"},{value:"542431",label:"双湖县"}],value:"542400",label:"那曲地区"},{children:[{value:"542521",label:"普兰县"},{value:"542522",label:"札达县"},{value:"542523",label:"噶尔县"},{value:"542524",label:"日土县"},{value:"542525",label:"革吉县"},{value:"542526",label:"改则县"},{value:"542527",label:"措勤县"}],value:"542500",label:"阿里地区"},{children:[{value:"542621",label:"林芝县"},{value:"542622",label:"工布江达县"},{value:"542623",label:"米林县"},{value:"542624",label:"墨脱县"},{value:"542625",label:"波密县"},{value:"542626",label:"察隅县"},{value:"542627",label:"朗县"}],value:"542600",label:"林芝地区"}],value:"540000",label:"西藏自治区"},{children:[{children:[{value:"610101",label:"市辖区"},{value:"610102",label:"新城区"},{value:"610103",label:"碑林区"},{value:"610104",label:"莲湖区"},{value:"610111",label:"灞桥区"},{value:"610112",label:"未央区"},{value:"610113",label:"雁塔区"},{value:"610114",label:"阎良区"},{value:"610115",label:"临潼区"},{value:"610116",label:"长安区"},{value:"610122",label:"蓝田县"},{value:"610124",label:"周至县"},{value:"610125",label:"户县"},{value:"610126",label:"高陵县"}],value:"610100",label:"西安市"},{children:[{value:"610201",label:"市辖区"},{value:"610202",label:"王益区"},{value:"610203",label:"印台区"},{value:"610204",label:"耀州区"},{value:"610222",label:"宜君县"}],value:"610200",label:"铜川市"},{children:[{value:"610301",label:"市辖区"},{value:"610302",label:"渭滨区"},{value:"610303",label:"金台区"},{value:"610304",label:"陈仓区"},{value:"610322",label:"凤翔县"},{value:"610323",label:"岐山县"},{value:"610324",label:"扶风县"},{value:"610326",label:"眉县"},{value:"610327",label:"陇县"},{value:"610328",label:"千阳县"},{value:"610329",label:"麟游县"},{value:"610330",label:"凤县"},{value:"610331",label:"太白县"}],value:"610300",label:"宝鸡市"},{children:[{value:"610401",label:"市辖区"},{value:"610402",label:"秦都区"},{value:"610403",label:"杨陵区"},{value:"610404",label:"渭城区"},{value:"610422",label:"三原县"},{value:"610423",label:"泾阳县"},{value:"610424",label:"乾县"},{value:"610425",label:"礼泉县"},{value:"610426",label:"永寿县"},{value:"610427",label:"彬县"},{value:"610428",label:"长武县"},{value:"610429",label:"旬邑县"},{value:"610430",label:"淳化县"},{value:"610431",label:"武功县"},{value:"610481",label:"兴平市"}],value:"610400",label:"咸阳市"},{children:[{value:"610501",label:"市辖区"},{value:"610502",label:"临渭区"},{value:"610521",label:"华县"},{value:"610522",label:"潼关县"},{value:"610523",label:"大荔县"},{value:"610524",label:"合阳县"},{value:"610525",label:"澄城县"},{value:"610526",label:"蒲城县"},{value:"610527",label:"白水县"},{value:"610528",label:"富平县"},{value:"610581",label:"韩城市"},{value:"610582",label:"华阴市"}],value:"610500",label:"渭南市"},{children:[{value:"610601",label:"市辖区"},{value:"610602",label:"宝塔区"},{value:"610621",label:"延长县"},{value:"610622",label:"延川县"},{value:"610623",label:"子长县"},{value:"610624",label:"安塞县"},{value:"610625",label:"志丹县"},{value:"610626",label:"吴起县"},{value:"610627",label:"甘泉县"},{value:"610628",label:"富县"},{value:"610629",label:"洛川县"},{value:"610630",label:"宜川县"},{value:"610631",label:"黄龙县"},{value:"610632",label:"黄陵县"}],value:"610600",label:"延安市"},{children:[{value:"610701",label:"市辖区"},{value:"610702",label:"汉台区"},{value:"610721",label:"南郑县"},{value:"610722",label:"城固县"},{value:"610723",label:"洋县"},{value:"610724",label:"西乡县"},{value:"610725",label:"勉县"},{value:"610726",label:"宁强县"},{value:"610727",label:"略阳县"},{value:"610728",label:"镇巴县"},{value:"610729",label:"留坝县"},{value:"610730",label:"佛坪县"}],value:"610700",label:"汉中市"},{children:[{value:"610801",label:"市辖区"},{value:"610802",label:"榆阳区"},{value:"610821",label:"神木县"},{value:"610822",label:"府谷县"},{value:"610823",label:"横山县"},{value:"610824",label:"靖边县"},{value:"610825",label:"定边县"},{value:"610826",label:"绥德县"},{value:"610827",label:"米脂县"},{value:"610828",label:"佳县"},{value:"610829",label:"吴堡县"},{value:"610830",label:"清涧县"},{value:"610831",label:"子洲县"}],value:"610800",label:"榆林市"},{children:[{value:"610901",label:"市辖区"},{value:"610902",label:"汉滨区"},{value:"610921",label:"汉阴县"},{value:"610922",label:"石泉县"},{value:"610923",label:"宁陕县"},{value:"610924",label:"紫阳县"},{value:"610925",label:"岚皋县"},{value:"610926",label:"平利县"},{value:"610927",label:"镇坪县"},{value:"610928",label:"旬阳县"},{value:"610929",label:"白河县"}],value:"610900",label:"安康市"},{children:[{value:"611001",label:"市辖区"},{value:"611002",label:"商州区"},{value:"611021",label:"洛南县"},{value:"611022",label:"丹凤县"},{value:"611023",label:"商南县"},{value:"611024",label:"山阳县"},{value:"611025",label:"镇安县"},{value:"611026",label:"柞水县"}],value:"611000",label:"商洛市"}],value:"610000",label:"陕西省"},{children:[{children:[{value:"620101",label:"市辖区"},{value:"620102",label:"城关区"},{value:"620103",label:"七里河区"},{value:"620104",label:"西固区"},{value:"620105",label:"安宁区"},{value:"620111",label:"红古区"},{value:"620121",label:"永登县"},{value:"620122",label:"皋兰县"},{value:"620123",label:"榆中县"}],value:"620100",label:"兰州市"},{children:[{value:"620201",label:"市辖区"}],value:"620200",label:"嘉峪关市"},{children:[{value:"620301",label:"市辖区"},{value:"620302",label:"金川区"},{value:"620321",label:"永昌县"}],value:"620300",label:"金昌市"},{children:[{value:"620401",label:"市辖区"},{value:"620402",label:"白银区"},{value:"620403",label:"平川区"},{value:"620421",label:"靖远县"},{value:"620422",label:"会宁县"},{value:"620423",label:"景泰县"}],value:"620400",label:"白银市"},{children:[{value:"620501",label:"市辖区"},{value:"620502",label:"秦州区"},{value:"620503",label:"麦积区"},{value:"620521",label:"清水县"},{value:"620522",label:"秦安县"},{value:"620523",label:"甘谷县"},{value:"620524",label:"武山县"},{value:"620525",label:"张家川回族自治县"}],value:"620500",label:"天水市"},{children:[{value:"620601",label:"市辖区"},{value:"620602",label:"凉州区"},{value:"620621",label:"民勤县"},{value:"620622",label:"古浪县"},{value:"620623",label:"天祝藏族自治县"}],value:"620600",label:"武威市"},{children:[{value:"620701",label:"市辖区"},{value:"620702",label:"甘州区"},{value:"620721",label:"肃南裕固族自治县"},{value:"620722",label:"民乐县"},{value:"620723",label:"临泽县"},{value:"620724",label:"高台县"},{value:"620725",label:"山丹县"}],value:"620700",label:"张掖市"},{children:[{value:"620801",label:"市辖区"},{value:"620802",label:"崆峒区"},{value:"620821",label:"泾川县"},{value:"620822",label:"灵台县"},{value:"620823",label:"崇信县"},{value:"620824",label:"华亭县"},{value:"620825",label:"庄浪县"},{value:"620826",label:"静宁县"}],value:"620800",label:"平凉市"},{children:[{value:"620901",label:"市辖区"},{value:"620902",label:"肃州区"},{value:"620921",label:"金塔县"},{value:"620922",label:"瓜州县"},{value:"620923",label:"肃北蒙古族自治县"},{value:"620924",label:"阿克塞哈萨克族自治县"},{value:"620981",label:"玉门市"},{value:"620982",label:"敦煌市"}],value:"620900",label:"酒泉市"},{children:[{value:"621001",label:"市辖区"},{value:"621002",label:"西峰区"},{value:"621021",label:"庆城县"},{value:"621022",label:"环县"},{value:"621023",label:"华池县"},{value:"621024",label:"合水县"},{value:"621025",label:"正宁县"},{value:"621026",label:"宁县"},{value:"621027",label:"镇原县"}],value:"621000",label:"庆阳市"},{children:[{value:"621101",label:"市辖区"},{value:"621102",label:"安定区"},{value:"621121",label:"通渭县"},{value:"621122",label:"陇西县"},{value:"621123",label:"渭源县"},{value:"621124",label:"临洮县"},{value:"621125",label:"漳县"},{value:"621126",label:"岷县"}],value:"621100",label:"定西市"},{children:[{value:"621201",label:"市辖区"},{value:"621202",label:"武都区"},{value:"621221",label:"成县"},{value:"621222",label:"文县"},{value:"621223",label:"宕昌县"},{value:"621224",label:"康县"},{value:"621225",label:"西和县"},{value:"621226",label:"礼县"},{value:"621227",label:"徽县"},{value:"621228",label:"两当县"}],value:"621200",label:"陇南市"},{children:[{value:"622901",label:"临夏市"},{value:"622921",label:"临夏县"},{value:"622922",label:"康乐县"},{value:"622923",label:"永靖县"},{value:"622924",label:"广河县"},{value:"622925",label:"和政县"},{value:"622926",label:"东乡族自治县"},{value:"622927",label:"积石山保安族东乡族撒拉族自治县"}],value:"622900",label:"临夏回族自治州"},{children:[{value:"623001",label:"合作市"},{value:"623021",label:"临潭县"},{value:"623022",label:"卓尼县"},{value:"623023",label:"舟曲县"},{value:"623024",label:"迭部县"},{value:"623025",label:"玛曲县"},{value:"623026",label:"碌曲县"},{value:"623027",label:"夏河县"}],value:"623000",label:"甘南藏族自治州"}],value:"620000",label:"甘肃省"},{children:[{children:[{value:"630101",label:"市辖区"},{value:"630102",label:"城东区"},{value:"630103",label:"城中区"},{value:"630104",label:"城西区"},{value:"630105",label:"城北区"},{value:"630121",label:"大通回族土族自治县"},{value:"630122",label:"湟中县"},{value:"630123",label:"湟源县"}],value:"630100",label:"西宁市"},{children:[{value:"630202",label:"乐都区"},{value:"630221",label:"平安县"},{value:"630222",label:"民和回族土族自治县"},{value:"630223",label:"互助土族自治县"},{value:"630224",label:"化隆回族自治县"},{value:"630225",label:"循化撒拉族自治县"}],value:"630200",label:"海东市"},{children:[{value:"632221",label:"门源回族自治县"},{value:"632222",label:"祁连县"},{value:"632223",label:"海晏县"},{value:"632224",label:"刚察县"}],value:"632200",label:"海北藏族自治州"},{children:[{value:"632321",label:"同仁县"},{value:"632322",label:"尖扎县"},{value:"632323",label:"泽库县"},{value:"632324",label:"河南蒙古族自治县"}],value:"632300",label:"黄南藏族自治州"},{children:[{value:"632521",label:"共和县"},{value:"632522",label:"同德县"},{value:"632523",label:"贵德县"},{value:"632524",label:"兴海县"},{value:"632525",label:"贵南县"}],value:"632500",label:"海南藏族自治州"},{children:[{value:"632621",label:"玛沁县"},{value:"632622",label:"班玛县"},{value:"632623",label:"甘德县"},{value:"632624",label:"达日县"},{value:"632625",label:"久治县"},{value:"632626",label:"玛多县"}],value:"632600",label:"果洛藏族自治州"},{children:[{value:"632701",label:"玉树市"},{value:"632722",label:"杂多县"},{value:"632723",label:"称多县"},{value:"632724",label:"治多县"},{value:"632725",label:"囊谦县"},{value:"632726",label:"曲麻莱县"}],value:"632700",label:"玉树藏族自治州"},{children:[{value:"632801",label:"格尔木市"},{value:"632802",label:"德令哈市"},{value:"632821",label:"乌兰县"},{value:"632822",label:"都兰县"},{value:"632823",label:"天峻县"}],value:"632800",label:"海西蒙古族藏族自治州"}],value:"630000",label:"青海省"},{children:[{children:[{value:"640101",label:"市辖区"},{value:"640104",label:"兴庆区"},{value:"640105",label:"西夏区"},{value:"640106",label:"金凤区"},{value:"640121",label:"永宁县"},{value:"640122",label:"贺兰县"},{value:"640181",label:"灵武市"}],value:"640100",label:"银川市"},{children:[{value:"640201",label:"市辖区"},{value:"640202",label:"大武口区"},{value:"640205",label:"惠农区"},{value:"640221",label:"平罗县"}],value:"640200",label:"石嘴山市"},{children:[{value:"640301",label:"市辖区"},{value:"640302",label:"利通区"},{value:"640303",label:"红寺堡区"},{value:"640323",label:"盐池县"},{value:"640324",label:"同心县"},{value:"640381",label:"青铜峡市"}],value:"640300",label:"吴忠市"},{children:[{value:"640401",label:"市辖区"},{value:"640402",label:"原州区"},{value:"640422",label:"西吉县"},{value:"640423",label:"隆德县"},{value:"640424",label:"泾源县"},{value:"640425",label:"彭阳县"}],value:"640400",label:"固原市"},{children:[{value:"640501",label:"市辖区"},{value:"640502",label:"沙坡头区"},{value:"640521",label:"中宁县"},{value:"640522",label:"海原县"}],value:"640500",label:"中卫市"}],value:"640000",label:"宁夏回族自治区"},{children:[{children:[{value:"650101",label:"市辖区"},{value:"650102",label:"天山区"},{value:"650103",label:"沙依巴克区"},{value:"650104",label:"新市区"},{value:"650105",label:"水磨沟区"},{value:"650106",label:"头屯河区"},{value:"650107",label:"达坂城区"},{value:"650109",label:"米东区"},{value:"650121",label:"乌鲁木齐县"}],value:"650100",label:"乌鲁木齐市"},{children:[{value:"650201",label:"市辖区"},{value:"650202",label:"独山子区"},{value:"650203",label:"克拉玛依区"},{value:"650204",label:"白碱滩区"},{value:"650205",label:"乌尔禾区"}],value:"650200",label:"克拉玛依市"},{children:[{value:"652101",label:"吐鲁番市"},{value:"652122",label:"鄯善县"},{value:"652123",label:"托克逊县"}],value:"652100",label:"吐鲁番地区"},{children:[{value:"652201",label:"哈密市"},{value:"652222",label:"巴里坤哈萨克自治县"},{value:"652223",label:"伊吾县"}],value:"652200",label:"哈密地区"},{children:[{value:"652301",label:"昌吉市"},{value:"652302",label:"阜康市"},{value:"652323",label:"呼图壁县"},{value:"652324",label:"玛纳斯县"},{value:"652325",label:"奇台县"},{value:"652327",label:"吉木萨尔县"},{value:"652328",label:"木垒哈萨克自治县"}],value:"652300",label:"昌吉回族自治州"},{children:[{value:"652701",label:"博乐市"},{value:"652702",label:"阿拉山口市"},{value:"652722",label:"精河县"},{value:"652723",label:"温泉县"}],value:"652700",label:"博尔塔拉蒙古自治州"},{children:[{value:"652801",label:"库尔勒市"},{value:"652822",label:"轮台县"},{value:"652823",label:"尉犁县"},{value:"652824",label:"若羌县"},{value:"652825",label:"且末县"},{value:"652826",label:"焉耆回族自治县"},{value:"652827",label:"和静县"},{value:"652828",label:"和硕县"},{value:"652829",label:"博湖县"}],value:"652800",label:"巴音郭楞蒙古自治州"},{children:[{value:"652901",label:"阿克苏市"},{value:"652922",label:"温宿县"},{value:"652923",label:"库车县"},{value:"652924",label:"沙雅县"},{value:"652925",label:"新和县"},{value:"652926",label:"拜城县"},{value:"652927",label:"乌什县"},{value:"652928",label:"阿瓦提县"},{value:"652929",label:"柯坪县"}],value:"652900",label:"阿克苏地区"},{children:[{value:"653001",label:"阿图什市"},{value:"653022",label:"阿克陶县"},{value:"653023",label:"阿合奇县"},{value:"653024",label:"乌恰县"}],value:"653000",label:"克孜勒苏柯尔克孜自治州"},{children:[{value:"653101",label:"喀什市"},{value:"653121",label:"疏附县"},{value:"653122",label:"疏勒县"},{value:"653123",label:"英吉沙县"},{value:"653124",label:"泽普县"},{value:"653125",label:"莎车县"},{value:"653126",label:"叶城县"},{value:"653127",label:"麦盖提县"},{value:"653128",label:"岳普湖县"},{value:"653129",label:"伽师县"},{value:"653130",label:"巴楚县"},{value:"653131",label:"塔什库尔干塔吉克自治县"}],value:"653100",label:"喀什地区"},{children:[{value:"653201",label:"和田市"},{value:"653221",label:"和田县"},{value:"653222",label:"墨玉县"},{value:"653223",label:"皮山县"},{value:"653224",label:"洛浦县"},{value:"653225",label:"策勒县"},{value:"653226",label:"于田县"},{value:"653227",label:"民丰县"}],value:"653200",label:"和田地区"},{children:[{value:"654002",label:"伊宁市"},{value:"654003",label:"奎屯市"},{value:"654021",label:"伊宁县"},{value:"654022",label:"察布查尔锡伯自治县"},{value:"654023",label:"霍城县"},{value:"654024",label:"巩留县"},{value:"654025",label:"新源县"},{value:"654026",label:"昭苏县"},{value:"654027",label:"特克斯县"},{value:"654028",label:"尼勒克县"}],value:"654000",label:"伊犁哈萨克自治州"},{children:[{value:"654201",label:"塔城市"},{value:"654202",label:"乌苏市"},{value:"654221",label:"额敏县"},{value:"654223",label:"沙湾县"},{value:"654224",label:"托里县"},{value:"654225",label:"裕民县"},{value:"654226",label:"和布克赛尔蒙古自治县"}],value:"654200",label:"塔城地区"},{children:[{value:"654301",label:"阿勒泰市"},{value:"654321",label:"布尔津县"},{value:"654322",label:"富蕴县"},{value:"654323",label:"福海县"},{value:"654324",label:"哈巴河县"},{value:"654325",label:"青河县"},{value:"654326",label:"吉木乃县"}],value:"654300",label:"阿勒泰地区"},{children:[{value:"659001",label:"石河子市"},{value:"659002",label:"阿拉尔市"},{value:"659003",label:"图木舒克市"},{value:"659004",label:"五家渠市"}],value:"659000",label:"自治区直辖县级行政区划"}],value:"650000",label:"新疆维吾尔自治区"},{value:"710000",label:"台湾省"},{value:"810000",label:"香港特别行政区"},{value:"820000",label:"澳门特别行政区"}];var ve=me;l["a"],n("7d24");n("5865"),n("f513"),n("f4c3");n("eec4");n("5b81"),n("b775");var be=n("bc3a"),ge=n.n(be);const ye={class:"main-box"},we={class:"file_name_box"},ke={key:0,class:"file_box"};Boolean,n("e01a");n("0792");const xe=Object(a["createTextVNode"])("查询"),Ce=Object(a["createTextVNode"])(" 重置 "),Te={key:0,class:"tabBox",style:{"margin-top":"0px"}},Me={class:"dialog-footer"},Oe=Object(a["createTextVNode"])("取消"),Se=Object(a["createTextVNode"])("确认");Boolean,Boolean,n("2c73"),n("5d09");l["a"];var Ee={__name:"index",props:{imgSize:{type:Number,default:150},show:{type:Boolean,default:!1},description:{type:String,default:"暂无数据"}},setup(e){const t=e;return(e,l)=>{const o=Object(a["resolveComponent"])("el-empty");return t.show?(Object(a["openBlock"])(),Object(a["createBlock"])(o,{key:0,description:t.description,image:n("1a11"),"image-size":t.imgSize},null,8,["description","image","image-size"])):Object(a["createCommentVNode"])("",!0)}}};const Ne=Ee;var De=Ne},"7b96":function(e,t,n){},"7d03":function(e,t,n){},"7d24":function(e,t,n){"use strict";n("a47f")},"7f06":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));for(var a={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:"'"},l={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),r="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),i="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),c="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),u="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=o&&(c||+o[1]<57)||i&&c,d=0;d<10;d++)a[48+d]=a[96+d]=String(d);for(d=1;d<=24;d++)a[d+111]="F"+d;for(d=65;d<=90;d++)a[d]=String.fromCharCode(d+32),l[d]=String.fromCharCode(d);for(var p in a)l.hasOwnProperty(p)||(l[p]=a[p]);function h(e){var t=s&&(e.ctrlKey||e.altKey||e.metaKey)||(r||u)&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?l:a)[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 f=n("5313"),m="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function v(e){var t,n,a,l,o=e.split(/-(?!$)/),r=o[o.length-1];"Space"==r&&(r=" ");for(var i=0;i<o.length-1;i++){var c=o[i];if(/^(cmd|meta|m)$/i.test(c))l=!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))a=!0;else{if(!/^mod$/i.test(c))throw new Error("Unrecognized modifier name: "+c);m?l=!0:n=!0}}return t&&(r="Alt-"+r),n&&(r="Ctrl-"+r),l&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function b(e){var t=Object.create(null);for(var n in e)t[v(n)]=e[n];return t}function g(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 f["d"]({props:{handleKeyDown:w(e)}})}function w(e){var t=b(e);return function(e,n){var l,o=h(n),r=1==o.length&&" "!=o,i=t[g(o,n,!r)];if(i&&i(e.state,e.dispatch,e))return!0;if(r&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(l=a[n.keyCode])&&l!=o){var c=t[g(l,n,!0)];if(c&&c(e.state,e.dispatch,e))return!0}else if(r&&n.shiftKey){var u=t[g(o,n,!0)];if(u&&u(e.state,e.dispatch,e))return!0}return!1}}},8589:function(e,t,n){"use strict";var a=n("7a23"),l=n("267e");const o={class:"value"};var r={__name:"index",props:{placeholder:{default:"请输入图标名称",type:String},modelValue:{default:"",type:String},width:{default:l["a"],type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const l=Object(a["ref"])([]),r=(e,t)=>{const n=e?l.value.filter(i(e)):l.value;t(n)},i=e=>t=>0===t.value.toLowerCase().indexOf(e.toLowerCase()),c=e=>{t("update:modelValue",e.value)},u=()=>{const e=n("51ff"),t=e.keys().map(e=>{const t=e.split("/")[1],n=t.split(".")[0];return{value:n,link:n}});return t};Object(a["ref"])(!1);Object(a["onMounted"])(()=>{l.value=u()});const s=e=>{t("update:modelValue",e)};return(t,n)=>{const l=Object(a["resolveComponent"])("SvgIcon"),i=Object(a["resolveComponent"])("el-autocomplete");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"form-item-box choose-icon-zj",style:Object(a["normalizeStyle"])({width:e.width})},[Object(a["createVNode"])(i,Object(a["mergeProps"])(t.$attrs,{modelValue:e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),"fetch-suggestions":r,"popper-class":"choose-icon-zj-autocomplete",placeholder:e.placeholder,onChange:s,onSelect:c}),{prefix:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l,{icon:e.modelValue},null,8,["icon"])]),default:Object(a["withCtx"])(({item:e})=>[Object(a["createVNode"])(l,{icon:e.link},null,8,["icon"]),Object(a["createElementVNode"])("div",o,Object(a["toDisplayString"])(e.value),1)]),_:1},16,["modelValue","placeholder"])],4)}}};const i=r;t["a"]=i},8726:function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return D}));var a=200,l=function(){};l.prototype.append=function(e){return e.length?(e=l.from(e),!this.length&&e||e.length<a&&this.leafAppend(e)||this.length<a&&e.leafPrepend(this)||this.appendInner(e)):this},l.prototype.prepend=function(e){return e.length?l.from(e).append(this):this},l.prototype.appendInner=function(e){return new r(this,e)},l.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?l.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},l.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},l.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)},l.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var a=[];return this.forEach((function(t,n){return a.push(e(t,n))}),t,n),a},l.from=function(e){return e instanceof l?e:e&&e.length?new o(e):l.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,a){for(var l=t;l<n;l++)if(!1===e(this.values[l],a+l))return!1},t.prototype.forEachInvertedInner=function(e,t,n,a){for(var l=t-1;l>=n;l--)if(!1===e(this.values[l],a+l))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=a)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=a)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}(l);l.empty=new o([]);var r=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,a){var l=this.left.length;return!(t<l&&!1===this.left.forEachInner(e,t,Math.min(n,l),a))&&(!(n>l&&!1===this.right.forEachInner(e,Math.max(t-l,0),Math.min(this.length,n)-l,a+l))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,a){var l=this.left.length;return!(t>l&&!1===this.right.forEachInvertedInner(e,t-l,Math.max(n,l)-l,a+l))&&(!(n<l&&!1===this.left.forEachInvertedInner(e,Math.min(t,l),n,a))&&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}(l),i=l,c=i,u=n("0ac0"),s=n("5313"),d=500,p=function(e,t){this.items=e,this.eventCount=t};function h(e,t){var n;return e.forEach((function(e,a){if(e.selection&&0==t--)return n=a,!1})),e.slice(n)}p.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var a,l,o=this.items.length;;o--){var r=this.items.get(o-1);if(r.selection){--o;break}}t&&(a=this.remapping(o,this.items.length),l=a.maps.length);var i,c,u=e.tr,s=[],d=[];return this.items.forEach((function(e,t){if(!e.step)return a||(a=n.remapping(o,t+1),l=a.maps.length),l--,void d.push(e);if(a){d.push(new f(e.map));var r,h=e.step.map(a.slice(l));h&&u.maybeStep(h).doc&&(r=u.mapping.maps[u.mapping.maps.length-1],s.push(new f(r,null,null,s.length+d.length))),l--,r&&a.appendMap(r,l)}else u.maybeStep(e.step);return e.selection?(i=a?e.selection.map(a.slice(l)):e.selection,c=new p(n.items.slice(0,o).append(d.reverse().concat(s)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:c,transform:u,selection:i}},p.prototype.addTransform=function(e,t,n,a){for(var l=[],o=this.eventCount,r=this.items,i=!a&&r.length?r.get(r.length-1):null,c=0;c<e.steps.length;c++){var u=e.steps[c].invert(e.docs[c]),s=new f(e.mapping.maps[c],u,t),d=void 0;(d=i&&i.merge(s))&&(s=d,c?l.pop():r=r.slice(0,r.length-1)),l.push(s),t&&(o++,t=null),a||(i=s)}var m=o-n.depth;return m>v&&(r=h(r,m),o-=m),new p(r.append(l),o)},p.prototype.remapping=function(e,t){var n=new u["a"];return this.items.forEach((function(t,a){var l=null!=t.mirrorOffset&&a-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,l)}),e,t),n},p.prototype.addMaps=function(e){return 0==this.eventCount?this:new p(this.items.append(e.map((function(e){return new f(e)}))),this.eventCount)},p.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],a=Math.max(0,this.items.length-t),l=e.mapping,o=e.steps.length,r=this.eventCount;this.items.forEach((function(e){e.selection&&r--}),a);var i=t;this.items.forEach((function(t){var a=l.getMirror(--i);if(null!=a){o=Math.min(o,a);var c=l.maps[a];if(t.step){var u=e.steps[a].invert(e.docs[a]),s=t.selection&&t.selection.map(l.slice(i+1,a));s&&r++,n.push(new f(c,u,s))}else n.push(new f(c))}}),a);for(var c=[],u=t;u<o;u++)c.push(new f(l.maps[u]));var s=this.items.slice(0,a).append(c).append(n),h=new p(s,r);return h.emptyItemCount()>d&&(h=h.compress(this.items.length-n.length)),h},p.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},p.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,a=[],l=0;return this.items.forEach((function(o,r){if(r>=e)a.push(o),o.selection&&l++;else if(o.step){var i=o.step.map(t.slice(n)),c=i&&i.getMap();if(n--,c&&t.appendMap(c,n),i){var u=o.selection&&o.selection.map(t.slice(n));u&&l++;var s,d=new f(c.invert(),i,u),p=a.length-1;(s=a.length&&a[p].merge(d))?a[p]=s:a.push(d)}}else o.map&&n--}),this.items.length,0),new p(c.from(a.reverse()),l)},p.empty=new p(c.empty,0);var f=function(e,t,n,a){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=a};f.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new f(t.getMap().invert(),t,this.selection)}};var m=function(e,t,n,a){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=a},v=20;function b(e,t,n,a){var l,o=n.getMeta(M);if(o)return o.historyState;n.getMeta(O)&&(e=new m(e.done,e.undone,null,0));var r=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(r&&r.getMeta(M))return r.getMeta(M).redo?new m(e.done.addTransform(n,null,a,T(t)),e.undone,y(n.mapping.maps[n.steps.length-1]),e.prevTime):new m(e.done,e.undone.addTransform(n,null,a,T(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||r&&!1===r.getMeta("addToHistory"))return(l=n.getMeta("rebased"))?new m(e.done.rebased(n,l),e.undone.rebased(n,l),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 i=0==e.prevTime||!r&&(e.prevTime<(n.time||0)-a.newGroupDelay||!g(n,e.prevRanges)),c=r?w(e.prevRanges,n.mapping):y(n.mapping.maps[n.steps.length-1]);return new m(e.done.addTransform(n,i?t.selection.getBookmark():null,a,T(t)),p.empty,c,n.time)}function g(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,a){for(var l=0;l<t.length;l+=2)e<=t[l+1]&&a>=t[l]&&(n=!0)})),n}function y(e){var t=[];return e.forEach((function(e,n,a,l){return t.push(a,l)})),t}function w(e,t){if(!e)return null;for(var n=[],a=0;a<e.length;a+=2){var l=t.map(e[a],1),o=t.map(e[a+1],-1);l<=o&&n.push(l,o)}return n}function k(e,t,n,a){var l=T(t),o=M.get(t).spec.config,r=(a?e.undone:e.done).popEvent(t,l);if(r){var i=r.selection.resolve(r.transform.doc),c=(a?e.done:e.undone).addTransform(r.transform,t.selection.getBookmark(),o,l),u=new m(a?c:r.remaining,a?r.remaining:c,null,0);n(r.transform.setSelection(i).setMeta(M,{redo:a,historyState:u}).scrollIntoView())}}var x=!1,C=null;function T(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 M=new s["e"]("history"),O=new s["e"]("closeHistory");function S(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new s["d"]({key:M,state:{init:function(){return new m(p.empty,p.empty,null,0)},apply:function(t,n,a){return b(n,a,t,e)}},config:e})}function E(e,t){var n=M.getState(e);return!(!n||0==n.done.eventCount)&&(t&&k(n,e,t,!1),!0)}function N(e,t){var n=M.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&k(n,e,t,!0),!0)}function D(e){var t=M.getState(e);return t?t.done.eventCount:0}},8905:function(e,t,n){"use strict";n("03fb")},"90d8":function(e,t,n){var a=n("c65b"),l=n("1a2d"),o=n("3a9b"),r=n("ad6d"),i=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in i||l(e,"flags")||!o(i,e)?t:a(r,e)}},9541:function(e,t,n){},"9fff":function(e,t,n){},a47f:function(e,t,n){},a521:function(e,t,n){},ad6d:function(e,t,n){"use strict";var a=n("825a");e.exports=function(){var e=a(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},b312:function(e,t,n){"use strict";n("42a3")},ce19:function(e){e.exports=JSON.parse('[{"code":"51","name":"四川省","children":[{"code":"5101","name":"成都市","children":[{"code":"510107","name":"武侯区","children":[{"code":"5101041","name":"红牌楼街道"},{"code":"5101051","name":"玉林街道"}]},{"code":"510104","name":"锦江区"},{"code":"510105","name":"青羊区"},{"code":"510106","name":"金牛区"},{"code":"510108","name":"成华区"},{"code":"510112","name":"龙泉驿区"},{"code":"510113","name":"青白江区"},{"code":"510114","name":"新都区"},{"code":"510115","name":"温江区"},{"code":"510116","name":"双流区"},{"code":"510117","name":"郫都区"},{"code":"510118","name":"新津区"},{"code":"510121","name":"金堂县"},{"code":"510129","name":"大邑县"},{"code":"510131","name":"蒲江县"},{"code":"510181","name":"都江堰市"},{"code":"510182","name":"彭州市"},{"code":"510183","name":"邛崃市"},{"code":"510184","name":"崇州市"},{"code":"510185","name":"简阳市"}]},{"code":"5103","name":"自贡市","children":[{"code":"510302","name":"自流井区"},{"code":"510303","name":"贡井区"},{"code":"510304","name":"大安区"},{"code":"510311","name":"沿滩区"},{"code":"510321","name":"荣县"},{"code":"510322","name":"富顺县"}]},{"code":"5104","name":"攀枝花市","children":[{"code":"510402","name":"东区"},{"code":"510403","name":"西区"},{"code":"510411","name":"仁和区"},{"code":"510421","name":"米易县"},{"code":"510422","name":"盐边县"}]},{"code":"5105","name":"泸州市","children":[{"code":"510502","name":"江阳区"},{"code":"510503","name":"纳溪区"},{"code":"510504","name":"龙马潭区"},{"code":"510521","name":"泸县"},{"code":"510522","name":"合江县"},{"code":"510524","name":"叙永县"},{"code":"510525","name":"古蔺县"}]},{"code":"5106","name":"德阳市","children":[{"code":"510603","name":"旌阳区"},{"code":"510604","name":"罗江区"},{"code":"510623","name":"中江县"},{"code":"510681","name":"广汉市"},{"code":"510682","name":"什邡市"},{"code":"510683","name":"绵竹市"}]},{"code":"5107","name":"绵阳市","children":[{"code":"510703","name":"涪城区"},{"code":"510704","name":"游仙区"},{"code":"510705","name":"安州区"},{"code":"510722","name":"三台县"},{"code":"510723","name":"盐亭县"},{"code":"510725","name":"梓潼县"},{"code":"510726","name":"北川羌族自治县"},{"code":"510727","name":"平武县"},{"code":"510781","name":"江油市"}]},{"code":"5108","name":"广元市","children":[{"code":"510802","name":"利州区"},{"code":"510811","name":"昭化区"},{"code":"510812","name":"朝天区"},{"code":"510821","name":"旺苍县"},{"code":"510822","name":"青川县"},{"code":"510823","name":"剑阁县"},{"code":"510824","name":"苍溪县"}]},{"code":"5109","name":"遂宁市","children":[{"code":"510903","name":"船山区"},{"code":"510904","name":"安居区"},{"code":"510921","name":"蓬溪县"},{"code":"510923","name":"大英县"},{"code":"510981","name":"射洪市"}]},{"code":"5110","name":"内江市","children":[{"code":"511002","name":"市中区"},{"code":"511011","name":"东兴区"},{"code":"511024","name":"威远县"},{"code":"511025","name":"资中县"},{"code":"511071","name":"内江经济开发区"},{"code":"511083","name":"隆昌市"}]},{"code":"5111","name":"乐山市","children":[{"code":"511102","name":"市中区"},{"code":"511111","name":"沙湾区"},{"code":"511112","name":"五通桥区"},{"code":"511113","name":"金口河区"},{"code":"511123","name":"犍为县"},{"code":"511124","name":"井研县"},{"code":"511126","name":"夹江县"},{"code":"511129","name":"沐川县"},{"code":"511132","name":"峨边彝族自治县"},{"code":"511133","name":"马边彝族自治县"},{"code":"511181","name":"峨眉山市"}]},{"code":"5113","name":"南充市","children":[{"code":"511302","name":"顺庆区"},{"code":"511303","name":"高坪区"},{"code":"511304","name":"嘉陵区"},{"code":"511321","name":"南部县"},{"code":"511322","name":"营山县"},{"code":"511323","name":"蓬安县"},{"code":"511324","name":"仪陇县"},{"code":"511325","name":"西充县"},{"code":"511381","name":"阆中市"}]},{"code":"5114","name":"眉山市","children":[{"code":"511402","name":"东坡区"},{"code":"511403","name":"彭山区"},{"code":"511421","name":"仁寿县"},{"code":"511423","name":"洪雅县"},{"code":"511424","name":"丹棱县"},{"code":"511425","name":"青神县"}]},{"code":"5115","name":"宜宾市","children":[{"code":"511502","name":"翠屏区"},{"code":"511503","name":"南溪区"},{"code":"511504","name":"叙州区"},{"code":"511523","name":"江安县"},{"code":"511524","name":"长宁县"},{"code":"511525","name":"高县"},{"code":"511526","name":"珙县"},{"code":"511527","name":"筠连县"},{"code":"511528","name":"兴文县"},{"code":"511529","name":"屏山县"}]},{"code":"5116","name":"广安市","children":[{"code":"511602","name":"广安区"},{"code":"511603","name":"前锋区"},{"code":"511621","name":"岳池县"},{"code":"511622","name":"武胜县"},{"code":"511623","name":"邻水县"},{"code":"511681","name":"华蓥市"}]},{"code":"5117","name":"达州市","children":[{"code":"511702","name":"通川区"},{"code":"511703","name":"达川区"},{"code":"511722","name":"宣汉县"},{"code":"511723","name":"开江县"},{"code":"511724","name":"大竹县"},{"code":"511725","name":"渠县"},{"code":"511771","name":"达州经济开发区"},{"code":"511781","name":"万源市"}]},{"code":"5118","name":"雅安市","children":[{"code":"511802","name":"雨城区"},{"code":"511803","name":"名山区"},{"code":"511822","name":"荥经县"},{"code":"511823","name":"汉源县"},{"code":"511824","name":"石棉县"},{"code":"511825","name":"天全县"},{"code":"511826","name":"芦山县"},{"code":"511827","name":"宝兴县"}]},{"code":"5119","name":"巴中市","children":[{"code":"511902","name":"巴州区"},{"code":"511903","name":"恩阳区"},{"code":"511921","name":"通江县"},{"code":"511922","name":"南江县"},{"code":"511923","name":"平昌县"},{"code":"511971","name":"巴中经济开发区"}]},{"code":"5120","name":"资阳市","children":[{"code":"512002","name":"雁江区"},{"code":"512021","name":"安岳县"},{"code":"512022","name":"乐至县"}]},{"code":"5132","name":"阿坝藏族羌族自治州","children":[{"code":"513201","name":"马尔康市"},{"code":"513221","name":"汶川县"},{"code":"513222","name":"理县"},{"code":"513223","name":"茂县"},{"code":"513224","name":"松潘县"},{"code":"513225","name":"九寨沟县"},{"code":"513226","name":"金川县"},{"code":"513227","name":"小金县"},{"code":"513228","name":"黑水县"},{"code":"513230","name":"壤塘县"},{"code":"513231","name":"阿坝县"},{"code":"513232","name":"若尔盖县"},{"code":"513233","name":"红原县"}]},{"code":"5133","name":"甘孜藏族自治州","children":[{"code":"513301","name":"康定市"},{"code":"513322","name":"泸定县"},{"code":"513323","name":"丹巴县"},{"code":"513324","name":"九龙县"},{"code":"513325","name":"雅江县"},{"code":"513326","name":"道孚县"},{"code":"513327","name":"炉霍县"},{"code":"513328","name":"甘孜县"},{"code":"513329","name":"新龙县"},{"code":"513330","name":"德格县"},{"code":"513331","name":"白玉县"},{"code":"513332","name":"石渠县"},{"code":"513333","name":"色达县"},{"code":"513334","name":"理塘县"},{"code":"513335","name":"巴塘县"},{"code":"513336","name":"乡城县"},{"code":"513337","name":"稻城县"},{"code":"513338","name":"得荣县"}]},{"code":"5134","name":"凉山彝族自治州","children":[{"code":"513401","name":"西昌市"},{"code":"513422","name":"木里藏族自治县"},{"code":"513423","name":"盐源县"},{"code":"513424","name":"德昌县"},{"code":"513425","name":"会理县"},{"code":"513426","name":"会东县"},{"code":"513427","name":"宁南县"},{"code":"513428","name":"普格县"},{"code":"513429","name":"布拖县"},{"code":"513430","name":"金阳县"},{"code":"513431","name":"昭觉县"},{"code":"513432","name":"喜德县"},{"code":"513433","name":"冕宁县"},{"code":"513434","name":"越西县"},{"code":"513435","name":"甘洛县"},{"code":"513436","name":"美姑县"},{"code":"513437","name":"雷波县"}]}]},{"code":"11","name":"北京市","children":[{"code":"1101","name":"市辖区","children":[{"code":"110101","name":"东城区"},{"code":"110102","name":"西城区"},{"code":"110105","name":"朝阳区"},{"code":"110106","name":"丰台区"},{"code":"110107","name":"石景山区"},{"code":"110108","name":"海淀区"},{"code":"110109","name":"门头沟区"},{"code":"110111","name":"房山区"},{"code":"110112","name":"通州区"},{"code":"110113","name":"顺义区"},{"code":"110114","name":"昌平区"},{"code":"110115","name":"大兴区"},{"code":"110116","name":"怀柔区"},{"code":"110117","name":"平谷区"},{"code":"110118","name":"密云区"},{"code":"110119","name":"延庆区"}]}]},{"code":"12","name":"天津市","children":[{"code":"1201","name":"市辖区","children":[{"code":"120101","name":"和平区"},{"code":"120102","name":"河东区"},{"code":"120103","name":"河西区"},{"code":"120104","name":"南开区"},{"code":"120105","name":"河北区"},{"code":"120106","name":"红桥区"},{"code":"120110","name":"东丽区"},{"code":"120111","name":"西青区"},{"code":"120112","name":"津南区"},{"code":"120113","name":"北辰区"},{"code":"120114","name":"武清区"},{"code":"120115","name":"宝坻区"},{"code":"120116","name":"滨海新区"},{"code":"120117","name":"宁河区"},{"code":"120118","name":"静海区"},{"code":"120119","name":"蓟州区"}]}]},{"code":"13","name":"河北省","children":[{"code":"1301","name":"石家庄市","children":[{"code":"130102","name":"长安区"},{"code":"130104","name":"桥西区"},{"code":"130105","name":"新华区"},{"code":"130107","name":"井陉矿区"},{"code":"130108","name":"裕华区"},{"code":"130109","name":"藁城区"},{"code":"130110","name":"鹿泉区"},{"code":"130111","name":"栾城区"},{"code":"130121","name":"井陉县"},{"code":"130123","name":"正定县"},{"code":"130125","name":"行唐县"},{"code":"130126","name":"灵寿县"},{"code":"130127","name":"高邑县"},{"code":"130128","name":"深泽县"},{"code":"130129","name":"赞皇县"},{"code":"130130","name":"无极县"},{"code":"130131","name":"平山县"},{"code":"130132","name":"元氏县"},{"code":"130133","name":"赵县"},{"code":"130171","name":"石家庄高新技术产业开发区"},{"code":"130172","name":"石家庄循环化工园区"},{"code":"130181","name":"辛集市"},{"code":"130183","name":"晋州市"},{"code":"130184","name":"新乐市"}]},{"code":"1302","name":"唐山市","children":[{"code":"130202","name":"路南区"},{"code":"130203","name":"路北区"},{"code":"130204","name":"古冶区"},{"code":"130205","name":"开平区"},{"code":"130207","name":"丰南区"},{"code":"130208","name":"丰润区"},{"code":"130209","name":"曹妃甸区"},{"code":"130224","name":"滦南县"},{"code":"130225","name":"乐亭县"},{"code":"130227","name":"迁西县"},{"code":"130229","name":"玉田县"},{"code":"130271","name":"河北唐山芦台经济开发区"},{"code":"130272","name":"唐山市汉沽管理区"},{"code":"130273","name":"唐山高新技术产业开发区"},{"code":"130274","name":"河北唐山海港经济开发区"},{"code":"130281","name":"遵化市"},{"code":"130283","name":"迁安市"},{"code":"130284","name":"滦州市"}]},{"code":"1303","name":"秦皇岛市","children":[{"code":"130302","name":"海港区"},{"code":"130303","name":"山海关区"},{"code":"130304","name":"北戴河区"},{"code":"130306","name":"抚宁区"},{"code":"130321","name":"青龙满族自治县"},{"code":"130322","name":"昌黎县"},{"code":"130324","name":"卢龙县"},{"code":"130371","name":"秦皇岛市经济技术开发区"},{"code":"130372","name":"北戴河新区"}]},{"code":"1304","name":"邯郸市","children":[{"code":"130402","name":"邯山区"},{"code":"130403","name":"丛台区"},{"code":"130404","name":"复兴区"},{"code":"130406","name":"峰峰矿区"},{"code":"130407","name":"肥乡区"},{"code":"130408","name":"永年区"},{"code":"130423","name":"临漳县"},{"code":"130424","name":"成安县"},{"code":"130425","name":"大名县"},{"code":"130426","name":"涉县"},{"code":"130427","name":"磁县"},{"code":"130430","name":"邱县"},{"code":"130431","name":"鸡泽县"},{"code":"130432","name":"广平县"},{"code":"130433","name":"馆陶县"},{"code":"130434","name":"魏县"},{"code":"130435","name":"曲周县"},{"code":"130471","name":"邯郸经济技术开发区"},{"code":"130473","name":"邯郸冀南新区"},{"code":"130481","name":"武安市"}]},{"code":"1305","name":"邢台市","children":[{"code":"130502","name":"襄都区"},{"code":"130503","name":"信都区"},{"code":"130505","name":"任泽区"},{"code":"130506","name":"南和区"},{"code":"130522","name":"临城县"},{"code":"130523","name":"内丘县"},{"code":"130524","name":"柏乡县"},{"code":"130525","name":"隆尧县"},{"code":"130528","name":"宁晋县"},{"code":"130529","name":"巨鹿县"},{"code":"130530","name":"新河县"},{"code":"130531","name":"广宗县"},{"code":"130532","name":"平乡县"},{"code":"130533","name":"威县"},{"code":"130534","name":"清河县"},{"code":"130535","name":"临西县"},{"code":"130571","name":"河北邢台经济开发区"},{"code":"130581","name":"南宫市"},{"code":"130582","name":"沙河市"}]},{"code":"1306","name":"保定市","children":[{"code":"130602","name":"竞秀区"},{"code":"130606","name":"莲池区"},{"code":"130607","name":"满城区"},{"code":"130608","name":"清苑区"},{"code":"130609","name":"徐水区"},{"code":"130623","name":"涞水县"},{"code":"130624","name":"阜平县"},{"code":"130626","name":"定兴县"},{"code":"130627","name":"唐县"},{"code":"130628","name":"高阳县"},{"code":"130629","name":"容城县"},{"code":"130630","name":"涞源县"},{"code":"130631","name":"望都县"},{"code":"130632","name":"安新县"},{"code":"130633","name":"易县"},{"code":"130634","name":"曲阳县"},{"code":"130635","name":"蠡县"},{"code":"130636","name":"顺平县"},{"code":"130637","name":"博野县"},{"code":"130638","name":"雄县"},{"code":"130671","name":"保定高新技术产业开发区"},{"code":"130672","name":"保定白沟新城"},{"code":"130681","name":"涿州市"},{"code":"130682","name":"定州市"},{"code":"130683","name":"安国市"},{"code":"130684","name":"高碑店市"}]},{"code":"1307","name":"张家口市","children":[{"code":"130702","name":"桥东区"},{"code":"130703","name":"桥西区"},{"code":"130705","name":"宣化区"},{"code":"130706","name":"下花园区"},{"code":"130708","name":"万全区"},{"code":"130709","name":"崇礼区"},{"code":"130722","name":"张北县"},{"code":"130723","name":"康保县"},{"code":"130724","name":"沽源县"},{"code":"130725","name":"尚义县"},{"code":"130726","name":"蔚县"},{"code":"130727","name":"阳原县"},{"code":"130728","name":"怀安县"},{"code":"130730","name":"怀来县"},{"code":"130731","name":"涿鹿县"},{"code":"130732","name":"赤城县"},{"code":"130771","name":"张家口经济开发区"},{"code":"130772","name":"张家口市察北管理区"},{"code":"130773","name":"张家口市塞北管理区"}]},{"code":"1308","name":"承德市","children":[{"code":"130802","name":"双桥区"},{"code":"130803","name":"双滦区"},{"code":"130804","name":"鹰手营子矿区"},{"code":"130821","name":"承德县"},{"code":"130822","name":"兴隆县"},{"code":"130824","name":"滦平县"},{"code":"130825","name":"隆化县"},{"code":"130826","name":"丰宁满族自治县"},{"code":"130827","name":"宽城满族自治县"},{"code":"130828","name":"围场满族蒙古族自治县"},{"code":"130871","name":"承德高新技术产业开发区"},{"code":"130881","name":"平泉市"}]},{"code":"1309","name":"沧州市","children":[{"code":"130902","name":"新华区"},{"code":"130903","name":"运河区"},{"code":"130921","name":"沧县"},{"code":"130922","name":"青县"},{"code":"130923","name":"东光县"},{"code":"130924","name":"海兴县"},{"code":"130925","name":"盐山县"},{"code":"130926","name":"肃宁县"},{"code":"130927","name":"南皮县"},{"code":"130928","name":"吴桥县"},{"code":"130929","name":"献县"},{"code":"130930","name":"孟村回族自治县"},{"code":"130971","name":"河北沧州经济开发区"},{"code":"130972","name":"沧州高新技术产业开发区"},{"code":"130973","name":"沧州渤海新区"},{"code":"130981","name":"泊头市"},{"code":"130982","name":"任丘市"},{"code":"130983","name":"黄骅市"},{"code":"130984","name":"河间市"}]},{"code":"1310","name":"廊坊市","children":[{"code":"131002","name":"安次区"},{"code":"131003","name":"广阳区"},{"code":"131022","name":"固安县"},{"code":"131023","name":"永清县"},{"code":"131024","name":"香河县"},{"code":"131025","name":"大城县"},{"code":"131026","name":"文安县"},{"code":"131028","name":"大厂回族自治县"},{"code":"131071","name":"廊坊经济技术开发区"},{"code":"131081","name":"霸州市"},{"code":"131082","name":"三河市"}]},{"code":"1311","name":"衡水市","children":[{"code":"131102","name":"桃城区"},{"code":"131103","name":"冀州区"},{"code":"131121","name":"枣强县"},{"code":"131122","name":"武邑县"},{"code":"131123","name":"武强县"},{"code":"131124","name":"饶阳县"},{"code":"131125","name":"安平县"},{"code":"131126","name":"故城县"},{"code":"131127","name":"景县"},{"code":"131128","name":"阜城县"},{"code":"131171","name":"河北衡水高新技术产业开发区"},{"code":"131172","name":"衡水滨湖新区"},{"code":"131182","name":"深州市"}]}]},{"code":"14","name":"山西省","children":[{"code":"1401","name":"太原市","children":[{"code":"140105","name":"小店区"},{"code":"140106","name":"迎泽区"},{"code":"140107","name":"杏花岭区"},{"code":"140108","name":"尖草坪区"},{"code":"140109","name":"万柏林区"},{"code":"140110","name":"晋源区"},{"code":"140121","name":"清徐县"},{"code":"140122","name":"阳曲县"},{"code":"140123","name":"娄烦县"},{"code":"140171","name":"山西转型综合改革示范区"},{"code":"140181","name":"古交市"}]},{"code":"1402","name":"大同市","children":[{"code":"140212","name":"新荣区"},{"code":"140213","name":"平城区"},{"code":"140214","name":"云冈区"},{"code":"140215","name":"云州区"},{"code":"140221","name":"阳高县"},{"code":"140222","name":"天镇县"},{"code":"140223","name":"广灵县"},{"code":"140224","name":"灵丘县"},{"code":"140225","name":"浑源县"},{"code":"140226","name":"左云县"},{"code":"140271","name":"山西大同经济开发区"}]},{"code":"1403","name":"阳泉市","children":[{"code":"140302","name":"城区"},{"code":"140303","name":"矿区"},{"code":"140311","name":"郊区"},{"code":"140321","name":"平定县"},{"code":"140322","name":"盂县"}]},{"code":"1404","name":"长治市","children":[{"code":"140403","name":"潞州区"},{"code":"140404","name":"上党区"},{"code":"140405","name":"屯留区"},{"code":"140406","name":"潞城区"},{"code":"140423","name":"襄垣县"},{"code":"140425","name":"平顺县"},{"code":"140426","name":"黎城县"},{"code":"140427","name":"壶关县"},{"code":"140428","name":"长子县"},{"code":"140429","name":"武乡县"},{"code":"140430","name":"沁县"},{"code":"140431","name":"沁源县"},{"code":"140471","name":"山西长治高新技术产业园区"}]},{"code":"1405","name":"晋城市","children":[{"code":"140502","name":"城区"},{"code":"140521","name":"沁水县"},{"code":"140522","name":"阳城县"},{"code":"140524","name":"陵川县"},{"code":"140525","name":"泽州县"},{"code":"140581","name":"高平市"}]},{"code":"1406","name":"朔州市","children":[{"code":"140602","name":"朔城区"},{"code":"140603","name":"平鲁区"},{"code":"140621","name":"山阴县"},{"code":"140622","name":"应县"},{"code":"140623","name":"右玉县"},{"code":"140671","name":"山西朔州经济开发区"},{"code":"140681","name":"怀仁市"}]},{"code":"1407","name":"晋中市","children":[{"code":"140702","name":"榆次区"},{"code":"140703","name":"太谷区"},{"code":"140721","name":"榆社县"},{"code":"140722","name":"左权县"},{"code":"140723","name":"和顺县"},{"code":"140724","name":"昔阳县"},{"code":"140725","name":"寿阳县"},{"code":"140727","name":"祁县"},{"code":"140728","name":"平遥县"},{"code":"140729","name":"灵石县"},{"code":"140781","name":"介休市"}]},{"code":"1408","name":"运城市","children":[{"code":"140802","name":"盐湖区"},{"code":"140821","name":"临猗县"},{"code":"140822","name":"万荣县"},{"code":"140823","name":"闻喜县"},{"code":"140824","name":"稷山县"},{"code":"140825","name":"新绛县"},{"code":"140826","name":"绛县"},{"code":"140827","name":"垣曲县"},{"code":"140828","name":"夏县"},{"code":"140829","name":"平陆县"},{"code":"140830","name":"芮城县"},{"code":"140881","name":"永济市"},{"code":"140882","name":"河津市"}]},{"code":"1409","name":"忻州市","children":[{"code":"140902","name":"忻府区"},{"code":"140921","name":"定襄县"},{"code":"140922","name":"五台县"},{"code":"140923","name":"代县"},{"code":"140924","name":"繁峙县"},{"code":"140925","name":"宁武县"},{"code":"140926","name":"静乐县"},{"code":"140927","name":"神池县"},{"code":"140928","name":"五寨县"},{"code":"140929","name":"岢岚县"},{"code":"140930","name":"河曲县"},{"code":"140931","name":"保德县"},{"code":"140932","name":"偏关县"},{"code":"140971","name":"五台山风景名胜区"},{"code":"140981","name":"原平市"}]},{"code":"1410","name":"临汾市","children":[{"code":"141002","name":"尧都区"},{"code":"141021","name":"曲沃县"},{"code":"141022","name":"翼城县"},{"code":"141023","name":"襄汾县"},{"code":"141024","name":"洪洞县"},{"code":"141025","name":"古县"},{"code":"141026","name":"安泽县"},{"code":"141027","name":"浮山县"},{"code":"141028","name":"吉县"},{"code":"141029","name":"乡宁县"},{"code":"141030","name":"大宁县"},{"code":"141031","name":"隰县"},{"code":"141032","name":"永和县"},{"code":"141033","name":"蒲县"},{"code":"141034","name":"汾西县"},{"code":"141081","name":"侯马市"},{"code":"141082","name":"霍州市"}]},{"code":"1411","name":"吕梁市","children":[{"code":"141102","name":"离石区"},{"code":"141121","name":"文水县"},{"code":"141122","name":"交城县"},{"code":"141123","name":"兴县"},{"code":"141124","name":"临县"},{"code":"141125","name":"柳林县"},{"code":"141126","name":"石楼县"},{"code":"141127","name":"岚县"},{"code":"141128","name":"方山县"},{"code":"141129","name":"中阳县"},{"code":"141130","name":"交口县"},{"code":"141181","name":"孝义市"},{"code":"141182","name":"汾阳市"}]}]},{"code":"15","name":"内蒙古自治区","children":[{"code":"1501","name":"呼和浩特市","children":[{"code":"150102","name":"新城区"},{"code":"150103","name":"回民区"},{"code":"150104","name":"玉泉区"},{"code":"150105","name":"赛罕区"},{"code":"150121","name":"土默特左旗"},{"code":"150122","name":"托克托县"},{"code":"150123","name":"和林格尔县"},{"code":"150124","name":"清水河县"},{"code":"150125","name":"武川县"},{"code":"150172","name":"呼和浩特经济技术开发区"}]},{"code":"1502","name":"包头市","children":[{"code":"150202","name":"东河区"},{"code":"150203","name":"昆都仑区"},{"code":"150204","name":"青山区"},{"code":"150205","name":"石拐区"},{"code":"150206","name":"白云鄂博矿区"},{"code":"150207","name":"九原区"},{"code":"150221","name":"土默特右旗"},{"code":"150222","name":"固阳县"},{"code":"150223","name":"达尔罕茂明安联合旗"},{"code":"150271","name":"包头稀土高新技术产业开发区"}]},{"code":"1503","name":"乌海市","children":[{"code":"150302","name":"海勃湾区"},{"code":"150303","name":"海南区"},{"code":"150304","name":"乌达区"}]},{"code":"1504","name":"赤峰市","children":[{"code":"150402","name":"红山区"},{"code":"150403","name":"元宝山区"},{"code":"150404","name":"松山区"},{"code":"150421","name":"阿鲁科尔沁旗"},{"code":"150422","name":"巴林左旗"},{"code":"150423","name":"巴林右旗"},{"code":"150424","name":"林西县"},{"code":"150425","name":"克什克腾旗"},{"code":"150426","name":"翁牛特旗"},{"code":"150428","name":"喀喇沁旗"},{"code":"150429","name":"宁城县"},{"code":"150430","name":"敖汉旗"}]},{"code":"1505","name":"通辽市","children":[{"code":"150502","name":"科尔沁区"},{"code":"150521","name":"科尔沁左翼中旗"},{"code":"150522","name":"科尔沁左翼后旗"},{"code":"150523","name":"开鲁县"},{"code":"150524","name":"库伦旗"},{"code":"150525","name":"奈曼旗"},{"code":"150526","name":"扎鲁特旗"},{"code":"150571","name":"通辽经济技术开发区"},{"code":"150581","name":"霍林郭勒市"}]},{"code":"1506","name":"鄂尔多斯市","children":[{"code":"150602","name":"东胜区"},{"code":"150603","name":"康巴什区"},{"code":"150621","name":"达拉特旗"},{"code":"150622","name":"准格尔旗"},{"code":"150623","name":"鄂托克前旗"},{"code":"150624","name":"鄂托克旗"},{"code":"150625","name":"杭锦旗"},{"code":"150626","name":"乌审旗"},{"code":"150627","name":"伊金霍洛旗"}]},{"code":"1507","name":"呼伦贝尔市","children":[{"code":"150702","name":"海拉尔区"},{"code":"150703","name":"扎赉诺尔区"},{"code":"150721","name":"阿荣旗"},{"code":"150722","name":"莫力达瓦达斡尔族自治旗"},{"code":"150723","name":"鄂伦春自治旗"},{"code":"150724","name":"鄂温克族自治旗"},{"code":"150725","name":"陈巴尔虎旗"},{"code":"150726","name":"新巴尔虎左旗"},{"code":"150727","name":"新巴尔虎右旗"},{"code":"150781","name":"满洲里市"},{"code":"150782","name":"牙克石市"},{"code":"150783","name":"扎兰屯市"},{"code":"150784","name":"额尔古纳市"},{"code":"150785","name":"根河市"}]},{"code":"1508","name":"巴彦淖尔市","children":[{"code":"150802","name":"临河区"},{"code":"150821","name":"五原县"},{"code":"150822","name":"磴口县"},{"code":"150823","name":"乌拉特前旗"},{"code":"150824","name":"乌拉特中旗"},{"code":"150825","name":"乌拉特后旗"},{"code":"150826","name":"杭锦后旗"}]},{"code":"1509","name":"乌兰察布市","children":[{"code":"150902","name":"集宁区"},{"code":"150921","name":"卓资县"},{"code":"150922","name":"化德县"},{"code":"150923","name":"商都县"},{"code":"150924","name":"兴和县"},{"code":"150925","name":"凉城县"},{"code":"150926","name":"察哈尔右翼前旗"},{"code":"150927","name":"察哈尔右翼中旗"},{"code":"150928","name":"察哈尔右翼后旗"},{"code":"150929","name":"四子王旗"},{"code":"150981","name":"丰镇市"}]},{"code":"1522","name":"兴安盟","children":[{"code":"152201","name":"乌兰浩特市"},{"code":"152202","name":"阿尔山市"},{"code":"152221","name":"科尔沁右翼前旗"},{"code":"152222","name":"科尔沁右翼中旗"},{"code":"152223","name":"扎赉特旗"},{"code":"152224","name":"突泉县"}]},{"code":"1525","name":"锡林郭勒盟","children":[{"code":"152501","name":"二连浩特市"},{"code":"152502","name":"锡林浩特市"},{"code":"152522","name":"阿巴嘎旗"},{"code":"152523","name":"苏尼特左旗"},{"code":"152524","name":"苏尼特右旗"},{"code":"152525","name":"东乌珠穆沁旗"},{"code":"152526","name":"西乌珠穆沁旗"},{"code":"152527","name":"太仆寺旗"},{"code":"152528","name":"镶黄旗"},{"code":"152529","name":"正镶白旗"},{"code":"152530","name":"正蓝旗"},{"code":"152531","name":"多伦县"},{"code":"152571","name":"乌拉盖管委会"}]},{"code":"1529","name":"阿拉善盟","children":[{"code":"152921","name":"阿拉善左旗"},{"code":"152922","name":"阿拉善右旗"},{"code":"152923","name":"额济纳旗"},{"code":"152971","name":"内蒙古阿拉善经济开发区"}]}]},{"code":"21","name":"辽宁省","children":[{"code":"2101","name":"沈阳市","children":[{"code":"210102","name":"和平区"},{"code":"210103","name":"沈河区"},{"code":"210104","name":"大东区"},{"code":"210105","name":"皇姑区"},{"code":"210106","name":"铁西区"},{"code":"210111","name":"苏家屯区"},{"code":"210112","name":"浑南区"},{"code":"210113","name":"沈北新区"},{"code":"210114","name":"于洪区"},{"code":"210115","name":"辽中区"},{"code":"210123","name":"康平县"},{"code":"210124","name":"法库县"},{"code":"210181","name":"新民市"}]},{"code":"2102","name":"大连市","children":[{"code":"210202","name":"中山区"},{"code":"210203","name":"西岗区"},{"code":"210204","name":"沙河口区"},{"code":"210211","name":"甘井子区"},{"code":"210212","name":"旅顺口区"},{"code":"210213","name":"金州区"},{"code":"210214","name":"普兰店区"},{"code":"210224","name":"长海县"},{"code":"210281","name":"瓦房店市"},{"code":"210283","name":"庄河市"}]},{"code":"2103","name":"鞍山市","children":[{"code":"210302","name":"铁东区"},{"code":"210303","name":"铁西区"},{"code":"210304","name":"立山区"},{"code":"210311","name":"千山区"},{"code":"210321","name":"台安县"},{"code":"210323","name":"岫岩满族自治县"},{"code":"210381","name":"海城市"}]},{"code":"2104","name":"抚顺市","children":[{"code":"210402","name":"新抚区"},{"code":"210403","name":"东洲区"},{"code":"210404","name":"望花区"},{"code":"210411","name":"顺城区"},{"code":"210421","name":"抚顺县"},{"code":"210422","name":"新宾满族自治县"},{"code":"210423","name":"清原满族自治县"}]},{"code":"2105","name":"本溪市","children":[{"code":"210502","name":"平山区"},{"code":"210503","name":"溪湖区"},{"code":"210504","name":"明山区"},{"code":"210505","name":"南芬区"},{"code":"210521","name":"本溪满族自治县"},{"code":"210522","name":"桓仁满族自治县"}]},{"code":"2106","name":"丹东市","children":[{"code":"210602","name":"元宝区"},{"code":"210603","name":"振兴区"},{"code":"210604","name":"振安区"},{"code":"210624","name":"宽甸满族自治县"},{"code":"210681","name":"东港市"},{"code":"210682","name":"凤城市"}]},{"code":"2107","name":"锦州市","children":[{"code":"210702","name":"古塔区"},{"code":"210703","name":"凌河区"},{"code":"210711","name":"太和区"},{"code":"210726","name":"黑山县"},{"code":"210727","name":"义县"},{"code":"210781","name":"凌海市"},{"code":"210782","name":"北镇市"}]},{"code":"2108","name":"营口市","children":[{"code":"210802","name":"站前区"},{"code":"210803","name":"西市区"},{"code":"210804","name":"鲅鱼圈区"},{"code":"210811","name":"老边区"},{"code":"210881","name":"盖州市"},{"code":"210882","name":"大石桥市"}]},{"code":"2109","name":"阜新市","children":[{"code":"210902","name":"海州区"},{"code":"210903","name":"新邱区"},{"code":"210904","name":"太平区"},{"code":"210905","name":"清河门区"},{"code":"210911","name":"细河区"},{"code":"210921","name":"阜新蒙古族自治县"},{"code":"210922","name":"彰武县"}]},{"code":"2110","name":"辽阳市","children":[{"code":"211002","name":"白塔区"},{"code":"211003","name":"文圣区"},{"code":"211004","name":"宏伟区"},{"code":"211005","name":"弓长岭区"},{"code":"211011","name":"太子河区"},{"code":"211021","name":"辽阳县"},{"code":"211081","name":"灯塔市"}]},{"code":"2111","name":"盘锦市","children":[{"code":"211102","name":"双台子区"},{"code":"211103","name":"兴隆台区"},{"code":"211104","name":"大洼区"},{"code":"211122","name":"盘山县"}]},{"code":"2112","name":"铁岭市","children":[{"code":"211202","name":"银州区"},{"code":"211204","name":"清河区"},{"code":"211221","name":"铁岭县"},{"code":"211223","name":"西丰县"},{"code":"211224","name":"昌图县"},{"code":"211281","name":"调兵山市"},{"code":"211282","name":"开原市"}]},{"code":"2113","name":"朝阳市","children":[{"code":"211302","name":"双塔区"},{"code":"211303","name":"龙城区"},{"code":"211321","name":"朝阳县"},{"code":"211322","name":"建平县"},{"code":"211324","name":"喀喇沁左翼蒙古族自治县"},{"code":"211381","name":"北票市"},{"code":"211382","name":"凌源市"}]},{"code":"2114","name":"葫芦岛市","children":[{"code":"211402","name":"连山区"},{"code":"211403","name":"龙港区"},{"code":"211404","name":"南票区"},{"code":"211421","name":"绥中县"},{"code":"211422","name":"建昌县"},{"code":"211481","name":"兴城市"}]}]},{"code":"22","name":"吉林省","children":[{"code":"2201","name":"长春市","children":[{"code":"220102","name":"南关区"},{"code":"220103","name":"宽城区"},{"code":"220104","name":"朝阳区"},{"code":"220105","name":"二道区"},{"code":"220106","name":"绿园区"},{"code":"220112","name":"双阳区"},{"code":"220113","name":"九台区"},{"code":"220122","name":"农安县"},{"code":"220171","name":"长春经济技术开发区"},{"code":"220172","name":"长春净月高新技术产业开发区"},{"code":"220173","name":"长春高新技术产业开发区"},{"code":"220174","name":"长春汽车经济技术开发区"},{"code":"220182","name":"榆树市"},{"code":"220183","name":"德惠市"},{"code":"220184","name":"公主岭市"}]},{"code":"2202","name":"吉林市","children":[{"code":"220202","name":"昌邑区"},{"code":"220203","name":"龙潭区"},{"code":"220204","name":"船营区"},{"code":"220211","name":"丰满区"},{"code":"220221","name":"永吉县"},{"code":"220271","name":"吉林经济开发区"},{"code":"220272","name":"吉林高新技术产业开发区"},{"code":"220273","name":"吉林中国新加坡食品区"},{"code":"220281","name":"蛟河市"},{"code":"220282","name":"桦甸市"},{"code":"220283","name":"舒兰市"},{"code":"220284","name":"磐石市"}]},{"code":"2203","name":"四平市","children":[{"code":"220302","name":"铁西区"},{"code":"220303","name":"铁东区"},{"code":"220322","name":"梨树县"},{"code":"220323","name":"伊通满族自治县"},{"code":"220382","name":"双辽市"}]},{"code":"2204","name":"辽源市","children":[{"code":"220402","name":"龙山区"},{"code":"220403","name":"西安区"},{"code":"220421","name":"东丰县"},{"code":"220422","name":"东辽县"}]},{"code":"2205","name":"通化市","children":[{"code":"220502","name":"东昌区"},{"code":"220503","name":"二道江区"},{"code":"220521","name":"通化县"},{"code":"220523","name":"辉南县"},{"code":"220524","name":"柳河县"},{"code":"220581","name":"梅河口市"},{"code":"220582","name":"集安市"}]},{"code":"2206","name":"白山市","children":[{"code":"220602","name":"浑江区"},{"code":"220605","name":"江源区"},{"code":"220621","name":"抚松县"},{"code":"220622","name":"靖宇县"},{"code":"220623","name":"长白朝鲜族自治县"},{"code":"220681","name":"临江市"}]},{"code":"2207","name":"松原市","children":[{"code":"220702","name":"宁江区"},{"code":"220721","name":"前郭尔罗斯蒙古族自治县"},{"code":"220722","name":"长岭县"},{"code":"220723","name":"乾安县"},{"code":"220771","name":"吉林松原经济开发区"},{"code":"220781","name":"扶余市"}]},{"code":"2208","name":"白城市","children":[{"code":"220802","name":"洮北区"},{"code":"220821","name":"镇赉县"},{"code":"220822","name":"通榆县"},{"code":"220871","name":"吉林白城经济开发区"},{"code":"220881","name":"洮南市"},{"code":"220882","name":"大安市"}]},{"code":"2224","name":"延边朝鲜族自治州","children":[{"code":"222401","name":"延吉市"},{"code":"222402","name":"图们市"},{"code":"222403","name":"敦化市"},{"code":"222404","name":"珲春市"},{"code":"222405","name":"龙井市"},{"code":"222406","name":"和龙市"},{"code":"222424","name":"汪清县"},{"code":"222426","name":"安图县"}]}]},{"code":"23","name":"黑龙江省","children":[{"code":"2301","name":"哈尔滨市","children":[{"code":"230102","name":"道里区"},{"code":"230103","name":"南岗区"},{"code":"230104","name":"道外区"},{"code":"230108","name":"平房区"},{"code":"230109","name":"松北区"},{"code":"230110","name":"香坊区"},{"code":"230111","name":"呼兰区"},{"code":"230112","name":"阿城区"},{"code":"230113","name":"双城区"},{"code":"230123","name":"依兰县"},{"code":"230124","name":"方正县"},{"code":"230125","name":"宾县"},{"code":"230126","name":"巴彦县"},{"code":"230127","name":"木兰县"},{"code":"230128","name":"通河县"},{"code":"230129","name":"延寿县"},{"code":"230183","name":"尚志市"},{"code":"230184","name":"五常市"}]},{"code":"2302","name":"齐齐哈尔市","children":[{"code":"230202","name":"龙沙区"},{"code":"230203","name":"建华区"},{"code":"230204","name":"铁锋区"},{"code":"230205","name":"昂昂溪区"},{"code":"230206","name":"富拉尔基区"},{"code":"230207","name":"碾子山区"},{"code":"230208","name":"梅里斯达斡尔族区"},{"code":"230221","name":"龙江县"},{"code":"230223","name":"依安县"},{"code":"230224","name":"泰来县"},{"code":"230225","name":"甘南县"},{"code":"230227","name":"富裕县"},{"code":"230229","name":"克山县"},{"code":"230230","name":"克东县"},{"code":"230231","name":"拜泉县"},{"code":"230281","name":"讷河市"}]},{"code":"2303","name":"鸡西市","children":[{"code":"230302","name":"鸡冠区"},{"code":"230303","name":"恒山区"},{"code":"230304","name":"滴道区"},{"code":"230305","name":"梨树区"},{"code":"230306","name":"城子河区"},{"code":"230307","name":"麻山区"},{"code":"230321","name":"鸡东县"},{"code":"230381","name":"虎林市"},{"code":"230382","name":"密山市"}]},{"code":"2304","name":"鹤岗市","children":[{"code":"230402","name":"向阳区"},{"code":"230403","name":"工农区"},{"code":"230404","name":"南山区"},{"code":"230405","name":"兴安区"},{"code":"230406","name":"东山区"},{"code":"230407","name":"兴山区"},{"code":"230421","name":"萝北县"},{"code":"230422","name":"绥滨县"}]},{"code":"2305","name":"双鸭山市","children":[{"code":"230502","name":"尖山区"},{"code":"230503","name":"岭东区"},{"code":"230505","name":"四方台区"},{"code":"230506","name":"宝山区"},{"code":"230521","name":"集贤县"},{"code":"230522","name":"友谊县"},{"code":"230523","name":"宝清县"},{"code":"230524","name":"饶河县"}]},{"code":"2306","name":"大庆市","children":[{"code":"230602","name":"萨尔图区"},{"code":"230603","name":"龙凤区"},{"code":"230604","name":"让胡路区"},{"code":"230605","name":"红岗区"},{"code":"230606","name":"大同区"},{"code":"230621","name":"肇州县"},{"code":"230622","name":"肇源县"},{"code":"230623","name":"林甸县"},{"code":"230624","name":"杜尔伯特蒙古族自治县"},{"code":"230671","name":"大庆高新技术产业开发区"}]},{"code":"2307","name":"伊春市","children":[{"code":"230717","name":"伊美区"},{"code":"230718","name":"乌翠区"},{"code":"230719","name":"友好区"},{"code":"230722","name":"嘉荫县"},{"code":"230723","name":"汤旺县"},{"code":"230724","name":"丰林县"},{"code":"230725","name":"大箐山县"},{"code":"230726","name":"南岔县"},{"code":"230751","name":"金林区"},{"code":"230781","name":"铁力市"}]},{"code":"2308","name":"佳木斯市","children":[{"code":"230803","name":"向阳区"},{"code":"230804","name":"前进区"},{"code":"230805","name":"东风区"},{"code":"230811","name":"郊区"},{"code":"230822","name":"桦南县"},{"code":"230826","name":"桦川县"},{"code":"230828","name":"汤原县"},{"code":"230881","name":"同江市"},{"code":"230882","name":"富锦市"},{"code":"230883","name":"抚远市"}]},{"code":"2309","name":"七台河市","children":[{"code":"230902","name":"新兴区"},{"code":"230903","name":"桃山区"},{"code":"230904","name":"茄子河区"},{"code":"230921","name":"勃利县"}]},{"code":"2310","name":"牡丹江市","children":[{"code":"231002","name":"东安区"},{"code":"231003","name":"阳明区"},{"code":"231004","name":"爱民区"},{"code":"231005","name":"西安区"},{"code":"231025","name":"林口县"},{"code":"231071","name":"牡丹江经济技术开发区"},{"code":"231081","name":"绥芬河市"},{"code":"231083","name":"海林市"},{"code":"231084","name":"宁安市"},{"code":"231085","name":"穆棱市"},{"code":"231086","name":"东宁市"}]},{"code":"2311","name":"黑河市","children":[{"code":"231102","name":"爱辉区"},{"code":"231123","name":"逊克县"},{"code":"231124","name":"孙吴县"},{"code":"231181","name":"北安市"},{"code":"231182","name":"五大连池市"},{"code":"231183","name":"嫩江市"}]},{"code":"2312","name":"绥化市","children":[{"code":"231202","name":"北林区"},{"code":"231221","name":"望奎县"},{"code":"231222","name":"兰西县"},{"code":"231223","name":"青冈县"},{"code":"231224","name":"庆安县"},{"code":"231225","name":"明水县"},{"code":"231226","name":"绥棱县"},{"code":"231281","name":"安达市"},{"code":"231282","name":"肇东市"},{"code":"231283","name":"海伦市"}]},{"code":"2327","name":"大兴安岭地区","children":[{"code":"232701","name":"漠河市"},{"code":"232721","name":"呼玛县"},{"code":"232722","name":"塔河县"},{"code":"232761","name":"加格达奇区"},{"code":"232762","name":"松岭区"},{"code":"232763","name":"新林区"},{"code":"232764","name":"呼中区"}]}]},{"code":"31","name":"上海市","children":[{"code":"3101","name":"市辖区","children":[{"code":"310101","name":"黄浦区"},{"code":"310104","name":"徐汇区"},{"code":"310105","name":"长宁区"},{"code":"310106","name":"静安区"},{"code":"310107","name":"普陀区"},{"code":"310109","name":"虹口区"},{"code":"310110","name":"杨浦区"},{"code":"310112","name":"闵行区"},{"code":"310113","name":"宝山区"},{"code":"310114","name":"嘉定区"},{"code":"310115","name":"浦东新区"},{"code":"310116","name":"金山区"},{"code":"310117","name":"松江区"},{"code":"310118","name":"青浦区"},{"code":"310120","name":"奉贤区"},{"code":"310151","name":"崇明区"}]}]},{"code":"32","name":"江苏省","children":[{"code":"3201","name":"南京市","children":[{"code":"320102","name":"玄武区"},{"code":"320104","name":"秦淮区"},{"code":"320105","name":"建邺区"},{"code":"320106","name":"鼓楼区"},{"code":"320111","name":"浦口区"},{"code":"320113","name":"栖霞区"},{"code":"320114","name":"雨花台区"},{"code":"320115","name":"江宁区"},{"code":"320116","name":"六合区"},{"code":"320117","name":"溧水区"},{"code":"320118","name":"高淳区"}]},{"code":"3202","name":"无锡市","children":[{"code":"320205","name":"锡山区"},{"code":"320206","name":"惠山区"},{"code":"320211","name":"滨湖区"},{"code":"320213","name":"梁溪区"},{"code":"320214","name":"新吴区"},{"code":"320281","name":"江阴市"},{"code":"320282","name":"宜兴市"}]},{"code":"3203","name":"徐州市","children":[{"code":"320302","name":"鼓楼区"},{"code":"320303","name":"云龙区"},{"code":"320305","name":"贾汪区"},{"code":"320311","name":"泉山区"},{"code":"320312","name":"铜山区"},{"code":"320321","name":"丰县"},{"code":"320322","name":"沛县"},{"code":"320324","name":"睢宁县"},{"code":"320371","name":"徐州经济技术开发区"},{"code":"320381","name":"新沂市"},{"code":"320382","name":"邳州市"}]},{"code":"3204","name":"常州市","children":[{"code":"320402","name":"天宁区"},{"code":"320404","name":"钟楼区"},{"code":"320411","name":"新北区"},{"code":"320412","name":"武进区"},{"code":"320413","name":"金坛区"},{"code":"320481","name":"溧阳市"}]},{"code":"3205","name":"苏州市","children":[{"code":"320505","name":"虎丘区"},{"code":"320506","name":"吴中区"},{"code":"320507","name":"相城区"},{"code":"320508","name":"姑苏区"},{"code":"320509","name":"吴江区"},{"code":"320571","name":"苏州工业园区"},{"code":"320581","name":"常熟市"},{"code":"320582","name":"张家港市"},{"code":"320583","name":"昆山市"},{"code":"320585","name":"太仓市"}]},{"code":"3206","name":"南通市","children":[{"code":"320602","name":"崇川区"},{"code":"320611","name":"港闸区"},{"code":"320612","name":"通州区"},{"code":"320623","name":"如东县"},{"code":"320671","name":"南通经济技术开发区"},{"code":"320681","name":"启东市"},{"code":"320682","name":"如皋市"},{"code":"320684","name":"海门市"},{"code":"320685","name":"海安市"}]},{"code":"3207","name":"连云港市","children":[{"code":"320703","name":"连云区"},{"code":"320706","name":"海州区"},{"code":"320707","name":"赣榆区"},{"code":"320722","name":"东海县"},{"code":"320723","name":"灌云县"},{"code":"320724","name":"灌南县"},{"code":"320771","name":"连云港经济技术开发区"},{"code":"320772","name":"连云港高新技术产业开发区"}]},{"code":"3208","name":"淮安市","children":[{"code":"320803","name":"淮安区"},{"code":"320804","name":"淮阴区"},{"code":"320812","name":"清江浦区"},{"code":"320813","name":"洪泽区"},{"code":"320826","name":"涟水县"},{"code":"320830","name":"盱眙县"},{"code":"320831","name":"金湖县"},{"code":"320871","name":"淮安经济技术开发区"}]},{"code":"3209","name":"盐城市","children":[{"code":"320902","name":"亭湖区"},{"code":"320903","name":"盐都区"},{"code":"320904","name":"大丰区"},{"code":"320921","name":"响水县"},{"code":"320922","name":"滨海县"},{"code":"320923","name":"阜宁县"},{"code":"320924","name":"射阳县"},{"code":"320925","name":"建湖县"},{"code":"320971","name":"盐城经济技术开发区"},{"code":"320981","name":"东台市"}]},{"code":"3210","name":"扬州市","children":[{"code":"321002","name":"广陵区"},{"code":"321003","name":"邗江区"},{"code":"321012","name":"江都区"},{"code":"321023","name":"宝应县"},{"code":"321071","name":"扬州经济技术开发区"},{"code":"321081","name":"仪征市"},{"code":"321084","name":"高邮市"}]},{"code":"3211","name":"镇江市","children":[{"code":"321102","name":"京口区"},{"code":"321111","name":"润州区"},{"code":"321112","name":"丹徒区"},{"code":"321171","name":"镇江新区"},{"code":"321181","name":"丹阳市"},{"code":"321182","name":"扬中市"},{"code":"321183","name":"句容市"}]},{"code":"3212","name":"泰州市","children":[{"code":"321202","name":"海陵区"},{"code":"321203","name":"高港区"},{"code":"321204","name":"姜堰区"},{"code":"321271","name":"泰州医药高新技术产业开发区"},{"code":"321281","name":"兴化市"},{"code":"321282","name":"靖江市"},{"code":"321283","name":"泰兴市"}]},{"code":"3213","name":"宿迁市","children":[{"code":"321302","name":"宿城区"},{"code":"321311","name":"宿豫区"},{"code":"321322","name":"沭阳县"},{"code":"321323","name":"泗阳县"},{"code":"321324","name":"泗洪县"},{"code":"321371","name":"宿迁经济技术开发区"}]}]},{"code":"33","name":"浙江省","children":[{"code":"3301","name":"杭州市","children":[{"code":"330102","name":"上城区"},{"code":"330103","name":"下城区"},{"code":"330104","name":"江干区"},{"code":"330105","name":"拱墅区"},{"code":"330106","name":"西湖区"},{"code":"330108","name":"滨江区"},{"code":"330109","name":"萧山区"},{"code":"330110","name":"余杭区"},{"code":"330111","name":"富阳区"},{"code":"330112","name":"临安区"},{"code":"330122","name":"桐庐县"},{"code":"330127","name":"淳安县"},{"code":"330182","name":"建德市"}]},{"code":"3302","name":"宁波市","children":[{"code":"330203","name":"海曙区"},{"code":"330205","name":"江北区"},{"code":"330206","name":"北仑区"},{"code":"330211","name":"镇海区"},{"code":"330212","name":"鄞州区"},{"code":"330213","name":"奉化区"},{"code":"330225","name":"象山县"},{"code":"330226","name":"宁海县"},{"code":"330281","name":"余姚市"},{"code":"330282","name":"慈溪市"}]},{"code":"3303","name":"温州市","children":[{"code":"330302","name":"鹿城区"},{"code":"330303","name":"龙湾区"},{"code":"330304","name":"瓯海区"},{"code":"330305","name":"洞头区"},{"code":"330324","name":"永嘉县"},{"code":"330326","name":"平阳县"},{"code":"330327","name":"苍南县"},{"code":"330328","name":"文成县"},{"code":"330329","name":"泰顺县"},{"code":"330371","name":"温州经济技术开发区"},{"code":"330381","name":"瑞安市"},{"code":"330382","name":"乐清市"},{"code":"330383","name":"龙港市"}]},{"code":"3304","name":"嘉兴市","children":[{"code":"330402","name":"南湖区"},{"code":"330411","name":"秀洲区"},{"code":"330421","name":"嘉善县"},{"code":"330424","name":"海盐县"},{"code":"330481","name":"海宁市"},{"code":"330482","name":"平湖市"},{"code":"330483","name":"桐乡市"}]},{"code":"3305","name":"湖州市","children":[{"code":"330502","name":"吴兴区"},{"code":"330503","name":"南浔区"},{"code":"330521","name":"德清县"},{"code":"330522","name":"长兴县"},{"code":"330523","name":"安吉县"}]},{"code":"3306","name":"绍兴市","children":[{"code":"330602","name":"越城区"},{"code":"330603","name":"柯桥区"},{"code":"330604","name":"上虞区"},{"code":"330624","name":"新昌县"},{"code":"330681","name":"诸暨市"},{"code":"330683","name":"嵊州市"}]},{"code":"3307","name":"金华市","children":[{"code":"330702","name":"婺城区"},{"code":"330703","name":"金东区"},{"code":"330723","name":"武义县"},{"code":"330726","name":"浦江县"},{"code":"330727","name":"磐安县"},{"code":"330781","name":"兰溪市"},{"code":"330782","name":"义乌市"},{"code":"330783","name":"东阳市"},{"code":"330784","name":"永康市"}]},{"code":"3308","name":"衢州市","children":[{"code":"330802","name":"柯城区"},{"code":"330803","name":"衢江区"},{"code":"330822","name":"常山县"},{"code":"330824","name":"开化县"},{"code":"330825","name":"龙游县"},{"code":"330881","name":"江山市"}]},{"code":"3309","name":"舟山市","children":[{"code":"330902","name":"定海区"},{"code":"330903","name":"普陀区"},{"code":"330921","name":"岱山县"},{"code":"330922","name":"嵊泗县"}]},{"code":"3310","name":"台州市","children":[{"code":"331002","name":"椒江区"},{"code":"331003","name":"黄岩区"},{"code":"331004","name":"路桥区"},{"code":"331022","name":"三门县"},{"code":"331023","name":"天台县"},{"code":"331024","name":"仙居县"},{"code":"331081","name":"温岭市"},{"code":"331082","name":"临海市"},{"code":"331083","name":"玉环市"}]},{"code":"3311","name":"丽水市","children":[{"code":"331102","name":"莲都区"},{"code":"331121","name":"青田县"},{"code":"331122","name":"缙云县"},{"code":"331123","name":"遂昌县"},{"code":"331124","name":"松阳县"},{"code":"331125","name":"云和县"},{"code":"331126","name":"庆元县"},{"code":"331127","name":"景宁畲族自治县"},{"code":"331181","name":"龙泉市"}]}]},{"code":"34","name":"安徽省","children":[{"code":"3401","name":"合肥市","children":[{"code":"340102","name":"瑶海区"},{"code":"340103","name":"庐阳区"},{"code":"340104","name":"蜀山区"},{"code":"340111","name":"包河区"},{"code":"340121","name":"长丰县"},{"code":"340122","name":"肥东县"},{"code":"340123","name":"肥西县"},{"code":"340124","name":"庐江县"},{"code":"340171","name":"合肥高新技术产业开发区"},{"code":"340172","name":"合肥经济技术开发区"},{"code":"340173","name":"合肥新站高新技术产业开发区"},{"code":"340181","name":"巢湖市"}]},{"code":"3402","name":"芜湖市","children":[{"code":"340202","name":"镜湖区"},{"code":"340203","name":"弋江区"},{"code":"340207","name":"鸠江区"},{"code":"340208","name":"三山区"},{"code":"340221","name":"芜湖县"},{"code":"340222","name":"繁昌县"},{"code":"340223","name":"南陵县"},{"code":"340271","name":"芜湖经济技术开发区"},{"code":"340272","name":"安徽芜湖长江大桥经济开发区"},{"code":"340281","name":"无为市"}]},{"code":"3403","name":"蚌埠市","children":[{"code":"340302","name":"龙子湖区"},{"code":"340303","name":"蚌山区"},{"code":"340304","name":"禹会区"},{"code":"340311","name":"淮上区"},{"code":"340321","name":"怀远县"},{"code":"340322","name":"五河县"},{"code":"340323","name":"固镇县"},{"code":"340371","name":"蚌埠市高新技术开发区"},{"code":"340372","name":"蚌埠市经济开发区"}]},{"code":"3404","name":"淮南市","children":[{"code":"340402","name":"大通区"},{"code":"340403","name":"田家庵区"},{"code":"340404","name":"谢家集区"},{"code":"340405","name":"八公山区"},{"code":"340406","name":"潘集区"},{"code":"340421","name":"凤台县"},{"code":"340422","name":"寿县"}]},{"code":"3405","name":"马鞍山市","children":[{"code":"340503","name":"花山区"},{"code":"340504","name":"雨山区"},{"code":"340506","name":"博望区"},{"code":"340521","name":"当涂县"},{"code":"340522","name":"含山县"},{"code":"340523","name":"和县"}]},{"code":"3406","name":"淮北市","children":[{"code":"340602","name":"杜集区"},{"code":"340603","name":"相山区"},{"code":"340604","name":"烈山区"},{"code":"340621","name":"濉溪县"}]},{"code":"3407","name":"铜陵市","children":[{"code":"340705","name":"铜官区"},{"code":"340706","name":"义安区"},{"code":"340711","name":"郊区"},{"code":"340722","name":"枞阳县"}]},{"code":"3408","name":"安庆市","children":[{"code":"340802","name":"迎江区"},{"code":"340803","name":"大观区"},{"code":"340811","name":"宜秀区"},{"code":"340822","name":"怀宁县"},{"code":"340825","name":"太湖县"},{"code":"340826","name":"宿松县"},{"code":"340827","name":"望江县"},{"code":"340828","name":"岳西县"},{"code":"340871","name":"安徽安庆经济开发区"},{"code":"340881","name":"桐城市"},{"code":"340882","name":"潜山市"}]},{"code":"3410","name":"黄山市","children":[{"code":"341002","name":"屯溪区"},{"code":"341003","name":"黄山区"},{"code":"341004","name":"徽州区"},{"code":"341021","name":"歙县"},{"code":"341022","name":"休宁县"},{"code":"341023","name":"黟县"},{"code":"341024","name":"祁门县"}]},{"code":"3411","name":"滁州市","children":[{"code":"341102","name":"琅琊区"},{"code":"341103","name":"南谯区"},{"code":"341122","name":"来安县"},{"code":"341124","name":"全椒县"},{"code":"341125","name":"定远县"},{"code":"341126","name":"凤阳县"},{"code":"341171","name":"苏滁现代产业园"},{"code":"341172","name":"滁州经济技术开发区"},{"code":"341181","name":"天长市"},{"code":"341182","name":"明光市"}]},{"code":"3412","name":"阜阳市","children":[{"code":"341202","name":"颍州区"},{"code":"341203","name":"颍东区"},{"code":"341204","name":"颍泉区"},{"code":"341221","name":"临泉县"},{"code":"341222","name":"太和县"},{"code":"341225","name":"阜南县"},{"code":"341226","name":"颍上县"},{"code":"341271","name":"阜阳合肥现代产业园区"},{"code":"341272","name":"阜阳经济技术开发区"},{"code":"341282","name":"界首市"}]},{"code":"3413","name":"宿州市","children":[{"code":"341302","name":"埇桥区"},{"code":"341321","name":"砀山县"},{"code":"341322","name":"萧县"},{"code":"341323","name":"灵璧县"},{"code":"341324","name":"泗县"},{"code":"341371","name":"宿州马鞍山现代产业园区"},{"code":"341372","name":"宿州经济技术开发区"}]},{"code":"3415","name":"六安市","children":[{"code":"341502","name":"金安区"},{"code":"341503","name":"裕安区"},{"code":"341504","name":"叶集区"},{"code":"341522","name":"霍邱县"},{"code":"341523","name":"舒城县"},{"code":"341524","name":"金寨县"},{"code":"341525","name":"霍山县"}]},{"code":"3416","name":"亳州市","children":[{"code":"341602","name":"谯城区"},{"code":"341621","name":"涡阳县"},{"code":"341622","name":"蒙城县"},{"code":"341623","name":"利辛县"}]},{"code":"3417","name":"池州市","children":[{"code":"341702","name":"贵池区"},{"code":"341721","name":"东至县"},{"code":"341722","name":"石台县"},{"code":"341723","name":"青阳县"}]},{"code":"3418","name":"宣城市","children":[{"code":"341802","name":"宣州区"},{"code":"341821","name":"郎溪县"},{"code":"341823","name":"泾县"},{"code":"341824","name":"绩溪县"},{"code":"341825","name":"旌德县"},{"code":"341871","name":"宣城市经济开发区"},{"code":"341881","name":"宁国市"},{"code":"341882","name":"广德市"}]}]},{"code":"35","name":"福建省","children":[{"code":"3501","name":"福州市","children":[{"code":"350102","name":"鼓楼区"},{"code":"350103","name":"台江区"},{"code":"350104","name":"仓山区"},{"code":"350105","name":"马尾区"},{"code":"350111","name":"晋安区"},{"code":"350112","name":"长乐区"},{"code":"350121","name":"闽侯县"},{"code":"350122","name":"连江县"},{"code":"350123","name":"罗源县"},{"code":"350124","name":"闽清县"},{"code":"350125","name":"永泰县"},{"code":"350128","name":"平潭县"},{"code":"350181","name":"福清市"}]},{"code":"3502","name":"厦门市","children":[{"code":"350203","name":"思明区"},{"code":"350205","name":"海沧区"},{"code":"350206","name":"湖里区"},{"code":"350211","name":"集美区"},{"code":"350212","name":"同安区"},{"code":"350213","name":"翔安区"}]},{"code":"3503","name":"莆田市","children":[{"code":"350302","name":"城厢区"},{"code":"350303","name":"涵江区"},{"code":"350304","name":"荔城区"},{"code":"350305","name":"秀屿区"},{"code":"350322","name":"仙游县"}]},{"code":"3504","name":"三明市","children":[{"code":"350402","name":"梅列区"},{"code":"350403","name":"三元区"},{"code":"350421","name":"明溪县"},{"code":"350423","name":"清流县"},{"code":"350424","name":"宁化县"},{"code":"350425","name":"大田县"},{"code":"350426","name":"尤溪县"},{"code":"350427","name":"沙县"},{"code":"350428","name":"将乐县"},{"code":"350429","name":"泰宁县"},{"code":"350430","name":"建宁县"},{"code":"350481","name":"永安市"}]},{"code":"3505","name":"泉州市","children":[{"code":"350502","name":"鲤城区"},{"code":"350503","name":"丰泽区"},{"code":"350504","name":"洛江区"},{"code":"350505","name":"泉港区"},{"code":"350521","name":"惠安县"},{"code":"350524","name":"安溪县"},{"code":"350525","name":"永春县"},{"code":"350526","name":"德化县"},{"code":"350527","name":"金门县"},{"code":"350581","name":"石狮市"},{"code":"350582","name":"晋江市"},{"code":"350583","name":"南安市"}]},{"code":"3506","name":"漳州市","children":[{"code":"350602","name":"芗城区"},{"code":"350603","name":"龙文区"},{"code":"350622","name":"云霄县"},{"code":"350623","name":"漳浦县"},{"code":"350624","name":"诏安县"},{"code":"350625","name":"长泰县"},{"code":"350626","name":"东山县"},{"code":"350627","name":"南靖县"},{"code":"350628","name":"平和县"},{"code":"350629","name":"华安县"},{"code":"350681","name":"龙海市"}]},{"code":"3507","name":"南平市","children":[{"code":"350702","name":"延平区"},{"code":"350703","name":"建阳区"},{"code":"350721","name":"顺昌县"},{"code":"350722","name":"浦城县"},{"code":"350723","name":"光泽县"},{"code":"350724","name":"松溪县"},{"code":"350725","name":"政和县"},{"code":"350781","name":"邵武市"},{"code":"350782","name":"武夷山市"},{"code":"350783","name":"建瓯市"}]},{"code":"3508","name":"龙岩市","children":[{"code":"350802","name":"新罗区"},{"code":"350803","name":"永定区"},{"code":"350821","name":"长汀县"},{"code":"350823","name":"上杭县"},{"code":"350824","name":"武平县"},{"code":"350825","name":"连城县"},{"code":"350881","name":"漳平市"}]},{"code":"3509","name":"宁德市","children":[{"code":"350902","name":"蕉城区"},{"code":"350921","name":"霞浦县"},{"code":"350922","name":"古田县"},{"code":"350923","name":"屏南县"},{"code":"350924","name":"寿宁县"},{"code":"350925","name":"周宁县"},{"code":"350926","name":"柘荣县"},{"code":"350981","name":"福安市"},{"code":"350982","name":"福鼎市"}]}]},{"code":"36","name":"江西省","children":[{"code":"3601","name":"南昌市","children":[{"code":"360102","name":"东湖区"},{"code":"360103","name":"西湖区"},{"code":"360104","name":"青云谱区"},{"code":"360111","name":"青山湖区"},{"code":"360112","name":"新建区"},{"code":"360113","name":"红谷滩区"},{"code":"360121","name":"南昌县"},{"code":"360123","name":"安义县"},{"code":"360124","name":"进贤县"}]},{"code":"3602","name":"景德镇市","children":[{"code":"360202","name":"昌江区"},{"code":"360203","name":"珠山区"},{"code":"360222","name":"浮梁县"},{"code":"360281","name":"乐平市"}]},{"code":"3603","name":"萍乡市","children":[{"code":"360302","name":"安源区"},{"code":"360313","name":"湘东区"},{"code":"360321","name":"莲花县"},{"code":"360322","name":"上栗县"},{"code":"360323","name":"芦溪县"}]},{"code":"3604","name":"九江市","children":[{"code":"360402","name":"濂溪区"},{"code":"360403","name":"浔阳区"},{"code":"360404","name":"柴桑区"},{"code":"360423","name":"武宁县"},{"code":"360424","name":"修水县"},{"code":"360425","name":"永修县"},{"code":"360426","name":"德安县"},{"code":"360428","name":"都昌县"},{"code":"360429","name":"湖口县"},{"code":"360430","name":"彭泽县"},{"code":"360481","name":"瑞昌市"},{"code":"360482","name":"共青城市"},{"code":"360483","name":"庐山市"}]},{"code":"3605","name":"新余市","children":[{"code":"360502","name":"渝水区"},{"code":"360521","name":"分宜县"}]},{"code":"3606","name":"鹰潭市","children":[{"code":"360602","name":"月湖区"},{"code":"360603","name":"余江区"},{"code":"360681","name":"贵溪市"}]},{"code":"3607","name":"赣州市","children":[{"code":"360702","name":"章贡区"},{"code":"360703","name":"南康区"},{"code":"360704","name":"赣县区"},{"code":"360722","name":"信丰县"},{"code":"360723","name":"大余县"},{"code":"360724","name":"上犹县"},{"code":"360725","name":"崇义县"},{"code":"360726","name":"安远县"},{"code":"360728","name":"定南县"},{"code":"360729","name":"全南县"},{"code":"360730","name":"宁都县"},{"code":"360731","name":"于都县"},{"code":"360732","name":"兴国县"},{"code":"360733","name":"会昌县"},{"code":"360734","name":"寻乌县"},{"code":"360735","name":"石城县"},{"code":"360781","name":"瑞金市"},{"code":"360783","name":"龙南市"}]},{"code":"3608","name":"吉安市","children":[{"code":"360802","name":"吉州区"},{"code":"360803","name":"青原区"},{"code":"360821","name":"吉安县"},{"code":"360822","name":"吉水县"},{"code":"360823","name":"峡江县"},{"code":"360824","name":"新干县"},{"code":"360825","name":"永丰县"},{"code":"360826","name":"泰和县"},{"code":"360827","name":"遂川县"},{"code":"360828","name":"万安县"},{"code":"360829","name":"安福县"},{"code":"360830","name":"永新县"},{"code":"360881","name":"井冈山市"}]},{"code":"3609","name":"宜春市","children":[{"code":"360902","name":"袁州区"},{"code":"360921","name":"奉新县"},{"code":"360922","name":"万载县"},{"code":"360923","name":"上高县"},{"code":"360924","name":"宜丰县"},{"code":"360925","name":"靖安县"},{"code":"360926","name":"铜鼓县"},{"code":"360981","name":"丰城市"},{"code":"360982","name":"樟树市"},{"code":"360983","name":"高安市"}]},{"code":"3610","name":"抚州市","children":[{"code":"361002","name":"临川区"},{"code":"361003","name":"东乡区"},{"code":"361021","name":"南城县"},{"code":"361022","name":"黎川县"},{"code":"361023","name":"南丰县"},{"code":"361024","name":"崇仁县"},{"code":"361025","name":"乐安县"},{"code":"361026","name":"宜黄县"},{"code":"361027","name":"金溪县"},{"code":"361028","name":"资溪县"},{"code":"361030","name":"广昌县"}]},{"code":"3611","name":"上饶市","children":[{"code":"361102","name":"信州区"},{"code":"361103","name":"广丰区"},{"code":"361104","name":"广信区"},{"code":"361123","name":"玉山县"},{"code":"361124","name":"铅山县"},{"code":"361125","name":"横峰县"},{"code":"361126","name":"弋阳县"},{"code":"361127","name":"余干县"},{"code":"361128","name":"鄱阳县"},{"code":"361129","name":"万年县"},{"code":"361130","name":"婺源县"},{"code":"361181","name":"德兴市"}]}]},{"code":"37","name":"山东省","children":[{"code":"3701","name":"济南市","children":[{"code":"370102","name":"历下区"},{"code":"370103","name":"市中区"},{"code":"370104","name":"槐荫区"},{"code":"370105","name":"天桥区"},{"code":"370112","name":"历城区"},{"code":"370113","name":"长清区"},{"code":"370114","name":"章丘区"},{"code":"370115","name":"济阳区"},{"code":"370116","name":"莱芜区"},{"code":"370117","name":"钢城区"},{"code":"370124","name":"平阴县"},{"code":"370126","name":"商河县"},{"code":"370171","name":"济南高新技术产业开发区"}]},{"code":"3702","name":"青岛市","children":[{"code":"370202","name":"市南区"},{"code":"370203","name":"市北区"},{"code":"370211","name":"黄岛区"},{"code":"370212","name":"崂山区"},{"code":"370213","name":"李沧区"},{"code":"370214","name":"城阳区"},{"code":"370215","name":"即墨区"},{"code":"370271","name":"青岛高新技术产业开发区"},{"code":"370281","name":"胶州市"},{"code":"370283","name":"平度市"},{"code":"370285","name":"莱西市"}]},{"code":"3703","name":"淄博市","children":[{"code":"370302","name":"淄川区"},{"code":"370303","name":"张店区"},{"code":"370304","name":"博山区"},{"code":"370305","name":"临淄区"},{"code":"370306","name":"周村区"},{"code":"370321","name":"桓台县"},{"code":"370322","name":"高青县"},{"code":"370323","name":"沂源县"}]},{"code":"3704","name":"枣庄市","children":[{"code":"370402","name":"市中区"},{"code":"370403","name":"薛城区"},{"code":"370404","name":"峄城区"},{"code":"370405","name":"台儿庄区"},{"code":"370406","name":"山亭区"},{"code":"370481","name":"滕州市"}]},{"code":"3705","name":"东营市","children":[{"code":"370502","name":"东营区"},{"code":"370503","name":"河口区"},{"code":"370505","name":"垦利区"},{"code":"370522","name":"利津县"},{"code":"370523","name":"广饶县"},{"code":"370571","name":"东营经济技术开发区"},{"code":"370572","name":"东营港经济开发区"}]},{"code":"3706","name":"烟台市","children":[{"code":"370602","name":"芝罘区"},{"code":"370611","name":"福山区"},{"code":"370612","name":"牟平区"},{"code":"370613","name":"莱山区"},{"code":"370614","name":"蓬莱区"},{"code":"370671","name":"烟台高新技术产业开发区"},{"code":"370672","name":"烟台经济技术开发区"},{"code":"370681","name":"龙口市"},{"code":"370682","name":"莱阳市"},{"code":"370683","name":"莱州市"},{"code":"370685","name":"招远市"},{"code":"370686","name":"栖霞市"},{"code":"370687","name":"海阳市"}]},{"code":"3707","name":"潍坊市","children":[{"code":"370702","name":"潍城区"},{"code":"370703","name":"寒亭区"},{"code":"370704","name":"坊子区"},{"code":"370705","name":"奎文区"},{"code":"370724","name":"临朐县"},{"code":"370725","name":"昌乐县"},{"code":"370772","name":"潍坊滨海经济技术开发区"},{"code":"370781","name":"青州市"},{"code":"370782","name":"诸城市"},{"code":"370783","name":"寿光市"},{"code":"370784","name":"安丘市"},{"code":"370785","name":"高密市"},{"code":"370786","name":"昌邑市"}]},{"code":"3708","name":"济宁市","children":[{"code":"370811","name":"任城区"},{"code":"370812","name":"兖州区"},{"code":"370826","name":"微山县"},{"code":"370827","name":"鱼台县"},{"code":"370828","name":"金乡县"},{"code":"370829","name":"嘉祥县"},{"code":"370830","name":"汶上县"},{"code":"370831","name":"泗水县"},{"code":"370832","name":"梁山县"},{"code":"370871","name":"济宁高新技术产业开发区"},{"code":"370881","name":"曲阜市"},{"code":"370883","name":"邹城市"}]},{"code":"3709","name":"泰安市","children":[{"code":"370902","name":"泰山区"},{"code":"370911","name":"岱岳区"},{"code":"370921","name":"宁阳县"},{"code":"370923","name":"东平县"},{"code":"370982","name":"新泰市"},{"code":"370983","name":"肥城市"}]},{"code":"3710","name":"威海市","children":[{"code":"371002","name":"环翠区"},{"code":"371003","name":"文登区"},{"code":"371071","name":"威海火炬高技术产业开发区"},{"code":"371072","name":"威海经济技术开发区"},{"code":"371073","name":"威海临港经济技术开发区"},{"code":"371082","name":"荣成市"},{"code":"371083","name":"乳山市"}]},{"code":"3711","name":"日照市","children":[{"code":"371102","name":"东港区"},{"code":"371103","name":"岚山区"},{"code":"371121","name":"五莲县"},{"code":"371122","name":"莒县"},{"code":"371171","name":"日照经济技术开发区"}]},{"code":"3713","name":"临沂市","children":[{"code":"371302","name":"兰山区"},{"code":"371311","name":"罗庄区"},{"code":"371312","name":"河东区"},{"code":"371321","name":"沂南县"},{"code":"371322","name":"郯城县"},{"code":"371323","name":"沂水县"},{"code":"371324","name":"兰陵县"},{"code":"371325","name":"费县"},{"code":"371326","name":"平邑县"},{"code":"371327","name":"莒南县"},{"code":"371328","name":"蒙阴县"},{"code":"371329","name":"临沭县"},{"code":"371371","name":"临沂高新技术产业开发区"}]},{"code":"3714","name":"德州市","children":[{"code":"371402","name":"德城区"},{"code":"371403","name":"陵城区"},{"code":"371422","name":"宁津县"},{"code":"371423","name":"庆云县"},{"code":"371424","name":"临邑县"},{"code":"371425","name":"齐河县"},{"code":"371426","name":"平原县"},{"code":"371427","name":"夏津县"},{"code":"371428","name":"武城县"},{"code":"371471","name":"德州经济技术开发区"},{"code":"371472","name":"德州运河经济开发区"},{"code":"371481","name":"乐陵市"},{"code":"371482","name":"禹城市"}]},{"code":"3715","name":"聊城市","children":[{"code":"371502","name":"东昌府区"},{"code":"371503","name":"茌平区"},{"code":"371521","name":"阳谷县"},{"code":"371522","name":"莘县"},{"code":"371524","name":"东阿县"},{"code":"371525","name":"冠县"},{"code":"371526","name":"高唐县"},{"code":"371581","name":"临清市"}]},{"code":"3716","name":"滨州市","children":[{"code":"371602","name":"滨城区"},{"code":"371603","name":"沾化区"},{"code":"371621","name":"惠民县"},{"code":"371622","name":"阳信县"},{"code":"371623","name":"无棣县"},{"code":"371625","name":"博兴县"},{"code":"371681","name":"邹平市"}]},{"code":"3717","name":"菏泽市","children":[{"code":"371702","name":"牡丹区"},{"code":"371703","name":"定陶区"},{"code":"371721","name":"曹县"},{"code":"371722","name":"单县"},{"code":"371723","name":"成武县"},{"code":"371724","name":"巨野县"},{"code":"371725","name":"郓城县"},{"code":"371726","name":"鄄城县"},{"code":"371728","name":"东明县"},{"code":"371771","name":"菏泽经济技术开发区"},{"code":"371772","name":"菏泽高新技术开发区"}]}]},{"code":"41","name":"河南省","children":[{"code":"4101","name":"郑州市","children":[{"code":"410102","name":"中原区"},{"code":"410103","name":"二七区"},{"code":"410104","name":"管城回族区"},{"code":"410105","name":"金水区"},{"code":"410106","name":"上街区"},{"code":"410108","name":"惠济区"},{"code":"410122","name":"中牟县"},{"code":"410171","name":"郑州经济技术开发区"},{"code":"410172","name":"郑州高新技术产业开发区"},{"code":"410173","name":"郑州航空港经济综合实验区"},{"code":"410181","name":"巩义市"},{"code":"410182","name":"荥阳市"},{"code":"410183","name":"新密市"},{"code":"410184","name":"新郑市"},{"code":"410185","name":"登封市"}]},{"code":"4102","name":"开封市","children":[{"code":"410202","name":"龙亭区"},{"code":"410203","name":"顺河回族区"},{"code":"410204","name":"鼓楼区"},{"code":"410205","name":"禹王台区"},{"code":"410212","name":"祥符区"},{"code":"410221","name":"杞县"},{"code":"410222","name":"通许县"},{"code":"410223","name":"尉氏县"},{"code":"410225","name":"兰考县"}]},{"code":"4103","name":"洛阳市","children":[{"code":"410302","name":"老城区"},{"code":"410303","name":"西工区"},{"code":"410304","name":"瀍河回族区"},{"code":"410305","name":"涧西区"},{"code":"410306","name":"吉利区"},{"code":"410311","name":"洛龙区"},{"code":"410322","name":"孟津县"},{"code":"410323","name":"新安县"},{"code":"410324","name":"栾川县"},{"code":"410325","name":"嵩县"},{"code":"410326","name":"汝阳县"},{"code":"410327","name":"宜阳县"},{"code":"410328","name":"洛宁县"},{"code":"410329","name":"伊川县"},{"code":"410371","name":"洛阳高新技术产业开发区"},{"code":"410381","name":"偃师市"}]},{"code":"4104","name":"平顶山市","children":[{"code":"410402","name":"新华区"},{"code":"410403","name":"卫东区"},{"code":"410404","name":"石龙区"},{"code":"410411","name":"湛河区"},{"code":"410421","name":"宝丰县"},{"code":"410422","name":"叶县"},{"code":"410423","name":"鲁山县"},{"code":"410425","name":"郏县"},{"code":"410471","name":"平顶山高新技术产业开发区"},{"code":"410472","name":"平顶山市城乡一体化示范区"},{"code":"410481","name":"舞钢市"},{"code":"410482","name":"汝州市"}]},{"code":"4105","name":"安阳市","children":[{"code":"410502","name":"文峰区"},{"code":"410503","name":"北关区"},{"code":"410505","name":"殷都区"},{"code":"410506","name":"龙安区"},{"code":"410522","name":"安阳县"},{"code":"410523","name":"汤阴县"},{"code":"410526","name":"滑县"},{"code":"410527","name":"内黄县"},{"code":"410571","name":"安阳高新技术产业开发区"},{"code":"410581","name":"林州市"}]},{"code":"4106","name":"鹤壁市","children":[{"code":"410602","name":"鹤山区"},{"code":"410603","name":"山城区"},{"code":"410611","name":"淇滨区"},{"code":"410621","name":"浚县"},{"code":"410622","name":"淇县"},{"code":"410671","name":"鹤壁经济技术开发区"}]},{"code":"4107","name":"新乡市","children":[{"code":"410702","name":"红旗区"},{"code":"410703","name":"卫滨区"},{"code":"410704","name":"凤泉区"},{"code":"410711","name":"牧野区"},{"code":"410721","name":"新乡县"},{"code":"410724","name":"获嘉县"},{"code":"410725","name":"原阳县"},{"code":"410726","name":"延津县"},{"code":"410727","name":"封丘县"},{"code":"410771","name":"新乡高新技术产业开发区"},{"code":"410772","name":"新乡经济技术开发区"},{"code":"410773","name":"新乡市平原城乡一体化示范区"},{"code":"410781","name":"卫辉市"},{"code":"410782","name":"辉县市"},{"code":"410783","name":"长垣市"}]},{"code":"4108","name":"焦作市","children":[{"code":"410802","name":"解放区"},{"code":"410803","name":"中站区"},{"code":"410804","name":"马村区"},{"code":"410811","name":"山阳区"},{"code":"410821","name":"修武县"},{"code":"410822","name":"博爱县"},{"code":"410823","name":"武陟县"},{"code":"410825","name":"温县"},{"code":"410871","name":"焦作城乡一体化示范区"},{"code":"410882","name":"沁阳市"},{"code":"410883","name":"孟州市"}]},{"code":"4109","name":"濮阳市","children":[{"code":"410902","name":"华龙区"},{"code":"410922","name":"清丰县"},{"code":"410923","name":"南乐县"},{"code":"410926","name":"范县"},{"code":"410927","name":"台前县"},{"code":"410928","name":"濮阳县"},{"code":"410971","name":"河南濮阳工业园区"},{"code":"410972","name":"濮阳经济技术开发区"}]},{"code":"4110","name":"许昌市","children":[{"code":"411002","name":"魏都区"},{"code":"411003","name":"建安区"},{"code":"411024","name":"鄢陵县"},{"code":"411025","name":"襄城县"},{"code":"411071","name":"许昌经济技术开发区"},{"code":"411081","name":"禹州市"},{"code":"411082","name":"长葛市"}]},{"code":"4111","name":"漯河市","children":[{"code":"411102","name":"源汇区"},{"code":"411103","name":"郾城区"},{"code":"411104","name":"召陵区"},{"code":"411121","name":"舞阳县"},{"code":"411122","name":"临颍县"},{"code":"411171","name":"漯河经济技术开发区"}]},{"code":"4112","name":"三门峡市","children":[{"code":"411202","name":"湖滨区"},{"code":"411203","name":"陕州区"},{"code":"411221","name":"渑池县"},{"code":"411224","name":"卢氏县"},{"code":"411271","name":"河南三门峡经济开发区"},{"code":"411281","name":"义马市"},{"code":"411282","name":"灵宝市"}]},{"code":"4113","name":"南阳市","children":[{"code":"411302","name":"宛城区"},{"code":"411303","name":"卧龙区"},{"code":"411321","name":"南召县"},{"code":"411322","name":"方城县"},{"code":"411323","name":"西峡县"},{"code":"411324","name":"镇平县"},{"code":"411325","name":"内乡县"},{"code":"411326","name":"淅川县"},{"code":"411327","name":"社旗县"},{"code":"411328","name":"唐河县"},{"code":"411329","name":"新野县"},{"code":"411330","name":"桐柏县"},{"code":"411371","name":"南阳高新技术产业开发区"},{"code":"411372","name":"南阳市城乡一体化示范区"},{"code":"411381","name":"邓州市"}]},{"code":"4114","name":"商丘市","children":[{"code":"411402","name":"梁园区"},{"code":"411403","name":"睢阳区"},{"code":"411421","name":"民权县"},{"code":"411422","name":"睢县"},{"code":"411423","name":"宁陵县"},{"code":"411424","name":"柘城县"},{"code":"411425","name":"虞城县"},{"code":"411426","name":"夏邑县"},{"code":"411471","name":"豫东综合物流产业聚集区"},{"code":"411472","name":"河南商丘经济开发区"},{"code":"411481","name":"永城市"}]},{"code":"4115","name":"信阳市","children":[{"code":"411502","name":"浉河区"},{"code":"411503","name":"平桥区"},{"code":"411521","name":"罗山县"},{"code":"411522","name":"光山县"},{"code":"411523","name":"新县"},{"code":"411524","name":"商城县"},{"code":"411525","name":"固始县"},{"code":"411526","name":"潢川县"},{"code":"411527","name":"淮滨县"},{"code":"411528","name":"息县"},{"code":"411571","name":"信阳高新技术产业开发区"}]},{"code":"4116","name":"周口市","children":[{"code":"411602","name":"川汇区"},{"code":"411603","name":"淮阳区"},{"code":"411621","name":"扶沟县"},{"code":"411622","name":"西华县"},{"code":"411623","name":"商水县"},{"code":"411624","name":"沈丘县"},{"code":"411625","name":"郸城县"},{"code":"411627","name":"太康县"},{"code":"411628","name":"鹿邑县"},{"code":"411671","name":"河南周口经济开发区"},{"code":"411681","name":"项城市"}]},{"code":"4117","name":"驻马店市","children":[{"code":"411702","name":"驿城区"},{"code":"411721","name":"西平县"},{"code":"411722","name":"上蔡县"},{"code":"411723","name":"平舆县"},{"code":"411724","name":"正阳县"},{"code":"411725","name":"确山县"},{"code":"411726","name":"泌阳县"},{"code":"411727","name":"汝南县"},{"code":"411728","name":"遂平县"},{"code":"411729","name":"新蔡县"},{"code":"411771","name":"河南驻马店经济开发区"}]},{"code":"4190","name":"省直辖县级行政区划","children":[{"code":"419001","name":"济源市"}]}]},{"code":"42","name":"湖北省","children":[{"code":"4201","name":"武汉市","children":[{"code":"420102","name":"江岸区"},{"code":"420103","name":"江汉区"},{"code":"420104","name":"硚口区"},{"code":"420105","name":"汉阳区"},{"code":"420106","name":"武昌区"},{"code":"420107","name":"青山区"},{"code":"420111","name":"洪山区"},{"code":"420112","name":"东西湖区"},{"code":"420113","name":"汉南区"},{"code":"420114","name":"蔡甸区"},{"code":"420115","name":"江夏区"},{"code":"420116","name":"黄陂区"},{"code":"420117","name":"新洲区"}]},{"code":"4202","name":"黄石市","children":[{"code":"420202","name":"黄石港区"},{"code":"420203","name":"西塞山区"},{"code":"420204","name":"下陆区"},{"code":"420205","name":"铁山区"},{"code":"420222","name":"阳新县"},{"code":"420281","name":"大冶市"}]},{"code":"4203","name":"十堰市","children":[{"code":"420302","name":"茅箭区"},{"code":"420303","name":"张湾区"},{"code":"420304","name":"郧阳区"},{"code":"420322","name":"郧西县"},{"code":"420323","name":"竹山县"},{"code":"420324","name":"竹溪县"},{"code":"420325","name":"房县"},{"code":"420381","name":"丹江口市"}]},{"code":"4205","name":"宜昌市","children":[{"code":"420502","name":"西陵区"},{"code":"420503","name":"伍家岗区"},{"code":"420504","name":"点军区"},{"code":"420505","name":"猇亭区"},{"code":"420506","name":"夷陵区"},{"code":"420525","name":"远安县"},{"code":"420526","name":"兴山县"},{"code":"420527","name":"秭归县"},{"code":"420528","name":"长阳土家族自治县"},{"code":"420529","name":"五峰土家族自治县"},{"code":"420581","name":"宜都市"},{"code":"420582","name":"当阳市"},{"code":"420583","name":"枝江市"}]},{"code":"4206","name":"襄阳市","children":[{"code":"420602","name":"襄城区"},{"code":"420606","name":"樊城区"},{"code":"420607","name":"襄州区"},{"code":"420624","name":"南漳县"},{"code":"420625","name":"谷城县"},{"code":"420626","name":"保康县"},{"code":"420682","name":"老河口市"},{"code":"420683","name":"枣阳市"},{"code":"420684","name":"宜城市"}]},{"code":"4207","name":"鄂州市","children":[{"code":"420702","name":"梁子湖区"},{"code":"420703","name":"华容区"},{"code":"420704","name":"鄂城区"}]},{"code":"4208","name":"荆门市","children":[{"code":"420802","name":"东宝区"},{"code":"420804","name":"掇刀区"},{"code":"420822","name":"沙洋县"},{"code":"420881","name":"钟祥市"},{"code":"420882","name":"京山市"}]},{"code":"4209","name":"孝感市","children":[{"code":"420902","name":"孝南区"},{"code":"420921","name":"孝昌县"},{"code":"420922","name":"大悟县"},{"code":"420923","name":"云梦县"},{"code":"420981","name":"应城市"},{"code":"420982","name":"安陆市"},{"code":"420984","name":"汉川市"}]},{"code":"4210","name":"荆州市","children":[{"code":"421002","name":"沙市区"},{"code":"421003","name":"荆州区"},{"code":"421022","name":"公安县"},{"code":"421023","name":"监利县"},{"code":"421024","name":"江陵县"},{"code":"421071","name":"荆州经济技术开发区"},{"code":"421081","name":"石首市"},{"code":"421083","name":"洪湖市"},{"code":"421087","name":"松滋市"}]},{"code":"4211","name":"黄冈市","children":[{"code":"421102","name":"黄州区"},{"code":"421121","name":"团风县"},{"code":"421122","name":"红安县"},{"code":"421123","name":"罗田县"},{"code":"421124","name":"英山县"},{"code":"421125","name":"浠水县"},{"code":"421126","name":"蕲春县"},{"code":"421127","name":"黄梅县"},{"code":"421171","name":"龙感湖管理区"},{"code":"421181","name":"麻城市"},{"code":"421182","name":"武穴市"}]},{"code":"4212","name":"咸宁市","children":[{"code":"421202","name":"咸安区"},{"code":"421221","name":"嘉鱼县"},{"code":"421222","name":"通城县"},{"code":"421223","name":"崇阳县"},{"code":"421224","name":"通山县"},{"code":"421281","name":"赤壁市"}]},{"code":"4213","name":"随州市","children":[{"code":"421303","name":"曾都区"},{"code":"421321","name":"随县"},{"code":"421381","name":"广水市"}]},{"code":"4228","name":"恩施土家族苗族自治州","children":[{"code":"422801","name":"恩施市"},{"code":"422802","name":"利川市"},{"code":"422822","name":"建始县"},{"code":"422823","name":"巴东县"},{"code":"422825","name":"宣恩县"},{"code":"422826","name":"咸丰县"},{"code":"422827","name":"来凤县"},{"code":"422828","name":"鹤峰县"}]},{"code":"4290","name":"省直辖县级行政区划","children":[{"code":"429004","name":"仙桃市"},{"code":"429005","name":"潜江市"},{"code":"429006","name":"天门市"},{"code":"429021","name":"神农架林区"}]}]},{"code":"43","name":"湖南省","children":[{"code":"4301","name":"长沙市","children":[{"code":"430102","name":"芙蓉区"},{"code":"430103","name":"天心区"},{"code":"430104","name":"岳麓区"},{"code":"430105","name":"开福区"},{"code":"430111","name":"雨花区"},{"code":"430112","name":"望城区"},{"code":"430121","name":"长沙县"},{"code":"430181","name":"浏阳市"},{"code":"430182","name":"宁乡市"}]},{"code":"4302","name":"株洲市","children":[{"code":"430202","name":"荷塘区"},{"code":"430203","name":"芦淞区"},{"code":"430204","name":"石峰区"},{"code":"430211","name":"天元区"},{"code":"430212","name":"渌口区"},{"code":"430223","name":"攸县"},{"code":"430224","name":"茶陵县"},{"code":"430225","name":"炎陵县"},{"code":"430271","name":"云龙示范区"},{"code":"430281","name":"醴陵市"}]},{"code":"4303","name":"湘潭市","children":[{"code":"430302","name":"雨湖区"},{"code":"430304","name":"岳塘区"},{"code":"430321","name":"湘潭县"},{"code":"430371","name":"湖南湘潭高新技术产业园区"},{"code":"430372","name":"湘潭昭山示范区"},{"code":"430373","name":"湘潭九华示范区"},{"code":"430381","name":"湘乡市"},{"code":"430382","name":"韶山市"}]},{"code":"4304","name":"衡阳市","children":[{"code":"430405","name":"珠晖区"},{"code":"430406","name":"雁峰区"},{"code":"430407","name":"石鼓区"},{"code":"430408","name":"蒸湘区"},{"code":"430412","name":"南岳区"},{"code":"430421","name":"衡阳县"},{"code":"430422","name":"衡南县"},{"code":"430423","name":"衡山县"},{"code":"430424","name":"衡东县"},{"code":"430426","name":"祁东县"},{"code":"430471","name":"衡阳综合保税区"},{"code":"430472","name":"湖南衡阳高新技术产业园区"},{"code":"430473","name":"湖南衡阳松木经济开发区"},{"code":"430481","name":"耒阳市"},{"code":"430482","name":"常宁市"}]},{"code":"4305","name":"邵阳市","children":[{"code":"430502","name":"双清区"},{"code":"430503","name":"大祥区"},{"code":"430511","name":"北塔区"},{"code":"430522","name":"新邵县"},{"code":"430523","name":"邵阳县"},{"code":"430524","name":"隆回县"},{"code":"430525","name":"洞口县"},{"code":"430527","name":"绥宁县"},{"code":"430528","name":"新宁县"},{"code":"430529","name":"城步苗族自治县"},{"code":"430581","name":"武冈市"},{"code":"430582","name":"邵东市"}]},{"code":"4306","name":"岳阳市","children":[{"code":"430602","name":"岳阳楼区"},{"code":"430603","name":"云溪区"},{"code":"430611","name":"君山区"},{"code":"430621","name":"岳阳县"},{"code":"430623","name":"华容县"},{"code":"430624","name":"湘阴县"},{"code":"430626","name":"平江县"},{"code":"430671","name":"岳阳市屈原管理区"},{"code":"430681","name":"汨罗市"},{"code":"430682","name":"临湘市"}]},{"code":"4307","name":"常德市","children":[{"code":"430702","name":"武陵区"},{"code":"430703","name":"鼎城区"},{"code":"430721","name":"安乡县"},{"code":"430722","name":"汉寿县"},{"code":"430723","name":"澧县"},{"code":"430724","name":"临澧县"},{"code":"430725","name":"桃源县"},{"code":"430726","name":"石门县"},{"code":"430771","name":"常德市西洞庭管理区"},{"code":"430781","name":"津市市"}]},{"code":"4308","name":"张家界市","children":[{"code":"430802","name":"永定区"},{"code":"430811","name":"武陵源区"},{"code":"430821","name":"慈利县"},{"code":"430822","name":"桑植县"}]},{"code":"4309","name":"益阳市","children":[{"code":"430902","name":"资阳区"},{"code":"430903","name":"赫山区"},{"code":"430921","name":"南县"},{"code":"430922","name":"桃江县"},{"code":"430923","name":"安化县"},{"code":"430971","name":"益阳市大通湖管理区"},{"code":"430972","name":"湖南益阳高新技术产业园区"},{"code":"430981","name":"沅江市"}]},{"code":"4310","name":"郴州市","children":[{"code":"431002","name":"北湖区"},{"code":"431003","name":"苏仙区"},{"code":"431021","name":"桂阳县"},{"code":"431022","name":"宜章县"},{"code":"431023","name":"永兴县"},{"code":"431024","name":"嘉禾县"},{"code":"431025","name":"临武县"},{"code":"431026","name":"汝城县"},{"code":"431027","name":"桂东县"},{"code":"431028","name":"安仁县"},{"code":"431081","name":"资兴市"}]},{"code":"4311","name":"永州市","children":[{"code":"431102","name":"零陵区"},{"code":"431103","name":"冷水滩区"},{"code":"431121","name":"祁阳县"},{"code":"431122","name":"东安县"},{"code":"431123","name":"双牌县"},{"code":"431124","name":"道县"},{"code":"431125","name":"江永县"},{"code":"431126","name":"宁远县"},{"code":"431127","name":"蓝山县"},{"code":"431128","name":"新田县"},{"code":"431129","name":"江华瑶族自治县"},{"code":"431171","name":"永州经济技术开发区"},{"code":"431172","name":"永州市金洞管理区"},{"code":"431173","name":"永州市回龙圩管理区"}]},{"code":"4312","name":"怀化市","children":[{"code":"431202","name":"鹤城区"},{"code":"431221","name":"中方县"},{"code":"431222","name":"沅陵县"},{"code":"431223","name":"辰溪县"},{"code":"431224","name":"溆浦县"},{"code":"431225","name":"会同县"},{"code":"431226","name":"麻阳苗族自治县"},{"code":"431227","name":"新晃侗族自治县"},{"code":"431228","name":"芷江侗族自治县"},{"code":"431229","name":"靖州苗族侗族自治县"},{"code":"431230","name":"通道侗族自治县"},{"code":"431271","name":"怀化市洪江管理区"},{"code":"431281","name":"洪江市"}]},{"code":"4313","name":"娄底市","children":[{"code":"431302","name":"娄星区"},{"code":"431321","name":"双峰县"},{"code":"431322","name":"新化县"},{"code":"431381","name":"冷水江市"},{"code":"431382","name":"涟源市"}]},{"code":"4331","name":"湘西土家族苗族自治州","children":[{"code":"433101","name":"吉首市"},{"code":"433122","name":"泸溪县"},{"code":"433123","name":"凤凰县"},{"code":"433124","name":"花垣县"},{"code":"433125","name":"保靖县"},{"code":"433126","name":"古丈县"},{"code":"433127","name":"永顺县"},{"code":"433130","name":"龙山县"}]}]},{"code":"44","name":"广东省","children":[{"code":"4401","name":"广州市","children":[{"code":"440103","name":"荔湾区"},{"code":"440104","name":"越秀区"},{"code":"440105","name":"海珠区"},{"code":"440106","name":"天河区"},{"code":"440111","name":"白云区"},{"code":"440112","name":"黄埔区"},{"code":"440113","name":"番禺区"},{"code":"440114","name":"花都区"},{"code":"440115","name":"南沙区"},{"code":"440117","name":"从化区"},{"code":"440118","name":"增城区"}]},{"code":"4402","name":"韶关市","children":[{"code":"440203","name":"武江区"},{"code":"440204","name":"浈江区"},{"code":"440205","name":"曲江区"},{"code":"440222","name":"始兴县"},{"code":"440224","name":"仁化县"},{"code":"440229","name":"翁源县"},{"code":"440232","name":"乳源瑶族自治县"},{"code":"440233","name":"新丰县"},{"code":"440281","name":"乐昌市"},{"code":"440282","name":"南雄市"}]},{"code":"4403","name":"深圳市","children":[{"code":"440303","name":"罗湖区"},{"code":"440304","name":"福田区"},{"code":"440305","name":"南山区"},{"code":"440306","name":"宝安区"},{"code":"440307","name":"龙岗区"},{"code":"440308","name":"盐田区"},{"code":"440309","name":"龙华区"},{"code":"440310","name":"坪山区"},{"code":"440311","name":"光明区"}]},{"code":"4404","name":"珠海市","children":[{"code":"440402","name":"香洲区"},{"code":"440403","name":"斗门区"},{"code":"440404","name":"金湾区"}]},{"code":"4405","name":"汕头市","children":[{"code":"440507","name":"龙湖区"},{"code":"440511","name":"金平区"},{"code":"440512","name":"濠江区"},{"code":"440513","name":"潮阳区"},{"code":"440514","name":"潮南区"},{"code":"440515","name":"澄海区"},{"code":"440523","name":"南澳县"}]},{"code":"4406","name":"佛山市","children":[{"code":"440604","name":"禅城区"},{"code":"440605","name":"南海区"},{"code":"440606","name":"顺德区"},{"code":"440607","name":"三水区"},{"code":"440608","name":"高明区"}]},{"code":"4407","name":"江门市","children":[{"code":"440703","name":"蓬江区"},{"code":"440704","name":"江海区"},{"code":"440705","name":"新会区"},{"code":"440781","name":"台山市"},{"code":"440783","name":"开平市"},{"code":"440784","name":"鹤山市"},{"code":"440785","name":"恩平市"}]},{"code":"4408","name":"湛江市","children":[{"code":"440802","name":"赤坎区"},{"code":"440803","name":"霞山区"},{"code":"440804","name":"坡头区"},{"code":"440811","name":"麻章区"},{"code":"440823","name":"遂溪县"},{"code":"440825","name":"徐闻县"},{"code":"440881","name":"廉江市"},{"code":"440882","name":"雷州市"},{"code":"440883","name":"吴川市"}]},{"code":"4409","name":"茂名市","children":[{"code":"440902","name":"茂南区"},{"code":"440904","name":"电白区"},{"code":"440981","name":"高州市"},{"code":"440982","name":"化州市"},{"code":"440983","name":"信宜市"}]},{"code":"4412","name":"肇庆市","children":[{"code":"441202","name":"端州区"},{"code":"441203","name":"鼎湖区"},{"code":"441204","name":"高要区"},{"code":"441223","name":"广宁县"},{"code":"441224","name":"怀集县"},{"code":"441225","name":"封开县"},{"code":"441226","name":"德庆县"},{"code":"441284","name":"四会市"}]},{"code":"4413","name":"惠州市","children":[{"code":"441302","name":"惠城区"},{"code":"441303","name":"惠阳区"},{"code":"441322","name":"博罗县"},{"code":"441323","name":"惠东县"},{"code":"441324","name":"龙门县"}]},{"code":"4414","name":"梅州市","children":[{"code":"441402","name":"梅江区"},{"code":"441403","name":"梅县区"},{"code":"441422","name":"大埔县"},{"code":"441423","name":"丰顺县"},{"code":"441424","name":"五华县"},{"code":"441426","name":"平远县"},{"code":"441427","name":"蕉岭县"},{"code":"441481","name":"兴宁市"}]},{"code":"4415","name":"汕尾市","children":[{"code":"441502","name":"城区"},{"code":"441521","name":"海丰县"},{"code":"441523","name":"陆河县"},{"code":"441581","name":"陆丰市"}]},{"code":"4416","name":"河源市","children":[{"code":"441602","name":"源城区"},{"code":"441621","name":"紫金县"},{"code":"441622","name":"龙川县"},{"code":"441623","name":"连平县"},{"code":"441624","name":"和平县"},{"code":"441625","name":"东源县"}]},{"code":"4417","name":"阳江市","children":[{"code":"441702","name":"江城区"},{"code":"441704","name":"阳东区"},{"code":"441721","name":"阳西县"},{"code":"441781","name":"阳春市"}]},{"code":"4418","name":"清远市","children":[{"code":"441802","name":"清城区"},{"code":"441803","name":"清新区"},{"code":"441821","name":"佛冈县"},{"code":"441823","name":"阳山县"},{"code":"441825","name":"连山壮族瑶族自治县"},{"code":"441826","name":"连南瑶族自治县"},{"code":"441881","name":"英德市"},{"code":"441882","name":"连州市"}]},{"code":"4419","name":"东莞市","children":[{"code":"441900003","name":"东城街道"},{"code":"441900004","name":"南城街道"},{"code":"441900005","name":"万江街道"},{"code":"441900006","name":"莞城街道"},{"code":"441900101","name":"石碣镇"},{"code":"441900102","name":"石龙镇"},{"code":"441900103","name":"茶山镇"},{"code":"441900104","name":"石排镇"},{"code":"441900105","name":"企石镇"},{"code":"441900106","name":"横沥镇"},{"code":"441900107","name":"桥头镇"},{"code":"441900108","name":"谢岗镇"},{"code":"441900109","name":"东坑镇"},{"code":"441900110","name":"常平镇"},{"code":"441900111","name":"寮步镇"},{"code":"441900112","name":"樟木头镇"},{"code":"441900113","name":"大朗镇"},{"code":"441900114","name":"黄江镇"},{"code":"441900115","name":"清溪镇"},{"code":"441900116","name":"塘厦镇"},{"code":"441900117","name":"凤岗镇"},{"code":"441900118","name":"大岭山镇"},{"code":"441900119","name":"长安镇"},{"code":"441900121","name":"虎门镇"},{"code":"441900122","name":"厚街镇"},{"code":"441900123","name":"沙田镇"},{"code":"441900124","name":"道滘镇"},{"code":"441900125","name":"洪梅镇"},{"code":"441900126","name":"麻涌镇"},{"code":"441900127","name":"望牛墩镇"},{"code":"441900128","name":"中堂镇"},{"code":"441900129","name":"高埗镇"},{"code":"441900401","name":"松山湖"},{"code":"441900402","name":"东莞港"},{"code":"441900403","name":"东莞生态园"}]},{"code":"4420","name":"中山市","children":[{"code":"442000001","name":"石岐街道"},{"code":"442000002","name":"东区街道"},{"code":"442000003","name":"中山港街道"},{"code":"442000004","name":"西区街道"},{"code":"442000005","name":"南区街道"},{"code":"442000006","name":"五桂山街道"},{"code":"442000100","name":"小榄镇"},{"code":"442000101","name":"黄圃镇"},{"code":"442000102","name":"民众镇"},{"code":"442000103","name":"东凤镇"},{"code":"442000104","name":"东升镇"},{"code":"442000105","name":"古镇镇"},{"code":"442000106","name":"沙溪镇"},{"code":"442000107","name":"坦洲镇"},{"code":"442000108","name":"港口镇"},{"code":"442000109","name":"三角镇"},{"code":"442000110","name":"横栏镇"},{"code":"442000111","name":"南头镇"},{"code":"442000112","name":"阜沙镇"},{"code":"442000113","name":"南朗镇"},{"code":"442000114","name":"三乡镇"},{"code":"442000115","name":"板芙镇"},{"code":"442000116","name":"大涌镇"},{"code":"442000117","name":"神湾镇"}]},{"code":"4451","name":"潮州市","children":[{"code":"445102","name":"湘桥区"},{"code":"445103","name":"潮安区"},{"code":"445122","name":"饶平县"}]},{"code":"4452","name":"揭阳市","children":[{"code":"445202","name":"榕城区"},{"code":"445203","name":"揭东区"},{"code":"445222","name":"揭西县"},{"code":"445224","name":"惠来县"},{"code":"445281","name":"普宁市"}]},{"code":"4453","name":"云浮市","children":[{"code":"445302","name":"云城区"},{"code":"445303","name":"云安区"},{"code":"445321","name":"新兴县"},{"code":"445322","name":"郁南县"},{"code":"445381","name":"罗定市"}]}]},{"code":"45","name":"广西壮族自治区","children":[{"code":"4501","name":"南宁市","children":[{"code":"450102","name":"兴宁区"},{"code":"450103","name":"青秀区"},{"code":"450105","name":"江南区"},{"code":"450107","name":"西乡塘区"},{"code":"450108","name":"良庆区"},{"code":"450109","name":"邕宁区"},{"code":"450110","name":"武鸣区"},{"code":"450123","name":"隆安县"},{"code":"450124","name":"马山县"},{"code":"450125","name":"上林县"},{"code":"450126","name":"宾阳县"},{"code":"450127","name":"横县"}]},{"code":"4502","name":"柳州市","children":[{"code":"450202","name":"城中区"},{"code":"450203","name":"鱼峰区"},{"code":"450204","name":"柳南区"},{"code":"450205","name":"柳北区"},{"code":"450206","name":"柳江区"},{"code":"450222","name":"柳城县"},{"code":"450223","name":"鹿寨县"},{"code":"450224","name":"融安县"},{"code":"450225","name":"融水苗族自治县"},{"code":"450226","name":"三江侗族自治县"}]},{"code":"4503","name":"桂林市","children":[{"code":"450302","name":"秀峰区"},{"code":"450303","name":"叠彩区"},{"code":"450304","name":"象山区"},{"code":"450305","name":"七星区"},{"code":"450311","name":"雁山区"},{"code":"450312","name":"临桂区"},{"code":"450321","name":"阳朔县"},{"code":"450323","name":"灵川县"},{"code":"450324","name":"全州县"},{"code":"450325","name":"兴安县"},{"code":"450326","name":"永福县"},{"code":"450327","name":"灌阳县"},{"code":"450328","name":"龙胜各族自治县"},{"code":"450329","name":"资源县"},{"code":"450330","name":"平乐县"},{"code":"450332","name":"恭城瑶族自治县"},{"code":"450381","name":"荔浦市"}]},{"code":"4504","name":"梧州市","children":[{"code":"450403","name":"万秀区"},{"code":"450405","name":"长洲区"},{"code":"450406","name":"龙圩区"},{"code":"450421","name":"苍梧县"},{"code":"450422","name":"藤县"},{"code":"450423","name":"蒙山县"},{"code":"450481","name":"岑溪市"}]},{"code":"4505","name":"北海市","children":[{"code":"450502","name":"海城区"},{"code":"450503","name":"银海区"},{"code":"450512","name":"铁山港区"},{"code":"450521","name":"合浦县"}]},{"code":"4506","name":"防城港市","children":[{"code":"450602","name":"港口区"},{"code":"450603","name":"防城区"},{"code":"450621","name":"上思县"},{"code":"450681","name":"东兴市"}]},{"code":"4507","name":"钦州市","children":[{"code":"450702","name":"钦南区"},{"code":"450703","name":"钦北区"},{"code":"450721","name":"灵山县"},{"code":"450722","name":"浦北县"}]},{"code":"4508","name":"贵港市","children":[{"code":"450802","name":"港北区"},{"code":"450803","name":"港南区"},{"code":"450804","name":"覃塘区"},{"code":"450821","name":"平南县"},{"code":"450881","name":"桂平市"}]},{"code":"4509","name":"玉林市","children":[{"code":"450902","name":"玉州区"},{"code":"450903","name":"福绵区"},{"code":"450921","name":"容县"},{"code":"450922","name":"陆川县"},{"code":"450923","name":"博白县"},{"code":"450924","name":"兴业县"},{"code":"450981","name":"北流市"}]},{"code":"4510","name":"百色市","children":[{"code":"451002","name":"右江区"},{"code":"451003","name":"田阳区"},{"code":"451022","name":"田东县"},{"code":"451024","name":"德保县"},{"code":"451026","name":"那坡县"},{"code":"451027","name":"凌云县"},{"code":"451028","name":"乐业县"},{"code":"451029","name":"田林县"},{"code":"451030","name":"西林县"},{"code":"451031","name":"隆林各族自治县"},{"code":"451081","name":"靖西市"},{"code":"451082","name":"平果市"}]},{"code":"4511","name":"贺州市","children":[{"code":"451102","name":"八步区"},{"code":"451103","name":"平桂区"},{"code":"451121","name":"昭平县"},{"code":"451122","name":"钟山县"},{"code":"451123","name":"富川瑶族自治县"}]},{"code":"4512","name":"河池市","children":[{"code":"451202","name":"金城江区"},{"code":"451203","name":"宜州区"},{"code":"451221","name":"南丹县"},{"code":"451222","name":"天峨县"},{"code":"451223","name":"凤山县"},{"code":"451224","name":"东兰县"},{"code":"451225","name":"罗城仫佬族自治县"},{"code":"451226","name":"环江毛南族自治县"},{"code":"451227","name":"巴马瑶族自治县"},{"code":"451228","name":"都安瑶族自治县"},{"code":"451229","name":"大化瑶族自治县"}]},{"code":"4513","name":"来宾市","children":[{"code":"451302","name":"兴宾区"},{"code":"451321","name":"忻城县"},{"code":"451322","name":"象州县"},{"code":"451323","name":"武宣县"},{"code":"451324","name":"金秀瑶族自治县"},{"code":"451381","name":"合山市"}]},{"code":"4514","name":"崇左市","children":[{"code":"451402","name":"江州区"},{"code":"451421","name":"扶绥县"},{"code":"451422","name":"宁明县"},{"code":"451423","name":"龙州县"},{"code":"451424","name":"大新县"},{"code":"451425","name":"天等县"},{"code":"451481","name":"凭祥市"}]}]},{"code":"46","name":"海南省","children":[{"code":"4601","name":"海口市","children":[{"code":"460105","name":"秀英区"},{"code":"460106","name":"龙华区"},{"code":"460107","name":"琼山区"},{"code":"460108","name":"美兰区"}]},{"code":"4602","name":"三亚市","children":[{"code":"460202","name":"海棠区"},{"code":"460203","name":"吉阳区"},{"code":"460204","name":"天涯区"},{"code":"460205","name":"崖州区"}]},{"code":"4603","name":"三沙市","children":[{"code":"460321","name":"西沙群岛"},{"code":"460322","name":"南沙群岛"},{"code":"460323","name":"中沙群岛的岛礁及其海域"}]},{"code":"4604","name":"儋州市","children":[{"code":"460400100","name":"那大镇"},{"code":"460400101","name":"和庆镇"},{"code":"460400102","name":"南丰镇"},{"code":"460400103","name":"大成镇"},{"code":"460400104","name":"雅星镇"},{"code":"460400105","name":"兰洋镇"},{"code":"460400106","name":"光村镇"},{"code":"460400107","name":"木棠镇"},{"code":"460400108","name":"海头镇"},{"code":"460400109","name":"峨蔓镇"},{"code":"460400111","name":"王五镇"},{"code":"460400112","name":"白马井镇"},{"code":"460400113","name":"中和镇"},{"code":"460400114","name":"排浦镇"},{"code":"460400115","name":"东成镇"},{"code":"460400116","name":"新州镇"},{"code":"460400499","name":"洋浦经济开发区"},{"code":"460400500","name":"华南热作学院"}]},{"code":"4690","name":"省直辖县级行政区划","children":[{"code":"469001","name":"五指山市"},{"code":"469002","name":"琼海市"},{"code":"469005","name":"文昌市"},{"code":"469006","name":"万宁市"},{"code":"469007","name":"东方市"},{"code":"469021","name":"定安县"},{"code":"469022","name":"屯昌县"},{"code":"469023","name":"澄迈县"},{"code":"469024","name":"临高县"},{"code":"469025","name":"白沙黎族自治县"},{"code":"469026","name":"昌江黎族自治县"},{"code":"469027","name":"乐东黎族自治县"},{"code":"469028","name":"陵水黎族自治县"},{"code":"469029","name":"保亭黎族苗族自治县"},{"code":"469030","name":"琼中黎族苗族自治县"}]}]},{"code":"50","name":"重庆市","children":[{"code":"5001","name":"市辖区","children":[{"code":"500101","name":"万州区"},{"code":"500102","name":"涪陵区"},{"code":"500103","name":"渝中区"},{"code":"500104","name":"大渡口区"},{"code":"500105","name":"江北区"},{"code":"500106","name":"沙坪坝区"},{"code":"500107","name":"九龙坡区"},{"code":"500108","name":"南岸区"},{"code":"500109","name":"北碚区"},{"code":"500110","name":"綦江区"},{"code":"500111","name":"大足区"},{"code":"500112","name":"渝北区"},{"code":"500113","name":"巴南区"},{"code":"500114","name":"黔江区"},{"code":"500115","name":"长寿区"},{"code":"500116","name":"江津区"},{"code":"500117","name":"合川区"},{"code":"500118","name":"永川区"},{"code":"500119","name":"南川区"},{"code":"500120","name":"璧山区"},{"code":"500151","name":"铜梁区"},{"code":"500152","name":"潼南区"},{"code":"500153","name":"荣昌区"},{"code":"500154","name":"开州区"},{"code":"500155","name":"梁平区"},{"code":"500156","name":"武隆区"}]},{"code":"5002","name":"县","children":[{"code":"500229","name":"城口县"},{"code":"500230","name":"丰都县"},{"code":"500231","name":"垫江县"},{"code":"500233","name":"忠县"},{"code":"500235","name":"云阳县"},{"code":"500236","name":"奉节县"},{"code":"500237","name":"巫山县"},{"code":"500238","name":"巫溪县"},{"code":"500240","name":"石柱土家族自治县"},{"code":"500241","name":"秀山土家族苗族自治县"},{"code":"500242","name":"酉阳土家族苗族自治县"},{"code":"500243","name":"彭水苗族土家族自治县"}]}]},{"code":"52","name":"贵州省","children":[{"code":"5201","name":"贵阳市","children":[{"code":"520102","name":"南明区"},{"code":"520103","name":"云岩区"},{"code":"520111","name":"花溪区"},{"code":"520112","name":"乌当区"},{"code":"520113","name":"白云区"},{"code":"520115","name":"观山湖区"},{"code":"520121","name":"开阳县"},{"code":"520122","name":"息烽县"},{"code":"520123","name":"修文县"},{"code":"520181","name":"清镇市"}]},{"code":"5202","name":"六盘水市","children":[{"code":"520201","name":"钟山区"},{"code":"520203","name":"六枝特区"},{"code":"520221","name":"水城县"},{"code":"520281","name":"盘州市"}]},{"code":"5203","name":"遵义市","children":[{"code":"520302","name":"红花岗区"},{"code":"520303","name":"汇川区"},{"code":"520304","name":"播州区"},{"code":"520322","name":"桐梓县"},{"code":"520323","name":"绥阳县"},{"code":"520324","name":"正安县"},{"code":"520325","name":"道真仡佬族苗族自治县"},{"code":"520326","name":"务川仡佬族苗族自治县"},{"code":"520327","name":"凤冈县"},{"code":"520328","name":"湄潭县"},{"code":"520329","name":"余庆县"},{"code":"520330","name":"习水县"},{"code":"520381","name":"赤水市"},{"code":"520382","name":"仁怀市"}]},{"code":"5204","name":"安顺市","children":[{"code":"520402","name":"西秀区"},{"code":"520403","name":"平坝区"},{"code":"520422","name":"普定县"},{"code":"520423","name":"镇宁布依族苗族自治县"},{"code":"520424","name":"关岭布依族苗族自治县"},{"code":"520425","name":"紫云苗族布依族自治县"}]},{"code":"5205","name":"毕节市","children":[{"code":"520502","name":"七星关区"},{"code":"520521","name":"大方县"},{"code":"520522","name":"黔西县"},{"code":"520523","name":"金沙县"},{"code":"520524","name":"织金县"},{"code":"520525","name":"纳雍县"},{"code":"520526","name":"威宁彝族回族苗族自治县"},{"code":"520527","name":"赫章县"}]},{"code":"5206","name":"铜仁市","children":[{"code":"520602","name":"碧江区"},{"code":"520603","name":"万山区"},{"code":"520621","name":"江口县"},{"code":"520622","name":"玉屏侗族自治县"},{"code":"520623","name":"石阡县"},{"code":"520624","name":"思南县"},{"code":"520625","name":"印江土家族苗族自治县"},{"code":"520626","name":"德江县"},{"code":"520627","name":"沿河土家族自治县"},{"code":"520628","name":"松桃苗族自治县"}]},{"code":"5223","name":"黔西南布依族苗族自治州","children":[{"code":"522301","name":"兴义市"},{"code":"522302","name":"兴仁市"},{"code":"522323","name":"普安县"},{"code":"522324","name":"晴隆县"},{"code":"522325","name":"贞丰县"},{"code":"522326","name":"望谟县"},{"code":"522327","name":"册亨县"},{"code":"522328","name":"安龙县"}]},{"code":"5226","name":"黔东南苗族侗族自治州","children":[{"code":"522601","name":"凯里市"},{"code":"522622","name":"黄平县"},{"code":"522623","name":"施秉县"},{"code":"522624","name":"三穗县"},{"code":"522625","name":"镇远县"},{"code":"522626","name":"岑巩县"},{"code":"522627","name":"天柱县"},{"code":"522628","name":"锦屏县"},{"code":"522629","name":"剑河县"},{"code":"522630","name":"台江县"},{"code":"522631","name":"黎平县"},{"code":"522632","name":"榕江县"},{"code":"522633","name":"从江县"},{"code":"522634","name":"雷山县"},{"code":"522635","name":"麻江县"},{"code":"522636","name":"丹寨县"}]},{"code":"5227","name":"黔南布依族苗族自治州","children":[{"code":"522701","name":"都匀市"},{"code":"522702","name":"福泉市"},{"code":"522722","name":"荔波县"},{"code":"522723","name":"贵定县"},{"code":"522725","name":"瓮安县"},{"code":"522726","name":"独山县"},{"code":"522727","name":"平塘县"},{"code":"522728","name":"罗甸县"},{"code":"522729","name":"长顺县"},{"code":"522730","name":"龙里县"},{"code":"522731","name":"惠水县"},{"code":"522732","name":"三都水族自治县"}]}]},{"code":"53","name":"云南省","children":[{"code":"5301","name":"昆明市","children":[{"code":"530102","name":"五华区"},{"code":"530103","name":"盘龙区"},{"code":"530111","name":"官渡区"},{"code":"530112","name":"西山区"},{"code":"530113","name":"东川区"},{"code":"530114","name":"呈贡区"},{"code":"530115","name":"晋宁区"},{"code":"530124","name":"富民县"},{"code":"530125","name":"宜良县"},{"code":"530126","name":"石林彝族自治县"},{"code":"530127","name":"嵩明县"},{"code":"530128","name":"禄劝彝族苗族自治县"},{"code":"530129","name":"寻甸回族彝族自治县"},{"code":"530181","name":"安宁市"}]},{"code":"5303","name":"曲靖市","children":[{"code":"530302","name":"麒麟区"},{"code":"530303","name":"沾益区"},{"code":"530304","name":"马龙区"},{"code":"530322","name":"陆良县"},{"code":"530323","name":"师宗县"},{"code":"530324","name":"罗平县"},{"code":"530325","name":"富源县"},{"code":"530326","name":"会泽县"},{"code":"530381","name":"宣威市"}]},{"code":"5304","name":"玉溪市","children":[{"code":"530402","name":"红塔区"},{"code":"530403","name":"江川区"},{"code":"530423","name":"通海县"},{"code":"530424","name":"华宁县"},{"code":"530425","name":"易门县"},{"code":"530426","name":"峨山彝族自治县"},{"code":"530427","name":"新平彝族傣族自治县"},{"code":"530428","name":"元江哈尼族彝族傣族自治县"},{"code":"530481","name":"澄江市"}]},{"code":"5305","name":"保山市","children":[{"code":"530502","name":"隆阳区"},{"code":"530521","name":"施甸县"},{"code":"530523","name":"龙陵县"},{"code":"530524","name":"昌宁县"},{"code":"530581","name":"腾冲市"}]},{"code":"5306","name":"昭通市","children":[{"code":"530602","name":"昭阳区"},{"code":"530621","name":"鲁甸县"},{"code":"530622","name":"巧家县"},{"code":"530623","name":"盐津县"},{"code":"530624","name":"大关县"},{"code":"530625","name":"永善县"},{"code":"530626","name":"绥江县"},{"code":"530627","name":"镇雄县"},{"code":"530628","name":"彝良县"},{"code":"530629","name":"威信县"},{"code":"530681","name":"水富市"}]},{"code":"5307","name":"丽江市","children":[{"code":"530702","name":"古城区"},{"code":"530721","name":"玉龙纳西族自治县"},{"code":"530722","name":"永胜县"},{"code":"530723","name":"华坪县"},{"code":"530724","name":"宁蒗彝族自治县"}]},{"code":"5308","name":"普洱市","children":[{"code":"530802","name":"思茅区"},{"code":"530821","name":"宁洱哈尼族彝族自治县"},{"code":"530822","name":"墨江哈尼族自治县"},{"code":"530823","name":"景东彝族自治县"},{"code":"530824","name":"景谷傣族彝族自治县"},{"code":"530825","name":"镇沅彝族哈尼族拉祜族自治县"},{"code":"530826","name":"江城哈尼族彝族自治县"},{"code":"530827","name":"孟连傣族拉祜族佤族自治县"},{"code":"530828","name":"澜沧拉祜族自治县"},{"code":"530829","name":"西盟佤族自治县"}]},{"code":"5309","name":"临沧市","children":[{"code":"530902","name":"临翔区"},{"code":"530921","name":"凤庆县"},{"code":"530922","name":"云县"},{"code":"530923","name":"永德县"},{"code":"530924","name":"镇康县"},{"code":"530925","name":"双江拉祜族佤族布朗族傣族自治县"},{"code":"530926","name":"耿马傣族佤族自治县"},{"code":"530927","name":"沧源佤族自治县"}]},{"code":"5323","name":"楚雄彝族自治州","children":[{"code":"532301","name":"楚雄市"},{"code":"532322","name":"双柏县"},{"code":"532323","name":"牟定县"},{"code":"532324","name":"南华县"},{"code":"532325","name":"姚安县"},{"code":"532326","name":"大姚县"},{"code":"532327","name":"永仁县"},{"code":"532328","name":"元谋县"},{"code":"532329","name":"武定县"},{"code":"532331","name":"禄丰县"}]},{"code":"5325","name":"红河哈尼族彝族自治州","children":[{"code":"532501","name":"个旧市"},{"code":"532502","name":"开远市"},{"code":"532503","name":"蒙自市"},{"code":"532504","name":"弥勒市"},{"code":"532523","name":"屏边苗族自治县"},{"code":"532524","name":"建水县"},{"code":"532525","name":"石屏县"},{"code":"532527","name":"泸西县"},{"code":"532528","name":"元阳县"},{"code":"532529","name":"红河县"},{"code":"532530","name":"金平苗族瑶族傣族自治县"},{"code":"532531","name":"绿春县"},{"code":"532532","name":"河口瑶族自治县"}]},{"code":"5326","name":"文山壮族苗族自治州","children":[{"code":"532601","name":"文山市"},{"code":"532622","name":"砚山县"},{"code":"532623","name":"西畴县"},{"code":"532624","name":"麻栗坡县"},{"code":"532625","name":"马关县"},{"code":"532626","name":"丘北县"},{"code":"532627","name":"广南县"},{"code":"532628","name":"富宁县"}]},{"code":"5328","name":"西双版纳傣族自治州","children":[{"code":"532801","name":"景洪市"},{"code":"532822","name":"勐海县"},{"code":"532823","name":"勐腊县"}]},{"code":"5329","name":"大理白族自治州","children":[{"code":"532901","name":"大理市"},{"code":"532922","name":"漾濞彝族自治县"},{"code":"532923","name":"祥云县"},{"code":"532924","name":"宾川县"},{"code":"532925","name":"弥渡县"},{"code":"532926","name":"南涧彝族自治县"},{"code":"532927","name":"巍山彝族回族自治县"},{"code":"532928","name":"永平县"},{"code":"532929","name":"云龙县"},{"code":"532930","name":"洱源县"},{"code":"532931","name":"剑川县"},{"code":"532932","name":"鹤庆县"}]},{"code":"5331","name":"德宏傣族景颇族自治州","children":[{"code":"533102","name":"瑞丽市"},{"code":"533103","name":"芒市"},{"code":"533122","name":"梁河县"},{"code":"533123","name":"盈江县"},{"code":"533124","name":"陇川县"}]},{"code":"5333","name":"怒江傈僳族自治州","children":[{"code":"533301","name":"泸水市"},{"code":"533323","name":"福贡县"},{"code":"533324","name":"贡山独龙族怒族自治县"},{"code":"533325","name":"兰坪白族普米族自治县"}]},{"code":"5334","name":"迪庆藏族自治州","children":[{"code":"533401","name":"香格里拉市"},{"code":"533422","name":"德钦县"},{"code":"533423","name":"维西傈僳族自治县"}]}]},{"code":"54","name":"西藏自治区","children":[{"code":"5401","name":"拉萨市","children":[{"code":"540102","name":"城关区"},{"code":"540103","name":"堆龙德庆区"},{"code":"540104","name":"达孜区"},{"code":"540121","name":"林周县"},{"code":"540122","name":"当雄县"},{"code":"540123","name":"尼木县"},{"code":"540124","name":"曲水县"},{"code":"540127","name":"墨竹工卡县"},{"code":"540171","name":"格尔木藏青工业园区"},{"code":"540172","name":"拉萨经济技术开发区"},{"code":"540173","name":"西藏文化旅游创意园区"},{"code":"540174","name":"达孜工业园区"}]},{"code":"5402","name":"日喀则市","children":[{"code":"540202","name":"桑珠孜区"},{"code":"540221","name":"南木林县"},{"code":"540222","name":"江孜县"},{"code":"540223","name":"定日县"},{"code":"540224","name":"萨迦县"},{"code":"540225","name":"拉孜县"},{"code":"540226","name":"昂仁县"},{"code":"540227","name":"谢通门县"},{"code":"540228","name":"白朗县"},{"code":"540229","name":"仁布县"},{"code":"540230","name":"康马县"},{"code":"540231","name":"定结县"},{"code":"540232","name":"仲巴县"},{"code":"540233","name":"亚东县"},{"code":"540234","name":"吉隆县"},{"code":"540235","name":"聂拉木县"},{"code":"540236","name":"萨嘎县"},{"code":"540237","name":"岗巴县"}]},{"code":"5403","name":"昌都市","children":[{"code":"540302","name":"卡若区"},{"code":"540321","name":"江达县"},{"code":"540322","name":"贡觉县"},{"code":"540323","name":"类乌齐县"},{"code":"540324","name":"丁青县"},{"code":"540325","name":"察雅县"},{"code":"540326","name":"八宿县"},{"code":"540327","name":"左贡县"},{"code":"540328","name":"芒康县"},{"code":"540329","name":"洛隆县"},{"code":"540330","name":"边坝县"}]},{"code":"5404","name":"林芝市","children":[{"code":"540402","name":"巴宜区"},{"code":"540421","name":"工布江达县"},{"code":"540422","name":"米林县"},{"code":"540423","name":"墨脱县"},{"code":"540424","name":"波密县"},{"code":"540425","name":"察隅县"},{"code":"540426","name":"朗县"}]},{"code":"5405","name":"山南市","children":[{"code":"540502","name":"乃东区"},{"code":"540521","name":"扎囊县"},{"code":"540522","name":"贡嘎县"},{"code":"540523","name":"桑日县"},{"code":"540524","name":"琼结县"},{"code":"540525","name":"曲松县"},{"code":"540526","name":"措美县"},{"code":"540527","name":"洛扎县"},{"code":"540528","name":"加查县"},{"code":"540529","name":"隆子县"},{"code":"540530","name":"错那县"},{"code":"540531","name":"浪卡子县"}]},{"code":"5406","name":"那曲市","children":[{"code":"540602","name":"色尼区"},{"code":"540621","name":"嘉黎县"},{"code":"540622","name":"比如县"},{"code":"540623","name":"聂荣县"},{"code":"540624","name":"安多县"},{"code":"540625","name":"申扎县"},{"code":"540626","name":"索县"},{"code":"540627","name":"班戈县"},{"code":"540628","name":"巴青县"},{"code":"540629","name":"尼玛县"},{"code":"540630","name":"双湖县"}]},{"code":"5425","name":"阿里地区","children":[{"code":"542521","name":"普兰县"},{"code":"542522","name":"札达县"},{"code":"542523","name":"噶尔县"},{"code":"542524","name":"日土县"},{"code":"542525","name":"革吉县"},{"code":"542526","name":"改则县"},{"code":"542527","name":"措勤县"}]}]},{"code":"61","name":"陕西省","children":[{"code":"6101","name":"西安市","children":[{"code":"610102","name":"新城区"},{"code":"610103","name":"碑林区"},{"code":"610104","name":"莲湖区"},{"code":"610111","name":"灞桥区"},{"code":"610112","name":"未央区"},{"code":"610113","name":"雁塔区"},{"code":"610114","name":"阎良区"},{"code":"610115","name":"临潼区"},{"code":"610116","name":"长安区"},{"code":"610117","name":"高陵区"},{"code":"610118","name":"鄠邑区"},{"code":"610122","name":"蓝田县"},{"code":"610124","name":"周至县"}]},{"code":"6102","name":"铜川市","children":[{"code":"610202","name":"王益区"},{"code":"610203","name":"印台区"},{"code":"610204","name":"耀州区"},{"code":"610222","name":"宜君县"}]},{"code":"6103","name":"宝鸡市","children":[{"code":"610302","name":"渭滨区"},{"code":"610303","name":"金台区"},{"code":"610304","name":"陈仓区"},{"code":"610322","name":"凤翔县"},{"code":"610323","name":"岐山县"},{"code":"610324","name":"扶风县"},{"code":"610326","name":"眉县"},{"code":"610327","name":"陇县"},{"code":"610328","name":"千阳县"},{"code":"610329","name":"麟游县"},{"code":"610330","name":"凤县"},{"code":"610331","name":"太白县"}]},{"code":"6104","name":"咸阳市","children":[{"code":"610402","name":"秦都区"},{"code":"610403","name":"杨陵区"},{"code":"610404","name":"渭城区"},{"code":"610422","name":"三原县"},{"code":"610423","name":"泾阳县"},{"code":"610424","name":"乾县"},{"code":"610425","name":"礼泉县"},{"code":"610426","name":"永寿县"},{"code":"610428","name":"长武县"},{"code":"610429","name":"旬邑县"},{"code":"610430","name":"淳化县"},{"code":"610431","name":"武功县"},{"code":"610481","name":"兴平市"},{"code":"610482","name":"彬州市"}]},{"code":"6105","name":"渭南市","children":[{"code":"610502","name":"临渭区"},{"code":"610503","name":"华州区"},{"code":"610522","name":"潼关县"},{"code":"610523","name":"大荔县"},{"code":"610524","name":"合阳县"},{"code":"610525","name":"澄城县"},{"code":"610526","name":"蒲城县"},{"code":"610527","name":"白水县"},{"code":"610528","name":"富平县"},{"code":"610581","name":"韩城市"},{"code":"610582","name":"华阴市"}]},{"code":"6106","name":"延安市","children":[{"code":"610602","name":"宝塔区"},{"code":"610603","name":"安塞区"},{"code":"610621","name":"延长县"},{"code":"610622","name":"延川县"},{"code":"610625","name":"志丹县"},{"code":"610626","name":"吴起县"},{"code":"610627","name":"甘泉县"},{"code":"610628","name":"富县"},{"code":"610629","name":"洛川县"},{"code":"610630","name":"宜川县"},{"code":"610631","name":"黄龙县"},{"code":"610632","name":"黄陵县"},{"code":"610681","name":"子长市"}]},{"code":"6107","name":"汉中市","children":[{"code":"610702","name":"汉台区"},{"code":"610703","name":"南郑区"},{"code":"610722","name":"城固县"},{"code":"610723","name":"洋县"},{"code":"610724","name":"西乡县"},{"code":"610725","name":"勉县"},{"code":"610726","name":"宁强县"},{"code":"610727","name":"略阳县"},{"code":"610728","name":"镇巴县"},{"code":"610729","name":"留坝县"},{"code":"610730","name":"佛坪县"}]},{"code":"6108","name":"榆林市","children":[{"code":"610802","name":"榆阳区"},{"code":"610803","name":"横山区"},{"code":"610822","name":"府谷县"},{"code":"610824","name":"靖边县"},{"code":"610825","name":"定边县"},{"code":"610826","name":"绥德县"},{"code":"610827","name":"米脂县"},{"code":"610828","name":"佳县"},{"code":"610829","name":"吴堡县"},{"code":"610830","name":"清涧县"},{"code":"610831","name":"子洲县"},{"code":"610881","name":"神木市"}]},{"code":"6109","name":"安康市","children":[{"code":"610902","name":"汉滨区"},{"code":"610921","name":"汉阴县"},{"code":"610922","name":"石泉县"},{"code":"610923","name":"宁陕县"},{"code":"610924","name":"紫阳县"},{"code":"610925","name":"岚皋县"},{"code":"610926","name":"平利县"},{"code":"610927","name":"镇坪县"},{"code":"610928","name":"旬阳县"},{"code":"610929","name":"白河县"}]},{"code":"6110","name":"商洛市","children":[{"code":"611002","name":"商州区"},{"code":"611021","name":"洛南县"},{"code":"611022","name":"丹凤县"},{"code":"611023","name":"商南县"},{"code":"611024","name":"山阳县"},{"code":"611025","name":"镇安县"},{"code":"611026","name":"柞水县"}]}]},{"code":"62","name":"甘肃省","children":[{"code":"6201","name":"兰州市","children":[{"code":"620102","name":"城关区"},{"code":"620103","name":"七里河区"},{"code":"620104","name":"西固区"},{"code":"620105","name":"安宁区"},{"code":"620111","name":"红古区"},{"code":"620121","name":"永登县"},{"code":"620122","name":"皋兰县"},{"code":"620123","name":"榆中县"},{"code":"620171","name":"兰州新区"}]},{"code":"6202","name":"嘉峪关市","children":[{"code":"620201001","name":"雄关街道"},{"code":"620201002","name":"钢城街道"},{"code":"620201100","name":"新城镇"},{"code":"620201101","name":"峪泉镇"},{"code":"620201102","name":"文殊镇"}]},{"code":"6203","name":"金昌市","children":[{"code":"620302","name":"金川区"},{"code":"620321","name":"永昌县"}]},{"code":"6204","name":"白银市","children":[{"code":"620402","name":"白银区"},{"code":"620403","name":"平川区"},{"code":"620421","name":"靖远县"},{"code":"620422","name":"会宁县"},{"code":"620423","name":"景泰县"}]},{"code":"6205","name":"天水市","children":[{"code":"620502","name":"秦州区"},{"code":"620503","name":"麦积区"},{"code":"620521","name":"清水县"},{"code":"620522","name":"秦安县"},{"code":"620523","name":"甘谷县"},{"code":"620524","name":"武山县"},{"code":"620525","name":"张家川回族自治县"}]},{"code":"6206","name":"武威市","children":[{"code":"620602","name":"凉州区"},{"code":"620621","name":"民勤县"},{"code":"620622","name":"古浪县"},{"code":"620623","name":"天祝藏族自治县"}]},{"code":"6207","name":"张掖市","children":[{"code":"620702","name":"甘州区"},{"code":"620721","name":"肃南裕固族自治县"},{"code":"620722","name":"民乐县"},{"code":"620723","name":"临泽县"},{"code":"620724","name":"高台县"},{"code":"620725","name":"山丹县"}]},{"code":"6208","name":"平凉市","children":[{"code":"620802","name":"崆峒区"},{"code":"620821","name":"泾川县"},{"code":"620822","name":"灵台县"},{"code":"620823","name":"崇信县"},{"code":"620825","name":"庄浪县"},{"code":"620826","name":"静宁县"},{"code":"620881","name":"华亭市"}]},{"code":"6209","name":"酒泉市","children":[{"code":"620902","name":"肃州区"},{"code":"620921","name":"金塔县"},{"code":"620922","name":"瓜州县"},{"code":"620923","name":"肃北蒙古族自治县"},{"code":"620924","name":"阿克塞哈萨克族自治县"},{"code":"620981","name":"玉门市"},{"code":"620982","name":"敦煌市"}]},{"code":"6210","name":"庆阳市","children":[{"code":"621002","name":"西峰区"},{"code":"621021","name":"庆城县"},{"code":"621022","name":"环县"},{"code":"621023","name":"华池县"},{"code":"621024","name":"合水县"},{"code":"621025","name":"正宁县"},{"code":"621026","name":"宁县"},{"code":"621027","name":"镇原县"}]},{"code":"6211","name":"定西市","children":[{"code":"621102","name":"安定区"},{"code":"621121","name":"通渭县"},{"code":"621122","name":"陇西县"},{"code":"621123","name":"渭源县"},{"code":"621124","name":"临洮县"},{"code":"621125","name":"漳县"},{"code":"621126","name":"岷县"}]},{"code":"6212","name":"陇南市","children":[{"code":"621202","name":"武都区"},{"code":"621221","name":"成县"},{"code":"621222","name":"文县"},{"code":"621223","name":"宕昌县"},{"code":"621224","name":"康县"},{"code":"621225","name":"西和县"},{"code":"621226","name":"礼县"},{"code":"621227","name":"徽县"},{"code":"621228","name":"两当县"}]},{"code":"6229","name":"临夏回族自治州","children":[{"code":"622901","name":"临夏市"},{"code":"622921","name":"临夏县"},{"code":"622922","name":"康乐县"},{"code":"622923","name":"永靖县"},{"code":"622924","name":"广河县"},{"code":"622925","name":"和政县"},{"code":"622926","name":"东乡族自治县"},{"code":"622927","name":"积石山保安族东乡族撒拉族自治县"}]},{"code":"6230","name":"甘南藏族自治州","children":[{"code":"623001","name":"合作市"},{"code":"623021","name":"临潭县"},{"code":"623022","name":"卓尼县"},{"code":"623023","name":"舟曲县"},{"code":"623024","name":"迭部县"},{"code":"623025","name":"玛曲县"},{"code":"623026","name":"碌曲县"},{"code":"623027","name":"夏河县"}]}]},{"code":"63","name":"青海省","children":[{"code":"6301","name":"西宁市","children":[{"code":"630102","name":"城东区"},{"code":"630103","name":"城中区"},{"code":"630104","name":"城西区"},{"code":"630105","name":"城北区"},{"code":"630106","name":"湟中区"},{"code":"630121","name":"大通回族土族自治县"},{"code":"630123","name":"湟源县"}]},{"code":"6302","name":"海东市","children":[{"code":"630202","name":"乐都区"},{"code":"630203","name":"平安区"},{"code":"630222","name":"民和回族土族自治县"},{"code":"630223","name":"互助土族自治县"},{"code":"630224","name":"化隆回族自治县"},{"code":"630225","name":"循化撒拉族自治县"}]},{"code":"6322","name":"海北藏族自治州","children":[{"code":"632221","name":"门源回族自治县"},{"code":"632222","name":"祁连县"},{"code":"632223","name":"海晏县"},{"code":"632224","name":"刚察县"}]},{"code":"6323","name":"黄南藏族自治州","children":[{"code":"632321","name":"同仁县"},{"code":"632322","name":"尖扎县"},{"code":"632323","name":"泽库县"},{"code":"632324","name":"河南蒙古族自治县"}]},{"code":"6325","name":"海南藏族自治州","children":[{"code":"632521","name":"共和县"},{"code":"632522","name":"同德县"},{"code":"632523","name":"贵德县"},{"code":"632524","name":"兴海县"},{"code":"632525","name":"贵南县"}]},{"code":"6326","name":"果洛藏族自治州","children":[{"code":"632621","name":"玛沁县"},{"code":"632622","name":"班玛县"},{"code":"632623","name":"甘德县"},{"code":"632624","name":"达日县"},{"code":"632625","name":"久治县"},{"code":"632626","name":"玛多县"}]},{"code":"6327","name":"玉树藏族自治州","children":[{"code":"632701","name":"玉树市"},{"code":"632722","name":"杂多县"},{"code":"632723","name":"称多县"},{"code":"632724","name":"治多县"},{"code":"632725","name":"囊谦县"},{"code":"632726","name":"曲麻莱县"}]},{"code":"6328","name":"海西蒙古族藏族自治州","children":[{"code":"632801","name":"格尔木市"},{"code":"632802","name":"德令哈市"},{"code":"632803","name":"茫崖市"},{"code":"632821","name":"乌兰县"},{"code":"632822","name":"都兰县"},{"code":"632823","name":"天峻县"},{"code":"632857","name":"大柴旦行政委员会"}]}]},{"code":"64","name":"宁夏回族自治区","children":[{"code":"6401","name":"银川市","children":[{"code":"640104","name":"兴庆区"},{"code":"640105","name":"西夏区"},{"code":"640106","name":"金凤区"},{"code":"640121","name":"永宁县"},{"code":"640122","name":"贺兰县"},{"code":"640181","name":"灵武市"}]},{"code":"6402","name":"石嘴山市","children":[{"code":"640202","name":"大武口区"},{"code":"640205","name":"惠农区"},{"code":"640221","name":"平罗县"}]},{"code":"6403","name":"吴忠市","children":[{"code":"640302","name":"利通区"},{"code":"640303","name":"红寺堡区"},{"code":"640323","name":"盐池县"},{"code":"640324","name":"同心县"},{"code":"640381","name":"青铜峡市"}]},{"code":"6404","name":"固原市","children":[{"code":"640402","name":"原州区"},{"code":"640422","name":"西吉县"},{"code":"640423","name":"隆德县"},{"code":"640424","name":"泾源县"},{"code":"640425","name":"彭阳县"}]},{"code":"6405","name":"中卫市","children":[{"code":"640502","name":"沙坡头区"},{"code":"640521","name":"中宁县"},{"code":"640522","name":"海原县"}]}]},{"code":"65","name":"新疆维吾尔自治区","children":[{"code":"6501","name":"乌鲁木齐市","children":[{"code":"650102","name":"天山区"},{"code":"650103","name":"沙依巴克区"},{"code":"650104","name":"新市区"},{"code":"650105","name":"水磨沟区"},{"code":"650106","name":"头屯河区"},{"code":"650107","name":"达坂城区"},{"code":"650109","name":"米东区"},{"code":"650121","name":"乌鲁木齐县"}]},{"code":"6502","name":"克拉玛依市","children":[{"code":"650202","name":"独山子区"},{"code":"650203","name":"克拉玛依区"},{"code":"650204","name":"白碱滩区"},{"code":"650205","name":"乌尔禾区"}]},{"code":"6504","name":"吐鲁番市","children":[{"code":"650402","name":"高昌区"},{"code":"650421","name":"鄯善县"},{"code":"650422","name":"托克逊县"}]},{"code":"6505","name":"哈密市","children":[{"code":"650502","name":"伊州区"},{"code":"650521","name":"巴里坤哈萨克自治县"},{"code":"650522","name":"伊吾县"}]},{"code":"6523","name":"昌吉回族自治州","children":[{"code":"652301","name":"昌吉市"},{"code":"652302","name":"阜康市"},{"code":"652323","name":"呼图壁县"},{"code":"652324","name":"玛纳斯县"},{"code":"652325","name":"奇台县"},{"code":"652327","name":"吉木萨尔县"},{"code":"652328","name":"木垒哈萨克自治县"}]},{"code":"6527","name":"博尔塔拉蒙古自治州","children":[{"code":"652701","name":"博乐市"},{"code":"652702","name":"阿拉山口市"},{"code":"652722","name":"精河县"},{"code":"652723","name":"温泉县"}]},{"code":"6528","name":"巴音郭楞蒙古自治州","children":[{"code":"652801","name":"库尔勒市"},{"code":"652822","name":"轮台县"},{"code":"652823","name":"尉犁县"},{"code":"652824","name":"若羌县"},{"code":"652825","name":"且末县"},{"code":"652826","name":"焉耆回族自治县"},{"code":"652827","name":"和静县"},{"code":"652828","name":"和硕县"},{"code":"652829","name":"博湖县"},{"code":"652871","name":"库尔勒经济技术开发区"}]},{"code":"6529","name":"阿克苏地区","children":[{"code":"652901","name":"阿克苏市"},{"code":"652902","name":"库车市"},{"code":"652922","name":"温宿县"},{"code":"652924","name":"沙雅县"},{"code":"652925","name":"新和县"},{"code":"652926","name":"拜城县"},{"code":"652927","name":"乌什县"},{"code":"652928","name":"阿瓦提县"},{"code":"652929","name":"柯坪县"}]},{"code":"6530","name":"克孜勒苏柯尔克孜自治州","children":[{"code":"653001","name":"阿图什市"},{"code":"653022","name":"阿克陶县"},{"code":"653023","name":"阿合奇县"},{"code":"653024","name":"乌恰县"}]},{"code":"6531","name":"喀什地区","children":[{"code":"653101","name":"喀什市"},{"code":"653121","name":"疏附县"},{"code":"653122","name":"疏勒县"},{"code":"653123","name":"英吉沙县"},{"code":"653124","name":"泽普县"},{"code":"653125","name":"莎车县"},{"code":"653126","name":"叶城县"},{"code":"653127","name":"麦盖提县"},{"code":"653128","name":"岳普湖县"},{"code":"653129","name":"伽师县"},{"code":"653130","name":"巴楚县"},{"code":"653131","name":"塔什库尔干塔吉克自治县"}]},{"code":"6532","name":"和田地区","children":[{"code":"653201","name":"和田市"},{"code":"653221","name":"和田县"},{"code":"653222","name":"墨玉县"},{"code":"653223","name":"皮山县"},{"code":"653224","name":"洛浦县"},{"code":"653225","name":"策勒县"},{"code":"653226","name":"于田县"},{"code":"653227","name":"民丰县"}]},{"code":"6540","name":"伊犁哈萨克自治州","children":[{"code":"654002","name":"伊宁市"},{"code":"654003","name":"奎屯市"},{"code":"654004","name":"霍尔果斯市"},{"code":"654021","name":"伊宁县"},{"code":"654022","name":"察布查尔锡伯自治县"},{"code":"654023","name":"霍城县"},{"code":"654024","name":"巩留县"},{"code":"654025","name":"新源县"},{"code":"654026","name":"昭苏县"},{"code":"654027","name":"特克斯县"},{"code":"654028","name":"尼勒克县"}]},{"code":"6542","name":"塔城地区","children":[{"code":"654201","name":"塔城市"},{"code":"654202","name":"乌苏市"},{"code":"654221","name":"额敏县"},{"code":"654223","name":"沙湾县"},{"code":"654224","name":"托里县"},{"code":"654225","name":"裕民县"},{"code":"654226","name":"和布克赛尔蒙古自治县"}]},{"code":"6543","name":"阿勒泰地区","children":[{"code":"654301","name":"阿勒泰市"},{"code":"654321","name":"布尔津县"},{"code":"654322","name":"富蕴县"},{"code":"654323","name":"福海县"},{"code":"654324","name":"哈巴河县"},{"code":"654325","name":"青河县"},{"code":"654326","name":"吉木乃县"}]},{"code":"6590","name":"自治区直辖县级行政区划","children":[{"code":"659001","name":"石河子市"},{"code":"659002","name":"阿拉尔市"},{"code":"659003","name":"图木舒克市"},{"code":"659004","name":"五家渠市"},{"code":"659005","name":"北屯市"},{"code":"659006","name":"铁门关市"},{"code":"659007","name":"双河市"},{"code":"659008","name":"可克达拉市"},{"code":"659009","name":"昆玉市"},{"code":"659010","name":"胡杨河市"}]}]}]')},d2bf:function(e,t,n){"use strict";n("5591")},e01a:function(e,t,n){"use strict";n("7b96")},eec4:function(e,t,n){"use strict";n("f522")},f4c3:function(e,t,n){
|
||
/*!
|
||
* TOAST UI Editor : i18n
|
||
* @version 3.1.10
|
||
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
||
* @license MIT
|
||
*/
|
||
(function(t,a){e.exports=a(n("5865"))})(self,(function(e){return function(){"use strict";var t={213:function(t){t.exports=e}},n={};function a(e){var l=n[e];if(void 0!==l)return l.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,a),o.exports}!function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var l={};return function(){a.r(l);var e=a(213),t=a.n(e);t().setLanguage("zh-CN",{Markdown:"Markdown",WYSIWYG:"所见即所得",Write:"编辑",Preview:"预览",Headings:"标题",Paragraph:"文本",Bold:"加粗",Italic:"斜体字",Strike:"删除线",Code:"内嵌代码",Line:"水平线",Blockquote:"引用块","Unordered list":"无序列表","Ordered list":"有序列表",Task:"任务",Indent:"缩进",Outdent:"减少缩进","Insert link":"插入链接","Insert CodeBlock":"插入代码块","Insert table":"插入表格","Insert image":"插入图片",Heading:"标题","Image URL":"图片网址","Select image file":"选择图片文件","Choose a file":"选择一个文件","No file":"没有文件",Description:"说明",OK:"确认",More:"更多",Cancel:"取消",File:"文件",URL:"URL","Link text":"链接文本","Add row to up":"向上添加行","Add row to down":"在下方添加行","Add column to left":"在左侧添加列","Add column to right":"在右侧添加列","Remove row":"删除行","Remove column":"删除列","Align column to left":"左对齐","Align column to center":"居中对齐","Align column to right":"右对齐","Remove table":"删除表格","Would you like to paste as table?":"需要粘贴为表格吗?","Text color":"文字颜色","Auto scroll enabled":"自动滚动已启用","Auto scroll disabled":"自动滚动已禁用","Choose language":"选择语言"})}(),l}()}))},f513:function(e,t,n){},f522:function(e,t,n){},f95e:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u}));var a=n("5313"),l=(n("0ac0"),function(e,t){this.match=e,this.handler="string"==typeof t?o(t):t});function o(e){return function(t,n,a,l){var o=e;if(n[1]){var r=n[0].lastIndexOf(n[1]);o+=n[0].slice(r+n[1].length),a+=r;var i=a-l;i>0&&(o=n[0].slice(r-i,r)+o,a=l)}return t.tr.insertText(o,a,l)}}var r=500;function i(e){var t=e.rules,n=new a["d"]({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,a,l,o){return c(e,a,l,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var a=e.state.selection,l=a.$cursor;l&&c(e,l.pos,l.pos,"",t,n)}))}}},isInputRules:!0});return n}function c(e,t,n,a,l,o){if(e.composing)return!1;var i=e.state,c=i.doc.resolve(t);if(c.parent.type.spec.code)return!1;for(var u=c.parent.textBetween(Math.max(0,c.parentOffset-r),c.parentOffset,null,"")+a,s=0;s<l.length;s++){var d=l[s].match.exec(u),p=d&&l[s].handler(i,d,t-(d[0].length-a.length),n);if(p)return e.dispatch(p.setMeta(o,{transform:p,from:t,to:n,text:a})),!0}return!1}function u(e,t){for(var n=e.plugins,a=0;a<n.length;a++){var l=n[a],o=void 0;if(l.spec.isInputRules&&(o=l.getState(e))){if(t){for(var r=e.tr,i=o.transform,c=i.steps.length-1;c>=0;c--)r.step(i.steps[c].invert(i.docs[c]));if(o.text){var u=r.doc.resolve(o.from).marks();r.replaceWith(o.from,o.to,e.schema.text(o.text,u))}else r.delete(o.from,o.to);t(r)}return!0}}return!1}new l(/--$/,"—"),new l(/\.\.\.$/,"…"),new l(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new l(/"$/,"”"),new l(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new l(/'$/,"’")}}]); |