(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,388773,t=>{"use strict";var e=t.i(755453);t.i(6795);var n=t.i(175863),i=t.i(524617);class r{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=e.width)?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e,n=this.editorView.state.doc.resolve(this.cursorPos),i=!n.parent.inlineContent,r;if(i){let t=n.nodeBefore,e=n.nodeAfter;if(t||e){let n=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(n){let i=n.getBoundingClientRect(),s=t?i.bottom:i.top;t&&e&&(s=(s+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:i.left,right:i.right,top:s-this.width/2,bottom:s+this.width/2}}}}if(!r){let t=this.editorView.coordsAtPos(this.cursorPos);r={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let s=this.editorView.dom.offsetParent;if(!this.element&&(this.element=s.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",i),this.element.classList.toggle("prosemirror-dropcursor-inline",!i),s&&(s!=document.body||"static"!=getComputedStyle(s).position)){let n=s.getBoundingClientRect();t=n.left-s.scrollLeft,e=n.top-s.scrollTop}else t=-pageXOffset,e=-pageYOffset;this.element.style.left=r.left-t+"px",this.element.style.top=r.top-e+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,s="function"==typeof r?r(this.editorView,e,t):r;if(e&&!s){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,i.dropPoint)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}t.i(101067);var s=t.i(615505),o=t.i(54182),a=function(){};a.prototype.append=function(t){return t.length?(t=a.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},a.prototype.prepend=function(t){return t.length?a.from(t).append(this):this},a.prototype.appendInner=function(t){return new u(this,t)},a.prototype.slice=function(t,e){return(void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e)?a.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},a.prototype.get=function(t){if(!(t<0)&&!(t>=this.length))return this.getInner(t)},a.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},a.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var i=[];return this.forEach(function(e,n){return i.push(t(e,n))},e,n),i},a.from=function(t){return t instanceof a?t:t&&t.length?new l(t):a.empty};var l=function(t){function e(e){t.call(this),this.values=e}e.__proto__=t,e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,i){for(var r=e;r=n;r--)if(!1===t(this.values[r],i+r))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=200)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=200)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(a);a.empty=new l([]);var u=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return e.__proto__=t,e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return tr&&!1===this.right.forEachInner(t,Math.max(e-r,0),Math.min(this.length,n)-r,i+r))return!1},e.prototype.forEachInvertedInner=function(t,e,n,i){var r=this.left.length;if(e>r&&!1===this.right.forEachInvertedInner(t,e-r,Math.max(n,r)-r,i+r)||n=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(a);class d{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){let n,i,r,s;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}e&&(i=(n=this.remapping(o,this.items.length)).maps.length);let a=t.tr,l=[],u=[];return this.items.forEach((t,e)=>{if(!t.step){n||(i=(n=this.remapping(o,e+1)).maps.length),i--,u.push(t);return}if(n){u.push(new h(t.map));let e=t.step.map(n.slice(i)),r;e&&a.maybeStep(e).doc&&(r=a.mapping.maps[a.mapping.maps.length-1],l.push(new h(r,void 0,void 0,l.length+u.length))),i--,r&&n.appendMap(r,i)}else a.maybeStep(t.step);if(t.selection)return r=n?t.selection.map(n.slice(i)):t.selection,s=new d(this.items.slice(0,o).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(t,e,n,i){var r,s;let o,a=[],l=this.eventCount,u=this.items,p=!i&&u.length?u.get(u.length-1):null;for(let n=0;nc&&(r=u,s=f,r.forEach((t,e)=>{if(t.selection&&0==s--)return o=e,!1}),u=r.slice(o),l-=f),new d(u.append(a),l)}remapping(t,e){let n=new i.Mapping;return this.items.forEach((e,i)=>{let r=null!=e.mirrorOffset&&i-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,r)},t,e),n}addMaps(t){return 0==this.eventCount?this:new d(this.items.append(t.map(t=>new h(t))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],i=Math.max(0,this.items.length-e),r=t.mapping,s=t.steps.length,o=this.eventCount;this.items.forEach(t=>{t.selection&&o--},i);let a=e;this.items.forEach(e=>{let i=r.getMirror(--a);if(null==i)return;s=Math.min(s,i);let l=r.maps[i];if(e.step){let s=t.steps[i].invert(t.docs[i]),u=e.selection&&e.selection.map(r.slice(a+1,i));u&&o++,n.push(new h(l,s,u))}else n.push(new h(l))},i);let l=[];for(let t=e;t500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let t=0;return this.items.forEach(e=>{!e.step&&t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,i=[],r=0;return this.items.forEach((s,o)=>{if(o>=t)i.push(s),s.selection&&r++;else if(s.step){let t=s.step.map(e.slice(n)),o=t&&t.getMap();if(n--,o&&e.appendMap(o,n),t){let a=s.selection&&s.selection.map(e.slice(n));a&&r++;let l=new h(o.invert(),t,a),u,d=i.length-1;(u=i.length&&i[d].merge(l))?i[d]=u:i.push(l)}}else s.map&&n--},this.items.length,0),new d(a.from(i.reverse()),r)}}d.empty=new d(a.empty,0);class h{constructor(t,e,n,i){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new h(e.getMap().invert(),e,this.selection)}}}class p{constructor(t,e,n,i,r){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=i,this.prevComposition=r}}let c=20;function f(t){let e=[];for(let n=t.length-1;n>=0&&0==e.length;n--)t[n].forEach((t,n,i,r)=>e.push(i,r));return e}function m(t,e){if(!t)return null;let n=[];for(let i=0;i{let r=v.getState(n);if(!r||0==(t?r.undone:r.done).eventCount)return!1;if(i){let s=function(t,e,n){let i=k(e),r=v.get(e).spec.config,s=(n?t.undone:t.done).popEvent(e,i);if(!s)return null;let o=s.selection.resolve(s.transform.doc),a=(n?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),r,i),l=new p(n?a:s.remaining,n?s.remaining:a,null,0,-1);return s.transform.setSelection(o).setMeta(v,{redo:n,historyState:l})}(r,n,t);s&&i(e?s.scrollIntoView():s)}return!0}}let M=_(!1,!0),T=_(!0,!0);_(!1,!1),_(!0,!1),e.Extension.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(t=>""!==t).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=t=>{let e=(null==t?void 0:t.node)||this.editor.state.doc;if("textSize"===((null==t?void 0:t.mode)||this.options.mode)){let t=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(t)}return e.nodeSize},this.storage.words=t=>{let e=(null==t?void 0:t.node)||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new n.Plugin({key:new n.PluginKey("characterCount"),appendTransaction:(e,n,i)=>{if(t)return;let r=this.options.limit;if(null==r||0===r){t=!0;return}let s=this.storage.characters({node:i.doc});if(s>r){console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);let e=i.tr.deleteRange(0,s-r);return t=!0,e}t=!0},filterTransaction:(t,e)=>{let n=this.options.limit;if(!t.docChanged||0===n||null==n)return!0;let i=this.storage.characters({node:e.doc}),r=this.storage.characters({node:t.doc});if(r<=n||i>n&&r>n&&r<=i)return!0;if(i>n&&r>n&&r>i||!t.getMeta("paste"))return!1;let s=t.selection.$head.pos;return t.deleteRange(s-(r-n),s),!(this.storage.characters({node:t.doc})>n)}})]}});var x=e.Extension.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(t={}){return new n.Plugin({view:e=>new r(e,t)})}(this.options)]}});e.Extension.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new n.Plugin({key:new n.PluginKey("focus"),props:{decorations:({doc:t,selection:e})=>{let{isEditable:n,isFocused:i}=this.editor,{anchor:r}=e,o=[];if(!n||!i)return s.DecorationSet.create(t,[]);let a=0;"deepest"===this.options.mode&&t.descendants((t,e)=>{if(!t.isText){if(!(r>=e&&r<=e+t.nodeSize-1))return!1;a+=1}});let l=0;return t.descendants((t,e)=>!t.isText&&!!(r>=e&&r<=e+t.nodeSize-1)&&((l+=1,"deepest"===this.options.mode&&a-l>0||"shallowest"===this.options.mode&&l>1)?"deepest"===this.options.mode:void o.push(s.Decoration.node(e,e+t.nodeSize,{class:this.options.className})))),s.DecorationSet.create(t,o)}}})]}});var w=e.Extension.create({name:"gapCursor",addProseMirrorPlugins:()=>[(0,o.gapCursor)()],extendNodeSchema(t){var n;let i={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!=(n=(0,e.callOrReturn)((0,e.getExtensionField)(t,"allowGapCursor",i)))?n:null}}}),L=e.Extension.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new n.Plugin({key:new n.PluginKey("placeholder"),props:{decorations:({doc:t,selection:n})=>{let i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=n,o=[];if(!i)return null;let a=this.editor.isEmpty;return t.descendants((t,n)=>{let i=r>=n&&r<=n+t.nodeSize,l=!t.isLeaf&&(0,e.isNodeEmpty)(t);if((i||!this.options.showOnlyCurrent)&&l){let e=[this.options.emptyNodeClass];a&&e.push(this.options.emptyEditorClass);let r=s.Decoration.node(n,n+t.nodeSize,{class:e.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:n,hasAnchor:i}):this.options.placeholder});o.push(r)}return this.options.includeChildren}),s.DecorationSet.create(t,o)}}})]}});function A({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||(null==e?void 0:e.type)===t}e.Extension.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:t,options:i}=this;return[new n.Plugin({key:new n.PluginKey("selection"),props:{decorations:n=>n.selection.empty||t.isFocused||!t.isEditable||(0,e.isNodeSelection)(n.selection)||t.view.dragging?null:s.DecorationSet.create(n.doc,[s.Decoration.inline(n.selection.from,n.selection.to,{class:i.className})])}})]}});var E=e.Extension.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var t;let e=new n.PluginKey(this.name),i=(null==(t=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:t.name)||this.options.node||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(i).includes(t.name));return[new n.Plugin({key:e,appendTransaction:(t,n,r)=>{let{doc:s,tr:o,schema:a}=r,l=e.getState(r),u=s.content.size,d=a.nodes[i];if(l)return o.insert(u,d.create())},state:{init:(t,e)=>!A({node:e.tr.doc.lastChild,types:r}),apply:(t,e)=>t.docChanged?!A({node:t.doc.lastChild,types:r}):e}})]}}),C=e.Extension.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>M(t,e),redo:()=>({state:t,dispatch:e})=>T(t,e)}),addProseMirrorPlugins(){return[function(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new n.Plugin({key:v,state:{init:()=>new p(d.empty,d.empty,null,0,-1),apply:(e,n,i)=>(function(t,e,n,i){let r=n.getMeta(v),s;if(r)return r.historyState;n.getMeta(b)&&(t=new p(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(o&&o.getMeta(v))if(o.getMeta(v).redo)return new p(t.done.addTransform(n,void 0,i,k(e)),t.undone,f(n.mapping.maps),t.prevTime,t.prevComposition);else return new p(t.done,t.undone.addTransform(n,void 0,i,k(e)),null,t.prevTime,t.prevComposition);if(!1===n.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(s=n.getMeta("rebased"))return new p(t.done.rebased(n,s),t.undone.rebased(n,s),m(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);else return new p(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),m(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);{let r=n.getMeta("composition"),s=0==t.prevTime||!o&&t.prevComposition!=r&&(t.prevTime<(n.time||0)-i.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((t,i)=>{for(let r=0;r=e[r]&&(n=!0)}),n}(n,t.prevRanges)),a=o?m(t.prevRanges,n.mapping):f(n.mapping.maps);return new p(t.done.addTransform(n,s?e.selection.getBookmark():void 0,i,k(e)),d.empty,a,n.time,null==r?t.prevComposition:r)}})(n,i,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,i="historyUndo"==n?M:"historyRedo"==n?T:null;return!!i&&(e.preventDefault(),i(t.state,t.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});t.s(["Dropcursor",()=>x,"Gapcursor",()=>w,"Placeholder",()=>L,"TrailingNode",()=>E,"UndoRedo",()=>C],388773)},758866,t=>{"use strict";var e=Math.PI,n=2*e,i=n-1e-6;function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new r}r.prototype=s.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,n,i,r,s){t*=1,n*=1,i*=1,r*=1,s*=1;var o=this._x1,a=this._y1,l=i-t,u=r-n,d=o-t,h=a-n,p=d*d+h*h;if(s<0)throw Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(p>1e-6)if(Math.abs(h*l-u*d)>1e-6&&s){var c=i-o,f=r-a,m=l*l+u*u,g=Math.sqrt(m),y=Math.sqrt(p),k=s*Math.tan((e-Math.acos((m+p-(c*c+f*f))/(2*g*y)))/2),v=k/y,b=k/g;Math.abs(v-1)>1e-6&&(this._+="L"+(t+v*d)+","+(n+v*h)),this._+="A"+s+","+s+",0,0,"+ +(h*c>d*f)+","+(this._x1=t+b*l)+","+(this._y1=n+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,r,s,o,a,l){t*=1,r*=1,s*=1,l=!!l;var u=s*Math.cos(o),d=s*Math.sin(o),h=t+u,p=r+d,c=1^l,f=l?o-a:a-o;if(s<0)throw Error("negative radius: "+s);null===this._x1?this._+="M"+h+","+p:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-p)>1e-6)&&(this._+="L"+h+","+p),s&&(f<0&&(f=f%n+n),f>i?this._+="A"+s+","+s+",0,1,"+c+","+(t-u)+","+(r-d)+"A"+s+","+s+",0,1,"+c+","+(this._x1=h)+","+(this._y1=p):f>1e-6&&(this._+="A"+s+","+s+",0,"+ +(f>=e)+","+c+","+(this._x1=t+s*Math.cos(a))+","+(this._y1=r+s*Math.sin(a))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},t.s(["path",0,s],758866)},872301,151711,t=>{"use strict";t.s(["default",0,function(t){return function(){return t}}],872301);var e=Math.abs,n=Math.atan2,i=Math.cos,r=Math.max,s=Math.min,o=Math.sin,a=Math.sqrt,l=Math.PI,u=l/2,d=2*l;function h(t){return t>1?0:t<-1?l:Math.acos(t)}function p(t){return t>=1?u:t<=-1?-u:Math.asin(t)}t.s(["abs",()=>e,"acos",()=>h,"asin",()=>p,"atan2",()=>n,"cos",()=>i,"epsilon",()=>1e-12,"halfPi",()=>u,"max",()=>r,"min",()=>s,"pi",()=>l,"sin",()=>o,"sqrt",()=>a,"tau",()=>d],151711)},704938,t=>{"use strict";var e=t.i(758866),n=t.i(872301),i=t.i(151711);function r(t){return t.innerRadius}function s(t){return t.outerRadius}function o(t){return t.startAngle}function a(t){return t.endAngle}function l(t){return t&&t.padAngle}function u(t,e,n,r,s,o,a){var l=t-n,u=e-r,d=(a?o:-o)/(0,i.sqrt)(l*l+u*u),h=d*u,p=-d*l,c=t+h,f=e+p,m=n+h,g=r+p,y=(c+m)/2,k=(f+g)/2,v=m-c,b=g-f,_=v*v+b*b,M=s-o,T=c*g-m*f,x=(b<0?-1:1)*(0,i.sqrt)((0,i.max)(0,M*M*_-T*T)),w=(T*b-v*x)/_,L=(-T*v-b*x)/_,A=(T*b+v*x)/_,E=(-T*v+b*x)/_,C=w-y,I=L-k,N=A-y,R=E-k;return C*C+I*I>N*N+R*R&&(w=A,L=E),{cx:w,cy:L,x01:-h,y01:-p,x11:w*(s/M-1),y11:L*(s/M-1)}}t.s(["default",0,function(){var t=r,d=s,h=(0,n.default)(0),p=null,c=o,f=a,m=l,g=null;function y(){var n,r,s=+t.apply(this,arguments),o=+d.apply(this,arguments),a=c.apply(this,arguments)-i.halfPi,l=f.apply(this,arguments)-i.halfPi,y=(0,i.abs)(l-a),k=l>a;if(g||(g=n=(0,e.path)()),oi.epsilon)if(y>i.tau-i.epsilon)g.moveTo(o*(0,i.cos)(a),o*(0,i.sin)(a)),g.arc(0,0,o,a,l,!k),s>i.epsilon&&(g.moveTo(s*(0,i.cos)(l),s*(0,i.sin)(l)),g.arc(0,0,s,l,a,k));else{var v,b,_=a,M=l,T=a,x=l,w=y,L=y,A=m.apply(this,arguments)/2,E=A>i.epsilon&&(p?+p.apply(this,arguments):(0,i.sqrt)(s*s+o*o)),C=(0,i.min)((0,i.abs)(o-s)/2,+h.apply(this,arguments)),I=C,N=C;if(E>i.epsilon){var R=(0,i.asin)(E/s*(0,i.sin)(A)),O=(0,i.asin)(E/o*(0,i.sin)(A));(w-=2*R)>i.epsilon?(R*=k?1:-1,T+=R,x-=R):(w=0,T=x=(a+l)/2),(L-=2*O)>i.epsilon?(O*=k?1:-1,_+=O,M-=O):(L=0,_=M=(a+l)/2)}var P=o*(0,i.cos)(_),S=o*(0,i.sin)(_),H=s*(0,i.cos)(x),j=s*(0,i.sin)(x);if(C>i.epsilon){var D,B=o*(0,i.cos)(M),z=o*(0,i.sin)(M),K=s*(0,i.cos)(T),$=s*(0,i.sin)(T);if(yi.epsilon?N>i.epsilon?(v=u(K,$,P,S,o,N,k),b=u(B,z,H,j,o,N,k),g.moveTo(v.cx+v.x01,v.cy+v.y01),Ni.epsilon&&w>i.epsilon?I>i.epsilon?(v=u(H,j,B,z,s,-I,k),b=u(P,S,K,$,s,-I,k),g.lineTo(v.cx+v.x01,v.cy+v.y01),I{"use strict";var e=t.i(704938);t.s(["arc",()=>e.default])},73422,t=>{"use strict";function e(t){this._context=t}e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},t.s(["default",0,function(t){return new e(t)}])},612386,821587,77971,t=>{"use strict";var e=t.i(758866),n=t.i(872301),i=t.i(73422);function r(t){return t[0]}function s(t){return t[1]}function o(t,e){return et?1:e>=t?0:NaN}function a(t){return t}t.s(["x",()=>r,"y",()=>s],821587),t.s(["default",0,function(){var t=r,o=s,a=(0,n.default)(!0),l=null,u=i.default,d=null;function h(n){var i,r,s,h=n.length,p=!1;for(null==l&&(d=u(s=(0,e.path)())),i=0;i<=h;++i)!(i0&&(f+=p);for(null!=e?m.sort(function(t,n){return e(g[t],g[n])}):null!=i&&m.sort(function(t,e){return i(n[t],n[e])}),o=0,d=f?(k-c*b)/f:0;o0?p*d:0)+b,g[a]={data:n[a],index:o,value:p,startAngle:y,endAngle:h,padAngle:v};return g}return d.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),d):t},d.sortValues=function(t){return arguments.length?(e=t,i=null,d):e},d.sort=function(t){return arguments.length?(i=t,e=null,d):i},d.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:(0,n.default)(+t),d):r},d.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:(0,n.default)(+t),d):s},d.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:(0,n.default)(+t),d):u},d}],77971)},629593,59384,t=>{"use strict";var e=t.i(612386);t.s(["line",()=>e.default],629593);var n=t.i(77971);t.s(["pie",()=>n.default],59384)},952660,t=>{"use strict";var e=t.i(755453);let n="numeric",i="ascii",r="alpha",s="asciinumeric",o="alphanumeric",a="domain",l="emoji",u="whitespace";function d(t,e,u){for(let d in e[n]&&(e[s]=!0,e[o]=!0),e[i]&&(e[s]=!0,e[r]=!0),e[s]&&(e[o]=!0),e[r]&&(e[o]=!0),e[o]&&(e[a]=!0),e[l]&&(e[a]=!0),e){let e=(d in u||(u[d]=[]),u[d]);0>e.indexOf(t)&&e.push(t)}}function h(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}h.groups={},h.prototype={accepts(){return!!this.t},go(t){let e=this.j[t];if(e)return e;for(let e=0;e=0&&(n[i]=!0);return n}(r.t,i),n),i):n&&d(e,n,i)),r.t=e),this.j[t]=r,r}};let p=(t,e,n,i,r)=>t.ta(e,n,i,r),c=(t,e,n,i,r)=>t.tr(e,n,i,r),f=(t,e,n,i,r)=>t.ts(e,n,i,r),m=(t,e,n,i,r)=>t.tt(e,n,i,r),g="WORD",y="UWORD",k="ASCIINUMERICAL",v="ALPHANUMERICAL",b="LOCALHOST",_="UTLD",M="SCHEME",T="SLASH_SCHEME",x="OPENBRACE",w="CLOSEBRACE",L="OPENBRACKET",A="CLOSEBRACKET",E="OPENPAREN",C="CLOSEPAREN",I="OPENANGLEBRACKET",N="CLOSEANGLEBRACKET",R="FULLWIDTHLEFTPAREN",O="FULLWIDTHRIGHTPAREN",P="LEFTCORNERBRACKET",S="RIGHTCORNERBRACKET",H="LEFTWHITECORNERBRACKET",j="RIGHTWHITECORNERBRACKET",D="FULLWIDTHLESSTHAN",B="FULLWIDTHGREATERTHAN",z="AMPERSAND",K="APOSTROPHE",$="ASTERISK",U="BACKSLASH",q="BACKTICK",F="CARET",V="COLON",W="COMMA",G="DOLLAR",Q="EQUALS",Y="EXCLAMATION",X="HYPHEN",J="PERCENT",Z="PIPE",tt="PLUS",te="POUND",tn="QUERY",ti="QUOTE",tr="FULLWIDTHMIDDLEDOT",ts="SEMI",to="SLASH",ta="TILDE",tl="UNDERSCORE",tu="EMOJI";var td=Object.freeze({__proto__:null,ALPHANUMERICAL:v,AMPERSAND:z,APOSTROPHE:K,ASCIINUMERICAL:k,ASTERISK:$,AT:"AT",BACKSLASH:U,BACKTICK:q,CARET:F,CLOSEANGLEBRACKET:N,CLOSEBRACE:w,CLOSEBRACKET:A,CLOSEPAREN:C,COLON:V,COMMA:W,DOLLAR:G,DOT:"DOT",EMOJI:tu,EQUALS:Q,EXCLAMATION:Y,FULLWIDTHGREATERTHAN:B,FULLWIDTHLEFTPAREN:R,FULLWIDTHLESSTHAN:D,FULLWIDTHMIDDLEDOT:tr,FULLWIDTHRIGHTPAREN:O,HYPHEN:X,LEFTCORNERBRACKET:P,LEFTWHITECORNERBRACKET:H,LOCALHOST:b,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:I,OPENBRACE:x,OPENBRACKET:L,OPENPAREN:E,PERCENT:J,PIPE:Z,PLUS:tt,POUND:te,QUERY:tn,QUOTE:ti,RIGHTCORNERBRACKET:S,RIGHTWHITECORNERBRACKET:j,SCHEME:M,SEMI:ts,SLASH:to,SLASH_SCHEME:T,SYM:"SYM",TILDE:ta,TLD:"TLD",UNDERSCORE:tl,UTLD:_,UWORD:y,WORD:g,WS:"WS"});let th=/[a-z]/,tp=/\p{L}/u,tc=/\p{Emoji}/u,tf=/\d/,tm=/\s/,tg=null,ty=null;function tk(t,e){let n=function(t){let e=[],n=t.length,i=0;for(;i56319||i+1===n||(r=t.charCodeAt(i+1))<56320||r>57343?t[i]:t.slice(i,i+2);e.push(o),i+=o.length}return e}(e.replace(/[A-Z]/g,t=>t.toLowerCase())),i=n.length,r=[],s=0,o=0;for(;o=0&&(h+=n[o].length,p++),u+=n[o].length,s+=n[o].length,o++;s-=h,o-=p,u-=h,r.push({t:d.t,v:e.slice(s-u,s),s:s-u,e:s})}return r}function tv(t,e,n,i,r){let s,o=e.length;for(let n=0;n=0;)r++;if(r>0){e.push(n.join(""));for(let e=parseInt(t.substring(i,i+r),10);e>0;e--)n.pop();i+=r}else n.push(t[i]),i++}return e}let t_={defaultProtocol:"http",events:null,format:tT,formatHref:tT,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function tM(t,e=null){let n=Object.assign({},t_);t&&(n=Object.assign(n,t instanceof tM?t.o:t));let i=n.ignoreTags,r=[];for(let t=0;tt,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){let i=null!=e,r=this.o[t];return r&&("object"==typeof r?"function"==typeof(r=n.t in r?r[n.t]:t_[t])&&i&&(r=r(e,n)):"function"==typeof r&&i&&(r=r(e,n.t,n))),r},getObj(t,e,n){let i=this.o[t];return"function"==typeof i&&null!=e&&(i=i(e,n.t,n)),i},render(t){let e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},tx.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){let e=this.toString(),n=t.get("truncate",e,this),i=t.get("format",e,this);return n&&i.length>n?i.substring(0,n)+"…":i},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=t_.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){let e=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",e,this),i=t.get("tagName",e,this),r=this.toFormattedString(t),s={},o=t.get("className",e,this),a=t.get("target",e,this),l=t.get("rel",e,this),u=t.getObj("attributes",e,this),d=t.getObj("events",e,this);return s.href=n,o&&(s.class=o),a&&(s.target=a),l&&(s.rel=l),u&&Object.assign(s,u),{tagName:i,attributes:s,content:r,eventListeners:d}}};let tL=tw("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),tA=tw("text"),tE=tw("nl"),tC=tw("url",{isLink:!0,toHref(t=t_.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){let t=this.tk;return t.length>=2&&t[0].t!==b&&t[1].t===V}}),tI=t=>new h(t);function tN(t,e,n){let i=n[0].s,r=n[n.length-1].e;return new t(e.slice(i,r),n)}let tR="u">typeof console&&console&&console.warn||(()=>{}),tO={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function tP(t,e=!1){if(tO.initialized&&tR(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" 3. "-" cannot repeat`);tO.customSchemes.push([t,e])}function tS(t){return tO.initialized||function(){tO.scanner=function(t=[]){let e={};h.groups=e;let p=new h;null==tg&&(tg=tb("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ty&&(ty=tb("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),m(p,"'",K),m(p,"{",x),m(p,"}",w),m(p,"[",L),m(p,"]",A),m(p,"(",E),m(p,")",C),m(p,"<",I),m(p,">",N),m(p,"(",R),m(p,")",O),m(p,"「",P),m(p,"」",S),m(p,"『",H),m(p,"』",j),m(p,"<",D),m(p,">",B),m(p,"&",z),m(p,"*",$),m(p,"@","AT"),m(p,"`",q),m(p,"^",F),m(p,":",V),m(p,",",W),m(p,"$",G),m(p,".","DOT"),m(p,"=",Q),m(p,"!",Y),m(p,"-",X),m(p,"%",J),m(p,"|",Z),m(p,"+",tt),m(p,"#",te),m(p,"?",tn),m(p,'"',ti),m(p,"/",to),m(p,";",ts),m(p,"~",ta),m(p,"_",tl),m(p,"\\",U),m(p,"・",tr);let tk=c(p,tf,"NUM",{[n]:!0});c(tk,tf,tk);let t_=c(tk,th,k,{[s]:!0}),tM=c(tk,tp,v,{[o]:!0}),tT=c(p,th,g,{[i]:!0});c(tT,tf,t_),c(tT,th,tT),c(t_,tf,t_),c(t_,th,t_);let tx=c(p,tp,y,{[r]:!0});c(tx,th),c(tx,tf,tM),c(tx,tp,tx),c(tM,tf,tM),c(tM,th),c(tM,tp,tM);let tw=m(p,"\n","NL",{[u]:!0}),tL=m(p,"\r","WS",{[u]:!0}),tA=c(p,tm,"WS",{[u]:!0});m(p,"",tA),m(tL,"\n",tw),m(tL,"",tA),c(tL,tm,tA),m(tA,"\r"),m(tA,"\n"),c(tA,tm,tA),m(tA,"",tA);let tE=c(p,tc,tu,{[l]:!0});m(tE,"#"),c(tE,tc,tE),m(tE,"️",tE);let tC=m(tE,"‍");m(tC,"#"),c(tC,tc,tE);let tI=[[th,tT],[tf,t_]],tN=[[th,null],[tp,tx],[tf,tM]];for(let t=0;tt[0]>e[0]?1:-1);for(let e=0;e=0?o[a]=!0:th.test(r)?tf.test(r)?o[s]=!0:o[i]=!0:o[n]=!0,f(p,r,r,o)}return f(p,"localhost",b,{ascii:!0}),p.jd=new h("SYM"),{start:p,tokens:Object.assign({groups:e},td)}}(tO.customSchemes);for(let t=0;t=0&&p++,r++,d++;if(p<0)(r-=d)0&&(s.push(tN(tA,e,o)),o=[]),r-=p,d-=p;let t=h.t,i=n.slice(r-d,r);s.push(tN(t,e,i))}}return o.length>0&&s.push(tN(tA,e,o)),s}(tO.parser.start,t,tk(tO.scanner.start,t))}function tH(t,e=null,n=null){if(e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}let i=new tM(n),r=tS(t),s=[];for(let t=0;t{let e="string"==typeof t?t:t.scheme;e&&n.push(e)}),!t||t.replace(tK,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var tU=e.Mark.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{"string"==typeof t?tP(t):tP(t.scheme,t.optionalSlashes)})},onDestroy(){h.groups={},tO.scanner=null,tO.parser=null,tO.tokenQueue=[],tO.pluginQueue=[],tO.customSchemes=[],tO.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!t$(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}),addAttributes(){return{href:{default:null,parseHTML:t=>t.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{let e=t.getAttribute("href");return!!e&&!!this.options.isAllowedUri(e,{defaultValidate:t=>!!t$(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:t=>!!t$(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]:["a",(0,e.mergeAttributes)(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n;let i=(null==(n=t.attrs)?void 0:n.href)||"",r=e.renderChildren(t);return`[${r}](${i})`},addCommands(){return{setLink:t=>({chain:e})=>{let{href:n}=t;return!!this.options.isAllowedUri(n,{defaultValidate:t=>!!t$(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&e().setMark(this.name,t).setMeta("preventAutolink",!0).run()},toggleLink:t=>({chain:e})=>{let{href:n}=t||{};return(!n||!!this.options.isAllowedUri(n,{defaultValidate:t=>!!t$(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,e.markPasteRule)({find:t=>{let e=[];if(t){let{protocols:n,defaultProtocol:i}=this.options,r=tH(t).filter(t=>t.isLink&&this.options.isAllowedUri(t.value,{defaultValidate:t=>!!t$(t,n),protocols:n,defaultProtocol:i}));r.length&&r.forEach(t=>{this.options.shouldAutoLink(t.value)&&e.push({text:t.value,data:{href:t.href},index:t.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:null==(e=t.data)?void 0:e.href}}})]},addProseMirrorPlugins(){var t,n,i;let r=[],{protocols:s,defaultProtocol:o}=this.options;return this.options.autolink&&r.push((t={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:t=>this.options.isAllowedUri(t,{defaultValidate:t=>!!t$(t,s),protocols:s,defaultProtocol:o}),shouldAutoLink:this.options.shouldAutoLink},new tj.Plugin({key:new tj.PluginKey("autolink"),appendTransaction:(n,i,r)=>{let s=n.some(t=>t.docChanged)&&!i.doc.eq(r.doc),o=n.some(t=>t.getMeta("preventAutolink"));if(!s||o)return;let{tr:a}=r,l=(0,e.combineTransactionSteps)(i.doc,[...n]);if((0,e.getChangedRanges)(l).forEach(({newRange:n})=>{let i,s,o=(0,e.findChildrenInRange)(r.doc,n,t=>t.isTextblock);if(o.length>1)i=o[0],s=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0," ");else if(o.length){let t=r.doc.textBetween(n.from,n.to," "," ");if(!tz.test(t))return;i=o[0],s=r.doc.textBetween(i.pos,n.to,void 0," ")}if(i&&s){let n=s.split(tB).filter(Boolean);if(n.length<=0)return!1;let o=n[n.length-1],l=i.pos+s.lastIndexOf(o);if(!o)return!1;let u=tS(o).map(e=>e.toObject(t.defaultProtocol));if(!(1===u.length?u[0].isLink:3===u.length&&!!u[1].isLink&&["()","[]"].includes(u[0].value+u[2].value)))return!1;u.filter(t=>t.isLink).map(t=>({...t,from:l+t.start+1,to:l+t.end+1})).filter(t=>!r.schema.marks.code||!r.doc.rangeHasMark(t.from,t.to,r.schema.marks.code)).filter(e=>t.validate(e.value)).filter(e=>t.shouldAutoLink(e.value)).forEach(n=>{(0,e.getMarksBetween)(n.from,n.to,r.doc).some(e=>e.mark.type===t.type)||a.addMark(n.from,n.to,t.type.create({href:n.href}))})}}),a.steps.length)return a}}))),!0===this.options.openOnClick&&r.push((n={type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection},new tj.Plugin({key:new tj.PluginKey("handleClickLink"),props:{handleClick:(t,i,r)=>{var s,o;if(0!==r.button||!t.editable)return!1;let a=null;if(r.target instanceof HTMLAnchorElement)a=r.target;else{let t=r.target,e=[];for(;"DIV"!==t.nodeName;)e.push(t),t=t.parentNode;a=e.find(t=>"A"===t.nodeName)}if(!a)return!1;let l=(0,e.getAttributes)(t.state,n.type.name),u=null!=(s=null==a?void 0:a.href)?s:l.href,d=null!=(o=null==a?void 0:a.target)?o:l.target;return n.enableClickSelection&&n.editor.commands.extendMarkRange(n.type.name),!!a&&!!u&&(window.open(u,d),!0)}}}))),this.options.linkOnPaste&&r.push((i={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink},new tj.Plugin({key:new tj.PluginKey("handlePasteLink"),props:{handlePaste:(t,e,n)=>{let{shouldAutoLink:r}=i,{state:s}=t,{selection:o}=s,{empty:a}=o;if(a)return!1;let l="";n.content.forEach(t=>{l+=t.textContent});let u=tH(l,{defaultProtocol:i.defaultProtocol}).find(t=>t.isLink&&t.value===l);return!!l&&!!u&&(void 0===r||!!r(u.href))&&i.editor.commands.setMark(i.type,{href:u.href})}}}))),r}});t.s(["Link",()=>tU,"default",()=>tU],952660)},482279,266995,t=>{"use strict";var e=t.i(755453),n=(t,e)=>{if("slot"===t)return 0;if(t instanceof Function)return t(e);let{children:n,...i}=null!=e?e:{};if("svg"===t)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,i,n]};t.s(["jsx",()=>n],266995);var i=/^\s*>\s$/,r=e.Node.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return n("blockquote",{...(0,e.mergeAttributes)(this.options.HTMLAttributes,t),children:n("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";let n=[];return t.content.forEach(t=>{let i=e.renderChildren(t).split("\n").map(t=>`> ${t}`).join("\n");n.push(i)}),n.flatMap(t=>[t,"> "]).slice(0,-1).join("\n")},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,e.wrappingInputRule)({find:i,type:this.type})]}});t.s(["Blockquote",()=>r,"default",()=>r],482279)},8518,154258,295189,t=>{"use strict";var e=t.i(755453),n=t.i(266995),i=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,r=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,s=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,o=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,a=e.Mark.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return(0,n.jsx)("strong",{...(0,e.mergeAttributes)(this.options.HTMLAttributes,t),children:(0,n.jsx)("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,e.markInputRule)({find:i,type:this.type}),(0,e.markInputRule)({find:s,type:this.type})]},addPasteRules(){return[(0,e.markPasteRule)({find:r,type:this.type}),(0,e.markPasteRule)({find:o,type:this.type})]}});t.s(["Bold",()=>a,"default",()=>a],8518);var l=e.Node.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n\n"):""});t.s(["Document",()=>l,"default",()=>l],154258);var u=e.Node.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",(0,e.mergeAttributes)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",renderMarkdown:(t,e)=>e.indent(` `),parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:i})=>t.first([()=>t.exitCode(),()=>t.command(()=>{let{selection:t,storedMarks:r}=n;if(t.$from.parent.type.spec.isolating)return!1;let{keepMarks:s}=this.options,{splittableMarks:o}=i.extensionManager,a=r||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command(({tr:t,dispatch:e})=>{if(e&&a&&s){let e=a.filter(t=>o.includes(t.type.name));t.ensureMarks(e)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});t.s(["HardBreak",()=>u],295189)},399685,t=>{"use strict";var e=t.i(755453),n=e.Node.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:n}){let i=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return[`h${i}`,(0,e.mergeAttributes)(this.options.HTMLAttributes,n),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;let i=(null==(n=t.attrs)?void 0:n.level)?parseInt(t.attrs.level,10):1,r="#".repeat(i);return t.content?`${r} ${e.renderChildren(t.content)}`:""},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,...{[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}}),{})},addInputRules(){return this.options.levels.map(t=>(0,e.textblockTypeInputRule)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});t.s(["Heading",()=>n,"default",()=>n])},676095,t=>{"use strict";var e=t.i(755453),n=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,r=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,s=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,o=e.Mark.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,e.markInputRule)({find:n,type:this.type}),(0,e.markInputRule)({find:r,type:this.type})]},addPasteRules(){return[(0,e.markPasteRule)({find:i,type:this.type}),(0,e.markPasteRule)({find:s,type:this.type})]}});t.s(["Italic",()=>o,"default",()=>o])},570752,t=>{"use strict";var e=t.i(755453),n=Object.defineProperty,i="textStyle",r=/^\s*([-+*])\s$/,s=e.Node.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>"list"!==t.type||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(i)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,e.wrappingInputRule)({find:r,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,e.wrappingInputRule)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(i),editor:this.editor})),[t]}}),o=e.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{if("list_item"!==t.type)return[];let n=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(t=>"paragraph"===t.type))n=e.parseChildren(t.tokens);else{let i=t.tokens[0];if(i&&"text"===i.type&&i.tokens&&i.tokens.length>0){if(n=[{type:"paragraph",content:e.parseInline(i.tokens)}],t.tokens.length>1){let i=t.tokens.slice(1),r=e.parseChildren(i);n.push(...r)}}else n=e.parseChildren(t.tokens)}return 0===n.length&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(t,n,i)=>(0,e.renderNestedMarkdownContent)(t,n,t=>"bulletList"===t.parentType?"- ":"orderedList"===t.parentType?`${t.index+1}. `:"- ",i),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),a={},l={findListItemPos:()=>d,getNextListDepth:()=>h,handleBackspace:()=>m,handleDelete:()=>k,hasListBefore:()=>p,hasListItemAfter:()=>v,hasListItemBefore:()=>c,listItemHasSubList:()=>f,nextListIsDeeper:()=>g,nextListIsHigher:()=>y};for(var u in l)n(a,u,{get:l[u],enumerable:!0});var d=(t,n)=>{let{$from:i}=n.selection,r=(0,e.getNodeType)(t,n.schema),s=i.depth,o=i.pos,a=null;for(;s>0&&null===a;)i.node(s).type===r?a=s:(s-=1,o-=1);return null===a?null:{$pos:n.doc.resolve(o),depth:a}},h=(t,n)=>{let i=d(t,n);if(!i)return!1;let[,r]=(0,e.getNodeAtPosition)(n,t,i.$pos.pos+4);return r},p=(t,e,n)=>{let{$anchor:i}=t.selection,r=Math.max(0,i.pos-2),s=t.doc.resolve(r).node();return!!s&&!!n.includes(s.type.name)},c=(t,e)=>{var n;let{$anchor:i}=e.selection,r=e.doc.resolve(i.pos-2);return 0!==r.index()&&(null==(n=r.nodeBefore)?void 0:n.type.name)===t},f=(t,n,i)=>{if(!i)return!1;let r=(0,e.getNodeType)(t,n.schema),s=!1;return i.descendants(t=>{t.type===r&&(s=!0)}),s},m=(t,n,i)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!(0,e.isNodeActive)(t.state,n)&&p(t.state,n,i)){let{$anchor:e}=t.state.selection,i=t.state.doc.resolve(e.before()-1),r=[];i.node().descendants((t,e)=>{t.type.name===n&&r.push({node:t,pos:e})});let s=r.at(-1);if(!s)return!1;let o=t.state.doc.resolve(i.start()+s.pos+1);return t.chain().cut({from:e.start()-1,to:e.end()+1},o.end()).joinForward().run()}if(!(0,e.isNodeActive)(t.state,n)||!(0,e.isAtStartOfNode)(t.state))return!1;let r=d(n,t.state);if(!r)return!1;let s=t.state.doc.resolve(r.$pos.pos-2).node(r.depth),o=f(n,t.state,s);return c(n,t.state)&&!o?t.commands.joinItemBackward():t.chain().liftListItem(n).run()},g=(t,e)=>{let n=h(t,e),i=d(t,e);return!!i&&!!n&&n>i.depth},y=(t,e)=>{let n=h(t,e),i=d(t,e);return!!i&&!!n&&n{if(!(0,e.isNodeActive)(t.state,n)||!(0,e.isAtEndOfNode)(t.state,n))return!1;let{selection:i}=t.state,{$from:r,$to:s}=i;return!(!i.empty&&r.sameParent(s))&&(g(n,t.state)?t.chain().focus(t.state.selection.from+4).lift(n).joinBackward().run():y(n,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward())},v=(t,e)=>{var n;let{$anchor:i}=e.selection,r=e.doc.resolve(i.pos-i.parentOffset-2);return r.index()!==r.parent.childCount-1&&(null==(n=r.nodeAfter)?void 0:n.type.name)===t},b=e.Extension.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==t.state.schema.nodes[n]&&k(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==t.state.schema.nodes[n]&&k(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{void 0!==t.state.schema.nodes[n]&&m(t,n,i)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{void 0!==t.state.schema.nodes[n]&&m(t,n,i)&&(e=!0)}),e}}}}),_=/^(\s*)(\d+)\.\s+(.*)$/,M=/^\s/,T="textStyle",x=/^(\d+)\.\s$/,w=e.Node.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){let{start:n,...i}=t;return 1===n?["ol",(0,e.mergeAttributes)(this.options.HTMLAttributes,i),0]:["ol",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{var n;if("list"!==t.type||!t.ordered)return[];let i=t.start||1,r=t.items?(n=t.items,n.map(t=>{if("list_item"!==t.type)return e.parseChildren([t])[0];let n=[];return t.tokens&&t.tokens.length>0&&t.tokens.forEach(t=>{if("paragraph"===t.type||"list"===t.type||"blockquote"===t.type||"code"===t.type)n.push(...e.parseChildren([t]));else if("text"===t.type&&t.tokens){let i=e.parseChildren([t]);n.push({type:"paragraph",content:i})}else{let i=e.parseChildren([t]);i.length>0&&n.push(...i)}}),{type:"listItem",content:n}})):[];return 1!==i?{type:"orderedList",attrs:{start:i},content:r}:{type:"orderedList",content:r}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{let e=t.match(/^(\s*)(\d+)\.\s+/),n=null==e?void 0:e.index;return void 0!==n?n:-1},tokenize:(t,e,n)=>{var i;let r=t.split("\n"),[s,o]=function(t){let e=[],n=0,i=0;for(;nn;)c.push(e[p]),p+=1;if(c.length>0){let e=Math.min(...c.map(t=>t.indent)),n=t(c,e,i);d.push({type:"list",ordered:!0,start:c[0].number,items:n,raw:c.map(t=>t.raw).join("\n")})}s.push({type:"list_item",raw:a.raw,tokens:d}),o=p}else o+=1}return s}(s,0,n);if(0!==a.length)return{type:"list",ordered:!0,start:(null==(i=s[0])?void 0:i.number)||1,items:a,raw:r.slice(0,o).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(T)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,e.wrappingInputRule)({find:x,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,e.wrappingInputRule)({find:x,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(T)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),L=/^\s*(\[([( |x])?\])\s$/,A=e.Node.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{let e=t.getAttribute("data-checked");return""===e||"true"===e},renderHTML:t=>({"data-checked":t.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:n}){return["li",(0,e.mergeAttributes)(this.options.HTMLAttributes,n,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{let n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){let i=e.parseChildren(t.nestedTokens);n.push(...i)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,n)=>{var i;let r=(null==(i=t.attrs)?void 0:i.checked)?"x":" ",s=`- [${r}] `;return(0,e.renderNestedMarkdownContent)(t,n,s)},addKeyboardShortcuts(){let t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:i})=>{let r=document.createElement("li"),s=document.createElement("label"),o=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=t=>{var e,n;a.ariaLabel=(null==(n=null==(e=this.options.a11y)?void 0:e.checkboxLabel)?void 0:n.call(e,t,a.checked))||`Task item checkbox for ${t.textContent||"empty task item"}`};return u(t),s.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",t=>t.preventDefault()),a.addEventListener("change",e=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:r}=e.target;i.isEditable&&"function"==typeof n&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:t})=>{let e=n();if("number"!=typeof e)return!1;let i=t.doc.nodeAt(e);return t.setNodeMarkup(e,void 0,{...null==i?void 0:i.attrs,checked:r}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(t,r)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([t,e])=>{r.setAttribute(t,e)}),r.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,s.append(a,o),r.append(s,l),Object.entries(e).forEach(([t,e])=>{r.setAttribute(t,e)}),{dom:r,contentDOM:l,update:t=>t.type===this.type&&(r.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,u(t),!0)}}},addInputRules(){return[(0,e.wrappingInputRule)({find:L,type:this.type,getAttributes:t=>({checked:"x"===t[t.length-1]})})]}}),E=e.Node.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",(0,e.mergeAttributes)(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;let n=null==(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:e.index;return void 0!==n?n:-1},tokenize(t,n,i){let r=t=>{let n=(0,e.parseIndentedBlocks)(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:t=>({indentLevel:t[1].length,mainContent:t[4],checked:"x"===t[3].toLowerCase()}),createToken:(t,e)=>({type:"taskItem",raw:"",mainContent:t.mainContent,indentLevel:t.indentLevel,checked:t.checked,text:t.mainContent,tokens:i.inlineTokens(t.mainContent),nestedTokens:e}),customNestedParser:r},i);return n?[{type:"taskList",raw:n.raw,items:n.items}]:i.blockTokens(t)},s=(0,e.parseIndentedBlocks)(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:t=>({indentLevel:t[1].length,mainContent:t[4],checked:"x"===t[3].toLowerCase()}),createToken:(t,e)=>({type:"taskItem",raw:"",mainContent:t.mainContent,indentLevel:t.indentLevel,checked:t.checked,text:t.mainContent,tokens:i.inlineTokens(t.mainContent),nestedTokens:e}),customNestedParser:r},i);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});e.Extension.create({name:"listKit",addExtensions(){let t=[];return!1!==this.options.bulletList&&t.push(s.configure(this.options.bulletList)),!1!==this.options.listItem&&t.push(o.configure(this.options.listItem)),!1!==this.options.listKeymap&&t.push(b.configure(this.options.listKeymap)),!1!==this.options.orderedList&&t.push(w.configure(this.options.orderedList)),!1!==this.options.taskItem&&t.push(A.configure(this.options.taskItem)),!1!==this.options.taskList&&t.push(E.configure(this.options.taskList)),t}}),t.s(["BulletList",()=>s,"ListItem",()=>o,"ListKeymap",()=>b,"OrderedList",()=>w])},936265,t=>{"use strict";var e=t.i(755453),n=e.Node.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{let n=t.tokens||[];return 1===n.length&&"image"===n[0].type?e.parseChildren([n[0]]):e.createNode("paragraph",void 0,e.parseInline(n))},renderMarkdown:(t,e)=>t&&Array.isArray(t.content)?e.renderChildren(t.content):"",addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});t.s(["Paragraph",()=>n,"default",()=>n])},562931,383865,t=>{"use strict";var e=t.i(755453),n=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,r=e.Mark.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,e.markInputRule)({find:n,type:this.type})]},addPasteRules(){return[(0,e.markPasteRule)({find:i,type:this.type})]}});t.s(["Strike",()=>r,"default",()=>r],562931);var s=e.Node.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""});t.s(["Text",()=>s],383865)},520100,t=>{"use strict";var e=t.i(755453),n=e.Mark.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("underline")&&{}}],renderHTML({HTMLAttributes:t}){return["u",(0,e.mergeAttributes)(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown:(t,e)=>`++${e.renderChildren(t)}++`,markdownTokenizer:{name:"underline",level:"inline",start:t=>t.indexOf("++"),tokenize(t,e,n){let i=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!i)return;let r=i[2].trim();return{type:"underline",raw:i[0],text:r,tokens:n.inlineTokens(r)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});t.s(["Underline",()=>n,"default",()=>n])},564183,t=>{"use strict";var e=t.i(758866),n=t.i(872301),i=t.i(73422),r=t.i(612386),s=t.i(821587);t.s(["default",0,function(){var t=s.x,o=null,a=(0,n.default)(0),l=s.y,u=(0,n.default)(!0),d=null,h=i.default,p=null;function c(n){var i,r,s,c,f,m=n.length,g=!1,y=Array(m),k=Array(m);for(null==d&&(p=h(f=(0,e.path)())),i=0;i<=m;++i){if(!(i=r;--s)p.point(y[s],k[s]);p.lineEnd(),p.areaEnd()}g&&(y[i]=+t(c,i,n),k[i]=+a(c,i,n),p.point(o?+o(c,i,n):y[i],l?+l(c,i,n):k[i]))}if(f)return p=null,f+""||null}function f(){return(0,r.default)().defined(u).curve(h).context(d)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),o=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),c):t},c.x1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:(0,n.default)(+t),c):o},c.y=function(t){return arguments.length?(a="function"==typeof t?t:(0,n.default)(+t),l=null,c):a},c.y0=function(t){return arguments.length?(a="function"==typeof t?t:(0,n.default)(+t),c):a},c.y1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.default)(+t),c):l},c.lineX0=c.lineY0=function(){return f().x(t).y(a)},c.lineY1=function(){return f().x(t).y(l)},c.lineX1=function(){return f().x(o).y(a)},c.defined=function(t){return arguments.length?(u="function"==typeof t?t:(0,n.default)(!!t),c):u},c.curve=function(t){return arguments.length?(h=t,null!=d&&(p=h(d)),c):h},c.context=function(t){return arguments.length?(null==t?d=p=null:p=h(d=t),c):d},c}])},321776,t=>{"use strict";var e=Array.prototype.slice;t.s(["slice",()=>e])},304565,753998,t=>{"use strict";var e=t.i(151711);function n(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:n(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:n(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let r=function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0);function s(t,n,i){var r=t._x1,s=t._y1,o=t._x2,a=t._y2;if(t._l01_a>e.epsilon){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,s=(s*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>e.epsilon){var d=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*d+t._x1*t._l23_2a-n*t._l12_2a)/h,a=(a*d+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,s,o,a,t._x2,t._y2)}function o(t,e){this._context=t,this._alpha=e}t.s(["Cardinal",()=>i,"default",0,r,"point",()=>n],753998),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:s(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let a=function t(e){function n(t){return e?new o(t,e):new i(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);t.s(["default",0,a,"point",()=>s],304565)},169898,721935,882039,435751,869651,t=>{"use strict";var e=t.i(321776),n=t.i(872301);function i(t,e){if((r=t.length)>1)for(var n,i,r,s=1,o=t[e[0]],a=o.length;s=0;)n[e]=e;return n}function s(t,e){return t[e]}t.s(["default",0,i],721935),t.s(["default",0,r],882039),t.s(["default",0,function(){var t=(0,n.default)([]),o=r,a=i,l=s;function u(e){var n,i,r=t.apply(this,arguments),s=e.length,u=r.length,d=Array(u);for(n=0;n0){for(var n,r,s,o=0,a=t[0].length;o0)for(var n,i,r,s,o,a,l=0,u=t[e[0]].length;l0?(i[0]=s,i[1]=s+=r):r<0?(i[1]=o,i[0]=o+=r):(i[0]=0,i[1]=r)}],869651)}]); //# sourceMappingURL=ee4900733cef36cb.js.map